:root {
  color-scheme: light;
  --navy: #252c50;
  --ink: #22283a;
  --muted: #596478;
  --line: #dce2eb;
  --surface: #f4f6fa;
  font: 15px/1.5 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--navy); }
button, input { font: inherit; }
button, .detail {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid var(--navy);
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .detail:hover { background: #35406e; }
:focus-visible { outline: 3px solid #527cda; outline-offset: 3px; }
input {
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid #aab6c9;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.top { background: var(--navy); padding: 16px 0; }
.top a { color: #fff; font-weight: 750; text-decoration: none; }
.top span { color: #dbe2fd; font-weight: 500; }
main { padding-block: clamp(24px, 5vw, 52px); }
h1 { margin: 0; font-size: clamp(1.65rem, 3.3vw, 2.55rem); line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
p { margin: 8px 0 0; color: var(--muted); }
.heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.heading { flex-wrap: wrap; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 650; }
.secondary { color: var(--navy); background: #fff; border-color: #aab6c9; }
.secondary:hover { background: #e8ecf6; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 6px 18px #2634570b; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar p { margin: 0; }
.search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search input { width: min(290px, 100%); }
.table-panel { overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 790px; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
thead { background: #eef1f8; color: var(--navy); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { min-width: 165px; overflow-wrap: anywhere; }
td { font-variant-numeric: tabular-nums; }
td a { white-space: nowrap; }
small { display: block; color: var(--muted); font-size: .82rem; font-weight: 500; }
.detail { color: var(--navy); background: #eef2fb; border-color: transparent; padding: 6px 9px; }
.detail:hover { color: #fff; }
.empty { padding: 25px; color: var(--muted); }

.capture { padding: clamp(14px, 3vw, 23px); margin-bottom: 16px; }
.capture-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.capture-heading h2 { margin: 0; font-size: 1.15rem; }
.capture-heading p { margin: 0; }
.gallery { margin-top: 15px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.photo { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 650; text-decoration: none; }
.photo:hover { border-color: #527cda; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #edf0f6; }
.photo span { display: block; padding: 8px 10px; }
.pages { margin-top: 18px; display: flex; justify-content: center; gap: 18px; align-items: center; flex-wrap: wrap; }
.pages span { color: var(--muted); }
.login { width: min(420px, 100%); margin: 4vh auto 0; padding: clamp(20px, 4vw, 32px); }
.login h1 { font-size: 1.7rem; }
.login form { margin-top: 20px; display: grid; gap: 8px; }
.login button { margin-top: 5px; }
.error { color: #a12834; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
