/* FixMyCar app pages: matches the fixmycar.uk site (dark AI frame, light reading sheet, Geist). */
/* Geist is served from this app (SIL OFL, see /fonts/GEIST-OFL.txt), so no visitor data goes to a font host. */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --night: #07080B; --night-line: rgba(255, 255, 255, .08); --night-text: #F3F4F6; --night-muted: #8A9099;
  --canvas: #F5F3EE; --surface: #FFFFFF; --sunken: #EEEBE3; --ink: #0E1014; --ink-2: #4B515B; --muted: #62676F;
  --line: rgba(14, 16, 20, .09); --control: rgba(14, 16, 20, .22);
  --amber: #FFB21A; --amber-2: #FF7A00; --amber-ink: #9C5000; --focus: #E07000;
  --success: #0F6E58; --success-bg: #E3F3EC; --warning: #9A4A06; --warning-bg: #FDEEDC;
  --danger: #B3362C; --danger-bg: #FBE8E6; --info: #2556A8; --info-bg: #E8EFFB; --unknown: #5F6670; --unknown-bg: #ECEBE6;
  --ai: #5B4FD6; --ai-bg: #EEECFF; --user: #6E5A33; --user-bg: #F3EDE1;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--night); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; position: relative; }
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none; background:
  radial-gradient(520px 220px at 18% -40px, rgba(255, 122, 0, .28), transparent 70%),
  radial-gradient(480px 220px at 85% -60px, rgba(139, 124, 255, .24), transparent 70%); }
body::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 360px; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
a { color: var(--info); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 178, 26, .35); }

/* frame */
.top { position: relative; z-index: 1; }
.top__inner, .wrap, .foot { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.top__inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top .muted { color: var(--night-muted); font-size: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night-text); }
.brand:hover { color: #fff; }
.brand__mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(140deg, #FFC549, var(--amber-2)); color: #160D00; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 22px -4px rgba(255, 140, 0, .8); }
.brand__name { font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.brand__tag { font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--amber); padding: 3px 6px; border-radius: 6px; background: rgba(255, 178, 26, .1); box-shadow: inset 0 0 0 1px rgba(255, 178, 26, .3); }
.wrap { position: relative; z-index: 1; }
.sheet { background: var(--canvas); border-radius: 32px; padding: 36px 32px 32px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.foot { position: relative; z-index: 1; margin-top: 22px; padding-bottom: 40px; font-size: 13px; color: var(--night-muted); text-align: center; }
.foot a { color: var(--night-text); }
.foot a:hover { color: var(--amber); }

/* type */
h1 { font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -.04em; margin: 0 0 10px; text-wrap: balance; }
h2 { font-weight: 600; font-size: 18px; letter-spacing: -.02em; margin: 0 0 8px; }
h3 { font-weight: 600; font-size: 16px; margin: 0 0 6px; }
.sheet > h2, .sheet > section > h2 { font-size: 22px; margin-top: 8px; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 22px; }
.overline { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/16px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); margin: 0 0 10px; }
.overline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px rgba(255, 140, 0, .6); }
.card .overline, .quote-card .overline { color: var(--muted); }
.card .overline::before, .quote-card .overline::before { display: none; }
.overline .pill { font: 600 12px/18px var(--sans); letter-spacing: 0; text-transform: none; }
.overline .pill::before { display: inline-block; }
.mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 14px; }
.quote-echo { font-weight: 500; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; margin: 0; }

/* cards */
.card, .quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 0 0 14px; box-shadow: 0 1px 0 rgba(14, 16, 20, .03), 0 12px 28px -20px rgba(14, 16, 20, .25); }
.card--sunken { background: var(--sunken); border-color: transparent; box-shadow: none; }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); margin: 0; }
.row:first-of-type { border-top: 0; }
.row dt { color: var(--muted); font-size: 14px; }
.row dd { margin: 0; font-weight: 500; }
.garage-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.garage-row:first-of-type { border-top: 0; }
.quote-card { transition: border-color .2s, box-shadow .2s; }
.quote-card:hover { border-color: rgba(255, 122, 0, .35); box-shadow: 0 16px 36px -22px rgba(255, 122, 0, .45); }
.quote-card__price { font-weight: 600; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin: 14px 0 6px; }
.quote-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.quote-card__text { margin: 0 0 12px; color: var(--ink-2); }
.quote-card form { margin-top: 16px; }
.quote-card--chosen { border-color: rgba(15, 110, 88, .45); box-shadow: 0 0 0 3px rgba(15, 110, 88, .12); }
.quote-card--other { opacity: .55; box-shadow: none; }
.note { margin: 14px 0 0; }
.section-title { font-size: 20px; margin: 26px 0 12px; }

/* people and progress */
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--sans); letter-spacing: -.02em; color: #fff; background: linear-gradient(140deg, #2A2F3A, #0E1014); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.meter { height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; margin: 2px 0 8px; }
.meter span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--amber-2)); transition: width .6s var(--ease); }

/* the answer: a short conversation */
.you-said { margin: 4px 0 18px auto; max-width: 88%; width: fit-content; padding: 14px 18px; border-radius: 20px 20px 6px 20px; background: var(--ink); color: #fff; box-shadow: 0 14px 30px -18px rgba(14, 16, 20, .6); }
.you-said__label { margin: 0 0 2px; font: 500 10.5px/14px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.you-said__text { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: -.015em; font-weight: 500; }
.ai-said { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ai); }
.ai-said__mark { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(140deg, #8B7CFF, var(--ai)); box-shadow: 0 0 16px -4px rgba(91, 79, 214, .8); }
.answer__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.answer__head .overline { margin: 0; }
.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; margin-bottom: 12px; }
.verdict__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.verdict__q { margin: 0; font-size: 13px; font-weight: 500; opacity: .85; }
.verdict__a { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.verdict__note { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.verdict--success { background: var(--success-bg); color: var(--success); }
.verdict--success .verdict__icon { background: var(--success); }
.verdict--warning { background: var(--warning-bg); color: var(--warning); }
.verdict--warning .verdict__icon { background: #D9730D; }
.verdict--danger { background: var(--danger-bg); color: var(--danger); }
.verdict--danger .verdict__icon { background: var(--danger); }
.verdict--unknown { background: var(--unknown-bg); color: var(--unknown); }
.verdict--unknown .verdict__icon { background: var(--unknown); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; border-radius: 16px; background: var(--canvas); }
.tile .muted { margin: 2px 0 8px; }
.tile__k { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.tile__v { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -.015em; }
.tile__v--num { font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile__unit { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.causes { list-style: none; margin: 0; padding: 0; }

/* garage quote form */
.typical { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--info-bg); color: var(--info); font-size: 14px; }
.typical__k { font: 500 10.5px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.typical__v { font-weight: 600; font-variant-numeric: tabular-nums; }
.seg { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.seg legend { padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.seg__opt { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 12px 40px 12px 16px; border: 1px solid var(--control); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.seg__opt:hover { border-color: var(--ink-2); }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt::after { content: ""; position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--control); background: var(--surface); transition: all .15s; }
.seg__opt:has(input:checked) { border-color: var(--amber-2); background: #FFF8EC; box-shadow: 0 0 0 3px rgba(255, 140, 0, .14); }
.seg__opt:has(input:checked)::after { border: 4.5px solid var(--amber-2); }
.seg__opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg__t { font-weight: 600; font-size: 15px; }
.seg__d { font-size: 13px; color: var(--muted); line-height: 1.35; }
.money { position: relative; display: block; }
.money::before { content: "£"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); pointer-events: none; }
.field .money input { padding-left: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.only-fixed .money input { font-size: 22px; min-height: 58px; }
.money-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quote-form:has(input[name="kind"][value="fixed"]:checked) .only-check,
.quote-form:has(input[name="kind"][value="check_first"]:checked) .only-fixed { display: none; }
.decline { text-align: center; margin-top: 6px; }
.field .hint { font-weight: 400; }

/* garage sign-up */
.perks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.perks li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.perks li::before { content: ""; width: 8px; height: 8px; margin-bottom: 6px; border-radius: 50%; background: var(--amber-2); box-shadow: 0 0 12px rgba(255, 140, 0, .7); }
.perks strong { font-size: 15px; letter-spacing: -.01em; }
.perks span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.step-h { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 6px 0 14px; padding: 0; }
.step-h__n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--mono); color: var(--amber-ink); background: #FFF1DA; }
form.card > .step-h ~ .step-h, .step-set { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-set { border: 0; border-top: 1px solid var(--line); padding: 22px 0 0; margin-left: 0; margin-right: 0; min-width: 0; }
.step-set > legend { float: left; width: 100%; }
.field legend.step-h { font-size: 18px; letter-spacing: -.02em; }
.step-set > legend + * { clear: both; }

/* garage job page */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.chip--amber { color: var(--amber-ink); background: #FFF1DA; border-color: rgba(255, 140, 0, .25); font-weight: 600; }
.driver-said { max-width: 88%; width: fit-content; margin: 0 0 10px; padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 28px -20px rgba(14, 16, 20, .35); }
.driver-said__label { margin: 0 0 2px; font: 500 10.5px/14px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.driver-said__text { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: -.015em; font-weight: 500; }
.qa { margin: 0 0 18px; display: grid; gap: 6px; }
.qa > div { max-width: 88%; width: fit-content; padding: 10px 14px; border-radius: 14px; background: var(--sunken); }
.qa dt { font-size: 13px; color: var(--muted); }
.qa dd { margin: 0; font-weight: 600; }
.driver-said + .card, .qa + .card { margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.fact { padding: 12px 14px; border-radius: 14px; background: var(--canvas); min-width: 0; }
.fact--wide { grid-column: 1 / -1; }
.fact dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.fact dd { margin: 0; font-weight: 600; }
.plate { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #F7D117; color: #111; font: 700 16px/1.3 var(--mono); letter-spacing: .08em; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .55); }

/* legal pages */
.toc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.toc-pills a { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, color .15s; }
.toc-pills a:hover { color: var(--ink); border-color: var(--amber-2); }
section[id] { scroll-margin-top: 20px; }

/* motion: cards arrive one after another */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .sheet > .card, .sheet > .quote-card, .sheet > form.card, .sheet > .you-said, .sheet > .driver-said, .sheet > .perks, .sheet > .next-list { animation: rise .55s var(--ease) both; }
  .sheet > :nth-child(3) { animation-delay: .06s; } .sheet > :nth-child(4) { animation-delay: .12s; }
  .sheet > :nth-child(5) { animation-delay: .18s; } .sheet > :nth-child(6) { animation-delay: .24s; }
  .sheet > :nth-child(7) { animation-delay: .3s; } .sheet > :nth-child(n+8) { animation-delay: .36s; }
  .meter span { animation: fill 1s .35s var(--ease) both; }
  .done-mark { animation: pop .5s .1s var(--ease) both; }
}
@keyframes fill { from { width: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* thanks */
.done-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 18px; color: #fff; background: linear-gradient(140deg, #2FB38C, var(--success)); box-shadow: 0 14px 30px -14px rgba(15, 110, 88, .8); }
.next-list { list-style: none; counter-reset: n; margin: 0 0 24px; padding: 0; }
.next-list li { counter-increment: n; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 58px; margin-bottom: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.next-list li::before { content: counter(n); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--mono); color: var(--amber-ink); background: #FFF1DA; }
.next-list span { font-size: 14px; color: var(--muted); }
.next-steps { background: var(--success-bg); border-color: transparent; box-shadow: none; }
.next-steps .overline { color: var(--success); }
.next-steps ol { margin: 0; padding-left: 20px; font-weight: 500; }
.next-steps li + li { margin-top: 6px; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill--ai { background: var(--ai-bg); color: var(--ai); }
.pill--user { background: var(--user-bg); color: var(--user); }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--success { background: var(--success-bg); color: var(--success); }
.pill--warning { background: var(--warning-bg); color: var(--warning); }
.pill--danger { background: var(--danger-bg); color: var(--danger); }
.pill--unknown { background: var(--unknown-bg); color: var(--unknown); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #FFC549, var(--amber) 55%, #FF9A0A); color: #1A0F00; font: 600 16px var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; box-shadow: 0 10px 26px -12px rgba(255, 122, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform .15s var(--ease), box-shadow .2s; }
.btn:hover { color: #1A0F00; box-shadow: 0 14px 30px -12px rgba(255, 122, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .45); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--control); box-shadow: none; }
.btn--quiet:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: none; }
.linkbtn { background: none; border: 0; padding: 10px 0; font: 500 15px var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { min-height: 50px; padding: 12px 14px; border: 1px solid var(--control); border-radius: 12px; background: var(--surface); font: 16px var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--amber-2); box-shadow: 0 0 0 4px rgba(255, 140, 0, .16); }
.field textarea { min-height: 104px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 14px; color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.choice { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 12px 16px; border: 1px solid var(--control); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: var(--ink-2); }
.choice:has(input:checked) { border-color: var(--amber-2); background: #FFF8EC; box-shadow: 0 0 0 3px rgba(255, 140, 0, .14); }
.choice input { width: 20px; height: 20px; accent-color: var(--amber-2); flex: none; }

/* messages */
.flash { padding: 14px 16px; border-radius: 14px; background: var(--success-bg); color: var(--success); font-weight: 600; margin: 0 0 18px; }
.alert { padding: 14px 16px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); margin: 0 0 18px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

@media (max-width: 560px) {
  .top__inner { height: 64px; }
  .wrap { padding: 0 10px; }
  .sheet { border-radius: 26px; padding: 26px 18px 22px; }
  h1 { font-size: 29px; }
  .row { grid-template-columns: 1fr; gap: 2px; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .you-said { max-width: 94%; }
  .quote-card__price { font-size: 26px; }
  .garage-row > span.who:first-child { flex: 1 1 0; }
  .perks { grid-template-columns: 1fr; }
  .seg__opt { padding: 12px 34px 12px 14px; justify-content: flex-start; }
  .driver-said, .qa > div { max-width: 94%; }
  .money-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money-row .field:first-child { grid-column: 1 / -1; }
  .who ~ .pill { white-space: nowrap; flex: none; }
}

/* ---------- admin (same frame, wider sheet, nav in the dark bar) */
.admin .top__inner, .admin .wrap { max-width: 1180px; }
.admin .top__inner { height: auto; min-height: 72px; flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.admin .brand .pill { background: rgba(255, 255, 255, .08); color: var(--night-muted); }
.admin-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--night-line); }
.admin-nav a { padding: 7px 13px; border-radius: 999px; color: var(--night-muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: color .15s, background .15s; }
.admin-nav a:hover { color: var(--night-text); }
.admin-nav a.is-on { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-nav form { margin: 0; }
.admin-nav .linkbtn { color: var(--night-muted); font-size: 14px; padding: 7px 13px; text-decoration: none; }
.admin-nav .linkbtn:hover { color: var(--amber); }
.narrow { max-width: 440px; margin: 8px auto 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 12px 28px -22px rgba(14, 16, 20, .3); }
.stat__value { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.toc a { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--ink-2); }
.toc a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.settings-section { scroll-margin-top: 16px; }
.settings-section h2 { font-size: 20px; }
.test-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.test-row .field { margin: 0; flex: 1; min-width: 200px; }
.choice--toggle { margin: 0 0 14px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #FBFAF7; }
.outbox-item summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.outbox-body { white-space: pre-wrap; word-break: break-word; font: 13px/1.5 var(--mono); background: var(--sunken); padding: 12px; border-radius: 10px; margin: 12px 0 0; max-height: 420px; overflow: auto; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
@media (max-width: 560px) { .admin-nav { border-radius: 18px; } }
.admin-nav .linkbtn { line-height: 1.4; font-weight: 500; }
@media (max-width: 560px) {
  .garage-row { flex-wrap: wrap; }
  .garage-row > span:first-child { flex: 1 1 100%; }
  .pill { white-space: normal; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat__value { font-size: 22px; line-height: 28px; }
}

/* error pages */
.error-mark { display: inline-block; margin-bottom: 14px; font: 600 54px/1 var(--mono); letter-spacing: -.04em; background: linear-gradient(140deg, #FFC549, var(--amber-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 18px rgba(255, 122, 0, .35)); }

/* accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.foot p { margin: 0; }
.table-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* admin overview */
.stat { position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--amber), var(--amber-2)); opacity: .9; }
.stat--ai::before { background: linear-gradient(90deg, #8B7CFF, var(--ai)); }
.stat--ai .meter { margin: 8px 0 0; height: 4px; }
.stat--ai .meter span { background: linear-gradient(90deg, #8B7CFF, var(--ai)); }
.check-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px dashed var(--control); color: #fff; }
.check-row--ok .check-dot { border: 0; background: var(--success); }
.pill--link { text-decoration: none; transition: background .15s, box-shadow .15s; }
.pill--link:hover { color: var(--warning); background: #FBDFBF; box-shadow: 0 0 0 3px rgba(255, 140, 0, .14); }
.card .answer__head h2 { margin: 0; }
.brand__mark--lg { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px; }
.narrow { text-align: left; }

/* waiting for quotes */
.empty { position: relative; margin: 8px 0 14px; padding: 26px 22px 22px; border-radius: 20px; text-align: center; border: 1.5px dashed rgba(14, 16, 20, .16); }
.empty h2 { margin: 12px 0 6px; }
.empty p { margin: 0 auto; max-width: 440px; }
.empty__pulse { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--amber-2); box-shadow: 0 0 0 0 rgba(255, 122, 0, .5); }
@media (prefers-reduced-motion: no-preference) { .empty__pulse { animation: pulse 1.8s var(--ease) infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, .45); } 70% { box-shadow: 0 0 0 14px rgba(255, 122, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); } }
