@font-face { font-family: 'Mona Sans'; src: url('/fonts/mona-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/source-serif-4-latin-opsz-normal.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
/* WagTab screens, copied from docs/design-refs/screens-preview.html (the approved "Trade Desk" checkout and receipt,
   button style 1). Shared tokens for the start page too. Pretend shop, pretend clients. */
:root {
  color-scheme: light;
  --sans: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --canvas: #f3f2ef; --surface: #ffffff; --surface-2: #faf9f7; --sunken: #efeeeb; --raise: #ffffff;
  --line: rgba(33,32,28,.08); --line-strong: rgba(33,32,28,.14); --half: rgba(33,32,28,.04); --img-edge: rgba(0,0,0,.1);
  --field: #8d8a83;
  --ink: #21201c; --ink-2: #4f4d48; --ink-3: #67655e;
  --accent: #1e5a54; --accent-wash: #e8f1ef;
  --now: #c23b2a; --danger: #a33320;
  --ring: inset 0 0 0 1px rgba(33,32,28,.08);
  --overlay: 0 0 0 1px rgba(33,32,28,.08), 0 8px 16px -4px rgba(33,32,28,.08), 0 24px 32px -8px rgba(33,32,28,.10);
  /* Status pairs (Mangomint's key, mapped to grooming) */
  --nc-bg: #fdf0e4; --nc: #8a4a12;
  --cf-bg: #e6eef9; --cf: #24508a;
  --wt-bg: #efe8f6; --wt: #5b3a86;
  --sv-bg: #fbe9ee; --sv: #8a2a4a;
  --rd-bg: #e3f2e7; --rd: #1f6b3d;
  --dn-bg: #e9e8e6; --dn: #4f4d48;
  --cx: #a33320;
  --skel: #efeeeb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #161513; --surface: #1c1b19; --surface-2: #22211e; --sunken: #121110; --raise: #22211e;
    --line: rgba(238,236,230,.08); --line-strong: rgba(238,236,230,.14); --half: rgba(238,236,230,.04); --img-edge: rgba(255,255,255,.1);
    --field: #6e6c66;
    --ink: #eeece6; --ink-2: #b5b3ad; --ink-3: #8f8d86;
    --accent: #6fb8ae; --accent-wash: #1a2a28;
    --now: #f09a8a; --danger: #f09a8a;
    --ring: inset 0 0 0 1px rgba(238,236,230,.10);
    --overlay: 0 0 0 1px rgba(238,236,230,.10);
    --nc-bg: #2e2015; --nc: #f0b27a;
    --cf-bg: #16223a; --cf: #93b5e6;
    --wt-bg: #231b30; --wt: #c3a6e6;
    --sv-bg: #2e1820; --sv: #eea3ba;
    --rd-bg: #132a1b; --rd: #8fd3a6;
    --dn-bg: #2a2a28; --dn: #b5b3ad;
    --cx: #f09a8a;
    --skel: #22211e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #161513; --surface: #1c1b19; --surface-2: #22211e; --sunken: #121110; --raise: #22211e;
  --line: rgba(238,236,230,.08); --line-strong: rgba(238,236,230,.14); --half: rgba(238,236,230,.04); --img-edge: rgba(255,255,255,.1);
  --field: #6e6c66;
  --ink: #eeece6; --ink-2: #b5b3ad; --ink-3: #8f8d86;
  --accent: #6fb8ae; --accent-wash: #1a2a28;
  --now: #f09a8a; --danger: #f09a8a;
  --ring: inset 0 0 0 1px rgba(238,236,230,.10);
  --overlay: 0 0 0 1px rgba(238,236,230,.10);
  --nc-bg: #2e2015; --nc: #f0b27a;
  --cf-bg: #16223a; --cf: #93b5e6;
  --wt-bg: #231b30; --wt: #c3a6e6;
  --sv-bg: #2e1820; --sv: #eea3ba;
  --rd-bg: #132a1b; --rd: #8fd3a6;
  --dn-bg: #2a2a28; --dn: #b5b3ad;
  --cx: #f09a8a;
  --skel: #22211e;
}
/* A shop's own color only moves the accent roles: oklch(0.42 min(C,.09) h), wash oklch(0.965 .018 h), dark oklch(0.75 min(C,.08) h).
   #7a3b2e -> accent #76382c (8.85:1 on white), wash #ffefec, dark #dc9c8d (7.53:1), dark wash #34211d. */
.brand { --accent: #76382c; --accent-wash: #ffefec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { --accent: #dc9c8d; --accent-wash: #34211d; } }
:root[data-theme="dark"] .brand { --accent: #dc9c8d; --accent-wash: #34211d; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, b, strong, th, p { margin: 0; font-weight: inherit; }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
svg.i { width: 20px; height: 20px; flex: none; fill: currentColor; }
.num, .t-num { font-variant-numeric: tabular-nums; }
.code { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum', 'ss08'; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── App frame ── */
.frame { overflow: hidden; background: var(--canvas); color: var(--ink); font: 450 14px/20px var(--sans); letter-spacing: -0.006em; font-variant-numeric: tabular-nums; }
.frame.touch { font-size: 15px; line-height: 22px; }
.app { display: grid; grid-template-columns: 216px minmax(0, 1fr); height: 100%; }
.side { display: flex; flex-direction: column; padding: 16px 12px 12px; min-width: 0; }
.mark { font: 600 18px/24px var(--serif); font-variation-settings: 'opsz' 32; letter-spacing: -0.01em; padding: 4px 8px 0; }
.mark-sub { color: var(--ink-3); font-size: 12px; line-height: 16px; padding: 0 8px; }
.find { margin: 16px 0 12px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink-3); background: var(--surface); }
.find svg.i { width: 16px; height: 16px; }
.find kbd { white-space: nowrap; margin-left: auto; font: 550 12px/16px var(--sans); color: var(--ink-3); padding: 0 4px; border-radius: 4px; background: var(--sunken); }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 450; transition: background-color 150ms ease-out; }
.nav a svg.i { color: var(--ink-3); }
.nav a:hover { background: var(--line); }
.nav a.on { background: var(--surface); color: var(--ink); font-weight: 550; box-shadow: var(--ring); }
.nav a.on svg.i { color: var(--accent); }
.nav .ct { margin-left: auto; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; color: var(--ink-2); font-size: 13px; line-height: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c); }
.pane { margin: 8px 8px 8px 0; background: var(--surface); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.pane-in { padding: 24px 32px; overflow: hidden; flex: 1; min-height: 0; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ph-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.title { font: 600 22px/28px var(--serif); font-variation-settings: 'opsz' 24; letter-spacing: -0.01em; text-wrap: balance; }
.sub { color: var(--ink-2); }
.acts { display: flex; gap: 8px; align-items: center; }
.sec { font: 650 16px/24px var(--sans); letter-spacing: -0.011em; }
.meta { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.cap12 { font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* Buttons: one height per input mode */
.btn { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 550 14px/20px var(--sans); letter-spacing: 0; white-space: nowrap; cursor: pointer; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color 150ms ease-out, box-shadow 150ms ease-out; }
.btn svg.i { width: 16px; height: 16px; }
.touch .btn { height: 44px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-secondary { background: var(--sunken); color: var(--ink); }
.btn-primary:not(.btn-icon) svg.i, .btn-secondary:not(.btn-icon) svg.i { display: none; }
.btn-secondary:hover { background: var(--surface-2); transition-duration: 0ms; }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); transition-duration: 0ms; }
.btn-icon { width: 32px; padding: 0; }
.touch .btn-icon { width: 44px; padding: 0; }
.btn-charge, .touch .btn-charge { height: 48px; font-size: 16px; line-height: 24px; width: 100%; }
.chip-f { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; font-weight: 550; color: var(--ink); background: var(--surface); }
.chip-f .x { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; color: var(--ink-3); }
.chip-f .x svg.i { width: 14px; height: 14px; }
.touch .chip-f { height: 44px; }
.tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--sunken); }
.tabs span { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; color: var(--ink-2); font-weight: 550; white-space: nowrap; }
.tabs span.on { background: var(--surface); color: var(--ink); box-shadow: var(--ring); }
.tabs span em { font-style: normal; color: var(--ink-3); font-weight: 450; font-variant-numeric: tabular-nums; }
.touch .tabs span { height: 40px; padding: 0 12px; }
.field { height: 32px; width: 100%; border: 1px solid var(--field); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 0 10px; font: 450 14px/20px var(--sans); display: flex; align-items: center; }
.field.ph-t { color: var(--ink-3); }
.touch .field { height: 44px; font-size: 16px; }

/* Pet photos. These mockups cannot load real photos, so each pet gets a flat coat-colored placeholder where its photo goes. */
.pp { --s: 28px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--fur, var(--sunken)); box-shadow: inset 0 0 0 1px var(--img-edge); }
.pp svg.i { width: calc(var(--s) * .62); height: calc(var(--s) * .62); fill: rgba(25,22,18,.42); }
.pp.dark-coat svg.i { fill: rgba(255,252,246,.55); }
.pp.none { background: var(--sunken); }
.pp.none svg.i { fill: var(--ink-3); opacity: .5; }
.pp.s20 { --s: 20px; } .pp.s40 { --s: 40px; } .pp.s48 { --s: 48px; }

/* Status chips: 20px, glyph first, never clickable */
.st { height: 20px; padding: 0 6px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; font: 550 12px/16px var(--sans); letter-spacing: 0; white-space: nowrap; background: var(--bg); color: var(--fg); }
.st svg.i { width: 12px; height: 12px; }
.s-nc { --bg: var(--nc-bg); --fg: var(--nc); } .s-cf { --bg: var(--cf-bg); --fg: var(--cf); } .s-wt { --bg: var(--wt-bg); --fg: var(--wt); }
.s-sv { --bg: var(--sv-bg); --fg: var(--sv); } .s-rd { --bg: var(--rd-bg); --fg: var(--rd); } .s-dn { --bg: var(--dn-bg); --fg: var(--dn); }
.s-cx { --bg: transparent; --fg: var(--cx); } .s-cx.st { padding: 0 5px; outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.s-cx.st span { text-decoration: line-through; }

/* Tables: header 32, rows 44 (56 on touch), photo first, money right and tabular */
table.t { width: 100%; border-collapse: collapse; }
.t th { height: 32px; padding: 0 8px; text-align: left; background: var(--surface-2); color: var(--ink-3); font: 550 12px/16px var(--sans); letter-spacing: 0; white-space: nowrap; }
.t th:first-child { border-radius: 6px 0 0 6px; } .t th:last-child { border-radius: 0 6px 6px 0; }
.t td { height: 44px; padding: 0 8px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t .r { text-align: right; }
.t td.time { color: var(--ink-2); width: 76px; font-variant-numeric: tabular-nums; }
.t td.money { text-align: right; font-variant-numeric: tabular-nums; }
.t .pet { display: flex; align-items: center; gap: 10px; }
.t .pet b { font-weight: 550; }
.t .pet span { color: var(--ink-3); font-size: 13px; }
.t td.more { width: 40px; text-align: right; padding-right: 0; }
.t tbody tr { transition: background-color 150ms ease-out; }
.t tbody tr:hover { background: var(--surface-2); transition-duration: 0ms; }
.staff { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }

/* ── Today ── */
.anchor { font: 550 28px/36px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 24px; }
.anchor small { font: 450 14px/20px var(--sans); letter-spacing: -0.006em; color: var(--ink-2); margin-left: 8px; }
.sentence { color: var(--ink-2); margin-top: 2px; max-width: 65ch; }
.today-cols { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; margin-top: 32px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.today-cols > * { min-width: 0; }
.li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.li > div { min-width: 0; flex: 1; }
.li b { display: block; font-weight: 550; }
.li .meta { display: block; }
.group + .group { margin-top: 24px; }

/* ── Calendar ── */
.cal-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.key { display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; }
.key span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--ink-2); white-space: nowrap; }
.key svg.i { width: 12px; height: 12px; color: var(--fg); }
.key .sw { width: 12px; height: 12px; border-radius: 4px; display: grid; place-items: center; background: var(--bg); }
.key .sw svg.i { width: 10px; height: 10px; }
.cal { margin-top: 12px; display: grid; grid-template-columns: 52px repeat(var(--cols), minmax(0, 1fr)); }
.cal-h { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.cal-h b { font-weight: 550; }
.cal-h .cap12 { margin-left: auto; font-variant-numeric: tabular-nums; }
.cal-body { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: 52px repeat(var(--cols), minmax(0, 1fr)); height: calc(var(--h) + 8px); padding-top: 8px; overflow: hidden; }
.gut { position: relative; }
.gut span { position: absolute; right: 8px; transform: translateY(-8px); font-size: 12px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.col { position: relative; }
.hl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.hl.half { background: var(--half); }
.col + .col { box-shadow: -1px 0 0 var(--line); }
.off { position: absolute; left: 0; right: 0; background: var(--sunken); }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 6px; padding: 5px 6px; overflow: hidden; background: var(--bg); color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); display: flex; gap: 6px; }
.ev .tx { min-width: 0; flex: 1; }
.ev b { display: block; font: 550 13px/16px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .ev-s { display: block; font-size: 12px; line-height: 16px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .tm { display: block; font-size: 12px; line-height: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ev .g { position: absolute; top: 5px; right: 5px; width: 12px; height: 12px; color: var(--fg); }
.ev.short { padding: 3px 6px; align-items: center; }
.ev.short b { font-size: 12px; }
.ev.cx { background: transparent; border: 1px dashed var(--line-strong); }
.ev.cx b, .ev.cx .ev-s { color: var(--cx); text-decoration: line-through; }
.ev.brk { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-3); align-items: center; justify-content: center; font-size: 12px; }
.ev.brk svg.i { width: 14px; height: 14px; }
.ev.more { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink-2); }
.stack { display: flex; }
.stack .pp + .pp { margin-left: -8px; }
.stack .pp { box-shadow: 0 0 0 2px var(--surface-2); }
.now { position: absolute; left: 52px; right: 0; height: 1px; background: var(--now); pointer-events: none; }
.now::before { content: ''; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--now); }

/* ── Checkout ── */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; margin-top: 24px; }
.who-big { display: flex; align-items: center; gap: 12px; }
.who-big b { display: block; font: 650 16px/24px var(--sans); letter-spacing: -0.011em; }
.sum { background: var(--surface-2); border-radius: 8px; padding: 20px; }
.row { display: flex; justify-content: space-between; gap: 12px; min-height: 28px; align-items: center; }
.row .v { font-variant-numeric: tabular-nums; }
.row.muted { color: var(--ink-2); }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.tip { height: 52px; border-radius: 6px; background: var(--sunken); display: grid; place-content: center; text-align: center; border: 0; cursor: pointer; }
.tip b { font-weight: 550; line-height: 18px; }
.tip span { font-size: 12px; line-height: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tip.on { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tip.on b, .tip.on span { color: var(--accent); }
.touch .tip { height: 56px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; }
.total .v { font: 550 28px/36px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Receipt: the established-shop moment */
.paper { background: var(--surface); padding: 28px 24px 24px; color: var(--ink); }
.r-shop { font: 600 18px/24px var(--serif); font-variation-settings: 'opsz' 16; letter-spacing: -0.005em; text-align: center; }
.r-addr { text-align: center; color: var(--ink-2); font-size: 13px; line-height: 18px; margin-top: 4px; }
.r-meta { display: flex; justify-content: space-between; margin-top: 20px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.r-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.r-line .v { font-variant-numeric: tabular-nums; }
.r-line small { display: block; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.r-rule { height: 1px; background: var(--line-strong); margin: 12px 0; }
.r-total { text-align: right; font: 550 28px/36px var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.r-note { margin-top: 20px; color: var(--ink-2); font-size: 13px; line-height: 18px; text-align: center; }

/* ── Booking page (shop color #7a3b2e) ── */
.bk { background: var(--surface); height: 100%; overflow: hidden; }
.bk-top { display: flex; align-items: center; gap: 12px; padding: 16px 48px; }
.logo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 17px/1 var(--serif); font-variation-settings: 'opsz' 16; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.bk-name { font: 600 18px/24px var(--serif); font-variation-settings: 'opsz' 32; }
.bk-top .meta { margin-left: auto; text-align: right; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 8px 48px 0; align-items: center; }
.photo { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 8px; background: var(--sunken); display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ink-3); text-align: center; font-size: 13px; line-height: 18px; padding: 16px; }
.photo svg.i { width: 40px; height: 40px; opacity: .6; }
.display { font: 600 40px/44px var(--serif); font-variation-settings: 'opsz' 48; letter-spacing: -0.022em; text-wrap: balance; }
.hero p { color: var(--ink-2); margin-top: 12px; max-width: 46ch; }
.bk-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 32px 48px 0; }
.svcs { display: grid; gap: 8px; margin-top: 8px; }
.svc { cursor: pointer; transition: background-color 150ms ease-out; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line-strong); }
.svc > div { flex: 1; min-width: 0; }
.svc b { font-weight: 550; display: block; }
.svc .meta { display: block; }
.svc .v { font-variant-numeric: tabular-nums; font-weight: 550; }
.svc:hover { background: var(--surface-2); transition-duration: 0ms; }
.svc:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.svc { position: relative; }
.svc.on { border-color: var(--accent); background: var(--accent-wash); }
.svc .rad { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--field); flex: none; display: grid; place-items: center; }
.svc.on .rad { border-color: var(--accent); background: var(--accent); }
.svc.on .rad::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.day, .slot { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 0; transition: background-color 150ms ease-out; }
.day:hover:not(:disabled):not(.on), .slot:hover:not(:disabled):not(.on) { background: var(--surface-2); transition-duration: 0ms; }
.day:disabled, .slot:disabled { cursor: default; }
.day { height: 52px; border-radius: 6px; display: grid; place-content: center; text-align: center; color: var(--ink); }
.day span { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.day b { font-weight: 550; font-variant-numeric: tabular-nums; }
.day.on { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--accent); }
.day.on b, .day.on span { color: var(--accent); }
.day.closed { color: var(--ink-3); }
.day.closed b { text-decoration: line-through; font-weight: 450; }
.wk { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.slot { height: 32px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; font-weight: 550; }
.slot.on { border-color: var(--accent); background: var(--accent-wash); color: var(--accent); }
.slot.gone { color: var(--ink-3); border-style: dashed; font-weight: 450; text-decoration: line-through; }
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 16px; border-radius: 8px; background: var(--surface-2); }
.touch .slot { height: 44px; }
.touch .day { height: 56px; }

/* ── Phone ── */
.phone-app { display: flex; flex-direction: column; height: 100%; background: var(--surface); }
.p-top { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; }
.p-body { flex: 1; min-height: 0; overflow: hidden; padding: 4px 16px 16px; }
.p-tabs { flex: none; height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: inset 0 1px 0 var(--line-strong); padding-bottom: 4px; }
.p-tabs a { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 12px; line-height: 16px; color: var(--ink-3); text-decoration: none; }
.p-tabs a svg.i { width: 24px; height: 24px; }
.p-tabs a.on { color: var(--ink); font-weight: 550; }
.p-tabs a.on svg.i { color: var(--accent); }
.p-row { display: flex; align-items: center; gap: 12px; min-height: 64px; box-shadow: inset 0 -1px 0 var(--line); }
.p-row:last-child { box-shadow: none; }
.p-row > div { flex: 1; min-width: 0; }
.p-row b { font-weight: 550; }
.p-row .meta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row .time { width: 64px; color: var(--ink-2); font-variant-numeric: tabular-nums; flex: none; }

/* ── List states ── */
.states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .states { grid-template-columns: minmax(0, 1fr); } }
.state { background: var(--surface); border-radius: 8px; padding: 20px; min-height: 220px; display: flex; flex-direction: column; }
.state .cap12 { margin-bottom: 12px; }
.empty { margin: auto 0; display: grid; justify-items: start; gap: 8px; }
.empty .sec { font-size: 16px; }
.sk { display: flex; align-items: center; gap: 10px; height: 44px; }
.sk i { display: block; height: 10px; border-radius: 4px; background: var(--skel); }
.sk i.c { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.err { margin: auto 0; display: grid; justify-items: start; gap: 8px; }
.err .sec { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 150ms !important; } }

/* ── Grooming board on the TV: always dark, as in the app (docs/DESIGN.md). Big type, read from across the room. ── */
.frame.tv {
  color-scheme: dark;
  --canvas: #161513; --surface: #1c1b19; --surface-2: #22211e; --sunken: #121110; --raise: #22211e;
  --line: rgba(238,236,230,.08); --line-strong: rgba(238,236,230,.14); --img-edge: rgba(255,255,255,.1);
  --ink: #eeece6; --ink-2: #b5b3ad; --ink-3: #8f8d86;
  --rd-bg: #132a1b; --rd: #8fd3a6;
  background: var(--sunken); color: var(--ink);
}
.tvb { height: 100%; display: flex; flex-direction: column; padding: 24px 28px; gap: 20px; }
.tvb-top { display: flex; align-items: baseline; justify-content: space-between; }
.tvb-shop { font: 600 28px/36px var(--serif); font-variation-settings: 'opsz' 32; letter-spacing: -.01em; }
.tvb-meta { display: flex; gap: 24px; color: var(--ink-2); font-size: 17px; }
.tvb-clock { color: var(--ink); font-weight: 550; }
.tvb-cols { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.tvb-col { background: var(--canvas); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tvb-col.is-ready { background: var(--rd-bg); }
.tvb-h { display: flex; justify-content: space-between; font: 650 17px/24px var(--sans); }
.tvb-h span { color: var(--ink-3); font-weight: 550; }
.is-ready .tvb-h, .is-ready .tvb-h span { color: var(--rd); }
.tvb-card { background: var(--surface); border-radius: 6px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.tvb-who { display: flex; gap: 10px; align-items: center; }
.tvb-who .pp { --s: 44px; }
.tvb-who div { min-width: 0; }
.tvb-who b { display: block; font: 600 19px/24px var(--serif); font-variation-settings: 'opsz' 24; }
.tvb-who div span { display: block; color: var(--ink-3); font-size: 13px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvb-svc { margin-top: 10px; font-weight: 550; font-size: 14px; }
.tvb-foot { margin-top: 6px; display: flex; justify-content: space-between; color: var(--ink-2); font-size: 13px; }
.tvb-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

/* ── The client's phone: a plain message thread, not a copy of any phone maker's app. ── */
.sms { height: 100%; display: flex; flex-direction: column; background: var(--surface); }
.sms-top { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px 14px; border-bottom: 1px solid var(--line); }
.sms-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); font: 600 20px/1 var(--serif); }
.sms-top p { font-weight: 550; font-size: 14px; }
.sms-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.sms-when { align-self: center; margin: 8px 0 4px; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.sms-in, .sms-out { max-width: 80%; overflow-wrap: anywhere; padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 22px; }
.sms-in { align-self: flex-start; background: var(--sunken); color: var(--ink); border-bottom-left-radius: 6px; }
.sms-out { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 6px; }
.sms-bar { margin: 12px 16px 28px; height: 40px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-strong); display: flex; align-items: center; padding: 0 16px; color: var(--ink-3); }

/* The van booking page on a client's phone. */
.vb { height: 100%; display: flex; flex-direction: column; background: var(--surface); }
.vb-top { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px 14px; border-bottom: 1px solid var(--line); }
.vb-top p { font-weight: 550; font-size: 14px; }
.vb-sub { color: var(--ink-3); font-size: 12px; line-height: 16px; }
.vb-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; }
.vb-h { margin-top: 6px; font: 600 18px/24px var(--serif); color: var(--ink); }
.vb-n { color: var(--ink-2); font-size: 13px; line-height: 18px; }
.vb-opt { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.vb-opt.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface-2); }
.vb-opt b { font-weight: 600; font-size: 15px; }
.vb-opt span { color: var(--ink-2); font-size: 13px; }
.vb-l { margin-top: 4px; font-weight: 550; font-size: 13px; color: var(--ink); }
.vb-f { height: 44px; font-size: 15px; }
.vb-days { display: flex; gap: 8px; }
.vb-days span, .vb-wins span { height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.vb-wins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vb-days span.on, .vb-wins span.on { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); background: var(--surface-2); }
.vb-foot { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 28px; border-top: 1px solid var(--line); }
.vb-foot .btn { height: 48px; width: 100%; justify-content: center; font-size: 16px; }
.vb-foot p { text-align: center; color: var(--ink-3); font-size: 12px; line-height: 16px; }
