/* Gasketlane · design tokens
   Gunmetal #2B3137 and workshop red #D7332F on shop-floor grey #EDEDED.
   Type: Archivo (UI) + Archivo Narrow (labels, plates, numbers on the board).
   Scale 12/13/14/16/20/26/34 · space 4/8/12/16/20/24/32/40 · radius 4/6/10. */
:root {
  --gm: #2B3137; --gm-bar: #2B3137; --gm-2: #363E45; --gm-ink: #C3C9CE; --tot-bg: #2B3137;
  --red: #D7332F; --red-h: #C42B27; --red-p: #A9231F; --red-ink: #B42723; --red-soft: #FBE7E5; --red-hi: #FF4D4D;
  --floor: #EDEDED; --lane: #E6E7E7; --paper: #FFFFFF; --paper-2: #F6F6F5; --hatch: rgba(43, 49, 55, .07);
  --line: #D8DADC; --line-2: #C3C7CA; --ink: #1F2428; --ink-2: #4A5259; --ink-3: #626A71;
  --ok: #23774A; --ok-bg: #E3F1E8; --warn: #8C5A00; --warn-bg: #FAEED6; --info: #2A5E94; --info-bg: #E2EBF5; --bad: #B3261E; --bad-bg: #FBE3E0;
  --focus: #2F6FB8; --focus-ring: rgba(47, 111, 184, .22); --glass: #DCE3E8; --grid: rgba(43, 49, 55, .055);
  --sh-1: 0 1px 0 rgba(31, 36, 40, .05);
  --sh-2: 0 6px 18px -8px rgba(31, 36, 40, .28), 0 1px 2px rgba(31, 36, 40, .08);
  --sh-3: 0 20px 44px -14px rgba(18, 21, 24, .42), 0 2px 6px rgba(18, 21, 24, .12);
  --r-1: 4px; --r-2: 6px; --r-3: 10px;
  --f-ui: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-nar: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --top-h: 56px; --tab-h: 0px; --sticky-h: 0px;
  color-scheme: light;
}
[data-theme="dark"] {
  --gm-bar: #0F1215; --gm-2: #262C32; --gm-ink: #A9B1B8; --tot-bg: #2B3137;
  --red: #E0403B; --red-h: #EA4E49; --red-p: #C2302B; --red-ink: #FF7570; --red-soft: #3A2220;
  --floor: #15181B; --lane: #1A1E22; --paper: #1F2429; --paper-2: #252B31; --hatch: rgba(255, 255, 255, .035);
  --line: #323940; --line-2: #414950; --ink: #E7EAEC; --ink-2: #B5BCC2; --ink-3: #8E979E;
  --ok: #5DC48B; --ok-bg: #173022; --warn: #E2A94B; --warn-bg: #33270F; --info: #7FAEE0; --info-bg: #172838; --bad: #FF7B72; --bad-bg: #3B1C1A;
  --focus: #7FAEE0; --focus-ring: rgba(127, 174, 224, .28); --glass: #2E3840; --grid: rgba(255, 255, 255, .035);
  --sh-1: 0 1px 0 rgba(0, 0, 0, .3);
  --sh-2: 0 8px 20px -8px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .4);
  --sh-3: 0 22px 48px -12px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; background: var(--floor); color: var(--ink); font: 400 14px/20px var(--f-ui); font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo { fill: var(--red); flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--paper); padding: 8px 12px; border-radius: var(--r-2); box-shadow: var(--sh-2); }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.sm { font-size: 13px; line-height: 18px; }
.pad { padding: 12px 10px; }
.mt { margin-top: 16px; }
.txt-bad { color: var(--bad); } .txt-warn { color: var(--warn); } .txt-ok { color: var(--ok); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--ink-3); font: 600 13px var(--f-nar); letter-spacing: .1em; text-transform: uppercase; }
kbd { display: inline-block; font: 600 11px/1 var(--f-nar); padding: 3px 5px 2px; border-radius: 3px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--paper-2); color: var(--ink-2); letter-spacing: .02em; }
.lbl { display: block; font: 600 12px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 8px; }
.lbl b { color: var(--ink); margin-left: 4px; }
.lnk { background: none; border: 0; padding: 0; color: var(--info); font: 600 13px var(--f-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fine { font-size: 12px; line-height: 16px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.fine .ic { width: 14px; height: 14px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-2); border: 1px solid transparent; font: 600 14px/1 var(--f-ui); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .14s, border-color .14s, color .14s, box-shadow .14s; position: relative; }
.btn .ic { width: 16px; height: 16px; }
.btn kbd { margin-left: 2px; }
.btn-p { background: var(--red); color: #fff; }
.btn-p:hover { background: var(--red-h); }
.btn-p:active { background: var(--red-p); }
.btn-p kbd { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-2 { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-2:hover { border-color: var(--ink-3); background: var(--paper-2); }
.btn-2:active { background: var(--lane); }
.btn-q { background: transparent; color: var(--ink-2); }
.btn-q:hover { background: var(--hatch); color: var(--ink); }
.btn-d { background: var(--paper); color: var(--bad); border-color: currentColor; }
.btn-d:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-dq { color: var(--bad); }
.btn:disabled, .btn[disabled] { opacity: .48; cursor: not-allowed; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 12px; gap: 4px; }
.btn-xs .ic { width: 13px; height: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-2.is-loading::after { border-color: var(--line-2); border-top-color: var(--ink); }
.ibtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-2); background: transparent; border: 0; color: var(--ink-2); cursor: pointer; position: relative; flex: none; }
.ibtn:hover { background: var(--hatch); color: var(--ink); }
.ibtn:disabled { opacity: .4; cursor: not-allowed; }
.ibtn.sm { width: 28px; height: 28px; }
.ibtn.sm .ic { width: 16px; height: 16px; }
[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--f-ui); padding: 6px 8px; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 60; }
@media (hover: hover) { [data-tip]:hover::after { opacity: 1; transition-delay: .35s; } }
[data-tip]:focus-visible::after { opacity: 1; }

/* ---------- inputs */
input, select, textarea { font: 400 14px/20px var(--f-ui); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-1); height: 38px; padding: 0 10px; width: 100%; min-width: 0; transition: border-color .14s, box-shadow .14s; }
textarea { height: auto; padding: 8px 10px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A828A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--red); flex: none; box-shadow: none; }
input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.sel-sm { height: 32px; font-size: 13px; width: auto; }
.in-num { width: 72px; text-align: right; height: 32px; font-variant-numeric: tabular-nums; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > label, .flabel { font: 600 12px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.fld > label em { text-transform: none; font-style: normal; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.fld-btn { justify-content: flex-end; }
.help { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.err { font-size: 12px; line-height: 16px; color: var(--bad); font-weight: 600; }
.err:empty { display: none; }
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; cursor: pointer; }
.chk input { margin-top: 1px; }
.chk em { font-style: normal; color: var(--ink-3); }
.chk-in { align-self: end; padding-bottom: 9px; }
.chk-big { font-weight: 600; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r-2); }
.in-unit { position: relative; display: flex; align-items: center; }
.in-unit span { position: absolute; right: 10px; color: var(--ink-3); font: 600 12px var(--f-nar); text-transform: uppercase; pointer-events: none; }
.in-unit.pre span { left: 10px; right: auto; font: 500 14px var(--f-ui); }
.in-unit.pre input { padding-left: 24px; }
.in-unit input { padding-right: 34px; font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 14px 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* segmented control, chips, tags, avatars */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-2); flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 12px; border: 0; background: transparent; border-radius: 4px; font: 600 13px/28px var(--f-ui); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 1px var(--line); }
[data-theme="dark"] .seg button.on { background: #343B42; box-shadow: none; }
.seg .ic { width: 15px; height: 15px; }
.seg-wide { display: flex; }
.seg-wide button { flex: 1; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); font: 500 13px/1 var(--f-ui); cursor: pointer; transition: background-color .14s, border-color .14s, color .14s; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip .ic { width: 14px; height: 14px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-sq { border-radius: var(--r-1); }
.chip-q { height: 28px; padding: 0 10px; border-style: dashed; font-size: 12px; }
.chips.ro .chip { cursor: default; height: 26px; font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: var(--r-1); font: 600 12px/20px var(--f-nar); letter-spacing: .02em; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag .ic { width: 12px; height: 12px; stroke-width: 2; }
.t-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.t-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.t-info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.t-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 11px/1 var(--f-nar); letter-spacing: .04em; color: #fff; background: var(--tone, #5B6670); flex: none; }
.av-sm { width: 24px; height: 24px; font-size: 10px; }
.av-xs { width: 20px; height: 20px; font-size: 9px; letter-spacing: 0; }
.av-none { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-2); }
.tone-1 { --tone: #7A4B37; } .tone-2 { --tone: #3E6A88; } .tone-3 { --tone: #4C7457; } .tone-4 { --tone: #7E6331; } .tone-5 { --tone: #5E5672; } .tone-6 { --tone: #56636E; }
.cnt { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/18px var(--f-nar); text-align: center; }

/* ---------- number plates (drawn, not images) */
.plate { display: inline-flex; align-items: stretch; height: 22px; background: #F8F8F3; color: #121518; border: 1px solid #1C1F22; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #F8F8F3, inset 0 0 0 2.5px #2A2E32; overflow: hidden; flex: none; vertical-align: middle; }
.plate .pl-ind { display: grid; width: 7px; background: #1F4F9E; place-items: center; font-style: normal; }
.plate .pl-ind em { display: none; font: 700 6px/1 var(--f-nar); color: #fff; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .1em; font-style: normal; }
.plate .pl-t { display: flex; flex-direction: column; justify-content: center; padding: 0 6px 0 5px; color: inherit; }
.plate .pl-t b { display: block; font: 700 13px/1 var(--f-nar); letter-spacing: .05em; white-space: nowrap; color: inherit; overflow: visible; }
.plate.pk-y { background: #F2C230; box-shadow: inset 0 0 0 1.5px #F2C230, inset 0 0 0 2.5px #2A2E32; }
.plate.pk-g { background: #1D7240; color: #fff; box-shadow: inset 0 0 0 1.5px #1D7240, inset 0 0 0 2.5px #E8F2EA; }
.plate.pl-xs { height: 18px; } .plate.pl-xs .pl-ind { width: 5px; } .plate.pl-xs .pl-t b { font-size: 11px; } .plate.pl-xs .pl-t { padding: 0 4px; }
.plate.pl-md { height: 30px; } .plate.pl-md .pl-ind { width: 9px; } .plate.pl-md .pl-t b { font-size: 17px; } .plate.pl-md .pl-t { padding: 0 9px 0 7px; }
.plate.pl-lg { height: 44px; border-width: 1.5px; } .plate.pl-lg .pl-ind { width: 13px; } .plate.pl-lg .pl-ind em { display: block; font-size: 7px; } .plate.pl-lg .pl-t b { font-size: 25px; letter-spacing: .06em; } .plate.pl-lg .pl-t { padding: 0 12px 0 10px; }
.plate.pl-xl { height: 62px; border-width: 2px; border-radius: 5px; } .plate.pl-xl .pl-ind { width: 17px; } .plate.pl-xl .pl-ind em { display: block; font-size: 9px; } .plate.pl-xl .pl-t b { font-size: 36px; letter-spacing: .06em; } .plate.pl-xl .pl-t { padding: 0 16px 0 13px; }
.plate.pl-two { height: 32px; } .plate.pl-two .pl-t b { font-size: 11.5px; line-height: 13px; text-align: center; }
.plate.pl-two.pl-lg { height: 58px; } .plate.pl-two.pl-lg .pl-t b { font-size: 21px; line-height: 23px; }
.plate.pl-two.pl-xl { height: 80px; } .plate.pl-two.pl-xl .pl-t b { font-size: 30px; line-height: 33px; }
.plate.pl-two.pl-md { height: 40px; } .plate.pl-two.pl-md .pl-t b { font-size: 15px; line-height: 17px; }
[data-theme="dark"] .plate { filter: brightness(.9); }
.pl-ghost { opacity: .28; border-style: dashed; }

/* ---------- top bar and navigation */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 20px; padding: 0 20px; background: var(--gm-bar); color: #fff; border-bottom: 1px solid rgba(0, 0, 0, .3); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand-w { font: 800 18px/1 var(--f-ui); letter-spacing: -.01em; }
.brand-g { font: 600 11px/16px var(--f-nar); color: var(--gm-ink); text-transform: uppercase; letter-spacing: .1em; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .16); }
.top-title { display: none; }
.nav { display: flex; align-self: stretch; gap: 2px; min-width: 0; }
.nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 11px; color: var(--gm-ink); text-decoration: none; font: 500 14px/1 var(--f-ui); white-space: nowrap; transition: color .14s, background-color .14s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a.on { color: #fff; font-weight: 600; }
.nav a.on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 3px; background: var(--red); border-radius: 3px 3px 0 0; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tsearch { display: flex; align-items: center; gap: 8px; height: 34px; width: 248px; padding: 0 7px 0 10px; border-radius: var(--r-2); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: var(--gm-ink); font: 400 13px var(--f-ui); cursor: pointer; margin-right: 6px; }
.tsearch:hover { background: rgba(255, 255, 255, .11); color: #fff; }
.tsearch .ic { width: 16px; height: 16px; }
.tsearch kbd { margin-left: auto; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--gm-ink); }
.ib-top { color: var(--gm-ink); }
.ib-top:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ib-top .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 2px var(--gm-bar); }
.me { background: none; border: 0; padding: 2px; border-radius: 50%; cursor: pointer; margin-left: 4px; }
.av-me { background: #59626B; width: 32px; height: 32px; }
.tabbar { display: none; }
.offline { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 8px 16px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: 13px; }
.offline[hidden] { display: none; }
.offline .ic { width: 16px; height: 16px; }

/* ---------- page frame */
.main { padding: 24px 24px 64px; max-width: 1480px; margin: 0 auto; outline: none; }
.page { min-width: 0; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; flex-wrap: wrap; }
.ph h1 { font: 700 26px/32px var(--f-ui); letter-spacing: -.015em; }
.ph-date { font: 600 15px/1 var(--f-nar); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-left: 8px; vertical-align: 3px; }
.ph-m { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.ph-m b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ph-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .ic { width: 16px; height: 16px; }
.toolbar { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.find { position: relative; display: flex; align-items: center; }
.find .ic { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.find input { padding-left: 32px; height: 34px; width: 240px; }
.find-wide input { width: 100%; }
.find-wide { width: 100%; }
.sel-l { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--f-nar); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); padding: 16px 18px; min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h2 { font: 700 16px/24px var(--f-ui); }
.card-h small { display: block; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.card-a { display: flex; gap: 8px; }
.note-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-2); background: var(--info-bg); color: var(--info); font-size: 14px; margin-bottom: 16px; }
.note-bar.sm { font-size: 13px; padding: 8px 12px; margin: 12px 0 0; }
.note-bar.bad { background: var(--bad-bg); color: var(--bad); }
.note-bar .ic { width: 18px; height: 18px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-3); background: var(--paper); }
.empty > .ic { width: 28px; height: 28px; color: var(--ink-3); stroke-width: 1.6; }
.empty h3 { margin-top: 6px; font: 700 16px/24px var(--f-ui); }
.empty p { max-width: 440px; color: var(--ink-2); font-size: 14px; }
.empty > .btn, .empty > .row, .empty > a { margin-top: 10px; }
.card .empty { border: 0; padding: 24px 12px; }

/* skeletons */
.sk { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--lane) 25%, var(--paper-2) 50%, var(--lane) 75%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.sk-board { border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--paper); }
.sk-lane { display: grid; grid-template-columns: 172px repeat(5, 1fr); border-bottom: 1px solid var(--line); min-height: 118px; }
.sk-lane .sk-h { margin: 16px; height: 28px; width: 60%; }
.sk-cell { background: var(--lane); border-left: 1px dashed var(--line-2); padding: 8px; }
.sk-card { height: 92px; border-radius: var(--r-2); }
.sk-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); }
.sk-row { display: flex; gap: 24px; padding: 16px 18px; border-bottom: 1px solid var(--line); }

/* ---------- bay board */
.ph-board .ph-a .find input { width: 170px; }
.board { --lw: 176px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); overflow: clip; }
.bh, .lane { display: grid; grid-template-columns: var(--lw) repeat(5, minmax(0, 1fr)); }
.bh { position: sticky; top: var(--top-h); z-index: 6; background: var(--paper); border-bottom: 1px solid var(--line-2); }
.bh > div { padding: 10px 12px; font: 600 12px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; border-left: 1px dashed var(--line-2); }
.bh > .bh-l { border-left: 0; }
.bh-s b { font: 700 13px/1 var(--f-nar); color: var(--ink); min-width: 20px; text-align: right; }
.lane { border-bottom: 1px solid var(--line); min-height: 140px; }
.lane:last-child { border-bottom: 0; }
.lh { padding: 14px 12px 12px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-content: start; background: var(--paper); }
.bayno { grid-row: span 2; font: 700 34px/1 var(--f-nar); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 38px; }
.bayno.yard { display: grid; place-items: center; width: 36px; height: 36px; border: 2.5px solid var(--ink); border-radius: 6px; font-size: 24px; letter-spacing: 0; }
.bayno.sm { font-size: 22px; min-width: 26px; }
.bayno.yard.sm { width: 26px; height: 26px; font-size: 16px; border-width: 2px; border-radius: 4px; }
.lh-t b { display: block; font: 700 14px/18px var(--f-ui); }
.lh-t small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.lh-who { grid-column: 1 / -1; display: flex; gap: 3px; margin-top: 12px; }
.lh-n { grid-column: 1 / -1; margin-top: 12px; color: var(--ink-3); font-size: 12px; }
.lh-load { grid-column: 1 / -1; margin-top: 8px; }
.lh-load small { display: block; margin-top: 4px; font: 600 12px/16px var(--f-nar); color: var(--ink-3); letter-spacing: .02em; }
.meter { display: block; height: 4px; border-radius: 2px; background: var(--lane); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink-2); border-radius: 2px; transition: width .2s; }
.meter.over i { background: var(--red); }
.cell { padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--lane); border-left: 1px dashed var(--line-2); transition: background-color .12s; }
.lane-yard .cell { background-color: var(--lane); background-image: repeating-linear-gradient(135deg, transparent 0 11px, var(--hatch) 11px 12px); }
.cell.drop-ok { background: var(--red-soft); box-shadow: inset 0 0 0 2px var(--red); }
.cell.drop-no { background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--line-2); cursor: not-allowed; }
.drop-line { display: block; height: 3px; flex: none; border-radius: 2px; background: var(--red); margin: -2.5px 0; }
.cell-free { margin: auto; font: 600 11px/1 var(--f-nar); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); border: 1px dashed var(--line-2); padding: 7px 10px; border-radius: var(--r-1); }
.board-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-3); font-size: 13px; }
.board-hint .ic { width: 16px; height: 16px; }
.board-hint kbd { margin: 0 2px; }

/* job ticket on the board */
.jt { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: 9px 10px 0; box-shadow: var(--sh-1); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: border-color .14s, box-shadow .14s, opacity .14s; }
.jt:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.jt.late { box-shadow: inset 0 3px 0 var(--red), var(--sh-1); }
.jt.dim { opacity: .32; }
.jt-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.jt-no { font: 600 12px/16px var(--f-nar); color: var(--ink-3); letter-spacing: .04em; white-space: nowrap; }
.jt-m { margin-top: 7px; font: 600 14px/18px var(--f-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt-m span { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.jt-c { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt-c em { font-style: normal; font: 600 12px var(--f-nar); color: var(--ink-3); }
.jt-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.jt-tags:empty { display: none; }
.jt-f { position: relative; display: flex; align-items: center; gap: 6px; margin: 8px -10px 0; padding: 6px 10px 7px; border-top: 1px dashed var(--line-2); font: 600 12px/16px var(--f-nar); color: var(--ink-3); letter-spacing: .02em; white-space: nowrap; }
.jt-f::before, .jt-f::after { content: ""; position: absolute; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--lane); border: 1px solid var(--line); }
.jt-f::before { left: -7px; clip-path: inset(0 0 0 50%); }
.jt-f::after { right: -7px; clip-path: inset(0 50% 0 0); }
.jt-run { display: inline-flex; align-items: center; gap: 3px; color: var(--red-ink); }
.jt-run .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.jt-since { overflow: hidden; text-overflow: ellipsis; }
.jt-due { margin-left: auto; color: var(--ink-2); }
.jt-due.is-late { color: var(--red-ink); }
.jt-mv { display: none; }
.jt-src { opacity: .4; border-style: dashed; box-shadow: none !important; }
.jt-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; cursor: grabbing; box-shadow: var(--sh-3) !important; border-color: var(--line-2); transition: none; }
.jt-ghost .jt-f::before, .jt-ghost .jt-f::after { display: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.drop-tip { position: fixed; left: 0; top: 0; z-index: 101; pointer-events: none; display: flex; align-items: center; gap: 6px; max-width: 320px; padding: 6px 10px; border-radius: var(--r-2); background: var(--gm); color: #fff; font: 600 12px/16px var(--f-ui); box-shadow: var(--sh-2); opacity: 0; transition: opacity .12s; }
.drop-tip .ic { width: 14px; height: 14px; }
.drop-tip.bad { background: #5A1D1A; }

/* ---------- check-in: a printed job card */
.pg-ci { max-width: 1060px; margin: 0 auto; }
.arrivals { margin-bottom: 20px; }
.arr-list { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); }
.arr { display: grid; grid-template-columns: 96px auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.arr:last-child { border-bottom: 0; }
.arr-t b { display: block; font: 700 15px/20px var(--f-nar); }
.arr-t small, .arr-v small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.arr.late .arr-t small { color: var(--red-ink); font-weight: 600; }
.arr-v { min-width: 0; } .arr-v b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 14px 32px -20px rgba(31, 36, 40, .3); }
.paper::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--red); border-radius: var(--r-2) var(--r-2) 0 0; }
.paper-h { display: grid; grid-template-columns: auto auto auto 1fr; gap: 12px 40px; align-items: end; padding: 22px 28px 16px; border-bottom: 2px solid var(--ink); }
.paper-h b { display: block; font: 600 15px/20px var(--f-ui); }
.paper-h .lbl { margin-bottom: 2px; }
.jc-no { font: 700 24px/26px var(--f-nar) !important; letter-spacing: .02em; color: var(--red-ink); }
.paper-logo { justify-self: end; display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-nar); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.sec { border: 0; margin: 0; padding: 20px 28px 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.sec:last-of-type { border-bottom: 0; }
.sec legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font: 700 13px/20px var(--f-nar); text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }
.sec-n { display: inline-grid; place-items: center; width: 28px; height: 22px; border: 1.5px solid var(--ink); border-radius: 3px; font: 700 12px/1 var(--f-nar); letter-spacing: .04em; }
.sec-b { clear: both; display: flex; flex-direction: column; gap: 14px; }
.paper .sec input:not([type="checkbox"]):not([type="radio"]), .paper .sec select { border-width: 0 0 1.5px; border-radius: 0; background-color: transparent; padding-left: 2px; }
.paper .sec input:not([type="checkbox"]):focus, .paper .sec select:focus { box-shadow: 0 2px 0 0 var(--focus); background-color: var(--paper-2); }
.paper .in-unit.pre input { padding-left: 20px !important; }
.paper .in-unit.pre span { left: 2px; }
.ci-reg { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ci-reg .fld { width: 300px; }
#ci-reg { height: 48px; font: 700 24px/1 var(--f-nar); letter-spacing: .08em; text-transform: uppercase; }
.ci-plate { min-height: 58px; display: flex; align-items: center; }
.look { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-2); font-size: 13px; line-height: 18px; }
p.look.muted { padding: 0; }
.look .ic { width: 18px; height: 18px; flex: none; }
.look span { flex: 1; }
.look-ok { background: var(--ok-bg); color: var(--ok); }
.look-ok b, .look-new b, .look-bad b { color: inherit; }
.look-new { background: var(--info-bg); color: var(--info); }
.look-bad { background: var(--bad-bg); color: var(--bad); }
.look-a { font-weight: 600; white-space: nowrap; }
.look.sm { margin: 0; }
.gauge { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-2); width: max-content; max-width: 100%; }
.g-s { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.g-s i { display: block; width: 100%; height: 22px; border-radius: 2px; background: var(--lane); border: 1px solid var(--line); transition: background-color .12s; }
.g-s.fill i { background: var(--ink-2); border-color: var(--ink-2); }
.g-s.on i { background: var(--ink); border-color: var(--ink); box-shadow: 0 -3px 0 var(--red) inset; }
.g-s span { font: 700 11px/12px var(--f-nar); color: var(--ink-3); min-height: 12px; }
.ci-cadd { display: flex; gap: 8px; }
.ci-cadd input { flex: 1; }
.ci-clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ci-clist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 22px; }
.ci-clist li:last-child { border-bottom: 0; }
.ci-clist .n { font: 700 12px/1 var(--f-nar); color: var(--ink-3); width: 16px; flex: none; }
.ci-clist q { flex: 1; quotes: "“" "”"; }
.ci-clist.ro li { font-size: 14px; padding: 6px 0; }
.sec-dg .sec-b { gap: 12px; }
.dg-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.dg-tool { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--paper); font: 600 13px/1 var(--f-ui); color: var(--ink-2); cursor: pointer; }
.dg-tool:hover { color: var(--ink); border-color: var(--ink-3); }
.dg-tool.on { color: var(--ink); border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.dg-tool kbd { margin-left: 2px; }
.dg-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.dg-wrap { background-color: var(--paper-2); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 14px 14px; border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px; }
.dg-grid:has(.is-bike) { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
.dg { width: 100%; height: auto; }
.dg-tap { cursor: crosshair; border-radius: 4px; }
.dg-body { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; }
.dg-glass { fill: var(--glass); stroke: var(--ink-2); stroke-width: 1.2; }
.dg-roof { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1.2; }
.dg-line { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-linecap: round; }
.dg-line.thick { stroke-width: 6; stroke: var(--ink-2); }
.dg-lamp { fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; }
.dg-lamp2 { fill: var(--ink-3); }
.dg-wheel rect { fill: var(--ink-2); }
.dg-wheel2 circle { fill: none; stroke: var(--ink-2); stroke-width: 10; }
.dg-hub circle { fill: var(--paper); stroke: var(--ink-3); stroke-width: 1.5; }
.dg-seat { fill: var(--ink-2); }
.dg-lbl { font: 700 9px var(--f-nar); letter-spacing: .14em; fill: var(--ink-3); text-anchor: middle; }
.dg-bike .dg-lbl { font-size: 12px; }
.dg-cross circle { fill: none; stroke: var(--focus); stroke-width: 1.5; stroke-dasharray: 3 3; }
.dg-cross path { stroke: var(--focus); stroke-width: 1.5; }
.mk { cursor: pointer; }
.mk text { font: 700 10px/1 var(--f-nar); text-anchor: middle; fill: #fff; pointer-events: none; }
.mk-f { fill: var(--red); stroke: #fff; stroke-width: 1.5; }
.mk-r { fill: #fff; stroke: var(--red); stroke-width: 2.6; }
.mk-dent text, .mk-chip text { fill: #A9231F; }
.mk:hover .mk-f { fill: var(--red-h); }
.mk-ic { width: 18px; height: 18px; flex: none; overflow: visible; }
.mk-ic text { display: none; }
.dg-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mk-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 20px; }
.mk-list li > span { flex: 1; min-width: 0; }
.mk-list li small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.mk-list.ro li { font-size: 13px; }
.quick { margin-top: -2px; }
.sticky-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 12px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3) var(--r-3) 0 0; box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .3); }
.sticky-bar p { color: var(--ink-2); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar .txt-bad { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.sticky-bar .txt-bad .ic { width: 16px; height: 16px; }
.saved { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font: 600 12px var(--f-nar); letter-spacing: .04em; text-transform: uppercase; }
.saved .ic { width: 14px; height: 14px; }
.job-bar { display: none; }

/* ---------- job card */
.jh { padding: 22px 24px 0; }
.jh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.jh-id { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.jh-id .lbl { margin: 0; }
.jh-id h1 { font: 700 30px/34px var(--f-nar); letter-spacing: .01em; color: var(--red-ink); }
.jh-act { display: flex; gap: 4px; }
.jh-veh { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.jh-veh > div > b { display: block; font: 700 20px/26px var(--f-ui); }
.jh-veh > div > span { display: block; color: var(--ink-2); font-size: 14px; }
.jh-veh a { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--info); text-decoration: none; }
.jh-veh a:hover { text-decoration: underline; }
.jh-veh a .ic { width: 15px; height: 15px; }
.jh-meta { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr) 1.2fr 1.2fr; margin: 18px -24px 0; border-top: 1px solid var(--line); }
.jh-meta > div { padding: 12px 16px; border-left: 1px solid var(--line); min-width: 0; }
.jh-meta > div:first-child { border-left: 0; padding-left: 24px; }
.jh-meta dt { font: 600 11px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 3px; }
.jh-meta dd { margin: 0; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.jh-meta dd b { font-weight: 600; font-size: 14px; }
.jh-meta dd > span { font-size: 12px; line-height: 17px; color: var(--ink-3); }
.jh-meta select { width: 100%; }
.jm-btns { display: flex; gap: 2px; margin: 3px 0 0 -8px; }
.stepper { display: flex; list-style: none; margin: 0 -24px; padding: 0; border-top: 1px solid var(--line); counter-reset: s; }
.stepper li { flex: 1; position: relative; min-width: 0; }
.stepper li + li { border-left: 1px solid var(--line); }
.stepper button, .stepper .st-x { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: transparent; border: 0; font: 600 13px/1 var(--f-ui); color: var(--ink-3); text-align: left; white-space: nowrap; }
.stepper button { cursor: pointer; }
.stepper button:hover { background: var(--paper-2); color: var(--ink); }
.stepper i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); font: 700 11px/1 var(--f-nar); font-style: normal; flex: none; }
.stepper i .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done i { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }
.stepper li.on .st-x { color: var(--ink); }
.stepper li.on i { background: var(--red); border-color: var(--red); color: #fff; }
.stepper li.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.stepper span { overflow: hidden; text-overflow: ellipsis; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 20px; margin-top: 20px; align-items: start; }
.job-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.job-rail { position: sticky; top: calc(var(--top-h) + 16px); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto; scrollbar-width: thin; border-radius: var(--r-3); }
.cf { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.find-list { list-style: none; margin: 0 0 10px; padding: 0; }
.find-list li { display: flex; gap: 8px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.find-list .ic { width: 16px; height: 16px; color: var(--ink-3); margin-top: 2px; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row input { height: 32px; font-size: 13px; }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines th { text-align: left; font: 600 11px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.lines th:first-child, .lines td:first-child { padding-left: 0; }
.lines td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lines tr.grp td { padding: 12px 0 6px; font: 700 12px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.ln-d { min-width: 180px; }
.ln-d b { font-weight: 600; display: block; }
.ln-sub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 3px; }
.ln-sub small, .ln-bin, .ln-note { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ln-note { flex-basis: 100%; }
.ln-w { min-width: 150px; }
.ln-w .sel-sm { width: 150px; }
.ln-w .tag, .ln-bin { display: inline-flex; }
.ln-w .ln-bin { display: block; margin-top: 2px; }
.ln-w .btn-xs { margin-top: 4px; }
.ln-amt { font-weight: 600; white-space: nowrap; }
.ln-r { color: var(--ink-2); white-space: nowrap; }
.ln-ap { white-space: nowrap; }
.ln-x { width: 36px; text-align: right; }
.ln.st-declined .ln-d b, .ln.st-declined .ln-amt { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-3); }
.ln.st-pending { background: linear-gradient(90deg, var(--info-bg), transparent 30%); }
.ap { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-2); overflow: hidden; vertical-align: middle; }
.ap button { width: 32px; height: 28px; display: grid; place-items: center; background: var(--paper); border: 0; color: var(--ink-3); cursor: pointer; }
.ap button + button { border-left: 1px solid var(--line-2); }
.ap button:hover:not(:disabled) { color: var(--ink); background: var(--paper-2); }
.ap button:disabled { cursor: not-allowed; }
.ap .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.ap-y.on { background: var(--ok); color: #fff; }
.ap-n.on { background: var(--ink-2); color: var(--paper); }
.ap-y.on:hover, .ap-n.on:hover { color: #fff; }
.ap-l { display: inline-block; margin-left: 8px; font: 600 12px var(--f-nar); color: var(--ink-3); letter-spacing: .03em; width: 56px; vertical-align: middle; }
.st-approved .ap-l { color: var(--ok); } .st-pending .ap-l { color: var(--info); }
.lines-f { display: flex; justify-content: flex-end; margin-top: 8px; }
.est-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.est-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding-right: 10px; }
.est-steps li::after { content: ""; position: absolute; left: 30px; right: 10px; top: 10px; height: 1.5px; background: var(--line-2); }
.est-steps li:last-child::after { display: none; }
.est-steps i { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); position: relative; z-index: 1; }
.est-steps li.on i { background: var(--ok); border-color: var(--ok); color: #fff; }
.est-steps i .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.est-steps b { font: 700 13px/22px var(--f-ui); background: var(--paper); position: relative; z-index: 1; justify-self: start; padding-right: 6px; }
.est-steps small { font-size: 12px; color: var(--ink-3); line-height: 16px; }
.est-sum { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.est-sum b { color: var(--ink); }
.why { color: var(--ink-3); font-size: 12px; }
.dmg { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: start; }
.dmg .dg { max-width: 170px; }
.dmg:has(.dg-bike) { grid-template-columns: 300px minmax(0, 1fr); }
.dmg .dg-bike { max-width: 300px; }
.act { list-style: none; margin: 0; padding: 0; }
.act li { display: grid; grid-template-columns: 136px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 18px; }
.act time { font: 600 12px/18px var(--f-nar); color: var(--ink-3); letter-spacing: .02em; }
.tot { background: var(--tot-bg); color: #fff; border-radius: var(--r-3); padding: 18px 20px; flex: none; }
.tot .lbl { color: #AEB6BD; margin-bottom: 4px; }
.tot-key { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tot-key b { font: 700 34px/40px var(--f-ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tot-key small { color: #AEB6BD; font-size: 13px; }
.tot-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .09); margin: 14px 0 8px; }
.tot-bar i { display: block; height: 100%; transition: width .2s; }
.tot-bar .a, .tot-leg .a { background: var(--red-hi); }
.tot-bar .p, .tot-leg .p { background: #8EA2B2; }
.tot-bar .d, .tot-leg .d { background: rgba(255, 255, 255, .22); }
.tot-leg { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 14px; font: 600 12px var(--f-nar); color: #C3CAD0; letter-spacing: .03em; }
.tot-leg li { display: flex; align-items: center; gap: 5px; }
.tot-leg i { width: 8px; height: 8px; border-radius: 2px; }
.tot-l { margin: 0; }
.tot-l > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; color: #C3CAD0; }
.tot-l dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.tot-l .sep { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 5px; padding-top: 9px; }
.tot-disc { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0; background: none; border: 0; color: #DCE1E5; font: 600 13px var(--f-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.tot-disc .ic { width: 15px; height: 15px; }
.tot :focus-visible { outline-color: #fff; }
.next p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.lnk-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; font-size: 13px; }
.lnk-row .ic { width: 16px; height: 16px; }
.lnk-row .ic:last-child { margin-left: auto; color: var(--ink-3); }
.tlog .card-h { margin-bottom: 8px; }
.clk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -6px 8px; border-radius: var(--r-2); background: var(--red-soft); }
.clk b { display: block; font-weight: 600; font-size: 13px; }
.clk small { display: block; font-size: 12px; color: var(--ink-3); }
.clk-t { font: 700 16px/1 var(--f-nar) !important; color: var(--red-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.clk-start { display: flex; gap: 8px; margin-bottom: 10px; }
.clk-start select { flex: 1; width: auto; min-width: 0; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.tl-r { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-list b { font: 600 12px var(--f-nar); letter-spacing: .02em; }
.print-sheet { display: none; }

/* ---------- windows, sheets, menus */
#modal-root { position: fixed; inset: 0; z-index: 80; display: none; }
#modal-root.open { display: grid; place-items: center; padding: 24px; }
.ov { position: absolute; inset: 0; background: rgba(15, 18, 21, .5); animation: fade .16s ease-out; }
.win { position: relative; width: min(540px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-3); box-shadow: var(--sh-3); animation: win-in .18s ease-out; overflow: hidden; outline: none; }
.win.sm { width: min(420px, 100%); }
.win.md { width: min(620px, 100%); }
.win-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.win-h h2 { font: 700 18px/24px var(--f-ui); }
.win-h p { margin-top: 2px; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.win-h .ibtn { margin: -4px -8px 0 0; }
.win-b { padding: 16px 20px 18px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.win-f { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--paper-2); flex-wrap: wrap; }
.win-f .sp { flex: 1; }
.win-text { font-size: 14px; color: var(--ink-2); }
.win-pal { align-self: start; margin-top: 10vh; width: min(620px, 100%); }
.win-pal .win-b { padding: 0; gap: 0; }
.pal-in { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-in .ic { color: var(--ink-3); }
.pal-in input { height: 56px; border: 0; padding: 0; font-size: 17px; background: transparent; box-shadow: none !important; }
.pal-r { max-height: 54vh; overflow-y: auto; padding: 6px; }
.pal-g { font: 600 11px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 10px 10px 4px; }
.pal-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: var(--r-2); text-align: left; cursor: pointer; min-height: 44px; }
.pal-i > .ic { color: var(--ink-3); width: 18px; height: 18px; }
.pal-i > span:not(.plate) { flex: 1; min-width: 0; }
.pal-i b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i.on, .pal-i:hover { background: var(--paper-2); }
.pal-i.on { box-shadow: inset 3px 0 0 var(--red); }
.pal-none { padding: 24px 16px; color: var(--ink-2); font-size: 14px; }
.pal-k { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--paper-2); flex-wrap: wrap; }
.menu { position: fixed; z-index: 85; min-width: 230px; max-width: min(380px, calc(100vw - 16px)); max-height: calc(100vh - 80px); overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-3); padding: 6px; animation: pop .14s ease-out; }
.menu > button, .menu > a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 4px; text-align: left; font: 500 14px/20px var(--f-ui); color: var(--ink); text-decoration: none; cursor: pointer; }
.menu > button .ic, .menu > a .ic { width: 17px; height: 17px; color: var(--ink-3); }
.menu > button kbd { margin-left: auto; }
.menu > button:hover, .menu > a:hover { background: var(--paper-2); }
.menu-h { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-h b { display: block; font-size: 14px; }
.menu-h small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.menu-d, .menu-d .ic { color: var(--bad) !important; }
.menu-ob { width: 400px; }
.menu-side { width: 340px; }
.side-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 4px; text-decoration: none; }
.side-i:hover { background: var(--paper-2); }
.side-i > span:not(.plate) { flex: 1; min-width: 0; }
.side-i b { display: block; font-size: 14px; }
.side-i small { display: block; font-size: 12px; color: var(--ink-3); }
.side-i .ic { width: 16px; height: 16px; color: var(--ink-3); }
.ob { list-style: none; margin: 0; padding: 0; }
.ob-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ob-i:last-child { border-bottom: 0; }
.ob-k { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); }
.ob-k .ic { width: 14px; height: 14px; }
.ob-i b { display: block; font-size: 13px; line-height: 18px; }
.ob-i p { font-size: 12px; line-height: 16px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-i small { font-size: 12px; color: var(--ink-3); }
.ob-i.failed .ob-k { background: var(--bad-bg); color: var(--bad); }
.ob-i.failed small { color: var(--bad); }
.ob-go { color: var(--ink-3); }
.ob-go .ic { width: 16px; height: 16px; }
.mk-types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; }
.menu-f { display: flex; gap: 6px; padding: 8px 4px 4px; }
.menu-f input { height: 32px; font-size: 13px; }
.more { display: flex; flex-direction: column; }
.more-i { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.more-i .ic { color: var(--ink-2); }
.more-i b { display: block; font-size: 15px; }
.more-i small { display: block; font-size: 12px; color: var(--ink-3); }
.more-row { display: flex; flex-wrap: wrap; gap: 8px; }
.more-out { justify-content: flex-start; padding: 0 4px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.keys > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; font-size: 13px; color: var(--ink-2); text-align: right; }
.mv-f { border: 0; margin: 0; padding: 0; min-width: 0; }
.mv-bays { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mv-b { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-2); cursor: pointer; }
.mv-b:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.mv-b.no-fit { opacity: .55; }
.mv-b b { display: block; font-size: 14px; }
.mv-b small { display: block; font-size: 12px; color: var(--ink-3); line-height: 16px; }
.mv-st { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-st label { position: relative; }
.mv-st input { position: absolute; opacity: 0; }
.mv-st span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.mv-st input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mv-st input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.mv-msg { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ok); min-height: 20px; }
.mv-msg.bad { color: var(--bad); }
.mv-msg .ic { width: 16px; height: 16px; }
.pick { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-2); }
.pick li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.pick li:last-child { border-bottom: 0; }
.pick li[hidden] { display: none; }
.pick li > span:first-child { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pick li > span:first-child > span { min-width: 0; }
.pick b { display: block; font-size: 14px; font-weight: 600; }
.pick small { display: block; font-size: 12px; color: var(--ink-3); line-height: 16px; }
.pick-s { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.pick li.fit { background: linear-gradient(90deg, var(--ok-bg), transparent 40%); }
.custom { border-top: 1px solid var(--line); padding-top: 14px; }
.bubble-wrap { display: flex; flex-direction: column; gap: 6px; }
.bubble { background: var(--ok-bg); border-radius: 14px 14px 14px 4px; padding: 10px 12px; max-width: 460px; }
.bubble textarea { background: transparent; border: 0; padding: 0; font-size: 14px; line-height: 20px; color: var(--ink); box-shadow: none !important; min-height: 120px; }
.bubble p { font-size: 14px; line-height: 20px; color: var(--ink); }
.bubble.sm p { font-size: 13px; line-height: 19px; }
.es-lines { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.es-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.es-lines b { font-variant-numeric: tabular-nums; }
.es-lines .tot-row { border-bottom: 0; font-weight: 700; padding-top: 8px; }
.pt-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-2); }
.pt-stats > div { padding: 10px 12px; border-left: 1px solid var(--line); }
.pt-stats > div:first-child { border-left: 0; }
.pt-stats dt { font: 600 11px var(--f-nar); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.pt-stats dd { margin: 2px 0 0; font: 700 18px/24px var(--f-nar); font-variant-numeric: tabular-nums; }
.pt-stats dd small { display: block; font: 400 11px var(--f-ui); color: var(--ink-3); }
.mini { list-style: none; margin: -4px 0 0; padding: 0; font-size: 13px; }
.mini li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mini li > span { flex: 1; color: var(--ink-2); min-width: 0; }
.mini li small { color: var(--ink-3); }
.mv-list li > span:first-child { flex: none; width: 34px; font: 700 13px var(--f-nar); text-align: right; }
.pay-upi { display: flex; gap: 16px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-2); }
.pay-upi > div { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pay-upi small { color: var(--ink-3); font-size: 12px; }
.qr { width: 112px; height: 112px; flex: none; background: #fff; padding: 6px; border-radius: 4px; border: 1px solid var(--line); fill: #15181B; }
.qr .qw { fill: #fff; }
.pay-change { font: 700 22px/38px var(--f-nar); font-variant-numeric: tabular-nums; }
.call-n { display: flex; align-items: center; gap: 10px; font-size: 22px; }

/* ---------- toasts */
#toasts { position: fixed; left: 20px; bottom: calc(20px + var(--sticky-h)); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 11px 10px 11px 14px; background: var(--gm); color: #fff; border-radius: var(--r-2); box-shadow: var(--sh-3); font-size: 14px; line-height: 20px; animation: tin .18s ease-out; transition: opacity .18s, transform .18s; }
[data-theme="dark"] .toast { background: #343C44; }
.toast p { flex: 1; min-width: 0; }
.toast > .ic { width: 18px; height: 18px; margin-top: 1px; color: #9FB0BD; }
.toast.t-ok > .ic { color: #72D39F; }
.toast.t-error { background: #5B1E1B; }
.toast.t-error > .ic { color: #FF9C95; }
.toast.out { opacity: 0; transform: translateY(6px); }
.t-act { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px; margin-top: -2px; background: rgba(255, 255, 255, .1); border: 0; border-radius: 4px; color: #fff; font: 700 13px var(--f-ui); cursor: pointer; white-space: nowrap; }
.t-act:hover { background: rgba(255, 255, 255, .18); }
.t-act .ic { width: 14px; height: 14px; }
.t-x { display: grid; place-items: center; width: 24px; height: 24px; margin-top: -2px; background: none; border: 0; color: #AEB6BD; cursor: pointer; border-radius: 4px; }
.t-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.t-x .ic { width: 14px; height: 14px; }

/* ---------- tables */
.tbl-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); overflow: clip; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: var(--top-h); z-index: 2; background: var(--paper-2); text-align: left; font: 600 11px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.tbl td > b { font-weight: 600; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--paper-2); }
.tbl tr.click:focus-visible { outline-offset: -2px; }
.tbl tfoot td { position: sticky; bottom: 0; background: var(--paper-2); font-weight: 600; border-top: 1.5px solid var(--line-2); border-bottom: 0; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.vrow { display: flex; align-items: center; gap: 12px; }
.vrow > span > b { display: block; font-weight: 600; }
.bin { font: 700 13px var(--f-nar); letter-spacing: .04em; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--paper-2); }
.tbl-parts tr.st-out td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tbl-parts tr.st-low td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
@media (max-width: 760px) { .tbl-parts tr.st-out, .tbl-parts tr.st-low { box-shadow: inset 3px 0 0 var(--warn); } .tbl-parts tr.st-out { box-shadow: inset 3px 0 0 var(--bad); } .tbl-parts tr td:first-child { box-shadow: none !important; } }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.pager b { font: 600 13px var(--f-nar); color: var(--ink); min-width: 44px; text-align: center; }
.pager > span { margin-right: 8px; }

/* ---------- vehicles */
.vsearch { display: flex; align-items: center; gap: 20px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); margin-bottom: 16px; }
.vs-in { position: relative; flex: 1; min-width: 0; }
.vs-in .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.vs-in input { height: 50px; padding-left: 44px; font: 600 18px/1 var(--f-ui); }
.vs-plate { flex: none; }
.vs-hint { font-size: 13px; color: var(--ink-3); }
.vs-hint b { font: 700 14px var(--f-nar); color: var(--ink-2); letter-spacing: .04em; }
.vh-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); position: relative; overflow: hidden; }
.vh-h::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--red); }
.vh-t h1 { font: 700 26px/32px var(--f-ui); letter-spacing: -.01em; }
.vh-t p { color: var(--ink-2); margin: 2px 0 8px; }
.vh-own { display: flex; flex-direction: column; gap: 2px; padding-left: 24px; border-left: 1px solid var(--line); font-size: 14px; }
.vh-own .lbl { margin-bottom: 2px; }
.vh-own small { color: var(--ink-3); font-size: 12px; line-height: 17px; }
.vh-own a { color: var(--info); }
.vh-act { display: flex; flex-direction: column; gap: 8px; }
.vh-stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 16px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); }
.vh-stats > div { padding: 12px 18px; border-left: 1px solid var(--line); }
.vh-stats > div:first-child { border-left: 0; }
.vh-stats dt { font: 600 11px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.vh-stats dd { margin: 4px 0 0; font: 700 20px/26px var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.vh-stats dd small { display: block; font: 400 12px/16px var(--f-ui); color: var(--ink-3); letter-spacing: 0; }
.vh-stats dd span { font-size: 16px; }
.vh-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.vh-grid textarea { min-height: 120px; }
.oc { width: 100%; height: auto; }
.oc-grid { stroke: var(--line); stroke-width: 1; }
.oc-ax { font: 600 11px var(--f-nar); fill: var(--ink-3); letter-spacing: .03em; }
.oc-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.oc-proj { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 5; }
.oc-pt { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.oc-pt.open { fill: var(--red); stroke: var(--red); }
.oc-pt-p { fill: var(--paper); stroke: var(--ink-3); stroke-width: 2; }
.oc-due { stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 2 4; }
.oc-due-t { font: 600 11px var(--f-nar); fill: var(--red-ink); letter-spacing: .03em; }
.vh-list { list-style: none; margin: 0; padding: 0; }
.vh-i { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.vh-i:first-child { border-top: 0; }
.vh-i.cancel { opacity: .75; }
.vh-d b { display: block; font: 700 14px/20px var(--f-nar); letter-spacing: .02em; }
.vh-d small { display: block; color: var(--ink-3); font-size: 12px; }
.vh-w p { font-size: 14px; }
.vh-w em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.vh-w small { display: block; font-size: 12px; margin-top: 2px; }
.vh-a { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.vh-a b { font-variant-numeric: tabular-nums; }
.vh-a small { color: var(--ink-3); font-size: 12px; }

/* ---------- team */
.team { list-style: none; margin: 0 0 16px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); }
.tm, .tm-axis { display: grid; grid-template-columns: 220px 160px minmax(0, 1fr) 220px 236px; align-items: center; gap: 18px; }
.tm { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tm:last-child { border-bottom: 0; }
.tm.leave { background: var(--paper-2); }
.tm.leave .tm-who, .tm.leave .tm-line, .tm.leave .tm-num { opacity: .6; }
.tm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-who b { display: block; font-weight: 600; }
.tm-who small { display: block; font-size: 12px; color: var(--ink-3); line-height: 16px; }
.tm-run { display: block; text-decoration: none; }
.tm-run b { display: block; font: 700 18px/22px var(--f-nar); color: var(--red-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tm-run small { display: block; font-size: 12px; color: var(--ink-3); }
.tm-now .muted { font-size: 13px; }
.tm-line { position: relative; height: 26px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; }
.seg-b { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--tone); color: #fff; font: 600 11px/18px var(--f-nar); padding: 0 5px; overflow: hidden; white-space: nowrap; text-decoration: none; letter-spacing: .02em; }
.seg-b.live { box-shadow: inset -3px 0 0 var(--red-hi); }
.seg-b:hover { filter: brightness(1.12); }
.tm-axis { padding: 0 16px 6px; }
.tm-ticks { grid-column: 3; position: relative; height: 16px; }
.tm-ticks i { position: absolute; top: 0; transform: translateX(-50%); font: 600 11px/16px var(--f-nar); font-style: normal; color: var(--ink-3); letter-spacing: .03em; white-space: nowrap; }
.tm-ticks i.now { transform: translateX(-100%); color: var(--red-ink); }
.tm-axis > span:first-child { grid-column: 1 / 3; }
.tm-num { display: flex; gap: 18px; }
.tm-num span { display: flex; flex-direction: column; }
.tm-num b { font: 700 15px/20px var(--f-nar); font-variant-numeric: tabular-nums; }
.tm-num small { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--f-nar); font-weight: 600; }
.tm-act { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.tm-act .sel-sm { width: 92px; }

/* ---------- billing and the invoice document */
.inv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.inv-side { position: sticky; top: calc(var(--top-h) + 16px); }
.inv-side .col { margin-top: 14px; }
.inv-side .col .btn { justify-content: flex-start; }
.inv-st { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ok); }
.inv-st b { color: inherit; }
.inv-st .txt-warn { color: var(--warn); }
.doc { position: relative; background: #fff; color: #1D2125; border: 1px solid var(--line); border-radius: 3px; padding: 40px 44px 34px; box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .4); font-size: 13px; line-height: 18px; overflow: hidden; }
.doc .lbl { color: #5E666D; }
.doc .logo { fill: #D7332F; }
.doc-h { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid #1D2125; }
.doc-b { display: flex; gap: 14px; align-items: flex-start; max-width: 420px; }
.doc-b b { display: block; font: 800 18px/24px var(--f-ui); }
.doc-b small { display: block; color: #4D555C; font-size: 12px; line-height: 17px; }
.doc-t { text-align: right; }
.doc-t h2 { font: 700 13px/18px var(--f-nar); text-transform: uppercase; letter-spacing: .2em; color: #D7332F; margin-bottom: 8px; }
.doc-t dl { margin: 0; display: grid; gap: 2px; }
.doc-t dl > div { display: flex; justify-content: flex-end; gap: 12px; }
.doc-t dt { color: #5E666D; font-size: 12px; }
.doc-t dd { margin: 0; font: 700 13px var(--f-nar); letter-spacing: .03em; min-width: 110px; }
.doc-p { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid #D5D8DA; }
.doc-p b { display: block; font-size: 14px; }
.doc-p small { display: block; color: #4D555C; font-size: 12px; line-height: 17px; }
.doc-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.doc-tbl th { font: 600 11px/16px var(--f-nar); text-transform: uppercase; letter-spacing: .07em; color: #5E666D; text-align: left; padding: 8px 6px; border-bottom: 1px solid #1D2125; }
.doc-tbl td { padding: 8px 6px; border-bottom: 1px solid #E3E5E6; vertical-align: top; font-variant-numeric: tabular-nums; }
.doc-tbl td.num, .doc-tbl th.num { white-space: nowrap; }
.doc-tbl td small { display: block; color: #6B737A; font-size: 11px; }
.doc-tbl td:first-child, .doc-tbl th:first-child { padding-left: 0; width: 24px; color: #6B737A; }
.doc-tbl td:last-child, .doc-tbl th:last-child { padding-right: 0; }
.doc-f { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; padding-top: 16px; }
.doc-w p { font-weight: 600; margin-bottom: 8px; }
.doc-w small { display: block; color: #5E666D; font-size: 12px; line-height: 17px; }
.doc-tot { margin: 0; }
.doc-tot > div { display: flex; justify-content: space-between; padding: 3px 0; }
.doc-tot dt { color: #4D555C; }
.doc-tot dd { margin: 0; font-variant-numeric: tabular-nums; }
.doc-tot .grand { margin-top: 6px; padding-top: 8px; border-top: 2px solid #1D2125; font-weight: 800; font-size: 16px; }
.doc-tot .grand dt { color: #1D2125; }
.doc-s { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 28px; padding-top: 14px; border-top: 1px dashed #C9CDD0; }
.doc-s small { display: block; color: #4D555C; font-size: 12px; }
.doc-s .fine { color: #6B737A; margin-top: 6px; }
.sig { text-align: right; }
.sig span { display: block; width: 180px; height: 34px; border-bottom: 1px solid #1D2125; margin-left: auto; margin-bottom: 4px; }
.stamp { display: inline-block; margin: 14px 0 0 4px; transform: rotate(-6deg); border: 3px solid #23774A; color: #23774A; font: 700 22px/1 var(--f-nar); letter-spacing: .22em; padding: 6px 14px 5px; text-transform: uppercase; border-radius: 4px; opacity: .85; pointer-events: none; }
.stamp.warn { border-color: #8C5A00; color: #8C5A00; font-size: 15px; letter-spacing: .12em; }

/* ---------- reminders */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: none; border: 0; font: 600 14px var(--f-ui); color: var(--ink-3); cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; background: var(--red); border-radius: 3px 3px 0 0; }
.tabs b { font: 700 12px/18px var(--f-nar); min-width: 22px; padding: 0 6px; border-radius: 9px; background: var(--lane); color: var(--ink-2); text-align: center; }
.rem-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rem-g { margin-bottom: 18px; }
.rem-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-3); }
.rem { display: grid; grid-template-columns: auto minmax(200px, 1.1fr) minmax(0, 1.5fr) 140px auto; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.rem:last-child { border-bottom: 0; }
.rem.sel { background: var(--red-soft); }
.rem-v { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rem-v > span { min-width: 0; }
.rem-v b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rem-v small, .rem-why small, .rem-amt small { display: block; font-size: 12px; color: var(--ink-3); line-height: 16px; }
.rem-why b { font-weight: 600; font-size: 14px; }
.rem-act { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.rem-amt { text-align: right; font-variant-numeric: tabular-nums; }
.pg-rem .rem:not(:has(.rem-c)) { grid-template-columns: minmax(200px, 1.1fr) minmax(0, 1.3fr) 110px auto; }
.rem-p { grid-template-columns: minmax(200px, 1fr) minmax(0, 1fr) auto !important; }
.rem-bulk { position: sticky; top: calc(var(--top-h) + 8px); z-index: 5; display: flex; align-items: center; gap: 12px; padding: 8px 14px; margin-bottom: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); }
.rem-bulk.on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.rem-bulk .chk { margin-right: auto; font-weight: 600; font-size: 13px; }
.parked { margin-top: 8px; }
.parked summary { cursor: pointer; font: 600 13px var(--f-ui); color: var(--ink-2); padding: 8px 0; }
.tpl { position: sticky; top: calc(var(--top-h) + 16px); }
.tpl .bubble { margin-bottom: 10px; }
.tpl .muted { margin-bottom: 10px; }

/* ---------- settings */
.pg-set { max-width: 1180px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.set-grid .card { display: flex; flex-direction: column; gap: 14px; }
.set-grid .card-h { margin-bottom: 0; }
.tbl-bays th { position: static; }
.tbl-bays td { padding: 6px 8px; }
.tbl-bays input { height: 34px; }

/* ---------- sign in */
body[data-side="login"] { background: var(--paper); }
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.login-art { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 44px 56px; background: #2B3137; color: #fff; overflow: hidden; }
.login-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border: 56px solid rgba(255, 255, 255, .025); border-radius: 50%; pointer-events: none; }
.la-brand { display: flex; align-items: center; gap: 12px; }
.la-brand b { font: 800 22px/1 var(--f-ui); }
.la-brand span { margin-left: auto; font: 700 12px var(--f-nar); letter-spacing: .14em; color: #AEB6BD; border: 1px solid rgba(255, 255, 255, .2); padding: 5px 8px; border-radius: 4px; }
.login-art h1 { margin-top: 36px; font: 700 40px/46px var(--f-ui); letter-spacing: -.02em; max-width: 560px; }
.login-art > p { font-size: 16px; line-height: 24px; color: #C3CAD0; max-width: 520px; }
.la-ticket { position: relative; z-index: 1; margin-top: 12px; width: 380px; max-width: 100%; background: #fff; color: #1D2125; border-radius: 6px; padding: 16px 18px 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform: rotate(-1.5deg); }
.la-t-top { display: flex; align-items: center; justify-content: space-between; }
.la-t-top > span:last-child { font: 700 13px var(--f-nar); color: #6B737A; letter-spacing: .04em; }
.la-t-m { margin-top: 10px; font: 700 16px/22px var(--f-ui); }
.la-t-m small { display: block; font: 600 11px var(--f-nar); text-transform: uppercase; letter-spacing: .1em; color: #6B737A; }
.la-ticket ul { list-style: none; margin: 12px 0 0; padding: 0; }
.la-ticket li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed #D5D8DA; font-size: 13px; }
.la-ticket li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.la-ticket li i { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid #C3C7CA; flex: none; }
.la-ticket li i.ok { background: #23774A; border-color: #23774A; }
.la-ticket li i.no { background: #4A5259; border-color: #4A5259; }
.la-ticket s { color: #8E979E; }
.la-t-f { display: flex; justify-content: space-between; align-items: baseline; margin: 10px -18px 0; padding: 12px 18px; background: #2B3137; color: #fff; border-radius: 0 0 6px 6px; border-top: 3px solid #FF4D4D; }
.la-t-f span { font: 600 12px var(--f-nar); text-transform: uppercase; letter-spacing: .08em; color: #C3CAD0; }
.la-t-f b { font: 700 22px/1 var(--f-ui); }
.la-fine { margin-top: auto; color: #8E979E; font-size: 12px; position: relative; z-index: 1; }
.login-form { display: grid; place-items: center; padding: 40px 24px; background: var(--paper); }
.login-form form { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.lf-brand { display: none; align-items: center; gap: 10px; font: 800 20px var(--f-ui); }
.login-form h2 { font: 700 24px/30px var(--f-ui); letter-spacing: -.01em; }
.login-form .muted { margin-top: -10px; margin-bottom: 6px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-b { display: flex; align-items: flex-start; gap: 10px; padding: 12px; text-align: left; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-2); cursor: pointer; }
.side-b .ic { color: var(--ink-3); margin-top: 1px; }
.side-b b { display: block; font-size: 14px; }
.side-b small { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.side-b.on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.side-b.on .ic { color: var(--red); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font: 600 12px var(--f-nar); text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- the customer's side */
body[data-side="customer"] { background: var(--floor); }
.cv-strip { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--gm-bar); color: var(--gm-ink); font-size: 13px; }
.cv-strip > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cv-strip b { color: #fff; }
.cv-strip .ic { width: 16px; height: 16px; flex: none; }
.cv-strip .btn-q { color: #fff; background: rgba(255, 255, 255, .08); }
.cv-strip .btn-q:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.cv { max-width: 460px; margin: 0 auto; min-height: calc(100vh - 46px); background: var(--paper); padding: 0 20px 24px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); outline: none; }
.cv-h { display: flex; align-items: center; gap: 12px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.cv-h b { display: block; font: 700 16px/20px var(--f-ui); }
.cv-h small { display: block; font-size: 12px; color: var(--ink-3); }
.cv-intro { padding: 18px 0 8px; }
.cv-intro .lbl { color: var(--red-ink); margin-bottom: 4px; }
.cv-intro h1 { font: 700 24px/30px var(--f-ui); letter-spacing: -.01em; }
.cv-veh { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; font-size: 12px; color: var(--ink-3); }
.cv-intro > p { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.cv-lines { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cl { padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--paper); transition: border-color .16s, background-color .16s; }
.cl-t { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cl-t b { font-size: 15px; line-height: 21px; }
.cl-amt { font: 700 16px/21px var(--f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-why { margin-top: 4px; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.cl-why .tag { margin-right: 4px; vertical-align: 1px; }
.cl-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cl-ch button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--paper); font: 600 15px var(--f-ui); color: var(--ink-2); cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.cl-ch button:hover { border-color: var(--ink-3); color: var(--ink); }
.cl-ch .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.cl-ch .ch-y.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.cl-ch .ch-n.on { background: var(--ink-2); border-color: var(--ink-2); color: var(--paper); }
.cl.c-approved { border-color: var(--ok); }
.cl.c-declined { background: var(--paper-2); }
.cl.c-declined .cl-t b, .cl.c-declined .cl-amt { color: var(--ink-3); text-decoration: line-through; }
.cl-warn { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--bad); font-weight: 600; }
.cl-warn .ic { width: 14px; height: 14px; }
.cl-warn[hidden] { display: none; }
.cv-fine { margin: 18px 0 8px; font-size: 12px; line-height: 17px; color: var(--ink-3); }
.cv-bar { margin: 0 -20px -24px; border-radius: 0; border-left: 0; border-right: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.cv-bar p { display: flex; flex-direction: column; }
.cv-bar p small { font-size: 12px; color: var(--ink-3); line-height: 16px; }
.cv-bar b { font: 700 24px/30px var(--f-ui); font-variant-numeric: tabular-nums; color: var(--ink); }
.cv-bar .btn { flex: none; }
.cv-done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 40px 0 20px; }
.cv-done > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 2.4; }
.cv-done h1 { font: 700 24px/30px var(--f-ui); }
.cv-done p { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.cv .empty { margin-top: 40px; }

/* ---------- motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes win-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .6; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- narrower desktops */
@media (max-width: 1320px) {
  .brand-g { display: none; }
  .tsearch { width: 40px; padding: 0; justify-content: center; }
  .tsearch span, .tsearch kbd { display: none; }
  .tm, .tm-axis { grid-template-columns: 200px 140px minmax(0, 1fr) 200px 220px; gap: 14px; }
  .rem { grid-template-columns: auto minmax(180px, 1fr) minmax(0, 1.3fr) 120px auto; }
}
@media (max-width: 1180px) {
  .nav a { padding: 0 8px; font-size: 13px; }
  .nav a.on::after { left: 8px; right: 8px; }
  .board { --lw: 140px; }
  .bayno { font-size: 26px; min-width: 30px; }
  .job-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .jh-meta { grid-template-columns: repeat(3, 1fr); }
  .jh-meta > div:nth-child(4) { border-left: 0; padding-left: 24px; }
  .jh-meta > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .rem-grid, .inv-grid { grid-template-columns: minmax(0, 1fr); }
  .tpl, .inv-side { position: static; }
  .tm, .tm-axis { grid-template-columns: 190px minmax(0, 1fr) 190px; }
  .tm-now { grid-column: 1; grid-row: 2; }
  .tm-line { grid-column: 2; grid-row: 1 / span 2; }
  .tm-num { grid-column: 3; grid-row: 1; }
  .tm-act { grid-column: 3; grid-row: 2; justify-content: flex-start; }
  .tm-axis { display: none; }
  .vh-h { grid-template-columns: auto minmax(0, 1fr); }
  .vh-own { padding-left: 0; border-left: 0; }
  .vh-act { flex-direction: row; }
}

/* ---------- phones */
@media (max-width: 760px) {
  :root { --top-h: 52px; --tab-h: 62px; }
  body { font-size: 15px; }
  .top { gap: 10px; padding: 0 8px 0 14px; }
  .brand-w, .nav, .ib-top { display: none; }
  .top-title { display: block; font: 700 17px/1 var(--f-ui); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .tsearch { width: 40px; height: 40px; margin: 0; background: transparent; border: 0; }
  .me { margin-left: 0; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(0, 0, 0, .3); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: var(--ink-3); text-decoration: none; font: 600 11px/1 var(--f-ui); cursor: pointer; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .on { color: var(--ink); }
  .tabbar .on::before { content: ""; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; background: var(--red); border-radius: 0 0 3px 3px; }
  .tabbar .tb-main i { display: grid; place-items: center; width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 6px 14px -4px rgba(215, 51, 47, .55); }
  .tabbar .tb-main.on::before { display: none; }
  .tb-cnt { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font: 700 10px/16px var(--f-nar); }
  .main { padding: 16px 16px calc(var(--tab-h) + 28px); }
  .ph { margin-bottom: 14px; gap: 12px; }
  .ph h1 { font-size: 22px; line-height: 28px; }
  .ph-date { display: block; margin: 4px 0 0; font-size: 12px; }
  .ph-a { width: 100%; }
  .ph-a .btn { flex: 1; }
  .ph-a .btn-q { flex: none; margin-left: -10px; }
  .ph-a .saved { flex: 1; }
  .ph-board .ph-a .btn-p, .ph-board .ph-a .sel-sm { display: none; }
  .ph-board .ph-a .find { flex: 1; } .ph-board .ph-a .find input { width: 100%; }
  .ph-board .seg button { padding: 0 10px; }
  .toolbar .find, .toolbar .find input { width: 100%; }
  .toolbar .seg { max-width: 100%; }
  .sel-l { width: 100%; justify-content: space-between; }
  .sel-l .sel-sm { flex: 1; max-width: 220px; }
  #toasts { left: 12px; right: 12px; width: auto; bottom: calc(var(--tab-h) + var(--sticky-h) + 12px + env(safe-area-inset-bottom)); }
  body[data-side="customer"] #toasts, body[data-side="login"] #toasts { bottom: calc(var(--sticky-h) + 12px); }
  .card { padding: 14px; }
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: minmax(0, 1fr); }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* windows become bottom sheets */
  #modal-root.open { place-items: end stretch; padding: 0; }
  .win, .win.sm, .win.md, .win-pal { width: 100%; max-height: 90vh; margin: 0; border-radius: 14px 14px 0 0; animation: sheet-in .2s ease-out; align-self: end; }
  .win::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .win-h { padding-top: 20px; }
  .win-f { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .win-f .btn { flex: 1; }
  .win-f .sp { display: none; }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .mv-bays { grid-template-columns: minmax(0, 1fr); }
  .pt-stats { grid-template-columns: repeat(3, 1fr); }
  .pt-stats > div:nth-child(4) { border-left: 0; }
  .pt-stats > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .pay-upi { flex-direction: column; align-items: center; text-align: center; }
  .pay-upi > div { width: 100%; text-align: left; }
  .menu-ob, .menu-side { width: auto; }
  /* board as stacked tickets with a stage switcher */
  .pchips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
  .pchips button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--paper); font: 600 12px/14px var(--f-ui); color: var(--ink-2); cursor: pointer; min-width: 0; }
  .pchips button b { font: 700 16px/18px var(--f-nar); color: var(--ink); }
  .pchips button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .pchips button.on b { color: var(--paper); }
  .pb-g { margin-bottom: 18px; }
  .pb-g h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .pb-g h2 b { display: block; font: 700 15px/18px var(--f-ui); }
  .pb-g h2 small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
  .pb-g .jt { margin-bottom: 8px; cursor: pointer; }
  .pb-g .jt-f::before, .pb-g .jt-f::after { background: var(--floor); }
  .jt-mv { display: inline-flex; align-items: center; gap: 4px; position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--paper); font: 600 12px var(--f-ui); color: var(--ink-2); cursor: pointer; }
  .jt-mv .ic { width: 14px; height: 14px; }
  .pb-g .jt-no { margin-right: 76px; }
  .jt-m { font-size: 15px; }
  .board-hint { display: none; }
  /* check-in */
  .pg-ci { max-width: none; }
  .arr { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
  .arr-t { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .arr .btn { grid-column: 1 / -1; }
  .paper-h { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 18px 16px 14px; }
  .paper-logo { display: none; }
  .sec { padding: 16px 16px 20px; }
  .ci-reg .fld { width: 100%; }
  .ci .grid.g4 > .fld:first-child { grid-column: 1 / -1; }
  .dg-grid, .dg-grid:has(.is-bike) { grid-template-columns: minmax(0, 1fr); }
  .dg-wrap { max-width: 300px; margin: 0 auto; width: 100%; }
  .dg-wrap.is-bike { max-width: none; }
  .gauge { width: 100%; justify-content: space-between; }
  .g-s { width: auto; flex: 1; }
  .sticky-bar { margin: 16px -16px 0; padding: 10px 16px; border-radius: 0; border-left: 0; border-right: 0; bottom: var(--tab-h); }
  .ci-bar p { font-size: 13px; line-height: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
  .ci-bar .btn kbd { display: none; }
  .ci-cadd .btn span { display: none; }
  /* job card */
  .jh { padding: 18px 16px 0; }
  .jh-top { flex-wrap: wrap; }
  .jh-id h1 { font-size: 26px; }
  .jh-act .btn span { display: none; }
  .jh-act .btn { width: 36px; padding: 0; }
  .jh-veh { flex-direction: column; align-items: flex-start; gap: 10px; }
  .jh-meta { grid-template-columns: 1fr 1fr; margin: 16px -16px 0; }
  .jh-meta > div { border-left: 0 !important; padding: 10px 16px !important; border-top: 1px solid var(--line); }
  .jh-meta > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .jh-meta > div:first-child { grid-column: 1 / -1; border-right: 0; border-top: 0; }
  .jh-meta > div:nth-child(n + 2) { border-right: 0; }
  .jh-meta > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .stepper { margin: 0 -16px; overflow: hidden; }
  .stepper button, .stepper .st-x { flex-direction: column; gap: 4px; padding: 10px 2px; font-size: 10px; text-align: center; }
  .stepper span { white-space: normal; line-height: 12px; }
  .job-grid { grid-template-columns: minmax(0, 1fr); }
  .job-rail { position: static; max-height: none; overflow: visible; }
  .cf { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card-a { width: 100%; } .card-a .btn { flex: 1; }
  .lines thead { display: none; }
  .lines, .lines tbody { display: block; }
  .lines tr.grp { display: block; }
  .lines tr.grp td { display: block; padding: 14px 0 6px; }
  .lines tr.ln { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lines tr.ln td { display: block; padding: 0; border: 0; min-width: 0; }
  .ln-d { grid-column: 1; grid-row: 1; }
  .ln-x { grid-column: 2; grid-row: 1; }
  .ln-w { grid-column: 1 / -1; grid-row: 2; }
  .ln-w .sel-sm { width: 100%; }
  .ln-q { grid-column: 1; grid-row: 3; text-align: left !important; display: flex !important; align-items: center; gap: 8px; }
  .ln-q::before { content: attr(data-l); font: 600 11px var(--f-nar); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
  .ln-r { display: none !important; }
  .ln-amt { grid-column: 2; grid-row: 3; align-self: center; font-size: 15px; }
  .ln-ap { grid-column: 1 / -1; grid-row: 4; display: flex !important; align-items: center; }
  .ap button { width: 52px; height: 36px; }
  .ln.st-pending { background: none; box-shadow: inset 3px 0 0 var(--info); padding-left: 10px !important; margin-left: -14px; padding-right: 0; }
  .est-steps { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .est-steps li:nth-child(2)::after { display: none; }
  .dmg, .dmg:has(.dg-bike) { grid-template-columns: minmax(0, 1fr); }
  .dmg .dg { max-width: 150px; }
  .dmg .dg-bike { max-width: 100%; }
  .act li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .job-bar { display: flex; }
  .job-bar p { display: flex; flex-direction: column; }
  .job-bar p small { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; font-family: var(--f-nar); font-weight: 600; }
  .job-bar p b { font: 700 20px/24px var(--f-ui); color: var(--ink); font-variant-numeric: tabular-nums; }
  .next .row .btn { flex: 1; }
  /* tables become stacked cards */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tfoot { display: block; }
  .tbl tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .tbl td::before { content: attr(data-l); flex: none; font: 600 11px/18px var(--f-nar); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); text-align: left; }
  .tbl td:first-child { display: block; text-align: left; padding-bottom: 8px; }
  .tbl td:first-child::before { display: none; }
  .tbl td small { display: inline; margin-left: 6px; }
  .tbl td:first-child small, .tbl-parts td:first-child small { display: block; margin: 0; }
  .tbl tfoot tr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
  .tbl tfoot td { position: static; display: block; padding: 0; text-align: left; background: none; }
  .tbl tfoot td::before { display: none; }
  .tbl tfoot { background: var(--paper-2); border-top: 1px solid var(--line-2); }
  .tbl tfoot td:empty { display: none; }
  .tbl-log td:first-child { display: flex; align-items: center; gap: 8px; }
  .tbl-bays tr { display: grid; grid-template-columns: 1fr 1.4fr 70px; gap: 8px; padding: 8px 0; }
  .tbl-bays td { display: block; padding: 0; }
  .tbl-bays td::before { display: none; }
  .pager { justify-content: space-between; }
  .ln-x .ibtn, .tbl .ln-x { width: auto; }
  /* vehicles */
  .vsearch { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
  .vs-plate { align-self: flex-start; }
  .vs-in input { font-size: 16px; }
  .vh-h { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 16px; }
  .vh-t h1 { font-size: 22px; line-height: 28px; }
  .vh-act { flex-direction: column; }
  .vh-stats { grid-template-columns: 1fr 1fr; }
  .vh-stats > div { border-left: 0; border-top: 1px solid var(--line); }
  .vh-stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .vh-stats > div:first-child { border-top: 0; }
  .vh-stats > div:nth-child(2) { border-top: 0; }
  .vh-stats > div:last-child { grid-column: 1 / -1; border-right: 0; }
  .vh-grid { grid-template-columns: minmax(0, 1fr); }
  .vh-i { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vh-a { flex-wrap: wrap; }
  /* team */
  .tm { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px; }
  .tm-who { grid-column: 1; grid-row: 1; }
  .tm-now { grid-column: 2; grid-row: 1; text-align: right; }
  .tm-line { grid-column: 1 / -1; grid-row: 2; }
  .tm-num { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; }
  .tm-act { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; }
  .tm-act .sel-sm { flex: 1; width: auto; }
  /* billing document */
  .doc { padding: 22px 16px 20px; font-size: 12px; }
  .doc-h { flex-direction: column; gap: 14px; }
  .doc-t { text-align: left; }
  .doc-t dl > div { justify-content: flex-start; }
  .doc-t dd { min-width: 0; }
  .doc-p { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .doc-tbl th:nth-child(3), .doc-tbl td:nth-child(3), .doc-tbl th:nth-child(5), .doc-tbl td:nth-child(5), .doc-tbl th:nth-child(7), .doc-tbl td:nth-child(7) { display: none; }
  .doc-tbl td:nth-child(2) { overflow-wrap: anywhere; }
  .doc-f { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .doc-s { flex-direction: column; align-items: stretch; }
  .stamp { font-size: 16px; }
  .inv-side .col .btn { justify-content: center; }
  /* reminders */
  .tabs button { flex: 1; justify-content: center; padding: 0 6px; font-size: 13px; }
  .rem, .pg-rem .rem:not(:has(.rem-c)), .rem-p { grid-template-columns: auto minmax(0, 1fr) !important; gap: 8px 12px; }
  .rem-c { grid-row: 1; }
  .rem-v { grid-column: 2; }
  .rem-why, .rem-st, .rem-act, .rem-amt { grid-column: 1 / -1; }
  .pg-rem .rem:not(:has(.rem-c)) .rem-v { grid-column: 1 / -1; }
  .rem-amt { text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .rem-act { justify-content: flex-start; flex-wrap: wrap; }
  .rem-bulk { top: calc(var(--top-h) + 6px); flex-wrap: wrap; }
  /* settings, login */
  .set-grid { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .login-form { padding: 32px 20px; align-items: start; }
  .lf-brand { display: flex; }
  .lf-brand .logo { fill: var(--red); }
  .sides { grid-template-columns: minmax(0, 1fr); }
  /* customer's side */
  .cv { border: 0; padding: 0 16px 24px; }
  .cv-bar { margin: 0 -16px -24px; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .cv-strip > span { font-size: 12px; }
  .cv-strip .cv-sub { display: none; }
  .cv-strip .btn span { display: none; }
}
@media (max-width: 380px) {
  .pchips button { font-size: 11px; }
  .grid.g4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- print: only real documents */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; color: #000; }
  .top, .tabbar, #toasts, #modal-root, .crumbs, .inv-side, .sticky-bar, .offline, .skip { display: none !important; }
  .main { padding: 0; max-width: none; }
  body.print-inv .pg-inv > *:not(.inv-grid) { display: none !important; }
  body.print-inv .inv-grid { display: block; }
  body.print-inv .doc { box-shadow: none; border: 0; padding: 0; }
  body.print-jc .pg-job > *:not(.print-sheet) { display: none !important; }
  body.print-jc .print-sheet { display: block !important; font: 11pt/1.4 var(--f-ui); color: #000; }
  .print-sheet header { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
  .print-sheet header b { display: block; font-size: 13pt; }
  .print-sheet header small { display: block; font-size: 9pt; color: #333; }
  .print-sheet .logo { fill: #000; }
  .print-sheet h3 { font: 700 10pt var(--f-nar); text-transform: uppercase; letter-spacing: .08em; margin: 12px 0 4px; }
  .print-sheet table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .print-sheet th, .print-sheet td { border: 1px solid #999; padding: 4px 6px; text-align: left; }
  .ps-dmg { display: flex; gap: 16px; align-items: flex-start; margin-top: 10px; }
  .ps-dmg .dg { width: 140px; }
  .ps-dmg .dg-bike { width: 260px; }
  .print-sheet footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
  .print-sheet footer span { flex: 1; border-top: 1px solid #000; padding-top: 4px; font-size: 9pt; }
  .plate { filter: none !important; }
}
