:root {
  color-scheme: light;
  --paper: #f7f5f2;
  --ink: #292430;
  --plum: #68445b;
  --line: #e5dfe5;
  --muted: #746a78;
  --green: #28634c;
  --red: #a33a47;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.85 Tahoma,
    Arial,
    sans-serif;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1360px) / 2));
  flex-wrap: wrap;
}
header form {
  margin-inline-start: auto;
}
.brand {
  font-size: 25px;
  font-weight: bold;
  text-decoration: none;
}
.brand span {
  font-size: 13px;
  font-weight: normal;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 16px;
  margin-inline-start: 12px;
  color: var(--muted);
}
main {
  max-width: 1360px;
  margin: 32px auto;
  padding: 0 24px 48px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  margin-bottom: 4px;
}
h2 {
  font-size: 19px;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 0;
}
a {
  color: var(--plum);
  text-underline-offset: 4px;
}
button,
.button {
  background: var(--plum);
  color: white;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 18px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1.7;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: #f6f2f5;
  color: var(--plum);
  border-color: var(--line);
}
.approve {
  background: var(--green);
}
.danger {
  background: #fcf0f1;
  color: var(--red);
  border-color: #ebcbd0;
}
.page-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-heading {
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin: 24px 0;
  scroll-margin-top: 24px;
}
.section-heading {
  margin-bottom: 18px;
}
.muted,
small {
  color: var(--muted);
}
small {
  display: block;
  font-size: 12px;
}
.section-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 24px;
}
.section-nav a {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
}
.section-nav span {
  font-size: 11px;
  background: #f1ecf1;
  border-radius: 5px;
  padding: 1px 6px;
  margin-inline-start: 5px;
}
.overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.metric strong {
  font-size: 32px;
  line-height: 1.5;
}
.metric span {
  color: var(--ink);
  font-size: 13px;
}
.metric small {
  font-size: 11px;
}
.count,
.badge {
  background: #f4f0f4;
  border-radius: 7px;
  padding: 3px 9px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: normal;
}
.count {
  margin-inline-start: 6px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.photo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.photo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: #f0edf0;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-body {
  padding: 18px;
}
.photo-body .section-heading {
  margin-bottom: 8px;
}
.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.photo-actions button {
  padding-inline: 8px;
}
.identifiers {
  font-size: 11px;
  margin-top: 10px;
}
.identifiers bdi {
  overflow-wrap: anywhere;
}
.identifiers summary {
  color: var(--muted);
  font-weight: normal;
  padding: 4px 0;
  min-height: 32px;
}
.search {
  font-size: 12px;
  color: var(--muted);
  width: 260px;
  max-width: 100%;
}
.search input {
  min-height: 40px;
  margin-top: 2px;
}
form label {
  display: block;
  margin: 12px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9bec8;
  border-radius: 9px;
  padding: 9px 11px;
  min-height: 44px;
  margin-top: 5px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 8px;
  accent-color: var(--plum);
}
textarea {
  min-height: 96px;
  resize: vertical;
}
.check {
  align-self: center;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.full {
  grid-column: 1/-1;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 16px;
  min-width: 0;
}
legend {
  padding: 0 6px;
}
fieldset .check {
  display: inline-block;
  margin-inline-end: 16px;
}
form > button {
  margin: 12px 0;
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--plum);
  padding: 8px 0;
  min-height: 44px;
}
details[open] > summary {
  margin-bottom: 8px;
}
.new-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 20px;
}
.scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}
th {
  font-size: 12px;
  font-weight: normal;
  color: var(--muted);
  background: #faf8fa;
}
td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td.info {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 420px;
}
td.row-actions {
  min-width: 240px;
  max-width: 360px;
}
.row-actions > .button,
.row-actions > a {
  margin: 0 0 8px 10px;
}
.row-actions label {
  margin-top: 4px;
}
.row-actions details {
  margin-top: 0;
}
code {
  font: 11px/1.7 monospace;
  direction: ltr;
  display: inline-block;
  user-select: all;
  overflow-wrap: anywhere;
  max-width: 190px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #faf8fa;
  border-radius: 10px;
  margin: 12px 0 0;
}
.feedback,
.form-error {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 12px 0;
}
.success {
  background: #eaf4ed;
  color: var(--green);
}
.error,
.form-error {
  background: #fcecef;
  color: var(--red);
}
.form-error {
  font-size: 13px;
}
.evidence-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.portrait {
  display: block;
  width: 200px;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f8f6f8;
  padding: 20px;
  border-radius: 12px;
  font-size: 13px;
}
.login {
  max-width: 480px;
  margin: 32px auto;
}
.login h2 {
  margin-bottom: 12px;
}
.login button {
  width: 100%;
}
.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  background: white;
  padding: 12px;
  z-index: 2;
}
.skip-link:focus {
  top: 12px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #b87d96;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header {
    gap: 12px;
    padding: 12px 16px;
  }
  .staff-name {
    font-size: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .brand span {
    display: none;
  }
  main {
    padding: 0 12px 32px;
    margin-top: 20px;
  }
  h1 {
    font-size: 23px;
  }
  .card {
    padding: 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .overview {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .metric span {
    font-size: 12px;
  }
  .section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .section-nav a {
    white-space: nowrap;
  }
  .search {
    width: 100%;
  }
  .page-heading > .button {
    font-size: 12px;
  }
  .photo-preview {
    height: 320px;
  }
  td,
  th {
    padding: 12px 8px;
  }
  .section-heading {
    gap: 12px;
  }
}
