/* Gza – Logistics Admin · plain CSS, no build step.
   Look: concrete grey with signal colours, condensed signage type and a navigation drawn as a metro line
   with one station per page; the language switch is a split-flap departure board.
   Sections: fonts · tokens · base · metro line · top bar · menus · departure board · layout · control tower · status ·
   shipments · dispatch · route planner · fleet · warehouse · settings · forms · overlays · login · responsive · print */

/* fonts (SIL Open Font License, see assets/fonts/OFL.txt) */
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/sofia-sans-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/sofia-sans-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/sofia-sans-condensed-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/sofia-sans-condensed-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/sofia-sans-condensed-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/sofia-sans-condensed-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans"; font-weight: 400; font-display: swap; src: url("../fonts/sofia-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Sofia Sans"; font-weight: 400; font-display: swap; src: url("../fonts/sofia-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans"; font-weight: 400; font-display: swap; src: url("../fonts/sofia-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans"; font-weight: 600; font-display: swap; src: url("../fonts/sofia-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Sofia Sans"; font-weight: 600; font-display: swap; src: url("../fonts/sofia-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans"; font-weight: 600; font-display: swap; src: url("../fonts/sofia-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Code Pro"; font-weight: 500; font-display: swap; src: url("../fonts/source-code-pro-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Source Code Pro"; font-weight: 500; font-display: swap; src: url("../fonts/source-code-pro-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Code Pro"; font-weight: 500; font-display: swap; src: url("../fonts/source-code-pro-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 800; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-800-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }

/* tokens */
:root {
    --cond: "Sofia Sans Condensed", "Noto Sans Georgian", "Arial Narrow", sans-serif;
    --font: "Sofia Sans", "Noto Sans Georgian", system-ui, sans-serif;
    --mono: "Source Code Pro", "Sofia Sans", "Noto Sans Georgian", ui-monospace, monospace;
    --r: 10px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --orange: #ff6b1a; --blue: #1f6feb; --red: #e5322d; --green: #18a058; --yellow: #f5b301; --purple: #8b5cf6;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #eceef1; --card: #fff; --soft: #f3f4f6; --line: #dfe2e7; --line-2: #c9ced6;
    --text: #111827; --muted: #5b6474; --faint: #949cab; --rail: #111827; --rail-ink: #e5e7eb; --rail-muted: #8b93a3;
    --bin-0: #e6f4ea; --bin-1: #b8e2c5; --bin-2: #ffd27a; --bin-3: #ff8a5c;
    --shadow: 0 14px 30px -22px rgba(17, 24, 39, .4), 0 1px 2px rgba(17, 24, 39, .06);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d1117; --card: #161b22; --soft: #1c222b; --line: #2a313c; --line-2: #384150;
    --text: #e6e9ef; --muted: #9aa3b2; --faint: #6b7483; --rail: #0a0d12; --rail-ink: #e5e7eb; --rail-muted: #7b8494;
    --bin-0: #1c3326; --bin-1: #24603a; --bin-2: #8a6a17; --bin-3: #9c3b1f;
    --blue: #5a96ff; --green: #3ccf84; --red: #ff6b5f;
    --shadow: 0 14px 30px -18px rgba(0, 0, 0, .8);
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.i18n-wait body { visibility: hidden; }
body { margin: 0; min-height: 100vh; font: 400 15px/1.5 var(--font); color: var(--text); background: var(--bg); }
h1, h2, h3 { margin: 0; font-family: var(--cond); font-weight: 800; line-height: 1.1; letter-spacing: .005em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.flag { stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--orange); color: #111; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 60%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* shell: the metro line on the left */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.line { position: sticky; top: 0; display: flex; flex-direction: column; gap: 22px; height: 100vh; padding: 20px 16px; background: var(--rail); color: var(--rail-ink); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding-left: 4px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #1f2937; }
.brand-mark svg { width: 32px; height: 32px; stroke: var(--orange); stroke-width: 4; }
.brand-mark circle { fill: #fff; stroke: none; }
.brand-word { font: 800 24px/1 var(--cond); letter-spacing: .08em; }
.brand-word small { display: block; margin-top: 3px; color: var(--rail-muted); font: 600 11.5px var(--font); letter-spacing: .02em; }
.stops { position: relative; display: grid; gap: 4px; padding-left: 4px; }
.stops::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 6px; border-radius: 3px; background: linear-gradient(var(--orange), var(--blue) 20%, var(--red) 36%, var(--green) 52%, var(--yellow) 68%, var(--purple) 84%, #6b7280); }
.stop { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 4px; border-radius: 10px; color: var(--rail-muted); font: 600 16px var(--cond); letter-spacing: .02em; text-decoration: none; }
.stop:hover { color: var(--rail-ink); background: rgba(255, 255, 255, .05); }
.stop-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 4px solid var(--lc); border-radius: 50%; background: var(--rail); color: var(--rail-ink); transition: transform .2s var(--ease); flex: none; }
.stop-dot svg { width: 16px; height: 16px; }
.stop:hover .stop-dot { transform: scale(1.08); }
.stop[aria-current="page"] { color: #fff; }
.stop[aria-current="page"] .stop-dot { background: var(--lc); color: #111; box-shadow: 0 0 0 4px var(--rail), 0 0 0 6px var(--lc); }
.stop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-badge { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font: 600 12px/22px var(--mono); text-align: center; }
.depot { margin-top: auto; padding: 12px; border: 1px solid #2b3240; border-radius: 10px; font-size: 13px; }
.depot b { display: block; margin-bottom: 6px; color: var(--rail-ink); font: 800 13px var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.depot div { display: flex; justify-content: space-between; gap: 8px; color: var(--rail-muted); }
.depot div span:last-child { color: var(--rail-ink); font-family: var(--mono); }
.col { display: flex; flex-direction: column; min-width: 0; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 26px; background: var(--bg); border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 440px; min-width: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--faint); text-align: left; }
.search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { padding: 0 6px; border: 1px solid var(--line-2); border-radius: 4px; font: 500 11px var(--mono); color: var(--muted); }
.clock { margin-left: 8px; padding: 6px 10px; border-radius: 6px; background: var(--rail); color: var(--yellow); font-size: 14px; letter-spacing: .08em; }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); }
.icon-btn:hover { background: var(--card); border-color: var(--line); color: var(--text); }
.dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border: 2px solid var(--bg); border-radius: 50%; background: var(--red); }
[data-theme="dark"] .t-sun, [data-theme="light"] .t-moon { display: none; }
.me { padding: 0; border: 0; background: none; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--rail); color: var(--yellow); font: 800 14px var(--cond); letter-spacing: .06em; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

/* menus */
.dd { position: relative; }
.menu { position: absolute; z-index: 50; min-width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); animation: pop .18s var(--ease); }
.menu > a, .menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; text-align: left; text-decoration: none; }
.menu > a:hover, .menu > button:hover { background: var(--soft); }
.me-menu { right: 0; top: calc(100% + 8px); }
.me-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-who b { display: block; }
.me-who small { color: var(--muted); }
.me-theme { display: none !important; }
.bell-menu { right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 28px)); padding: 0; }
.bell-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bell-list { max-height: 360px; margin: 0; padding: 6px; list-style: none; overflow-y: auto; }
.bell-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px; border-radius: 8px; font-size: 14px; }
.bell-list li.is-new { background: color-mix(in srgb, var(--orange) 10%, transparent); }
.bell-list small { display: block; color: var(--muted); font-size: 12.5px; }
.bell-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--c); color: var(--text); }
.bell-ico svg { width: 15px; height: 15px; }
.link { padding: 0; border: 0; background: none; color: var(--blue); font-size: 13.5px; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* language switch: a split-flap departure board */
.flaps { display: inline-flex; gap: 2px; }
.flaps i { position: relative; display: grid; place-items: center; width: 18px; height: 24px; border-radius: 3px; background: #1f2530; color: var(--yellow); font: 500 14px var(--mono); font-style: normal; overflow: hidden; }
.flaps i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .7); }
.flaps i.is-flip { animation: flip .3s steps(3) both; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); filter: brightness(.5); } 100% { transform: rotateX(0); } }
.board-flag { display: grid; width: 30px; height: 20px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.board-flag .flag { width: 100%; height: 100%; }
.board-btn { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.board-btn:hover { border-color: var(--line-2); }
.board-menu { right: 0; top: calc(100% + 8px); width: 280px; padding: 0; overflow: hidden; background: #111827; border-color: #111827; color: #e5e7eb; }
.board-head { display: flex; justify-content: space-between; padding: 10px 14px; background: #f5b301; color: #111; font: 800 13px var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.board-rows { display: grid; }
.board-row { display: grid; grid-template-columns: 30px auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-top: 1px solid #1f2937; background: none; color: inherit; text-align: left; }
.board-row:hover { background: #1b2433; }
.board-row:hover .flaps i { animation: flip .3s steps(3) both; }
.board-row:hover .flaps i + i { animation-delay: .08s; }
.board-name { font: 600 16px var(--cond); letter-spacing: .02em; }
.board-row[aria-current="true"] { background: #1b2433; box-shadow: inset 4px 0 0 var(--orange); }

/* page layout */
.main { flex: 1; padding: 26px 26px 10px; outline: none; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 16px 26px 22px; color: var(--faint); font-size: 12.5px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.page-head > div:first-child { min-width: 0; max-width: 100%; }
.eyebrow { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 4px; background: var(--rail); color: var(--yellow); font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.page-head h1 { font-size: clamp(32px, 4vw, 50px); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.lead { max-width: 66ch; margin-top: 8px; color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.card { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.card-head h2 { font-size: 21px; text-transform: uppercase; letter-spacing: .03em; }
.card-head p { margin-top: 3px; color: var(--muted); font-size: 13.5px; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.keys > span { display: inline-flex; align-items: center; gap: 6px; }
.keys i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.empty { padding: 28px 12px; color: var(--muted); text-align: center; }

/* control tower */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { position: relative; display: grid; gap: 2px; padding: 16px 18px 14px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--lc); }
.kpi small { color: var(--muted); font: 600 13px var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.kpi b { font: 800 38px/1.05 var(--cond); }
.kpi span[data-e] { color: var(--muted); font-size: 13px; }
.map { position: relative; }
.map svg { display: block; width: 100%; height: auto; stroke: none; }
.map .edge { fill: none; stroke: var(--line-2); stroke-width: 7; stroke-linecap: round; }
.map .edge-in { fill: none; stroke: var(--card); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.map .edge.is-route { stroke: var(--green); }
.map .edge-km { fill: var(--faint); font: 500 14px var(--mono); }
.map .city circle { fill: var(--card); stroke: var(--text); stroke-width: 3; }
.map .city.is-depot circle { fill: var(--text); }
.map .city.is-stop circle { stroke: var(--green); stroke-width: 4; }
.map .city.is-start circle { fill: var(--green); stroke: var(--green); }
.map .city text { fill: var(--text); font: 800 20px var(--cond); letter-spacing: .04em; text-transform: uppercase; paint-order: stroke; stroke: var(--card); stroke-width: 4; }
.map .order { fill: #fff; font: 600 13px var(--mono); }
.map .order-bg { fill: var(--green); }
.map .veh { cursor: pointer; }
.map .veh rect { stroke: var(--card); stroke-width: 2; }
.map .veh text { fill: #fff; font: 600 12px var(--mono); pointer-events: none; }
.map .veh.is-sel rect { stroke: var(--orange); stroke-width: 3; }
.map-card .map { margin: 0 -6px; }
.map-info { min-height: 22px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 0 0 14px; }
.timeline li::before { content: ""; position: absolute; left: 62px; top: 6px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline time { font: 500 13px var(--mono); color: var(--muted); }
.timeline div { position: relative; padding-left: 18px; }
.timeline div::before { content: ""; position: absolute; left: -2px; top: 4px; width: 10px; height: 10px; border: 3px solid var(--lc, var(--blue)); border-radius: 50%; background: var(--card); }
.timeline b { display: block; font-weight: 600; }
.timeline small { color: var(--muted); font-size: 13px; }
.exceptions, .depots { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.exceptions li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--soft); border-left: 4px solid var(--lc); }
.exc-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: color-mix(in srgb, var(--lc) 18%, transparent); }
.exceptions b { display: block; font-weight: 600; }
.exceptions small { color: var(--muted); font-size: 13px; }
.depots li { display: grid; gap: 6px; }
.depots .top-line { display: flex; justify-content: space-between; gap: 10px; }
.depots b { font: 800 16px var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.depots small { color: var(--muted); font-size: 13px; }
.bar { display: block; height: 10px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--bc, var(--orange)); background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .18) 0 6px, transparent 6px 12px); }

/* status chips like road signs */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 4px; background: var(--sc); color: var(--si, #fff); font: 800 12.5px var(--cond); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-booked { --sc: #e5e7eb; --si: #374151; }
[data-theme="dark"] .st-booked { --sc: #374151; --si: #e5e7eb; }
.st-loaded { --sc: var(--purple); }
.st-transit { --sc: var(--blue); }
.st-delivered { --sc: var(--green); }
.st-exception { --sc: var(--red); }

/* shipments */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.pipeline button { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 22px; border: 0; background: var(--card); text-align: left; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); margin-left: -10px; }
.pipeline button:first-child { margin-left: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 16px; }
.pipeline button[aria-pressed="true"] { background: var(--rail); color: #fff; }
.pipeline small { color: var(--muted); font: 600 12.5px var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.pipeline button[aria-pressed="true"] small { color: var(--yellow); }
.pipeline b { font: 800 28px/1 var(--cond); }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.table-wrap.flat { border: 0; box-shadow: none; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font: 600 12.5px var(--cond); letter-spacing: .08em; text-transform: uppercase; background: var(--soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--soft); }
td.num, th.num { text-align: right; }
td.num { font-family: var(--mono); font-size: 13.5px; }
.sort { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.sort::after { content: " ↕"; opacity: .4; }
.sort[data-dir="asc"]::after { content: " ↑"; opacity: 1; }
.sort[data-dir="desc"]::after { content: " ↓"; opacity: 1; }
.track { padding: 0; border: 0; background: none; font: 500 13.5px var(--mono); color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.route-cell { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--cond); letter-spacing: .03em; text-transform: uppercase; }
.route-cell svg { width: 14px; height: 14px; color: var(--faint); }
.late { color: var(--red); font-weight: 600; }
.plate { display: inline-block; padding: 1px 6px; border: 1.5px solid var(--text); border-radius: 4px; background: var(--card); font: 600 12.5px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; width: min(460px, 100vw); background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow); animation: slide .25s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--rail); color: #fff; }
.drawer-head .icon-btn { color: #cbd2dc; }
.drawer-head .mono { color: var(--yellow); font-size: 13px; }
.drawer-head h2 { font-size: 26px; text-transform: uppercase; }
.drawer-body { display: grid; gap: 18px; padding: 20px; overflow-y: auto; }
.drawer-body h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(13, 17, 23, .45); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { padding: 10px 12px; border-radius: 8px; background: var(--soft); }
.facts dt { color: var(--muted); font-size: 12.5px; }
.facts dd { margin: 0; font-weight: 600; }
.events { display: grid; margin: 0; padding: 0; list-style: none; }
.events li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; }
.events li::before { content: ""; position: absolute; left: 10px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.events li:last-child::before { display: none; }
.events i { width: 22px; height: 22px; margin-top: 1px; border: 4px solid var(--ec, var(--line-2)); border-radius: 50%; background: var(--card); }
.events li.is-future { opacity: .5; }
.events b { display: block; font-weight: 600; }
.events small { color: var(--muted); font: 500 12px var(--mono); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quote { padding: 12px 14px; border-radius: 8px; background: var(--rail); color: #e5e7eb; font-size: 14px; }
.quote b { color: var(--yellow); font-family: var(--mono); font-weight: 500; }

/* dispatch */
.dispatch { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 3fr); min-width: 0; gap: 18px; align-items: start; }
.pool-card { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; }
.pool, .load { display: grid; gap: 8px; min-height: 60px; margin: 0; padding: 0; list-style: none; border-radius: 8px; transition: background .15s, box-shadow .15s; }
.is-over { background: color-mix(in srgb, var(--orange) 10%, transparent); box-shadow: inset 0 0 0 2px var(--orange); }
.parcel { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 11px; border: 1px solid var(--line); border-left: 5px solid var(--lc, var(--line-2)); border-radius: 8px; background: var(--card); cursor: grab; touch-action: none; user-select: none; }
.parcel:hover { border-color: var(--line-2); }
.parcel.is-dragging { opacity: .95; box-shadow: var(--shadow); position: relative; z-index: 20; cursor: grabbing; }
.parcel b { font: 800 15px var(--cond); letter-spacing: .03em; text-transform: uppercase; }
.parcel small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.parcel .kg { font: 500 12.5px var(--mono); color: var(--muted); }
.parcel select { grid-column: 1 / -1; margin-top: 4px; padding: 3px 6px; font-size: 13px; }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; min-width: 0; }
.lane { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.lane.is-full .bar i { --bc: var(--red); }
.lane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lane-head .status { order: 2; }
.lane-head div { order: 3; flex-basis: 100%; }
.lane-head div { flex: 1; min-width: 0; }
.lane-head small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--muted); }
.lane.is-service { opacity: .55; }

/* route planner */
.planner { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(0, 5fr); gap: 18px; align-items: start; }
.stops-pick { display: grid; gap: 6px; margin: 14px 0; padding: 0; border: 0; }
.stops-pick legend { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stops-pick div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stops-pick label { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: 600 15px var(--cond); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.stops-pick label:has(input:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.stops-pick input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.stops-pick label.is-off { opacity: .45; cursor: default; }
.legs { display: grid; gap: 6px; margin: 16px 0 10px; padding: 0; list-style: none; counter-reset: leg; }
.legs li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--soft); counter-increment: leg; }
.legs li::before { content: counter(leg); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font: 600 12px var(--mono); }
.legs b { font: 800 15px var(--cond); letter-spacing: .03em; text-transform: uppercase; }
.legs small { display: block; color: var(--muted); font-size: 12px; }
.legs .mono { font-size: 12.5px; color: var(--muted); }
.legs .moves { display: flex; }
.legs .moves button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.legs .moves button:hover { background: var(--card); color: var(--text); }
.legs .moves svg { width: 15px; height: 15px; }
.totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.totals div { padding: 10px 12px; border-radius: 8px; background: var(--rail); color: #e5e7eb; }
.totals small { display: block; color: #9aa3b2; font: 600 12px var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.totals b { color: var(--yellow); font: 500 18px var(--mono); }

/* fleet */
.tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin-bottom: 16px; }
.tools .field-search { flex: 1 1 220px; max-width: 340px; }
.tools-note { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.vehicles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.vehicle { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.vehicle-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vehicle h3 { font-size: 18px; text-transform: uppercase; }
.vehicle .who { color: var(--muted); font-size: 13.5px; }
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gauge small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; color: var(--muted); font-size: 12.5px; }
.gauge small span:last-child { font-family: var(--mono); color: var(--text); }
.vehicle .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.vehicle .actions .btn { white-space: normal; }
.lane-head b, .parcel b { overflow-wrap: anywhere; }
.st-route { --sc: var(--blue); }
.st-depot { --sc: var(--green); }
.st-service { --sc: var(--yellow); --si: #111; }
.svc-due { color: var(--red); font-weight: 600; }

/* warehouse */
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.zone h3 { margin-bottom: 6px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bin { position: relative; aspect-ratio: 1.6; min-height: 30px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: var(--bc); font: 500 11px var(--mono); color: var(--text); }
.bin:hover, .bin[aria-pressed="true"] { border-color: var(--text); }
.bin.is-hit { box-shadow: 0 0 0 3px var(--orange); }
.bin-info { min-height: 22px; margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.level { display: grid; grid-template-columns: 90px auto; align-items: center; gap: 8px; }
.level .bar { height: 8px; }
.low td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.low .level .bar i { --bc: var(--red); }

/* settings */
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.set-panels { display: grid; gap: 18px; min-width: 0; }
.set-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.set-nav button { padding: 10px 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 17px var(--cond); letter-spacing: .03em; text-align: left; text-transform: uppercase; }
.set-nav button[aria-selected="true"] { background: var(--rail); color: #fff; box-shadow: inset 4px 0 0 var(--orange); }
.switches { display: grid; margin: 0; padding: 0; list-style: none; }
.switches li { border-bottom: 1px solid var(--line); }
.switches li:last-child { border-bottom: 0; }
.switches label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; }
.switches b { display: block; font-weight: 600; }
.switches small { color: var(--muted); font-size: 13px; }
.switch { -webkit-appearance: none; appearance: none; position: relative; width: 46px; height: 24px; margin: 0; border-radius: 4px; background: var(--line-2); transition: background .2s; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 3px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(22px); }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.danger-zone h2 { font-size: 19px; text-transform: uppercase; }
.danger-zone p { color: var(--muted); font-size: 13.5px; }

/* forms + buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font: 800 15.5px var(--cond); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .1s; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { border-color: var(--orange); background: var(--orange); color: #111; }
.btn-primary:hover { border-color: #e55a0e; background: #ff7d36; }
.btn-danger { border-color: var(--red); background: var(--red); color: #fff; }
.btn-danger:hover { border-color: var(--red); background: color-mix(in srgb, var(--red) 85%, #000); }
.btn-ghost { border-color: transparent; background: none; }
.btn-sm { min-height: 32px; padding: 4px 11px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span, .field > label { color: var(--muted); font-size: 13px; font-weight: 600; }
.input, .select { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); outline: none; transition: border-color .2s, box-shadow .2s; }
.input[type="date"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; min-height: 42px; }
.input[type="date"]::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }
.select { -webkit-appearance: none; 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% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--red); }
.field-error { color: var(--red); font-size: 12.5px; font-weight: 600; }
.field-search { position: relative; }
.field-search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--faint); pointer-events: none; }
.field-search .input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.one { grid-template-columns: minmax(0, 1fr); }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.mini-field { display: grid; gap: 3px; min-width: 0; }
.mini-field > span { color: var(--muted); font-size: 12px; font-weight: 600; }
.mini-field .select, .mini-field .input { padding-top: 7px; padding-bottom: 7px; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); }
.seg button, .seg label { display: inline-flex; align-items: center; justify-content: center; padding: 7px 13px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--muted); font: 600 15px var(--cond); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.seg > :last-child { border-right: 0; }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--rail); color: var(--yellow); }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: -3px; }
.seg-wide { display: flex; }
.seg-wide label { flex: 1; }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.row-actions button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.row-actions button:hover { background: var(--soft); color: var(--text); }

/* overlays */
dialog.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(13, 17, 23, .5); }
dialog.modal[open] { animation: pop .2s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--rail); color: #fff; }
.modal-head .icon-btn { color: #cbd2dc; }
.modal-head .icon-btn:hover { background: #1f2937; border-color: transparent; color: #fff; }
.modal-head h2 { font-size: 22px; text-transform: uppercase; }
.modal-body { display: grid; gap: 14px; padding: 18px 20px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 0 20px 18px; }
.palette { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 14vh 12px 12px; background: rgba(13, 17, 23, .5); }
.palette-box { width: min(600px, 100%); border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; animation: pop .18s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; }
.palette-list { max-height: 52vh; margin: 0; padding: 6px; list-style: none; overflow-y: auto; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.palette-list li[aria-selected="true"] { background: var(--rail); color: #fff; }
.palette-list li small { margin-left: auto; color: var(--muted); font: 500 12px var(--mono); }
.palette-list li[aria-selected="true"] small { color: var(--yellow); }
.palette-group { padding: 8px 12px 4px; color: var(--faint); font: 600 12px var(--cond); letter-spacing: .1em; text-transform: uppercase; cursor: default !important; }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 95; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-left: 5px solid var(--orange); border-radius: 8px; background: var(--rail); color: #e5e7eb; box-shadow: var(--shadow); font-size: 14px; animation: pop .25s var(--ease); }
.toast span { flex: 1; }
.toast svg { width: 18px; height: 18px; color: var(--yellow); }
.toast button { padding: 4px 10px; border: 0; border-radius: 6px; background: var(--yellow); color: #111; font: 800 13px var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: .25s; }

/* login + 404 */
.auth { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(980px, 100%); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.auth-form { display: grid; align-content: center; gap: 22px; padding: clamp(24px, 4.5vw, 52px); }
.auth-form h1 { font-size: 40px; text-transform: uppercase; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-top .brand-word { color: var(--text); }
.auth-art { position: relative; display: grid; align-content: end; padding: 40px; background: var(--rail); color: #fff; overflow: hidden; }
.art-lines { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 10; }
.art-lines path { fill: none; }
.art-lines .l1 { stroke: var(--orange); } .art-lines .l2 { stroke: var(--blue); } .art-lines .l3 { stroke: var(--green); }
.art-lines circle { fill: #fff; stroke: #111827; stroke-width: 4; }
.auth-quote { position: relative; padding: 16px; border-radius: 10px; background: rgba(17, 24, 39, .85); font: 800 21px/1.3 var(--cond); }
.auth-quote small { display: block; margin-top: 8px; color: #9aa3b2; font: 400 13px var(--font); }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw button { position: absolute; right: 4px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.lost { display: grid; place-items: center; min-height: 100vh; padding: 70px 16px 30px; }
.lost-card { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; width: min(560px, 100%); padding: clamp(24px, 5vw, 48px); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.lost-route { width: min(320px, 100%); height: auto; stroke: var(--text); stroke-width: 8; }
.lost-route path { fill: none; stroke: var(--orange); }
.lost-route .gone { stroke: var(--line-2); stroke-dasharray: 10 12; }
.lost-route circle { fill: var(--card); stroke: var(--text); stroke-width: 5; }
.lost-route .gone-dot { stroke: var(--line-2); }
.lost-no { font-size: 20px; letter-spacing: .3em; color: var(--muted); }
.lost h1 { font-size: clamp(28px, 5vw, 40px); text-transform: uppercase; }
.lost p { max-width: 420px; color: var(--muted); }
.lost .btn { white-space: normal; }
.lost-lang { position: fixed; top: 16px; right: 16px; z-index: 5; }

/* responsive */
@media (max-width: 1260px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
    .planner, .dispatch { grid-template-columns: minmax(0, 1fr); }
    .pool-card { position: static; max-height: none; }
}
@media (max-width: 960px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .line { position: sticky; top: 0; z-index: 35; flex-direction: row; align-items: center; gap: 12px; height: auto; padding: 8px 12px; overflow: visible; }
    .brand-word small, .depot { display: none; }
    .brand-word { font-size: 20px; }
    .brand-mark { width: 34px; height: 34px; }
    .stops { display: flex; gap: 2px; padding: 0; overflow-x: auto; scrollbar-width: none; }
    .stops::before { left: 20px; right: 20px; top: 50%; bottom: auto; width: auto; height: 5px; margin-top: -2.5px; background: linear-gradient(90deg, var(--orange), var(--blue) 20%, var(--red) 36%, var(--green) 52%, var(--yellow) 68%, var(--purple) 84%, #6b7280); }
    .stop { flex: none; padding: 4px; gap: 8px; }
    .stop-dot { width: 32px; height: 32px; border-width: 3px; }
    .stop:not([aria-current="page"]) .stop-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .stop[aria-current="page"] { padding-right: 10px; background: var(--rail); }
    .stop-badge { position: absolute; top: -2px; right: -4px; min-width: 18px; font-size: 10.5px; line-height: 18px; }
    .stop[aria-current="page"] .stop-badge { position: static; }
    .top { top: 52px; padding: 10px 14px; }
    .search { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; justify-content: center; }
    .search span, .search kbd { display: none; }
    .main { padding: 20px 14px 10px; }
    .foot { padding: 14px; }
    .grid { gap: 14px; }
    .span-6 { grid-column: span 12; }
    .settings { grid-template-columns: minmax(0, 1fr); }
    .set-nav { position: static; display: flex; overflow-x: auto; }
    .set-nav button { white-space: nowrap; }
    .auth-box { grid-template-columns: minmax(0, 1fr); }
    .auth-art { display: none; }
    .pipeline { grid-template-columns: repeat(5, minmax(110px, 1fr)); overflow-x: auto; }
    .top .menu { position: fixed; left: 12px; right: 12px; top: 112px; width: auto; }
}
@media (max-width: 640px) {
    .clock { display: none; }
    .map .city text { font-size: 30px; stroke-width: 6; }
    .map .edge-km { display: none; }
    .map .veh text { font-size: 15px; }
    .map .edge { stroke-width: 10; }
    .top-theme { display: none !important; }
    .me-theme { display: flex !important; }
    .icon-btn { width: 36px; height: 36px; }
    .kpis { gap: 10px; }
    .kpi b { font-size: 30px; }
    .card { padding: 14px; }
    .page-head .head-actions { width: 100%; }
    .page-head .head-actions .btn, .page-head .head-actions .mini-field { flex: 1; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .tools .mini-field { flex: 1 1 130px; }
    .tools .seg { width: 100%; }
    .tools-note { margin-left: 0; }
    .zones { grid-template-columns: minmax(0, 1fr); }
    .stops-pick div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .exceptions li { grid-template-columns: 38px minmax(0, 1fr); }
    .exceptions li .btn { grid-column: 2; justify-self: start; }
    .toasts { right: 12px; width: calc(100vw - 24px); }
}
@media (max-width: 380px) {
    .kpis { grid-template-columns: minmax(0, 1fr); }
    .brand-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    body { background: #fff; }
    .line, .top, .foot, .toasts, .head-actions, .tools { display: none !important; }
    .shell { display: block; }
    .card { box-shadow: none; break-inside: avoid; }
}
