/* Demo Motors: one system for the public page, booking flow and staff view.
   Palette dealt by tasteskill (paper-grey-brass: workshop grey ground, number-plate yellow accent);
   type Gabarito / Figtree; soft radius; flat grounds. */
:root {
  --bg: #e8e8e3; --surface: #dcdcd6; --card: #f3f3ef; --ink: #181715; --muted: #5c5b56; --line: #c9c9c2;
  --accent: #bfb21a; --plate: #f2cf1d; --inv: #181715; --inv-2: #242321; --inv-ink: #e8e8e3; --inv-muted: #a3a29e;
  --green: #2f7d4f; --green-bg: #dbe9df; --amber: #b8770b; --amber-bg: #f3e6c8; --red: #a8322a; --red-bg: #f2d9d6;
  --display: "Gabarito", system-ui, sans-serif; --text: "Figtree", system-ui, sans-serif;
  --r-s: 8px; --r-m: 12px; --r-l: 18px;
  --wrap: 1240px; --gut: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 84px); letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.eyebrow { font: 500 14px/1.2 var(--text); letter-spacing: .02em; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); font: 500 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(24, 23, 21, .55); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-plate { background: var(--plate); border-color: var(--plate); color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ghost-inv { background: transparent; color: var(--inv-ink); border-color: rgba(232, 232, 227, .5); }
.btn-ghost-inv:hover { background: var(--inv-ink); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s var(--ease); }
.link:hover { background-size: 100% 1.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: #3fae6a; box-shadow: 0 0 0 4px rgba(63, 174, 106, .18); }
.dot-amber { background: #e3a21a; box-shadow: 0 0 0 4px rgba(227, 162, 26, .2); }

/* ---------- demo ribbon, hours banner, header ---------- */
.ribbon { background: var(--ink); color: var(--inv-ink); font-size: 13.5px; text-align: center; padding: 7px var(--gut); }
.ribbon strong { color: var(--plate); font-weight: 600; }
.banner { background: var(--inv-2); color: var(--inv-ink); font-size: 15px; }
.banner-row { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.banner-row p { flex: 1 1 320px; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(232, 232, 227, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--plate); display: grid; place-items: center; font: 700 15px/1 var(--display); letter-spacing: -.02em; border: 1.5px solid var(--ink); }
.brand-name { font: 500 19px/1 var(--display); letter-spacing: -.02em; }
.brand-name small { display: block; font: 400 12.5px/1.3 var(--text); color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15.5px; padding: 12px 0; }
.nav-toggle { display: none; }
.open-pill { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--green-bg); color: var(--green); white-space: nowrap; }
.open-pill[data-state="closed"] { background: var(--amber-bg); color: #7a4f07; }

/* ---------- sections ---------- */
main > section { padding: clamp(72px, 9vw, 120px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }

/* hero */
.hero { padding-top: clamp(28px, 4vw, 56px) !important; padding-bottom: clamp(40px, 5vw, 72px) !important; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; min-height: calc(100svh - 190px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.hero-fact { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; }
.hero-fact .plate { font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 420px; background: var(--surface); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.slot-card { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(243, 243, 239, .96); border-radius: var(--r-m); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; box-shadow: 0 18px 40px -20px rgba(0,0,0,.5); }
.slot-card .eyebrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.slot-card strong { font: 400 24px/1.1 var(--display); letter-spacing: -.02em; }
.plate { display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--ink); font: 700 1em/1 var(--display); letter-spacing: .04em; background: var(--plate); }
.plate::before { content: "UK"; background: #1d4fa3; color: #fff; font: 600 .62em/1 var(--text); padding: 0 6px; display: grid; place-items: center; letter-spacing: 0; }
.plate span { padding: 6px 10px; white-space: nowrap; }
.slot-card { text-decoration: none; color: var(--ink); }
[data-enter] > * { animation: enter .8s var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
[data-enter] > *:nth-child(4) { animation-delay: .24s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-media[data-enter-photo] img { animation: settle 1.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* prices */
.prices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.price-row h3 { font-size: 21px; }
.price-row .amt { font: 400 26px/1 var(--display); letter-spacing: -.02em; }
.price-row p { grid-column: 1 / -1; color: var(--muted); font-size: 16px; }
.price-row a { grid-column: 1 / -1; justify-self: start; font-size: 15.5px; font-weight: 500; }
.price-media { display: grid; gap: 16px; position: sticky; top: 100px; }
.frame { border-radius: var(--r-l); overflow: hidden; background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.frame:hover img { transform: scale(1.025); }
.price-media .frame:first-child { aspect-ratio: 4 / 3; }
.price-media .frame:last-child { aspect-ratio: 16 / 9; }
.note { font-size: 15px; color: var(--muted); margin-top: 18px; }

/* diary preview */
.diary-band { background: var(--surface); }
.diary-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.steps-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; counter-reset: s; }
.steps-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; font-size: 17px; }
.steps-list li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 14px/1 var(--text); }
.app-frame { background: var(--card); border-radius: var(--r-l); box-shadow: 0 30px 60px -30px rgba(24, 23, 21, .35), 0 0 0 1px var(--line); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.app-bar strong { font-weight: 600; margin-right: auto; }
.app-body { padding: 18px; }

/* diary grid (shared by booking + staff + preview) */
.diary { --cols: 9; display: grid; grid-template-columns: 92px repeat(var(--cols), minmax(0, 1fr)); gap: 4px; font-size: 13px; }
.diary .hcell { text-align: center; color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.diary .bay { display: flex; flex-direction: column; justify-content: center; font-weight: 600; font-size: 13px; line-height: 1.2; }
.diary .bay small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.diary .cell { height: 44px; border-radius: 6px; background: #fff; border: 1px solid var(--line); position: relative; }
.diary .cell.busy { background: repeating-linear-gradient(135deg, #d3d3cc 0 6px, #cacac3 6px 12px); border-color: #c4c4bd; }
.diary .cell.mine { background: var(--ink); border-color: var(--ink); }
.diary .cell.sel { background: var(--plate); border-color: var(--ink); border-width: 2px; }
.diary .cell.past { opacity: .45; }
.diary .cell .lbl { position: absolute; inset: 3px 5px; font-size: 11px; line-height: 1.15; color: var(--inv-ink); overflow: hidden; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 12px; border-radius: 3px; border: 1px solid var(--line); background: #fff; display: inline-block; }
.legend i.busy { background: repeating-linear-gradient(135deg, #d3d3cc 0 3px, #cacac3 3px 6px); }
.legend i.sel { background: var(--plate); border-color: var(--ink); }
.legend i.mine { background: var(--ink); }

/* assistant section */
.assist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.assist-grid .frame { aspect-ratio: 4 / 5; }
.ask-list { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.ask-list button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 18px;
  border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); font: 400 17px/1.3 var(--text); color: var(--ink); cursor: pointer; transition: transform .18s var(--ease), border-color .18s; }
.ask-list button:hover { transform: translateY(-2px); border-color: var(--ink); }
.ask-list button span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ask-list button:active { transform: translateY(0) scale(.99); }

/* recovery */
.recovery { background: var(--inv); color: var(--inv-ink); }
.recovery .lead { color: var(--inv-muted); }
.rec-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.rec-grid .frame { aspect-ratio: 4 / 3; background: var(--inv-2); }
.rec-word { font: 400 clamp(80px, 12vw, 168px)/.9 var(--display); letter-spacing: -.05em; color: var(--plate); margin-bottom: 18px; }
.rec-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 34px; border-top: 1px solid #3a3936; padding-top: 22px; }
.rec-facts strong { display: block; font: 400 26px/1.1 var(--display); color: var(--inv-ink); }
.rec-facts span { font-size: 14.5px; color: var(--inv-muted); }

/* visit */
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 64px); }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; margin-top: 8px; }
.hours td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 600; }
.visit-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visit-photos .frame { aspect-ratio: 3 / 4; }
.visit-name { font: 400 clamp(44px, 6vw, 80px)/.95 var(--display); letter-spacing: -.045em; margin-bottom: 26px; }

/* footer */
.footer { background: var(--surface); padding: 48px 0 120px; font-size: 14.5px; color: var(--muted); }
.footer-row { display: flex; gap: 24px 40px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--ink); }
.credits { margin-top: 26px; font-size: 12.5px; line-height: 1.6; }

/* ---------- mobile action bar ---------- */
.actionbar { display: none; }

/* ---------- sheets (recovery form) ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(24, 23, 21, 0); transition: background .2s; }
.sheet.is-open { background: rgba(24, 23, 21, .55); }
.sheet-card { width: min(560px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--bg); border-radius: var(--r-l); padding: 26px; transform: translateY(16px); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
.sheet.is-open .sheet-card { transform: none; opacity: 1; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.sheet-top h2 { font-size: 30px; }
.sheet-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 24px; line-height: 1; cursor: pointer; flex: none; }
.sheet-close:hover { border-color: var(--ink); }
.html-lock, .sheet-open body { overflow: hidden; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: #fff; font: 400 17px/1.3 var(--text); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(191, 178, 26, .45); }
.field [aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 16px; }
.radios legend { margin-bottom: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.radio input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.radio input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.callout { border-radius: var(--r-m); padding: 14px 16px; font-size: 15px; margin-bottom: 16px; }
.callout-red { background: var(--red-bg); color: #5e1a15; }
.callout-amber { background: var(--amber-bg); color: #5a3a05; }
.callout-green { background: var(--green-bg); color: #18452b; }

/* ---------- chat ---------- */
.chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  border: 0; background: var(--ink); color: var(--bg); font: 500 16px/1 var(--text); cursor: pointer; box-shadow: 0 14px 30px -12px rgba(24, 23, 21, .6); transition: transform .18s var(--ease); }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab:active { transform: scale(.97); }
.chat-fab-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--plate); box-shadow: 0 0 0 4px rgba(242, 207, 29, .25); }
.chat-open .chat-fab { display: none; }
.chat-panel { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 400px; height: min(640px, calc(100svh - 48px)); display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--r-l); box-shadow: 0 30px 70px -20px rgba(24, 23, 21, .55), 0 0 0 1px var(--line); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--ink); color: var(--inv-ink); }
.chat-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--plate); color: var(--ink); display: grid; place-items: center; font: 700 14px/1 var(--display); flex: none; }
.chat-title { display: grid; line-height: 1.25; margin-right: auto; min-width: 0; }
.chat-title strong { font-weight: 600; font-size: 15.5px; }
.chat-sub { font-size: 12.5px; color: var(--inv-muted); }
.chat-mode { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: #34332f; color: var(--inv-muted); white-space: nowrap; }
.chat-mode[data-live="1"] { background: #1f4d33; color: #bfe5cc; }
.chat-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--inv-ink); font-size: 26px; cursor: pointer; }
.chat-x:hover { background: #34332f; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; }
.msg p { padding: 11px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; }
.msg-bot { align-self: flex-start; }
.msg-bot p { background: var(--card); border: 1px solid var(--line); border-top-left-radius: 5px; }
.msg-user { align-self: flex-end; }
.msg-user p { background: var(--ink); color: var(--bg); border-top-right-radius: 5px; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.msg-card { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--green-bg); color: #18452b; font-size: 14px; }
.msg-card .dot { margin-top: 6px; }
.msg-card strong { display: block; font-weight: 600; }
.msg-typing p { display: flex; gap: 5px; padding: 15px 16px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.chat-chips[hidden] { display: none; }
.chat-chips button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 400 14px/1 var(--text); cursor: pointer; color: var(--ink); }
.chat-chips button:hover { border-color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 400 16px/1 var(--text); }
.chat-form input:focus { outline: none; border-color: var(--ink); }
.chat-send { min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: 500 15px/1 var(--text); cursor: pointer; }

/* ---------- booking page ---------- */
.book-main { padding: 32px 0 140px; }
.book-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: st; }
.stepper li { flex: 1; font-size: 13px; color: var(--muted); }
.stepper li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.stepper li.done::before { background: var(--ink); }
.stepper li.now { color: var(--ink); font-weight: 600; }
.stepper li.now::before { background: var(--accent); }
.step h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 10px; }
.step > .muted { margin-bottom: 26px; }
.step[hidden] { display: none; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc { position: relative; text-align: left; display: grid; gap: 6px; padding: 18px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font: inherit; color: inherit; transition: transform .18s var(--ease), border-color .18s; }
.svc:hover { transform: translateY(-2px); border-color: var(--ink); }
.svc[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.svc[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--plate); border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.svc h3 { font-size: 20px; padding-right: 30px; }
.svc .amt { font: 400 24px/1 var(--display); }
.svc p { color: var(--muted); font-size: 14.5px; }
.svc .tag { justify-self: start; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--plate); font-weight: 600; }
.step-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; }
.reg-box { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.reg-input { display: flex; align-items: stretch; border: 2.5px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--plate); flex: 1 1 280px; max-width: 380px; }
.reg-input .uk { background: #1d4fa3; color: #fff; font: 700 13px/1 var(--text); padding: 0 10px; display: grid; place-items: center; }
.reg-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 34px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 12px 14px; color: var(--ink); }
.reg-input input:focus { outline: none; }
.reg-input:focus-within { box-shadow: 0 0 0 4px rgba(24, 23, 21, .18); }
.vehicle { margin-top: 22px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); padding: 20px; display: grid; gap: 14px; }
.vehicle-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.vehicle-top h3 { font-size: 24px; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; font-size: 14.5px; }
.vgrid span { display: block; color: var(--muted); font-size: 12.5px; }
.vgrid strong { font-weight: 600; }
.demo-tag { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.day { flex: 0 0 auto; min-width: 86px; padding: 10px 12px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--card); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.day:hover { border-color: var(--ink); transform: translateY(-1px); }
.day b { display: block; font: 500 15px/1.2 var(--text); }
.day span { font-size: 12.5px; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day[aria-pressed="true"] span { color: var(--inv-muted); }
.day[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.diary-wrap { overflow-x: auto; padding: 16px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); }
.diary-wrap .diary { min-width: 520px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.time { min-height: 44px; min-width: 76px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 500 15px/1 var(--text); cursor: pointer; color: var(--ink); }
.time:hover { border-color: var(--ink); }
.time[aria-pressed="true"] { background: var(--plate); border-color: var(--ink); }
.live-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.summary { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; display: grid; gap: 14px; }
.summary h2 { font-size: 22px; letter-spacing: -.015em; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row strong { text-align: right; font-weight: 600; }
.sum-total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 17px; }
.sum-total strong { font: 400 26px/1 var(--display); }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.pay-opt { text-align: left; padding: 18px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font: inherit; color: inherit; display: grid; gap: 4px; }
.pay-opt strong { font: 400 26px/1.1 var(--display); }
.pay-opt span { font-size: 14px; color: var(--muted); }
.pay-opt[aria-pressed="true"] { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.card-form { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-m); padding: 20px; }
.test-mode { display: flex; gap: 10px; align-items: center; background: var(--amber-bg); color: #5a3a05; padding: 10px 14px; border-radius: var(--r-s); font-size: 14px; margin-bottom: 16px; font-weight: 500; }
.wallets { display: flex; gap: 8px; margin-bottom: 16px; }
.wallet { flex: 1; min-height: 48px; border-radius: var(--r-s); border: 0; background: #000; color: #fff; font: 600 15px/1 var(--text); cursor: pointer; }
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.processing { display: flex; align-items: center; gap: 12px; padding: 16px; font-weight: 500; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.confirm-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 28px; flex: none; animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ref { font: 600 15px/1 ui-monospace, Consolas, monospace; background: var(--plate); padding: 5px 9px; border-radius: 6px; border: 1.5px solid var(--ink); }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.phone { background: #111; border-radius: 30px; padding: 12px; max-width: 330px; }
.phone-screen { background: #f1f1f4; border-radius: 22px; padding: 16px 12px 20px; min-height: 260px; }
.phone-top { text-align: center; font-size: 12px; color: #666; margin-bottom: 12px; }
.phone-top b { display: block; color: #111; font-size: 14px; }
.sms { background: #e4e4ea; border-radius: 16px; border-bottom-left-radius: 4px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; margin-bottom: 8px; max-width: 92%; }
.sms-time { font-size: 11px; color: #888; margin: 10px 0 6px; text-align: center; }
.email { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; font-size: 14.5px; }
.email-head { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--muted); display: grid; gap: 3px; }
.email-head b { color: var(--ink); font-size: 15px; }
.email-body { padding: 16px; display: grid; gap: 10px; }
.email-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.email-body td { padding: 6px 0; border-bottom: 1px solid #eee; }
.email-body td:last-child { text-align: right; font-weight: 600; }
.after { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- staff ---------- */
.staff body, body.staff { background: #e3e3de; }
.staff-main { padding: 28px 0 80px; }
.staff-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.staff-top h1 { font-size: clamp(32px, 4vw, 48px); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.kpi span { font-size: 13.5px; color: var(--muted); }
.kpi strong { display: block; font: 400 32px/1.1 var(--display); letter-spacing: -.02em; margin-top: 4px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 24px; letter-spacing: -.015em; }
.count { font: 600 12.5px/1 var(--text); background: var(--plate); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--ink); margin-left: 8px; vertical-align: middle; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; padding: 14px 16px; display: grid; gap: 6px; font-size: 14.5px; }
.item.is-new { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--plate); }
.item-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.item-top strong { font-size: 16px; font-weight: 600; }
.item dl { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; margin: 4px 0 0; }
.item dt { color: var(--muted); }
.item dd { margin: 0; }
.badge { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--surface); white-space: nowrap; }
.badge.new { background: var(--plate); }
.badge.sent, .badge.paid { background: var(--green-bg); color: var(--green); }
.badge.queued { background: var(--amber-bg); color: #7a4f07; }
.badge.urgent { background: var(--red-bg); color: var(--red); }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.quote-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.quote-form input { width: 120px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 14px; font: inherit; }
.empty { color: var(--muted); font-size: 14.5px; padding: 10px 0; }
.rem-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rem-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.rem-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rem-table td.msg-text { color: var(--muted); max-width: 420px; }
.staff-date { display: flex; gap: 8px; align-items: center; }

.book-layout > *, .hero-grid > *, .prices-grid > *, .diary-split > *, .assist-grid > *, .rec-grid > *, .visit-grid > *, .two-col > *, .confirm-grid > * { min-width: 0; }
.panel { min-width: 0; overflow-x: auto; }
/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .book-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .prices-grid, .diary-split, .assist-grid, .rec-grid, .visit-grid, .two-col { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 5; }
  .price-media { position: static; }
  .assist-grid .frame { aspect-ratio: 4 / 3; order: -1; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-links { display: none; }
  .menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: fixed; inset: 68px 0 0 0; background: var(--bg); padding: 12px var(--gut); z-index: 39; }
  .menu-open .nav-links a { font: 400 30px/1.2 var(--display); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header .open-pill { display: none; }
  .actionbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(232, 232, 227, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .actionbar .btn { width: 100%; padding: 0 10px; }
  .chat-fab { bottom: 84px; right: 14px; min-height: 52px; }
  .chat-panel { inset: 0; width: auto; height: auto; border-radius: 0; right: 0; bottom: 0; }
  .footer { padding-bottom: 150px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .svc-grid, .pay-opts, .confirm-grid, .row2 { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .rec-facts { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .rec-facts strong { font-size: 21px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chat-fab-label { display: none; }
  .chat-fab { padding: 0; width: 56px; justify-content: center; }
  .chat-fab-dot { width: 14px; height: 14px; }
  .reg-input input { font-size: 28px; }
  .step-actions .btn { flex: 1 1 auto; }
  .sheet { padding: 0; align-items: end; }
  .sheet-card { border-radius: var(--r-l) var(--r-l) 0 0; max-height: 92svh; }
  .rem-table thead { display: none; }
  .rem-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rem-table td { border: 0; padding: 0; }
  .rem-table td.msg-text { grid-column: 1 / -1; }
  .item dl { grid-template-columns: 84px 1fr; }
  .visit-photos .frame { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
