:root {
  --paper: #f6f2e8;
  --paper-raised: #fdfbf6;
  --ink: #24242c;
  --ink-soft: #63636f;
  --indigo: #333c6b;
  --indigo-strong: #232a52;
  --indigo-tint: #e7e9f2;
  --brass: #a07c3f;
  --line: rgba(36, 36, 44, 0.11);
  --good: #3f7d5c;
  --good-tint: #e3efe8;
  --warn: #b4632e;
  --warn-tint: #f5e9df;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14151e;
    --paper-raised: #1b1d29;
    --ink: #ede9de;
    --ink-soft: #a3a3b0;
    --indigo: #8b95d6;
    --indigo-strong: #c3c9ef;
    --indigo-tint: #232743;
    --brass: #d2ad6e;
    --line: rgba(237, 234, 224, 0.13);
    --good: #74c199;
    --good-tint: #1c2f27;
    --warn: #e19a63;
    --warn-tint: #322419;
  }
}
:root[data-theme="dark"] {
  --paper: #14151e; --paper-raised: #1b1d29; --ink: #ede9de; --ink-soft: #a3a3b0;
  --indigo: #8b95d6; --indigo-strong: #c3c9ef; --indigo-tint: #232743; --brass: #d2ad6e;
  --line: rgba(237, 234, 224, 0.13); --good: #74c199; --good-tint: #1c2f27;
  --warn: #e19a63; --warn-tint: #322419;
}
:root[data-theme="light"] {
  --paper: #f6f2e8; --paper-raised: #fdfbf6; --ink: #24242c; --ink-soft: #63636f;
  --indigo: #333c6b; --indigo-strong: #232a52; --indigo-tint: #e7e9f2; --brass: #a07c3f;
  --line: rgba(36, 36, 44, 0.11); --good: #3f7d5c; --good-tint: #e3efe8;
  --warn: #b4632e; --warn-tint: #f5e9df;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; } /* 18px base - the 16px default reads small for an older audience */
html, body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.serif { font-family: "Noto Serif TC", "Songti TC", "PMingLiU", "Microsoft JhengHei", serif; }
a { color: var(--indigo); }
img { max-width: 100%; }

/* ---- back to top ---- */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px -4px rgba(35,42,82,0.45);
  opacity: 0; transform: translateY(0.5rem); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* ---- gallery + lightbox ---- */
.gallery-album-head { margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.gallery-album-head + .gallery-grid { margin-bottom: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.9rem; }
.gallery-thumb { display: block; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: none; cursor: zoom-in; }
.gallery-thumb img { display: block; width: 100%; height: 10rem; object-fit: cover; }
.gallery-thumb:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 10, 14, 0.92); padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: min(90vw, 64rem); max-height: 88vh; border-radius: 6px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.6); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.08); color: #f1efe6; border: none;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
@media (max-width: 40rem) { .lightbox-nav { width: 2.5rem; height: 2.5rem; } .lightbox { padding: 1rem; } }

/* ---- site header: centered masthead row + a separate tinted nav strip
   below it, so the brand and the navigation don't compete for the same
   row - each gets its own centered treatment. ---- */
.site-header { background: var(--paper-raised); }
.site-masthead { padding: 1.15rem 1.5rem; display: flex; justify-content: center;
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 2.4rem; height: 2.4rem; border-radius: 8px; background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.brand .title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.brand .title small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.8125rem; }

.site-nav-bar { background: var(--indigo-tint); border-bottom: 1px solid var(--line);
  display: flex; justify-content: center; padding: 0 1.5rem; }
.site-nav { max-width: 72rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1rem; }
.site-nav a { padding: 0.8rem 0.85rem; font-size: 0.9375rem; color: var(--indigo-strong);
  text-decoration: none; border-bottom: 2.5px solid transparent; opacity: 0.72; }
.site-nav a:hover { opacity: 1; }
.site-nav a.active { opacity: 1; font-weight: 600; border-bottom-color: var(--brass); }

/* ---- editorial band: full-bleed, book-spine shelf silhouette + grain.
   Used on landing/content-rich pages (home, about, documents) - not
   applied everywhere, so it stays a landing-page device rather than a
   template default. ---- */
main:has(.editorial-band) { padding-top: 0; }
.editorial-band {
  position: relative; overflow: hidden; color: #f1efe6;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw;
  padding: 3.75rem 1.5rem 4.75rem;
}
.editorial-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20900%20220%22%20preserveAspectRatio%3D%22none%22%3E%3Cline%20x1%3D%220%22%20y1%3D%22168%22%20x2%3D%22900%22%20y2%3D%22168%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.14%29%22%20stroke-width%3D%221%22/%3E%3Crect%20x%3D%22-10%22%20y%3D%22103%22%20width%3D%2219%22%20height%3D%2265%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2254%22%20width%3D%2211%22%20height%3D%22114%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%2223%22%20y%3D%2258%22%20width%3D%2210%22%20height%3D%22110%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%2234%22%20y%3D%2267%22%20width%3D%2211%22%20height%3D%22101%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%2246%22%20y%3D%22111%22%20width%3D%2216%22%20height%3D%2257%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.16%29%22/%3E%3Crect%20x%3D%2264%22%20y%3D%2250%22%20width%3D%2210%22%20height%3D%22118%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%2275%22%20y%3D%2272%22%20width%3D%2210%22%20height%3D%2296%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%2286%22%20y%3D%2251%22%20width%3D%2210%22%20height%3D%22117%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%2298%22%20y%3D%22104%22%20width%3D%2222%22%20height%3D%2264%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.16%29%22/%3E%3Crect%20x%3D%22121%22%20y%3D%2251%22%20width%3D%2218%22%20height%3D%22117%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%22140%22%20y%3D%2275%22%20width%3D%2215%22%20height%3D%2293%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22158%22%20y%3D%2250%22%20width%3D%2211%22%20height%3D%22118%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22172%22%20y%3D%2259%22%20width%3D%2215%22%20height%3D%22109%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.16%29%22/%3E%3Crect%20x%3D%22189%22%20y%3D%2263%22%20width%3D%2219%22%20height%3D%22105%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.16%29%22/%3E%3Crect%20x%3D%22210%22%20y%3D%2284%22%20width%3D%2220%22%20height%3D%2284%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%22231%22%20y%3D%22112%22%20width%3D%2216%22%20height%3D%2256%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.16%29%22/%3E%3Crect%20x%3D%22249%22%20y%3D%2259%22%20width%3D%2225%22%20height%3D%22109%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22276%22%20y%3D%22113%22%20width%3D%2218%22%20height%3D%2255%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22297%22%20y%3D%22101%22%20width%3D%2222%22%20height%3D%2267%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22320%22%20y%3D%2269%22%20width%3D%2224%22%20height%3D%2299%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22345%22%20y%3D%2282%22%20width%3D%2226%22%20height%3D%2286%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22373%22%20y%3D%2264%22%20width%3D%2224%22%20height%3D%22104%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22398%22%20y%3D%2262%22%20width%3D%2217%22%20height%3D%22106%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22416%22%20y%3D%2265%22%20width%3D%2218%22%20height%3D%22103%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22436%22%20y%3D%22120%22%20width%3D%2220%22%20height%3D%2248%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22458%22%20y%3D%22108%22%20width%3D%2214%22%20height%3D%2260%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22473%22%20y%3D%2286%22%20width%3D%2215%22%20height%3D%2282%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%22489%22%20y%3D%2272%22%20width%3D%2221%22%20height%3D%2296%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22511%22%20y%3D%2265%22%20width%3D%2214%22%20height%3D%22103%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22528%22%20y%3D%22105%22%20width%3D%2217%22%20height%3D%2263%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22548%22%20y%3D%2269%22%20width%3D%2217%22%20height%3D%2299%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22567%22%20y%3D%22103%22%20width%3D%2216%22%20height%3D%2265%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22584%22%20y%3D%2293%22%20width%3D%2213%22%20height%3D%2275%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%22598%22%20y%3D%2299%22%20width%3D%2224%22%20height%3D%2269%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22624%22%20y%3D%22104%22%20width%3D%229%22%20height%3D%2264%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22636%22%20y%3D%2250%22%20width%3D%2220%22%20height%3D%22118%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22657%22%20y%3D%22116%22%20width%3D%2225%22%20height%3D%2252%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22685%22%20y%3D%2272%22%20width%3D%2221%22%20height%3D%2296%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22708%22%20y%3D%2261%22%20width%3D%2212%22%20height%3D%22107%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22721%22%20y%3D%22114%22%20width%3D%2215%22%20height%3D%2254%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%22738%22%20y%3D%22108%22%20width%3D%2214%22%20height%3D%2260%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22755%22%20y%3D%22109%22%20width%3D%2210%22%20height%3D%2259%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22768%22%20y%3D%2254%22%20width%3D%2213%22%20height%3D%22114%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22783%22%20y%3D%22113%22%20width%3D%229%22%20height%3D%2255%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%22795%22%20y%3D%22103%22%20width%3D%2221%22%20height%3D%2265%22%20fill%3D%22rgba%28150%2C114%2C58%2C0.28%29%22/%3E%3Crect%20x%3D%22818%22%20y%3D%2262%22%20width%3D%2220%22%20height%3D%22106%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.10%29%22/%3E%3Crect%20x%3D%22839%22%20y%3D%2263%22%20width%3D%2224%22%20height%3D%22105%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22865%22%20y%3D%22112%22%20width%3D%2218%22%20height%3D%2256%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3Crect%20x%3D%22884%22%20y%3D%2289%22%20width%3D%2219%22%20height%3D%2279%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.08%29%22/%3E%3Crect%20x%3D%22904%22%20y%3D%22120%22%20width%3D%2225%22%20height%3D%2248%22%20fill%3D%22rgba%28255%2C255%2C255%2C0.055%29%22/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(155deg, var(--indigo-strong) 0%, var(--indigo) 55%, #4a4f7c 100%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-size: 100% 100%, 120px 120px, 100% 100%;
  background-position: bottom, top left, top left;
}
.editorial-band-inner { position: relative; max-width: 52rem; margin: 0 auto; }
.editorial-band .kicker {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8125rem; letter-spacing: 0.14em; color: rgba(241,239,230,0.75);
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.editorial-band .kicker::before { content: "◆"; font-size: 0.7em; color: var(--brass); }
.editorial-band h1 {
  font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 600; line-height: 1.28;
  margin: 0 0 0.85rem; text-wrap: balance; color: #f8f6ee;
}
.editorial-band p {
  font-size: 1.0625rem; line-height: 1.75; color: rgba(241,239,230,0.85);
  max-width: 38rem; margin: 0;
}

/* ---- quiet header: for data/utility pages that don't need decoration ---- */
.quiet-header {
  max-width: 72rem; margin: 0 auto 2rem; padding: 2.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.quiet-header .kicker {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--brass);
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.quiet-header .kicker::before { content: "◆"; font-size: 0.7em; }
.quiet-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; margin: 0 0 0.6rem; text-wrap: balance;
}
.quiet-header p { font-size: 1rem; color: var(--ink-soft); line-height: 1.65; max-width: 42rem; margin: 0; }
main:has(.quiet-header) { padding-top: 0; }

main { max-width: 72rem; margin: 0 auto; padding: 2.25rem 1.5rem 4rem; }

.section-label { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.75rem;
  color: var(--brass); font-weight: 600; margin: 0 0 0.9rem; }

/* ---- cards / tables ---- */
.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem;
  font-size: 1rem; line-height: 1.7; }
.card + .card { margin-top: 1.25rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-raised); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 32rem; }
thead th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line); }
tbody td { padding: 0.85rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.good { background: var(--good-tint); color: var(--good); }

/* ---- school search ---- */
.search-row { margin-bottom: 1.5rem; }
.search-input {
  width: 100%; max-width: 28rem; font: inherit; font-size: 1rem;
  padding: 0.7rem 0.95rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper-raised); color: var(--ink);
}
.search-input:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }

/* ---- forms ---- */
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; max-width: 28rem; }
.form-row label { font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  font: inherit; font-size: 1rem; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; }
.form-actions { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.btn { font: inherit; border: none; border-radius: 8px; padding: 0.65rem 1.15rem; font-size: 0.9375rem;
  font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-danger { background: var(--warn); color: #fff; }
.notice { padding: 0.8rem 1.05rem; border-radius: 8px; font-size: 0.9375rem; margin-bottom: 1.25rem; }
.notice.error { background: var(--warn-tint); color: var(--warn); }
.notice.success { background: var(--good-tint); color: var(--good); }

/* ---- admin shell ---- */
.admin-shell { display: grid; grid-template-columns: 15rem 1fr; max-width: 72rem; margin: 2rem auto 4rem;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper-raised);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -20px rgba(35,42,82,0.35); }
@media (max-width: 48rem) { .admin-shell { grid-template-columns: 1fr; margin: 1rem; } }
.admin-nav { background: var(--paper); border-right: 1px solid var(--line); padding: 1.25rem 1rem; }
.admin-nav a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; border-radius: 8px;
  font-size: 0.9375rem; color: var(--ink-soft); text-decoration: none; margin-bottom: 0.1rem; }
.admin-nav a .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.admin-nav a.active { background: var(--indigo-tint); color: var(--indigo-strong); font-weight: 600; }
.admin-nav a.active .dot { background: var(--brass); opacity: 1; }
.admin-main { padding: 1.75rem 2rem 2.25rem; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem;
  gap: 1rem; flex-wrap: wrap; }
.admin-head h2 { font-size: 1.45rem; margin: 0 0 0.2rem; font-weight: 600; }
.admin-head .sub { font-size: 0.9375rem; color: var(--ink-soft); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.9rem; margin-bottom: 1.75rem; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; background: var(--paper); }
.stat .label { font-size: 0.8125rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.stat .value { font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--indigo); }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 1.5rem; text-align: center;
  font-size: 0.875rem; color: var(--ink-soft); }
.site-footer-credit { margin-top: 0.4rem; font-size: 0.75rem; opacity: 0.7; }
