@font-face { font-family: "Barlow"; src: url(/static/fonts/barlow-400.woff2?v=d652fca7266b) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/static/fonts/barlow-500.woff2?v=d2417e4a9b79) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/static/fonts/barlow-600.woff2?v=695bf9c57b5b) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/static/fonts/barlow-700.woff2?v=a3b5a259d0db) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/static/fonts/barlow-condensed-500.woff2?v=55485a5a78cf) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/static/fonts/barlow-condensed-600.woff2?v=639d74c9252f) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/static/fonts/barlow-condensed-700.woff2?v=87b01a9bdb48) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(/static/fonts/space-grotesk.woff2?v=e8e2f217c3ae) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/static/fonts/inter.woff2?v=8179f3986404) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/static/fonts/archivo.woff2?v=6b994771be95) format("woff2"); font-weight: 100 900; font-stretch: 100% 125%; font-display: swap; }

/* the Classic look; every other look in themes/ overrides these tokens and a few rules */
:root {
  --bg: #0b1016;
  --card: #141b23;
  --card-2: #1b2430;
  --text: #e6edf3;
  --muted: #94a3b8;
  --line: #243140;
  --accent: #2dd4bf;
  --accent-soft: #134e4a;
  --accent-ink: #04201d;
  --wa: #22c55e;
  --wa-ink: #04200d;
  --blue: #60a5fa;
  --warn-bg: #422006;
  --warn: #fcd34d;
  --danger: #f87171;
  --danger-bg: #450a0a;
  --good: #4ade80;
  --radius: 14px;
  --shadow: none;
  --tabbar: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
p { margin: 0 0 .8rem; }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 .3em; font-size: .85em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.good { color: var(--good); font-weight: 600; }
.bad { color: var(--danger); font-weight: 600; }
.free { color: var(--good); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[hidden] { display: none !important; }

/* --- buttons & forms --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 42px; padding: .5em 1em;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.big { min-height: 50px; font-size: 1.05rem; padding: .6em 1.3em; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }

input, select, textarea {
  width: 100%; min-height: 46px; padding: .55em .75em;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text); font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.input-plate { font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: .3rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field > legend, .field > label { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0; }
.field em, .toggle em { font-style: normal; font-weight: 400; opacity: .8; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; align-items: center; }
.wrap-row { flex-wrap: wrap; margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: .35em; min-height: 42px; padding: .45em .9em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-weight: 600; cursor: pointer; user-select: none;
}
.chip small { font-weight: 500; color: var(--muted); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:checked + span small { color: inherit; opacity: .85; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle { display: flex; align-items: center; gap: .55em; font-weight: 600; cursor: pointer; }
.toggle input { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
.toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.toggle.small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.price-row { align-items: end; }
.price-row .toggle { min-height: 46px; }

/* --- cards & lists --- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card > h2:first-child { margin-top: 0; }
.empty { color: var(--muted); font-size: .9rem; padding: 6px 2px 10px; margin: 0; }
.flash { background: var(--accent-soft); color: var(--text); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-weight: 500; }
.flash.flash-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.pill-washing { color: var(--blue); }
.pill-ready { color: var(--good); }
.pill-cancelled { color: var(--danger); }
.plate { font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.list-item { display: block; color: inherit; text-decoration: none; padding: 12px 14px; margin-bottom: 8px; }
.list-row { display: flex; justify-content: space-between; gap: 10px; }
.day { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 2px 8px; }
.inactive { opacity: .55; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; vertical-align: bottom; }
th, td { padding: 8px 5px; border-bottom: 1px solid var(--line); }
td { white-space: nowrap; }
td:first-child { white-space: normal; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; text-align: right; }
tr:last-child td { border-bottom: 0; }

/* --- app shell --- */
body.app { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
.banner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 16px; font-size: .88rem; font-weight: 500; }
.banner a { font-weight: 700; color: inherit; }
.banner-demo { background: var(--accent); color: var(--accent-ink); }
.banner-warn { background: var(--warn-bg); color: var(--warn); }
.banner-error { background: var(--danger-bg); color: var(--danger); }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 54px; padding: 8px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-title, .topbar-back { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .25em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.tab-badge { position: absolute; top: 5px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; letter-spacing: 0; }
.tabbar a .icon { width: 24px; height: 24px; }
.tabbar a.on { color: var(--accent); }

/* --- board --- */
.today { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; margin-bottom: 16px; }
.today .btn { justify-self: end; }
.stat { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; min-width: 0; }
.stat b { font-size: 1.25rem; line-height: 1.2; white-space: nowrap; }
.stat span { font-size: .75rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 420px) {
  .today { grid-template-columns: 1fr 1fr; }
  .today .btn { grid-column: 1 / -1; justify-self: stretch; }
}
.lane { margin-bottom: 18px; }
.lane h2, .lane summary h2 { display: flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 2px 8px; }
.lane summary { list-style: none; cursor: pointer; }
.lane summary::-webkit-details-marker { display: none; }
.lane summary h2::after { content: "▾"; font-size: .9rem; }
.count { background: var(--line); color: var(--text); border-radius: 999px; padding: 0 .55em; font-size: .75rem; letter-spacing: 0; }
.lane-washing h2 .count { background: var(--blue); color: #fff; }
.lane-ready h2 .count { background: var(--wa); color: var(--wa-ink); }

.visit { display: flex; gap: 10px; padding: 12px 12px 12px 14px; align-items: center; border-left: 4px solid var(--line); }
.lane-washing .visit { border-left-color: var(--blue); }
.lane-ready .visit { border-left-color: var(--wa); }
.visit-main { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.visit-top { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.visit-top .plate { font-size: 1.15rem; }
.since { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.visit-meta { font-size: .88rem; color: var(--muted); }
.visit-meta b { color: var(--text); }
.visit-note { font-size: .85rem; background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 2px 8px; margin-top: 4px; display: inline-block; }
.visit-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.visit-actions .btn { min-width: 108px; }
.done { color: var(--good); font-weight: 600; display: inline-flex; gap: .3em; align-items: center; }
.onboarding ol { margin: 0; padding-left: 1.2em; }
.onboarding li { margin-bottom: 6px; }

/* dialogs */
dialog.sheet {
  width: min(520px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); color: var(--text); padding: 20px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / 90%);
}
dialog.sheet::backdrop { background: rgb(0 0 0 / 72%); }
dialog.sheet h3 { font-size: 1.15rem; margin-bottom: 14px; }
dialog.sheet .row { justify-content: flex-end; margin-top: 18px; }
.bubble {
  position: relative; background: #005c4b; color: #e9edef; border-radius: 12px 12px 12px 4px;
  padding: 10px 12px 18px; font-size: .95rem; white-space: pre-wrap; box-shadow: 0 1px 1px rgb(0 0 0 / 10%);
}
.bubble .tick { position: absolute; right: 8px; bottom: 3px; font-size: .7rem; color: #53bdeb; }

/* licence disc scanner */
.btn.scan-btn { border-style: dashed; border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.scan-btn .icon { width: 1.4em; height: 1.4em; }
dialog.scanner { padding: 12px; }
.scan-view { position: relative; overflow: hidden; aspect-ratio: 3 / 4; max-height: 64vh; width: 100%; border-radius: calc(var(--radius) * .7); background: #000; }
.scan-view video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 10%; right: 10%; top: 36%; height: 28%; border: 2px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 100vmax rgb(0 0 0 / 45%); }
.scan-frame::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 12%; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: scanline 1.4s ease-in-out infinite alternate;
}
@keyframes scanline { to { top: 86%; } }
@media (prefers-reduced-motion: reduce) { .scan-frame::after { animation: none; top: 50%; } }
.scan-hint { margin: 12px 4px 0; text-align: center; font-weight: 600; }
dialog.scanner .row { margin-top: 12px; }

/* visit page */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.timeline span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.timeline b { font-size: .95rem; }
.lookup { background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-top: -6px; }
.lookup b { font-weight: 700; }
.danger-zone { justify-content: space-between; margin-top: 8px; }

/* bookings in the app */
.lane-booked .visit { border-left-color: var(--accent); }
.booking-time { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.booking-name { font-weight: 600; }
.booking .visit-top { column-gap: 8px; align-items: center; }
.booking-cancelled { opacity: .5; }
.pill-new { color: var(--warn); }
.pill-confirmed { color: var(--good); }
.pill-arrived { color: var(--muted); }
.link.cancel-link { color: var(--muted); }
.booking .visit-meta a { color: var(--text); white-space: nowrap; }
.share-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.share-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.share-icon .icon { width: 22px; height: 22px; }
.share-text { display: flex; flex-direction: column; min-width: 0; }
.share-text a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share .flash { margin: 0 0 12px; }
.share-actions { margin: 0; }
.booking-note { display: flex; align-items: center; gap: .5em; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-size: .9rem; }
.booking-note .icon { color: var(--accent); }
.hours-row { display: grid; grid-template-columns: 74px 1fr 1fr; gap: 8px; align-items: center; }
.prefix-input { display: flex; align-items: center; gap: 6px; }
.prefix-input span { color: var(--muted); font-weight: 600; }

/* cars & settings */
.search { position: relative; margin-bottom: 14px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 40px; }
.menu { padding: 0; }
.menu a { display: flex; flex-direction: column; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.menu a:last-child { border-bottom: 0; }
.menu a span { font-size: .85rem; color: var(--muted); }
.inline-edit { display: flex; gap: 12px; align-items: center; }
.inline-edit input:not([type=checkbox]) { flex: 1; }
.inline-edit .toggle { flex: none; }
input.strong { font-weight: 700; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.staff-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }

/* look picker */
.themes { display: grid; gap: 10px; margin-bottom: 14px; }
.theme-tile {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; text-align: left;
  font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.theme-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-tile > .icon { color: var(--accent); width: 22px; height: 22px; }
.theme-preview {
  flex: none; display: grid; align-content: center; gap: 5px; width: 60px; height: 60px; padding: 9px;
  background: var(--t-bg); border: 1px solid rgb(255 255 255 / 12%); border-radius: 12px;
}
.theme-preview i { display: block; height: 7px; border-radius: 2px; background: var(--t-card); }
.theme-preview i:first-child { width: 65%; }
.theme-preview i:last-child { height: 13px; border-radius: 3px; background: var(--t-accent); }
.theme-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.theme-text span { font-size: .85rem; color: var(--muted); }
.theme-name { font-size: 1.05rem; line-height: 1.2; }
.theme-carbon .theme-name { font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .06em; }
.theme-volt .theme-name { font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.theme-midnight .theme-name { font-family: "Inter", sans-serif; letter-spacing: -.01em; }
.theme-noir .theme-name { font-family: "Archivo", sans-serif; font-stretch: 125%; font-size: .9rem; text-transform: uppercase; letter-spacing: .18em; }
.theme-classic .theme-name { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* reports */
.segmented { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 8px; overflow-x: auto; }
.segmented a { flex: 1 1 auto; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.segmented a.on { background: var(--accent); color: var(--accent-ink); }
.bar-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; padding: 3px 0; }
.bar { background: var(--bg); border-radius: 6px; height: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.bar-label { color: var(--muted); }
.bar-value { font-variant-numeric: tabular-nums; text-align: right; }

/* --- public site --- */
body.site { background: var(--bg); }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 16px 20px; }
.site-nav nav { display: flex; align-items: center; gap: 16px; }
.site-nav nav > a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-mark { flex: none; }
.logo-mark rect { fill: var(--accent); }
.logo-mark .drop { fill: var(--accent-ink); }
.logo-mark .tick { fill: none; stroke: var(--accent); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.narrow { max-width: 460px; margin: 24px auto 60px; padding: 0 16px; }
.prose { max-width: 680px; }
.prose h2 { margin-top: 1.6rem; }
.hero { max-width: 1080px; margin: 0 auto; padding: 32px 20px 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 10px; }
.cta-center { justify-content: center; }
.hero-login { display: none; }
.hero-visual { display: grid; justify-items: center; gap: 20px; min-width: 0; }
.phone { width: min(330px, 100%); border-radius: 38px; padding: 12px; background: #0f172a; box-shadow: 0 30px 60px -20px rgb(15 23 42 / 45%); }
.phone-screen { background: var(--bg); border-radius: 28px; padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 8px; font-size: .8rem; }
.mini-today { display: flex; gap: 8px; }
.mini-today span { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; color: var(--muted); }
.mini-today b { color: var(--text); font-size: 1rem; display: block; }
.mini-lane { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 4px; }
.mini-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; padding: 8px 10px; }
.mini-card small { display: block; color: var(--muted); font-size: .7rem; }
.mini-card:nth-of-type(n+5) { border-left-color: var(--line); }
.mini-btn { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-weight: 700; font-size: .72rem; }
.mini-btn.wa { background: var(--wa); color: var(--wa-ink); border-color: var(--wa); }
.mini-bubble { margin-top: 6px; font-size: .75rem; }
.look { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.look-label { font-size: .85rem; color: var(--muted); }
.look-label b { color: var(--text); margin-left: .25em; }
.look-dots { display: flex; gap: 8px; }
.look-dot {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, var(--dot) 0 36%, var(--dot-bg) 38%); border: 1px solid rgb(255 255 255 / 18%);
}
.look-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.look-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.how, .features, .pricing, .faq, .final-cta { max-width: 1080px; margin: 0 auto; padding: 40px 20px; }
.how h2, .features h2, .pricing h2, .faq h2, .final-cta h2 { font-size: 1.6rem; text-align: center; margin-bottom: 1.4rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature p { color: var(--muted); margin: 0; }
.price-card { max-width: 420px; margin: 0 auto; background: var(--card); border: 2px solid var(--accent); border-radius: 20px; padding: 28px; text-align: center; }
.price { font-size: 1.1rem; margin: 0; }
.price b { font-size: 2.6rem; letter-spacing: -.02em; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; }
.price-card li { display: flex; gap: 10px; padding: 6px 0; }
.price-card li .icon { color: var(--accent); margin-top: 2px; }
.site-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.site-options-title { grid-column: 1 / -1; text-align: center; font-size: 1.3rem; margin: 0; }
.site-options .feature { display: flex; flex-direction: column; }
.feature .option-price { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 700; }
.site-options-note { grid-column: 1 / -1; text-align: center; margin: 0; }
.faq { max-width: 720px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.final-cta { text-align: center; padding-bottom: 72px; }
.site-footer { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 12px; }
  .steps, .features, .site-options { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .site-nav nav > a:not(.btn) { display: none; }
  .hero-login { display: block; }
  .cta .btn, .cta form { width: 100%; }
}

/* --- booking page for customers --- */
.owner-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.owner-bar a { font-weight: 700; }
.owner-bar .look-dots { gap: 6px; }
.owner-bar .look-dot { width: 26px; height: 26px; }
.book { max-width: 640px; margin: 0 auto; padding: 0 16px 24px; }
.book-hero { padding: 36px 0 22px; border-bottom: 1px solid var(--line); }
.book-hero h1 { font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.02em; margin: 0 0 .7rem; overflow-wrap: anywhere; }
.book-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 18px; color: var(--muted); }
.book-meta > span { display: inline-flex; align-items: center; gap: .45em; }
.hours summary { display: inline-flex; align-items: center; gap: .45em; cursor: pointer; list-style: none; }
.hours summary::-webkit-details-marker { display: none; }
.hours summary::after { content: "▾"; font-size: .8em; }
.hours[open] summary::after { content: "▴"; }
.hours ul { list-style: none; width: min(300px, 100%); margin: 10px 0 0; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.hours li.today { color: var(--text); font-weight: 700; }
.open-dot { flex: none; width: 9px; height: 9px; margin: 0 .25em; border-radius: 50%; background: var(--danger); }
.open-dot.is-open { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); }

.step { padding: 28px 0 0; }
.step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.15rem; }
.step h2 em { order: 2; margin-left: auto; font-style: normal; font-weight: 500; font-size: .8rem; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 800; }
.svc, .day-opt, .time-opt { position: relative; }
.svc input, .day-opt input, .time-opt input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
.svc input:focus-visible + .svc-box, .day-opt input:focus-visible + span, .time-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-list { display: grid; gap: 8px; }
.svc { display: block; }
.svc-box {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.svc-name { flex: 1; min-width: 0; font-weight: 600; }
.svc-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc-tick { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 7px; color: transparent; transition: inherit; }
.svc-tick .icon { width: 15px; height: 15px; stroke-width: 3; }
.svc input:checked + .svc-box { background: color-mix(in srgb, var(--accent) 8%, var(--card)); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.svc input:disabled + .svc-box { opacity: .35; cursor: default; }
.svc input:checked + .svc-box .svc-tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.days {
  display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px 10px; overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
}
.days::-webkit-scrollbar { display: none; }
.day-opt { flex: none; scroll-snap-align: start; }
.day-opt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 62px; height: 80px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.1; cursor: pointer; user-select: none;
}
.day-opt small { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day-opt b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.day-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day-opt input:checked + span small { color: inherit; opacity: .75; }
.day-opt input:disabled + span { opacity: .35; cursor: default; }
.times { display: none; }
@supports not selector(:has(*)) { .times.on { display: block; } }
.book-form:has(#d0:checked) #t0, .book-form:has(#d1:checked) #t1, .book-form:has(#d2:checked) #t2,
.book-form:has(#d3:checked) #t3, .book-form:has(#d4:checked) #t4, .book-form:has(#d5:checked) #t5,
.book-form:has(#d6:checked) #t6, .book-form:has(#d7:checked) #t7, .book-form:has(#d8:checked) #t8,
.book-form:has(#d9:checked) #t9, .book-form:has(#d10:checked) #t10, .book-form:has(#d11:checked) #t11,
.book-form:has(#d12:checked) #t12, .book-form:has(#d13:checked) #t13 { display: block; }
.times-label { margin: 14px 0 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 520px) { .time-grid { grid-template-columns: repeat(6, 1fr); } }
.time-opt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; cursor: pointer; user-select: none;
}
.time-opt small { font-size: .62rem; font-weight: 700; color: var(--warn); }
.time-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.time-opt input:checked + span small { color: inherit; }
.upper { text-transform: uppercase; }
.upper::placeholder { text-transform: none; }

.book-bar {
  position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 14px;
  margin: 28px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.book-sum { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.book-sum b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.book-sum span { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-sum.need span { color: var(--danger); font-weight: 700; }
.book-bar .btn { flex: none; min-width: 132px; }
.book-fine { margin: 14px 0 0; }
.book-closed { margin-top: 24px; padding: 28px 20px; text-align: center; }
.book-closed p { margin: 0; }

.booked { padding: 44px 0 18px; text-align: center; }
.booked-icon {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 14%, transparent);
}
.booked-icon .icon { width: 38px; height: 38px; stroke-width: 2.4; }
.booked-new .booked-icon { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.booked-cancelled .booked-icon { background: var(--danger-bg); color: var(--danger); box-shadow: none; }
.booked h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
.booked .lead { margin: 0 auto; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .booked-new .booked-icon { animation: none; } }
.receipt { margin: 18px 0 14px; padding: 4px 18px; }
.receipt div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipt div:last-child { border-bottom: 0; }
.receipt dt { display: inline-flex; align-items: center; gap: .4em; flex: none; color: var(--muted); }
.receipt dd { min-width: 0; margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.receipt-when dd { font-size: 1.1rem; }
.receipt-total dd { font-size: 1.35rem; font-weight: 800; }
.book-where { display: flex; justify-content: center; align-items: center; gap: .4em; }
@media (min-width: 960px) {
  .book-split { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 620px); justify-content: center; align-items: start; column-gap: 72px; max-width: 1100px; }
  .book-split > .book-hero { grid-row: 1 / span 9; position: sticky; top: 0; padding-top: 64px; border-bottom: 0; }
  .book-split > :not(.book-hero) { grid-column: 2; }
  .book-split > .flash:first-of-type { margin-top: 40px; }
  .book-form, .book-split > .book-closed { margin-top: 36px; }
}

/* ready-made website for a car wash's own hosting */
.website .book-hero .cta { margin-bottom: 0; }
.website .step .ticks { margin: 0 0 12px; }
.web-steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.web-steps li { display: flex; align-items: baseline; gap: 12px; }
.web-steps b { display: block; }
.website .step > p { margin: 0 0 12px; }

/* landing: booking page teaser */
.promo { max-width: 1080px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.promo .hero-visual { order: -1; }
.promo h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); letter-spacing: -.02em; margin-bottom: .8rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; }
.ticks li { display: flex; gap: 10px; padding: 5px 0; }
.ticks .icon { color: var(--accent); margin-top: 3px; }
.mini-book { gap: 7px; }
.mini-title { font-size: 1.15rem; line-height: 1.1; }
.mini-open { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; }
.mini-open .open-dot { width: 7px; height: 7px; margin: 0; box-shadow: none; }
.mini-svc { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: min(var(--radius), 10px); }
.mini-svc span { flex: 1; font-weight: 600; }
.mini-svc i { display: grid; place-items: center; width: 15px; height: 15px; border: 1.5px solid var(--line); border-radius: 4px; color: transparent; }
.mini-svc i .icon { width: 10px; height: 10px; stroke-width: 3.5; }
.mini-svc.on { border-color: var(--accent); }
.mini-svc.on i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mini-days, .mini-times { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mini-times { grid-template-columns: repeat(4, 1fr); }
.mini-days span, .mini-times span { display: flex; flex-direction: column; align-items: center; padding: 5px 0; background: var(--card); border: 1px solid var(--line); border-radius: min(var(--radius), 8px); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mini-days small { font-size: .58rem; color: var(--muted); text-transform: uppercase; }
.mini-days b { font-size: .95rem; }
.mini-days .on, .mini-times .on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.mini-days .on small { color: inherit; }
.mini-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line); }
.mini-bar b { display: block; font-size: 1.05rem; }
.mini-bar small { color: var(--muted); font-size: .65rem; }
.mini-btn.primary { padding: 6px 16px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 860px) {
  .promo { grid-template-columns: 1fr; gap: 32px; }
  .promo .hero-visual { order: 0; }
}
@media (max-width: 420px) { .promo form, .promo .btn { width: 100%; } }

/* admin */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }
.tenant-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.tenant .row { margin-top: 10px; margin-bottom: 0; }
.tenant input[type=date] { width: auto; min-height: 42px; }
