/* =============================================================================
   flows.autos – /public/assets/css/app.css – Version 1.0.0-rc.17 (2026.10.31.1000)
   Modern look (0.4.7): dark navigation bar with the flows.autos logo, light
   slate page, white cards with soft shadows, 10–16 px corners, tall fields with
   floating labels and focus ring, accent blue #006CFC, menu behind "⋮", main
   action within thumb reach. Mobile first. Navy #0C1424 / #19283E, light #F1F5F9.
   Changelog: 1.0.0-rc.17 2026-10-31 AIR ADD: note when the QR code could not be made; two-factor sign-in switched off by the user
              1.0.0-rc.16 2026-10-30 AIR ADD: bar of the phone, connect / end page, QR code drawer in the panel
              1.0.0-rc.15 2026-10-30 Speed Add / AIR ADD: buttons, drawer „Zuletzt hinzugefügt“, „Gespeichert“
              1.0.0-rc.14 2026-10-30 Schäden markieren grouped by vehicle view, sketch "Unterboden"
              1.0.0-rc.13 2026-10-30 Photos of each damage, Speed Add card list by tabs
              1.0.0-rc.12 2026-10-30 Speed Add: further cards, mode tiles, wizard head
              1.0.0-rc.11 2026-10-29 Speed Add (areas, cards, big add button), inline customer search
              1.0.0-rc.10 2026-10-15 Error log: entries of earlier versions greyed out
              1.0.0-rc.9 2026-10-15 Order page: sticky bar with quick actions; PDF link on the order cards
              1.0.0-rc.8 2026-10-15 Home page: hero after the flows.autos key visual, section "Als App installieren"
              1.0.0-rc.7 2026-10-15 Read-only damage sketch with the list of its points (protocol page)
              1.0.0-rc.5 2026-10-15 Home page (educational project), footer note
              1.0.0-rc.3 2026-10-15 Order data as in 5.4 (faults, positions with sums, extra blocks), order page sections, photo pairs, wizard hints and live camera, master data review
              1.0.0-rc.2 2026-10-15 Wizard start: search fields (combobox), picked records, side drawers
              1.0.0-rc.1 2026-10-15 Chips ok / warn (check against 5.4)
              0.10.0 2026-10-15 Takeover from 5.4 (instructions, progress), ID document photos
              0.9.0 2026-10-15 Settings screens (lists, stages, audit, import)
              0.8.0 2026-10-15 Messages, notification panel, rules and switches
              0.7.0 2026-10-15 Forms like the design (label above, compact), service tiles, bulk order, status page
              0.6.1 2026-10-15 App shell (side navigation, search, user menu), dashboard, dark theme, dark sign-in, wizard design
              0.6.0 2026-10-15 Intake wizard, damage sketches, photos, signature, outbox notice, intake hub
              0.4.0 2026-10-15 Orders: board, cards, order form, stage actions, timeline,
                               start figures, VIN scan overlay
              0.3.0 2026-10-15 Organisations: two-column forms, reference numbers, chips,
                               logos, brand preview, file and colour fields
              0.2.0 2026-10-15 Logo colours (navy, orange); accounts: notes, checkboxes, cards, confirm popover,
                               thumb bar, permission matrix, QR, print sheets
              0.1.0 2026-10-14 Initial version
   ============================================================================= */
:root {
  --bg: #fff; --ink: #0C1424; --ink-2: #19283E; --muted: #4A5568; --soft: #F1F5F9; --rule: #CBD5E1;
  --acc: #006CFC; --acc-soft: #E5F0FF; --acc-ink: #FFFFFF;
  --ok: #1E8E3E; --warn: #E8890C; --bad: #C5221F;
  --ok-soft: #CDEFD3; --warn-soft: #FFE7C2; --bad-soft: #FBD0CC;
  --r: 10px; --r-lg: 16px; --gap: 16px;
  --page: #F3F6FA; --line: #E2E8F0; --line-2: #CBD5E1; --nav: #0C1424; --nav-2: #131F35;
  --shadow-sm: 0 1px 2px rgba(12,20,36,.06);
  --shadow: 0 1px 2px rgba(12,20,36,.05), 0 6px 20px rgba(12,20,36,.06);
  --shadow-lg: 0 2px 6px rgba(12,20,36,.08), 0 24px 48px rgba(12,20,36,.16);
  --ring: 0 0 0 4px rgba(0,108,252,.18);
  --font: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--font); -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--acc); color: var(--acc-ink); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: var(--gap); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.wrap > * { min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gap); border-bottom: 3px solid var(--acc); position: sticky; top: 0; background: var(--bg); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { flex: none; display: block; height: 32px; width: auto; }
@media (min-width: 600px) { .brand img { height: 36px; } }
.brand .brand-sub { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1.5px solid var(--rule); padding-left: 10px; max-width: 46vw; }
.brand span { display: grid; min-width: 0; }
.brand strong { font-size: 1.2rem; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px var(--gap) 40px; }

/* header menu "⋮" */
.hmenu { position: relative; }
.hmenu > summary { list-style: none; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: var(--r); font-size: 1.6rem; font-weight: 800; cursor: pointer; }
.hmenu > summary::-webkit-details-marker { display: none; }
.hmenu[open] > summary { background: var(--ink-2); color: var(--soft); }
.hmenu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: max-content; min-width: 260px; max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); overflow: auto;
  background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 14px 34px rgba(0,0,0,.2); padding: 6px; display: grid; }
.hmenu-panel a, .hmenu-panel button { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px; border: 0; border-radius: var(--r); background: none; font: inherit; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.hmenu-panel a:hover, .hmenu-panel button:hover { background: var(--acc-soft); }
.hmenu-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; width: 100%; }
.hmenu-panel form { margin: 0; }

/* cards and headings */
.card { border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; background: var(--bg); }
.card > h1, .card > h2 { margin-top: 0; }
h1 { font-size: 1.5rem; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--acc-soft); }
.btn.pri { background: var(--acc); color: var(--acc-ink); }
.btn.pri:hover { background: #0057CC; color: var(--acc-ink); }
.btn.wide { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* fields with floating labels */
.fld { position: relative; display: block; margin: 0 0 14px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 60px; padding: 24px 14px 8px; border: 2px solid var(--ink); border-radius: var(--r); font: inherit; background: var(--bg); color: var(--ink); }
.fld > span { position: absolute; left: 16px; top: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); pointer-events: none; transition: all .12s; }
.fld input:placeholder-shown:not(:focus) + span { top: 19px; font-size: 1rem; font-weight: 500; }
.fld input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--acc); outline: none; }
.fld.small input { min-height: 52px; padding-top: 20px; }
.alert { border-left: 6px solid var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: var(--r); margin: 0 0 14px; }
.flash { max-width: 1200px; margin: 12px auto 0; padding: 10px 14px; border-radius: var(--r); border-left: 6px solid var(--ok); background: var(--ok-soft); font-weight: 600; }
.flash-err { border-color: var(--bad); background: var(--bad-soft); }

/* login */
.login .wrap { max-width: 480px; padding-top: 6vh; }
.login-card h1 { font-size: 1.7rem; }

/* badges, tiles */
.badge { display: inline-block; white-space: nowrap; font: 700 .7rem var(--mono); text-transform: uppercase; border: 1.5px dashed var(--ink); border-radius: var(--r); padding: 1px 6px; font-style: normal; }
.badge.big { font-size: .9rem; padding: 4px 10px; background: var(--acc); color: var(--acc-ink); border-style: solid; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.tile a { display: grid; gap: 4px; min-height: 72px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--r); text-decoration: none; }
.tile.st-on a { box-shadow: inset 6px 0 0 var(--acc); }
.tile.st-planned a { border-style: dashed; color: var(--muted); }
.tile small { color: var(--muted); }

/* module list */
.modlist { display: grid; gap: 10px; }
.modrow { display: grid; gap: 10px; border: 1.5px solid var(--rule); border-radius: var(--r); padding: 12px; }
.modrow.st-on { border-left: 8px solid var(--acc); }
.modrow.st-planned { border-left: 8px dashed var(--muted); }
.modname { display: grid; }
.modname small { color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 48px; padding: 4px 6px; text-align: center; font-weight: 600; font-size: .9rem; cursor: pointer; }
.seg label + label span { border-left: 1px solid var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: -3px; }
@media (min-width: 900px) { .modrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; } .modrow .fld { margin: 0; } }

/* lists, tables */
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.history small { display: block; color: var(--muted); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 599px) { .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .dl dt { font-size: .8125rem; color: var(--muted, #475569); margin-top: 8px; } .dl dt:first-child { margin-top: 0; } }
table.diag { width: 100%; border-collapse: collapse; }
table.diag th, table.diag td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
tr.st-ok .pill { background: var(--ok-soft); color: var(--ok); }
tr.st-warn .pill { background: var(--warn-soft); color: #8a4e00; }
tr.st-fail .pill { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 640px) {
  table.diag thead { display: none; }
  table.diag tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
  table.diag td { border: 0; padding: 0; }
  table.diag td:last-child { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
}


/* ---- 0.2.0 accounts ------------------------------------------------------- */
h3 { font-size: 1rem; margin: 18px 0 8px; }
.small { font-size: .85rem; }
.hint { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.lead { font-size: 1.05rem; font-weight: 600; }
.below { margin: 16px 0 0; text-align: center; }
.narrow { max-width: 560px; }
.note { border-left: 6px solid var(--ink); background: var(--soft); padding: 10px 14px; border-radius: var(--r); margin: 0 0 14px; }
.note.ok { border-color: var(--ok); background: var(--ok-soft); }
.note.warn { border-color: var(--warn); background: var(--warn-soft); }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.linkbtn { background: none; border: 0; padding: 10px 0; font: inherit; text-decoration: underline; cursor: pointer; color: var(--ink); min-height: 44px; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.fld select:focus { box-shadow: inset 0 0 0 2px var(--acc); outline: none; }
.fld input[readonly] { background: var(--soft); }
.code-input { font: 700 1.4rem var(--mono) !important; letter-spacing: .25em; }

/* checkbox with text */
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; cursor: pointer; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check small { display: block; color: var(--muted); }

/* rows: label left, action right */
.rows { list-style: none; padding: 0; margin: 0 0 12px; display: grid; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.rows li > span { display: grid; min-width: 0; }
.rows small { color: var(--muted); }
.rows form { margin: 0; }

/* headline with button, filters */
.headline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.headline h1 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 16px 0 4px; }
.filters .fld { margin: 0; min-width: 160px; flex: 1 1 160px; }
.filters .fld.grow { flex: 3 1 220px; }
.filters .btn { min-height: 52px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.inline-form .fld { margin: 0; flex: 1 1 220px; }
.inline-form .btn { min-height: 52px; }

/* card list */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.cards a { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--rule); border-left: 6px solid var(--acc); border-radius: var(--r); text-decoration: none; min-height: 72px; }
.cards a:hover { border-color: var(--ink); border-left-color: var(--acc); }
.cards strong { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cards span { overflow-wrap: anywhere; }
.cards small { color: var(--muted); }
.cards .is-off a { border-left-color: var(--rule); color: var(--muted); }
.badge.ok { background: var(--ok-soft); border-style: solid; border-color: var(--ok); color: var(--ok); }
.badge.warn { background: var(--warn-soft); border-style: solid; border-color: var(--warn); color: #8A4B00; }
.badge.bad { background: var(--bad-soft); border-style: solid; border-color: var(--bad); color: var(--bad); }

/* main action within thumb reach on phones */
.thumbbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px var(--gap) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 2px solid var(--ink); z-index: 15; }
.show-sm { display: none; }
@media (max-width: 720px) {
  .show-sm { display: block; }
  .hide-sm { display: none; }
  body:has(.thumbbar) .foot { padding-bottom: 110px; }
}

/* confirmation popover (no browser dialogs) */
.confirm { position: relative; display: inline-block; }
.confirm > summary { list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] > summary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.confirm-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 25; width: min(320px, calc(100vw - 32px)); padding: 14px; background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.confirm-panel p { margin: 0 0 12px; }
.confirm-panel form { margin: 0; }
.actions form { margin: 0; }

/* choice cards (radio) */
.choice { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt { min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--rule); border-radius: var(--r); cursor: pointer; }
.opt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.opt span { display: grid; }
.opt small { color: var(--muted); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 6px 0 0 var(--acc); }
.invite-form:has(input[value="group"]:checked) .only-personal,
.invite-form:has(input[value="personal"]:checked) .only-group { display: none; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }

/* 2FA setup, recovery codes, QR */
.steps { padding-left: 1.3em; margin: 0; display: grid; gap: 8px; }
.steps h3 { margin-top: 8px; }
.qr { width: min(240px, 70vw); aspect-ratio: 1; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; display: grid; place-items: center; text-align: center; font-size: .85rem; color: var(--muted); padding: 4px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr.big { width: min(320px, 80vw); }
.secret { font: 700 1.05rem var(--mono); letter-spacing: .08em; background: var(--soft); padding: 6px 10px; border-radius: var(--r); display: inline-block; word-break: break-all; }
.codes { columns: 2; column-gap: 24px; padding-left: 1.6em; margin: 12px 0; font: 700 1.1rem var(--mono); }
.codes li { padding: 4px 0; }
.poster { display: grid; justify-items: start; gap: 6px; margin-top: 12px; }
.linkbox code { overflow-wrap: anywhere; font-size: .85rem; }
.print-only { display: none; }

/* permission matrix */
.tablescroll { overflow-x: auto; border: 1.5px solid var(--rule); border-radius: var(--r); margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.tablescroll:focus-visible { outline-offset: 2px; }
table.matrix { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
table.matrix th, table.matrix td { padding: 6px 8px; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
table.matrix thead th { font-size: .82rem; vertical-align: bottom; min-width: 84px; }
table.matrix thead th span { display: block; font-weight: 700; }
table.matrix thead th small { display: block; color: var(--muted); font-weight: 400; }
table.matrix th[scope="row"], table.matrix thead th:first-child { position: sticky; left: 0; background: var(--bg); text-align: left; font-weight: 600; font-size: .9rem; min-width: 150px; max-width: 220px; z-index: 1; box-shadow: 1px 0 0 var(--rule); }
table.matrix tr.req th, table.matrix tr.req td { background: var(--acc-soft); }
.tick { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; position: relative; }
.tick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tick span { width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--bg); display: grid; place-items: center; }
.tick input:checked + span { background: var(--ink); }
.tick input:checked + span::after { content: ""; width: 7px; height: 13px; border: solid var(--acc); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.tick input:disabled + span { opacity: .45; }
.tick input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }

/* details "more" */
.more { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 12px; }
.more > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

@media print {
  .top .hmenu, .foot, .crumbs, .no-print, .flash, .thumbbar { display: none !important; }
  .print-only { display: block; }
  .card { border: 0; padding: 0; }
  .poster { justify-items: center; text-align: center; gap: 12px; margin-top: 40px; }
  .poster-title { font-size: 2rem; font-weight: 800; }
  .qr.big { width: 11cm; border: 0; }
  .codes { font-size: 1.3rem; }
}

/* operator console and support session */
.badge.op { background: var(--ink); color: var(--soft); border-color: var(--ink); }
.support-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px var(--gap); background: var(--ink-2); color: var(--soft); font-weight: 600; }
.support-bar .btn { min-height: 40px; padding: 6px 14px; background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }

/* ---- 0.3.0 organisations ------------------------------------------------- */
.stack { display: grid; gap: var(--gap); }
.grid2 { display: grid; gap: 0 24px; grid-template-columns: minmax(0, 1fr); }
.grid2 > * { min-width: 0; }
@media (min-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.zipcity { display: grid; grid-template-columns: minmax(90px, 1fr) 3fr; gap: 0 12px; }
.fld textarea { min-height: 84px; resize: vertical; }
.fld textarea:focus, .fld select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }

/* reference numbers */
.refs { display: grid; gap: 10px; }
.ref-row { border: 1.5px solid var(--rule); border-radius: var(--r); padding: 10px 12px 2px; margin: 0; min-width: 0; }
.ref-row legend { font-weight: 700; padding: 0 6px; }
.ref-row legend small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.ref-edit { display: grid; gap: 10px; margin-bottom: 10px; }
.ref-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 10px; }
.ref-detail .fld { margin-bottom: 8px; }
.ref-detail .wide { grid-column: 1 / -1; }
.ref-row:has(input[name$="[inherit]"]:checked) .ref-edit { opacity: .45; pointer-events: none; }
.ref-row:has(input[value="off"]:checked) .ref-detail { display: none; }
@media (min-width: 900px) { .ref-edit { grid-template-columns: minmax(260px, 1fr) 2fr; align-items: start; } }

/* chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.chip.req { border-color: var(--ink); background: var(--acc-soft); font-weight: 600; }

/* logos */
.cust-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 8px; }
.cust-head > div { flex: 1 1 220px; min-width: 0; }
.cust-head h1 { margin: 0; }
.cust-head p { margin: 4px 0 0; }
.cust-logo { max-height: 56px; max-width: 140px; width: auto; height: auto; flex: none; }
.cards a.with-logo { grid-template-columns: 1fr; }
.card-logo { max-height: 28px; max-width: 110px; width: auto; height: auto; justify-self: start; margin-bottom: 4px; }
.logo-current { margin: 0 0 8px; padding: 10px; background: var(--soft); border-radius: var(--r); display: inline-block; }
.logo-current img { max-height: 70px; max-width: 220px; display: block; }
.join-logo { margin: 0 0 10px; }
.join-logo img { max-height: 64px; max-width: 220px; }
.file { display: grid; gap: 6px; margin: 0 0 14px; font-weight: 600; font-size: .9rem; }
.file input { width: 100%; font: inherit; padding: 10px; border: 2px dashed var(--rule); border-radius: var(--r); background: var(--soft); min-height: 52px; max-width: 100%; }
.colorfld { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.colorfld input[type=color] { width: 56px; height: 52px; padding: 2px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--bg); cursor: pointer; flex: none; }
.colorfld .fld { flex: 1; margin: 0; }

/* brand preview (what the customer's customer sees) */
.brand-preview { margin: 12px 0 0; }
.brand-preview figcaption { font-weight: 700; margin-bottom: 8px; }
.brand-preview figcaption small { display: block; font-weight: 400; color: var(--muted); }
.bp-phone { max-width: 320px; border: 1.5px solid var(--rule); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(12,20,36,.12); }
.bp-bar { display: block; width: 100%; height: 8px; }
.bp-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.bp-logo { max-height: 34px; max-width: 120px; width: auto; height: auto; }
.bp-phone p { margin: 0; padding: 0 16px; }
.bp-title { color: var(--muted); font-size: .85rem; padding-top: 10px !important; }
.bp-car { font-weight: 700; font-size: 1.1rem; }
.bp-stage { display: flex; gap: 8px; align-items: center; padding: 10px 16px 16px !important; }
.bp-stage svg { width: 12px; height: 12px; flex: none; }
.bp-foot { font-size: .75rem; color: var(--muted); border-top: 1px solid var(--rule); padding: 8px 16px !important; }

/* invitation: customer fields only for customer roles */
.invite-form:has(optgroup.org-workshop option:checked) .only-customer { display: none; }

/* ---- 0.4.0 orders --------------------------------------------------------- */
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ferr { color: var(--bad); font-weight: 600; font-size: .9rem; margin: -8px 0 12px; }
.has-err input, .has-err select, .has-err textarea, .card.has-err { border-color: var(--bad) !important; }
.card.has-err { box-shadow: inset 6px 0 0 var(--bad); }
.check.compact { min-height: 52px; align-items: center; margin: 0; }
.btn.icon { min-width: 48px; padding: 10px; }
.below-left { margin: 14px 0 0; }

/* order form */
.order-form .card { scroll-margin-top: 80px; }
.cust-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--soft); border-radius: var(--r); margin-bottom: 14px; }
.cust-line small { display: block; color: var(--muted); }
.vin-row { display: flex; gap: 8px; align-items: flex-start; }
.vin-row .fld { flex: 1; margin-bottom: 4px; }
.vin-row .scan { min-height: 60px; }
.fld input.mono { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.vin-state { margin: 0 0 12px; }
.vin-state.ok { color: var(--ok); font-weight: 700; }
.vin-state.bad { color: var(--bad); font-weight: 700; }
.plate-row { display: grid; grid-template-columns: 1fr 84px; gap: 0 10px; }
.plate-row .country input { text-transform: uppercase; }
.fld input:disabled { background: var(--soft); color: var(--muted); }
.svc { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.svc legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.svc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip { position: relative; cursor: pointer; }
.svc-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.svc-chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 14px; border: 2px solid var(--rule); border-radius: 999px; font-weight: 600; background: var(--bg); }
.svc-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--soft); }
.svc-chip input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--acc); }
.svc-chip input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
.choice.inline { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.only-pickup { display: none; }
.order-form:has(input[name=handover][value=pickup]:checked) .only-pickup { display: block; }
.check.express strong { color: var(--ink); }
.savebar { position: sticky; bottom: 0; z-index: 12; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, rgba(255,255,255,0)); }
@media (min-width: 900px) { .savebar { position: static; background: none; } .savebar .btn { width: auto; min-width: 260px; } }

/* stage chips and board */
.stage-chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 2px; margin-top: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.schip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1.5px solid var(--rule); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.schip svg { width: 10px; height: 10px; }
.schip b { background: var(--soft); border-radius: 999px; padding: 0 7px; font-size: .8rem; }
.schip.on { border-color: var(--ink); background: var(--ink); color: var(--soft); }
.schip.on b { background: var(--acc); color: var(--acc-ink); }
.board { display: grid; gap: 12px; }
.col { min-width: 0; }
.col h2 { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 6px 0 8px; }
.col h2 svg { width: 12px; height: 12px; flex: none; }
.col .cnt { margin-left: auto; background: var(--soft); border-radius: 999px; padding: 0 9px; font-size: .8rem; }
.col.is-empty { display: none; }
.board.single .col.is-empty { display: block; }
.ocards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ocard a { display: grid; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: var(--r); background: var(--bg); text-decoration: none; }
.ocard a:hover { border-color: var(--ink); }
.ocard.is-new a { border-left: 6px solid var(--acc); }
.ocard.is-express a { box-shadow: inset 0 3px 0 var(--bad); }
.ocard.dragging { opacity: .4; }
.oc-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.plate { font-family: var(--mono); font-weight: 800; letter-spacing: .04em; }
.oc-car, .oc-cust { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-meta { color: var(--muted); }
.late { color: var(--bad); font-weight: 700; }
.badge.new { background: var(--acc); border-style: solid; border-color: var(--acc); color: var(--acc-ink); }
.badge.express { background: var(--bad); border-style: solid; border-color: var(--bad); color: #fff; }
@media (min-width: 1100px) {
  .board { display: flex; overflow-x: auto; align-items: flex-start; padding-bottom: 8px; }
  .board > .col { flex: 1 0 230px; }
  .board > .col { flex-basis: 210px; }
  .board > .col.is-empty { flex: 0 0 116px; }
  .board > .col.is-empty h2 { flex-wrap: wrap; font-size: .8rem; }
  .board > .col.is-empty .cnt { display: none; }
  .board.single { display: grid; }
  .col, .col.is-empty { display: block; background: var(--soft); border-radius: var(--r); padding: 8px; min-height: 160px; }
  .col.is-terminal { opacity: .85; }
  .col.drop { outline: 3px dashed var(--acc); outline-offset: -3px; }
  .board.single .ocards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* order page */
.oh-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.stage-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; }
.stage-badge svg { width: 12px; height: 12px; }
.stage-badge.sm { padding: 1px 8px; font-size: .8rem; font-weight: 600; border-color: var(--rule); }
.order-head h1 .plate { font-size: 1.6rem; }
.order-head h1 .car { font-weight: 600; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stage-actions form { margin: 0; }
.stage-btn svg { width: 12px; height: 12px; }
.stage-btn.back { border-style: dashed; }
.dd .vin, .vin { letter-spacing: .05em; word-break: break-all; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 8px 0; border-left: 2px solid var(--rule); padding-left: 12px; margin-left: 6px; }
.timeline li > svg { width: 12px; height: 12px; margin: 4px 0 0 -20px; }
.timeline li:not(:has(> svg)) { grid-template-columns: 1fr; }
.timeline p { margin: 2px 0; }
.timeline small { color: var(--muted); }

/* start figures */
.kpis { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.kpis a { display: grid; gap: 2px; padding: 12px; border: 1.5px solid var(--rule); border-radius: var(--r); text-decoration: none; min-height: 76px; }
.kpis b { font-size: 1.6rem; line-height: 1; }
.kpis span { color: var(--muted); font-size: .85rem; }
.kpis .hot a { border-color: var(--acc); background: var(--acc-soft); }
.kpis .bad a { border-color: var(--bad); background: var(--bad-soft); }

/* services settings */
.svc-rows { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 0; }
.svc-rows > li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.svc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc-row .fld { margin: 0; flex: 1 1 220px; }
@media (max-width: 599px) { .svc-row .fld { flex-basis: 100%; } .svc-row .check { margin-right: auto; } .svc-row .btn { padding-left: 12px; padding-right: 12px; } .svc-row .btn.icon { width: 40px; min-width: 40px; padding: 0; } }
.svc-rows .is-off .fld input { color: var(--muted); text-decoration: line-through; }
.card.is-off { opacity: .7; }

/* VIN scan overlay */
.scan-overlay { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; grid-template-rows: 1fr auto auto; gap: 10px; padding: 12px; }
.scan-overlay video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.scan-overlay p { color: #fff; text-align: center; margin: 0; }
.errlog { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.errlog > li { background: var(--soft); border-radius: var(--r); padding: 8px 10px; border-left: 4px solid var(--rule); min-width: 0; }
.errlog > li.lv-fatal, .errlog > li.lv-exception { border-left-color: #DC2626; }
.errlog > li.lv-warning, .errlog > li.lv-mail, .errlog > li.lv-job { border-left-color: #F59E0B; }
.errlog code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }
.errlog .el-msg { margin: 4px 0; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.errlog .el-where { color: var(--muted); overflow-wrap: anywhere; }
.errlog pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .75rem; margin: 6px 0 0; }
.err-counts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ==== 0.4.7 modern look: overrides for the components above ================ */
::selection { background: rgba(0,108,252,.2); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { padding-top: 20px; }
@media (min-width: 900px) { .wrap { padding: 28px 24px; gap: 20px; } :root { --gap: 20px; } }

/* dark navigation bar */
.top { background: linear-gradient(180deg, var(--nav) 0%, var(--nav-2) 100%); color: #F1F5F9; border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 10px max(var(--gap), calc((100vw - 1200px) / 2 + var(--gap))); min-height: 64px; box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 8px 24px rgba(12,20,36,.12); }
.brand { gap: 14px; }
.brand img { height: 24px; }
@media (min-width: 600px) { .brand img { height: 28px; } }
.brand .logo-print { display: none; }
.brand .brand-sub { color: #94A3B8; border-left-color: rgba(255,255,255,.16); font-weight: 500; font-size: .85rem; padding-left: 14px; }
.hmenu > summary { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #F1F5F9; background: rgba(255,255,255,.04); font-size: 1.4rem; transition: background .15s, border-color .15s; }
.hmenu > summary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.hmenu[open] > summary { background: #F1F5F9; color: var(--ink); border-color: #F1F5F9; }
.hmenu-panel { color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px; top: calc(100% + 10px); }
.hmenu-panel a, .hmenu-panel button { border-radius: 10px; font-weight: 550; min-height: 44px; }
.hmenu-panel a:hover, .hmenu-panel button:hover { background: var(--soft); }
.hmenu-panel hr { border-top-color: var(--line); }
.support-bar { background: #1E293B; }

/* surfaces */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .card { padding: 24px 28px; } }
h1 { font-size: 1.55rem; font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: 1.05rem; font-weight: 700; text-transform: none; letter-spacing: -.005em; }
h3 { font-weight: 650; }
.crumbs ol { font-size: .85rem; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--acc); }
.foot { color: #94A3B8; }

/* buttons */
.btn { border: 1px solid var(--line-2); border-radius: 12px; font-weight: 650; min-height: 46px; padding: 10px 18px; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { background: #F8FAFC; border-color: #94A3B8; }
.btn:active { transform: translateY(1px); }
.btn.pri { border-color: var(--acc); box-shadow: 0 1px 2px rgba(0,108,252,.25), 0 4px 12px rgba(0,108,252,.2); }
.btn.pri:hover { background: #0057CC; border-color: #0057CC; }
.btn.danger { border-color: #F3B4AE; }
.linkbtn { color: var(--acc); text-decoration: none; font-weight: 600; }
.linkbtn:hover { text-decoration: underline; }

/* fields */
.fld input, .fld select, .fld textarea { border: 1px solid var(--line-2); border-radius: 12px; min-height: 56px; padding: 22px 14px 8px; transition: border-color .15s, box-shadow .15s; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: #94A3B8; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--acc); box-shadow: var(--ring); outline: none; }
.fld input:placeholder-shown:not(:focus) + span { top: 17px; }
.fld > span { font-weight: 600; letter-spacing: .01em; }
.fld select { background-image: linear-gradient(45deg, transparent 50%, #64748B 50%), linear-gradient(135deg, #64748B 50%, transparent 50%); }
.fld.small input, .fld.small select { min-height: 50px; }
.filters .btn, .inline-form .btn { min-height: 50px; }
.file input { border: 1px dashed var(--line-2); border-radius: 12px; }
.colorfld input[type=color] { border: 1px solid var(--line-2); border-radius: 12px; }
.check input, .opt input { accent-color: var(--acc); }

/* messages */
.flash { border-radius: 12px; border-left-width: 4px; box-shadow: var(--shadow-sm); }
.alert, .note { border-radius: 12px; border-left-width: 4px; }
.note { border-left-color: #94A3B8; }

/* lists of cards, tiles, choices */
.tile a, .cards a, .kpis a, .ocard a, .opt, .modrow, .ref-row { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile a:hover, .cards a:hover, .kpis a:hover, .ocard a:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.tile.st-on a { box-shadow: inset 4px 0 0 var(--acc); }
.tile.st-on a:hover { box-shadow: inset 4px 0 0 var(--acc), var(--shadow); }
.tile.st-planned a { border-style: dashed; border-color: var(--line-2); background: transparent; }
.cards a { border-left: 4px solid var(--acc); }
.cards a:hover { border-left-color: var(--acc); }
.cards .is-off a { border-left-color: var(--line-2); }
.modrow.st-on { border-left: 4px solid var(--acc); }
.modrow.st-planned { border-left: 4px dashed #94A3B8; }
.opt:has(input:checked) { border-color: var(--acc); box-shadow: var(--ring); background: #F7FAFF; }
.kpis b { font-weight: 750; letter-spacing: -.02em; }
.kpis .hot a { border-color: #9CC3FF; background: var(--acc-soft); }
.kpis .bad a { border-color: #F3B4AE; }
.seg { border: 1px solid var(--line-2); border-radius: 12px; background: var(--soft); padding: 3px; gap: 3px; }
.seg span { border-radius: 9px; min-height: 42px; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.chip { border: 1px solid var(--line-2); background: var(--bg); }
.chip.req { border-color: #9CC3FF; color: #0047A8; }
.badge { border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--font); letter-spacing: .03em; padding: 2px 7px; }
.badge.big { border-radius: 999px; padding: 4px 12px; }
.svc-chip span { border: 1px solid var(--line-2); font-weight: 550; transition: background .15s, border-color .15s; }
.svc-chip span:hover { border-color: #94A3B8; }
.svc-chip input:checked + span { background: var(--acc-soft); border-color: var(--acc); color: #0047A8; }
.svc-chip input:checked + span::before { color: var(--acc); }
.schip { border: 1px solid var(--line-2); background: var(--bg); }
.schip.on { background: var(--ink); border-color: var(--ink); }
.stage-badge { border: 1px solid var(--line-2); background: var(--bg); }
.tick span { border: 1.5px solid var(--line-2); border-radius: 7px; }
.tick input:checked + span { background: var(--acc); border-color: var(--acc); }
.tick input:checked + span::after { border-color: #fff; }
.qr { border: 1px solid var(--line); border-radius: 14px; }
.tablescroll { border: 1px solid var(--line); border-radius: 14px; }
.cust-line, .logo-current, .secret { border-radius: 12px; }
.confirm-panel { border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.confirm[open] > summary { background: var(--ink); color: #fff; }
.errlog > li { border-radius: 12px; }

/* board */
@media (min-width: 1100px) {
  .col, .col.is-empty { background: #EAEFF5; border-radius: var(--r-lg); padding: 10px; }
  .col.drop { outline: 2px dashed var(--acc); outline-offset: -4px; }
}
.ocard.is-new a { border-left: 4px solid var(--acc); }

/* bars at the bottom */
.thumbbar { background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(12,20,36,.08); }
.savebar { background: linear-gradient(to top, var(--page) 70%, rgba(243,246,250,0)); }

/* sign-in pages: dark band behind the card */
html { background: var(--page); }
body { min-height: 100vh; }
body.ctx-public { background: linear-gradient(180deg, var(--nav-2) 0, var(--nav-2) 230px, var(--page) 230px) no-repeat, var(--page); }
body.ctx-public .top { box-shadow: none; border-bottom-color: transparent; }
body.ctx-public .wrap { padding-top: 32px; }
body.ctx-public .card { box-shadow: var(--shadow-lg); }
body.ctx-public .foot { color: #64748B; }
.login .wrap { padding-top: 40px; }
.login-card h1 { font-size: 1.6rem; }

@media print {
  .top { background: none; box-shadow: none; border-bottom: 1px solid #ccc; color: var(--ink); }
  .brand .logo-screen { display: none; }
  .brand .logo-print { display: block; }
  body, body.ctx-public { background: #fff; }
  .card { box-shadow: none; }
}

/* ============================================================ 0.6.0 intake wizard, protocols, photos */
.wizard { width: 100%; max-width: 920px; min-width: 0; margin: 0 auto; }
.wz-head > div { min-width: 0; }
.wz-head .confirm { flex: none; }
.wz-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin: 0 0 12px; }
.wz-head h1 { margin: 0 0 4px; font-size: 1.45rem; }
.wz-head p { margin: 0; }
.wz-head .confirm-panel { right: 0; left: auto; }
.wz-saved { display: inline-block; font-size: .8125rem; color: var(--muted); margin-left: 6px; }
.wz-steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 14px; padding: 4px; scroll-snap-type: x proximity; }
.wz-steps::-webkit-scrollbar { display: none; }
.wz-steps button { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; scroll-snap-align: start; }
.wz-steps .n { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); font-size: .85rem; }
.wz-steps .n i { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #DC2626; color: #fff; font-style: normal; font-size: .7rem; line-height: 17px; }
.wz-steps [aria-current] { border-color: var(--acc); box-shadow: var(--ring); }
.wz-steps [aria-current] .n { background: var(--acc); color: #fff; }
@media (max-width: 599px) { .wz-steps button:not([aria-current]) .t { display: none; } .wz-steps button:not([aria-current]) { padding-right: 6px; } }
.wz-card h2 { font-size: 1.1rem; }
.wz-seg { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.wz-seg legend { font-weight: 650; font-size: .9rem; margin: 0 0 6px; padding: 0; }
.seg.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg.seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 420px) { .seg.seg-5 span, .seg.seg-4 span { font-size: .8rem; padding: 4px 2px; } }
.svc { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.svc legend { font-weight: 650; font-size: .9rem; margin: 0 0 6px; padding: 0; }
.wz-bar { position: sticky; bottom: 0; z-index: 12; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--page) 72%, rgba(243,246,250,0)); }
.wz-bar > span { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.wz-bar .btn:last-child { justify-self: end; }
.wz-bar .btn { min-width: 120px; }
.wz-issues { border-color: #FCD9A8; background: #FFFBF3; }
.wz-issues ul { margin: 0; padding-left: 20px; }
.wz-issues li { margin: 4px 0; }
.wz-done { text-align: center; padding-top: 32px; padding-bottom: 32px; }
.wz-done .actions { justify-content: center; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.wz-chips .chip { display: inline-flex; align-items: center; gap: 4px; }
.fld.has-err input, .fld.has-err select, .fld.has-err textarea { border-color: #DC2626; }
.ferr { color: #B91C1C; font-size: .875rem; font-weight: 600; margin: -8px 0 12px; }
.mono-in input { font-family: var(--mono, ui-monospace, monospace); text-transform: uppercase; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--acc); font: inherit; text-decoration: underline; cursor: pointer; }

/* damage sketches */
.sketches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); margin: 0 0 14px; }
.sk { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--bg); min-width: 0; }
.sk > b { display: flex; gap: 6px; align-items: center; font-size: .9rem; margin: 0 0 6px; }
.sk .cnt { font-style: normal; background: #DC2626; color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; }
svg.sketch { display: block; width: 100%; height: auto; max-height: 190px; touch-action: none; cursor: crosshair; background: #F8FAFC; border-radius: 10px; user-select: none; -webkit-user-select: none; }
svg.sketch .car { fill: #fff; stroke: #64748B; stroke-width: 2; stroke-linejoin: round; }
svg.sketch .car2 { fill: #E2E8F0; stroke: #94A3B8; stroke-width: 1.5; }
svg.sketch .whl { fill: #334155; stroke: #0F172A; stroke-width: 1.5; }
svg.sketch .mk { cursor: grab; }
svg.sketch .mk .hit { fill: transparent; stroke: none; }
svg.sketch .mk circle:not(.hit) { fill: #DC2626; stroke: #fff; stroke-width: 2; }
svg.sketch .mk text { fill: #fff; font: 700 11px/1 var(--font, system-ui), sans-serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.dmgs { display: grid; gap: 6px; margin-top: 8px; }
.dmg { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dmg .fld { margin: 0; flex: 1 1 140px; }
.dmg .fld.grow { flex: 2 1 180px; }
.dmgn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #DC2626; color: #fff; font-size: .8rem; flex: none; }

/* photos */
.photo-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.photo-tools .btn { cursor: pointer; }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.photo-grid > li { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: var(--bg); min-width: 0; }
.photo-grid .fld { margin: 8px 0 0; }
.ph-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); display: grid; place-items: center; color: var(--muted); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-img .badge { position: absolute; left: 6px; top: 6px; background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
.ph-row { display: flex; gap: 6px; align-items: flex-end; }
.ph-row .fld { flex: 1; }
.photo-grid.view > li { padding: 0; overflow: hidden; }
.photo-grid.view img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-grid.view small { display: block; padding: 6px 8px; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.photo-grid.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

/* checks */
.checkrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 220px); gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checkrow:last-of-type { margin-bottom: 14px; }
.checkrow .fld { grid-column: 1 / -1; margin: 0; }
.okseg span { min-height: 38px; }
.okseg label:last-child input:checked + span { background: #FEE2E2; color: #991B1B; }
@media (max-width: 480px) { .checkrow { grid-template-columns: minmax(0, 1fr); } }

/* signature */
.sigwrap { border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; }
.sigwrap.has-err { border-color: #DC2626; }
canvas.sig { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
@media (min-width: 700px) { canvas.sig { height: 240px; } }
.sigtools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0 0; }
.sig-img { display: block; max-width: 360px; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* offline outbox, toast */
.outbox-note { position: sticky; top: 0; z-index: 30; padding: 8px 16px; background: #FEF3C7; color: #78350F; font-size: .875rem; font-weight: 600; text-align: center; border-bottom: 1px solid #F59E0B; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--nav, #0C1424); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* order page: tow link, intake hub */
.linkbox { margin: 8px 0; padding: 8px 10px; background: var(--soft); border-radius: 10px; overflow-wrap: anywhere; font-size: .85rem; }
.ocards.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.oc-cta { display: block; margin-top: 6px; color: var(--acc); font-weight: 700; font-size: .875rem; }
h2 .cnt { display: inline-block; margin-left: 6px; background: var(--soft); border-radius: 999px; padding: 0 9px; font-size: .8rem; vertical-align: middle; }
@media print { .wz-bar, .wz-steps, .photo-tools, .outbox-note, .toast { display: none !important; } }
.wizard .savebar { position: static; background: none; padding-top: 4px; }
body.ctx-public.tow-page { background: var(--page); }
body.ctx-public.tow-page .card { box-shadow: var(--shadow-sm, 0 1px 2px rgba(12,20,36,.06)); }
.wizard .two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.wizard .fld > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 28px); }

/* ============================================================ 0.6.1 design: app shell, dashboard, dark theme */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.btn .ic { width: 18px; height: 18px; vertical-align: 0; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--acc); border-color: color-mix(in srgb, var(--acc) 35%, var(--line-2)); box-shadow: none; }
.btn.ghost:hover { background: var(--acc-soft); border-color: var(--acc); }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #3B8BFF, #0050C8); color: #fff; font-weight: 750; font-size: .85rem; letter-spacing: .02em; }
.avatar.sm { width: 34px; height: 34px; font-size: .75rem; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

/* --- top bar */
.top { gap: 16px; min-height: 68px; }
.top.has-shell { padding: 10px 20px; }
.topsearch { display: none; position: relative; flex: 1 1 auto; max-width: 640px; margin: 0; }
.topsearch > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94A3B8; }
.topsearch input { width: 100%; height: 46px; padding: 0 64px 0 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #F1F5F9; font: inherit; font-size: .95rem; transition: border-color .15s, background .15s, box-shadow .15s; }
.topsearch input::placeholder { color: #8291A9; }
.topsearch input:focus { outline: none; border-color: #3B8BFF; background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(0,108,252,.25); }
.topsearch kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 .72rem var(--font); color: #94A3B8; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 2px 7px; }
.top-tools { display: none; align-items: center; gap: 12px; margin-left: auto; }
.iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #CBD5E1; text-decoration: none; transition: background .15s; }
.iconbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.iconbtn .ic { width: 22px; height: 22px; }
.iconbtn .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #3B8BFF; color: #fff; font: 700 .68rem/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--nav); }
.usermenu { position: relative; }
.usermenu > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 14px; cursor: pointer; color: #E2E8F0; }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover, .usermenu[open] > summary { background: rgba(255,255,255,.07); }
.usermenu .who { display: grid; line-height: 1.2; max-width: 190px; }
.usermenu .who strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usermenu .who small { color: #94A3B8; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usermenu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; min-width: 260px; padding: 8px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: grid; }
.usermenu-panel .um-head { margin: 0 0 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); display: grid; }
.usermenu-panel .um-head small { color: var(--muted); }
.usermenu-panel a, .usermenu-panel button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-weight: 550; text-decoration: none; cursor: pointer; width: 100%; text-align: left; }
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--soft); }
.usermenu-panel form { margin: 0; }
.top-cta { min-height: 46px; padding: 10px 16px; border-radius: 12px; background: linear-gradient(135deg, #2A86FF, #0060E6); border-color: transparent; box-shadow: 0 6px 18px rgba(0,108,252,.35); }
.hmenu-panel .ic { color: var(--muted); }
.hmenu-panel a[aria-current] { background: var(--acc-soft); color: var(--acc); }
.hmenu-panel a[aria-current] .ic { color: var(--acc); }
.hm-search { position: relative; margin: 2px 0 6px; }
.hm-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hm-search input { width: 100%; min-height: 46px; padding: 0 12px 0 40px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; background: var(--bg); color: var(--ink); }
.hm-planned { color: var(--muted); }

/* --- side navigation */
.side { display: none; }
@media (min-width: 1100px) {
  body.has-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100vh; }
  body.has-shell > .top { grid-column: 1 / -1; grid-row: 1; }
  body.has-shell > .side { grid-column: 1; grid-row: 2; }
  body.has-shell > main { grid-column: 2; grid-row: 2; }
  body.has-shell > .foot { grid-column: 1 / -1; grid-row: 3; }
  body.has-shell .top .brand { width: 212px; flex: none; }
  body.has-shell .top .brand-sub { display: none; }
  .top.has-shell .topsearch { display: block; }
  .top.has-shell .top-tools { display: flex; }
  .top.has-shell .hmenu { display: none; }
  .side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 68px; align-self: start; height: calc(100vh - 68px); overflow-y: auto; padding: 18px 14px 18px; background: linear-gradient(180deg, var(--nav-2) 0%, var(--nav) 100%); border-right: 1px solid rgba(255,255,255,.05); scrollbar-width: thin; }
  .side-nav { display: grid; gap: 4px; }
  .side-nav a, .side-planned summary { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px; border-radius: 12px; color: #C3CEDF; text-decoration: none; font-weight: 550; font-size: .95rem; transition: background .15s, color .15s; cursor: pointer; }
  .side-nav a:hover, .side-planned summary:hover { background: rgba(255,255,255,.06); color: #fff; }
  .side-nav a[aria-current] { background: linear-gradient(135deg, #2A86FF, #0057D9); color: #fff; box-shadow: 0 8px 22px rgba(0,108,252,.35), inset 0 1px 0 rgba(255,255,255,.18); }
  .side-nav .ic, .side-planned .ic { width: 22px; height: 22px; }
  .side-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #3B8BFF; color: #fff; font: 700 .72rem/22px var(--font); text-align: center; }
  .side-nav a[aria-current] .side-count { background: rgba(255,255,255,.25); }
  .side-count.muted { background: rgba(255,255,255,.1); color: #C3CEDF; }
  .side-planned { border-top: 1px solid rgba(255,255,255,.07); padding-top: 10px; }
  .side-planned summary { list-style: none; }
  .side-planned summary::-webkit-details-marker { display: none; }
  .side-planned nav { display: grid; gap: 2px; padding: 4px 0 0 50px; }
  .side-planned nav a { color: #8C9AB3; text-decoration: none; font-size: .85rem; padding: 6px 8px; border-radius: 8px; }
  .side-planned nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
  .side-card { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.03); color: #E2E8F0; text-decoration: none; transition: border-color .15s, background .15s; }
  .side-card:hover { border-color: rgba(59,139,255,.55); background: rgba(59,139,255,.08); }
  .side-card > span { display: grid; gap: 2px; min-width: 0; }
  .side-card small { color: #8C9AB3; font-size: .78rem; line-height: 1.35; }
  .side-card > .ic:first-child { width: 26px; height: 26px; color: #60A5FA; }
  body.has-shell .wrap { max-width: 1440px; width: 100%; padding: 28px 32px 40px; }
}

/* --- footer bar */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--nav); color: #8C9AB3; font-size: .8rem; text-align: center; }
.foot-logo { height: 18px; width: auto; opacity: .9; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: #C3CEDF; text-decoration: none; }
.foot-links a:hover { color: #fff; }
@media (min-width: 900px) { .foot { justify-content: space-between; padding: 16px 28px; } }
body:has(.thumbbar) .foot, body:has(.wz-bar) .foot { padding-bottom: 96px; }
.flash { margin: 0; }

/* --- page head */
.page-head { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 16px 24px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 420px; }
.eyebrow, .eyebrow-h { margin: 0 0 6px; color: var(--acc); font-size: .74rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-h { margin: 0; font-size: .78rem; letter-spacing: .14em; }
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 8px; }
.page-head .lead { font-weight: 400; color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.02rem; }
.page-head .actions { margin-top: 18px; }
.page-head.hero { position: relative; padding: 4px 0 6px; }
@media (min-width: 900px) { .page-head.hero::before { content: ""; position: absolute; right: 230px; top: -22px; width: 560px; height: 170px; background: url("../img/hero-car.svg") no-repeat center / contain; opacity: .95; pointer-events: none; } }
.page-head.hero > div { position: relative; }
.datecard { flex: 0 0 220px; display: grid; align-content: center; gap: 2px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.datecard b { font-size: 2.3rem; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.datecard small { color: var(--muted); font-size: .82rem; }
.datecard span { font-weight: 600; margin-top: 4px; }
@media (max-width: 720px) { .datecard { display: none; } }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.card-head .muted { margin: 2px 0 0; font-size: .9rem; }
.card-head h2 { margin: 0; }
.empty { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 6px 0; }
.empty .ic { width: 22px; height: 22px; }

/* --- KPI cards */
.kpis.big { margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.kpis.big a { display: flex; align-items: center; gap: 16px; padding: 18px; min-height: 104px; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.kpi-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; flex: none; background: var(--acc-soft); color: var(--acc); }
.kpi-ic .ic { width: 26px; height: 26px; }
.kpi-t { display: grid; gap: 0; min-width: 0; }
.kpi-t > span { color: var(--ink); font-weight: 600; font-size: .92rem; }
.kpis.big b { font-size: 2.1rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.kpi-t small { color: var(--muted); font-size: .78rem; }
.kpis.big .hot a { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); background: linear-gradient(135deg, var(--acc-soft), var(--bg) 70%); }
.kpis.big .bad .kpi-ic { background: var(--bad-soft); color: var(--bad); }
.kpis.big .bad b { color: var(--bad); }

/* --- dashboard grid */
.dash { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.dash-side { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
@media (min-width: 1100px) {
  .dash { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
  .dash-main { grid-column: 1; grid-row: 1; }
  .dash-side { grid-column: 2; grid-row: 1 / span 2; }
  .dash-chart { grid-column: 1; grid-row: 2; }
}

/* --- order table */
.otable { display: grid; }
.ot-head, .ot-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.3fr) minmax(110px, 1fr) minmax(120px, auto) 104px; gap: 12px; align-items: center; }
.otable:not(:has(.ot-cust)) .ot-head, .otable:not(:has(.ot-cust)) .ot-row { grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(120px, auto) 104px; }
.ot-head { padding: 0 10px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 650; }
.ot-row { padding: 12px 10px; border-bottom: 1px solid var(--line); text-decoration: none; border-radius: 10px; transition: background .12s; }
.ot-row:hover { background: var(--soft); }
.ot-row:last-child { border-bottom: 0; }
.ot-row.is-new { box-shadow: inset 3px 0 0 var(--acc); }
.ot-row > span { min-width: 0; }
.ot-cust, .ot-car { display: flex; align-items: center; gap: 10px; }
.ot-cust > span:last-child, .ot-car > span:last-child, .ot-svc, .ot-date { display: grid; min-width: 0; line-height: 1.3; }
.ot-row strong { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-row small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-date.late strong { color: var(--bad); }
.cartile { display: grid; place-items: center; width: 42px; height: 34px; border-radius: 9px; background: var(--soft); color: var(--muted); flex: none; }
.spill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 9px; font-size: .8rem; font-weight: 650; white-space: nowrap;
  background: color-mix(in srgb, var(--c, #94A3B8) 13%, var(--bg)); color: color-mix(in srgb, var(--c, #94A3B8) 72%, var(--ink)); border: 1px solid color-mix(in srgb, var(--c, #94A3B8) 32%, transparent); }
.spill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #94A3B8); }
@container (max-width: 600px) {
  .ot-head { display: none; }
  .ot-row, .otable:not(:has(.ot-cust)) .ot-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "car stage" "cust date" "svc date"; gap: 6px 10px; padding: 12px 6px; }
  .ot-car { grid-area: car; } .ot-stage { grid-area: stage; justify-self: end; } .ot-cust { grid-area: cust; } .ot-svc { grid-area: svc; } .ot-date { grid-area: date; text-align: right; align-self: end; }
  .ot-cust .avatar { display: none; }
  .ot-svc strong { font-weight: 500; color: var(--muted); font-size: .85rem; }
}

/* --- agenda, bars, chart */
.agenda { list-style: none; padding: 0; margin: 0; display: grid; }
.agenda a { display: grid; grid-template-columns: 58px 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; border-radius: 8px; }
.agenda li:last-child a { border-bottom: 0; }
.agenda a:hover { background: var(--soft); }
.ag-time { display: grid; line-height: 1.2; }
.ag-time b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.ag-time small, .ag-what small { color: var(--muted); font-size: .76rem; }
.ag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.ag-what { display: grid; min-width: 0; line-height: 1.25; }
.ag-what strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platechip { font: 700 .76rem var(--mono); letter-spacing: .03em; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--soft); white-space: nowrap; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bars a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; text-decoration: none; font-size: .9rem; }
.bars b { font-variant-numeric: tabular-nums; }
.bars i { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: linear-gradient(90deg, var(--c) var(--w), var(--soft) var(--w)); }
.chart-total { margin: 0; display: grid; text-align: right; line-height: 1.1; }
.chart-total b { font-size: 1.9rem; font-weight: 800; }
.chart-total small { color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 8px 0 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 41px, var(--line) 41px, var(--line) 42px); }
.chart span { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 3px; }
.chart i { display: block; width: 100%; height: max(var(--h), 3px); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #4C97FF, #006CFC); opacity: .9; transition: opacity .15s; }
.chart span:hover i { opacity: 1; box-shadow: 0 0 0 2px var(--acc-soft); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); }

/* --- dark theme */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1729; --page: #070D1A; --ink: #E5ECF6; --ink-2: #CBD5E1; --muted: #93A2BA; --soft: #15203A; --rule: #24324F;
  --line: #1B2944; --line-2: #2A3B5E; --acc: #2A86FF; --acc-soft: rgba(42,134,255,.15);
  --ok-soft: rgba(34,197,94,.14); --warn-soft: rgba(245,158,11,.15); --bad-soft: rgba(239,68,68,.16); --ok: #4ADE80; --warn: #FBBF24; --bad: #F87171;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --ring: 0 0 0 4px rgba(42,134,255,.28); --nav: #060B16; --nav-2: #0A1222;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0E1729; --page: #070D1A; --ink: #E5ECF6; --ink-2: #CBD5E1; --muted: #93A2BA; --soft: #15203A; --rule: #24324F;
    --line: #1B2944; --line-2: #2A3B5E; --acc: #2A86FF; --acc-soft: rgba(42,134,255,.15);
    --ok-soft: rgba(34,197,94,.14); --warn-soft: rgba(245,158,11,.15); --bad-soft: rgba(239,68,68,.16); --ok: #4ADE80; --warn: #FBBF24; --bad: #F87171;
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
    --ring: 0 0 0 4px rgba(42,134,255,.28); --nav: #060B16; --nav-2: #0A1222;
  }
}

/* dark theme: components with fixed colours */
:root[data-theme="dark"] .card { background: linear-gradient(180deg, rgba(42,134,255,.035), rgba(42,134,255,0) 45%), var(--bg); border-color: rgba(96,165,250,.13); }
:root[data-theme="dark"] .btn:hover { background: #16223D; border-color: #3A4D74; }
:root[data-theme="dark"] .btn.pri:hover { background: #1670F0; border-color: #1670F0; }
:root[data-theme="dark"] .btn.danger { border-color: rgba(248,113,113,.4); }
:root[data-theme="dark"] .opt:has(input:checked) { background: rgba(42,134,255,.08); }
:root[data-theme="dark"] .chip.req { color: #9CC3FF; border-color: rgba(96,165,250,.45); }
:root[data-theme="dark"] .svc-chip input:checked + span { color: #D6E7FF; }
:root[data-theme="dark"] .wz-issues { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.35); }
:root[data-theme="dark"] svg.sketch { background: #0A1324; }
:root[data-theme="dark"] svg.sketch .car { fill: #172440; stroke: #6B7FA3; }
:root[data-theme="dark"] svg.sketch .car2 { fill: #22355A; stroke: #4A5F87; }
:root[data-theme="dark"] svg.sketch .whl { fill: #050A14; stroke: #5B6E92; }
:root[data-theme="dark"] .col, :root[data-theme="dark"] .col.is-empty { background: #0A1324; }
:root[data-theme="dark"] .seg { background: #0A1324; }
:root[data-theme="dark"] .seg input:checked + span { background: #22355A; color: #fff; }
:root[data-theme="dark"] .confirm[open] > summary { color: var(--page); }
:root[data-theme="dark"] .hmenu[open] > summary { color: #0B1222; }
:root[data-theme="dark"] .savebar { background: linear-gradient(to top, var(--page) 72%, rgba(7,13,26,0)); }
:root[data-theme="dark"] .thumbbar { background: rgba(14,23,41,.9); }
:root[data-theme="dark"] .okseg label:last-child input:checked + span { background: rgba(239,68,68,.2); color: #FCA5A5; }
:root[data-theme="dark"] .kpis.big .hot a { background: linear-gradient(135deg, rgba(42,134,255,.16), var(--bg) 70%); }
:root[data-theme="dark"] .ot-row:hover, :root[data-theme="dark"] .agenda a:hover { background: #121D35; }
:root[data-theme="dark"] .fld input:hover, :root[data-theme="dark"] .fld select:hover, :root[data-theme="dark"] .fld textarea:hover { border-color: #3A4D74; }
:root[data-theme="dark"] .note.warn { color: var(--ink); }
:root[data-theme="dark"] img.sig-img { background: #fff; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .card { background: linear-gradient(180deg, rgba(42,134,255,.035), rgba(42,134,255,0) 45%), var(--bg); border-color: rgba(96,165,250,.13); }
  :root[data-theme="auto"] .btn:hover { background: #16223D; border-color: #3A4D74; }
  :root[data-theme="auto"] .btn.pri:hover { background: #1670F0; border-color: #1670F0; }
  :root[data-theme="auto"] .btn.danger { border-color: rgba(248,113,113,.4); }
  :root[data-theme="auto"] .opt:has(input:checked) { background: rgba(42,134,255,.08); }
  :root[data-theme="auto"] .chip.req { color: #9CC3FF; border-color: rgba(96,165,250,.45); }
  :root[data-theme="auto"] .svc-chip input:checked + span { color: #D6E7FF; }
  :root[data-theme="auto"] .wz-issues { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.35); }
  :root[data-theme="auto"] svg.sketch { background: #0A1324; }
  :root[data-theme="auto"] svg.sketch .car { fill: #172440; stroke: #6B7FA3; }
  :root[data-theme="auto"] svg.sketch .car2 { fill: #22355A; stroke: #4A5F87; }
  :root[data-theme="auto"] svg.sketch .whl { fill: #050A14; stroke: #5B6E92; }
  :root[data-theme="auto"] .col, :root[data-theme="auto"] .col.is-empty { background: #0A1324; }
  :root[data-theme="auto"] .seg { background: #0A1324; }
  :root[data-theme="auto"] .seg input:checked + span { background: #22355A; color: #fff; }
  :root[data-theme="auto"] .confirm[open] > summary { color: var(--page); }
  :root[data-theme="auto"] .hmenu[open] > summary { color: #0B1222; }
  :root[data-theme="auto"] .savebar { background: linear-gradient(to top, var(--page) 72%, rgba(7,13,26,0)); }
  :root[data-theme="auto"] .thumbbar { background: rgba(14,23,41,.9); }
  :root[data-theme="auto"] .okseg label:last-child input:checked + span { background: rgba(239,68,68,.2); color: #FCA5A5; }
  :root[data-theme="auto"] .kpis.big .hot a { background: linear-gradient(135deg, rgba(42,134,255,.16), var(--bg) 70%); }
  :root[data-theme="auto"] .ot-row:hover, :root[data-theme="auto"] .agenda a:hover { background: #121D35; }
  :root[data-theme="auto"] .fld input:hover, :root[data-theme="auto"] .fld select:hover, :root[data-theme="auto"] .fld textarea:hover { border-color: #3A4D74; }
  :root[data-theme="auto"] .note.warn { color: var(--ink); }
  :root[data-theme="auto"] img.sig-img { background: #fff; }
}

/* --- sign-in pages: dark design */
body.login { background: radial-gradient(900px 520px at 88% -8%, rgba(0,108,252,.30), transparent 62%), radial-gradient(760px 520px at -12% 112%, rgba(0,108,252,.18), transparent 60%), #050B18; color: #E2E8F0; }
body.login .top { background: transparent; box-shadow: none; border-bottom: 0; }
body.login .wrap { max-width: 540px; padding-top: 4vh; }
body.login .card { background: #0B1528; border: 1px solid rgba(96,165,250,.2); box-shadow: 0 30px 80px rgba(0,0,0,.45); color: #E2E8F0; }
body.login h1, body.login h2 { color: #F8FAFC; }
body.login .muted, body.login .hint, body.login small, body.login .crumbs { color: #94A3B8; }
body.login a { color: #7FB4FF; }
body.login .fld { margin-bottom: 20px; }
body.login .fld input, body.login .fld select, body.login .fld textarea { background: transparent; border: 1px solid rgba(148,163,184,.34); color: #F1F5F9; min-height: 56px; padding: 16px 16px; }
body.login .fld input::placeholder { color: #5D6E8C; }
body.login .fld input:hover { border-color: rgba(148,163,184,.6); }
body.login .fld input:focus { border-color: #3B8BFF; box-shadow: 0 0 0 4px rgba(0,108,252,.25); }
body.login .fld > span, body.login .fld input:placeholder-shown:not(:focus) + span { top: -9px; left: 12px; padding: 0 6px; font-size: .78rem; font-weight: 600; color: #CBD5E1; background: #0B1528; border-radius: 4px; }
body.login .fld input:-webkit-autofill { -webkit-text-fill-color: #F1F5F9; -webkit-box-shadow: 0 0 0 40px #0E1A31 inset; caret-color: #F1F5F9; }
body.login .btn { background: transparent; color: #E2E8F0; border-color: rgba(148,163,184,.35); box-shadow: none; }
body.login .btn:hover { background: rgba(255,255,255,.06); }
body.login .btn.pri { min-height: 56px; border: 0; color: #fff; background: linear-gradient(90deg, #0A64F0, #1E8BFF); box-shadow: 0 12px 32px rgba(0,108,252,.42); font-size: 1.02rem; }
body.login .btn.pri:hover { background: linear-gradient(90deg, #0D6EFF, #3B9BFF); }
body.login .alert { background: rgba(239,68,68,.12); color: #FECACA; }
body.login .note { background: rgba(255,255,255,.04); color: #E2E8F0; border-left-color: #3B8BFF; }
body.login .note.ok { background: rgba(34,197,94,.1); }
body.login .note.warn { background: rgba(245,158,11,.1); }
body.login .flash { background: rgba(34,197,94,.12); color: #D1FAE5; }
body.login .flash-err { background: rgba(239,68,68,.12); color: #FECACA; }
body.login .secret, body.login .codes { background: rgba(255,255,255,.06); color: #F1F5F9; }
body.login .check input { accent-color: #3B8BFF; }
body.login .foot { background: transparent; }
body.login .brand .brand-sub { color: #94A3B8; }
body.page-login .wrap { max-width: 1180px; }
.auth-split { display: grid; gap: 28px; align-items: start; }
.auth-main { display: grid; gap: 14px; max-width: 560px; }
.auth-title { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.auth-title span, .auth-aside h2 span { color: #2A8BFF; }
.auth-lead { color: #AEBBD0; font-size: 1.05rem; margin: 0 0 6px; max-width: 46ch; }
.auth-safe { display: flex; gap: 10px; align-items: center; color: #8C9AB3; font-size: .85rem; margin: 0; }
.auth-aside { display: none; }
@media (min-width: 980px) {
  .auth-split { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; padding-top: 3vh; }
  .auth-aside { display: grid; gap: 16px; padding: 40px; border-radius: 24px; border: 1px solid rgba(96,165,250,.22); background: radial-gradient(600px 300px at 100% 0%, rgba(0,108,252,.25), transparent 70%), linear-gradient(180deg, rgba(13,24,48,.9), rgba(8,15,30,.9)); box-shadow: 0 30px 80px rgba(0,0,0,.4); position: relative; overflow: hidden; }
  .auth-aside::after { content: ""; position: absolute; right: -180px; top: 30px; width: 520px; height: 160px; background: url("../img/hero-car.svg") no-repeat center / contain; opacity: .55; pointer-events: none; }
  .auth-aside h2 { font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; margin: 0; position: relative; }
  .auth-aside hr { width: 40px; border: 0; border-top: 2px solid #2A8BFF; margin: 8px 0; }
  .auth-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
  .auth-aside li { display: flex; gap: 16px; align-items: flex-start; }
  .auth-aside li > span:last-child { display: grid; gap: 2px; }
  .auth-aside small { color: #94A3B8; font-size: .9rem; }
  .fi { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; border: 1px solid rgba(59,139,255,.55); color: #4C9BFF; flex: none; background: rgba(0,108,252,.08); }
  .fi .ic { width: 24px; height: 24px; }
}
/* 0.6.1 fixes */
@media (min-width: 1100px) { body.has-shell { background: linear-gradient(90deg, var(--nav) 252px, var(--page) 252px); } }
@media (min-width: 900px) { .page-head.hero::before { right: 250px; top: -34px; width: 470px; height: 150px; } }
.dash-main, .dash-chart, main > .card { container-type: inline-size; }
@container (max-width: 820px) and (min-width: 601px) {
  .ot-head > :nth-last-child(3), .ot-svc { display: none; }
  .ot-head, .ot-row { grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.3fr) minmax(120px, auto) 104px; }
  .otable:not(:has(.ot-cust)) .ot-head, .otable:not(:has(.ot-cust)) .ot-row { grid-template-columns: minmax(150px, 1.4fr) minmax(120px, auto) 104px; }
}
@media (max-width: 640px) {
  .kpis.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis.big a { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; min-height: 0; }
  .kpi-ic { width: 40px; height: 40px; border-radius: 11px; }
  .kpi-ic .ic { width: 20px; height: 20px; }
  .kpis.big b { font-size: 1.7rem; }
  .kpi-t small { display: none; }
}
.hm-planned > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 550; color: var(--muted); }
.hm-planned > summary::-webkit-details-marker { display: none; }
.hm-planned a { padding-left: 44px !important; min-height: 38px !important; font-weight: 500 !important; color: var(--muted); }

/* --- 0.6.1 wizard design */
.wizard { max-width: 1440px; padding-bottom: 90px; }
.wz-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 16px; align-items: start; }
.wz-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.wz-head .lead { font-weight: 400; color: var(--muted); margin: 0; }
.wz-car { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow); min-width: 0; }
.wz-car > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.wz-car strong { font-size: 1rem; }
.wz-car .plate { font-size: 1.05rem; }
.wz-car small { color: var(--muted); }
.wz-car .spill { justify-self: start; margin-top: 4px; }
.cartile.big { width: 64px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, var(--acc-soft), var(--soft)); color: var(--acc); }
.cartile.big .ic { width: 30px; height: 30px; }
.wz-discard { align-self: flex-start; }
.wz-discard .confirm-panel { left: auto; right: 0; }
@media (min-width: 900px) { .wz-head { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); } }
.wz-steps { display: flex; align-items: center; gap: 2px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow); overflow-x: auto; }
.wz-steps button { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 8px; border: 0; border-radius: 12px; background: none; box-shadow: none; color: var(--ink); font: inherit; font-weight: 550; font-size: .9rem; cursor: pointer; }
.wz-steps button:hover { background: var(--soft); }
.wz-steps [aria-current] { border: 0; box-shadow: none; }
.wz-steps .n { width: 36px; height: 36px; border: 2px solid var(--line-2); background: var(--bg); color: var(--muted); font-weight: 700; font-size: .9rem; }
.wz-steps .n .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.wz-steps .st-done .n { background: var(--acc); border-color: var(--acc); color: #fff; }
.wz-steps .st-cur .n, .wz-steps [aria-current] .n { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 0 0 4px var(--acc-soft); }
.wz-steps .st-cur .t { color: var(--acc); font-weight: 750; }
.wz-steps .st-warn .n { border-color: var(--warn); color: var(--warn); }
.wz-steps .st-todo .t { color: var(--muted); }
.wz-sep { color: var(--line-2); display: grid; place-items: center; flex: none; }
.wz-sep .ic { width: 16px; height: 16px; }
@media (max-width: 599px) { .wz-steps button:not([aria-current]) .t { display: none; } .wz-sep { display: none; } .wz-steps { gap: 6px; } }
.wz-info { display: none; }
@media (min-width: 1000px) { .wz-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; } }
.card.mini { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.card.mini h3 { margin: 0 0 2px; font-size: .92rem; }
.mini-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); flex: none; }
.mini-main { margin: 0 0 8px; font-weight: 700; }
.minidl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: 0; font-size: .85rem; }
.minidl dt { color: var(--muted); }
.minidl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--soft); font-size: .76rem; font-weight: 650; }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.svc-done { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); font-size: .88rem; }
.svc-done li { display: flex; gap: 8px; align-items: center; }
.svc-done .ic { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 3; }
.wz-card h2 { display: flex; align-items: center; gap: 10px; }
.wz-card h2 .ic { color: var(--acc); width: 22px; height: 22px; }
.wz-cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.wz-cols > div { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1100px) { .wz-cols { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); } }
.wz-colside .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.wz-body > .card + .card { margin-top: 16px; }

/* damage marking */
.dmg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.sev-legend { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; font-size: .82rem; }
.sev { display: inline-flex; align-items: center; gap: 6px; }
.sev i { width: 10px; height: 10px; border-radius: 50%; background: #F59E0B; }
.sev-leicht i { background: #16A34A; } .sev-stark i { background: #DC2626; }
.sketches { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.sk { margin: 0; padding: 8px 8px 6px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.sk figcaption { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.sk .cnt { font-style: normal; background: #DC2626; color: #fff; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
svg.sketch { background: var(--bg); max-height: 170px; }
svg.sketch .rim { fill: #94A3B8; }
svg.sketch .mk.sev-leicht circle:not(.hit) { fill: #16A34A; }
svg.sketch .mk.sev-mittel circle:not(.hit) { fill: #F59E0B; }
svg.sketch .mk.sev-stark circle:not(.hit) { fill: #DC2626; }
.dmg-table { display: grid; margin: 14px 0; border-top: 1px solid var(--line); }
.dt-head, .dt-row { display: grid; grid-template-columns: 30px minmax(80px, 110px) minmax(96px, 1fr) auto minmax(120px, 1.4fr) 44px; gap: 10px; align-items: center; }
.dt-row { grid-template-areas: "n pos type sev note del" ". photo photo photo photo photo"; row-gap: 8px; }
.dt-row .dmgn { grid-area: n; } .dt-row .dt-pos { grid-area: pos; } .dt-row > .fld:not(.grow) { grid-area: type; } .dt-row .sevpick { grid-area: sev; } .dt-row .fld.grow { grid-area: note; } .dt-row > .btn { grid-area: del; } .dt-row .dt-photo { grid-area: photo; }
.dt-head { padding: 8px 0; color: var(--muted); font-size: .78rem; font-weight: 650; border-bottom: 1px solid var(--line); }
.dt-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.dt-row .fld { margin: 0; }
.dt-pos { font-size: .88rem; font-weight: 600; }
.dmgn { width: 28px; height: 28px; font-size: .8rem; background: #F59E0B; }
.dmgn.sev-leicht { background: #16A34A; } .dmgn.sev-stark { background: #DC2626; }
.sevpick { display: inline-flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--soft); border: 1px solid var(--line); }
.sevpick label { position: relative; cursor: pointer; }
.sevpick input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.sevpick span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.sevpick input:checked + span { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line-2); }
.sevpick input:focus-visible + span { outline: 2px solid var(--acc); }
.btn.icon.ghost { color: var(--muted); border-color: var(--line); min-width: 40px; min-height: 40px; padding: 8px; }
.btn.icon.ghost:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
@media (max-width: 760px) {
  .dt-head { display: none; }
  .dt-row { grid-template-columns: 30px minmax(0, 1fr) 44px; grid-template-areas: "n pos del" "type type type" "sev sev sev" "note note note" "photo photo photo"; gap: 8px; }
  .dt-row .dmgn { grid-area: n; } .dt-row .dt-pos { grid-area: pos; } .dt-row > .fld:not(.grow) { grid-area: type; } .dt-row .sevpick { grid-area: sev; justify-self: start; } .dt-row .fld.grow { grid-area: note; } .dt-row > .btn { grid-area: del; }
}

/* photo checklist */
.checklist ul { list-style: none; padding: 0; margin: 0; display: grid; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li > span:nth-child(2) { flex: 1; }
.cl-state { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.cl-state .ic { width: 14px; height: 14px; stroke-width: 3; }
.checklist .is-done .cl-state { background: var(--ok); border-color: var(--ok); color: #fff; }
.cl-cam { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--acc); cursor: pointer; flex: none; transition: background .15s; }
.cl-cam:hover { background: var(--acc-soft); border-color: var(--acc); }
.photo-tools .btn .ic { width: 18px; height: 18px; }

/* bottom bar */
.wz-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: block; padding: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(12,20,36,.08); }
.wz-bar-in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.wz-bar .btn { min-width: 0; }
.wz-bar .btn.pri { margin-left: auto; min-width: 150px; }
.wz-count { color: var(--muted); font-size: .85rem; margin: 0 auto; }
@media (min-width: 1100px) { body.has-shell .wz-bar { left: 252px; } .wz-bar-in { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 599px) { .wz-keep span, .wz-count { display: none; } .wz-bar .btn.pri { flex: 1; } }
:root[data-theme="dark"] .wz-bar { box-shadow: 0 -10px 30px rgba(0,0,0,.35); }
.f { min-width: 0; } .f-hint { margin: -8px 0 12px; font-size: .82rem; }
.sketches { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); } @media (min-width: 700px) { .sketches { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
body:not(.has-shell) { display: flex; flex-direction: column; min-height: 100vh; } body:not(.has-shell) > main { flex: 1 0 auto; width: 100%; }

/* ============================================================ 0.7.0 customer portal */
.actions.tight { margin: 0; gap: 8px; }
.order-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.linkrow { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.linkrow > div:last-child { flex: 1 1 260px; min-width: 0; }
.linkrow .qr { width: 150px; }
.card.again { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.card.again > div { display: grid; gap: 2px; flex: 1 1 260px; min-width: 0; }
.card.again small { color: var(--muted); }
.card.again .actions { margin: 0; }
.mini-steps { list-style: none; display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; align-self: center; }
.mini-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .88rem; }
.mini-steps li + li::before { content: ""; width: 28px; height: 2px; background: var(--line-2); border-radius: 2px; }
.mini-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); font-size: .82rem; }
.mini-steps .cur { color: var(--acc); }
.mini-steps .cur span, .mini-steps .done span { background: var(--acc); border-color: var(--acc); color: #fff; }
.minidl.wide { grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); font-size: .92rem; gap: 6px 16px; }
.file > span { display: flex; align-items: center; gap: 8px; }
textarea.mono { font-family: var(--mono); font-size: .9rem; }
.bulk-table { display: grid; }
.bt-head, .bt-row { display: grid; grid-template-columns: 28px 44px minmax(160px, 1.3fr) minmax(90px, .7fr) minmax(120px, 1fr) minmax(90px, .8fr) minmax(170px, 1.4fr); gap: 10px; align-items: center; }
.bt-head { padding: 0 8px 8px; color: var(--muted); font-size: .78rem; font-weight: 650; border-bottom: 1px solid var(--line); }
.bt-row { padding: 10px 8px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .9rem; border-radius: 8px; }
.bt-row:hover { background: var(--soft); }
.bt-row.is-bad { background: color-mix(in srgb, var(--bad-soft) 55%, transparent); cursor: default; }
.bt-row input { width: 20px; height: 20px; accent-color: var(--acc); }
.bt-row > span { min-width: 0; overflow-wrap: anywhere; }
.bt-check { display: grid; gap: 2px; }
.bt-check em { font-style: normal; font-size: .8rem; font-weight: 600; display: flex; gap: 4px; align-items: center; }
.bt-check em .ic { width: 15px; height: 15px; }
.bt-check .bad { color: var(--bad); } .bt-check .warn { color: #B45309; } .bt-check .ok { color: var(--ok); }
@container (max-width: 760px) {
  .bt-head { display: none; }
  .bt-row { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "c vin line" "c plate plate" "c car car" "c refs refs" "c chk chk"; gap: 2px 10px; }
  .bt-row > :nth-child(1) { grid-area: c; align-self: start; } .bt-row > :nth-child(2) { grid-area: line; } .bt-row > :nth-child(3) { grid-area: vin; font-weight: 700; }
  .bt-row > :nth-child(4) { grid-area: plate; } .bt-row > :nth-child(5) { grid-area: car; } .bt-row > :nth-child(6) { grid-area: refs; } .bt-row > :nth-child(7) { grid-area: chk; }
}

/* status page (customer's customer) */
body.status-page { background: var(--page); }
body.status-page .wrap { max-width: 640px; padding-top: 24px; }
.status-card { border-top: 6px solid var(--brand, var(--acc)); }
.st-brand { display: flex; align-items: center; min-height: 48px; margin: 0 0 18px; }
.st-logo { max-height: 52px; max-width: 220px; width: auto; height: auto; }
.st-name { font-size: 1.3rem; color: var(--brand, var(--ink)); }
.st-car { font-size: 1.6rem; margin: 0 0 2px; }
.st-car .plate { font-size: 1.6rem; }
.st-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0; }
.spill.big { font-size: 1rem; padding: 8px 14px; border-radius: 12px; }
.spill.big i { width: 10px; height: 10px; }
.st-path { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 0; }
.st-path li { display: flex; align-items: center; gap: 12px; padding: 8px 0; position: relative; color: var(--muted); }
.st-path li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 36px; bottom: -8px; width: 2px; background: var(--line-2); }
.st-path li.is-done::after { background: var(--c); }
.st-path .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); flex: none; z-index: 1; }
.st-path .dot .ic { width: 15px; height: 15px; stroke-width: 3; }
.st-path .is-done { color: var(--ink); }
.st-path .is-done .dot { background: var(--c); border-color: var(--c); color: #fff; }
.st-path .is-current { color: var(--ink); font-weight: 750; }
.st-path .is-current .dot { border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); background: color-mix(in srgb, var(--c) 30%, var(--bg)); }
.st-dates { margin: 0 0 18px; }
.st-docs { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.st-docs a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.st-docs a:hover { border-color: var(--brand, var(--acc)); }
.st-docs a > span { display: grid; flex: 1; }
.st-docs small { color: var(--muted); }
.st-docs .ic:first-child { color: var(--brand, var(--acc)); }
.st-foot { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.st-foot strong { color: var(--ink); }
.st-foot a { color: var(--brand, var(--acc)); }
body.status-page .foot { background: transparent; color: var(--muted); justify-content: center; }
body.status-page .foot-logo { filter: grayscale(1) brightness(.4); opacity: .5; }

/* ============================================================ 0.7.0 forms like the design: label above the field, compact */
.fld { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; margin: 0 0 14px; }
.fld > span, .fld input:placeholder-shown:not(:focus) + span { position: static; top: auto; left: auto; padding: 0; background: none; font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); transition: color .15s; white-space: normal; max-width: none; }
.fld input, .fld select, .fld textarea { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background-color: var(--bg); font-size: .95rem; box-shadow: none; }
.fld.small input, .fld.small select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.fld textarea { min-height: 96px; line-height: 1.45; }
.fld select { padding-right: 36px; background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; }
.fld:focus-within > span { color: var(--acc); }
.fld.has-err > span { color: var(--bad); }
.fld input::placeholder, .fld textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
@media (min-width: 900px) { .fld input, .fld select { min-height: 42px; } .fld.small input, .fld.small select { min-height: 40px; } }
.wizard .fld > span { white-space: normal; overflow: visible; max-width: none; }
.ferr { margin: -8px 0 12px; }
.f-hint { margin: -8px 0 12px; }
.vin-row { align-items: flex-end; }
.vin-row .fld { margin-bottom: 4px; }
.vin-row .scan { min-height: 42px; margin-bottom: 4px; }
.filters { align-items: flex-end; }
.filters .btn, .inline-form .btn { min-height: 42px; }
.inline-form { align-items: flex-end; }
.check.compact { min-height: 42px; }
.colorfld { align-items: flex-end; }
.colorfld input[type=color] { height: 42px; }
.dt-row .fld > span, .dmg-table .fld > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ph-row { align-items: flex-end; }
.card h2 > .ic:first-child, .card-head h2 > .ic:first-child { box-sizing: content-box; width: 18px; height: 18px; padding: 7px; border-radius: 9px; background: var(--acc-soft); color: var(--acc); }
/* sign-in pages keep the label on the border */
body.login .fld { display: block; position: relative; }
body.login .fld > span, body.login .fld input:placeholder-shown:not(:focus) + span { position: absolute; }
body.login .fld input { min-height: 56px; padding: 16px; }
.wz-head h1 { display: flex; align-items: center; gap: 12px; }
.stepno { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 11px; background: linear-gradient(135deg, #2A86FF, #0057D9); color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: 0; box-shadow: 0 6px 16px rgba(0,108,252,.3); flex: none; }
.wz-steps { background: transparent; border-color: transparent; box-shadow: none; padding: 4px 0; }
.wz-steps button:hover { background: var(--bg); }
/* order form: card grid like the design */
@media (min-width: 1100px) {
  .order-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .order-form > .of-full, .order-form > .of-customer, .order-form > .of-services, .order-form > .savebar, .order-form > .alert, .order-form > .note { grid-column: 1 / -1; }
  .order-form > .of-vehicle { grid-column: 1 / -1; }
}
.order-form .savebar { display: flex; justify-content: flex-end; }
@media (min-width: 900px) { .order-form .savebar .btn { min-width: 280px; } }
/* service tiles */
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.svc-chip span { position: relative; display: flex; align-items: center; min-height: 52px; height: 100%; padding: 10px 12px 10px 44px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 600; font-size: .9rem; line-height: 1.25; background: var(--bg); }
.svc-chip span::before, .svc-chip input:checked + span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--line-2); border-radius: 6px; background: var(--bg); color: transparent; }
.svc-chip input:checked + span { background: var(--acc-soft); border-color: var(--acc); color: var(--ink); box-shadow: 0 0 0 1px var(--acc) inset; }
.svc-chip input:checked + span::before { background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--acc); }
.svc-chip:hover span { border-color: #94A3B8; }
.svc legend { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
/* radio choice cards */
.opt { border: 1px solid var(--line-2); border-radius: 12px; align-items: center; min-height: 52px; }
.opt input { accent-color: var(--acc); }
.card { container-type: inline-size; }

/* ============================================================ 0.8.0 communication */
.top.has-shell .top-tools { display: flex; gap: 6px; }
@media (max-width: 1099px) { .top.has-shell .usermenu, .top.has-shell .top-cta { display: none; } .top.has-shell .brand { flex: 1 1 auto; } }
.notif { position: relative; }
.notif > summary { list-style: none; cursor: pointer; }
.notif > summary::-webkit-details-marker { display: none; }
.notif[open] > summary { background: rgba(255,255,255,.1); }
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(360px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto; padding: 8px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
@media (max-width: 1099px) { .notif-panel { position: fixed; right: 12px; left: 12px; top: 72px; width: auto; } }
.np-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); }
.np-head small { color: var(--muted); }
.np-item { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; text-decoration: none; }
.np-item:hover { background: var(--soft); }
.np-item > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.np-item strong { font-size: .9rem; }
.np-item small { color: var(--muted); font-weight: 400; }
.np-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); flex: none; }
.np-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: #fff; font: 700 .72rem/22px var(--font); text-align: center; }
.msgc { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--muted); }
.msgc .ic { width: 14px; height: 14px; }
.msgc.unread { color: var(--acc); }
.agenda.msgs a { grid-template-columns: 34px minmax(0, 1fr) auto; }
.ag-time.right { text-align: right; justify-items: end; }
.dotn { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); display: inline-block; margin-top: 4px; }
/* thread */
.thread { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; }
.msg.same { margin-left: auto; flex-direction: row-reverse; }
.msg .bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--soft); border: 1px solid var(--line); min-width: 0; }
.msg.same .bubble { border-radius: 16px 16px 4px 16px; background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 25%, var(--line)); }
.msg.internal .bubble { background: #FFF7E6; border-color: #F5D08A; border-style: dashed; }
.msg.unread .bubble { box-shadow: 0 0 0 2px var(--acc); }
.msg-meta { margin: 0 0 2px; font-size: .78rem; color: var(--muted); }
.msg-meta strong { color: var(--ink); }
.msg-body { margin: 0; overflow-wrap: anywhere; }
.msg-form .fld { margin-bottom: 8px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.msg-actions .btn { margin-left: auto; }
:root[data-theme="dark"] .msg.internal .bubble { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.4); }
/* settings: rules, switches */
.rules { display: grid; margin: 0 0 18px; }
.rl-head, .rl-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 64px 64px; gap: 12px; align-items: center; }
.rl-head { padding: 0 0 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 650; }
.rl-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rl-row > span:first-child { display: grid; }
.rl-row small { color: var(--muted); font-size: .78rem; }
@media (max-width: 640px) { .rl-head > :nth-child(2), .rl-row > :nth-child(2) { display: none; } .rl-head, .rl-row { grid-template-columns: minmax(0, 1fr) 56px 56px; } }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span + i { background: var(--acc); }
.switch input:checked + span + i::after { transform: translateX(18px); }
.switch input:disabled + span + i { opacity: .4; }
.switch input:focus-visible + span + i { box-shadow: var(--ring); }
.grid3 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.check.inline { display: inline-flex; min-height: 0; margin: 0 0 0 8px; }
.svc-list.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-bottom: 12px; }
.textlist .more { margin-top: 0; }
.textlist form { padding: 10px 0 4px; }
@media (max-width: 599px) { .top.has-shell .brand-sub { display: none; } }

/* ============================================================ 0.9.0 settings screens */
.listcard { padding: 0; }
.listcard > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; }
.listcard > summary::-webkit-details-marker { display: none; }
.listcard > summary > span { display: grid; }
.listcard > summary small { color: var(--muted); }
.listcard[open] > summary .ic { transform: rotate(180deg); }
.listcard > form { padding: 0 22px 18px; }
.lrows { display: grid; gap: 6px; }
.lr-head, .lr { display: grid; grid-template-columns: 80px minmax(0, 1fr) 70px; gap: 10px; align-items: center; }
.lr-head { color: var(--muted); font-size: .78rem; font-weight: 650; }
.lr .fld { margin: 0; }
.lr.new input[type=text] { border-style: dashed; }
.strows { display: grid; gap: 4px; }
.sr-head, .sr-row { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(150px, 1fr) 110px 110px; gap: 12px; align-items: center; }
.sr-head { color: var(--muted); font-size: .78rem; font-weight: 650; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sr-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sr-row .fld, .sr-row .colorfld { margin: 0; }
.sr-row .ferr { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) { .sr-head { display: none; } .sr-row { grid-template-columns: 60px minmax(0, 1fr); } .sr-row .colorfld, .sr-row .switch { grid-column: 2; } }
.typereq { display: grid; gap: 10px; margin-bottom: 8px; }
.typereq .seg { max-width: 320px; margin-bottom: 10px; }
.ref-row:has(input[value=inherit]:checked) .tr-own { opacity: .4; pointer-events: none; }
.auditlist { list-style: none; padding: 0; margin: 0; display: grid; }
.auditlist li { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(120px, 200px); gap: 14px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.al-time { display: grid; line-height: 1.2; }
.al-time small { color: var(--muted); }
.al-what { display: grid; gap: 2px; min-width: 0; }
.al-ent { font-size: .9rem; }
.al-detail { color: var(--muted); overflow-wrap: anywhere; }
.al-who { display: flex; gap: 8px; align-items: center; min-width: 0; }
.al-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auditlist .al-settings .al-what strong::before, .auditlist .al-orders .al-what strong::before, .auditlist .al-users .al-what strong::before, .auditlist .al-customers .al-what strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; background: #94A3B8; }
.auditlist .al-orders .al-what strong::before { background: var(--acc); }
.auditlist .al-settings .al-what strong::before { background: #F59E0B; }
.auditlist .al-users .al-what strong::before { background: #8B5CF6; }
.auditlist .al-customers .al-what strong::before { background: #14B8A6; }
@media (max-width: 640px) { .auditlist li { grid-template-columns: 70px minmax(0, 1fr); } .al-who { grid-column: 2; } }
.implist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.implist li { display: grid; padding: 6px 10px; border-radius: 8px; background: var(--soft); }
.implist li small { color: var(--muted); }
.implist .is-new { background: var(--ok-soft); }
.implist .is-bad { background: var(--bad-soft); }
.aibox { white-space: pre-wrap; font: .82rem/1.5 var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; max-height: 360px; }

/* ---- 0.10.0 takeover from 5.4, ID document photos ---- */
body.has-shell .wrap { align-content: start; }   /* short pages: content stays at the top */
.steps-text { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.steps-text code, .card p code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; overflow-wrap: anywhere; }
.progress-list { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 10px 14px; align-items: center; margin: 0 0 16px; }
.progress-list dt { color: var(--muted); font-size: 14px; }
.progress-list dd { margin: 0; display: flex; gap: 10px; align-items: center; min-width: 0; }
.progress-list progress { flex: 1; min-width: 0; height: 10px; border: 0; border-radius: 99px; background: var(--soft); overflow: hidden; appearance: none; -webkit-appearance: none; }
.progress-list progress::-webkit-progress-bar { background: var(--soft); border-radius: 99px; }
.progress-list progress::-webkit-progress-value { background: var(--acc); border-radius: 99px; }
.progress-list progress::-moz-progress-bar { background: var(--acc); border-radius: 99px; }
.progress-list span { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.import-opts .grid3, .import-opts .grid2 { margin-bottom: 4px; }
.docphotos { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 12px; }
.chip.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ink); font-weight: 600; }
.chip.warn { border-color: var(--warn); background: var(--warn-soft); color: var(--ink); font-weight: 600; }

/* ---- 1.0.0-rc.2 wizard start: search fields (combobox), picked records, side drawers ---- */
.wz-start .wz-card h2 { display: flex; align-items: center; gap: 8px; }
.combo { position: relative; }
.combo .fld { margin-bottom: 6px; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 2px); margin: 0; padding: 6px; list-style: none; max-height: min(420px, 60vh); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 18px 40px rgba(12,20,36,.16); }
.combo-list [role=option] { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.combo-list [role=option]:hover, .combo-list [role=option].is-active { background: var(--acc-soft); }
.combo-list .opt-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.combo-list .opt-main strong, .combo-list .opt-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-list .opt-main small { color: var(--muted); font-size: .8125rem; }
.combo-list .plate { flex: none; min-width: 92px; padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--bg); font-size: .85rem; text-align: center; }
.combo-list .opt-go { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--acc); font-weight: 650; font-size: .85rem; }
.combo-list .opt-new { color: var(--acc); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.combo-list .opt-new .ic { width: 22px; height: 22px; flex: none; }
.combo-head { padding: 8px 10px 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.combo-empty { padding: 12px 10px; color: var(--muted); }
.combo-new { margin: 0; }
.picked { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 0 12px; border: 1px solid var(--acc); border-radius: var(--r-lg); background: var(--acc-soft); min-width: 0; }
.picked .pk-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.picked .pk-main > * { overflow: hidden; text-overflow: ellipsis; }
.picked .pk-main small { color: var(--muted); }
.picked .pk-main .mono { font-size: .85rem; overflow-wrap: anywhere; }
.picked .pk-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.picked .cartile { background: var(--bg); color: var(--acc); }
@media (max-width: 560px) { .picked { flex-wrap: wrap; } .picked .pk-acts { width: 100%; justify-content: flex-start; } }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pick-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; min-height: 52px; }
.pick-list a:hover { border-color: var(--acc); background: var(--acc-soft); }
.pick-list .plate { flex: none; min-width: 84px; padding: 2px 6px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: .8rem; text-align: center; background: var(--bg); }
.pick-list .pl-main { display: grid; min-width: 0; flex: 1; }
.pick-list .pl-main strong, .pick-list .pl-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-list .pl-main small { color: var(--muted); font-size: .8rem; }
.pick-list .pl-go { color: var(--acc); flex: none; }
.side-list h2 .cnt { margin-left: auto; }
.zip-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 12px; }
.btn.is-busy { opacity: .7; cursor: progress; }
#st-error .btn { margin: 6px 6px 0 0; }

/* side drawer (from the right) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(12,20,36,.42); opacity: 0; transition: opacity .2s ease; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; z-index: 1001; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg); color: var(--ink); box-shadow: -18px 0 48px rgba(12,20,36,.22);
  transform: translateX(104%); transition: transform .22s ease; display: flex; }
.drawer.is-open { transform: none; }
.drawer-in { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; overscroll-behavior: contain; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--page); }
html.drawer-open, html.drawer-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop { transition: none; } }
:root[data-theme="dark"] .combo-list, :root[data-theme="dark"] .drawer { box-shadow: 0 18px 40px rgba(0,0,0,.5); }
:root[data-theme="dark"] .combo-list .plate, :root[data-theme="dark"] .pick-list .plate { border-color: var(--muted); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .combo-list, :root[data-theme="auto"] .drawer { box-shadow: 0 18px 40px rgba(0,0,0,.5); }
  :root[data-theme="auto"] .combo-list .plate, :root[data-theme="auto"] .pick-list .plate { border-color: var(--muted); }
}
.pick-more { margin-top: 6px; }
.pick-more summary { cursor: pointer; color: var(--acc); font-weight: 650; font-size: .9rem; padding: 6px 2px; }
.pick-more .pick-list { margin-top: 6px; }
.wz-start .svc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-start .svc-chip { flex: 0 1 auto; max-width: 100%; }
@media (max-width: 1099px) {
  .wz-start .wz-colside { order: -1; }
  .wz-start .side-list.is-empty { display: none; }
}
.combo.inline .combo-list { position: static; padding: 0; margin-top: 4px; border: 0; box-shadow: none; max-height: none; background: transparent; display: grid; gap: 6px; }
.combo.inline .combo-list [role=option] { border: 1px solid var(--line); background: var(--bg); }
.combo.inline .combo-list .opt-new { border-style: dashed; border-radius: 10px; margin-top: 2px; }
.picker-card .combo-new { display: none; }

/* ---------------------------------------------------------------- 1.0.0-rc.3: order data as in 5.4 (partials/order-details.php) */
.od { display: contents; }
.od .card h2 { display: flex; align-items: center; gap: 8px; }
.od-faults .chips { margin: 0 0 12px; }
.od-faults .chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; background: var(--soft); border-color: var(--line-2); }
.chip-x { border: 0; background: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted); }
.chip-x:hover, .chip-x:focus-visible { background: var(--line); color: var(--ink); }
.pos-table { display: grid; gap: 8px; margin: 0 0 8px; }
.pos-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px) 120px 44px; gap: 8px; align-items: start; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.pos-row[data-sid] { border-left: 3px solid var(--acc); }
.pos-row .fld { margin: 0; }
.pos-row .btn.icon { margin-top: 6px; }
.od[data-prices="0"] .pos-row { grid-template-columns: minmax(0, 1fr) minmax(150px, 210px) 44px; }
@container (max-width: 560px) {
  .pos-row, .od[data-prices="0"] .pos-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .pos-row .pos-desc { grid-column: 1 / -1; }
  .pos-row .pos-cat { grid-column: 1; }
  .pos-row .pos-amt { grid-column: 1; }
  .pos-row .btn.icon { grid-column: 2; grid-row: 2; }
}
.pos-sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--soft); max-width: 460px; margin-left: auto; }
.pos-sum dt { color: var(--muted); }
.pos-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pos-sum .sum-total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line-2); padding-top: 6px; }
.pos-sum .sum-bad { color: var(--err, #B42318); }
.od-holder details > summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; min-height: 44px; }
.od-holder details[open] > summary { margin-bottom: 12px; }
.od .choice legend { font-size: .95rem; }
.od-extra { border-left: 3px solid var(--acc); }
/* order page: details, positions, photos added later */
.kv-sections { display: grid; gap: 16px; }
.kv-sections h3 { margin: 0 0 6px; font-size: .95rem; }
.kv-sections dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 4px 12px; margin: 0; }
.kv-sections dt { color: var(--muted); }
.kv-sections dd { margin: 0; }
.photo-pairs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); list-style: none; padding: 0; margin: 0 0 12px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); }
.photo-pair figure, .photo-one figure { margin: 0; }
.photo-pair img, .photo-one img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r) - 4px); display: block; }
.photo-pair figcaption, .photo-one figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.photo-pair > p { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.photo-ones { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); list-style: none; padding: 0; margin: 0 0 12px; }
.badge-cancel { background: var(--soft); color: var(--muted); border: 1px dashed var(--line-2); }
.svc-more { flex: 1 1 100%; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); align-items: center; }
.svc-more .fld { margin: 0; }
.svc-rows > li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.review-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); }
.review-list li .fld { margin: 0; flex: 1 1 220px; }
.review-list small { color: var(--muted); flex: 1 1 100%; }
.make-list { columns: 3 220px; list-style: none; padding: 0; margin: 0; }
.make-list li { break-inside: avoid; padding: 4px 0; }
.svc-others { margin-top: 8px; }
.svc-others > summary { cursor: pointer; color: var(--acc); font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.svc-others[open] > summary { margin-bottom: 8px; }
/* intake wizard (5.4): hints, documents, serial photos */
.wz-hints { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 6px; }
.wz-hints li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: var(--r); background: var(--warn-soft); color: var(--ink); font-size: .92rem; }
.wz-hints .ic { color: var(--warn); flex: none; margin-top: 2px; }
.checkrow .adopt { min-height: 40px; margin-top: 4px; }
.doc-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 10px; }
.cam-ov { position: fixed; inset: 0; z-index: 2000; background: #000; display: flex; flex-direction: column; }
.cam-ov video { flex: 1; width: 100%; min-height: 0; object-fit: contain; background: #000; }
.cam-ov.flash video { opacity: .4; }
.cam-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)); background: #000; }
.cam-shot { width: 72px; height: 72px; border-radius: 50%; border: 5px solid #fff; background: rgba(255, 255, 255, .25); cursor: pointer; }
.cam-shot:active { background: #fff; }
.brand .logo-own { height: 28px; width: auto; max-width: 190px; object-fit: contain; }
.logo-current.dark { background: #0C1424; padding: 12px; border-radius: var(--r); display: inline-block; }

/* home page "/" (1.0.0-rc.5): educational project */
body.page-home .wrap { max-width: 1080px; }
.home { display: grid; gap: 28px; padding-top: 3vh; }
.home-hero { display: grid; gap: 14px; max-width: 760px; }
.home-cta { margin: 6px 0 0; }
.home-cta .btn.pri { display: inline-flex; gap: 10px; align-items: center; padding: 0 28px; }
.home-notice { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-color: rgba(245,158,11,.55) !important; background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(245,158,11,.04)), #0B1528 !important; }
.home-notice h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
.home-notice p { margin: 0 0 10px; color: #CBD5E1; }
.home-notice ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #CBD5E1; }
.home-notice .fi, .home-grid .fi { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; flex: none; }
.home-notice .fi { border: 1px solid rgba(245,158,11,.6); color: #FBBF24; background: rgba(245,158,11,.1); }
.home-grid h2 { margin: 0 0 14px; font-size: 1.2rem; }
.home-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.home-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid rgba(96,165,250,.2); background: rgba(11,21,40,.7); }
.home-grid li > span:last-child { display: grid; gap: 4px; }
.home-grid small { color: #94A3B8; }
.home-grid .fi { border: 1px solid rgba(59,139,255,.55); color: #4C9BFF; background: rgba(0,108,252,.08); }
.home .fi .ic, .home-notice .fi .ic { width: 22px; height: 22px; }
.foot-edu { font-size: .78rem; opacity: .85; }
@media (max-width: 599px) { .home-notice { flex-direction: column; padding: 18px; } }

/* read-only damage sketch with the list of its points (protocol page) */
.sketches.ro svg.sketch { cursor: default; touch-action: auto; height: clamp(84px, 22vw, 130px); }
.sketches.ro .sk { display: flex; flex-direction: column; justify-content: space-between; }
.sketches.ro .mk { cursor: help; }
.dmg-head .dmg-title { margin: 14px 0 8px; font-size: .95rem; }
.dmg-list { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.dmg-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.dmg-list li > span { padding-top: 4px; }
.dmg-list small { display: block; color: var(--muted); margin-top: 2px; font-size: .86rem; }
.sketches.ro .mk text { font-size: 15px; }
@media (max-width: 699px) { .sketches.ro .sk-links, .sketches.ro .sk-rechts, .sketches.ro .sk-oben, .sketches.ro .sk-unten { grid-column: 1 / -1; } }

/* home page (1.0.0-rc.8): hero after the flows.autos key visual, install as web app */
.hh { position: relative; overflow: hidden; border-radius: 24px; min-height: 540px; display: flex; align-items: center; background: linear-gradient(120deg, #050B18 0%, #0A1428 55%, #0E1B33 100%); border: 1px solid rgba(96,165,250,.16); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.hh-visual { position: absolute; inset: 0 0 0 auto; width: 42%; }
.hh-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 40%; }
.hh-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #091327 0%, rgba(9,19,39,.55) 10%, rgba(9,19,39,0) 30%); }
.hh-text { position: relative; z-index: 3; padding: 48px clamp(24px, 5vw, 56px); max-width: 61%; display: grid; gap: 14px; }
.hh-title { margin: 4px 0 0; line-height: 0; }
.hh-title img { width: clamp(220px, 34vw, 400px); height: auto; }
.hh-claim { margin: 0; color: #E2E8F0; font-size: clamp(.82rem, 1.6vw, 1.02rem); letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.hh-claim strong { font-weight: 800; color: #fff; }
.hh-lead { margin: 4px 0 0; color: #AEBBD0; font-size: 1.04rem; max-width: 46ch; }
.hh-flow { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.hh-flow li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #F1F5F9; }
.hh-flow li + li::before { content: ""; position: absolute; left: -9px; top: 27px; width: 8px; height: 8px; border-top: 2px solid #1E8BFF; border-right: 2px solid #1E8BFF; transform: rotate(45deg); }
.hh-ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 50% 40%, rgba(30,139,255,.18), rgba(5,11,24,.6) 70%); border: 2px solid rgba(30,139,255,.22); border-top-color: #1E8BFF; border-left-color: #1E8BFF; }
.hh-ring .ic { width: 28px; height: 28px; }
.hh-flow li:last-child .hh-ring { color: #fff; box-shadow: 0 0 24px rgba(30,139,255,.35); }
.home-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.home-cta .btn { display: inline-flex; gap: 10px; align-items: center; padding: 0 24px; min-height: 56px; }
.hh-install[hidden] { display: none; }
.home-app { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; padding: clamp(20px, 4vw, 40px); }
.home-app h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.ha-lead { margin: 0 0 18px; color: #CBD5E1; max-width: 56ch; }
.ha-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ha-points li { display: flex; gap: 12px; align-items: flex-start; color: #CBD5E1; font-size: .93rem; }
.ha-points .ic { flex: none; width: 22px; height: 22px; color: #4C9BFF; margin-top: 2px; }
.ha-points strong { color: #F8FAFC; }
.ha-actions { display: grid; gap: 10px; justify-items: start; }
.ha-actions .btn { display: inline-flex; gap: 10px; align-items: center; padding: 0 26px; }
.ha-state { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(22,163,74,.12); border: 1px solid rgba(22,163,74,.4); color: #BBF7D0; font-size: .92rem; }
.ha-how h3 { margin: 18px 0 10px; font-size: .95rem; color: #F8FAFC; }
.ha-how dl { margin: 0; display: grid; gap: 8px; }
.ha-how dl > div { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(96,165,250,.16); background: rgba(5,11,24,.45); }
.ha-how dl > div.is-mine { border-color: rgba(30,139,255,.6); background: rgba(0,108,252,.12); }
.ha-how dt { font-weight: 700; color: #F8FAFC; font-size: .9rem; }
.ha-how dd { margin: 2px 0 0; color: #AEBBD0; font-size: .9rem; }
.ha-phone { justify-self: center; width: 230px; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 9px; background: #1E293B; box-shadow: 0 0 0 1px rgba(148,163,184,.25), 0 30px 60px rgba(0,0,0,.5); }
.ha-screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; padding: 38px 16px 16px; background: radial-gradient(260px 220px at 80% 0%, rgba(30,139,255,.55), transparent 70%), linear-gradient(180deg, #0B1E3F, #050B18); }
.ha-time { position: absolute; top: 12px; left: 22px; font-size: .72rem; font-weight: 700; color: #fff; }
.ha-icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.ha-screen::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 54px; border-radius: 20px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.ha-icons li { display: grid; justify-items: center; align-content: start; gap: 4px; }
.ha-icons i { display: block; align-self: start; width: 100%; aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.12); }
.ha-icons img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 2px #1E8BFF, 0 8px 22px rgba(30,139,255,.55); animation: ha-pop 2.4s ease-in-out infinite; }
.ha-icons small { font-size: .55rem; color: #fff !important; white-space: nowrap; }
.ha-our { grid-column: span 1; }
@keyframes ha-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ha-icons img { animation: none; } }
@media (max-width: 759px) {
  .hh { display: grid; min-height: 0; background: #091327; }
  .hh-visual { position: relative; inset: auto; width: 100%; height: 240px; order: -1; }
  .hh-text { max-width: none; }
  .hh-visual img { object-position: 50% 42%; }
  .hh-visual::before { background: linear-gradient(0deg, #091327 0%, #091327 6%, rgba(9,19,39,.45) 40%, rgba(9,19,39,0) 70%); }
  .hh-text { padding: 4px 20px 26px; margin-top: -40px; }
  .hh-claim { letter-spacing: .2em; }
  .hh-flow { gap: 6px; }
  .hh-flow li { font-size: .6rem; letter-spacing: .04em; }
  .hh-flow li + li::before { left: -6px; top: 22px; width: 6px; height: 6px; }
  .hh-ring { width: 52px; height: 52px; }
  .hh-ring .ic { width: 22px; height: 22px; }
  .home-cta .btn { flex: 1 1 100%; justify-content: center; }
  .home-app { grid-template-columns: 1fr; }
  .ha-phone { display: none; }
}

/* order page (1.0.0-rc.9): sticky bar with quick actions, PDF link on the order cards */
.qbar { position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 18px; background: rgba(12,20,36,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #E2E8F0; box-shadow: 0 18px 44px rgba(12,20,36,.32), 0 0 0 1px rgba(148,163,184,.18); }
.qbar ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.qbar ul::-webkit-scrollbar { display: none; }
.qbar li { flex: none; }
.qbar li[hidden] { display: none; }
.qbar form { margin: 0; }
.qb-id { display: grid; line-height: 1.2; min-width: 0; }
.qb-id .plate { color: #fff; font-size: .98rem; white-space: nowrap; }
.qb-id small { color: #94A3B8 !important; font-size: .74rem; }
.qb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #E2E8F0; font: inherit; font-size: .9rem; font-weight: 650; white-space: nowrap; text-decoration: none; cursor: pointer; }
.qb:hover, .qb:focus-visible { background: rgba(255,255,255,.16); color: #fff; }
.qb.pri { background: linear-gradient(90deg, #0A64F0, #1E8BFF); color: #fff; box-shadow: 0 8px 20px rgba(0,108,252,.35); }
.qb .ic { width: 18px; height: 18px; flex: none; }
.qb-dot { width: 9px; height: 9px; flex: none; }
.qb.is-busy { opacity: .6; pointer-events: none; }
.ocard { position: relative; }
.ocard a.oc-pdf { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); }
.ocard a.oc-pdf:hover, .ocard a.oc-pdf:focus-visible { color: var(--acc); border-color: var(--acc); box-shadow: none; transform: none; }
.oc-pdf .ic { width: 16px; height: 16px; }
@media (max-width: 699px) {
  .qbar { bottom: 0; margin: 0 calc(-1 * var(--gap)) calc(-1 * var(--gap)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .qb-id, .qb-dot { display: none; }
  .qbar ul { margin: 0; width: 100%; gap: 4px; justify-content: space-between; }
  .qbar li { flex: 1 0 auto; }
  .qb { flex-direction: column; justify-content: center; gap: 3px; width: 100%; min-width: 58px; min-height: 54px; padding: 6px 8px; font-size: .68rem; }
  .qb .ic { width: 20px; height: 20px; }
}
@media print { .qbar, .oc-pdf { display: none !important; } }
.ocard:has(.oc-pdf) .oc-meta { padding-right: 34px; }
.ocard a.oc-pdf, .ocard.is-express a.oc-pdf, .ocard.is-new a.oc-pdf { box-shadow: none; border: 1px solid var(--line); border-radius: 9px; padding: 0; gap: 0; }
@media (max-width: 699px) {
  .qbar li { flex: 1 1 0; min-width: 0; }
  .qbar li.qb-opt { display: none; }
  .qb { min-width: 0; padding: 6px 2px; font-size: .64rem; }
  .qb span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

/* error log (1.0.0-rc.10): entries of earlier versions */
.errlog > li.el-old { opacity: .62; border-left-color: var(--rule) !important; }
.errlog .pill.old { background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.err-old { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r); background: var(--soft); }
.err-old p { margin: 0; flex: 1 1 320px; }

/* Speed Add (1.0.0-rc.11) */
.speed-btn .ic, .top-speed .ic { color: #F59E0B; }
.top-speed { min-height: 46px; padding: 10px 14px; border-radius: 12px; gap: 8px; }
@media (max-width: 1099px) { .top.has-shell .top-speed { display: none; } }
.thumbbar.two { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.speed { display: grid; gap: var(--gap); padding-bottom: 8px; }
.sa-step { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--acc); color: #fff; font-size: .82rem; font-weight: 800; vertical-align: 2px; }
.sa-groups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.sa-group { position: relative; display: block; cursor: pointer; }
.sa-group input, .sa-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sa-group > span { display: grid; gap: 4px; min-height: 132px; padding: 18px 18px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--bg); transition: border-color .15s, box-shadow .15s, background .15s; }
.sa-group strong { font-size: 1.2rem; }
.sa-group small { color: var(--muted); }
.sa-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--acc); }
.sa-ico .ic { width: 22px; height: 22px; }
.sa-tick { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); color: transparent; background: var(--bg); }
.sa-tick .ic { width: 15px; height: 15px; }
.sa-group input:checked + span { border-color: var(--acc); background: var(--acc-soft); box-shadow: var(--ring); }
.sa-group input:checked + span .sa-tick, .sa-card:has(input:checked) .sa-tick { background: var(--acc); border-color: var(--acc); color: #fff; }
.sa-group input:focus-visible + span, .sa-card:has(input:focus-visible) { box-shadow: var(--ring); }
.sa-cards { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.sa-cards li[hidden] { display: none; }
.sa-card { position: relative; display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 10px 44px 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.sa-card .sa-ico { width: 38px; height: 38px; flex: none; }
.sa-card .sa-tick { top: 50%; transform: translateY(-50%); }
.sa-txt { display: grid; gap: 2px; min-width: 0; }
.sa-txt small { color: var(--muted); font-size: .8rem; }
.sa-card:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.sa-card:not(:has(input:checked)) .sa-ico { color: var(--muted); }
.sa-bar { position: sticky; bottom: 0; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--page) 72%, rgba(243,246,250,0)); }
.sa-count { margin: 0; color: var(--muted); font-weight: 600; }
.sa-go { min-height: 60px; min-width: min(100%, 340px); font-size: 1.12rem; gap: 10px; justify-content: center; border-radius: 16px; }
.sa-go .ic { width: 22px; height: 22px; }
@media (max-width: 699px) { .sa-bar { justify-content: stretch; } .sa-go { width: 100%; } .sa-count { width: 100%; text-align: center; } }
.sa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; }
.sa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.sa-chip.group { background: var(--acc-soft); border-color: transparent; color: var(--acc); font-weight: 700; }
.sa-chip .ic { width: 14px; height: 14px; }
.speed-form .page-head .eyebrow .ic { width: 14px; height: 14px; color: #F59E0B; vertical-align: -2px; }
.speed .page-head .eyebrow .ic { width: 14px; height: 14px; color: #F59E0B; vertical-align: -2px; }
.picker-inline .combo-new { margin: 6px 0 0; }
.picker-inline [data-pick-chosen] { margin-bottom: 0; }
:root[data-theme="dark"] .sa-bar { background: linear-gradient(to top, var(--page) 72%, rgba(7,13,26,0)); }
.speed-form .page-head .actions, .speed .page-head .actions { align-self: flex-start; }
/* Speed Add (1.0.0-rc.12): further cards of the form, head of the wizard */
.sa-more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.sa-more > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--acc); list-style: none; }
.sa-more > summary::-webkit-details-marker { display: none; }
.sa-more > summary .ic { width: 16px; height: 16px; }
.sa-more[open] > summary .ic { transform: rotate(45deg); }
.sa-more .cnt { background: var(--soft); color: var(--muted); border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.sa-more > .sa-cards { margin-top: 12px; }
.wz-head .actions { margin: 0; flex: none; }
.wz-head .eyebrow .ic { width: 14px; height: 14px; color: #F59E0B; vertical-align: -2px; }

/* 1.0.0-rc.13: photos of each damage (wizard, protocol), Speed Add card list by tabs */
.dt-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dt-thumb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.dt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dt-cam { position: relative; cursor: pointer; }
.dmg-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dmg-photos img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.sa-tab + .sa-tab { margin-top: 18px; }
.sa-tab-h { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: .95rem; }
.sa-tab-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line-2); font-size: .74rem; font-weight: 800; }
.sa-others { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sa-others .cnt { background: var(--soft); color: var(--muted); border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.sa-others .btn[aria-pressed="true"] .ic { transform: rotate(45deg); }
.sa-cards li.is-other .sa-card { border-style: dashed; }

/* 1.0.0-rc.14: Schäden markieren grouped by vehicle view – sketch, below it its damages, then the next view */
.dmg-views { display: grid; gap: 14px; margin: 4px 0 14px; }
.dmg-view { padding: 12px 14px 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.dmg-view.has-dmg { background: var(--bg); box-shadow: var(--shadow-sm); }
.dmg-view-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .95rem; }
.dmg-view-h .cnt { font-style: normal; background: #DC2626; color: #fff; border-radius: 999px; padding: 0 7px; font-size: .72rem; }
.dmg-view .sk { max-width: 460px; margin: 0 0 6px; padding: 6px; background: var(--bg); }
.dmg-view .sk-vorn, .dmg-view .sk-hinten { max-width: 320px; }
.dmg-view .dmg-none { margin: 4px 0 8px; }
.dmg-view .dmg-table { margin: 6px 0 4px; }
.dmg-view .dt-row { grid-template-columns: 30px minmax(96px, 1fr) auto minmax(120px, 1.4fr) 44px; grid-template-areas: "n type sev note del" ". photo photo photo photo"; }
.dmg-view .dt-row:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .dmg-view { padding: 10px 10px 4px; }
  .dmg-view .dt-row { grid-template-columns: 30px minmax(0, 1fr) 44px; grid-template-areas: "n type del" "sev sev sev" "note note note" "photo photo photo"; }
}

/* 1.0.0-rc.15: Speed Add / AIR ADD (shared) – buttons, drawer „Zuletzt hinzugefügt“, „Gespeichert“ */
.sa-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 8px; margin: 0; }
.page-head .sa-tools, .wz-head .sa-tools { margin-top: 18px; align-self: flex-start; }
.sa-tools .cnt { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line-2); font-size: .74rem; font-weight: 800; }
.sa-tools-bar { max-width: 1200px; margin: 0 auto 10px; }
.sr-drawer { width: min(560px, 100%); }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sr-day { margin: 8px 0 -2px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sr-day:first-child { margin-top: 0; }
.sr-item { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.sr-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sr-main .plate { flex: none; padding: 4px 8px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: .86rem; background: var(--bg); }
.sr-txt { display: grid; min-width: 0; }
.sr-txt strong, .sr-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-txt small { color: var(--muted); font-size: .82rem; }
.sr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sr-ch { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px; font-size: .76rem; font-weight: 700; background: var(--soft); color: var(--muted); }
.sr-ch .ic { width: 14px; height: 14px; }
.sr-ch-speed .ic { color: #F59E0B; }
.sr-ch-air { background: var(--acc-soft); color: var(--acc); }
.sr-act { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-empty { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); }
.sa-done { border-left: 6px solid var(--ok); }
.sa-done-head { display: flex; align-items: center; gap: 14px; }
.sa-done-head h2 { margin: 0 0 4px; }
.sa-done-head p { margin: 0; color: var(--muted); }
.sa-done-head .plate { padding: 2px 7px; border: 1.5px solid var(--ink); border-radius: 6px; color: var(--ink); font-size: .86rem; }
.sa-done-ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.sa-done-ico .ic { width: 26px; height: 26px; }
.sa-done .actions { margin: 14px 0 0; }
@media (max-width: 699px) {
  .page-head .sa-tools { margin-top: 4px; justify-content: flex-start; }
  .sa-tools .btn { flex: 1 1 auto; }
}

/* 1.0.0-rc.16: AIR ADD – bar on the phone (no menu), connect / end page, QR code drawer in the panel */
body.air-shell { background: var(--page); }
.air-bar { background: var(--nav, #0B1222); color: #E2E8F0; }
.air-bar-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.air-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.air-brand img { display: block; }
.air-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--acc); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.air-tag .ic { width: 13px; height: 13px; }
.air-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-right: auto; min-width: 0; }
.air-emp { margin: 0; }
.air-emp label { display: flex; align-items: center; gap: 8px; margin: 0; }
.air-emp small { color: #94A3B8; font-size: .74rem; white-space: nowrap; }
.air-emp select { max-width: 220px; min-height: 36px; padding: 5px 30px 5px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background-color: #19283E; color: #fff; font: inherit; font-weight: 700; }
.air-until { color: #94A3B8; font-size: .78rem; }
.air-off { margin: 0; }
.air-bar .btn { min-height: 38px; padding: 6px 12px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.air-bar .btn:hover { background: rgba(255,255,255,.16); }
.air-act { position: sticky; top: 0; z-index: 60; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(12,20,36,.06); }   /* no filter here: the drawers inside must stay fixed to the screen */
.air-act .sa-tools { max-width: 1200px; margin: 0 auto; padding: 8px 16px; }
.air-act .btn { min-height: 44px; }
body.air-shell .wrap { padding-top: 14px; }
@media (max-width: 699px) {
  .air-bar-in { padding: 8px 12px; gap: 6px 10px; }
  .air-brand img { width: 104px; height: auto; }
  .air-off { margin-left: auto; }
  .air-off .sa-t { display: none; }
  .air-who { order: 3; flex: 1 1 100%; justify-content: space-between; }
  .air-emp select { max-width: 170px; }
  .air-act .sa-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 8px 12px; }
  .air-act .sa-tools .btn.pri { order: -1; }
  .air-act .sa-tools .sa-t { display: none; }
}
/* connect / end page */
body.air-gate .wrap { min-height: calc(100vh - 160px); align-content: center; justify-items: center; }
.air-gate-card { width: min(100%, 480px); text-align: center; padding: 28px 22px; }
.air-gate-card h1 { margin: 4px 0 8px; font-size: 1.7rem; }
.air-gate-card .lead { color: var(--muted); }
.air-gate-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--acc-soft); color: var(--acc); margin-bottom: 8px; }
.air-gate-ico.off { background: var(--soft); color: var(--muted); }
.air-gate-ico .ic { width: 30px; height: 30px; }
.air-facts { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; text-align: left; }
.air-facts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: .92rem; }
.air-facts .ic { color: var(--acc); flex: none; }
.air-go { width: 100%; min-height: 56px; font-size: 1.1rem; border-radius: 14px; }
/* panel: QR code drawer */
.air-btn .ic { color: var(--acc); }
.air-btn.is-live { position: relative; }
.air-btn.is-live::after { content: ''; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 2px var(--bg); }
.air-qr-box { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; margin: 12px 0 16px; }
.air-qr { position: relative; display: grid; place-items: center; width: 220px; aspect-ratio: 1; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: opacity .2s; }
.air-qr svg { width: 100%; height: 100%; }
.air-qr-box.is-used .air-qr svg, .air-qr-box.is-expired .air-qr svg { opacity: .07; }
.air-qr-box.is-used .air-qr::after { content: '✓'; position: absolute; font-size: 84px; font-weight: 800; line-height: 1; color: var(--ok); }
.air-qr-box.is-expired .air-qr::after { content: '⏱'; position: absolute; font-size: 64px; line-height: 1; opacity: .6; }
.air-status { margin: 0 0 4px; font-weight: 750; font-size: 1.05rem; }
.air-qr-err { padding: 12px; text-align: center; color: var(--bad); font-weight: 700; font-size: .9rem; }
.air-timer { margin: 0 0 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.air-conn { margin: 0 0 18px; padding: 14px; border: 1.5px solid var(--ok); border-radius: 16px; background: color-mix(in srgb, var(--ok-soft) 45%, var(--bg)); }
.air-conn.is-ended { border-color: var(--line-2); background: var(--soft); }
.air-conn-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.air-conn-head div { display: grid; }
.air-conn-head small { color: var(--muted); }
.air-conn h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .95rem; }
.air-conn .cnt { background: var(--bg); border-radius: 999px; padding: 0 8px; font-size: .78rem; }
.air-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.air-conn.is-ended .air-dot { background: #94A3B8; box-shadow: none; }
.air-dev-h { margin: 6px 0 8px; font-size: .95rem; }
.air-devs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.air-devs li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.air-dev-t { display: grid; flex: 1; min-width: 0; }
.air-dev-t small { color: var(--muted); font-size: .8rem; }
@media (max-width: 520px) { .air-qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; } .air-qr { width: min(240px, 100%); } }

/* 1.0.0-rc.17: two-factor sign-in – own choice to go on without it */
.twofa-skip { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.twofa-skip h3 { margin: 0 0 6px; }
