/* Lynch Lane Car Care: garage control panel, v3 "quiet precision" in Lynch Lane orange.
   Colour rule: var(--accent) for fills, active marks, charts and glows; var(--brand) for text and links.
   Anything sitting ON an accent fill uses --on-accent (dark ink), because white on orange does not read.
   Built on the tokens in shared.css. Calm sidebar, hairlines, soft cards.
   The number plate is the one loud object, and the plate bar is the main control. */
:root { --side-w: 248px; --demo-h: 0px; --tab-h: 62px; --pad: 32px; --r-card: 18px; --on-accent: #1a0f02; --accent-glow: color-mix(in srgb, var(--accent) 26%, transparent); }
html.is-locked { overflow: hidden; }
body { min-height: 100vh; padding: 0; font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.r { text-align: right; }
.only-sm { display: none !important; }
button { -webkit-tap-highlight-color: transparent; }
a { text-decoration-thickness: 1px; }

/* demo bar: one tidy row */
.demo-bar { margin-inline: 0; padding: 7px 20px; flex-wrap: nowrap; }
.demo-bar > span:first-child { min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar .seg { flex: none; }
.demo-bar .seg a { white-space: nowrap; }
.demo-bar .btn { flex: none; min-height: 32px; white-space: nowrap; }

/* buttons, tuned for the panel */
.btn { font-size: .95rem; min-height: 44px; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn--sm { min-height: 38px; padding: 0 .95em; font-size: .875rem; }
.btn--lg { min-height: 54px; font-size: 1rem; }
.btn--crit { background: var(--crit-soft); border-color: transparent; color: var(--crit); }
.btn--ghost { border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.btn--primary:hover { transform: translateY(-1px); }
@media (pointer: coarse) { .btn--sm { min-height: 44px; } }
.linkbtn { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--brand); font-weight: 600; font-size: .875rem; cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.titlebtn { padding: 0; border: 0; background: none; text-align: left; font: 600 .95rem/1.3 var(--font-body); color: var(--ink); cursor: pointer; }
.titlebtn:hover { color: var(--brand); }
.iconbtn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.iconbtn:hover { border-color: var(--line-strong); color: var(--ink); }
.iconbtn--plain { border-color: transparent; background: transparent; }
.iconbtn--plain:hover { background: var(--surface-2); border-color: transparent; }
.iconbtn--dark { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.iconbtn .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 10.500px/18px var(--font-mono); text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* small labels */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip--good { background: var(--good-soft); color: var(--good); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--crit { background: var(--crit-soft); color: var(--crit); }
.chip--brand { background: var(--brand-soft); color: var(--brand); }
.chip--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-3); }
.st { --sc: var(--ink-3); --sf: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sf); }
[data-st="arrived"], [data-st="ramp"], [data-st="working"] { --sc: var(--brand); --sf: var(--accent); --so: var(--on-accent); --sb: var(--brand-soft); }
[data-st="parts"] { --sc: var(--warn); --sf: var(--warn); --so: var(--surface); --sb: var(--warn-soft); }
[data-st="ready"] { --sc: var(--good); --sf: var(--good); --so: var(--surface); --sb: var(--good-soft); }
.st[data-st="arrived"], .st[data-st="ramp"], .st[data-st="working"], .st[data-st="parts"], .st[data-st="ready"] { background: var(--sb); color: var(--sc); }
.st[data-st="working"]::before { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sf, var(--good)) 50%, transparent); } 80%, 100% { box-shadow: 0 0 0 6px transparent; } }
.note { font-size: .86rem; color: var(--ink-2); }
.note b { color: var(--ink); font-weight: 600; }
.eyebrow { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.errtxt { color: var(--crit); font-size: .86rem; font-weight: 500; min-height: 0; }
.errtxt:not(:empty) { margin-top: 10px; }
.tag-ref { font-size: .78rem; color: var(--ink-3); }
.live-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--good); --sf: var(--good); animation: pulse 2.4s ease-out infinite; }

/* plates */
.plate { border-width: 1.500px; flex: none; }
.plate .chars { white-space: nowrap; }
.plate--sm { font-size: 15px; border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .12); flex: none; }
.plate--sm .gb { min-width: 0; padding: 0 .4em; font-size: 0; }
.plate--sm .gb i { width: 5px; height: 5px; border: 0; background: #f6c90e; }
.plate--sm .chars { padding: .2em .45em; }
.plate--md { font-size: 21px; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .14), 0 4px 12px rgba(14, 17, 22, .08); flex: none; }
.plate--md .gb, .plate--lg .gb { font-size: .3em; min-width: 2em; }
.plate--md .gb i, .plate--lg .gb i { border-width: 1.500px; }
.plate--lg { font-size: 30px; border-radius: 8px; flex: none; }
.plate--xl { font-size: 50px; border-width: 2px; border-radius: 11px; }
.plate--xl .gb { font-size: .22em; min-width: 2.600em; gap: 4px; }
.plate--xl .chars { padding: .1em .32em .1em .28em; }
.plate--field { font-size: 24px; border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(0, 0, 0, .12); height: 46px; align-self: start; }
.plate--field .gb { font-size: .3em; }
.plate--field input.chars { width: 6.400em; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); align-items: start; }
.main { min-width: 0; }
.side { position: sticky; top: var(--demo-h); height: calc(100vh - var(--demo-h)); overflow: auto; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 18px; border-right: 1px solid var(--line); }
.brand, .mini-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; text-decoration: none; color: var(--ink); }
.brand-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; background: #3d4244; color: #fff; font: 800 13px/1 var(--font-display); letter-spacing: .01em; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent), 0 6px 16px var(--accent-glow); }
.brand-mark i { font-style: normal; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-t b { display: block; font: 700 .95rem/1.2 var(--font-display); letter-spacing: -.02em; }
.brand-t small { display: block; margin-top: 2px; font-size: .76rem; color: var(--ink-3); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 500; transition: background .15s ease, color .15s ease; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.nav a[aria-current="page"] .ic { color: var(--accent); }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-3); color: var(--ink-2); font: 600 11px/20px var(--font-mono); text-align: center; }
.nav a[aria-current="page"] .badge { background: var(--brand-soft); color: var(--brand); }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 16px 10px 0; border-top: 1px solid var(--line); }
.live-note { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-2); }
.side-link { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.side-link:hover { color: var(--brand); }
.plan-note { font-size: .76rem; color: var(--ink-3); }

/* top bar with the plate bar */
.top { position: sticky; top: var(--demo-h); z-index: 60; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; padding: 14px var(--pad); max-width: 1320px; position: relative; }
.mini-brand { display: none; padding: 0; }
.mini-brand b { font: 700 .95rem/1 var(--font-display); letter-spacing: -.02em; }
.platebar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pb-plate { font-size: 27px; height: 48px; border-width: 2px; border-radius: 9px; cursor: text; flex: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.pb-plate:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 4px color-mix(in srgb, var(--plate) 45%, transparent), 0 10px 30px rgba(14, 17, 22, .16); }
.pb-plate .gb { font-size: .3em; }
.pb-plate input.chars { width: 6.900em; height: 100%; }
.pb-plate input.chars::placeholder { font-size: .62em; letter-spacing: .1em; color: rgba(17, 17, 17, .42); }
.pb-go { display: grid; place-items: center; align-self: center; width: 34px; height: 34px; margin-right: 6px; flex: none; border: 0; border-radius: 50%; background: var(--plate-ink); color: var(--plate); cursor: pointer; opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.platebar.has-text .pb-go { opacity: 1; transform: none; pointer-events: auto; }
.pb-scan { min-height: 48px; padding: 0 1.150em; gap: .5em; }
.pb-hint { display: none; max-width: 210px; font-size: .78rem; line-height: 1.35; color: var(--ink-3); }
.platebar.is-shake .pb-plate { animation: shake .4s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.top-r { display: flex; align-items: center; gap: 8px; margin-left: auto; position: relative; }
.search { position: relative; width: 210px; }
.search > .ic { position: absolute; left: 13px; top: 11px; color: var(--ink-3); pointer-events: none; }
.search .input { min-height: 42px; padding-left: 40px; border-radius: 99px; border-color: var(--line); font-size: .9rem; }
.results { position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); max-height: min(60vh, 460px); overflow: auto; padding: 6px; }
.results .grp { padding: 10px 10px 4px; font-size: .74rem; color: var(--ink-3); font-weight: 600; }
.results button { display: grid; gap: 1px; width: 100%; min-height: 46px; padding: 6px 10px; border: 0; background: transparent; border-radius: 10px; text-align: left; cursor: pointer; }
.results button b { font-weight: 600; font-size: .9rem; }
.results button:hover, .results button:focus-visible, .results button.is-first { background: var(--surface-2); }
.results .none { padding: 16px 12px; color: var(--ink-2); font-size: .9rem; }
.results small { color: var(--ink-3); font-size: .8rem; }
.sim { position: relative; }
.simbtn { min-height: 42px; border-color: var(--line); }
.simbtn .ic { color: var(--accent); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; animation: pop .18s var(--ease) both; }
.menu p { padding: 8px 10px 6px; font-size: .78rem; color: var(--ink-3); }
.menu button { min-height: 44px; border: 0; background: transparent; text-align: left; padding: 0 10px; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: .9rem; }
.menu button:hover { background: var(--surface-2); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.bellp { position: absolute; z-index: 70; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px 18px; animation: pop .18s var(--ease) both; }
.bellp h2 { font-size: 1rem; margin-bottom: 4px; }

/* the view */
.view { padding: 30px var(--pad) 72px; max-width: 1320px; outline: none; }
.view > * + * { margin-top: 24px; }
.view.is-enter > * { animation: rise .5s var(--ease) both; }
.view.is-enter > :nth-child(2) { animation-delay: .05s; }
.view.is-enter > :nth-child(3) { animation-delay: .1s; }
.view.is-enter > :nth-child(4) { animation-delay: .15s; }
.view.is-enter > :nth-child(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.ph h1 { font-size: clamp(1.700rem, 1.300rem + 1.400vw, 2.250rem); font-weight: 700; letter-spacing: -.035em; }
.ph p { margin-top: 8px; max-width: 62ch; color: var(--ink-2); }
.ph-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; min-height: 38px; }
.sec-h h2 { font-size: 1.050rem; font-weight: 700; letter-spacing: -.02em; }
.sec-h h2 small { margin-left: 6px; font: 500 .82rem var(--font-body); letter-spacing: 0; color: var(--ink-3); }
.sec-note { margin-top: 12px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; min-width: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.side-col { position: sticky; top: calc(var(--demo-h) + 100px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; min-width: 0; }
.panel--soft { background: var(--surface-2); border-color: transparent; }
.panel--flush { padding: 20px 0 8px; }
.panel--flush > .panel-h, .panel-pad { padding-inline: 20px; }
.panel-pad { padding-block: 14px 12px; }
.panel-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.panel > .note + .formgrid, .panel > .note + .hours, .panel > .note + .preview { margin-top: 14px; }
.panel-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.panel .field + .note { margin-top: 8px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 18px 20px; display: grid; gap: 2px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font: 700 1.900rem/1.1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--ink-2); }

/* next car due in */
.nextup { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nextup-l { display: grid; gap: 10px; min-width: 0; }
.nextup-car { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nextup-car b { display: block; font: 700 1.100rem/1.2 var(--font-display); letter-spacing: -.02em; }
.nextup-car > div > span { font-size: .88rem; color: var(--ink-2); }
.nextup-r { display: grid; justify-items: end; gap: 6px; flex: none; text-align: right; }
.nextup-r span { font-size: .78rem; color: var(--ink-3); }

/* needs you */
.needs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.need { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; padding: 14px 16px; }
.need + .need { border-top: 1px solid var(--line); }
.need-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); }
.need[data-tone="brand"] .need-ic { background: var(--brand-soft); color: var(--brand); }
.need[data-tone="good"] .need-ic { background: var(--good-soft); color: var(--good); }
.need[data-tone="warn"] .need-ic { background: var(--warn-soft); color: var(--warn); }
.need[data-tone="crit"] .need-ic { background: var(--crit-soft); color: var(--crit); }
.need h3 { font: 600 .95rem/1.3 var(--font-body); letter-spacing: 0; }
.need p { font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
.need-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.clear { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-card); background: var(--good-soft); color: var(--good); }
.clear h3 { font: 600 .95rem var(--font-body); letter-spacing: 0; }
.clear p { font-size: .86rem; color: var(--ink-2); }

/* bays */
.bays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bay { display: grid; gap: 12px; align-content: start; padding: 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s ease; }
.bay:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.bay-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bay-n { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.bay-car { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bay-car > div { min-width: 0; display: grid; }
.bay-car > div > span { font-size: .84rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 4px; background: var(--sf, var(--accent)); transition: width .6s var(--ease); }
.bay-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; }
.bay-f > span { font-size: .82rem; color: var(--ink-2); min-width: 0; }
.bay--free { background: transparent; border-style: dashed; border-color: var(--line-strong); cursor: default; }
.bay--free:hover { box-shadow: none; transform: none; }
.bay--free p { font-size: .88rem; color: var(--ink-3); }

/* list rows */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.rrow { display: grid; grid-template-columns: 50px auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; transition: background .15s ease; }
.rrow + .rrow { border-top: 1px solid var(--line); }
.rrow:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.rt { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.rmain { display: grid; gap: 2px; min-width: 0; }
.rline { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.rmain > span { font-size: .84rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ract { display: flex; justify-content: flex-end; }
.rrow.is-done .rt, .rrow.is-done .titlebtn { color: var(--ink-3); }
.relrow { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
.hid { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.ramt { font-size: .9rem; }
.is-flash { animation: flash 1.600s var(--ease); }
@keyframes flash { 0%, 35% { background: var(--brand-soft); box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; padding: 10px 0; font-size: .88rem; }
.feed li + li { border-top: 1px solid var(--line); }
.feed li i { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--line-strong); }
.feed li:first-child i { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.feed time { display: block; margin-top: 2px; font-size: .76rem; color: var(--ink-3); }
.feed li.is-new { animation: rise .45s var(--ease) both; }

/* empty states */
.empty { display: grid; justify-items: center; gap: 6px; padding: 44px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-card); }
.empty-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: var(--surface-2); color: var(--ink-3); }
.empty-ic .ic { width: 24px; height: 24px; }
.empty h3 { font-size: 1.050rem; }
.empty p { max-width: 46ch; color: var(--ink-2); font-size: .9rem; }
.empty-act { margin-top: 12px; }

/* pill tabs */
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-inline: -2px; }
.pills::-webkit-scrollbar { display: none; }
.pilltab { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; flex: none; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.pilltab:hover { border-color: var(--line-strong); color: var(--ink); }
.pilltab .n { font: 600 .74rem var(--font-mono); color: var(--ink-3); }
.pilltab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pilltab[aria-selected="true"] .n { color: inherit; opacity: .7; }
.jtabs { display: none; }

/* jobs board */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.bcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-height: 220px; padding: 10px; border-radius: var(--r-card); background: var(--surface-2); transition: box-shadow .2s var(--ease), background .2s var(--ease); }
.bcol h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 6px 6px; font: 600 .84rem var(--font-body); letter-spacing: 0; color: var(--ink-2); }
.bcol h2 .sd { width: 8px; height: 8px; border-radius: 50%; background: var(--sf, var(--ink-3)); }
.bcol h2 .n { font: 600 .76rem var(--font-mono); color: var(--ink-3); }
.bcol h2 .chip { height: 20px; padding: 0 7px; font-size: .7rem; margin-left: auto; }
.bcol.is-over, .released.is-over { box-shadow: 0 0 0 2px var(--accent); background: var(--brand-soft); }
.bempty { padding: 18px 8px; font-size: .82rem; color: var(--ink-3); text-align: center; }
.bempty--wide { border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: 26px 16px; }
.jcard { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(14, 17, 22, .04); cursor: grab; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .2s ease; }
.jcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.jcard.is-drag { opacity: .45; }
.jtop { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 2px; min-width: 0; }
.jtime { font-size: .76rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.jcard h3 { font-size: inherit; letter-spacing: 0; line-height: 1.3; }
.jmeta { font-size: .82rem; color: var(--ink-2); }
.jparts { display: flex; gap: 6px; align-items: flex-start; padding: 7px 9px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); font-size: .8rem; font-weight: 500; }
.jparts .ic { margin-top: 1px; }
.jfoot { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.jfoot .chip { height: 22px; padding: 0 8px; font-size: .72rem; }
.jnext { width: 100%; margin-top: 6px; padding-inline: .5em; }
.released { border-radius: var(--r-card); transition: box-shadow .2s var(--ease), background .2s var(--ease); }

/* quotes */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-card); background: var(--brand-soft); color: var(--ink); font-size: .9rem; }
.banner .ic { color: var(--brand); margin-top: 1px; }
.qlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; align-items: start; }
.q { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .25s var(--ease), border-color .2s ease; }
.q:hover { box-shadow: var(--shadow); }
.q.is-closed { background: transparent; }
.q.is-adjusting { border-color: var(--accent); box-shadow: 0 0 0 3px var(--brand-soft); }
.qh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qh .when { margin-left: auto; font-size: .78rem; color: var(--ink-3); }
.qwho { display: flex; align-items: center; gap: 12px; }
.qwho > div { display: grid; min-width: 0; }
.qwho b { font-weight: 600; }
.qwho > div > span { font-size: .84rem; color: var(--ink-2); }
.ask { font: 600 1.050rem/1.35 var(--font-display); letter-spacing: -.015em; }
.ai { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: .88rem; }
.ai-h { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; font-weight: 600; color: var(--ink-3); }
.meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-2); }
.meter i { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--v), var(--surface-3) 0); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: .9rem; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.lines small { display: block; font-size: .78rem; color: var(--ink-3); }
.lines b { font-weight: 600; white-space: nowrap; }
.qprice { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.qprice .note { flex: 1 1 180px; }
.qacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.closed summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); padding: 8px 0; list-style: none; }
.closed summary::-webkit-details-marker { display: none; }
.closed summary::before { content: ''; width: 7px; height: 7px; border-right: 1.500px solid currentColor; border-bottom: 1.500px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
.closed[open] summary::before { transform: rotate(45deg); }
.closed .n { font: 600 .76rem var(--font-mono); color: var(--ink-3); }
.closed .qlist { margin-top: 10px; }

/* diary */
.weeknav { display: flex; align-items: center; gap: 6px; }
.weeknav .iconbtn { width: 38px; height: 38px; }
.dwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.dgrid { display: grid; grid-template-columns: 60px repeat(7, minmax(122px, 1fr)); min-width: 914px; }
.dh { padding: 12px 10px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; gap: 1px; }
.dh--corner { border-left: 0; }
.dh b { font: 600 .86rem var(--font-body); color: var(--ink-2); }
.dh b span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 2px; border-radius: 12px; color: var(--ink); }
.dh.is-today b { color: var(--ink); }
.dh.is-today b span { background: var(--accent); color: var(--on-accent); padding: 0 6px; font-weight: 700; }
.dh.is-off { background: var(--surface-2); }
.dh.is-off b, .dh.is-off b span { color: var(--ink-3); }
.dh small { font-size: .74rem; color: var(--ink-3); }
.dt, .dh--corner { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.dt { padding: 12px 10px 0 0; text-align: right; font-size: .74rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.dt:nth-of-type(9) { border-top: 0; }
.dcell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; align-content: start; min-height: 68px; padding: 6px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.dcell.is-today { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.dcell.is-full, .dcell.is-off { background: var(--surface-2); }
.dcell.is-off { border-top-color: transparent; }
.dcell.is-past { opacity: .55; }
.dfull { font-size: .74rem; color: var(--ink-3); padding: 4px; }
.dchip { display: grid; gap: 1px; min-width: 0; padding: 6px 8px 6px 10px; border: 0; border-radius: 9px; background: var(--sb, var(--surface-2)); box-shadow: inset 3px 0 0 var(--sf, var(--ink-3)); text-align: left; cursor: pointer; font-size: .76rem; color: var(--ink-2); transition: transform .2s var(--ease); }
.dchip:hover { transform: translateY(-1px); }
.dchip b { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; white-space: nowrap; font: 700 .86rem var(--font-plate); letter-spacing: .05em; color: var(--ink); }
.dchip b i { font: 500 .68rem var(--font-mono); font-style: normal; letter-spacing: 0; color: var(--ink-3); }
.dchip b i { flex: none; }
.dchip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dadd { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; opacity: .35; transition: opacity .15s ease, background .15s ease, color .15s ease; }
.dadd .ic { width: 16px; height: 16px; }
.dcell:hover .dadd, .dadd:focus-visible { opacity: 1; background: var(--ink); color: var(--bg); }
.dcell.is-full .dadd, .dcell.is-past .dadd { display: none; }
.diary-note { margin-top: 12px; }
.nextslot { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.nextslot-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.nextslot > div { display: grid; gap: 1px; min-width: 0; margin-right: auto; }
.nextslot b { font: 700 1.050rem/1.25 var(--font-display); letter-spacing: -.02em; }
.daynote { display: flex; align-items: flex-start; gap: 9px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: .84rem; color: var(--ink-2); max-width: 78ch; }
.daynote .ic { margin-top: 2px; color: var(--ink-3); }
.daynote b { color: var(--ink); font-weight: 600; }

/* tables */
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.tools-grow { flex: 1 1 240px; }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { padding: 12px 16px; text-align: left; font-size: .76rem; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:not(.norow) { transition: background .15s ease; }
.tbl tbody tr:not(.norow):hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.tbl tr.is-dim td > *:not(.seg3) { opacity: .55; }
.tbl .sub { display: block; font-size: .8rem; color: var(--ink-3); font-family: var(--font-body); }
.tbl b { font-weight: 600; }
.rowacts { white-space: nowrap; }
.rowacts .btn + .btn { margin-left: 4px; }
.tbl .pin { margin-left: auto; }
.tbl .empty { border: 0; }
.carcell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.carcell > div { min-width: 0; }
.cthumb { position: relative; display: grid; place-items: center; width: 92px; aspect-ratio: 4 / 3; flex: none; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); box-shadow: 0 0 0 1px var(--line); }
.cthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tbl tr:hover .cthumb img { transform: scale(1.05); }
.ctags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.ctags .chip { height: 21px; padding: 0 8px; font-size: .7rem; }
.swatch { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 3px var(--surface-2); }
.paylink { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-2); }
.paylink code { font: 500 .82rem var(--font-mono); overflow-wrap: anywhere; }
.duestrip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; margin: -2px; scroll-snap-type: x proximity; }
.duecard { display: grid; gap: 4px; justify-items: start; align-content: start; flex: 0 0 210px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; }
.duecard b { margin-top: 6px; font-weight: 600; }
.duecard > span:not(.plate) { font-size: .82rem; color: var(--ink-2); }
.duechips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }

/* forms */
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.formgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field > label, .field > .label { font-size: .8rem; }
.field .opt, .partsbox label span { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.field--btn .btn { width: 100%; }
.input, .select { font-size: .95rem; }
.input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.platerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pin { position: relative; display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.pin b { padding: 0 0 0 10px; font-weight: 500; color: var(--ink-3); }
.pin input { width: 70px; height: 100%; padding: 0 8px 0 4px; border: 0; outline: 0; background: transparent; font: 500 .9rem var(--font-mono); -moz-appearance: textfield; appearance: textfield; }
.pin input::-webkit-outer-spin-button, .pin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pin--w input { width: 100px; }
.pin:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--brand-soft); }
.pin:has(.is-changed) { border-color: var(--accent); background: var(--brand-soft); }
.pin:has(.is-bad) { border-color: var(--crit); background: var(--crit-soft); }

/* prices */
.prbar { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); transition: background .3s var(--ease), border-color .3s var(--ease); }
.prbar .live { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem; }
.prbar.is-saved { background: var(--good-soft); border-color: transparent; }
.prbar-r { margin-left: auto; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pgrid .stack { gap: 16px; }
.tblscroll { overflow-x: auto; position: relative; }
.ptbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ptbl th { padding: 8px 10px 10px; text-align: left; font-size: .78rem; font-weight: 600; color: var(--ink-2); vertical-align: bottom; }
.ptbl th small { display: block; font-weight: 400; font-size: .7rem; color: var(--ink-3); max-width: 13ch; }
.ptbl td { padding: 7px 10px; border-top: 1px solid var(--line); }
.ptbl th:first-child, .ptbl td:first-child { padding-left: 20px; }
.ptbl td:first-child { font-weight: 500; white-space: nowrap; }
.ptbl .pin input { width: 58px; }
.ptbl td, .ptbl th { padding-inline: 6px; }
.preview { display: grid; }
.preview div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.preview div:first-child { border-top: 0; }
.preview + .note { margin-top: 10px; }
.preview b { font-weight: 600; }

/* segmented and switch */
.seg3 { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface-2); }
.seg3 button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-2); font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.seg3 button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 17, 22, .12), 0 0 0 1px var(--line); }
.sw { position: relative; width: 46px; height: 28px; flex: none; border: 0; border-radius: 14px; background: var(--surface-3); cursor: pointer; transition: background .25s var(--ease); }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.sw[aria-checked="true"] { background: var(--good); }
.sw[aria-checked="true"]::after { transform: translateX(18px); }

/* invoices */
.acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.acc .panel { display: grid; gap: 10px; align-content: start; justify-items: start; }
.acc-h { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.acc .is-soon { background: transparent; border-style: dashed; }
.csv { margin: 0; padding: 16px 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow-x: auto; font: 500 .78rem/1.7 var(--font-mono); color: var(--ink-2); }

/* reports */
.summary { display: grid; gap: 12px; padding: 24px; }
.sumline { font: 500 clamp(1.100rem, .900rem + .700vw, 1.400rem)/1.5 var(--font-display); letter-spacing: -.02em; max-width: 60ch; color: var(--ink-2); }
.sumline mark { background: none; color: var(--ink); font-weight: 700; }
.summary .note { display: flex; align-items: center; gap: 8px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chart svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.lg-a { background: var(--accent); } .lg-p { background: color-mix(in srgb, var(--accent) 35%, transparent); } .lg-m { background: var(--line-strong); } .lg-g { background: var(--good); }
.grid line { stroke: var(--line); stroke-width: 1; }
.ax { font: 500 10.500px var(--font-mono); fill: var(--ink-3); }
.bar { fill: var(--accent); transform-box: fill-box; transform-origin: bottom; transition: opacity .15s ease; outline: none; }
.bar--part { fill: color-mix(in srgb, var(--accent) 35%, transparent); }
.bar--a { fill: var(--line-strong); } .bar--b { fill: var(--good); }
.bar:hover, .bar:focus-visible { opacity: .75; }
.view.is-enter .bar { animation: grow .7s var(--ease) both; animation-delay: calc(.25s + var(--i) * 50ms); }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
.ln { fill: none; stroke: var(--accent); stroke-width: 2.500; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.view.is-enter .ln { animation: draw 1s var(--ease) .3s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ar { fill: var(--accent); opacity: .12; }
.pt { fill: var(--surface); stroke: var(--accent); stroke-width: 2.500; outline: none; }
.pt:hover, .pt:focus-visible { fill: var(--accent); }
.srcs { display: grid; gap: 12px; margin-top: 16px; }
.src { display: grid; grid-template-columns: 96px minmax(0, 1fr) 70px; align-items: center; gap: 12px; font-size: .88rem; }
.src i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--accent) var(--v), var(--surface-2) 0); }
.src b { font-weight: 600; text-align: right; }
.src small { font-weight: 500; color: var(--ink-3); }
.src.is-zero { color: var(--ink-3); }
.tip { position: absolute; z-index: 140; padding: 6px 10px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 600; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }

/* settings */
.setgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.setgrid .stack { gap: 16px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.panel-h + .setrow { border-top: 0; padding-top: 6px; }
.setrow:last-child { padding-bottom: 0; }
.setrow b { display: block; font-weight: 600; }
.setrow span { display: block; margin-top: 2px; font-size: .84rem; color: var(--ink-2); max-width: 56ch; }
.hours { display: grid; margin: 14px 0 16px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.hours div:first-child { border-top: 0; }
.hours b { font-weight: 500; }
.hours .is-today { color: var(--ink); font-weight: 600; }
.plan { display: grid; gap: 12px; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.plan .eyebrow { color: inherit; opacity: .6; }
.plan h3 { font-size: 1.700rem; letter-spacing: -.035em; }
.plan h3 small { display: block; margin-top: 4px; font: 500 .9rem var(--font-body); letter-spacing: 0; opacity: .7; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .88rem; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li .ic { width: 17px; height: 17px; margin-top: 2px; opacity: .7; }
.plan .note { color: inherit; opacity: .55; }

/* notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.notice > .ic { margin-top: 1px; color: var(--ink-2); }
.notice b { display: block; font-weight: 600; }
.notice p { margin-top: 2px; font-size: .86rem; color: var(--ink-2); }
.notice--warn { background: var(--warn-soft); }
.notice--warn > .ic, .notice--warn b { color: var(--warn); }
.notice--plain { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.hintline { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--ink-3); }
.hintline .ic { margin-top: 2px; }

/* ---------- the car sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 14, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--ease); }
.scrim.is-open { opacity: 1; }
.sheet { position: fixed; z-index: 110; top: 12px; right: 12px; bottom: 12px; width: min(500px, calc(100vw - 24px)); display: flex; flex-direction: column; border-radius: 24px; background: var(--bg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); transform: translateX(calc(100% + 24px)); transition: transform .42s var(--ease); overflow: hidden; }
.sheet.is-open { transform: none; }
.sheet:focus { outline: none; }
.sh-grab { display: none; }
.sh-top { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px 22px; flex: none; }
.sh-top .iconbtn { margin-left: auto; }
.sh-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.sh-body > * { flex: none; }
.sh-hero { display: grid; justify-items: start; gap: 4px; }
.sh-hero .plate { margin-bottom: 14px; animation: plate-in .5s var(--ease) both; }
@keyframes plate-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.sh-hero h2 { font-size: 1.500rem; letter-spacing: -.03em; }
.sh-hero h2 small { font: 500 .95rem var(--font-body); letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.sh-job { font-size: 1rem; color: var(--ink-2); }
.sh-facts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sh-who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font: 700 .8rem var(--font-display); }
.sh-who-t { display: grid; min-width: 0; margin-right: auto; }
.sh-who-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-who-t span { font-size: .8rem; color: var(--ink-3); }
.sh-total { display: grid; justify-items: end; padding-left: 12px; border-left: 1px solid var(--line); }
.sh-total b { font-size: 1.050rem; font-weight: 600; }
.sh-total span { font-size: .74rem; font-weight: 600; color: var(--ink-3); }
.sh-total .is-paid { color: var(--good); }

/* confirmation flourish */
.tick { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--good); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: dash .55s var(--ease) forwards; }
.tick path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: dash .35s var(--ease) .35s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.fx { --sc: var(--ink-3); --sf: var(--ink-3); --sb: var(--surface-2); display: flex; gap: 14px; align-items: center; min-height: 78px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: background .4s var(--ease), border-color .4s var(--ease); }
.fx-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--sb); color: var(--sc); }
.fx b { display: block; font: 700 1.050rem var(--font-display); letter-spacing: -.02em; }
.fx p { font-size: .84rem; line-height: 1.4; color: var(--ink-2); margin-top: 2px; }
.fx.is-fresh { background: var(--sb); border-color: transparent; animation: fx-in .4s var(--ease) both; }
.fx.is-fresh b { color: var(--sc); }
.fx.is-fresh .tick { stroke: var(--sf); }
@keyframes fx-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.sms { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: fx-in .4s var(--ease) .15s both; scroll-margin: 16px; }
.sms small { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.sms .sms-note { font-weight: 400; color: var(--ink-3); }
.bubble { justify-self: start; max-width: 92%; padding: 10px 14px; border-radius: 18px 18px 18px 5px; background: var(--surface-2); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.partsbox { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); animation: fx-in .35s var(--ease) both; }
.partsbox label { font-size: .86rem; font-weight: 600; }
.parts-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.parts-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.qchip { min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.qchip:hover { border-color: var(--ink-3); color: var(--ink); }
.qchip--ghost { border-color: transparent; color: var(--ink-3); margin-left: auto; }
.partsbox--set { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; border-color: var(--line); box-shadow: none; animation: none; }
.partsbox--set > .ic { color: var(--warn); }
.partsbox--set b { display: block; font-weight: 600; font-size: .9rem; }
.partsbox--set small { font-size: .78rem; color: var(--ink-3); }

/* status rail */
.rail { --p: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 6px 0 2px; padding: 0; }
.rail::before, .rail::after { content: ''; position: absolute; top: 10px; left: calc(100% / 12); height: 2px; border-radius: 2px; }
.rail::before { right: calc(100% / 12); background: var(--line-strong); }
.rail::after { width: calc((100% - 100% / 6) * var(--p)); background: var(--accent); transition: width .7s var(--ease); }
.rail li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; font-size: .68rem; font-weight: 500; color: var(--ink-3); text-align: center; white-space: nowrap; }
.rail li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); color: var(--on-accent); transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.rail li i .ic { width: 12px; height: 12px; stroke-width: 2.500; }
.rail li.is-done i { background: var(--accent); border-color: var(--accent); }
.rail li.is-now i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-glow); }
.rail li.is-now i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); }
.rail li.is-now span { color: var(--ink); font-weight: 600; }
.rail.is-paused li.is-now i { border-color: var(--warn); background: var(--warn); box-shadow: 0 0 0 5px var(--warn-soft); }
.rail.is-paused li.is-now i::after { width: 3px; height: 9px; border-radius: 1px; background: transparent; box-shadow: -3px 0 0 var(--surface), 3px 0 0 var(--surface); }

/* one tap status buttons */
.stgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stbtn { position: relative; display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s var(--ease), border-color .2s ease, background .25s var(--ease); }
.stbtn:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.stbtn:active { transform: scale(.97); }
.stbtn[data-st="ready"] { grid-column: 1 / -1; }
.stbtn-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--surface-2); color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease); }
.stbtn-ic .ic { width: 22px; height: 22px; }
.stbtn-t { display: grid; min-width: 0; }
.stbtn-t b { font: 600 .95rem/1.25 var(--font-body); }
.stbtn-t small { font-size: .76rem; color: var(--ink-3); }
.stbtn-on { display: none; place-items: center; width: 22px; height: 22px; margin-left: auto; flex: none; border-radius: 50%; background: var(--sf); color: var(--so, var(--surface)); }
.stbtn-on .ic { width: 13px; height: 13px; stroke-width: 2.500; }
.stbtn.is-now { border-color: var(--sf); background: var(--sb); box-shadow: inset 0 0 0 1px var(--sf); }
.stbtn.is-now .stbtn-ic { background: var(--sf); color: var(--so, var(--surface)); }
.stbtn.is-now .stbtn-on { display: grid; animation: fx-in .3s var(--ease) both; }
.stbtn.is-now .stbtn-t small { color: var(--ink-2); }

/* release */
.release { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 18px 14px 14px; border: 0; border-radius: 20px; background: var(--ink); color: var(--bg); text-align: left; cursor: pointer; box-shadow: 0 10px 28px rgba(14, 17, 22, .2); transition: transform .18s var(--ease), box-shadow .25s var(--ease), opacity .2s ease; }
.release:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(14, 17, 22, .28); }
.release:active { transform: scale(.98); }
.release[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.release-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--bg) 14%, transparent); }
.release-ic .ic { width: 22px; height: 22px; }
.release-t { display: grid; min-width: 0; margin-right: auto; }
.release-t b { font: 700 1.050rem/1.25 var(--font-display); letter-spacing: -.02em; }
.release-t small { font-size: .78rem; opacity: .68; }
.release-amt { font-size: 1.100rem; font-weight: 600; white-space: nowrap; }
.sh-quiet { display: flex; justify-content: center; }
.done { display: grid; justify-items: center; gap: 8px; padding: 18px 0 4px; text-align: center; animation: fx-in .45s var(--ease) both; }
.done .tick { width: 76px; height: 76px; stroke-width: 2.500; margin-bottom: 6px; }
.done h3 { font-size: 1.600rem; letter-spacing: -.03em; }
.done > p { color: var(--ink-2); }
.done-list { list-style: none; margin: 12px 0 0; padding: 0; width: 100%; text-align: left; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.done-list li { display: flex; gap: 12px; padding: 14px 16px; font-size: .86rem; color: var(--ink-2); }
.done-list li + li { border-top: 1px solid var(--line); }
.done-list .ic { color: var(--ink-2); margin-top: 1px; }
.done-list b { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; }
.done-acts { display: flex; gap: 10px; width: 100%; margin-top: 12px; }
.done-acts .btn { flex: 1; }
.sh-sec { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.sh-sec--first { border-top: 0; padding-top: 4px; }
.sh-sec h3 { font-size: 1rem; }
.sh-sec h3 + .note { margin-top: -6px; }
.lines-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-strong); font-weight: 600; }
.dl { display: grid; margin: 0; }
.dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.dl > div:first-child { border-top: 0; padding-top: 0; }
.dl dt { color: var(--ink-2); } .dl dd { margin: 0; font-weight: 500; text-align: right; }
.sh-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.jobgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jobpick { display: grid; gap: 2px; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s var(--ease), transform .18s var(--ease); }
.jobpick:hover { border-color: var(--line-strong); }
.jobpick:active { transform: scale(.97); }
.jobpick b { font: 600 .9rem/1.25 var(--font-body); }
.jobpick span { font-size: .8rem; color: var(--ink-3); }
.jobpick.is-on { border-color: var(--accent); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.jobpick.is-on span { color: var(--brand); }

/* ---------- scanner (simulated) ---------- */
.scanner { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; color: #f1f2f4; background: radial-gradient(120% 70% at 50% 46%, #2b3038 0%, #14171c 52%, #07090c 100%); opacity: 0; transition: opacity .3s var(--ease); }
.scanner.is-on { opacity: 1; }
.scan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0 20px; }
.scan-demo { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: .82rem; font-weight: 600; }
.scan-stage { flex: 1; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 20px; }
.scan-frame { position: relative; display: grid; place-items: center; width: min(360px, 82vw); aspect-ratio: 2.100; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); overflow: hidden; }
.cn { position: absolute; width: 34px; height: 34px; border: 3px solid #fff; transition: border-color .3s var(--ease), transform .4s var(--ease); }
.cn1 { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 22px; }
.cn2 { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 22px; }
.cn3 { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 22px; }
.cn4 { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 22px; }
.scan-line { position: absolute; left: 6%; right: 6%; top: 0; height: 44%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 30%, transparent)); border-bottom: 2px solid var(--accent); box-shadow: 0 10px 24px -8px var(--accent); animation: sweep 1.500s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: translateY(-70%); } to { transform: translateY(150%); } }
.plate--scan { font-size: clamp(34px, 11vw, 50px); border-width: 2px; border-radius: 10px; opacity: 0; filter: blur(9px); transform: scale(.86); transition: opacity .5s var(--ease), filter .6s var(--ease), transform .6s var(--ease); }
.plate--scan .gb { font-size: .22em; min-width: 2.600em; }
.plate--scan s { text-decoration: none; }
.scanner.is-found .plate--scan { opacity: 1; filter: none; transform: none; }
.scanner.is-found .plate--scan s { animation: char .3s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
@keyframes char { 0% { color: #c85a00; transform: translateY(-2px); } 100% { color: inherit; transform: none; } }
.scanner.is-read .cn { border-color: #4fca88; }
.scanner.is-read .scan-line { display: none; }
.scan-status { display: inline-flex; align-items: center; gap: 8px; font: 600 1.100rem var(--font-display); letter-spacing: -.02em; }
.scanner.is-read .scan-status { color: #4fca88; }
.scan-read { min-height: 1.500em; font-size: .9rem; letter-spacing: .14em; opacity: .6; }
.scan-foot { padding: 0 24px calc(28px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: .82rem; opacity: .55; }

/* ---------- modal ---------- */
dialog#modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
dialog#modal[open] { animation: modal-in .32s var(--ease) both; }
dialog#modal::backdrop { background: rgba(8, 10, 14, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.md { display: grid; gap: 16px; padding: 22px; }
.md-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px -8px -4px 0; }
.md-h h2 { font-size: 1.350rem; letter-spacing: -.03em; }
.md-price { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.md-price b { font-size: 1.050rem; color: var(--ink); }
.md-f { display: flex; gap: 8px; justify-content: flex-end; }
.md .sms { animation: none; }
.morelist { display: grid; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.morelist a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; text-decoration: none; color: var(--ink); font-weight: 500; }
.morelist a + a { border-top: 1px solid var(--line); }
.morelist a > .ic:first-child { color: var(--ink-2); }
.morelist a > .ic--sm { color: var(--ink-3); margin-left: auto; }
.morelist .badge + .ic--sm { margin-left: 0; }
.morelist a[aria-current="page"] { color: var(--brand); }
.more-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* toasts */
.toasts { z-index: 130; }
.toast { font-size: .9rem; border-radius: 16px; padding: 12px 16px; animation: toast-in .3s var(--ease) both; }
.toast .ic { margin-top: 1px; color: var(--good-soft); }
.toast a { color: inherit; font-weight: 600; }
.toast .live-dot { margin-top: 6px; }
.toast b { margin-right: 2px; }

/* tab bar (phone) */
.tabbar { display: none; }

/* ---------- wide screens ---------- */
@media (min-width: 1480px) { .pb-hint { display: block; } }
@media (max-width: 1239px) {
  .cols, .pgrid, .setgrid { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .cols .side-col { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .simbtn span { display: none; }
  .simbtn { width: 42px; padding: 0; border-radius: 50%; }
}
@media (max-width: 1099px) {
  .board { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .search { width: 170px; }
}

/* ---------- phone and small tablet ---------- */
@media (max-width: 859px) {
  :root { --pad: 16px; }
  .only-sm { display: grid !important; } .not-sm { display: none !important; }
  .demo-bar { position: static; padding: 6px 12px; gap: 8px; font-size: .78rem; }
  .demo-bar small, .db-long { display: none; }
  .demo-bar > span:first-child { flex: none; }
  .demo-bar .seg a { padding: 4px 10px; }
  .app { display: block; }
  .side { display: none; }
  .main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
  .top { top: 0; }
  .top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; padding: 10px var(--pad) 12px; }
  .mini-brand { display: flex; gap: 9px; min-width: 0; }
  .mini-brand .brand-mark { width: 32px; height: 32px; font-size: 11.500px; }
  .nextslot { flex-wrap: wrap; }
  .nextslot .btn { flex: 1 1 100%; min-height: 46px; }
  .cthumb { width: 104px; }
  .mini-brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-r { grid-column: 2; grid-row: 1; gap: 6px; position: static; }
  .top-r .iconbtn, .simbtn { width: 40px; height: 40px; min-height: 40px; }
  .platebar { grid-column: 1 / -1; grid-row: 2; }
  .pb-plate { flex: 1; min-width: 0; height: 54px; font-size: 32px; border-radius: 10px; }
  .pb-plate input.chars { flex: 1; width: auto; min-width: 0; }
  .pb-go { width: 38px; height: 38px; }
  .pb-scan { min-height: 54px; padding: 0 1.100em; font-size: 1rem; }
  .pb-long { display: none; }
  .search { display: none; position: absolute; z-index: 5; left: var(--pad); right: var(--pad); top: 9px; width: auto; }
  .top.is-search .search { display: block; }
  .top.is-search .mini-brand, .top.is-search .top-r > :not(.search) { visibility: hidden; }
  .results { left: 0; right: 0; width: auto; }
  .sim { position: static; }
  .menu, .bellp { position: absolute; left: 12px; right: 12px; top: 56px; width: auto; }
  .view { padding: 22px var(--pad) 40px; }
  .view > * + * { margin-top: 20px; }
  .stack { gap: 24px; }
  .cols .side-col { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .stat { padding: 14px 16px; }
  .stats:not(.stats--3) .stat:nth-child(odd) { border-left: 0; }
  .stats:not(.stats--3) .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats--3 .stat { padding: 14px 12px; }
  .stat b { font-size: 1.500rem; }
  .stat span { font-size: .76rem; }
  .nextup { padding: 16px; border-radius: 20px; flex-wrap: wrap; }
  .nextup-r { width: 100%; justify-items: stretch; text-align: center; }
  .nextup-r .btn { min-height: 50px; }
  .need { grid-template-columns: auto minmax(0, 1fr); }
  .need-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .need-acts .btn { flex: 1 1 auto; }
  .bays { grid-template-columns: minmax(0, 1fr); }
  .rrow { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t p" "m m" "a a"; gap: 8px 10px; padding: 14px; }
  .rrow .rt { grid-area: t; } .rrow > .plate { grid-area: p; justify-self: start; }
  .rmain { grid-area: m; } .ract { grid-area: a; min-width: 0; } .ract:empty { display: none; } .ract .btn { width: 100%; }
  .rmain > span { white-space: normal; }
  .relrow { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "p . c" "m m amt" "h h h"; }
  .relrow > .plate { grid-area: p; } .relrow .chip { grid-area: c; } .relrow .ramt { grid-area: amt; align-self: start; } .relrow .hid { grid-area: h; white-space: normal; }
  .jtabs { display: flex; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
  .pilltab { min-height: 44px; padding: 0 16px; }
  .board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; overflow: visible; padding: 0; }
  .bcol { min-height: 0; padding: 0; background: transparent; gap: 10px; }
  .bcol h2 { padding: 0 2px; font-size: .9rem; color: var(--ink); }
  .board:not([data-tab="all"]) .bcol { display: none; }
  .board[data-tab="all"] .bcol:has(> .bempty) { display: none; }
  .board[data-tab="booked"] .bcol[data-st="booked"], .board[data-tab="arrived"] .bcol[data-st="arrived"], .board[data-tab="ramp"] .bcol[data-st="ramp"], .board[data-tab="working"] .bcol[data-st="working"], .board[data-tab="ready"] .bcol[data-st="ready"] { display: grid; }
  .board[data-tab="collected"] { display: none; }
  .released:not([data-tabshow="all"]):not([data-tabshow="collected"]) { display: none; }
  .bempty { border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: 28px 16px; }
  .jcard { padding: 14px; border-radius: 16px; cursor: pointer; }
  .jnext { min-height: 46px; }
  .ph-acts { width: 100%; }
  .ph-acts > .btn { flex: 1; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .formgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formgrid .field:has(.plate--field), .formgrid .field--btn { grid-column: 1 / -1; }
  .prbar { border-radius: var(--r-card); padding: 12px 14px; }
  .prbar-r { margin-left: 0; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl tr.norow { display: block; padding: 0; }
  .tbl td { display: block; padding: 0; border: 0; text-align: left; }
  .tbl td.r { text-align: right; }
  .tbl td[data-label] { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .tbl td[data-label]::before { content: attr(data-label); margin-right: auto; font-size: .8rem; color: var(--ink-3); }
  .tbl td[data-label] .sub { display: inline; }
  .tbl td.rowacts { grid-column: 1 / -1; display: flex; gap: 8px; }
  .tbl td.rowacts:empty { display: none; }
  .tbl td.rowacts .btn { flex: 1; margin: 0; }
  .tbl td.nolabel:nth-child(2) { grid-column: 1 / -1; }
  .tbl tr > td.nolabel:first-child:nth-last-child(n+5):not(:has(.plate)) { grid-column: 1 / -1; }
  .tools .btn { flex: 1 1 100%; }
  .acc { grid-template-columns: minmax(0, 1fr); }
  .setrow span { max-width: none; }

  /* sheet becomes a bottom sheet */
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: min(93dvh, 100dvh - 28px); border-radius: 26px 26px 0 0; transform: translateY(105%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sh-grab { display: block; width: 40px; height: 4px; margin: 9px auto 0; border-radius: 4px; background: var(--line-strong); flex: none; }
  .sh-top { padding: 6px 10px 2px 18px; }
  .sh-body { padding: 4px 18px 28px; }
  .plate--xl { font-size: 42px; }
  .sh-body { gap: 13px; }
  .sh-hero .plate { margin-bottom: 10px; }
  .sh-hero h2 { font-size: 1.350rem; }
  .sh-who { padding: 10px 12px; }
  .fx { padding: 12px 14px; }
  .nextup-car .plate { font-size: 24px; }
  .stbtn { min-height: 64px; padding: 10px 12px; gap: 10px; border-radius: 16px; }
  .stgrid { gap: 8px; }
  .stbtn-ic { width: 40px; height: 40px; }
  .release { min-height: 70px; padding: 14px 18px; }
  .release-ic { display: none; }
  dialog#modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  dialog#modal[open] { animation-name: sheet-up; }
  .md-f .btn { flex: 1; }
  .toasts { left: 12px; right: 12px; max-width: none; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom, 0px)); }

  .tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding: 0 6px env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: none; text-decoration: none; color: var(--ink-3); font: 500 .68rem var(--font-body); cursor: pointer; transition: color .2s var(--ease); }
  .tabbar .ic { width: 23px; height: 23px; transition: transform .25s var(--ease); }
  .tabbar [aria-current="page"] { color: var(--ink); font-weight: 600; }
  .tabbar [aria-current="page"] .ic { color: var(--accent); transform: translateY(-1px); }
  .tabbar .badge { position: absolute; top: 6px; left: calc(50% + 9px); margin: 0; min-width: 17px; height: 17px; padding: 0 5px; font-size: 10px; line-height: 17px; background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 0 0 2px var(--bg); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 379px) {
  .mini-brand b { display: none; }
  .stbtn-t small { display: none; }
  .plate--xl { font-size: 40px; }
}
