/* Forecourt — Daylight Depot.
   White, quiet, spacious. Viggo's own typeface (Satoshi). Neutrals tinted a breath toward Viggo purple; purple for the
   one action and selection; gold only for the brand's small moments; petrol orange and diesel gold are the only data
   colours; red only for what is critical; ADR orange only on hazard placards. Structure from space and hairlines, not boxes. */

@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/satoshi-variable.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../fonts/archivo-wdth-latin-ext.woff2") format("woff2"); unicode-range: U+20A0-20C4; } /* the cedi sign, which Satoshi lacks */
@font-face { font-family: "Big Shoulders Stencil"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../fonts/big-shoulders-stencil-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #FFFFFF; --canvas: #F7F6F9; --tint: #FAF9FB; --hover: #F3F1F6;
  --line: #ECEAF0; --line-2: #DFDCE5; --line-3: #C9C4D1;
  --ink: #16121C; --ink-2: #3D3746; --muted: #6C6577; --faint: #9A93A5;
  --viggo: #6C1F87; --viggo-hover: #56186C; --viggo-soft: #F4EDF8; --viggo-line: #E3D3EC;
  --gold: #C4870F; --gold-soft: #FBF3E1;
  --pms: #EE6A1C; --pms-deep: #B54A0B; --pms-soft: #FDEFE5;
  --ago: #D99E0E; --ago-deep: #8C6405; --ago-soft: #FBF4DE;
  --red: #D92D20; --red-ink: #B42318; --red-soft: #FEF3F2;
  --warn: #F0A000; --warn-ink: #9A5B00; --warn-soft: #FFF7E5;
  --ok: #079455; --ok-ink: #067647; --ok-soft: #ECFDF3;
  --blue: #2F5BD3; --blue-soft: #EEF3FF;
  --adr: #E8650A;
  /* names older pages use */
  --text: var(--ink); --text-2: var(--ink-2); --hair: var(--line); --hair-2: var(--line-2); --steel: #B9B3C2; --panel: var(--bg); --panel-2: var(--tint); --surface: var(--bg); --surface-2: var(--tint); --sunk: #F1EFF4; --gold-hi: var(--gold);
  --font: "Satoshi", "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --stencil: "Big Shoulders Stencil", "Satoshi", Impact, sans-serif;
  --side-w: 256px; --gut: 48px; --tap: 44px; --max: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-1: 0 1px 2px rgb(22 18 28 / 0.05);
  --shadow-2: 0 1px 2px rgb(22 18 28 / 0.04), 0 8px 24px rgb(22 18 28 / 0.06);
  --shadow-3: 0 2px 6px rgb(22 18 28 / 0.06), 0 24px 64px rgb(22 18 28 / 0.14);
  --chevron: repeating-linear-gradient(-45deg, var(--red) 0 8px, #fff 8px 16px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01"; }
::selection { background: var(--viggo); color: #fff; }
:focus-visible { outline: 2px solid var(--viggo); outline-offset: 3px; border-radius: 6px; }
input, select, textarea { caret-color: var(--viggo); }
a { color: inherit; text-decoration: none; }
a.link, .link { color: var(--viggo); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--viggo-line); }
a.link:hover { text-decoration-color: var(--viggo); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -0.025em; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { display: inline-block; vertical-align: middle; flex: none; }
.tnum, td, .num, .figure { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "ss01"; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.good { color: var(--ok-ink); }
.bad { color: var(--red-ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; }
.label { font-size: 13px; font-weight: 500; color: var(--muted); }
.figure { font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.unit { font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.stencil { font-family: var(--stencil); font-weight: 800; letter-spacing: 0.02em; }

/* ---------- Shell: a quiet sidebar, the work in front ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--tint); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 26px; }
.side-brand img { width: 34px; height: 34px; object-fit: contain; }
.side-brand b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.side-brand span span { display: block; font-size: 12.5px; color: var(--muted); }
.side nav { flex: 1; overflow-y: auto; padding: 0 12px; }
.side nav a { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: background-color 120ms ease, color 120ms ease; }
.side nav a .ic { color: var(--faint); transition: color 120ms ease; }
.side nav a:hover { background: var(--hover); color: var(--ink); }
.side nav a.on { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.side nav a.on .ic { color: var(--viggo); }
.side nav a .count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.side nav a .count.hot { color: var(--red-ink); }
.side nav .group { padding: 18px 12px 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.side-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--viggo-soft); color: var(--viggo); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.side-foot .avatar { display: grid; color: var(--viggo); font-size: 13px; }
.side-foot button { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 6px; border-radius: 8px; }
.side-foot button:hover { color: var(--ink); background: var(--hover); }
.mtop { display: none; }
main { margin-left: var(--side-w); min-width: 0; min-height: 100vh; }

.page { padding: 40px var(--gut) 96px; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; }
.page-narrow { max-width: 920px; }
.head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.head h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.head .sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.head .tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.page-head .back { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; flex: none; transition: border-color 140ms ease, background-color 140ms ease; }
.page-head .back:hover { border-color: var(--ink); }
.page-titles { flex: 1; min-width: 260px; }
.page-titles h1 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.page-head .sub { color: var(--muted); margin-top: 8px; font-size: 15px; max-width: 72ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.loading { padding: 120px var(--gut); color: var(--muted); font-size: 14px; max-width: var(--max); margin: 0 auto; }
.loading::before { content: ""; display: block; width: 160px; height: 2px; margin-bottom: 14px; border-radius: 1px; background: linear-gradient(90deg, transparent, var(--viggo), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: load 1.1s var(--ease-in-out) infinite; }
@keyframes load { from { background-position: -100% 0; } to { background-position: 200% 0; } }

/* Command palette */
.palette-back { position: fixed; inset: 0; z-index: 90; background: rgb(22 18 28 / 0.18); backdrop-filter: blur(2px); display: grid; align-items: start; justify-items: center; padding-top: 14vh; }
.palette { width: min(620px, calc(100vw - 32px)); background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); overflow: hidden; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 18px 20px; font-size: 17px; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.palette li a .muted { margin-left: auto; font-size: 12.5px; font-weight: 400; }
.palette li a.sel, .palette li a:hover { background: var(--hover); }
.kbd { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; font-weight: 500; background: var(--bg); }

/* ---------- Controls ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hover); max-width: 100%; overflow-x: auto; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg .on, .seg .on:hover { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.seg b { font-weight: 600; color: var(--faint); }
.iconbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; color: var(--ink-2); transition: border-color 140ms ease, color 140ms ease; }
.iconbtn:hover { border-color: var(--ink); color: var(--ink); }
.iconbtn b { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out), box-shadow 160ms ease; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--viggo); border-color: var(--viggo); color: #fff; box-shadow: 0 1px 2px rgb(108 31 135 / 0.25); }
.btn-primary:hover { background: var(--viggo-hover); border-color: var(--viggo-hover); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2C2533; }
.btn-good { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { color: var(--red-ink); border-color: #F5C2BD; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--hover); border-color: transparent; }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.btn-row .btn { flex: 1 1 auto; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--viggo); }
.arrow-link .ic { transition: transform 160ms var(--ease-out); }
.arrow-link:hover .ic { transform: translateX(3px); }

.placard { display: inline-grid; grid-template-rows: 1fr 1fr; width: 40px; flex: none; background: var(--adr); border: 1.5px solid #111; border-radius: 2px; font-family: "Archivo", var(--font); font-weight: 800; font-stretch: 80%; text-align: center; line-height: 1; color: #111; }
.placard span { padding: 3px 2px 2px; font-size: 12.5px; }
.placard span + span { border-top: 1.5px solid #111; font-size: 10.5px; }
.placard.sm { width: 30px; }
.placard.sm span { font-size: 9.5px; padding: 2px 1px; }
.placard.sm span + span { font-size: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; vertical-align: middle; }
.dot-pms { background: var(--pms); } .dot-ago { background: var(--ago); }
.idx { display: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--hover); color: var(--ink-2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.chip-accepted, .chip-received, .chip-paid, .chip-closed, .chip-ok, .chip-done { background: var(--ok-soft); color: var(--ok-ink); }
.chip-submitted, .chip-loaded, .chip-approved, .chip-in_progress, .chip-info { background: var(--blue-soft); color: var(--blue); }
.chip-draft, .chip-raised, .chip-ordered, .chip-warn, .chip-reorder, .chip-near { background: var(--warn-soft); color: var(--warn-ink); }
.chip-bad, .chip-critical, .chip-over, .chip-missing { background: var(--red-soft); color: var(--red-ink); }
.chip-pms { background: var(--pms-soft); color: var(--pms-deep); }
.chip-ago { background: var(--ago-soft); color: var(--ago-deep); }
.chip-pms::before, .chip-ago::before { opacity: 1; }
.chip-waiting, .chip-not_open, .chip-covered { color: var(--muted); }

/* ---------- Panels and modules ---------- */
.panel { position: relative; display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; min-width: 0; box-shadow: var(--shadow-1); }
button.panel, a.panel { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; text-align: left; width: 100%; cursor: pointer; color: inherit; font: inherit; transition: border-color 180ms ease, box-shadow 220ms var(--ease-out), transform 180ms var(--ease-out); }
button.panel:hover, a.panel:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
button.panel:active, a.panel:active { transform: scale(0.995); }
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-head .label { flex: 1; }
.panel-head .open { color: var(--faint); transition: transform 180ms var(--ease-out), color 180ms ease; }
button.panel:hover .open, a.panel:hover .open { color: var(--viggo); transform: translateX(3px); }
.panel .figure-row { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.panel .figure-row .figure { font-size: 40px; }
.panel .figure-row .cur, .panel .figure-row .unit { font-size: 18px; }
.panel .sub { margin-top: 8px; color: var(--muted); font-size: 14px; }
.panel .sub b { color: var(--ink); font-weight: 600; }
.panel.critical { border-color: #F5C2BD; }
.panel.critical::before { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--chevron); }
.split { display: flex; height: 6px; margin-top: 14px; border-radius: 3px; overflow: hidden; background: var(--sunk); gap: 2px; }
.split i { display: block; height: 100%; }
.split .s-pms { background: var(--pms); } .split .s-ago { background: var(--ago); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13.5px; }
.delta.up { color: var(--ok-ink); } .delta.down { color: var(--red-ink); }

/* ---------- Dashboard ---------- */
.overview { padding: 36px var(--gut) 96px; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; }
.ov-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.ov-head h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ov-head .sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.ov-head .tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sweep { position: relative; border-radius: 28px; background: radial-gradient(120% 90% at 50% 10%, #FFFFFF 0%, #F6F5F8 62%, #EFEDF2 100%); overflow: hidden; display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.6fr); min-height: 520px; }
.sweep-copy { position: relative; z-index: 2; padding: 40px 0 36px 44px; display: flex; flex-direction: column; }
.sweep-copy .eyebrowless { font-size: 15px; color: var(--muted); }
.sweep-stage { position: relative; min-height: 460px; }
.sweep-stage canvas { display: block; }
.sweep-fallback { position: absolute; inset: 18% 6% 18%; display: grid; grid-template-columns: 1fr 1fr; gap: 6%; }
.sweep-fallback canvas { width: 100%; height: 100%; }
.stock-line { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.stock-line:first-of-type { padding-top: 18px; }
.stock-line .top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.stock-line .figure { font-size: 54px; margin-top: 6px; }
.stock-line .figure small { font-size: 22px; color: var(--muted); font-weight: 500; letter-spacing: -0.01em; margin-left: 4px; }
.stock-line .meter { position: relative; height: 6px; border-radius: 3px; background: rgb(22 18 28 / 0.07); margin-top: 12px; overflow: visible; }
.stock-line .meter i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.stock-line .meter .re { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.stock-line .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.attention { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; padding-left: 0; }
.attention .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); flex: none; }
.attention .ic { color: var(--viggo); transition: transform 160ms var(--ease-out); }
.attention:hover .ic { transform: translateX(3px); }
.sweep-hint { position: absolute; right: 28px; bottom: 22px; font-size: 12.5px; color: var(--muted); pointer-events: none; }

.kpis4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 40px 0 8px; }
.kpi { all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: 4px 28px 8px; border-left: 1px solid var(--line); border-radius: 0; transition: background-color 160ms ease; }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi:focus-visible { outline: 2px solid var(--viggo); outline-offset: 4px; border-radius: 8px; }
.kpi .label { display: flex; align-items: center; gap: 8px; }
.kpi .figure { display: block; font-size: 44px; margin-top: 12px; }
.kpi .figure small { font-size: 18px; color: var(--muted); font-weight: 500; margin-left: 3px; letter-spacing: -0.01em; }
.kpi .figure .cur { font-size: 22px; color: var(--muted); font-weight: 500; margin-right: 4px; }
.kpi .s { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.kpi:hover .figure { color: var(--viggo); }

.mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.mod { padding: 40px 0 44px; border-bottom: 1px solid var(--line); min-width: 0; }
.mod:nth-child(odd) { padding-right: 48px; border-right: 1px solid var(--line); }
.mod:nth-child(even) { padding-left: 48px; }
.mod.wide { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
.mod-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.mod-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.mod-head .muted { font-size: 14px; }
.mod-head .arrow-link { margin-left: auto; }
.mod .big { display: flex; align-items: baseline; gap: 6px; }
.mod .big .figure { font-size: 48px; }
.mod .big small { font-size: 18px; color: var(--muted); font-weight: 500; }
.mod .lead { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.rows { margin: 18px 0 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .t { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rows .t a:hover { color: var(--viggo); }
.rows .m { font-size: 13px; color: var(--muted); }
.rows .r { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.liquid-bar { position: relative; height: 12px; border-radius: 6px; overflow: hidden; background: var(--sunk); display: flex; gap: 3px; margin-top: 18px; }
.liquid-bar i { display: block; }
.liquid-bar i.pms { background: var(--pms); } .liquid-bar i.ago { background: var(--ago); }
.limits { display: grid; gap: 14px; margin-top: 22px; }
.limit-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 64px; gap: 16px; align-items: center; font-size: 14px; }
.limit-row .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.limit-row:hover .name { color: var(--viggo); }
.limit-row .track { position: relative; height: 8px; border-radius: 4px; background: var(--sunk); }
.limit-row .fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: #CFC9D7; transform-origin: left; }
.limit-row .fill.over { background: var(--red); } .limit-row .fill.near { background: var(--warn); }
.limit-row .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); left: 66.67%; border-radius: 1px; }
.limit-row .val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.limit-row .val.bad { color: var(--red-ink); }
.stage-pips { display: inline-flex; gap: 3px; }
.stage-pips i { width: 12px; height: 6px; border-radius: 3px; background: var(--sunk); }
.stage-pips i.d { background: var(--viggo); } .stage-pips i.n { background: var(--gold); } .stage-pips i.l { background: var(--red); }
.footer-note { padding: 32px 0 0; color: var(--muted); font-size: 13px; display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Drawer ---------- */
.drawer-back { position: fixed; inset: 0; z-index: 60; background: rgb(22 18 28 / 0.16); backdrop-filter: blur(1px); opacity: 0; transition: opacity 260ms var(--ease-out); }
.drawer-back.in { opacity: 1; }
.drawer { position: fixed; z-index: 61; top: 12px; right: 12px; bottom: 12px; width: min(820px, calc(100vw - 24px)); background: var(--bg); border-radius: 24px; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 24px)); transition: transform 420ms var(--expo); }
.drawer.in { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 24px 28px 18px; }
.drawer-head h2 { flex: 1; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; display: flex; align-items: center; gap: 12px; }
.drawer-head .x { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; color: var(--ink-2); }
.drawer-head .x:hover { border-color: var(--ink); color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 28px 48px; overscroll-behavior: contain; }
.drawer-body > * + * { margin-top: 24px; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; background: var(--tint); text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl th[aria-sort="ascending"]::after { content: " ↑"; color: var(--viggo); } .tbl th[aria-sort="descending"]::after { content: " ↓"; color: var(--viggo); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r, .tbl th.r { text-align: right; white-space: nowrap; }
.tbl tbody tr.row-link { cursor: pointer; transition: background-color 120ms ease; }
.tbl tbody tr.row-link:hover td { background: var(--tint); }
.tbl tfoot td { font-weight: 700; border-top: 1px solid var(--line-2); border-bottom: 0; background: var(--tint); }
.tbl td.neg { color: var(--red-ink); }
.cellbar { position: relative; height: 6px; border-radius: 3px; background: var(--sunk); min-width: 80px; }
.cellbar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.cellbar .limit { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.stackbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--sunk); min-width: 120px; gap: 2px; }
.stackbar i { height: 100%; }

/* ---------- Blocks used across pages ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.section { margin: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--viggo); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.card.hero { background: var(--viggo-soft); border-color: var(--viggo-line); }
.card.hero .muted { color: var(--ink-2); }
.card.accent { background: var(--gold-soft); border-color: transparent; }
.card.warn { background: var(--red-soft); border-color: #F5C2BD; }
.card.ok { background: var(--ok-soft); border-color: transparent; }
.card h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: block; min-width: 0; box-shadow: var(--shadow-1); }
a.stat { transition: border-color 160ms ease, box-shadow 200ms ease; }
a.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.stat-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.stat-value { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; margin-top: 10px; line-height: 1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.stat-good .stat-value { color: var(--ok-ink); } .stat-bad .stat-value { color: var(--red-ink); } .stat-warn .stat-value { color: var(--warn-ink); }
.stat-accent { background: var(--gold-soft); border-color: transparent; }
.list { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-1); }
.row { display: flex; align-items: center; gap: 14px; padding: 15px 22px; min-height: 58px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
a.row { transition: background-color 120ms ease; }
a.row:hover { background: var(--tint); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.row-right { display: flex; align-items: center; gap: 10px; flex: none; text-align: right; max-width: 50%; flex-wrap: wrap; justify-content: flex-end; }
.row-value { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.row .chev { color: var(--faint); }
.row-bad { background: var(--red-soft); }
.row-good { background: var(--ok-soft); }
.kv { margin: 0; display: grid; grid-template-columns: 1fr; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv .total { border-top: 1px solid var(--line-3); font-size: 16px; }
.kv .total dt { color: var(--ink); font-weight: 700; }
.empty { padding: 36px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 20px; }
.empty-title { font-weight: 600; }
.empty-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.bar { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.bar-fill { height: 100%; background: #CFC9D7; border-radius: 3px; }
.bar-pms { background: var(--pms); } .bar-ago { background: var(--ago); } .bar-bad { background: var(--red); } .bar-good { background: var(--ok); } .bar-warn { background: var(--warn); }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 30%) 1fr auto; gap: 14px; align-items: center; font-size: 14px; }
.hbar.link { cursor: pointer; }
.hbar.link:hover .hbar-label { color: var(--viggo); }
.hbar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 8px; border-radius: 4px; background: var(--sunk); }
.hbar-fill { height: 100%; border-radius: 4px; background: #CFC9D7; }
.hbar-bad { background: var(--red); } .hbar-good { background: var(--ok); } .hbar-pms { background: var(--pms); } .hbar-ago { background: var(--ago); } .hbar-warn { background: var(--warn); }
.hbar-value { font-weight: 600; min-width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.note { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; margin: 12px 0; color: var(--ink-2); background: var(--tint); border: 1px solid var(--line); }
.note-warn { background: var(--warn-soft); border-color: #FBE3B0; }
.note-bad { background: var(--red-soft); border-color: #F5C2BD; }
.note-ok { background: var(--ok-soft); border-color: #B5EBCD; }
.spark { width: 100%; height: 40px; color: var(--ink-2); display: block; }

/* Forms */
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.control { position: relative; display: flex; align-items: center; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font-size: 16px; color: var(--ink); box-shadow: var(--shadow-1); transition: border-color 140ms ease, box-shadow 140ms ease; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--viggo); box-shadow: 0 0 0 4px var(--viggo-soft); }
.field.has-suffix input { padding-right: 42px; }
.suffix { position: absolute; right: 14px; color: var(--muted); font-weight: 500; }
.hint { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.big-input input { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); }
.check input { width: 20px; height: 20px; accent-color: var(--viggo); }
.cell-in { width: 120px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cell-in:focus { outline: none; border-color: var(--viggo); box-shadow: 0 0 0 3px var(--viggo-soft); }

.sheet-back { position: fixed; inset: 0; z-index: 80; background: rgb(22 18 28 / 0.2); display: grid; place-items: center; padding: 16px; }
.sheet { width: min(500px, 100%); background: var(--bg); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); }
.sheet h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.03em; }
.sheet-body { color: var(--ink-2); margin-bottom: 16px; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

#toasts { position: fixed; z-index: 95; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-3); opacity: 0; transform: translateY(8px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.toast.show { opacity: 1; transform: none; }
.toast-bad { background: var(--red); }

.alert { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: start; transition: background-color 120ms ease; border-radius: 0; }
.alert:hover { background: var(--tint); }
.alert.unread h3::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--viggo); margin-left: 8px; vertical-align: middle; }
.alert .sev { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; background: var(--faint); }
.alert .sev.critical { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); } .alert .sev.warning { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.alert h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.alert p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.alert time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.depot { position: relative; height: min(70vh, 720px); border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 50% 10%, #FFFFFF 0%, #F6F5F8 62%, #EFEDF2 100%); }
.depot-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--bg); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); font-size: 13.5px; transform: translate(14px, 14px); min-width: 210px; }
.depot-tip b { display: block; font-size: 14.5px; }
.depot-legend { position: absolute; left: 24px; bottom: 20px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); pointer-events: none; }
.farm { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.farm-tile { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: block; position: relative; transition: border-color 160ms ease, box-shadow 200ms ease; box-shadow: var(--shadow-1); }
.farm-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.farm-tile.critical { border-color: #F5C2BD; }
.farm-tile .code { font-family: var(--stencil); font-size: 20px; line-height: 1; color: var(--muted); }
.farm-tile .name { font-weight: 600; font-size: 14.5px; }
.farm-tile canvas { display: block; width: 100%; height: 46px; margin: 8px 0 4px; }
.farm-tile .row2 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.farm-tile .row2 b { color: var(--ink); }

.pipe { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pipe-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pipe-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pipe-top h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.pipe-track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.pipe-step { min-width: 0; }
.pipe-step i { display: block; height: 6px; border-radius: 3px; background: var(--sunk); }
.pipe-step.done i { background: var(--viggo); } .pipe-step.in_progress i { background: var(--gold); } .pipe-step.late i { background: var(--chevron); }
.pipe-step span { display: block; font-size: 12px; line-height: 1.35; margin-top: 8px; color: var(--muted); }
.pipe-step.in_progress span, .pipe-step.late span { color: var(--ink); font-weight: 600; }

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

.stmt { border-top: 1px solid var(--line); }
.stmt-row { display: grid; grid-template-columns: 1fr 180px 72px; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stmt-row .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.stmt-row .p { text-align: right; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.stmt-row.sub { padding-left: 20px; color: var(--muted); font-size: 14px; }
.stmt-row.sub .v { font-weight: 500; }
.stmt-row.total { font-weight: 700; border-bottom-color: var(--line-2); }
.stmt-row.grand { border-top: 2px solid var(--ink); border-bottom: 0; padding-top: 16px; }
.stmt-row.grand .v { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--viggo); }

/* Sign in */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); background: var(--bg); }
.signin-main { padding: 40px 64px; display: flex; flex-direction: column; }
.signin-main .brand { display: flex; align-items: center; gap: 12px; }
.signin-main .brand img { width: 36px; height: 36px; }
.signin-main .brand b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.signin-main .brand span span { display: block; font-size: 13px; color: var(--muted); }
.signin-form { margin: auto 0; padding: 48px 0; max-width: 420px; }
.signin-form h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; }
.signin-form .lede { color: var(--muted); margin-top: 12px; font-size: 16px; }
.signin-side { position: relative; margin: 14px; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 50% 10%, #FFFFFF 0%, #F4F2F7 60%, #ECE9F0 100%); }
.signin-side .stage-canvas { position: absolute; inset: 0; }
.signin-side .cap { position: absolute; left: 40px; right: 40px; bottom: 36px; z-index: 1; pointer-events: none; }
.signin-side .cap h2 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; max-width: 16ch; }
.signin-side .cap p { color: var(--muted); margin-top: 10px; max-width: 46ch; }
.seats { margin-top: 28px; border-top: 1px solid var(--line); }
.seat { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; color: var(--ink); transition: background-color 140ms ease; }
.seat:hover { background: var(--tint); }
.seat-main { flex: 1; min-width: 0; }
.seat-main b { display: block; font-size: 15px; font-weight: 600; }
.seat-main span { display: block; color: var(--muted); font-size: 13.5px; }
.seat-main em { display: block; font-style: normal; font-size: 13px; color: var(--viggo); margin-top: 3px; font-weight: 500; }
.seat-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--viggo-soft); color: var(--viggo); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.seat-go { color: var(--faint); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 28px 0 18px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.steps { display: flex; gap: 6px; margin: 0 0 18px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--sunk); }
.steps i.on { background: var(--viggo); }
.step-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.reading { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tank { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 12px; }
.tank-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.range { width: 100%; accent-color: var(--viggo); }

.net-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.net-map { position: sticky; top: 24px; }
.net-map a circle { cursor: pointer; transition: r 160ms var(--ease-out); }
.net-map a:hover circle { r: 9; }

.barrel-panel { padding: 20px 22px; }
.barrel-head { display: flex; align-items: center; gap: 14px; }
.barrel-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.barrel-head .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.barrel-canvas { display: block; width: 100%; height: 230px; margin: 12px 0 6px; border-radius: 16px; overflow: hidden; position: relative; background: radial-gradient(120% 90% at 50% 10%, #FFFFFF 0%, #F6F5F8 70%); }
.barrel-foot { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; flex-wrap: wrap; }
.barrel-foot .figure { font-size: 36px; }
.barrel-foot .pct { margin-left: auto; font-size: 30px; color: var(--muted); }
.barrel-legend { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.barrel-legend span { display: inline-flex; align-items: center; gap: 6px; }
.barrel-legend i { display: inline-block; width: 16px; height: 0; border-top: 2px dashed var(--ink-2); }
.barrel-legend i.road { border-top: 6px solid rgb(22 18 28 / 0.12); }

@media (max-width: 1280px) {
  .sweep { grid-template-columns: 1fr; }
  .sweep-copy { padding: 32px 32px 0; }
  .sweep-copy .attention { padding-bottom: 8px; }
  .sweep-stage { min-height: 380px; }
  .kpis4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .net-grid { grid-template-columns: 1fr; }
  .net-map { position: static; max-width: 520px; }
}
@media (max-width: 1023px) {
  :root { --gut: 28px; }
  .side { transform: translateX(-100%); transition: transform 280ms var(--ease-out); box-shadow: var(--shadow-3); width: min(300px, 86vw); }
  .side.open { transform: none; }
  main { margin-left: 0; }
  .mtop { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 25; height: 58px; padding: 0 var(--gut); background: rgb(255 255 255 / 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mtop img { width: 28px; height: 28px; }
  .mtop b { font-weight: 700; letter-spacing: -0.02em; flex: 1; }
  .mods { grid-template-columns: 1fr; }
  .mod:nth-child(odd), .mod:nth-child(even) { padding: 36px 0; border-right: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signin { grid-template-columns: 1fr; }
  .signin-side { min-height: 46vh; order: -1; }
  .signin-main { padding: 28px var(--gut); }
}
@media (max-width: 720px) {
  :root { --gut: 18px; }
  body { font-size: 16px; }
  .overview { padding-top: 24px; }
  .ov-head h1 { font-size: 32px; }
  .ov-head .tools { margin-left: 0; width: 100%; }
  .ov-head .tools .seg { flex: 1; }
  .ov-head .tools .seg button { flex: 1; justify-content: center; }
  .sweep { border-radius: 22px; min-height: 0; }
  .sweep-copy { padding: 24px 22px 0; }
  .stock-line .figure { font-size: 42px; }
  .sweep-stage { min-height: 280px; }
  .sweep-hint { display: none; }
  .kpis4 { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 4px 14px 8px; }
  .kpi .figure { font-size: 34px; }
  .limit-row { grid-template-columns: 96px minmax(0, 1fr) 54px; gap: 10px; }
  .page { padding: 24px var(--gut) 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pipe-track { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .stmt-row { grid-template-columns: 1fr 130px; }
  .stmt-row .p { display: none; }
  .drawer { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .drawer-body { padding: 8px 18px 40px; }
  .drawer-head { padding: 18px; }
  .hbar { grid-template-columns: minmax(90px, 34%) 1fr auto; }
  .depot { height: 60vh; border-radius: 22px; }
  .signin-form h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
