/* Cortec — afspraken & werkplaats
   Design: the Dutch licence plate is the identity of every car; the rest
   stays quiet. Type: Barlow Semi Condensed (headings, numbers) + Barlow. */

/* ---------- fonts ---------- */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-semi-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-semi-condensed-700.woff2') format('woff2'); }

/* ---------- tokens ---------- */
/* House style: deep navy (lacivert) for structure — sidebar, header, primary
   actions — on cool, quiet paper. One accent colour; the yellow licence plate
   is the only warm colour and stays reserved for plates and counters. */
:root {
  color-scheme: light;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-cond: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;

  --ink: #0f1b2e;
  --ink-2: #435168;
  --ink-3: #6a778d;
  --paper: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --line: #dde4ee;
  --line-2: #c3cddb;

  --accent: #1b3a6b;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 8%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 34%, var(--surface));

  /* navy surfaces (sidebar, customer header, hero) */
  --navy: #11264a;
  --navy-2: #0a1830;
  --navy-ink: #e9eef7;
  --navy-ink-2: #9fb0cb;
  --navy-line: rgba(255, 255, 255, 0.09);
  --navy-hi: #8db6ff;

  --plate: #f7c600;
  --plate-2: #efb900;
  --plate-ink: #12161b;
  --eu: #1c3f94;

  --ok: #13703a;   --ok-bg: #e2f3e7;
  --warn: #a14a05; --warn-bg: #fcefdc;
  --bad: #b42318;  --bad-bg: #fdeceb;

  --t-amber: #92580a;  --t-amber-bg: #fdf1d6;
  --t-blue: #1f4f9c;   --t-blue-bg: #e5edfa;
  --t-teal: #0f6b62;   --t-teal-bg: #ddf3ef;
  --t-violet: #5b33b8; --t-violet-bg: #ece6fb;
  --t-orange: #b2410a; --t-orange-bg: #fde7d9;
  --t-green: #13703a;  --t-green-bg: #dff2e5;
  --t-gray: #4f5a6a;   --t-gray-bg: #e9edf3;
  --t-red: #b42318;    --t-red-bg: #fbe5e3;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-card: 0 1px 2px rgba(15, 27, 46, 0.05), 0 2px 8px rgba(15, 27, 46, 0.04);
  --shadow-raise: 0 2px 4px rgba(15, 27, 46, 0.04), 0 12px 32px rgba(15, 27, 46, 0.1);
  --shadow-float: 0 16px 40px rgba(12, 24, 44, 0.2), 0 2px 8px rgba(12, 24, 44, 0.08);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  --tap: 44px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ink: #e7edf6; --ink-2: #aab7cb; --ink-3: #7f8ea7;
    --paper: #0b1322; --surface: #111c2f; --surface-2: #15233a; --line: #213049; --line-2: #2e4163;
    --accent: #86abee; --accent-ink: #0a1324;
    --navy: #0d1a30; --navy-2: #081120; --navy-line: rgba(255, 255, 255, 0.07);
    --ok: #6fd39a; --ok-bg: #12301f; --warn: #f2b264; --warn-bg: #36250f; --bad: #ff8f86; --bad-bg: #3a1714;
    --t-amber: #f3c26b; --t-amber-bg: #33270e; --t-blue: #93b4f5; --t-blue-bg: #172747;
    --t-teal: #6fd8c9; --t-teal-bg: #0f2e2b; --t-violet: #b9a2ff; --t-violet-bg: #251b47;
    --t-orange: #ffad7a; --t-orange-bg: #3a2010; --t-green: #7fdca2; --t-green-bg: #12301f;
    --t-gray: #b2bdca; --t-gray-bg: #1f2b3d; --t-red: #ff9c94; --t-red-bg: #3a1714;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-raise: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 18px 44px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #e7edf6; --ink-2: #aab7cb; --ink-3: #7f8ea7;
  --paper: #0b1322; --surface: #111c2f; --surface-2: #15233a; --line: #213049; --line-2: #2e4163;
  --accent: #86abee; --accent-ink: #0a1324;
  --navy: #0d1a30; --navy-2: #081120; --navy-line: rgba(255, 255, 255, 0.07);
  --ok: #6fd39a; --ok-bg: #12301f; --warn: #f2b264; --warn-bg: #36250f; --bad: #ff8f86; --bad-bg: #3a1714;
  --t-amber: #f3c26b; --t-amber-bg: #33270e; --t-blue: #93b4f5; --t-blue-bg: #172747;
  --t-teal: #6fd8c9; --t-teal-bg: #0f2e2b; --t-violet: #b9a2ff; --t-violet-bg: #251b47;
  --t-orange: #ffad7a; --t-orange-bg: #3a2010; --t-green: #7fdca2; --t-green-bg: #12301f;
  --t-gray: #b2bdca; --t-gray-bg: #1f2b3d; --t-red: #ff9c94; --t-red-bg: #3a1714;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-raise: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 18px 44px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:where(h1, h2, h3, h4) { font-family: var(--font-cond); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); }
:where(h1) { font-size: clamp(28px, 4.2vw, 40px); letter-spacing: -0.01em; }
:where(h2) { font-size: 24px; }
:where(h3) { font-size: 19px; font-weight: 600; }
:where(h4) { font-size: 16px; font-weight: 600; }
:where(p) { margin: 0 0 0.75em; }
:where(a) { color: var(--accent); text-underline-offset: 2px; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(img, svg) { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--plate) 55%, transparent); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
@media (max-width: 959px) { .hide-mobile { display: none !important; } }
@media (min-width: 960px) { .show-mobile { display: none !important; } }
@media (min-width: 960px) { .hide-desktop { display: none !important; } }

/* ---------- icons ---------- */
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover:not(:disabled) { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--surface)); }
.btn-danger:hover:not(:disabled) { background: var(--bad-bg); }
.btn-ok { background: var(--ok); color: var(--surface); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover:not(:disabled) { background: #188f48; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 15px; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: var(--tap); padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn .spin { width: 18px; height: 18px; }

.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > .lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .err { font-size: 13px; color: var(--bad); font-weight: 500; }
.field > .seg, .field > .toggle, .field > .row { justify-self: start; }
.input, .select, .textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  font-size: 16px; line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--bad); }
.textarea { min-height: 104px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.input-sm { min-height: 38px; padding: 6px 10px; font-size: 15px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); display: grid; place-content: center; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.check input::after { content: ''; width: 11px; height: 6px; border: 2.5px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.toggle input { appearance: none; margin: 0; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background-color 0.15s; flex: none; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(18px); }

.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); gap: 2px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; white-space: nowrap; border: 0; background: transparent; padding: 6px 12px; min-height: 34px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); }

/* ---------- the Dutch licence plate ---------- */
.plate {
  --h: 34px;
  display: inline-flex; align-items: stretch; height: var(--h);
  border-radius: calc(var(--h) * 0.16);
  background: linear-gradient(180deg, #ffd52a 0%, var(--plate) 55%, var(--plate-2) 100%);
  color: var(--plate-ink);
  box-shadow: inset 0 0 0 1.5px rgba(18, 22, 27, 0.85), inset 0 0 0 3px rgba(255, 255, 255, 0.35);
  overflow: hidden; vertical-align: middle; flex: none;
}
.plate-eu {
  width: calc(var(--h) * 0.56); background: var(--eu); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: calc(var(--h) * 0.08); gap: calc(var(--h) * 0.03);
  font-family: var(--font-cond); font-weight: 700; font-size: calc(var(--h) * 0.27); line-height: 1;
  border-right: 1.5px solid rgba(18, 22, 27, 0.85);
}
.plate-eu svg { width: calc(var(--h) * 0.4); height: calc(var(--h) * 0.4); }
.plate-text {
  display: flex; align-items: center; padding: 0 calc(var(--h) * 0.28);
  font-family: var(--font-cond); font-weight: 700; font-size: calc(var(--h) * 0.62);
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.plate-sm { --h: 26px; }
.plate-md { --h: 38px; }
.plate-lg { --h: 72px; }

.plate-input { --h: 76px; width: min(100%, 440px); cursor: text; }
.plate-input .plate-text { flex: 1; padding: 0; }
.plate-input input {
  width: 100%; height: 100%; border: 0; outline: none; background: transparent; text-align: center;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: uppercase; padding: 0 12px;
}
.plate-input input::placeholder { color: rgba(18, 22, 27, 0.32); }
.plate-input:focus-within { box-shadow: inset 0 0 0 1.5px rgba(18, 22, 27, 0.85), inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 420px) { .plate-input { --h: 64px; } }

/* ---------- status badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; color: var(--tc, var(--ink-2)); background: var(--tb, var(--surface-2)); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge-plain::before { display: none; }
.tone-amber { --tc: var(--t-amber); --tb: var(--t-amber-bg); }
.tone-blue { --tc: var(--t-blue); --tb: var(--t-blue-bg); }
.tone-teal { --tc: var(--t-teal); --tb: var(--t-teal-bg); }
.tone-violet { --tc: var(--t-violet); --tb: var(--t-violet-bg); }
.tone-orange { --tc: var(--t-orange); --tb: var(--t-orange-bg); }
.tone-green { --tc: var(--t-green); --tb: var(--t-green-bg); }
.tone-gray { --tc: var(--t-gray); --tb: var(--t-gray-bg); }
.tone-red { --tc: var(--t-red); --tb: var(--t-red-bg); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--plate); color: var(--plate-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel-tight { padding: 14px 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.panel-head > h3 { min-width: 0; }
.panel-head h2, .panel-head h3 { font-size: 19px; }
.note { border-radius: var(--r-md); padding: 12px 14px; font-size: 15px; line-height: 1.45; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.note-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink); }
.note-ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ink); }
.note-bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--ink); }
.note-accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* ---------- top bar (customer) ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { height: 34px; width: auto; }
.wordmark { font-family: var(--font-cond); font-weight: 700; font-size: 22px; letter-spacing: 0.12em; line-height: 1; }
.wordmark small { display: block; font-family: var(--font); font-weight: 500; font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink-3); margin-top: 3px; }

.page { max-width: 1120px; margin: 0 auto; padding: 24px 16px 96px; }
.page-narrow { max-width: 720px; }
@media (min-width: 900px) { .page { padding-top: 36px; } }

/* ---------- booking wizard ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 960px) { .book { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 40px; } }
.book-main { min-width: 0; }
.book-aside { display: none; }
@media (min-width: 960px) { .book-aside { display: grid; gap: 14px; position: sticky; top: 84px; } }
.lede { font-size: 17px; color: var(--ink-2); max-width: 56ch; margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 26px; padding: 0; list-style: none; }
.steps li { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.steps li::before { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 7px; }
.steps li[data-state='done']::before { background: var(--ink-2); }
.steps li[data-state='current']::before { background: var(--accent); }
.steps li[data-state='current'] { color: var(--ink); }
.steps button { all: unset; cursor: pointer; }
.steps button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 4px; }

.plate-stage { display: grid; gap: 18px; justify-items: start; margin-top: 8px; }
.vehicle-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; font-size: 15px; margin: 0; padding: 14px 16px; border-left: 3px solid var(--plate); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; width: min(100%, 440px); }
.vehicle-facts dt { color: var(--ink-3); }
.vehicle-facts dd { margin: 0; font-weight: 600; }
.vehicle-name { grid-column: 1 / -1; font-family: var(--font-cond); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.resolve-in { animation: resolve 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes resolve { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.svc-group + .svc-group { margin-top: 22px; }
.svc-group h3 { font-size: 18px; }
.svc-group > p { font-size: 14px; color: var(--ink-3); margin: 3px 0 10px; }
.svc-list { display: grid; gap: 8px; }
.svc {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 14px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
.svc:hover { border-color: var(--line-2); }
.svc[data-on='true'] { border-color: var(--accent); background: var(--accent-soft); }
.svc input { margin-top: 2px; }
.svc-name { font-weight: 600; font-size: 16px; }
.svc-desc { grid-column: 2 / -1; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.svc-meta { font-size: 14px; color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.dropzone { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15, 20, 27, 0.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.add-photo { width: 76px; height: 76px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; font-size: 12px; font-weight: 600; }
.add-photo:hover { border-color: var(--accent); color: var(--accent); }

.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day {
  flex: none; width: 70px; min-height: 82px; padding: 8px 4px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  display: grid; justify-items: center; align-content: center; gap: 1px; cursor: pointer;
}
.day .dw { font-size: 13px; color: var(--ink-3); font-weight: 600; text-transform: capitalize; }
.day .dn { font-family: var(--font-cond); font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day .dm { font-size: 12px; color: var(--ink-3); text-transform: lowercase; }
.day:hover:not(:disabled) { border-color: var(--line-2); }
.day:disabled { opacity: 0.42; cursor: not-allowed; background: transparent; }
.day[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day[aria-pressed='true'] .dw, .day[aria-pressed='true'] .dm { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.slot:hover { border-color: var(--line-2); }
.slot[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dropoff-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.dropoff-card .big { font-family: var(--font-cond); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

.wizard-actions { display: flex; gap: 10px; margin-top: 28px; align-items: center; }
.wizard-actions .btn-primary { min-width: 160px; }
@media (max-width: 959px) {
  .wizard-actions.sticky { position: sticky; bottom: 0; margin: 28px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .wizard-actions.sticky .btn-primary { flex: 1; }
}

.summary .panel { padding: 18px; }
.summary h3 { font-size: 17px; }
.sum-row { display: grid; gap: 2px; font-size: 15px; }
.sum-row span:first-child { font-size: 13px; color: var(--ink-3); }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; }
.hours tr[data-today='true'] td { font-weight: 700; color: var(--ink); }
.hours td { color: var(--ink-2); }

.review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.review-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; padding: 14px 16px; align-items: start; border-top: 1px solid var(--line); }
.review-row:first-child { border-top: 0; }
.review-row > span:first-child { color: var(--ink-3); font-size: 14px; padding-top: 2px; }
@media (max-width: 520px) { .review-row { grid-template-columns: 1fr auto; } .review-row > span:first-child { grid-column: 1 / -1; } }

.success { text-align: left; display: grid; gap: 16px; justify-items: start; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.success-mark .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.code-chip { font-family: var(--font-cond); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; padding: 4px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- tracking ---------- */
.track-head { display: grid; gap: 14px; }
.track-status { font-family: var(--font-cond); font-size: clamp(28px, 5vw, 38px); font-weight: 700; line-height: 1.1; display: flex; align-items: center; gap: 12px; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.progress li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.progress li:last-child { padding-bottom: 0; }
.progress li::before { content: ''; position: absolute; left: 13px; top: 24px; bottom: -2px; width: 2px; background: var(--line); }
.progress li:last-child::before { display: none; }
.progress li[data-state='done']::before { background: var(--ink-2); }
.progress .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--surface); z-index: 1; }
.progress li[data-state='done'] .dot { background: var(--ink-2); border-color: var(--ink-2); }
.progress li[data-state='current'] .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.progress .dot .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.progress .lbl { padding-top: 3px; font-weight: 600; color: var(--ink-3); }
.progress li[data-state='done'] .lbl, .progress li[data-state='current'] .lbl { color: var(--ink); }
.progress .when { font-size: 13px; color: var(--ink-3); font-weight: 500; }
@media (min-width: 760px) {
  .progress { grid-template-columns: repeat(6, 1fr); }
  .progress li { grid-template-columns: 1fr; justify-items: start; padding-bottom: 0; gap: 8px; }
  .progress li::before { left: 28px; right: 6px; top: 13px; bottom: auto; width: auto; height: 2px; }
}
.approval { border: 2px solid var(--t-orange); border-radius: var(--r-lg); background: var(--surface); padding: 18px; }
.approval h2 { font-size: 21px; display: flex; gap: 10px; align-items: center; color: var(--ink); }
.extra-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: center; }
.extra-item:first-of-type { border-top: 0; }
.extra-item .price { font-family: var(--font-cond); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.extra-item .actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); padding: 0; cursor: zoom-in; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .by { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; background: rgba(15, 20, 27, 0.72); color: #fff; padding: 2px 7px; border-radius: 999px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.log li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 15px; }
.log time { color: var(--ink-3); font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.log .msg { color: var(--ink-2); margin-top: 2px; }
.invoice-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.invoice-strip .amount { font-family: var(--font-cond); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- invoice document ---------- */
.doc { background: #fff; color: #17202c; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 5vw, 48px); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.doc th { text-align: left; font-size: 13px; color: #6f7a8b; font-weight: 600; padding: 8px 6px; border-bottom: 1.5px solid #17202c; }
.doc td { padding: 9px 6px; border-bottom: 1px solid #e3e7ec; vertical-align: top; }
.doc .r { text-align: right; white-space: nowrap; }
.doc-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.doc-title { font-family: var(--font-cond); font-size: 34px; font-weight: 700; }
.doc-tot { margin-left: auto; width: min(100%, 320px); margin-top: 18px; font-size: 15px; }
.doc-tot div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc-tot .grand { border-top: 1.5px solid #17202c; margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 19px; }
.stamp { display: inline-block; border: 2px solid #13703a; color: #13703a; font-family: var(--font-cond); font-weight: 700; font-size: 20px; padding: 3px 14px; border-radius: 6px; transform: rotate(-4deg); }
@media print {
  .no-print, .topbar, .toasts { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .doc { border: 0; padding: 0; }
}

/* ---------- modal & toasts ---------- */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 20, 0.5); display: grid; align-items: end; justify-items: center; animation: fadein 0.15s ease-out; }
@media (min-width: 640px) { .backdrop { align-items: center; padding: 24px; } }
.modal { background: var(--surface); color: var(--ink); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; box-shadow: var(--shadow-float); padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); animation: sheet 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (min-width: 640px) { .modal { border-radius: 18px; padding: 24px; } }
.modal-wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { font-size: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
@keyframes fadein { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(24px); opacity: 0.6; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 12, 0.92); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 14px; }
.toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-float); font-size: 15px; display: flex; gap: 12px; align-items: center; animation: sheet 0.2s ease-out; }
.toast-bad { background: var(--bad); color: var(--surface); }
.toast .btn { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* ---------- loading ---------- */
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin 0.7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px 0; color: var(--ink-3); }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 15px; }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- inside the garage's website (iframe) ---------- */
.embed body { min-height: 0; }
.embed .page { padding-top: 16px; padding-bottom: 24px; }
.embed-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; padding: 4px 16px 20px; font-size: 14px; }
.embed-foot a { color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 16px 40px; color: var(--ink-3); font-size: 14px; }
.foot-in { max-width: 1120px; margin: 0 auto; display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--ink-2); }

/* ============================================================
   Garage panel
   ============================================================ */
.admin { --side-w: 236px; min-height: 100vh; display: grid; grid-template-columns: 1fr; }
html.nav-mini .admin { --side-w: 72px; }
@media (min-width: 1000px) { .admin { grid-template-columns: var(--side-w) minmax(0, 1fr); background: linear-gradient(90deg, var(--surface) 0 calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px) var(--side-w), var(--paper) var(--side-w)); } }
.side { display: none; }
@media (min-width: 1000px) {
  .side { display: flex; flex-direction: column; position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 12px; gap: 4px; }
}
.side .brand { padding: 4px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 44px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15.5px; border: 0; background: none; cursor: pointer; width: 100%; text-align: left; }
.nav-item:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.nav-item[aria-current='page'] { background: var(--accent-soft); color: var(--accent); }
.nav-item .count { margin-left: auto; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.admin-main { min-width: 0; padding: 0 0 calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .admin-main { padding-bottom: 40px; } }
.a-top-in { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 16px 0; }
@media (min-width: 1000px) { .a-top-in { padding: 20px 28px 0; } }
.a-top h1 { font-size: 26px; letter-spacing: 0; }
.a-body { padding: 16px 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 1000px) { .a-body { padding: 18px 28px 24px; gap: 22px; } }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 1000px) { .tabbar { display: none; } }
.tab { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; background: none; border: 0; cursor: pointer; position: relative; }
.tab[aria-current='page'] { color: var(--accent); }
.tab .count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 2px; padding: 10px 12px; min-width: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.kpi b { font-family: var(--font-cond); font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.kpi[data-hot='true'] { border-color: var(--plate-2); box-shadow: inset 4px 0 0 var(--plate); }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
@media (max-width: 719px) {
  .board { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .lane[data-empty='true'] { display: none; }
  .lane { min-height: 0; }
  .list-row .t1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.lane { background: color-mix(in srgb, var(--ink) 4%, var(--paper)); border-radius: 14px; padding: 10px; display: grid; align-content: start; gap: 8px; scroll-snap-align: start; min-height: 120px; }
.lane-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.job { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); cursor: pointer; text-align: left; width: 100%; }
.job:hover { border-color: var(--line-2); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-time { font-family: var(--font-cond); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.job-car { font-weight: 600; font-size: 15px; }
.job-sub { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.job-flags { display: flex; gap: 6px; flex-wrap: wrap; }

.list { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--surface-2); }
.list-row .main { display: grid; gap: 1px; min-width: 0; }
.list-row .t1 { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .t2 { font-size: 14px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .side-info { display: grid; justify-items: end; gap: 4px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.req { display: grid; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.week { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; }
.week-day { display: grid; align-content: start; gap: 8px; min-height: 200px; }
.week-day h3 { font-size: 15px; font-family: var(--font); font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px; }
.week-day[data-today='true'] h3 { color: var(--accent); }
.week-day[data-closed='true'] { opacity: 0.55; }
.cap { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cap i { display: block; height: 100%; background: var(--ink-2); }
.cap[data-full='true'] i { background: var(--bad); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 15px; }
.tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }
@media (min-width: 720px) {
  /* many tabs (settings): wrap as pills instead of scrolling out of sight */
  .tabs.tabs-wrap { flex-wrap: wrap; gap: 4px; border-bottom: 0; overflow: visible; }
  .tabs.tabs-wrap button { padding: 7px 12px; border-bottom: 0; margin: 0; border-radius: 8px; font-size: 14.5px; }
  .tabs.tabs-wrap button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .tabs.tabs-wrap button[aria-selected='true'] { color: var(--accent); background: var(--accent-soft); }
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 1280px) { .detail { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.detail-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; align-content: start; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lines { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.lines th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 6px; border-bottom: 1px solid var(--line); }
.lines td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lines .r { text-align: right; }
.lines input, .lines select { min-height: 38px; padding: 6px 8px; font-size: 15px; }
@media (max-width: 720px) {
  .lines:is(.order-lines, .audit) thead { display: none; }
  .lines:is(.order-lines, .audit) tr { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .lines:is(.order-lines, .audit) td { border: 0; padding: 0; }
  .lines:is(.order-lines, .audit) td.desc { grid-column: 1 / -1; }
}
.hours-edit { display: grid; gap: 8px; }
.hours-edit .h-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.hours-edit .h-times { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hours-edit input[type='time'] { width: 120px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip-btn[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* demo bar */
.demo-bar { position: fixed; z-index: 70; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 6px; padding: 6px; background: var(--ink); color: var(--paper); border-radius: 14px; box-shadow: var(--shadow-float); align-items: center; flex-wrap: wrap; max-width: calc(100vw - 24px); }
.demo-bar .btn { min-height: 38px; }
.demo-bar .btn-ghost { color: var(--paper); }
.demo-bar .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--paper); }
.demo-bar .btn-ghost[aria-pressed='true'] { background: rgba(255, 255, 255, 0.18); }
.has-tabbar .demo-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* two-step login, security and privacy settings */
.setup-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.setup { width: min(100%, 560px); }
.howto { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); line-height: 1.45; }
.scan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.qr { display: grid; place-items: center; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; max-width: 100%; height: auto; }
.secret { display: block; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 0.04em; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; user-select: all; }
.input.otp { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 22px; letter-spacing: 0.25em; text-align: center; font-variant-numeric: tabular-nums; }
.codes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes code { display: block; text-align: center; padding: 9px 10px; border: 1px dashed var(--line-2); border-radius: 10px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 16px; letter-spacing: 0.05em; color: var(--ink); }
.list-flat .list-row { cursor: default; }
.list-flat .list-row:hover { background: none; }
@media (max-width: 520px) {
  .scan { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
@media (max-width: 720px) {
  .lines.audit tr { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.privacy p, .privacy li { color: var(--ink-2); max-width: 68ch; line-height: 1.55; }
.privacy p { margin: 0; }
.privacy ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.check input[type='radio'] { border-radius: 50%; }
.check input[type='radio']::after { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--accent-ink); transform: none; }

/* ---------- stock room (depo / magazijn) ---------- */
.kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi-btn { font: inherit; text-align: left; cursor: pointer; }
.kpi-btn:hover { border-color: var(--line-2); }
.kpi-btn span { display: inline-flex; align-items: center; gap: 5px; }
/* the shelf label: how many are on the shelf */
.qty-tag { display: inline-grid; justify-items: center; align-content: center; min-width: 58px; padding: 6px 8px 5px; border-radius: 10px; background: var(--tb); color: var(--tc); line-height: 1; }
.qty-tag.tone-gray { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.qty-tag b { font-family: var(--font-cond); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.qty-tag span { font-size: 11.5px; font-weight: 600; margin-top: 3px; opacity: 0.8; }
.qty-tag-sm { min-width: 46px; padding: 5px 6px 4px; }
.qty-tag-sm b { font-size: 17px; }
.qty-tag-sm span { font-size: 10.5px; margin-top: 2px; }
.qty-tag .ico { width: 18px; height: 18px; }
.stock-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stock-strip > div { background: var(--surface-2); padding: 8px 12px; display: grid; gap: 2px; min-width: 0; }
.stock-strip span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stock-strip b { font-family: var(--font-cond); font-size: 22px; line-height: 1.1; }
@media (max-width: 520px) { .stock-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-box { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.price-calc { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.panel-inset { background: var(--surface-2); }
.moves { display: grid; border: 1px solid var(--line); border-radius: 12px; max-height: 260px; overflow-y: auto; }
.move { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 12px; border-top: 1px solid var(--line); }
.move:first-child { border-top: 0; }
@media (max-width: 520px) { .move { grid-template-columns: minmax(0, 1fr) auto; } .move > :first-child { grid-column: 1 / -1; } }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.warn-text { color: var(--warn); font-weight: 600; }
.fit-mark { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); font-weight: 600; }
.fit-mark .ico { width: 14px; height: 14px; }
.order-pick { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.order-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.order-row:first-child { border-top: 0; }
.order-row .main { display: grid; gap: 2px; min-width: 0; }
.order-row input[type='checkbox'] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.btn-secondary[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.desc-in { display: flex; align-items: center; gap: 6px; }
.stock-mark { display: inline-flex; color: var(--accent); }
/* materials on an appointment */
.ap-parts { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ap-part { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); }
.ap-part:first-child { border-top: 0; }
.ap-part .main { display: grid; gap: 1px; min-width: 0; }
.ap-part .price { min-width: 74px; text-align: right; }
@media (max-width: 560px) {
  .ap-part { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'tag main del' 'tag qty price'; row-gap: 6px; }
  .ap-part > :nth-child(1) { grid-area: tag; align-self: start; }
  .ap-part > .main { grid-area: main; }
  .ap-part > :nth-child(3) { grid-area: qty; justify-self: start; }
  .ap-part > .price { grid-area: price; }
  .ap-part > :nth-child(5) { grid-area: del; }
}
.chip-btn.sugg { font-weight: 500; max-width: 100%; }
.chip-btn .ico { width: 14px; height: 14px; }
.chip-btn:disabled { opacity: 0.6; cursor: default; }
/* import */
.textarea.paste { min-height: 92px; font-size: 14px; }
.map-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.map-table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.map-table th { padding: 8px; background: var(--surface-2); border-bottom: 1px solid var(--line); text-align: left; vertical-align: bottom; min-width: 150px; font-weight: 500; }
.map-table td { padding: 6px 8px; border-top: 1px solid var(--line); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.map-table td.skip { color: var(--ink-3); }
.map-table .select.mapped { border-color: var(--accent); background-color: var(--accent-soft); }
.map-head { margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.pbar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 120px; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
.pbar i.indef { width: 40% !important; animation: indef 1.2s ease-in-out infinite; }
@keyframes indef { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.result-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.result-list .warn { color: var(--warn); }

/* ============================================================
   Garage panel — modules (planning, werkbonnen, financieel,
   vervangend vervoer, showroom, rapportages)
   ============================================================ */
:root {
  /* chart series (validated: lightness band, CVD separation, contrast) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  --topnav-h: 57px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --s1: #3987e5; --s2: #d95926; --s3: #199e70; } }
:root[data-theme='dark'] { --s1: #3987e5; --s2: #d95926; --s3: #199e70; }

/* ---------- grouped sidebar ---------- */
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 10px; }
.side-top .brand { min-width: 0; }
.side-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; margin: 0 -6px; padding: 0 6px 8px; scrollbar-width: thin; }
.nav-group-items { display: grid; gap: 1px; }
.nav-group[data-closed='true'] .nav-group-items { display: none; }
.nav-group-h { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; padding: 8px 12px 3px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-radius: 6px; text-align: left; }
.nav-group-h:hover { color: var(--ink-2); }
.nav-group-h .ico { width: 14px; height: 14px; transition: transform 0.15s; }
.nav-group-h[aria-expanded='false'] .ico { transform: rotate(-90deg); }
.side .nav-item { min-height: 34px; font-size: 15px; gap: 11px; }
.side .nav-item .ico { width: 19px; height: 19px; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot { padding-top: 8px; gap: 6px; }
.tlang .seg { padding: 2px; }
.tlang .seg button { min-height: 30px; padding: 4px 9px; font-size: 13px; }
/* mini mode: icons only */
.side[data-mini='true'] { padding-inline: 8px; }
.side[data-mini='true'] .side-top { justify-content: center; }
.side[data-mini='true'] .side-top .brand,
.side[data-mini='true'] .nav-label,
.side[data-mini='true'] .nav-group-h > * { display: none; }
.side[data-mini='true'] .nav-group-h { height: 1px; padding: 0; margin: 8px 10px; background: var(--line); pointer-events: none; }
.side[data-mini='true'] .nav-group:first-child .nav-group-h { display: none; }
.side[data-mini='true'] .nav-item { justify-content: center; padding: 0; position: relative; }
.side[data-mini='true'] .nav-item .count { position: absolute; top: 1px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 11px; margin: 0; }

/* ---------- top navigation ---------- */
.topnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topnav-in { display: flex; align-items: center; gap: 6px; min-height: calc(var(--topnav-h) - 1px); padding: 8px 12px; }
@media (min-width: 1000px) { .topnav-in { gap: 8px; padding: 8px 28px; } }
.topnav .brand { flex: none; }
.topnav .brand .wordmark { font-size: 19px; }
.tuser { font-size: 14px; font-weight: 600; color: var(--ink-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.tsearch { position: relative; flex: 1 1 auto; min-width: 0; max-width: 460px; display: flex; align-items: center; }
.tsearch > .ico { position: absolute; left: 11px; color: var(--ink-3); pointer-events: none; }
.tsearch-in { width: 100%; min-width: 0; height: 40px; padding: 0 34px 0 34px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; }
.tsearch-in::placeholder { color: var(--ink-3); }
.tsearch-in:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.tsearch-in::-webkit-search-cancel-button { display: none; }
.tsearch kbd { position: absolute; right: 9px; font: 600 12px/1 var(--font); color: var(--ink-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; pointer-events: none; }
.tmenu { position: relative; flex: none; }
.tdrop { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 220px; max-height: min(70vh, 560px); overflow-y: auto; display: grid; gap: 1px; padding: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); animation: sheet 0.14s ease-out; }
.tsearch-drop { left: 0; right: auto; width: min(520px, calc(100vw - 32px)); }
@media (max-width: 999px) { .tsearch-drop { position: fixed; left: 12px; right: 12px; width: auto; top: calc(env(safe-area-inset-top, 0px) + var(--topnav-h) + 4px); } }
.bell-drop { width: min(380px, calc(100vw - 24px)); }
.tdrop-group + .tdrop-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.tdrop-h { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 6px 8px 3px; }
.tdrop-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 15px; text-align: left; cursor: pointer; text-decoration: none; }
.tdrop-item:hover, .tdrop-item:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tdrop-item .ico { color: var(--ink-3); }
.tdrop-item[aria-checked='true'] { color: var(--accent); font-weight: 600; }
.tdrop-item[aria-checked='true'] .ico { color: var(--accent); }
.tdrop-item .main { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; }
.tdrop-item .t1 { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdrop-item .t2 { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell { position: relative; }
.bell-count { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
.note-item { align-items: flex-start; }
.note-item .dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; flex: none; background: transparent; }
.note-item .t1 { font-weight: 500; white-space: normal; }
.note-item.unread .dot { background: var(--accent); }
.note-item.unread .t1 { font-weight: 600; }

/* offline queue on the mechanic's phone */
.offline-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--warn-bg); color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: 14px; font-weight: 500; }
.offline-bar .ico { color: var(--warn); }
.offline-bar .btn { margin-left: auto; }
@media (min-width: 1000px) { .offline-bar { padding-inline: 28px; } }

/* sticky "unsaved changes" bar */
.sticky-save { position: sticky; z-index: 15; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-float); }
@media (min-width: 1000px) { .sticky-save { bottom: 16px; } }

.more-h { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 0 4px; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.dash-main, .dash-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; align-content: start; }
@media (min-width: 1280px) { .dash { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
@media (max-width: 719px) { .kpi b { font-size: clamp(22px, 6.4vw, 30px); } }
.kpis.kpis-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis.kpis-3 > :nth-child(2) { grid-column: 1 / -1; order: -1; }
@media (min-width: 720px) { .kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.kpis-3 > :nth-child(2) { grid-column: auto; order: 0; } }
.task-list { display: grid; }
.task-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.task-row:first-child { border-top: 0; padding-top: 0; }
.task-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.task-row .main, .task-full .main { display: grid; gap: 1px; min-width: 0; }
.task-row .t1 { font-size: 15px; font-weight: 500; }
.task-row .t2 { font-size: 13px; color: var(--ink-3); }
.task-full { cursor: default; }
.task-full:hover { background: none; }
.task-full .link-btn { color: inherit; text-decoration: none; font-weight: 400; }
.task-full .link-btn:hover .t1 { color: var(--accent); }
.big-check { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.main-link { min-width: 0; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-link:hover .strong { color: var(--accent); }
.note-line { display: grid; gap: 1px; padding-left: 14px; position: relative; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.note-line::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.note-line[data-unread='true'] { color: var(--ink); font-weight: 600; }
.note-line[data-unread='true']::before { background: var(--accent); }
.note-line:hover .t1 { color: var(--accent); }

/* ---------- staff, pickers, money ---------- */
.staff-dot { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--c); color: var(--ci, #fff); font-family: var(--font-cond); font-weight: 700; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); }
.picked .main { display: grid; gap: 1px; min-width: 0; }
.picked .t1 { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked .t2 { font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-in { position: relative; display: block; }
.search-in > .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-in > .input { padding-left: 38px; }
.money-in { position: relative; display: block; min-width: 0; }
.money-in > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; font-size: 15px; }
.money-in > .input { padding-left: 28px; }
.money-in > .input-sm { padding-left: 24px; }
.money-in:has(> .input-sm) > span { left: 10px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-btn { text-decoration: none; }
.chip-btn .count { min-width: 20px; height: 20px; font-size: 12px; }
.chip-btn[aria-pressed='true'] .muted { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* ---------- documents & photos ---------- */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.file-tile { position: relative; display: grid; gap: 4px; min-width: 0; }
.file-tile > a { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-3); text-decoration: none; }
.file-tile > a:hover { border-color: var(--line-2); }
.file-tile img { width: 100%; height: 100%; object-fit: cover; }
.file-ico { display: grid; justify-items: center; gap: 2px; font-weight: 700; }
.file-ico .ico { width: 28px; height: 28px; stroke-width: 1.5; }
.file-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-del { position: absolute; top: 4px; right: 4px; width: 32px; min-height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18); }
.receipt-img { display: block; max-width: min(100%, 240px); max-height: 240px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #ffffff; }

/* signatures: always drawn dark on white, also in dark mode */
.sig { display: grid; gap: 6px; }
.sig-pad { display: block; width: 100%; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #ffffff; touch-action: none; cursor: crosshair; }
.sig-foot { display: flex; align-items: center; gap: 10px; }
.sig-line { flex: 1 1 auto; height: 1px; background: var(--line-2); }
.sig-box { display: grid; gap: 8px; align-content: start; justify-items: start; min-height: 116px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.sig-img { display: block; max-width: 100%; max-height: 110px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: #ffffff; }

/* ---------- lines editor (facturen, offertes) ---------- */
.lines-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; container-type: inline-size; }
.lines-edit { min-width: 0; }
.lines-edit td.kind { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.lines-edit .select.input-sm { padding-right: 30px; background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%; }
.lines-edit .desc { min-width: 160px; }
.lines-edit .desc .input { min-width: 0; }
.w-qty { width: 64px; text-align: right; }
.w-price { width: 96px; text-align: right; }
.w-disc { width: 58px; text-align: right; }
.w-vat { width: 78px; }
.lines-edit td:last-child { width: 1%; }
.lines-edit td.r { white-space: nowrap; }
/* narrow editor (phone, or a narrow column): one card per line */
@container (max-width: 640px) {
  .lines-edit.is-edit thead { display: none; }
  .lines-edit.is-edit tbody { display: grid; gap: 10px; }
  .lines-edit.is-edit tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: 'desc desc desc del' 'qty price vat disc' 'kind kind tot tot'; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
  .lines-edit.is-edit td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
  .lines-edit.is-edit td:nth-child(1) { grid-area: kind; }
  .lines-edit.is-edit td:nth-child(2) { grid-area: desc; }
  .lines-edit.is-edit td:nth-child(2)::before { display: none; }
  .lines-edit.is-edit td:nth-child(3) { grid-area: qty; }
  .lines-edit.is-edit td:nth-child(4) { grid-area: price; }
  .lines-edit.is-edit td:nth-child(5) { grid-area: vat; }
  .lines-edit.is-edit td:nth-child(6) { grid-area: disc; }
  .lines-edit.is-edit td:nth-child(7) { grid-area: tot; align-self: center; text-align: right; font-weight: 700; font-size: 16px; }
  .lines-edit.is-edit td:nth-child(8) { grid-area: del; justify-self: end; align-self: center; width: auto; }
  .lines-edit.is-edit td:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6))::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lines-edit.is-edit .input, .lines-edit.is-edit .select { width: 100%; }
  .lines-edit.is-edit .desc { min-width: 0; }
}

/* ---------- werkbon ---------- */
.wb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 1440px) {
  .wb { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: 'head time' 'compl time' 'lines sign' 'checks sign'; }
  .wb > .wb-head { grid-area: head; }
  .wb > .wb-compl { grid-area: compl; }
  .wb > .wb-lines { grid-area: lines; }
  .wb > .wb-time { grid-area: time; }
  .wb > .wb-checks { grid-area: checks; }
  .wb > .wb-sign { grid-area: sign; }
}
.wb-row .side-info { min-width: 0; }
.wl { display: grid; border: 1px solid var(--line); border-radius: 12px; container-type: inline-size; }
.wl-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: 'kind main nums' 'kind hint hint'; gap: 4px 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.wl-row:first-child { border-top: 0; border-radius: 12px 12px 0 0; }
.wl-row:last-child { border-radius: 0 0 12px 12px; }
.wl-row:only-child { border-radius: 12px; }
.wl-row.locked { background: var(--surface-2); }
.wl-head { padding-block: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); }
.wl-head .wl-nums > * { justify-self: end; }
.wl-head .wl-nums > :nth-child(1), .wl-head .wl-nums > :nth-child(2) { justify-self: center; }
.wl-kind { grid-area: kind; align-self: start; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--tb); color: var(--tc); }
.k-labor { --tc: var(--t-blue); --tb: var(--t-blue-bg); }
.k-part { --tc: var(--t-teal); --tb: var(--t-teal-bg); }
.k-other { --tc: var(--t-gray); --tb: var(--t-gray-bg); }
.wl-main { grid-area: main; display: grid; gap: 3px; min-width: 0; }
.wl-main .strong { overflow-wrap: anywhere; }
.wl-nums { grid-area: nums; display: grid; grid-template-columns: 60px 92px 54px 92px 36px; gap: 6px; align-items: center; justify-items: end; }
.wl-nums .input { width: 100%; text-align: right; }
.wl-total { min-width: 0; }
.wl-hint { grid-area: hint; }
.wl-foot { display: grid; justify-items: end; gap: 12px; padding-top: 4px; }
.wl-foot .doc-tot { width: min(100%, 320px); }
@container (max-width: 560px) {
  .wl-head { display: none; }
  .wl-head + .wl-row { border-top: 0; border-radius: 12px 12px 0 0; }
  .wl-row { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: 'kind main' 'nums nums' 'hint hint'; }
  .wl-nums { grid-template-columns: 52px minmax(64px, 1fr) 48px minmax(72px, auto) 36px; gap: 4px; justify-items: stretch; }
  .wl-total { text-align: right; }
}
.timer-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.timer-row[data-running='true'] { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); }
.timer-row .main { min-width: 0; }
.live { color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.checks { border: 1px solid var(--line); border-radius: 12px; }
.checks-h { padding: 8px 12px; font-weight: 600; font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.chk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 8px 12px; }
.chk + .chk { border-top: 1px solid var(--line); }
.chk[data-r='ok'] { box-shadow: inset 3px 0 0 var(--ok); }
.chk[data-r='advice'] { box-shadow: inset 3px 0 0 var(--warn); }
.chk[data-r='fail'] { box-shadow: inset 3px 0 0 var(--bad); }
.chk-label { font-size: 15px; min-width: 0; }
.chk-btns { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chk-btn { min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chk-btn:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.chk-btn:disabled { cursor: default; opacity: 0.7; }
.chk-btn[aria-pressed='true'] { color: var(--surface); }
.chk-btn.r-ok[aria-pressed='true'] { background: var(--ok); border-color: var(--ok); }
.chk-btn.r-advice[aria-pressed='true'] { background: var(--warn); border-color: var(--warn); }
.chk-btn.r-fail[aria-pressed='true'] { background: var(--bad); border-color: var(--bad); }
.chk-btn.r-na[aria-pressed='true'] { background: var(--ink-3); border-color: var(--ink-3); }
.chk-note { grid-column: 1 / -1; flex-wrap: nowrap; }
.chk-note .input { width: auto; flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .chk { grid-template-columns: minmax(0, 1fr); }
  .chk-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chk-btn { padding: 0 4px; }
}

/* ---------- planning (one day, mechanics or lifts on a time line) ---------- */
.pl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.pl { --name-w: 172px; min-width: calc(var(--name-w) + var(--hours, 10) * 76px); display: grid; }
@media (max-width: 640px) { .pl { --name-w: 118px; } }
.pl-head, .pl-row { display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr); }
.pl-head { background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.pl-row + .pl-row { border-top: 1px solid var(--line); }
.pl-name { position: sticky; left: 0; z-index: 3; display: grid; gap: 2px; align-content: center; min-width: 0; padding: 10px 12px; background: var(--surface); border-right: 1px solid var(--line); }
.pl-head .pl-name { background: var(--surface-2); border-radius: 14px 0 0 0; }
.pl-name { overflow: hidden; }
.pl-name .row { min-width: 0; }
.pl-name .strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-track { position: relative; min-height: 78px; cursor: copy; }
.pl-scale { min-height: 32px; cursor: default; }
.pl-hour { position: absolute; top: 8px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-hour:first-child { transform: translateX(4px); }
.pl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.pl-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--bad); z-index: 2; pointer-events: none; }
.pl-now-head::after { content: ''; position: absolute; bottom: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.pl-row.pl-drop .pl-track { background: var(--accent-soft); }
.pl-job { position: absolute; top: 6px; bottom: 6px; z-index: 1; display: grid; align-content: start; gap: 1px; min-width: 0; padding: 5px 8px 5px 10px; overflow: hidden; border: 1px solid var(--jb); border-radius: 8px; background: var(--jbg); color: var(--ink); box-shadow: inset 3px 0 0 var(--jc); text-align: left; font: inherit; cursor: grab; touch-action: pan-x pan-y; }
.pl-job:hover { border-color: var(--jc); }
.pl-job.g-planned { --jc: var(--t-blue); --jbg: var(--t-blue-bg); --jb: color-mix(in srgb, var(--t-blue) 30%, transparent); }
.pl-job.g-busy { --jc: var(--t-orange); --jbg: var(--t-orange-bg); --jb: color-mix(in srgb, var(--t-orange) 30%, transparent); }
.pl-job.g-done { --jc: var(--t-green); --jbg: var(--t-green-bg); --jb: color-mix(in srgb, var(--t-green) 30%, transparent); }
.pl-job.clash { --jb: var(--bad); box-shadow: inset 3px 0 0 var(--bad), 0 0 0 1px var(--bad); background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--bad) 12%, transparent) 7px 13px); }
.pl-job.dragging { z-index: 5; opacity: 0.9; cursor: grabbing; box-shadow: inset 3px 0 0 var(--jc), var(--shadow-float); }
.pl-job-top { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pl-plate { padding: 0 4px; border-radius: 3px; background: var(--plate); color: var(--plate-ink); font-family: var(--font-cond); font-weight: 700; letter-spacing: 0.03em; box-shadow: inset 0 0 0 1px rgba(18, 22, 27, 0.5); }
.pl-job-t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-job-s { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-legend { display: inline-flex; align-items: center; flex-wrap: wrap; row-gap: 4px; font-size: 13px; color: var(--ink-2); }
.pl-legend i { display: inline-block; width: 14px; height: 12px; margin: 0 6px 0 14px; border-radius: 3px; vertical-align: -1px; }
.pl-legend i:first-child { margin-left: 0; }
.pl-legend .g-planned, .pl-legend .s-reserved { background: var(--t-blue-bg); box-shadow: inset 3px 0 0 var(--t-blue), inset 0 0 0 1px color-mix(in srgb, var(--t-blue) 35%, transparent); }
.pl-legend .g-busy, .pl-legend .s-out { background: var(--t-orange-bg); box-shadow: inset 3px 0 0 var(--t-orange), inset 0 0 0 1px color-mix(in srgb, var(--t-orange) 35%, transparent); }
.pl-legend .g-done { background: var(--t-green-bg); box-shadow: inset 3px 0 0 var(--t-green), inset 0 0 0 1px color-mix(in srgb, var(--t-green) 35%, transparent); }
.pl-legend .s-returned { background: var(--t-gray-bg); box-shadow: inset 3px 0 0 var(--t-gray), inset 0 0 0 1px color-mix(in srgb, var(--t-gray) 35%, transparent); }

/* ---------- vervangend vervoer: month calendar, one row per car ---------- */
.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.cal { --name-w: 168px; min-width: calc(var(--name-w) + var(--days, 31) * 26px); display: grid; }
@media (max-width: 640px) { .cal { --name-w: 112px; } }
.cal-row { display: grid; grid-template-columns: var(--name-w) minmax(0, 1fr); }
.cal-row + .cal-row { border-top: 1px solid var(--line); }
.cal-head { background: var(--surface-2); border-radius: 14px 14px 0 0; }
.cal-name { position: sticky; left: 0; z-index: 2; display: grid; gap: 3px; align-content: center; justify-items: start; min-width: 0; padding: 8px 10px; background: var(--surface); border-right: 1px solid var(--line); }
.cal-head .cal-name { background: var(--surface-2); border-radius: 14px 0 0 0; }
.cal-name .tiny { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-days { position: relative; display: grid; grid-template-columns: repeat(var(--days, 31), minmax(0, 1fr)); }
.cal-day { padding: 7px 0; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal-day.weekend { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.cal-day.today { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cal-track { min-height: 52px; }
.cal-cell { min-height: 52px; padding: 0; border: 0; border-left: 1px solid color-mix(in srgb, var(--line) 55%, transparent); background: none; cursor: copy; }
.cal-cell:hover { background: var(--accent-soft); }
.cal-cell.today { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cal-bar { position: absolute; top: 10px; height: 32px; z-index: 1; display: flex; align-items: center; min-width: 0; padding: 0 8px 0 10px; border-left: 2px solid transparent; border-right: 2px solid transparent; background-clip: padding-box; border-radius: 8px; color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; }
.cal-bar span { overflow: hidden; text-overflow: ellipsis; }
.cal-bar:hover { filter: brightness(0.97); }
.cal-bar.s-reserved { background-color: var(--t-blue-bg); box-shadow: inset 3px 0 0 var(--t-blue); }
.cal-bar.s-out { background-color: var(--t-orange-bg); box-shadow: inset 3px 0 0 var(--t-orange); }
.cal-bar.s-returned { background-color: var(--t-gray-bg); box-shadow: inset 3px 0 0 var(--t-gray); color: var(--ink-2); }
.cal-bar.s-cancelled { display: none; }
/* fuel gauge in eighths */
.fuel { display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap; }
.fuel-step { width: 24px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); cursor: pointer; }
.fuel-step:first-child { width: 14px; }
.fuel-step.on { background: var(--accent); border-color: var(--accent); }
.fuel .num { margin-left: 8px; align-self: center; }

/* ---------- showroom & public stock pages ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.car-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.car-card:hover { border-color: var(--line-2); }
.car-card:hover .car-img img { transform: scale(1.02); }
.car-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.car-img img, .car-hero img, .car-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-img img { transition: transform 0.25s; }
.car-ph { color: var(--line-2); }
.car-ph .ico { width: 56px; height: 56px; stroke-width: 1.2; }
.car-status { position: absolute; left: 10px; top: 10px; }
.car-status .badge { box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18); }
.car-body { display: grid; gap: 4px; align-content: start; padding: 12px 14px 14px; min-width: 0; }
.car-price { margin-top: 2px; font-family: var(--font-cond); font-size: 24px; font-weight: 700; line-height: 1.15; }
.car-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 900px) { .car-detail { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.car-hero { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--surface-2); max-width: 100%; }
.car-hero .car-ph .ico { width: 88px; height: 88px; }
.car-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.car-thumb { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.car-thumb[aria-pressed='true'] { border-color: var(--accent); }
/* add a cost / item: description, amounts, button in one row */
.cost-add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(96px, 1fr) minmax(0, 1.3fr) auto; gap: 6px; align-items: center; }
.cost-add-4 { grid-template-columns: minmax(0, 2fr) 70px minmax(96px, 1fr) minmax(96px, 1fr) auto; }
@media (max-width: 560px) {
  .cost-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cost-add > :first-child, .cost-add > :last-child { grid-column: 1 / -1; }
  .cost-add > :last-child { justify-self: start; }
  .cost-add-4 { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); }
}
.item-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pay-row { padding: 6px 0; border-top: 1px solid var(--line); }
.pay-row:first-child { border-top: 0; padding-top: 0; }

/* ---------- kasboek ---------- */
.acct-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.acct { align-content: start; }
.acct b { font-size: 26px; }
.acct .tiny { color: var(--ink-3); }
.acct[aria-pressed='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.acct-add { place-content: center; justify-items: center; border-style: dashed; color: var(--ink-3); min-height: 92px; }
.acct-add:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 719px) { .acct-add { grid-column: 1 / -1; min-height: 0; grid-auto-flow: column; gap: 8px; padding: 10px; } }
.cash-table { min-width: 640px; }
.cash-table th:first-child, .cash-table td:first-child { padding-left: 16px; }
.cash-table th:last-child, .cash-table td:last-child { padding-right: 16px; }
.cash-row { cursor: pointer; }
.cash-row:hover td { background: var(--surface-2); }
.cash-row.locked { cursor: default; }
.cash-row td .ico { display: inline-block; vertical-align: -3px; color: var(--ink-3); }
.lines-wrap > .lines:not(.lines-edit) th, .lines-wrap > .lines:not(.lines-edit) td { white-space: nowrap; }

/* ---------- rapportages ---------- */
.viz { display: grid; gap: 10px; }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.s1 { background: var(--s1); }
.sw.s2 { background: var(--s2); }
.sw.s3 { background: var(--s3); }
.viz-tip .sw { margin-right: 6px; }
.viz-box { position: relative; min-width: 0; }
.viz-svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.viz-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.viz-axis { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.viz-tick { fill: var(--ink-3); font: 500 11.5px var(--font); font-variant-numeric: tabular-nums; }
.viz-bar.s1 { fill: var(--s1); }
.viz-bar.s2 { fill: var(--s2); }
.viz-bar.s3 { fill: var(--s3); }
.viz-bar { transition: opacity 0.12s; }
.viz-tip { position: absolute; top: 4px; transform: translateX(-50%); z-index: 2; display: grid; gap: 3px; min-width: 190px; padding: 9px 11px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-float); font-size: 13px; pointer-events: none; }
.rank { margin: 0; padding: 0; list-style: none; display: grid; counter-reset: rank; }
.rank li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); counter-increment: rank; }
.rank li:first-child { border-top: 0; padding-top: 0; }
.rank li::before { content: counter(rank); font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rank li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aging { display: grid; gap: 10px; }
.aging-row { display: grid; grid-template-columns: minmax(84px, max-content) minmax(0, 1fr) minmax(84px, max-content); gap: 12px; align-items: center; }
.aging-row > .num { text-align: right; }
.aging-track { height: 10px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.aging-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--s1); }
.aging-track i.late { background: var(--bad); }

/* ---------- voertuigen ---------- */
.timeline { margin: 0; padding: 0; list-style: none; display: grid; }
.timeline li { position: relative; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 40px; bottom: -6px; width: 2px; background: var(--line); }
.tl-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; color: inherit; text-decoration: none; }
a.tl-row:hover .t1 { color: var(--accent); }
.tl-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.tl-row .main { display: grid; gap: 1px; min-width: 0; }
.tl-row .t1 { font-weight: 600; font-size: 15px; }
.tl-row .t2 { font-size: 13.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.km-row { display: grid; grid-template-columns: minmax(84px, max-content) minmax(0, 1fr) minmax(88px, max-content); gap: 10px; align-items: center; }
.km-row > .num { text-align: right; }
.km-track { height: 8px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.km-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--s1); }

/* ---------- instellingen ---------- */
.set-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; }
.set-row > .input { flex: 1 1 160px; width: auto; min-width: 0; }
.set-row > .select { flex: 0 1 150px; width: auto; }
.set-row[data-off='true'] > :not(.toggle) { opacity: 0.55; }
.code-box { margin: 0; max-height: 220px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font: 12.5px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.color-in { flex: none; width: 40px; height: 38px; padding: 3px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); cursor: pointer; }
.color-in::-webkit-color-swatch-wrapper { padding: 0; }
.color-in::-webkit-color-swatch { border: 0; border-radius: 5px; }
.color-in::-moz-color-swatch { border: 0; border-radius: 5px; }

/* ---------- printed documents (werkbon, leenovereenkomst, koopovereenkomst) ---------- */
#print-root { display: none; }
.print-doc { color: #000000; background: #ffffff; font: 400 10.5pt/1.4 var(--font); }
.pd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid #000000; }
.pd-garage { font-family: var(--font-cond); font-size: 18pt; font-weight: 700; line-height: 1.1; }
.pd-small { font-size: 8.5pt; color: #444444; }
.pd-right { text-align: right; }
.pd-title { font-family: var(--font-cond); font-size: 13pt; font-weight: 700; letter-spacing: 0.08em; }
.pd-big { font-family: var(--font-cond); font-size: 20pt; font-weight: 700; line-height: 1.1; }
.pd-facts { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.pd-facts th { width: 15%; padding: 4px 8px 4px 0; text-align: left; vertical-align: top; font-size: 8.5pt; font-weight: 600; color: #444444; }
.pd-facts td { padding: 4px 14px 4px 0; vertical-align: top; border-bottom: 1px solid #cccccc; }
.pd-block { margin-top: 14px; break-inside: avoid; }
.pd-h { margin-bottom: 6px; padding-bottom: 3px; border-bottom: 1px solid #000000; font-size: 10pt; font-weight: 700; }
.pd-text { white-space: pre-wrap; }
.pd-lines, .pd-checks { width: 100%; border-collapse: collapse; }
.pd-lines th { padding: 4px; text-align: left; font-size: 8.5pt; border-bottom: 1px solid #000000; }
.pd-lines td { padding: 6px 4px; vertical-align: top; border-bottom: 1px solid #cccccc; }
.pd-lines .r { text-align: right; white-space: nowrap; }
.pd-box { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #000000; border-radius: 2px; vertical-align: -2px; }
.pd-empty td { height: 28px; }
.pd-tot { width: 45%; margin: 8px 0 0 auto; }
.pd-tot > div { display: flex; justify-content: space-between; padding: 2px 0; }
.pd-grand { margin-top: 4px; padding-top: 4px; border-top: 1.5px solid #000000; font-weight: 700; }
.pd-checks td { padding: 4px; font-size: 9.5pt; border-bottom: 1px solid #dddddd; vertical-align: top; }
.pd-res { white-space: nowrap; font-weight: 600; }
.pd-terms { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: 8.5pt; }
.pd-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 26px; break-inside: avoid; }
.pd-sig { display: grid; gap: 4px; align-content: end; min-height: 96px; }
.pd-sig-line { height: 54px; border-bottom: 1px solid #000000; }
.pd-sig-img { display: block; max-width: 220px; max-height: 64px; }
@media print {
  @page { size: A4; margin: 14mm; }
  body.printing { background: #ffffff; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  .topnav, .side, .tabbar, .offline-bar, .sticky-save, .demo-bar { display: none !important; }
}

/* Inkopen (purchase invoices) */
.pu-drop { display: grid; gap: 10px; }
.pu-zone { border: 1.5px dashed var(--line-2, var(--line)); border-radius: var(--r-md); padding: 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--surface); }
.pu-drop.is-drag .pu-zone { border-color: var(--accent); background: var(--accent-soft, var(--surface-2)); }
.pu-check { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.pu-check:last-child { border-bottom: 0; }
.pu-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.pu-table td { white-space: nowrap; }
.pu-table td:nth-child(2) { white-space: normal; min-width: 140px; }
.pu-form { display: grid; gap: 16px; }
.pu-img { width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); min-height: 120px; }
@media (min-width: 900px) { .pu-form:has(.pu-img) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .pu-img { max-height: 520px; } }

/* KvK suggestions (customer and supplier forms) */
.spin-sm { width: 14px; height: 14px; border-width: 2px; }
.kvk-list { max-height: 320px; overflow-y: auto; }
.kvk-list .list-row { width: 100%; text-align: left; }
.kvk-list .side-info { white-space: nowrap; }

/* ============================================================
   House style (navy) — overrides that give every page the same
   calm, solid look: navy structure, white cards, soft depth.
   ============================================================ */

/* ---------- shared surfaces ---------- */
.panel, .list, .kpi, .review, .lane .job, .pl-wrap, .cal-wrap, .car-card, .map-wrap { box-shadow: var(--shadow-card); }
.panel { border-color: var(--line); }
.panel-head h2, .panel-head h3, .panel > h3:first-child { letter-spacing: 0.005em; }
.btn-primary { background: var(--accent); box-shadow: 0 1px 2px rgba(15, 27, 46, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-secondary { box-shadow: 0 1px 1px rgba(15, 27, 46, 0.04); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent-line); color: var(--accent); }
.seg { background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); }
.seg button[aria-pressed='true'] { color: var(--accent); }
.tabs button[aria-selected='true'] { color: var(--accent); }
.input:hover:not(:focus), .select:hover:not(:focus), .textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--accent) 30%, var(--line-2)); }
.day[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day[aria-pressed='true'] .dw, .day[aria-pressed='true'] .dm { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.chip-btn[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.toast { background: var(--navy); color: var(--navy-ink); }
.backdrop { background: rgba(8, 17, 32, 0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal-head h2 { color: var(--ink); }

/* empty lists: a quiet drawing above the text */
.empty { display: grid; justify-items: center; gap: 10px; }
.empty-art { width: 96px; height: auto; stroke: color-mix(in srgb, var(--accent) 38%, var(--line-2)); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.panel .empty, .list .empty { padding: 20px 12px; }

/* ---------- garage panel: navy sidebar ---------- */
@media (min-width: 1000px) {
  .admin { background: linear-gradient(90deg, var(--navy) 0 var(--side-w), var(--paper) var(--side-w)); }
  .side { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); border-right: 0; color: var(--navy-ink); padding: 14px 12px 12px; }
}
.side .nav-item { color: var(--navy-ink-2); min-height: 31px; font-weight: 500; border-radius: 8px; position: relative; }
.side .nav-item .ico { opacity: 0.85; }
.side .nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.side .nav-item[aria-current='page'] { background: rgba(255, 255, 255, 0.1); color: #ffffff; font-weight: 600; }
.side .nav-item[aria-current='page']::before { content: ''; position: absolute; left: -6px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--navy-hi); }
.side .nav-item[aria-current='page'] .ico { opacity: 1; color: var(--navy-hi); }
.side .nav-group-h { color: rgba(255, 255, 255, 0.42); font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; padding: 9px 12px 3px; }
.side .nav-group-h:hover { color: rgba(255, 255, 255, 0.7); }
.side .side-nav { gap: 0; padding-bottom: 18px; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); }
.side .side-foot { gap: 2px; padding-top: 6px; }
.side .side-foot .btn-sm { min-height: 31px; justify-content: flex-start; padding: 0 12px; font-weight: 500; }
.side .side-foot { border-top: 1px solid var(--navy-line); }
.side .btn-ghost { color: var(--navy-ink-2); }
.side .btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.side .btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--navy-ink); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.side .btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); color: #ffffff; border-color: rgba(255, 255, 255, 0.24); }
.side[data-mini='true'] .nav-group-h { background: var(--navy-line); }
.side[data-mini='true'] .nav-item[aria-current='page']::before { left: -8px; }
/* the logo sits on a white tile, so any logo (dark letters, colours) reads well on navy */
.brand-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border-radius: 12px; background: #ffffff; color: var(--navy); text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.brand-tile img { display: block; height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.brand-tile .wordmark { color: #11264a; font-size: 20px; }
.brand-tile .wordmark small { color: #6a778d; }
.side-top .brand-tile { flex: 0 1 auto; margin-right: auto; }
.side-sub { display: none; padding: 8px 4px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.side[data-mini='true'] .brand-tile, .side[data-mini='true'] .side-sub { display: none; }
.side-top { flex-wrap: wrap; }

/* top bar of the panel */
.topnav { background: color-mix(in srgb, var(--surface) 92%, transparent); }
.topnav .brand-tile { padding: 5px 9px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); }
.topnav .brand-tile img { height: 24px; max-width: 110px; }
.topnav .brand-tile .wordmark { font-size: 17px; }
.tsearch-in { background: var(--surface-2); border-color: var(--line); }
.tsearch-in:focus { background: var(--surface); }
.a-top h1 { color: var(--ink); }

/* phone tab bar */
.tabbar { box-shadow: 0 -4px 16px rgba(15, 27, 46, 0.06); }
.tab[aria-current='page'] { color: var(--accent); }
.tab[aria-current='page']::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 2.5px; border-radius: 0 0 3px 3px; background: var(--accent); }

/* dashboard figures */
.kpi { padding: 14px 16px; gap: 4px; position: relative; overflow: hidden; }
.kpi b { color: var(--ink); font-size: 28px; }
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.kpi[data-hot='true']::after { background: var(--plate); }
a.kpi:hover, .kpi-btn:hover { border-color: var(--accent-line); }
.lane { background: color-mix(in srgb, var(--accent) 5%, var(--paper)); }

/* ---------- login: navy picture on the left, form on the right ---------- */
.login-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); }
@media (min-width: 900px) { .login-split { grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); } }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 200px; padding: 28px clamp(20px, 4vw, 48px); color: #ffffff;
  background: radial-gradient(120% 90% at 85% 10%, rgba(141, 182, 255, 0.22), transparent 60%), linear-gradient(160deg, #163061 0%, #0d2147 48%, #081730 100%); }
.login-art[data-photo='true'] { background: linear-gradient(180deg, rgba(8, 23, 48, 0.35) 0%, rgba(8, 23, 48, 0.55) 55%, rgba(8, 23, 48, 0.92) 100%), var(--photo) center / cover no-repeat, #0d2147; }
.login-art .car-line { position: absolute; right: -3%; bottom: 34%; width: min(66%, 540px); stroke: rgba(255, 255, 255, 0.13); stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.login-art[data-photo='true'] .car-line { display: none; }
.login-art-text { position: relative; max-width: 34ch; }
.login-art-text h2 { color: #ffffff; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; }
.login-art-text p { color: rgba(255, 255, 255, 0.78); margin: 10px 0 0; font-size: 16px; }
.login-pane { display: grid; place-items: center; padding: 28px 16px 40px; }
.login-pane form { width: min(100%, 400px); box-shadow: var(--shadow-raise); border: 0; padding: 28px; }
@media (max-width: 899px) { .login-art { min-height: 0; padding-bottom: 40px; } .login-art .login-art-text p { display: none; } .login-pane { margin-top: -28px; padding-top: 0; } }

/* ---------- customer pages: navy header, picture hero ---------- */
.topbar { background: linear-gradient(180deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 88%, var(--navy-2)) 100%); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--navy-ink); }
.topbar-in { height: 64px; }
.topbar .brand-tile img { height: 30px; max-width: 160px; }
.topbar .brand > .wordmark { color: #ffffff; }
.topbar .btn-ghost { color: var(--navy-ink-2); }
.topbar .btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.topbar .seg { background: rgba(255, 255, 255, 0.08); }
.topbar .seg button { color: rgba(255, 255, 255, 0.72); }
.topbar .seg button[aria-pressed='true'] { background: #ffffff; color: var(--navy); }

.book-hero { position: relative; overflow: hidden; color: #ffffff; padding: 34px 16px 92px;
  background: radial-gradient(90% 120% at 90% 0%, rgba(141, 182, 255, 0.2), transparent 60%), linear-gradient(170deg, color-mix(in srgb, var(--navy) 92%, var(--navy-2)) 0%, var(--navy-2) 100%); }
.book-hero[data-photo='true'] { background: linear-gradient(90deg, rgba(8, 23, 48, 0.95) 0%, rgba(8, 23, 48, 0.82) 42%, rgba(8, 23, 48, 0.4) 100%), var(--photo) center / cover no-repeat, var(--navy-2); }
@media (max-width: 719px) { .book-hero[data-photo='true'] { background: linear-gradient(180deg, rgba(8, 23, 48, 0.72) 0%, rgba(8, 23, 48, 0.94) 100%), var(--photo) center / cover no-repeat, var(--navy-2); } }
.book-hero-in { position: relative; max-width: 1088px; margin: 0 auto; display: grid; gap: 12px; }
.book-hero h1 { color: #ffffff; }
.book-hero .lede { color: rgba(255, 255, 255, 0.82); margin: 0; }
.book-hero .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-hi); }
.book-hero .car-line { position: absolute; right: max(16px, calc(50% - 560px)); bottom: 86px; width: min(40%, 400px); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.3; fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.book-hero[data-photo='true'] .car-line { display: none; }
@media (max-width: 719px) { .book-hero .car-line { display: none; } .book-hero .lede + .lede { display: none; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: rgba(255, 255, 255, 0.86); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ico { width: 17px; height: 17px; color: var(--navy-hi); }
.book-hero-sm { padding-bottom: 76px; padding-top: 22px; }
.book-hero-sm .lede, .book-hero-sm .trust { display: none; }
.book-page { margin-top: -64px; position: relative; padding-top: 0 !important; }
.book-page .book-main { background: var(--surface); border-radius: 18px; padding: clamp(18px, 3.4vw, 32px); box-shadow: var(--shadow-raise); }
.book-page .steps { margin-top: 0; }
@media (max-width: 959px) { .book-page .wizard-actions.sticky { margin-inline: calc(-1 * clamp(18px, 3.4vw, 32px)); margin-bottom: calc(-1 * clamp(18px, 3.4vw, 32px)); border-radius: 0 0 18px 18px; padding-inline: clamp(18px, 3.4vw, 32px); background: color-mix(in srgb, var(--surface) 94%, transparent); } }
@media (min-width: 960px) { .book-page .book-aside { top: 24px; } .book-page .book-aside .panel { box-shadow: var(--shadow-raise); border: 0; } }
.steps li[data-state='done']::before { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* service choice with an icon per job */
.svc:has(.svc-ico) { grid-template-columns: 22px 40px minmax(0, 1fr) auto; align-items: center; }
.svc-ico { grid-row: span 2; align-self: start; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); color: var(--accent); }
.svc[data-on='true'] .svc-ico { background: var(--accent); color: var(--accent-ink); }
.svc:has(.svc-ico) .svc-desc { grid-column: 3 / -1; }
.svc:hover { border-color: var(--accent-line); }
.svc .check { align-self: center; }
@media (max-width: 420px) { .svc:has(.svc-ico) { grid-template-columns: 22px 34px minmax(0, 1fr); } .svc-ico { width: 34px; height: 34px; } .svc-meta { grid-column: 3; text-align: left; } }

.foot { background: var(--surface); margin-top: 56px; }
.foot .brand-tile { box-shadow: inset 0 0 0 1px var(--line); padding: 5px 9px; }
.foot .brand-tile img { height: 22px; }

/* ---------- Instellingen → foto's ---------- */
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.look-slot { display: grid; gap: 10px; align-content: start; }
.look-prev { position: relative; aspect-ratio: 16 / 7; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #163061, #081730); display: grid; place-items: center; color: rgba(255, 255, 255, 0.7); font-size: 13px; text-align: center; padding: 10px; }
.look-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Art direction: 60 · 30 · 10, lineless colour blocking
   60 % calm paper (the dominant ground)
   30 % navy blocks (sidebar, header, hero, primary actions)
   10 % signal orange — only where the eye must go first
   No outlines: surfaces are separated by tone, not by strokes.
   ============================================================ */
:root {
  --signal: #ff7a1a;
  --signal-ink: #10223f;
  --signal-soft: color-mix(in srgb, var(--signal) 14%, var(--surface));
  /* fill for inputs and quiet blocks inside white cards */
  --fill: #eef2f8;
  --fill-2: #e3e9f2;
  /* paper grain: the "hand-painted" texture laid over grounds */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --line: #e6ebf2;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --fill: #17253d; --fill-2: #1d2d48; --line: #1c2a42; --signal-ink: #0a1324; } }
:root[data-theme='dark'] { --fill: #17253d; --fill-2: #1d2d48; --line: #1c2a42; --signal-ink: #0a1324; }

/* painted grounds: soft washes + grain instead of flat fills */
body { background: radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%), var(--paper); }
body::after { content: ''; position: fixed; inset: 0; z-index: 200; pointer-events: none; background-image: var(--grain); opacity: 0.035; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) body::after { mix-blend-mode: screen; opacity: 0.03; } }
:root[data-theme='dark'] body::after { mix-blend-mode: screen; opacity: 0.03; }
@media print { body::after { display: none; } }

/* ---------- lineless surfaces ---------- */
.panel, .list, .kpi, .review, .job, .svc, .day, .slot, .pl-wrap, .cal-wrap, .car-card, .map-wrap, .moves, .order-pick, .ap-parts, .wl, .checks, .timer-row, .picked, .dropoff-card, .vehicle-facts, .note, .code-chip, .tdrop, .modal, .acct, .thumb, .photo, .file-tile > a, .stock-strip, .sig-box, .look-prev, .qty-tag.tone-gray { border-color: transparent !important; }
.qty-tag.tone-gray { box-shadow: none; background: var(--fill); }
.lane .job { box-shadow: 0 1px 2px rgba(15, 27, 46, 0.06); }
.note { background: var(--fill); }
.note-warn { background: var(--warn-bg); }
.note-ok { background: var(--ok-bg); }
.note-bad { background: var(--bad-bg); }
.note-accent { background: var(--accent-soft); }
.input, .select, .textarea, .tsearch-in { background-color: var(--fill); border-color: transparent; }
.input:hover:not(:focus), .select:hover:not(:focus), .textarea:hover:not(:focus) { border-color: transparent; background-color: var(--fill-2); }
.input:focus, .select:focus, .textarea:focus, .tsearch-in:focus { background-color: var(--surface); border-color: transparent; box-shadow: var(--ring), inset 0 0 0 1px var(--accent-line); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { background-color: var(--bad-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 50%, transparent); }
.btn-secondary { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: transparent; color: var(--accent); box-shadow: none; }
.btn-secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: transparent; }
.btn-danger { background: var(--bad-bg); border-color: transparent; }
.check input, .toggle input { border-color: transparent; background-color: var(--fill-2); }
.check input:checked { background: var(--accent); }
.chip-btn { border-color: transparent; background: var(--fill); }
.svc { background: var(--fill); box-shadow: none; }
.svc:hover { background: var(--fill-2); }
.svc[data-on='true'] { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.day, .slot { background: var(--fill); }
.day:hover:not(:disabled), .slot:hover { background: var(--fill-2); }
.lines th { border-bottom: 0; background: var(--fill); }
.lines th:first-child { border-radius: 8px 0 0 8px; }
.lines th:last-child { border-radius: 0 8px 8px 0; }
.review-row, .list-row, .req, .move, .order-row, .ap-part, .wl-row, .chk + .chk, .item-row, .pay-row, .task-row, .rank li, .pu-check { border-color: var(--line); }
.tabs { border-bottom: 0; }
.tabs button { border-radius: 8px 8px 0 0; }
.panel-inset { background: var(--fill); }
.plate-input { box-shadow: inset 0 0 0 1.5px rgba(18, 22, 27, 0.85), inset 0 0 0 3px rgba(255, 255, 255, 0.35); }

/* ---------- the 10 %: one signal per screen ---------- */
.count { background: var(--signal); color: var(--signal-ink); }
.side .nav-item[aria-current='page']::before { background: var(--signal); }
.side .nav-item[aria-current='page'] .ico { color: #ffffff; }
.tab[aria-current='page']::before { background: var(--signal); }
.steps li[data-state='current']::before { background: var(--signal); }
.kpi::after { background: var(--fill-2); width: 4px; }
.kpi[data-hot='true']::after { background: var(--signal); }
.btn-signal, .book-page .wizard-actions .btn-primary, .topnav .tmenu > .btn-primary { background: var(--signal); color: var(--signal-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--signal) 70%, transparent); }
.book-page .wizard-actions .btn-primary:hover:not(:disabled), .topnav .tmenu > .btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--signal) 88%, #000); }
.slot[aria-pressed='true'], .day[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.book-hero .eyebrow { color: var(--signal); }
.trust .ico { color: var(--signal); }
.success-mark { background: var(--signal-soft); color: var(--signal); }

/* ---------- colour blocks on navy: sidebar, header, hero, login ---------- */
.side, .topbar, .book-hero, .login-art { background-image: var(--grain), var(--block-bg, none); background-blend-mode: soft-light, normal; }
@media (min-width: 1000px) { .side { --block-bg: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); background-color: var(--navy); } }
.side .nav-item[aria-current='page'] { background: color-mix(in srgb, #ffffff 12%, var(--navy)); }
.topbar { --block-bg: linear-gradient(var(--navy), var(--navy)); background-color: var(--navy); }
.book-hero:not([data-photo='true']) { --block-bg: linear-gradient(180deg, color-mix(in srgb, var(--navy) 94%, #fff) 0%, var(--navy) 55%, var(--navy-2) 100%); background-color: var(--navy); }
.login-art:not([data-photo='true']) { --block-bg: linear-gradient(170deg, #163061 0%, #0d2147 52%, #081730 100%); background-color: #0d2147; }

/* the scene: lineless shapes in navy tones, one orange accent */
.scene { display: block; pointer-events: none; }
.scene .a1 { fill: #1d3a6c; }
.scene .a2 { fill: #234679; }
.scene .a3 { fill: #3f67a6; }
.scene .a4 { fill: #0b1b36; }
.scene .a5 { fill: #a9c1e8; }
.scene .a6 { fill: #071226; }
.scene .a7 { fill: #c9d6ea; }
.scene .a8 { fill: #050d1c; opacity: 0.45; }
.scene .sig { fill: var(--signal); }
.book-hero .scene, .login-art .scene { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: 62%; opacity: 0.95; }
.book-hero[data-photo='true'] .scene, .login-art[data-photo='true'] .scene { display: none; }
.book-hero .scene { max-width: 54%; }
@media (max-width: 719px) { .book-hero .scene { max-width: 100%; height: 70%; opacity: 0.35; } }
.login-art .scene { height: 72%; max-width: 92%; }
.login-art-text, .book-hero-in { z-index: 1; }
.login-art > div:first-of-type { position: relative; z-index: 1; }
/* empty lists: the same drawing in light tones */
.empty-art { width: 150px; height: auto; stroke: none; opacity: 1; }
.empty-art .a1 { fill: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.empty-art .a3 { fill: color-mix(in srgb, var(--accent) 26%, var(--surface)); }
.empty-art .a4 { fill: color-mix(in srgb, var(--accent) 38%, var(--surface)); }
.empty-art .a5 { fill: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.empty-art .a6 { fill: color-mix(in srgb, var(--accent) 60%, var(--surface)); }
.empty-art .a7 { fill: var(--surface); }
.empty-art .a8 { fill: var(--accent); opacity: 0.08; }

/* constructivist accents: a diagonal block behind page titles in the hero */
.book-hero-in::before { content: ''; position: absolute; left: -28px; top: 6px; width: 6px; height: 56px; background: var(--signal); transform: skewY(-18deg); border-radius: 1px; }
@media (max-width: 719px) { .book-hero-in::before { left: -12px; width: 4px; } }
.a-top h1 { position: relative; }

/* login: title top-left, the scene grounded bottom-right (constructivist diagonal read) */
.login-art { justify-content: flex-start; }
.login-art-text { margin-top: clamp(24px, 14vh, 140px); }
.login-art .scene { height: 64%; max-width: 96%; }
@media (max-width: 899px) { .login-art .scene { height: 100%; opacity: 0.3; } .login-art-text { margin-top: 8px; } }
.book-hero .scene { height: 112%; bottom: -6%; }
.select.input-sm { padding-right: 30px; background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%; }
@media (min-width: 720px) { .book-hero .scene { right: max(0px, calc(50% - 600px)); bottom: 62px; height: calc(100% - 62px); max-width: 52%; } }

/* ---------- customer app: Mijn … (digital maintenance book) ----------
   Feels like a phone app: navy app bar, a quiet paper page, cards, and a tab
   bar at the bottom (safe areas of notched phones respected). */
body.is-mijn { background: var(--paper); overscroll-behavior-y: none; }
.m-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.m-bar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--navy-ink); padding-top: env(safe-area-inset-top); }
.m-bar-in { max-width: 720px; margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; }
.m-bar-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 12px; cursor: pointer; }
.m-bar-btn:hover, .m-bar-btn:active { background: rgba(255, 255, 255, 0.08); }
.m-brand { display: flex; text-decoration: none; }
.m-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.m-bar-title { font-family: var(--font-cond); font-weight: 700; font-size: 19px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bar-sub { font-size: 12.5px; color: var(--navy-ink-2); }
.m-logo { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.m-logo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.m-logo-txt { font-family: var(--font-cond); font-weight: 700; color: var(--plate-ink); font-size: 17px; background: var(--plate); }
.m-logo-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 26px; }
.m-main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 18px 16px calc(100px + env(safe-area-inset-bottom)); }
.m-embed .page { padding: 0; max-width: none; }
.m-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; margin: 0 auto; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 721px) { .m-tabs { border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; } }
.m-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.m-tab.on { color: var(--accent); }
.m-tab-ico { position: relative; display: grid; }
.m-dot { position: absolute; top: -5px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
body.is-mijn .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* sign in */
.m-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--navy-ink); padding: calc(40px + env(safe-area-inset-top)) 20px 72px; }
.m-hero-in { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; justify-items: start; }
.m-hero h1 { color: #fff; font-size: 36px; }
.m-hero p { margin: 0; color: var(--navy-ink-2); font-size: 17px; max-width: 36ch; }
.m-welcome-main { margin-top: -44px; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.m-choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow-card); }
.m-choice:hover { border-color: var(--line-2); }
.m-choice:active { transform: translateY(1px); }
.m-choice-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.m-choice-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-choice-t span { font-size: 14px; color: var(--ink-3); }
.m-center { text-align: center; }
.m-trust { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); margin-top: 22px; }
.m-trust .ico { flex: none; margin-top: 2px; }
.m-code-input { font-family: var(--font-cond); font-size: 26px; font-weight: 600; letter-spacing: 0.16em; text-align: center; text-transform: uppercase; }
.m-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.m-kbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; }
.m-codebox { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); }
.m-codebig { font-family: var(--font-cond); font-size: 30px; font-weight: 700; letter-spacing: 0.12em; }

/* home */
.m-hello h1 { font-size: 28px; }
.m-chip { display: inline-flex; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.m-h2 { font-size: 20px; }
.m-live { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); background: var(--tb, var(--surface)); border: 1px solid color-mix(in srgb, var(--tc, var(--line)) 28%, transparent); }
.m-live-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--tc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc) 22%, transparent); animation: m-pulse 1.8s ease-in-out infinite; }
@keyframes m-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--tc) 8%, transparent); } }
@media (prefers-reduced-motion: reduce) { .m-live-dot { animation: none; } }
.m-live-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-live-t > span { font-size: 14px; color: var(--ink-2); }
.m-due, .m-push { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.m-push { align-items: flex-start; }
.m-due .m-choice-ico { background: var(--warn-bg); color: var(--warn); }
.m-car { display: grid; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); }
.m-car:active { transform: translateY(1px); }
.m-car-head { display: flex; align-items: center; gap: 14px; }
.m-car-head > .ico { color: var(--ink-3); flex: none; }
.m-car-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-car-name b { font-family: var(--font-cond); font-size: 20px; line-height: 1.15; }
.m-car-name span { font-size: 14px; color: var(--ink-3); }
.m-car-name-lg b { font-size: 28px; }
.m-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.m-tile { background: var(--surface-2); border-radius: 12px; padding: 10px 10px 9px; display: flex; flex-direction: column; min-width: 0; }
.m-tile b { font-family: var(--font-cond); font-size: 17px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tile-l { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.m-tile-s { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tile.tone-green b { color: var(--t-green); }
.m-tile.tone-amber { background: var(--t-amber-bg); }
.m-tile.tone-amber b { color: var(--t-amber); }
.m-tile.tone-red { background: var(--t-red-bg); }
.m-tile.tone-red b { color: var(--t-red); }
.m-carhero { display: grid; gap: 14px; justify-items: start; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.m-row > .ico { color: var(--ink-3); flex: none; }
.m-row-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }
.m-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-row-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row-t span { font-size: 13.5px; color: var(--ink-3); }
.m-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.m-garage { background: var(--surface-2); }

/* the book */
.m-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 3px; border-radius: 12px; gap: 2px; }
.m-seg button { border: 0; background: transparent; padding: 9px 4px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.m-seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12); }
.m-tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-tl-year { font-family: var(--font-cond); font-weight: 700; font-size: 15px; color: var(--ink-3); padding: 8px 0 0 4px; list-style: none; }
.m-tl-card { display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.m-tl-card.is-active { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.m-tl-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.m-tl-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.m-tl-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.m-tl-head b { line-height: 1.3; }
.m-tl-date { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.m-tl-meta { font-size: 13.5px; color: var(--ink-3); margin-top: -4px; }
.m-tl-meta:empty { display: none; }
.m-tl-text { margin: 0; font-size: 15px; color: var(--ink-2); white-space: pre-line; }
.m-work { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink-2); display: grid; gap: 2px; }
.m-advice { background: var(--warn-bg); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.m-advice p { margin: 4px 0 0; white-space: pre-line; }
.m-advice .m-work { padding-left: 0; list-style: none; margin-top: 6px; gap: 6px; }
.m-open { color: var(--warn); }
.m-chart { width: 100%; height: auto; display: block; }
.m-chart-area { fill: var(--accent-soft); }
.m-chart-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.m-chart-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.m-chart-dot.alt { stroke: var(--plate-2); }
.m-chart-txt { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
.m-kmstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-kmstats > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.m-kmstats b { font-family: var(--font-cond); font-size: 19px; }
.m-kmrow { padding: 6px 0; border-bottom: 1px solid var(--line); }
.m-kmrow:last-child { border-bottom: 0; }
.m-dl { display: grid; grid-template-columns: minmax(110px, 42%) 1fr; gap: 9px 12px; margin: 0; }
.m-dl dt { color: var(--ink-3); font-size: 14px; }
.m-dl dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.m-docimg { width: 100%; border-radius: 12px; display: block; }
.m-docpdf { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; background: var(--surface-2); border-radius: 12px; text-align: center; }
.m-docpdf .ico { width: 40px; height: 40px; color: var(--accent); }
.m-install { border-color: var(--accent-line); background: var(--accent-soft); }

/* garage panel: pairing code card */
.app-code { font-family: var(--font-cond); font-size: 34px; font-weight: 700; letter-spacing: 0.14em; }

/* customer app, part 2: plate check, add a car, the game */
.m-tabs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.m-add { width: 100%; text-align: left; font: inherit; cursor: pointer; border-style: dashed; border-color: var(--line-2); background: transparent; }
.m-add .m-row-ico { background: var(--accent-soft); color: var(--accent); }
.m-pending { border-style: dashed; box-shadow: none; background: color-mix(in srgb, var(--warn-bg) 55%, var(--surface)); }
.m-gamecard { align-items: center; background: linear-gradient(120deg, var(--navy), #24477f); color: #fff; border: 0; }
.m-gamecard .m-live-t > span { color: var(--navy-ink-2); }
.m-gamecard .m-choice-ico { background: var(--plate); color: var(--plate-ink); }
.g-title { font-size: 30px; }
.g-wrap { display: grid; gap: 10px; justify-items: center; }
.g-hud { width: 100%; max-width: 460px; display: grid; gap: 8px; }
.g-plate { display: flex; align-items: stretch; justify-content: flex-start; gap: 4px; background: var(--plate); border-radius: 8px; padding: 5px 8px 5px 0; box-shadow: inset 0 0 0 1.5px rgba(18, 22, 27, 0.85); overflow: hidden; }
.g-eu { display: grid; place-items: end center; width: 26px; margin-right: 4px; background: var(--eu); color: #fff; font-size: 11px; font-weight: 700; padding-bottom: 3px; margin-top: -5px; margin-bottom: -5px; }
.g-box { width: 30px; height: 38px; border-radius: 5px; display: grid; place-items: center; font-family: var(--font-cond); font-weight: 700; font-size: 26px; color: var(--plate-ink); background: rgba(18, 22, 27, 0.1); box-shadow: inset 0 0 0 1px rgba(18, 22, 27, 0.18); transition: background 0.3s, box-shadow 0.3s, transform 0.3s; }
.g-box.on { background: #fff6c8; box-shadow: 0 0 12px 2px rgba(255, 220, 60, 0.9), inset 0 0 0 1px rgba(18, 22, 27, 0.25); animation: g-pop 0.45s ease-out; }
@keyframes g-pop { 40% { transform: scale(1.25); } }
.g-plate > .g-eu + * { margin-left: auto; }
.g-plate > :last-child { margin-right: auto; }
.g-dash { display: grid; place-items: center; font-family: var(--font-cond); font-weight: 700; font-size: 24px; color: var(--plate-ink); }
.g-stats { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.g-lives { display: inline-flex; gap: 2px; }
.g-lives i { color: var(--line-2); display: grid; }
.g-lives i.on { color: var(--accent); }
.g-board { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-raise); touch-action: none; }
.g-board.g-glow { box-shadow: 0 0 0 3px var(--plate), 0 0 30px rgba(247, 198, 0, 0.6); }
.g-canvas { display: block; }
.g-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 18, 32, 0.45); padding: 16px; }
.g-card { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 18px; max-width: 300px; text-align: center; display: grid; gap: 10px; justify-items: center; box-shadow: var(--shadow-float); }
.g-card b { font-family: var(--font-cond); font-size: 22px; }
.g-card p { margin: 0; color: var(--ink-2); }
.g-toast { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: rgba(10, 18, 32, 0.75); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; pointer-events: none; animation: g-fade 1.4s forwards; }
@keyframes g-fade { 70% { opacity: 1; } 100% { opacity: 0; } }
.g-pad { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 50px); gap: 6px; grid-template-areas: '. up .' 'left pause right' '. down .'; }
.g-key { border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.g-key:active { background: var(--accent-soft); transform: translateY(1px); }
.g-up { grid-area: up; } .g-up .ico { transform: rotate(180deg); }
.g-down { grid-area: down; } .g-left { grid-area: left; } .g-right { grid-area: right; }
.g-pause { grid-area: pause; background: var(--surface-2); }
.g-pz { font-weight: 800; letter-spacing: 1px; font-size: 13px; color: var(--ink-3); }

/* customer app, part 3: sign up and details */
.m-choice-main { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-card); }
.m-choice-main .m-choice-ico { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 719px) { .m-grid2 { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* download page (/download) */
.m-dl-hero { display: flex; gap: 16px; align-items: center; }
.m-dl-hero h1 { font-size: 28px; }
.m-dl-hero p { margin: 2px 0 0; color: var(--ink-2); }
.m-dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-dl-list li { display: flex; gap: 10px; align-items: flex-start; }
.m-dl-list .ico { color: var(--accent); flex: none; margin-top: 3px; }

/* game, part 2: everything on one screen, sound button */
body.g-lock { overflow: hidden; overscroll-behavior: none; }
body.g-lock .m-main { padding-top: 10px; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.g-wrap { gap: 8px; }
.g-plate { padding-top: 4px; padding-bottom: 4px; }
.g-box { width: 28px; height: 34px; font-size: 24px; }
.g-sound { border: 0; background: transparent; font-size: 18px; line-height: 1; padding: 4px; cursor: pointer; }
.g-pad { grid-template-columns: repeat(3, 60px); grid-template-rows: repeat(3, 44px); gap: 5px; }

/* app: account deletion choices */
.m-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.m-radio input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.m-radio > span { display: flex; flex-direction: column; gap: 3px; }

/* app download: one big button */
.m-dl-btn { font-size: 18px; min-height: 56px; }
.m-dl-btn.btn-sm { font-size: 14px; min-height: 0; }
.m-dl-top { padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1, 0 1px 3px rgba(0,0,0,.08)); }
.m-steps-big { gap: 14px; font-size: 16px; }
.m-steps-big li::marker { font-weight: 700; color: var(--accent); }
.m-share-arrow { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 1001; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #f97316); color: #fff; animation: m-bounce 1s ease-in-out infinite; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@keyframes m-bounce { 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .m-share-arrow { animation: none; } }
.m-welcome-dl { margin-bottom: 4px; }
/* website: the app banner above the booking page */
.app-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 16px; border-radius: 16px; background: var(--navy); color: var(--navy-ink); }
.app-banner .ab-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #f7c600; color: #12161b; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.app-banner .ab-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-banner .ab-t b { font-size: 16px; }
.app-banner .ab-t span { font-size: 13px; opacity: .85; }
@media (max-width: 520px) { .app-banner .ab-t span { display: none; } .app-banner { margin: 0 12px 12px; } }
.app-banner .btn { flex: none; background: #fff; color: #11264a; border-color: #fff; }
.app-banner .ab-x { flex: none; background: none; border: 0; color: #fff; opacity: .7; padding: 4px; cursor: pointer; }
/* booking: a field only robots fill in */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.book-code { border-color: var(--accent-line); background: var(--accent-soft); }

/* check page of the maintenance-book PDF */
.cb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cb-list > li { padding: 14px 16px; }
/* sending the maintenance book */
.m-share-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.m-share-row .btn { justify-content: center; }
.m-share-wa { background: #1fa855; color: #fff; border-color: #1fa855; }
.m-share-wa:hover { background: #198f48; }

.ab-logo-img { object-fit: cover; padding: 0; background: #fff; }
.m-app-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: var(--shadow-card); background: #fff; }

/* app: private or business account, colleagues */
.m-acctype { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-acctype button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.m-acctype button span { font-size: 13px; color: var(--ink-3); }
.m-acctype button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.m-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-members li { display: flex; align-items: center; gap: 12px; }
/* app: car actions, old maintenance book */
.m-car-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-car-actions .btn { justify-content: center; padding-left: 8px; padding-right: 8px; font-size: 14px; }
.m-ob-photo { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; background: var(--surface-2); }
.m-ob-row { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.m-ob-row.off { opacity: .55; }
.m-ob-on { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.m-ob-on input { width: 18px; height: 18px; accent-color: var(--accent); }
.m-ob-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.m-ob-kinds button { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.m-ob-kinds button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* booking: signed-in customers pick their car */
.my-cars { display: grid; gap: 8px; }
.my-car { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-card); }
.my-car:hover { border-color: var(--accent-line); }
.my-car > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* panel: sorting products into categories */
.sc-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-chips button { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.sc-chips button:hover { border-color: var(--accent); color: var(--accent); }

/* panel: new product from a photo */
.ps-box { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px dashed var(--accent-line); background: var(--accent-soft); }
.m-car-actions .m-car-wide { grid-column: 1 / -1; }
