/* geoguess.es — admin console (design.md §6.4): the game's tokens and rail, denser — 13 px base, 32 px rows, a
   vermilion ADMIN tag under the logo, the flavour "the Bridge" in the header only. Colours are tokens only.
   Owner: WP10. */

body { font-size: var(--fs-13); }
.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: linear-gradient(to right, var(--chrome) 236px, transparent 236px); }
body.a-bare .admin { grid-template-columns: minmax(0, 1fr); background: none; }
body.a-bare .a-rail { display: none; }

/* ------------------------------------------------------------------ rail */
.a-rail { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; background: var(--chrome); color: var(--chrome-ink-2); padding: var(--sp-3) var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-2); z-index: var(--z-rail); }
.a-rail-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.a-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--sp-2); text-decoration: none; border-radius: var(--r-2); }
.a-brand img { height: 28px; width: auto; }
.a-brand-sub { display: flex; align-items: center; gap: var(--sp-2); }
.a-flavour { font-family: var(--font-serif); font-style: italic; color: var(--chrome-ink-2); font-size: var(--fs-13); }
.a-nav-wrap { display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); min-height: 0; }
.a-nav { display: flex; flex-direction: column; gap: var(--sp-3); }
.a-nav-label { margin: 0 0 2px; padding: 0 var(--sp-3); font-size: var(--fs-11); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--chrome-ink-2); opacity: .8; }
.a-item { display: flex; align-items: center; gap: var(--sp-2); min-height: 32px; padding: 4px var(--sp-3); border-radius: var(--r-2); color: var(--chrome-ink-2); text-decoration: none; font-weight: 500; }
.a-item .icon { width: 16px; height: 16px; flex: none; opacity: .85; }
.a-item:hover { background: var(--chrome-2); color: var(--chrome-ink); }
.a-item[aria-current] { background: var(--chrome-3); color: var(--chrome-ink); box-shadow: inset 3px 0 0 var(--brass); }
.a-item:focus-visible, .a-brand:focus-visible, .a-rail .icon-btn:focus-visible, .a-rail .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.a-rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-2) var(--sp-1); border-top: 1px solid var(--chrome-3); }
.a-me { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); padding: 0 var(--sp-1); }
.a-me-name { color: var(--chrome-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-me-role { font-size: var(--fs-11); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); }
.a-theme { display: flex; gap: 2px; }
.a-theme-btn { width: 36px; height: 32px; color: var(--chrome-ink-2); }
.a-theme-btn:hover { background: var(--chrome-2); color: var(--chrome-ink); }
.a-theme-btn[aria-pressed="true"] { background: var(--chrome-3); color: var(--chrome-ink); }
.a-theme-btn .icon { width: 16px; height: 16px; }
.a-signout { justify-content: flex-start; color: var(--chrome-ink-2); }
.a-menu-btn { color: var(--chrome-ink); display: none; }
.a-menu-btn:hover { background: var(--chrome-2); color: var(--chrome-ink); }

/* ------------------------------------------------------------------ page */
.a-main { min-width: 0; }
.a-main:focus { outline: none; }
.a-page { padding: var(--sp-6) var(--sp-8) var(--sp-12); max-width: 1440px; }
.a-body { display: flex; flex-direction: column; gap: var(--sp-4); }
.a-head { display: flex; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; justify-content: space-between; }
.a-head-text { min-width: 0; }
.a-head h1 { margin: 2px 0 0; }
.a-head h1:focus { outline: none; }
.a-head .flavour { margin: 2px 0 0; }
.a-head-actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.a-fresh { display: inline-flex; align-items: center; gap: 4px; }
.a-icon-sm { width: 32px; height: 32px; }
.a-icon-sm .icon { width: 16px; height: 16px; }
.a-banner { margin-bottom: var(--sp-4); }
.a-hero { font-family: var(--font-serif); font-size: var(--fs-18); line-height: 1.4; color: var(--ink-2); margin: 0; max-width: 80ch; }
.a-hero b { color: var(--ink); font-weight: 700; }
.a-note { font-size: var(--fs-12); color: var(--ink-3); margin: 0; }

.a-grid { display: grid; gap: var(--sp-4); align-items: start; }
.a-grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.a-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }

.a-card { padding: var(--sp-4); }
.a-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.a-card-head > div:first-child { flex: 1 1 200px; min-width: 0; }
.a-card-head h2 { font-size: var(--fs-18); }
.a-card-head .flavour { margin: 2px 0 0; font-size: var(--fs-13); }
.a-card-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.a-card > .table-scroll { margin: 0 calc(-1 * var(--sp-4)); }
.a-card > .table-scroll .table th:first-child, .a-card > .table-scroll .table td:first-child { padding-left: var(--sp-4); }
.a-card > .table-scroll .table th:last-child, .a-card > .table-scroll .table td:last-child { padding-right: var(--sp-4); }

/* KPI tiles */
.a-kpi { display: flex; flex-direction: column; gap: 4px; padding: var(--sp-3) var(--sp-4); min-height: 112px; position: relative; }
.a-kpi .eyebrow { display: flex; align-items: center; gap: 6px; }
.a-kpi-value { font-weight: 600; font-size: var(--fs-28); line-height: 1.1; margin: 0; color: var(--ink); }
.a-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 22px; }
.a-kpi-spark { position: absolute; right: var(--sp-4); top: var(--sp-3); }
.a-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--sunken); }
.a-chip.good { background: var(--win-soft); }
.a-chip.bad { background: var(--loss-soft); }
.a-chip.good .delta { color: var(--win); }
.a-chip.bad .delta { color: var(--loss); }
.a-chip.eq .delta { color: var(--ink-3); }

/* tables */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > .a-table { width: max-content; min-width: 100%; }
.a-table .flag, .who .flag, .row .flag { max-width: none; flex: none; }
.a-table { font-size: var(--fs-13); }
.table-dense td { height: 32px; }
.table-dense th { height: 28px; }
.a-table th[scope="row"] { font-weight: 500; text-align: left; height: 32px; padding: 0 var(--sp-3); border-bottom: 1px solid var(--rule); background: transparent; text-transform: none; letter-spacing: 0; font-size: var(--fs-13); color: var(--ink); }
.a-table tbody tr:nth-child(5n) th { border-bottom-color: var(--rule-2); }
.a-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-table .c { text-align: center; }
.a-table td, .a-table th { white-space: nowrap; }
.a-table td.wrap, .a-table th.wrap { white-space: normal; min-width: 18ch; max-width: 52ch; }
.a-row-link { cursor: pointer; }
.a-row-link:hover td, .a-row-link:hover th { background: var(--sunken); }
.a-empty-cell { text-align: center; padding: var(--sp-6) var(--sp-3) !important; height: auto !important; white-space: normal !important; }
.a-table .who { max-width: 26ch; }
.flag-none { display: inline-block; width: 20px; }
.a-pill-xs { height: 18px; font-size: var(--fs-11); padding: 0 6px; }
.a-bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--sunken); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.a-bar-fill { display: block; height: 100%; background: var(--accent); }
.a-bar-warn .a-bar-fill { background: var(--warn); }
.a-bar-loss .a-bar-fill { background: var(--loss); }

/* key/value */
.a-kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 6px var(--sp-4); margin: 0; }
.a-kv dt { color: var(--ink-3); font-weight: 500; }
.a-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* filters / toolbars */
.a-toolbar { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.a-search { display: flex; align-items: center; gap: var(--sp-2); flex: 1 1 220px; max-width: 520px; min-width: 0; }
.a-search .input { min-width: 0; }
.a-toolbar { min-width: 0; max-width: 100%; }
.a-toolbar .a-select { max-width: 100%; }
.a-search .icon { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.a-search .input { height: 32px; }
.a-select { height: 32px; width: auto; padding-right: var(--sp-6); }
.segmented label { height: 30px; }
.a-pager { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }

/* attention list */
.a-attn { display: flex; flex-direction: column; gap: 6px; }
.a-attn li { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 8px 10px; border-radius: var(--r-2); background: var(--sunken); }
.a-attn li .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.a-attn .lv-loss { background: var(--loss-soft); color: var(--loss); }
.a-attn .lv-warn { background: var(--warn-soft); color: var(--warn); }
.a-attn .lv-info { background: var(--accent-soft); color: var(--accent); }
.a-attn .lv-ok { background: transparent; color: var(--ink-2); padding: 4px 10px; }
.a-attn .lv-ok .icon { color: var(--win); }
.a-attn a { color: inherit; font-weight: 600; }
.a-attn .a-attn-detail { display: block; font-size: var(--fs-12); opacity: .85; font-weight: 400; }
.a-checks summary { cursor: pointer; color: var(--ink-3); font-size: var(--fs-12); margin-top: var(--sp-2); }

/* lists of people / small rows */
.a-list { display: flex; flex-direction: column; }
.a-list > li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 36px; border-bottom: 1px solid var(--rule); }
.a-list > li:last-child { border-bottom: 0; }
.a-list .meta { color: var(--ink-3); font-size: var(--fs-12); white-space: nowrap; }

/* person */
.a-person-head { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.a-person-head .avatar { width: 56px; height: 56px; font-size: 26px; }
.a-person-name { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.a-person-name h1 { margin: 0; }
.a-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.a-tabs { margin-bottom: var(--sp-3); }
.a-more { position: relative; }
.a-more > summary { list-style: none; }
.a-more > summary::-webkit-details-marker { display: none; }
.a-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: var(--z-dropdown); }
@media (max-width: 899.98px) { .a-more-menu { right: auto; left: 0; } }
.a-danger-item { color: var(--loss) !important; }

/* sign-in, setup */
.a-gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--sp-6) var(--sp-4); }
.a-gate-card { width: min(520px, 100%); display: flex; flex-direction: column; gap: var(--sp-4); }
.a-gate-brand { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 3px double var(--rule-2); }
.a-gate-logo { height: 30px; width: auto; }
.a-logo-night { display: none; }
:root[data-theme="dark"] .a-logo-day { display: none; }
:root[data-theme="dark"] .a-logo-night { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .a-logo-day { display: none; } :root:not([data-theme="light"]) .a-logo-night { display: block; } }
.a-gate h1 { font-size: var(--fs-22); }
.a-code { font-family: var(--font-mono); font-size: var(--fs-22); letter-spacing: .18em; height: 52px; text-align: center; }
.a-dev { border-top: 1px solid var(--rule); padding-top: var(--sp-3); }
.a-dev summary { cursor: pointer; color: var(--ink-3); font-size: var(--fs-12); }
.a-dev form { margin-top: var(--sp-2); }
.a-enrol { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.a-qr { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-2); padding: var(--sp-2); }
.qr { width: 100%; height: auto; }
.qr-bg { fill: var(--raised); }
.qr-ink { fill: var(--ink); }
:root[data-theme="dark"] .qr-bg { fill: var(--ink); }
:root[data-theme="dark"] .qr-ink { fill: var(--page); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qr-bg { fill: var(--ink); } :root:not([data-theme="light"]) .qr-ink { fill: var(--page); } }
.a-steps { list-style: decimal; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.a-secret { font-size: var(--fs-16); letter-spacing: .06em; padding: var(--sp-2) var(--sp-3); background: var(--sunken); border-radius: var(--r-2); margin: 0; overflow-wrap: anywhere; user-select: all; }
.a-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--sp-4); padding: var(--sp-3); background: var(--sunken); border-radius: var(--r-2); font-size: var(--fs-15); }
.a-dialog-actions { justify-content: flex-end; }

/* toasts */
.a-toasts { position: fixed; right: var(--sp-4); bottom: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); z-index: var(--z-toast); width: min(380px, calc(100vw - 2 * var(--sp-4))); }

/* loading */
.a-loading .skeleton { height: 14px; }
.a-sk-0 { width: 40%; height: 28px !important; }
.a-sk-1 { width: 92%; }
.a-sk-2 { width: 76%; }

/* ------------------------------------------------------------------ charts (admin/js/charts.js) */
.ac-fig { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.ac-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.ac-head h3 { font-size: var(--fs-14); }
.ac-flavour { margin: 2px 0 0; font-size: var(--fs-12); color: var(--ink-3); }
.ac-actions { display: flex; gap: var(--sp-2); align-items: center; flex: none; }
.ac-toggle { height: 28px; font-size: var(--fs-12); }
.ac-chart { display: flex; flex-direction: column; gap: var(--sp-2); }
.ac-wrap { position: relative; }
.ac-svg { width: 100%; height: auto; overflow: visible; }
.ac-svg text, .ac-clock text { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.ac-grid { stroke: var(--rule); stroke-width: 1; }
.ac-axis { fill: var(--ink-3); font-size: 11px; }
.ac-cross { stroke: var(--rule-2); stroke-width: 1; }
.ac-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ac-line.dashed { stroke-dasharray: 4 3; }
.ac-spark .ac-line { stroke-width: 1.5; }
.ac-area { opacity: .12; stroke: none; }
.ac-end { font-size: 11px; font-weight: 600; }
.ac-col { stroke: var(--card); stroke-width: .5; }
.s-1 { --s: var(--tc-classical); } .s-2 { --s: var(--tc-bullet); } .s-3 { --s: var(--tc-rapid); } .s-4 { --s: var(--tc-blitz); } .s-5 { --s: var(--team-4); } .s-6 { --s: var(--tc-daily); }
.ac-line.s-1, .ac-line.s-2, .ac-line.s-3, .ac-line.s-4, .ac-line.s-5, .ac-line.s-6 { stroke: var(--s); }
.ac-area[class*="s-"], .ac-col[class*="s-"], .ac-dot[class*="s-"] { fill: var(--s); }
.ac-end[class*="s-"] { fill: var(--s); }
.ac-legend { display: flex; flex-wrap: wrap; gap: 4px var(--sp-4); font-size: var(--fs-12); color: var(--ink-2); }
.ac-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ac-key { width: 14px; height: 10px; border-radius: 2px; background: var(--s); display: inline-block; }
.ac-key.dashed { height: 2px; background: repeating-linear-gradient(90deg, var(--s) 0 4px, transparent 4px 7px); }
.ac-tip { position: absolute; z-index: var(--z-tooltip); pointer-events: none; padding: 6px 8px; border-radius: var(--r-2); background: var(--chrome); color: var(--chrome-ink); font-size: var(--fs-12); display: flex; flex-direction: column; gap: 1px; max-width: 220px; box-shadow: var(--shadow-2); }
.ac-tip b { font-weight: 600; }
.ac-note { margin: var(--sp-2) 0 0; }
.ac-hbars { display: flex; flex-direction: column; gap: 6px; }
.ac-hbar { display: grid; grid-template-columns: minmax(80px, 34%) minmax(0, 1fr) max-content; gap: var(--sp-2); align-items: center; font-size: var(--fs-13); }
.ac-hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-hbar-track { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.ac-hbar-fill { display: block; height: 100%; background: var(--s, var(--accent)); border-radius: 4px; }
.ac-hbar-value { text-align: right; min-width: 6ch; }
.ac-cell.d-0 { fill: var(--sunken); }
.d-1 { --d: var(--depth-1); } .d-2 { --d: var(--depth-2); } .d-3 { --d: var(--depth-3); } .d-4 { --d: var(--depth-4); }
.d-5 { --d: var(--depth-5); } .d-6 { --d: var(--depth-6); } .d-7 { --d: var(--depth-7); } .d-8 { --d: var(--depth-8); }
.ac-cell[class*=" d-"]:not(.d-0), .ac-land[class*=" d-"]:not(.d-0) { fill: var(--d); }
.ac-ramp { display: flex; align-items: center; gap: 2px; }
.ac-ramp span:first-child { margin-right: 4px; }
.ac-ramp span:last-child { margin-left: 4px; }
.ac-ramp-cell { width: 14px; height: 10px; border-radius: 2px; background: var(--d); }
.ac-clock { width: 100%; max-width: 240px; height: auto; margin: 0 auto; }
.ac-clock-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.ac-clock-bar { fill: var(--accent); opacity: .85; }
.ac-map-wrap { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); }
.ac-world { width: 100%; height: auto; display: block; }
.ac-sea { fill: var(--map-water); }
.ac-land { stroke: var(--card); stroke-width: .15; }
.ac-land.d-0 { fill: var(--map-land); }
.ac-city { fill: var(--loss); fill-opacity: .7; stroke: var(--card); stroke-width: .2; }
.ac-map-legend { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.ac-dot-key { display: inline-flex; align-items: center; gap: 6px; }
.ac-city-key { width: 8px; height: 8px; border-radius: 50%; background: var(--loss); opacity: .7; display: inline-block; }
.ac-funnel { display: flex; flex-direction: column; gap: 6px; }
.ac-funnel-step { display: grid; grid-template-columns: minmax(150px, 24%) minmax(0, 1fr) 8ch 15ch; gap: var(--sp-3); align-items: center; }
.ac-funnel-label { display: flex; gap: var(--sp-2); align-items: baseline; font-weight: 500; }
.ac-funnel-bar { height: 18px; background: var(--sunken); border-radius: var(--r-1); overflow: hidden; }
.ac-funnel-fill { display: block; height: 100%; background: var(--accent); }
.ac-funnel-val { text-align: right; font-weight: 600; }
.ac-funnel-conv { color: var(--ink-3); }

/* cohort table */
.a-cohort td.r { min-width: 46px; }
.a-cohort .c0 { background: transparent; }
.a-cohort [class*="cb-"] { color: var(--depth-ink); }
.a-cohort .cb-1 { background: var(--depth-1); color: var(--ink); } .a-cohort .cb-2 { background: var(--depth-2); color: var(--ink); } .a-cohort .cb-3 { background: var(--depth-3); color: var(--ink); }
.a-cohort .cb-4 { background: var(--depth-4); } .a-cohort .cb-5 { background: var(--depth-5); } .a-cohort .cb-6 { background: var(--depth-6); } .a-cohort .cb-7 { background: var(--depth-7); } .a-cohort .cb-8 { background: var(--depth-8); }

/* game detail */
.a-round { border-top: 1px solid var(--rule); padding-top: var(--sp-3); }
.a-round:first-child { border-top: 0; padding-top: 0; }
.a-round-head { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: baseline; margin-bottom: var(--sp-2); }
.a-chat { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.a-chat li { display: flex; gap: var(--sp-2); font-size: var(--fs-13); }
.a-chat .t { color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.a-events { max-height: 420px; overflow: auto; }
.a-json { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.a-pin-map { position: relative; }

/* settings */
.a-setting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.a-setting:last-child { border-bottom: 0; }
.a-setting-label { font-weight: 600; margin: 0 0 2px; }
.a-setting .micro { margin: 0; }
.a-flags { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.a-inline { display: inline-flex; align-items: center; gap: 4px; }
.a-num { width: 90px; height: 32px; }
.a-truth { fill: none; stroke: var(--win); stroke-width: .35; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1279.98px) { .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1099.98px) {
  .g-2, .g-3, .g-21, .g-12 { grid-template-columns: minmax(0, 1fr); }
  .a-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899.98px) {
  .admin { grid-template-columns: 1fr; background: none; }
  .a-rail { position: sticky; top: 0; height: auto; max-height: 100vh; max-height: 100dvh; padding: var(--sp-2) var(--sp-3); }
  .a-brand { flex-direction: row; align-items: center; padding: var(--sp-1); }
  .a-brand img { height: 24px; }
  .a-menu-btn { display: inline-grid; }
  .a-nav-wrap { display: none; }
  .a-rail.open .a-nav-wrap { display: flex; padding-bottom: var(--sp-3); }
  .a-rail.open { overflow-y: auto; }
  .a-page { padding: var(--sp-4) var(--sp-4) var(--sp-10); }
  .a-enrol { grid-template-columns: minmax(0, 1fr); }
  .a-enrol .a-qr { max-width: 240px; }
  .ac-funnel-step { grid-template-columns: minmax(0, 1fr) 7ch; }
  .ac-funnel-bar, .ac-funnel-conv { grid-column: 1 / -1; }
  .ac-funnel-bar { order: 3; }
  .ac-funnel-conv { order: 4; }
}
@media (max-width: 379.98px) { .a-flavour { display: none; } }
@media (max-width: 479.98px) {
  .a-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2); }
  .a-kpi { padding: var(--sp-3); min-height: 96px; }
  .a-kpi-value { font-size: var(--fs-22); }
  .a-kpi-spark { display: none; }
  .a-codes { grid-template-columns: minmax(0, 1fr); }
  .a-kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .a-kv dd { margin-bottom: var(--sp-2); }
  .a-head-actions { width: 100%; }
  .a-setting { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
}
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }
