/* ==========================================================================
   Track1Track design system — base.css
   Served as /css/base.css; load fonts.css first (self-hosted fonts).
   Palette is derived from the logo: navy #213770 (hue 223) + signal orange #F16028.
   HARD RULE: no hues between 230 and 320 degrees anywhere.
   ========================================================================== */

/* Fonts: self-hosted (no Google Fonts request).
   @font-face rules live in fonts.css; load it before this file.
   Families: Archivo (display), IBM Plex Sans (ui), IBM Plex Mono (mono). */

:root {
  /* Brand */
  --navy-950: #0B1730;
  --navy-900: #12234A;
  --navy-800: #1A2F5E;
  --navy-700: #213770;   /* logo navy */
  --navy-600: #2E4A8A;
  --navy-100: #E3E9F4;
  --navy-50:  #F0F3F9;
  --signal-600: #D44A14; /* orange for text on light (4.6:1 on white) */
  --signal-500: #F16028; /* logo orange — fills, accents, large bold text only */
  --signal-400: #FF7D45;
  --signal-100: #FFE6D9;
  --signal-50:  #FFF4EE;

  /* Neutrals (warm paper + slate ink) */
  --bg:        #F6F5F1;
  --surface:   #FFFFFF;
  --surface-2: #FBFAF7;
  --sunken:    #EFEDE7;
  --line:      #E3E0D8;
  --line-strong: #CFCBC0;
  --ink:       #121A2B;
  --ink-2:     #3A4456;
  --muted:     #5D6676;
  --faint:     #8A919D;

  /* Status (each: fg for text/icons, bg for pill fill, dot) */
  --st-info-fg: #475266;   --st-info-bg: #ECEEF2;   /* Info received */
  --st-transit-fg: #0A5F86; --st-transit-bg: #E1F1F8; /* In transit / in destination country (hue ~200) */
  --st-ofd-fg: #A8400E;    --st-ofd-bg: #FFEADF;    /* Out for delivery (signal) */
  --st-done-fg: #17703F;   --st-done-bg: #E0F3E7;   /* Delivered */
  --st-exc-fg: #B4231F;    --st-exc-bg: #FCE5E3;    /* Exception */
  --st-warn-fg: #8A5A00;   --st-warn-bg: #FFF1CC;   /* Stuck / warning */
  --st-nf-fg: #5D6676;     --st-nf-bg: #F0EFEA;     /* Not found */

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 15px; --fs-md: 17px;
  --fs-lg: 20px; --fs-xl: 26px; --fs-2xl: 34px; --fs-3xl: clamp(36px, 6vw, 60px);

  /* Space (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Shape & depth */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(18,26,43,.04), 0 1px 2px rgba(18,26,43,.06);
  --shadow-2: 0 1px 2px rgba(18,26,43,.06), 0 8px 24px -8px rgba(18,26,43,.14);
  --shadow-3: 0 24px 60px -20px rgba(11,23,48,.35);
  --focus: 0 0 0 3px var(--surface), 0 0 0 5px var(--signal-500);

  --sidebar-w: 248px;
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1222; --surface: #101B30; --surface-2: #13203A; --sunken: #0C1628;
    --line: #22304B; --line-strong: #31415F;
    --ink: #EEF1F6; --ink-2: #C5CCD8; --muted: #95A0B2; --faint: #6E7A8E;
    --navy-50: #13203A; --navy-100: #1A2A4A;
    --signal-600: #FF8A55; --signal-100: #3A2116; --signal-50: #2A1A12;
    --st-info-fg: #B7C0CF; --st-info-bg: #1C2840;
    --st-transit-fg: #7CC8EA; --st-transit-bg: #0E2E40;
    --st-ofd-fg: #FFA477; --st-ofd-bg: #3A2115;
    --st-done-fg: #74D29C; --st-done-bg: #0F3122;
    --st-exc-fg: #FF8B85; --st-exc-bg: #3A1716;
    --st-warn-fg: #F2C766; --st-warn-bg: #33270C;
    --st-nf-fg: #A3ACBB; --st-nf-bg: #1A2438;
    --shadow-1: 0 1px 0 rgba(0,0,0,.3);
    --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
  }
  .logo-img { filter: brightness(0) invert(1); } /* white logo on dark; orange '1' lost — acceptable for mockup */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-base)/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-600); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #8FB0E8; } }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); font-weight: 800; font-stretch: 92%; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-2xl); font-weight: 750; font-stretch: 95%; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; letter-spacing: 0.01em; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.eyebrow { font: 600 var(--fs-xs)/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-600); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 768px) { .container { padding: 0 var(--s-8); } }

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--h); padding: 0 var(--s-4); border-radius: var(--r-md);
  font: 600 var(--fs-sm)/1 var(--font-ui); letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-signal { background: var(--signal-500); color: #fff; font-weight: 700; }
.btn-signal:hover { background: #E05520; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--sunken); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--st-exc-fg); border-color: var(--line-strong); }
.btn-sm { --h: 32px; padding: 0 var(--s-3); font-size: var(--fs-xs); border-radius: var(--r-sm); }
.btn-lg { --h: 56px; padding: 0 var(--s-6); font-size: var(--fs-md); border-radius: var(--r-lg); }
.btn-icon { width: var(--h); padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: #E9EEF7; color: var(--navy-900); }
  .btn-primary:hover { background: #fff; }
}

/* ---------- Form controls ---------- */
.field { display: grid; gap: var(--s-2); }
.label { font: 600 var(--fs-sm)/1.3 var(--font-ui); color: var(--ink-2); }
.hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 var(--s-3);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font: 400 var(--fs-base)/1.4 var(--font-ui);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: var(--s-3); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--signal-500); box-shadow: 0 0 0 3px var(--signal-100); }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.input-group { position: relative; }
.input-group > svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.input-group > .input { padding-left: 36px; }

/* Toggle switch: <label class="switch"><input type="checkbox" checked><span></span></label> */
.switch { position: relative; display: inline-block; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: var(--r-pill); transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: translate .15s; }
.switch input:checked + span { background: var(--st-done-fg); }
.switch input:checked + span::after { translate: 16px 0; }
.switch input:focus-visible + span { box-shadow: var(--focus); }

.checkbox { width: 16px; height: 16px; accent-color: var(--navy-700); cursor: pointer; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: var(--s-5); }
@media (min-width: 768px) { .card-pad { padding: var(--s-6); } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: var(--fs-md); }
.card-body { padding: var(--s-5); }

/* ---------- Status pills ---------- */
/* <span class="pill pill-transit"><i></i>In transit</span> */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font: 600 var(--fs-xs)/1 var(--font-ui); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-info    { color: var(--st-info-fg); background: var(--st-info-bg); }
.pill-transit { color: var(--st-transit-fg); background: var(--st-transit-bg); }
.pill-ofd     { color: var(--st-ofd-fg); background: var(--st-ofd-bg); }
.pill-done    { color: var(--st-done-fg); background: var(--st-done-bg); }
.pill-exc     { color: var(--st-exc-fg); background: var(--st-exc-bg); }
.pill-warn    { color: var(--st-warn-fg); background: var(--st-warn-bg); }
.pill-nf      { color: var(--st-nf-fg); background: var(--st-nf-bg); }
.pill-ofd i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill-ofd i { animation: none; } }

/* Neutral tag / badge / count */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); background: var(--sunken); color: var(--ink-2); font: 500 var(--fs-xs)/1 var(--font-ui); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--sunken); color: var(--ink-2); font: 600 11px/1 var(--font-ui); }
kbd { font: 500 11px/1 var(--font-mono); padding: 3px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--ink-2); }

/* ---------- Tabs (segmented, underline style) ---------- */
/* <div class="tabs" role="tablist"><button role="tab" aria-selected="true">All <span class="count">3</span></button>...</div> */
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-3); background: none; border: 0; color: var(--muted); font: 600 var(--fs-sm)/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--signal-500); }
.tabs [role="tab"][aria-selected="true"] .count { background: var(--navy-700); color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.table th { position: sticky; top: 0; text-align: left; padding: 10px var(--s-4); background: var(--surface-2); color: var(--muted); font: 600 11px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px var(--s-4); border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.table tbody tr:hover td { background: var(--surface-2); }
.table tbody tr.is-selected td { background: var(--signal-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; text-align: right; }
.table td.primary { color: var(--ink); font-weight: 600; }

/* ---------- Progress stepper (5 stages) ---------- */
/* <ol class="stepper" data-step="3"> 5x <li><span class="dot"></span><span class="lbl">Info received</span></li> </ol>
   Mark completed li with .done, current with .current. */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stepper li { position: relative; display: grid; justify-items: center; gap: var(--s-2); text-align: center; font-size: var(--fs-xs); color: var(--faint); }
.stepper li::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--navy-700); }
.stepper .dot { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); }
.stepper li.done .dot { background: var(--navy-700); border-color: var(--navy-700); }
.stepper li.current .dot { background: var(--signal-500); border-color: var(--signal-100); box-shadow: 0 0 0 4px var(--signal-100); }
.stepper li.done, .stepper li.current { color: var(--ink-2); font-weight: 600; }
.stepper.is-delivered li.done::before, .stepper.is-delivered li.done .dot { background: var(--st-done-fg); border-color: var(--st-done-fg); }
@media (prefers-color-scheme: dark) { .stepper li.done::before, .stepper li.current::before, .stepper li.done .dot { background: #8FB0E8; border-color: #8FB0E8; } }
@media (max-width: 520px) { .stepper .lbl { font-size: 10.5px; line-height: 1.2; } }

/* ---------- Vertical timeline ---------- */
/* <ol class="timeline"><li class="is-latest"><time>17 Nov · 09:42</time><div class="ev">Out for delivery</div><div class="loc">Utrecht, Netherlands</div></li> ... </ol> */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 112px 1fr; column-gap: var(--s-5); padding: 0 0 var(--s-5); }
.timeline li::before { content: ""; position: absolute; left: 128px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 132px; top: 14px; bottom: -6px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-latest::before { background: var(--signal-500); border-color: var(--signal-500); box-shadow: 0 0 0 4px var(--signal-100); }
.timeline time { grid-row: span 2; font: 500 var(--fs-xs)/1.5 var(--font-mono); color: var(--muted); text-align: right; padding-right: var(--s-6); }
.timeline .ev, .timeline .loc { padding-left: var(--s-5); }
.timeline .ev { color: var(--ink); font-weight: 500; }
.timeline li:not(.is-latest) .ev { color: var(--ink-2); font-weight: 400; }
.timeline .loc { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; padding-left: 24px; }
  .timeline li::before { left: 0; } .timeline li::after { left: 4px; }
  .timeline time { grid-row: auto; text-align: left; padding: 0; }
  .timeline .ev, .timeline .loc { padding-left: 0; }
}

/* ---------- Callouts ---------- */
.callout { display: flex; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--ink-2); font-size: var(--fs-sm); }
.callout svg { width: 20px; height: 20px; flex: none; color: var(--navy-600); }
.callout-signal { background: var(--signal-50); border-color: var(--signal-100); }
.callout-signal svg { color: var(--signal-600); }
.callout-warn { background: var(--st-warn-bg); border-color: transparent; color: var(--st-warn-fg); }

/* ---------- Public header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--s-4); }
.logo-img { height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s-1); }
.site-nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font: 500 var(--fs-sm)/1 var(--font-ui); text-decoration: none; }
.site-nav a:hover { background: var(--sunken); color: var(--ink); }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } }
.site-footer { margin-top: var(--s-20); background: var(--navy-950); color: #B9C3D6; padding: var(--s-12) 0 var(--s-8); font-size: var(--fs-sm); }
.site-footer a { color: #DCE3EF; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Admin shell ---------- */
/* <div class="app"><aside class="sidebar">...</aside><main class="main"><header class="topbar">...</header><div class="page">...</div></main></div> */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-5) var(--s-3); background: var(--navy-950); color: #AFBAD0; }
.sidebar .brand { display: flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-3); }
.sidebar .brand .logo-img { height: 18px; filter: brightness(0) invert(1); }
.sidebar .brand .env { font: 600 10px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-400); border: 1px solid rgba(255,125,69,.4); border-radius: 4px; padding: 3px 5px; }
.nav-group { display: grid; gap: 2px; }
.nav-group .nav-title { padding: 0 var(--s-3) var(--s-2); font: 600 10.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #6F7C96; }
.nav-link { display: flex; align-items: center; gap: var(--s-3); height: 38px; padding: 0 var(--s-3); border-radius: var(--r-md); color: #C4CDDE; text-decoration: none; font: 500 var(--fs-sm)/1 var(--font-ui); }
.nav-link svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link[aria-current="page"] { background: rgba(255,255,255,.09); color: #fff; box-shadow: inset 3px 0 0 var(--signal-500); }
.nav-link .count { margin-left: auto; background: var(--signal-500); color: #fff; }
.sidebar .user { margin-top: auto; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-top: 1px solid rgba(255,255,255,.08); font-size: var(--fs-sm); color: #DCE3EF; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--signal-500); color: #fff; font: 700 12px/1 var(--font-ui); flex: none; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--s-4); height: 60px; padding: 0 var(--s-8); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .crumbs { font-size: var(--fs-sm); color: var(--muted); }
.topbar .crumbs b { color: var(--ink); font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .menu-btn { display: none; }
.page { padding: var(--s-8); max-width: 1320px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.page-head h1 { font-size: var(--fs-xl); font-weight: 750; font-stretch: 95%; letter-spacing: -0.015em; }
.page-head p { color: var(--muted); margin-top: var(--s-1); font-size: var(--fs-sm); }

/* Mobile admin: sidebar becomes a top bar with horizontal scrolling nav */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4); }
  .sidebar .brand { padding: 0; margin-right: auto; }
  .sidebar .user { margin: 0; padding: 0; border: 0; }
  .sidebar .user .who { display: none; }
  .sidebar nav { order: 3; width: 100%; display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s-4) * -1); padding: 0 var(--s-4); }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-group { display: contents; }
  .nav-group .nav-title { display: none; }
  .nav-link { height: 34px; white-space: nowrap; flex: none; }
  .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal-500); }
  .topbar { position: static; padding: 0 var(--s-4); height: 52px; }
  .page { padding: var(--s-5) var(--s-4); }
}

/* ---------- Layout utilities ---------- */
.stack { display: grid; gap: var(--s-4); } .stack-lg { display: grid; gap: var(--s-6); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.grid-kpi { display: grid; gap: var(--s-4); grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .grid-kpi { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) { .grid-kpi { gap: var(--s-3); } }

/* KPI card */
.kpi { padding: var(--s-5); display: grid; gap: var(--s-2); }
.kpi .kpi-label { font-size: var(--fs-sm); color: var(--muted); display: flex; align-items: center; gap: var(--s-2); }
.kpi .kpi-value { font: 800 34px/1 var(--font-display); font-stretch: 90%; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi .kpi-delta { font-size: var(--fs-xs); font-weight: 600; }
.kpi .up { color: var(--st-done-fg); } .kpi .down { color: var(--st-exc-fg); }

/* Copy button feedback */
.copy-btn[data-copied]::after { content: "Copied"; margin-left: 4px; font-size: 11px; color: var(--st-done-fg); }

/* Flags: use emoji flags in a .flag span (🇳🇱 🇩🇪 🇬🇧 🇺🇸 🇦🇺) */
.flag { font-size: 18px; line-height: 1; }
