/* =============================================================================
   AAsset Protect & Retrieve — design system v4 ("Control Room")
   One stylesheet for the public site, the customer portal and admin.
   -----------------------------------------------------------------------------
   Direction: graphite surfaces taken from the logo's black plate, one signal
   accent (the lime of the "AA" mark), gold kept for small premium touches,
   status colours (good / warn / bad / info) reserved for meaning.
   Typography: Saira (display, echoes the wide wordmark), Inter (UI + body),
   JetBrains Mono (registrations, IMEIs, times, money columns).
   Never hard-code colours in pages — use the tokens below.
   Legacy `--ds-*` tokens and `.ds-*` components are re-mapped at the bottom so
   older page markup renders in this theme too.
   ============================================================================= */

:root {
    color-scheme: dark;

    /* Surfaces (darkest → lightest) */
    --ink-0: #060807;
    --ink-1: #0B0E0D;   /* page */
    --ink-2: #111514;   /* panels / cards */
    --ink-3: #171C1A;   /* raised, table header */
    --ink-4: #1E2421;   /* inputs, hover */
    --ink-5: #29302D;   /* strong borders, scrollbars */
    --line:   rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --line-3: rgba(255, 255, 255, 0.22);

    /* Text */
    --text:   #EEF2F0;
    --text-2: #B6C0BB;  /* secondary — 9:1 on --ink-2 */
    --text-3: #8C9792;  /* tertiary  — 5.4:1 on --ink-2 */
    --text-on-accent: #0A0D0B;

    /* Brand */
    --lime:      #A3E635;
    --lime-hi:   #BEF264;
    --lime-lo:   #84CC16;
    --lime-soft: rgba(163, 230, 53, 0.12);
    --lime-line: rgba(163, 230, 53, 0.38);
    --gold:      #E3B65A;
    --gold-soft: rgba(227, 182, 90, 0.12);
    --gold-line: rgba(227, 182, 90, 0.36);

    /* TV programme cards ("As seen on TV", homepage) — programme colours, not status */
    --tv-red:    #EF4444;
    --tv-purple: #8B5CF6;

    /* Status (meaning only) */
    --good: #4ADE80;  --good-soft: rgba(74, 222, 128, 0.12);  --good-line: rgba(74, 222, 128, 0.36);
    --warn: #FBBF24;  --warn-soft: rgba(251, 191, 36, 0.12);  --warn-line: rgba(251, 191, 36, 0.38);
    --bad:  #F87171;  --bad-soft:  rgba(248, 113, 113, 0.12); --bad-line:  rgba(248, 113, 113, 0.40);
    --info: #60A5FA;  --info-soft: rgba(96, 165, 250, 0.12);  --info-line: rgba(96, 165, 250, 0.38);

    /* Type */
    --font-display: 'Saira', 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --fs-xs: 12px; --fs-sm: 14px; --fs-base: 16px; --fs-md: 18px; --fs-lg: 20px;
    --fs-xl: 24px; --fs-2xl: 30px; --fs-3xl: 38px; --fs-4xl: 48px;

    /* Space (4pt scale) */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
    --sp-7: 32px; --sp-8: 40px; --sp-9: 56px; --sp-10: 72px; --sp-11: 96px;

    /* Shape & depth */
    --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 999px;
    --sh-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.7);
    --sh-3: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
    --glow-lime: 0 0 0 1px var(--lime-line), 0 10px 30px -10px rgba(163, 230, 53, 0.35);

    /* Motion */
    --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* Layout */
    --container: 1200px;
    --container-narrow: 760px;
    --sidebar-w: 248px;
    --header-h: 68px;
}

/* -----------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink-1);
    color: var(--text);
    font: 400 var(--fs-base)/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: var(--lime-hi); }
p { margin: 0 0 var(--sp-4); }
h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: 1.2; color: var(--text); font-weight: 700; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.2vw, var(--fs-4xl)); }
h2 { font-size: clamp(24px, 3vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-base); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
::selection { background: var(--lime); color: var(--text-on-accent); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.input--upper { text-transform: uppercase; }
.stats + .panel, .stats + .grid, .panel + .stats { margin-top: var(--sp-5); }
.table-tools .select { width: auto; min-height: 40px; }
.table tr.is-off td { opacity: .55; }
.skip-link {
    position: absolute; left: var(--sp-3); top: -60px; z-index: 1000;
    background: var(--lime); color: var(--text-on-accent); padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-md); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); }
.sr-only, .ds-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* Scrollbars (Chromium/Edge) */
* { scrollbar-color: var(--ink-5) transparent; }

/* -----------------------------------------------------------------------------
   Layout primitives
   ----------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-10) 0; position: relative; }
.section--tight { padding: var(--sp-8) 0; }
.section--alt { background: var(--ink-0); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   Text helpers
   ----------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    font: 600 var(--fs-xs)/1.4 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--lime);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--plain::before { display: none; }
.eyebrow--gold { color: var(--gold); }
.lead { font-size: var(--fs-md); color: var(--text-2); line-height: 1.65; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.reg {
    display: inline-block; font: 700 var(--fs-sm)/1 var(--font-mono); letter-spacing: 0.06em;
    padding: 5px 8px; border-radius: 4px; background: #F7D117; color: #111; white-space: nowrap;
}
.reg--front { background: #F4F4F0; }
.reg.is-pending { outline: 2px dashed var(--warn); outline-offset: 2px; }
.reg.is-rejected { opacity: .55; text-decoration: line-through; }
.subhead { font: 700 var(--fs-xs)/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: var(--sp-5) 0 var(--sp-2); }
.codeblock { display: block; font: 500 13px/1.6 var(--font-mono); background: var(--ink-0); border: 1px solid var(--line); border-radius: var(--r-md);
             padding: var(--sp-3) var(--sp-4); overflow-x: auto; white-space: pre; color: var(--text-2); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: var(--sp-2) !important; } .mt-4 { margin-top: var(--sp-4) !important; } .mt-6 { margin-top: var(--sp-6) !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--sp-2) !important; } .mb-4 { margin-bottom: var(--sp-4) !important; } .mb-6 { margin-bottom: var(--sp-6) !important; }

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--ink-4); --btn-fg: var(--text); --btn-bd: var(--line-2);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 44px; padding: 0 var(--sp-5);
    font: 600 var(--fs-sm)/1 var(--font-sans); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
    color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: var(--r-md);
    cursor: pointer; user-select: none;
    transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.btn:hover { --btn-bg: var(--ink-5); --btn-bd: var(--line-3); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { --btn-bg: var(--lime); --btn-fg: var(--text-on-accent); --btn-bd: var(--lime); }
.btn--primary:hover { --btn-bg: var(--lime-hi); --btn-bd: var(--lime-hi); box-shadow: var(--glow-lime); }
.btn--ghost { --btn-bg: transparent; --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.05); }
.btn--quiet { --btn-bg: transparent; --btn-bd: transparent; color: var(--text-2); }
.btn--quiet:hover { --btn-bg: rgba(255, 255, 255, 0.05); --btn-bd: transparent; color: var(--text); }
.btn--danger { --btn-bg: transparent; --btn-fg: var(--bad); --btn-bd: var(--bad-line); }
.btn--danger:hover { --btn-bg: var(--bad-soft); --btn-bd: var(--bad); }
.btn--danger-solid { --btn-bg: #DC2626; --btn-fg: #fff; --btn-bd: #DC2626; }
.btn--danger-solid:hover { --btn-bg: #EF4444; --btn-bd: #EF4444; }
.btn--good { --btn-bg: var(--good-soft); --btn-fg: var(--good); --btn-bd: var(--good-line); }
.btn--warn { --btn-bg: var(--warn-soft); --btn-fg: var(--warn); --btn-bd: var(--warn-line); }
.btn--whatsapp { --btn-bg: #1FAF55; --btn-fg: #fff; --btn-bd: #1FAF55; }
.btn--whatsapp:hover { --btn-bg: #25D366; --btn-bd: #25D366; }
.btn--sm { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
.btn--lg { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 44px; }
.btn--sm.btn--icon { width: 36px; }
.btn[disabled], .btn.is-disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
    content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-link { background: none; border: 0; padding: 0; color: var(--lime); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .btn--sm { min-height: 44px; } .btn--sm.btn--icon { width: 44px; } }

/* -----------------------------------------------------------------------------
   Panels / cards  (.panel > .ph + .pb)
   ----------------------------------------------------------------------------- */
.panel {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-1); min-width: 0;
}
.panel + .panel { margin-top: var(--sp-5); }
.ph {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
    padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line);
}
.ph h2, .ph h3, .ph .ph-title { margin: 0; font: 600 var(--fs-base)/1.3 var(--font-sans); letter-spacing: 0; }
.ph .ph-sub { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--text-3); }
.pb { padding: var(--sp-5); }
.pb--flush { padding: 0; }
.pf { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); display: flex; gap: var(--sp-3); justify-content: flex-end; flex-wrap: wrap; }
.panel--accent { border-color: var(--lime-line); box-shadow: var(--glow-lime); }
.panel--raised { background: var(--ink-3); }
.panel--warn { border-color: var(--warn-line); }
.panel--bad { border-color: var(--bad-line); }
.card {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: var(--sp-6); box-shadow: var(--sh-1); min-width: 0;
}
.card--link { transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.card--link:hover { border-color: var(--line-3); transform: translateY(-2px); }
.icon-tile {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0;
    border-radius: var(--r-md); background: var(--lime-soft); color: var(--lime); border: 1px solid var(--lime-line);
}
.icon-tile svg { width: 22px; height: 22px; }

/* -----------------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label {
    font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}
.field .req, .req { color: var(--bad); margin-left: 2px; }
.hint { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.field-error { font-size: var(--fs-xs); color: var(--bad); font-weight: 600; }
.input, .select, .textarea,
input[type="text"]:not([class]), input[type="email"]:not([class]), input[type="password"]:not([class]),
input[type="number"]:not([class]), input[type="tel"]:not([class]), input[type="date"]:not([class]),
input[type="datetime-local"]:not([class]), input[type="search"]:not([class]), input[type="url"]:not([class]),
select:not([class]), textarea:not([class]) {
    width: 100%; min-height: 44px; padding: 10px 12px;
    font: 400 var(--fs-base)/1.4 var(--font-sans); color: var(--text);
    background: var(--ink-4); border: 1px solid var(--line-2); border-radius: var(--r-md);
    transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.textarea, textarea:not([class]) { min-height: 110px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus,
input:not([class]):focus, select:not([class]):focus, textarea:not([class]):focus {
    outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); background: var(--ink-3);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.input:disabled, .select:disabled, .textarea:disabled, .input[readonly] { opacity: 0.6; cursor: not-allowed; }
.select, select:not([class]) {
    appearance: none; padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23B6C0BB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.input--mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.input--sm { min-height: 36px; padding: 6px 10px; font-size: var(--fs-sm); }
.check { display: inline-flex; align-items: flex-start; gap: var(--sp-2); cursor: pointer; font-size: var(--fs-sm); color: var(--text); min-height: 28px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lime); flex-shrink: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--lime); }
.form-actions { display: flex; gap: var(--sp-3); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--sp-6); }
.form-actions--start { justify-content: flex-start; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); margin: 0; }
legend { padding: 0 var(--sp-2); font-weight: 600; color: var(--text-2); font-size: var(--fs-sm); }
.input-group { display: flex; }
.input-group > .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-prefix > .input { padding-left: 28px; }

/* -----------------------------------------------------------------------------
   Badges / pills / status dot
   ----------------------------------------------------------------------------- */
.badge {
    --b-fg: var(--text-2); --b-bg: rgba(255, 255, 255, 0.06); --b-bd: var(--line-2);
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; min-height: 24px;
    font: 600 var(--fs-xs)/1.2 var(--font-sans); letter-spacing: 0.02em; white-space: nowrap;
    color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--b-bd); border-radius: var(--r-full);
}
.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--good { --b-fg: var(--good); --b-bg: var(--good-soft); --b-bd: var(--good-line); }
.badge--warn { --b-fg: var(--warn); --b-bg: var(--warn-soft); --b-bd: var(--warn-line); }
.badge--bad  { --b-fg: var(--bad);  --b-bg: var(--bad-soft);  --b-bd: var(--bad-line); }
.badge--info { --b-fg: var(--info); --b-bg: var(--info-soft); --b-bd: var(--info-line); }
.badge--lime { --b-fg: var(--lime); --b-bg: var(--lime-soft); --b-bd: var(--lime-line); }
.badge--gold { --b-fg: var(--gold); --b-bg: var(--gold-soft); --b-bd: var(--gold-line); }
.badge--live::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* -----------------------------------------------------------------------------
   Alerts + toast notices (showNotice)
   ----------------------------------------------------------------------------- */
.alert {
    --a-c: var(--info); --a-bg: var(--info-soft); --a-bd: var(--info-line);
    display: flex; gap: var(--sp-3); align-items: flex-start;
    padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); margin: 0 0 var(--sp-5);
    background: var(--a-bg); border: 1px solid var(--a-bd); color: var(--text); font-size: var(--fs-sm);
}
.alert::before { content: ""; width: 4px; align-self: stretch; border-radius: 4px; background: var(--a-c); flex-shrink: 0; }
.alert strong { color: var(--a-c); }
.alert--good { --a-c: var(--good); --a-bg: var(--good-soft); --a-bd: var(--good-line); }
.alert--warn { --a-c: var(--warn); --a-bg: var(--warn-soft); --a-bd: var(--warn-line); }
.alert--bad  { --a-c: var(--bad);  --a-bg: var(--bad-soft);  --a-bd: var(--bad-line); }
.alert > :last-child { margin-bottom: 0; }

.notice-stack {
    position: fixed; z-index: 900; right: var(--sp-5); bottom: var(--sp-5);
    display: flex; flex-direction: column; gap: var(--sp-2); width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.notice {
    --n-c: var(--info);
    pointer-events: auto; display: flex; gap: var(--sp-3); align-items: flex-start;
    padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
    background: var(--ink-3); border: 1px solid var(--line-2); border-left: 4px solid var(--n-c);
    box-shadow: var(--sh-3); font-size: var(--fs-sm); color: var(--text);
    animation: notice-in var(--dur-3) var(--ease);
}
.notice--good { --n-c: var(--good); } .notice--warn { --n-c: var(--warn); } .notice--bad { --n-c: var(--bad); }
.notice__text { flex: 1; }
.notice__close { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 2px; min-width: 28px; min-height: 28px; font-size: 18px; line-height: 1; }
.notice__close:hover { color: var(--text); }
.notice.is-leaving { animation: notice-out var(--dur-2) var(--ease) forwards; }
@keyframes notice-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes notice-out { to { opacity: 0; transform: translateY(6px); } }
@media (max-width: 680px) { .notice-stack { right: 16px; left: 16px; bottom: 16px; width: auto; } }

/* -----------------------------------------------------------------------------
   Confirm dialog (NW-style data-confirm → aapr.js)
   ----------------------------------------------------------------------------- */
.dialog {
    border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 0; background: var(--ink-3); color: var(--text);
    width: min(460px, calc(100vw - 32px)); box-shadow: var(--sh-3);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(3px); }
.dialog__body { padding: var(--sp-6); }
.dialog__title { font: 700 var(--fs-lg)/1.3 var(--font-sans); margin: 0 0 var(--sp-2); }
.dialog__text { color: var(--text-2); margin: 0; font-size: var(--fs-sm); white-space: pre-line; }
.dialog__actions { display: flex; gap: var(--sp-3); justify-content: flex-end; padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); flex-wrap: wrap; }
.dialog .field { margin-top: var(--sp-4); }

/* -----------------------------------------------------------------------------
   Stats tiles
   ----------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); }
@media (max-width: 480px) { .stats { gap: var(--sp-3); } .stat { padding: var(--sp-3) var(--sp-4); } .stat__value { font-size: var(--fs-xl); } }
.stat {
    --s-c: var(--text);
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-5); min-width: 0; position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--s-c); opacity: .9; }
.stat__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.stat__value { font: 700 var(--fs-2xl)/1.15 var(--font-display); color: var(--text); margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: var(--fs-xs); color: var(--text-3); margin-top: 4px; }
a.stat { text-decoration: none; color: inherit; transition: border-color var(--dur-2) var(--ease); }
a.stat:hover { border-color: var(--line-3); }
.stat--good { --s-c: var(--good); } .stat--warn { --s-c: var(--warn); } .stat--bad { --s-c: var(--bad); }
.stat--info { --s-c: var(--info); } .stat--lime { --s-c: var(--lime); }
.stat--good .stat__value { color: var(--good); } .stat--warn .stat__value { color: var(--warn); } .stat--bad .stat__value { color: var(--bad); }

/* -----------------------------------------------------------------------------
   Tables  (.table-wrap > table.table[data-sortable][data-page-size])
   ----------------------------------------------------------------------------- */
.table-tools { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line); }
.table-tools .input { max-width: 320px; min-height: 40px; }
.table-tools .spacer { flex: 1; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
    border-radius: var(--r-full); border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
    font: 600 var(--fs-xs)/1 var(--font-sans); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--line-3); color: var(--text); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--lime-soft); border-color: var(--lime-line); color: var(--lime); }
.chip__count { font-family: var(--font-mono); font-weight: 500; opacity: .8; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
    position: sticky; top: 0; z-index: 1;
    text-align: left; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-3); background: var(--ink-3); padding: 10px var(--sp-4); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.table td { padding: 12px var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur-1) var(--ease); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tr.is-link { cursor: pointer; }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn + .btn, .table .actions form + .btn, .table .actions .btn + form { margin-left: 6px; }
.table .actions form { display: inline; }
.table .primary { font-weight: 600; color: var(--text); }
.table .sub { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { color: var(--text); }
.table th[data-sort]::after { content: " \2195"; opacity: .35; }
.table th[aria-sort="ascending"]::after { content: " \2191"; opacity: 1; color: var(--lime); }
.table th[aria-sort="descending"]::after { content: " \2193"; opacity: 1; color: var(--lime); }
.table--compact td { padding: 8px var(--sp-4); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager .btn { min-width: 36px; }
.pager .is-current { --btn-bg: var(--lime-soft); --btn-bd: var(--lime-line); color: var(--lime); }
/* Phone: stacked rows become cards — add class "stack" + td[data-label] */
@media (max-width: 760px) {
    .table.stack thead { display: none; }
    .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
    .table.stack tr { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
    .table.stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: var(--sp-3); text-align: right; }
    .table.stack td::before { content: attr(data-label); color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-align: left; flex-shrink: 0; }
    .table.stack td[data-label=""]::before, .table.stack td:not([data-label])::before { display: none; }
    .table.stack td.actions { justify-content: flex-end; padding-top: var(--sp-2); }
}

/* -----------------------------------------------------------------------------
   Empty / loading states
   ----------------------------------------------------------------------------- */
.empty { text-align: center; padding: var(--sp-9) var(--sp-5); color: var(--text-2); }
.empty__icon { width: 48px; height: 48px; margin: 0 auto var(--sp-3); color: var(--text-3); }
.empty__title { font-weight: 700; color: var(--text); font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.empty p { max-width: 420px; margin: 0 auto var(--sp-4); font-size: var(--fs-sm); }
.skeleton { background: linear-gradient(90deg, var(--ink-3), var(--ink-4), var(--ink-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* -----------------------------------------------------------------------------
   Tabs
   ----------------------------------------------------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: var(--sp-5); }
.tab {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--sp-4);
    color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.is-active, .tab[aria-selected="true"] { color: var(--lime); border-bottom-color: var(--lime); }

/* -----------------------------------------------------------------------------
   Key/value list
   ----------------------------------------------------------------------------- */
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px var(--sp-4); margin: 0; font-size: var(--fs-sm); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }

/* =============================================================================
   APP SHELL — admin + portal (sidebar on desktop, drawer on phone)
   ============================================================================= */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.app-side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column; background: var(--ink-0); border-right: 1px solid var(--line);
}
.app-brand { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-3); text-decoration: none; border-bottom: 1px solid var(--line); }
.app-brand img { width: 100%; max-width: 196px; height: auto; display: block; }
.app-brand__tag { display: inline-block; margin: 0 var(--sp-4) 0; }
.app-nav { padding: var(--sp-3) var(--sp-2); display: flex; flex-direction: column; gap: 2px; }
.app-nav__group { padding: var(--sp-4) var(--sp-3) var(--sp-1); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.app-nav a {
    display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; padding: 0 var(--sp-3);
    border-radius: var(--r-md); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.app-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.app-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.app-nav a.is-active { background: var(--lime-soft); color: var(--lime); box-shadow: inset 2px 0 0 var(--lime); }
.app-nav a .count { margin-left: auto; font: 600 11px/1 var(--font-mono); padding: 3px 6px; border-radius: var(--r-full); background: var(--warn-soft); color: var(--warn); }
.app-side__foot { margin-top: auto; padding: var(--sp-3) var(--sp-2) var(--sp-4); border-top: 1px solid var(--line); }
.app-user { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3) var(--sp-3); min-width: 0; }
.avatar {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink-4); border: 1px solid var(--line-2); color: var(--lime); font-weight: 700; font-size: var(--fs-sm);
}
.app-user__name { font-size: var(--fs-sm); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user__role { font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top {
    position: sticky; top: 0; z-index: 50; display: none; align-items: center; gap: var(--sp-3);
    height: 60px; padding: 0 var(--sp-4); background: rgba(11, 14, 13, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.app-top img { height: 30px; width: auto; }
.app-top__enq { margin-left: auto; }
.app-top__enq .count { font: 600 11px/1 var(--font-mono); padding: 3px 6px; border-radius: var(--r-full); background: var(--warn-soft); color: var(--warn); }
.app-body { padding: var(--sp-7) var(--sp-7) var(--sp-9); width: 100%; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.page-head h1 { font-size: clamp(24px, 2.4vw, var(--fs-2xl)); margin: 0; }
.page-head .sub { margin: 6px 0 0; color: var(--text-2); font-size: var(--fs-sm); max-width: 760px; }
.page-head .crumbs { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 6px; }
.page-head .crumbs a { color: var(--text-2); text-decoration: none; }
.page-head .crumbs a:hover { color: var(--lime); }
.actions-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.app-scrim { display: none; }
@media (max-width: 960px) {
    .app { grid-template-columns: 1fr; }
    .app-top { display: flex; }
    .app-side {
        position: fixed; z-index: 200; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100%;
        transform: translateX(-100%); transition: transform var(--dur-3) var(--ease); box-shadow: var(--sh-3);
    }
    .app.is-nav-open .app-side { transform: none; }
    .app.is-nav-open .app-scrim { display: block; position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .6); }
    .app-body { padding: var(--sp-5) var(--sp-4) var(--sp-8); }
}

/* Auth screens (login, reset, verify) */
.auth {
    min-height: 100vh; display: grid; place-items: center; padding: var(--sp-6) var(--sp-4);
    background:
        radial-gradient(700px 360px at 50% -10%, rgba(163, 230, 53, 0.10), transparent 70%),
        var(--ink-1);
}
.auth-card { width: 100%; max-width: 440px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: var(--sp-7); }
.auth-brand { display: block; margin: 0 auto var(--sp-6); max-width: 240px; }
.auth-brand img { display: block; width: 100%; }
.auth-card h1 { font-size: var(--fs-xl); text-align: center; margin-bottom: var(--sp-1); }
.auth-card .auth-sub { text-align: center; color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--sp-6); }
.auth-card form > * + * { margin-top: var(--sp-4); }
.auth-foot { margin-top: var(--sp-6); text-align: center; font-size: var(--fs-sm); color: var(--text-3); }
.auth-foot a { color: var(--text-2); }
.auth-foot a:hover { color: var(--lime); }
.pw-toggle { position: relative; }
.pw-toggle .input { padding-right: 52px; }
.pw-toggle button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; background: none; border: 0; color: var(--text-2); font: 600 var(--fs-xs)/1 var(--font-sans); cursor: pointer; border-radius: var(--r-sm); }
.pw-toggle button:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* =============================================================================
   PUBLIC SITE — header, footer, marketing sections
   ============================================================================= */
.site-util { background: var(--ink-0); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-2); }
.site-util .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 36px; }
.site-util a { color: var(--text-2); text-decoration: none; }
.site-util a:hover { color: var(--lime); }
.site-util__left, .site-util__right { display: flex; gap: var(--sp-5); align-items: center; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--good); font-weight: 600; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); animation: pulse 1.8s ease-in-out infinite; }
@media (max-width: 680px) { .site-util__right { display: none; } }

.site-head {
    position: sticky; top: 0; z-index: 100; background: rgba(11, 14, 13, 0.86);
    backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line);
}
.site-head .container { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.site-brand { display: block; flex-shrink: 0; }
.site-brand img { display: block; height: 44px; width: auto; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-md);
    color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a.is-active { color: var(--lime); }
.site-head__cta { display: flex; gap: var(--sp-2); align-items: center; }
.site-menu-btn { display: none; }
.site-drawer { display: none; }
/* Eight menu items: tighten up before the phone menu takes over ("Customer portal" stays in the top strip) */
@media (max-width: 1240px) {
    .site-head .container { gap: var(--sp-4); }
    .site-nav a { padding: 0 var(--sp-2); }
    .site-head__cta .btn--ghost:not(.site-menu-btn) { display: none; }
}
@media (max-width: 1040px) {
    .site-nav, .site-head__cta .btn--ghost:not(.site-menu-btn) { display: none; }
    .site-head__cta { margin-left: auto; }
    .site-head__cta .site-menu-btn { display: inline-flex; }
    .site-drawer { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 99; max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto;
        background: var(--ink-1); border-bottom: 1px solid var(--line); padding: var(--sp-3) var(--sp-4) var(--sp-6);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2); }
    .site-drawer.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
    .site-drawer a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 var(--sp-2); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
    .site-drawer .row { margin-top: var(--sp-5); }
    .site-drawer a.site-drawer__staff { justify-content: center; border-bottom: 0; min-height: 44px; margin-top: var(--sp-2); color: var(--text-3); font-size: var(--fs-sm); }
    .site-drawer .row .btn { flex: 1; }
}
@media (max-width: 420px) { .site-brand img { height: 36px; } .site-head__cta .btn--primary { padding: 0 var(--sp-3); } }

.site-foot { background: var(--ink-0); border-top: 1px solid var(--line); padding: var(--sp-9) 0 var(--sp-6); font-size: var(--fs-sm); color: var(--text-2); }
.site-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-7); }
.site-foot__brand img { width: 220px; display: block; margin-bottom: var(--sp-4); }
.site-foot h2 { font: 700 var(--fs-xs)/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--sp-3); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-foot a:hover { color: var(--lime); }
.site-foot__contact a { color: var(--text); font-weight: 600; }
.site-foot__address { font-style: normal; }
.site-foot__address span { color: var(--text-3); }
.site-foot__trust { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); }
.site-foot__trust b { color: var(--text-2); font-weight: 600; }
.site-foot__bottom { display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); }
.site-foot__bottom nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
@media (max-width: 900px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* Brand watermark — the logo, very faint, fixed behind the page as you scroll.
   Sits above section backgrounds (screen blend only lightens) but never takes clicks. */
.page-watermark {
    position: fixed; inset: 0; z-index: 60; pointer-events: none; user-select: none;
    background: url('../img/brand/logo-wordmark.png') center 58% / min(1100px, 94vw) auto no-repeat;
    opacity: .07; mix-blend-mode: screen;
}
@media (max-width: 768px) { .page-watermark { opacity: .05; background-size: 130vw auto; } }
/* Admin / portal: same mark, centred on the content area (right of the sidebar), a touch fainter over tables */
.page-watermark--app { opacity: .05; background-position: calc(50% + var(--sidebar-w) / 2) 58%; background-size: min(900px, 70vw) auto; }
@media (max-width: 960px) { .page-watermark--app { background-position: center 58%; background-size: 130vw auto; } }
@media (prefers-reduced-transparency: reduce) { .page-watermark { display: none; } }
@media print { .page-watermark { display: none; } }


/* Cookie choice bar (Google Analytics consent) */
.consent {
    position: fixed; z-index: 950; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); margin: 0 auto; max-width: 880px;
    display: flex; gap: var(--sp-4) var(--sp-6); align-items: center; justify-content: space-between; flex-wrap: wrap;
    padding: var(--sp-4) var(--sp-5); background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-3);
}
.consent__text { flex: 1 1 360px; font-size: var(--fs-sm); color: var(--text-2); }
.consent__text strong { color: var(--text); display: block; margin-bottom: 2px; }
.consent__text p { margin: 0; }
.consent__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
body.has-consent-bar { padding-bottom: 140px; }
@media (max-width: 560px) { .consent__actions { width: 100%; } .consent__actions .btn { flex: 1; } body.has-consent-bar { padding-bottom: 210px; } }
.site-foot__cookies { color: var(--text-3); font-size: var(--fs-xs); text-decoration: none; min-height: 32px; }
.site-foot__cookies:hover { color: var(--lime); }

/* Section heads */
.sec-head { max-width: 760px; margin: 0 auto var(--sp-8); text-align: center; }
.sec-head .eyebrow { justify-content: center; }
.sec-head h2 { margin-top: var(--sp-3); }
.sec-head .lead { margin: var(--sp-3) auto 0; }
.sec-head--left { text-align: left; margin-left: 0; }
.sec-head--left .eyebrow { justify-content: flex-start; }

/* Reveal on scroll (aapr.js adds .is-in) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Print: documents stay readable on paper */
@media print {
    :root { color-scheme: light; }
    body { background: #fff; color: #000; }
    .app-side, .app-top, .site-head, .site-util, .site-foot, .notice-stack, .no-print { display: none !important; }
    .app { display: block; }
    .panel, .card, .stat { background: #fff; border-color: #ccc; box-shadow: none; color: #000; }
    .table th { background: #eee; color: #000; position: static; }
    .table td { color: #000; border-color: #ddd; }
    a { color: #000; }
}
