/* The web car check (v2/design/web screens 1-6), on top of ../styles.css. */
:root {
  --red: #B3261E;
  --red-light: #FBE9E7;
  --blue: #3D5A99;
  --green-line: #A9C7A6;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 22px; height: 22px; flex: none; fill: currentColor; vertical-align: middle; }
.ico.k-good { color: var(--accent); }
.ico.k-warn { color: var(--amber); }
.ico.k-bad { color: var(--red); }

/* Registration box: a yellow number plate. */
.reg-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.reg-form input {
  flex: 1 1 220px; min-width: 0; height: 62px;
  background: var(--plate); border: 2px solid var(--text); border-radius: 10px;
  padding: 0 16px; font: 700 26px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 3px; text-transform: uppercase; color: var(--text); text-align: center;
}
.reg-form input::placeholder { color: #5A5320; }
/* A postcode box: white, and its example reads as a hint, not a filled-in value. */
.reg-form input.pc-input { background: var(--card); border-width: 1px; letter-spacing: 1px; font-size: 20px; height: 52px; }
.reg-form input.pc-input::placeholder { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.reg-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.reg-form button {
  height: 62px; padding: 0 26px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font: 600 18px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.reg-form button:hover { background: var(--accent-dark); }
.reg-form .err { flex-basis: 100%; margin: 0; color: var(--red); font-weight: 600; font-size: 15px; }
.band .reg-form button { background: #fff; color: var(--accent-dark); }
.band .reg-form .err { color: #fff; }

.ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.ticks li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.ticks .ico { width: 20px; height: 20px; color: var(--accent); }

.regplate {
  display: inline-block; background: var(--plate); border: 1.5px solid var(--text); border-radius: 6px;
  padding: 1px 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--text);
}

/* Check home */
.check-hero { padding: 24px 0 40px; }
.check-hero .wrap > * { min-width: 0; }
.check-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.check-hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 14px; }
.check-hero .lead { margin-bottom: 22px; }
.check-hero .sample-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; text-decoration: none; }
.steps { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0; }
.steps h2, .see h2, .faq h2 { margin-top: 0; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { display: flex; gap: 14px; }
.steps .n {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; flex: none;
}
.steps b { display: block; font-size: 18px; }
.steps span.t { color: var(--muted); font-size: 16px; }
.see { padding: 44px 0; }
.see .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.see .card { margin: 0; }
.band { background: var(--accent); color: #fff; padding: 40px 0; }
.band .wrap > * { min-width: 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.band h2 { color: #fff; margin: 0 0 6px; }
.band p { color: var(--accent-light); margin: 0; }
.band .reg-form { flex: 1 1 380px; }
.faq { padding: 40px 0; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Report and "Is this the right car?" */
.check-page { padding: 24px 0 48px; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 15px; margin-bottom: 8px; }
.back .ico { transform: rotate(180deg); width: 20px; height: 20px; }
.status { text-align: center; padding: 60px 0; color: var(--muted); }
.spinner { width: 36px; height: 36px; margin: 0 auto 14px; border: 4px solid var(--divider); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.right-car { max-width: 680px; }
.car-card { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.car-card h2 { margin: 8px 0 2px; font-size: 26px; }
.car-card .facts { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.fact { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
fieldset.choice { border: 0; padding: 0; margin: 24px 0 0; }
fieldset.choice legend { font-weight: 700; font-size: 19px; padding: 0; margin-bottom: 10px; }
.choice .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice label {
  min-height: 60px; border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; cursor: pointer; padding: 8px 12px;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice input:checked + label { border: 2px solid var(--accent); background: var(--accent-light); color: var(--accent-dark); }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Manual or automatic? (gearboxAsk): three to a row, even on a phone. */
.choice.gear .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }
.choice.gear label { min-height: 52px; }
.choice.gear small { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.gear-known { margin: 18px 0 0; display: flex; align-items: baseline; gap: 12px; font-size: 16px; }
.glance .gear-ask { margin-top: 12px; }
.glance .gear-known { margin: 0; }
.glance fieldset.choice.gear { margin: 0; }
.glance fieldset.choice.gear legend { font-size: 17px; }
/* Which trim is it? (trimAsk): chips like the gearbox, a list past 6 trims. */
.choice.trim .opts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 640px; }
.trim-sel { display: block; width: 100%; max-width: 520px; height: 52px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); color: var(--text); font: 600 17px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.trim-sel:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.trim-ask .gear-known { margin-top: 10px; }
.glance .trim-ask { margin-top: 8px; }
.glance .trim-ask .gear-known { margin: 0; }
.gen-what { margin: 4px 0 0; font-size: 14px; max-width: 60ch; }
.glance fieldset.choice.trim { margin: 0; min-width: 0; }
.field { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.field label { font-weight: 600; }
.field .box { display: flex; align-items: center; height: 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 0 14px; gap: 8px; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 18px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); }
.field input:focus { outline: none; }
.field .box:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.field small { color: var(--muted); font-size: 14px; }
.go {
  margin-top: 26px; width: 100%; height: 56px; border: 0; border-radius: 12px; background: var(--accent); color: #fff;
  font: 600 18px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer;
}
.go:hover { background: var(--accent-dark); }

.report-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
/* One top for every Report tab (Simon, 30 Nov 2026): the car line, then the
   tab's question and one line under it. */
.report-top { margin-bottom: 18px; }
.report-top .report-head { margin-bottom: 0; }
.report-head .regplate { font-size: 19px; }
.report-q { font-size: clamp(19px, 2.6vw, 24px); margin: 14px 0 4px; }
.report-sub { margin: 0; color: var(--muted); font-size: 15px; }
.report-sub a { font-size: inherit !important; }
/* Which engines? on Cars like it (the model pages draw theirs as .mp-eng). */
.rm-eng { display: grid; grid-template-columns: minmax(0, max-content) minmax(40px, 1fr) auto; gap: 6px 12px; align-items: center; margin: 10px 0; font-size: 15px; }
.rm-bar { height: 12px; border-radius: 3px; background: var(--accent); opacity: .55; }
.rm-bar.mine { opacity: 1; }
.rm-eng .n { text-align: right; font-variant-numeric: tabular-nums; }
.rm-yours { font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.mp-wiki { margin: 10px 0 0; }
.report-head h1 { font-size: clamp(22px, 3.2vw, 30px); margin: 0; flex: 1 1 300px; }
.report-head .tool {
  height: 44px; padding: 0 14px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--card);
  color: var(--accent); font: 600 15px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.report { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.report main, .report .main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.report aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* An owner's "Get these fixed?": beside the report on a wide screen; on a
   narrow one (where the side column drops below everything) straight after
   the score, so it isn't 3,000 px down a phone. */
.report .fix-early { display: none; }
@media (max-width: 919px) {
  .report .fix-early { display: block; }
  .report .fix-late { display: none; }
}
.report .card { margin: 0; }
.report h2 { font-size: 20px; margin: 0 0 10px; }

.score-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.ring { width: 116px; height: 116px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.ring .in { width: 90px; height: 90px; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-size: 32px; line-height: 1; }
.ring small { font-size: 13px; color: var(--muted); }
.score-text { flex: 1 1 160px; }
.score-text .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--accent); margin: 0; }
.score-text p.sentence { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 4px 0; }
.score-text small { color: var(--muted); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 18px; }
.tile { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.tile.k-good { border-color: var(--green-line); background: var(--accent-light); }
.tile.k-warn { border: 1.5px solid var(--amber); background: var(--amber-light); }
.tile.k-bad { border: 1.5px solid var(--red); background: var(--red-light); }
.tile span { display: flex; flex-direction: column; line-height: 1.3; }
.tile small { font-size: 13px; }
.tile b { font-size: 16px; }

/* At a glance as tiles (Simon, 19 Nov 2026; v2/design/web/GlanceTiles.mock.html):
   two across, four across once the card is wide enough. Each tile goes to
   its card below. Blue (k-info) is a comparison, never a judgement. */
.glance, .report .main > .card:first-child { container-type: inline-size; }
.gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 760px) { .gtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.gt { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 5px; min-width: 0; background: var(--card); }
.gt.gt-go { cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.gt.gt-go:hover { box-shadow: 0 4px 14px rgba(20, 40, 20, .12); border-color: var(--accent); }
.gt.gt-go:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gt-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 30px; }
.gt:has(.tile-bell) .gt-top { padding-right: 26px; }
.gt-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: #EEF0EC; color: var(--muted); }
.gt-ic svg, .gt-ic .icon { width: 19px; height: 19px; }
.gt-lab { flex: 1 1 calc(100% - 40px); min-width: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.gt-badge { order: 3; margin-left: 38px; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; background: #EEF0EC; color: var(--muted); }
.gt-val { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gt-val small { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.gt-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
/* The Advised list: three lines at most, the whole list is in its card below. */
.gt-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.gt-link { font-weight: 600; color: var(--accent); text-decoration: underline; cursor: pointer; }
.gt .tile-bell { position: absolute; top: 10px; right: 8px; }
@container (min-width: 760px) {
  .gt { padding: 14px; }
  .gt-top { flex-wrap: nowrap; }
  .gt-lab { flex: 1 1 auto; }
  .gt-badge { order: 0; margin-left: 0; }
  .gt-val { font-size: 25px; }
}
.gt.k-good .gt-ic, .gt.k-good .gt-badge { background: var(--accent-light); color: var(--accent-dark); }
.gt.k-good .gt-ic { color: var(--accent); }
.gt.k-warn { border-color: var(--amber); }
.gt.k-warn .gt-ic, .gt.k-warn .gt-badge { background: var(--amber-light); color: #7A4900; }
.gt.k-bad { border-color: var(--red); }
.gt.k-bad .gt-ic, .gt.k-bad .gt-badge { background: var(--red-light); color: var(--red); }
.gt.k-info .gt-ic, .gt.k-info .gt-badge { background: #E6ECF7; color: var(--blue); }
.glance-flash { animation: glance-flash 1.4s ease-out; }
@keyframes glance-flash { 0% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: 0 0 0 4px transparent; } }

/* "Why 4.8?" under the score ring. */
.why { border: 1px solid var(--divider); border-radius: 12px; margin-top: 12px; }
.why summary { list-style: none; cursor: pointer; padding: 10px 12px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.why summary::-webkit-details-marker { display: none; }
.why summary svg, .why summary .icon { width: 20px; height: 20px; transition: transform .15s; }
.why[open] summary svg, .why[open] summary .icon { transform: rotate(90deg); }
.why ul { list-style: none; margin: 0; padding: 0 12px 6px; }
.why li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--divider); font-size: 15px; }
.why li b { font-variant-numeric: tabular-nums; }
.why li b.zero { color: var(--muted); font-weight: 500; }
.why li .d { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.why-cap { margin: 0 12px 8px; font-size: 13px; color: var(--red); font-weight: 600; }
.why-total { display: flex; justify-content: space-between; margin: 0 12px; padding: 8px 0 12px; font-weight: 700; border-top: 1px solid var(--border); }

.things { display: flex; flex-direction: column; gap: 4px; }
.thing summary { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; list-style: none; padding: 6px 0; }
.thing summary::-webkit-details-marker { display: none; }
.thing summary p { margin: 0; flex: 1; min-width: 0; }
.thing summary .k-more { width: 20px; height: 20px; color: var(--muted); transition: transform .15s; }
.thing[open] summary .k-more { transform: rotate(90deg); }
/* Closed: a one-line taste and "More" (Simon, 26 Nov 2026). */
.thing-peek { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The taste is plain text, even from the AI (Simon, 26 Nov 2026); What it means inside keeps its AI line. */
.thing[open] .thing-peek { display: none; }
.thing-more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.thing[open] .thing-more { font-size: 0; }
.thing .body { margin: 2px 0 10px 32px; font-size: 15px; }
.thing .body p { margin: 0 0 8px; color: var(--muted); }
.evidence { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.evidence li { border: 1px solid var(--divider); border-radius: 10px; padding: 8px 10px; }
.evidence .meta { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 0 6px; margin-left: 6px; background: var(--amber-light); color: #7A4A00; }

.bars { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 8px; }
.bars .row { display: grid; grid-template-columns: 44px 1fr 70px; gap: 8px; align-items: center; font-size: 14px; }
.bars .bar { height: 14px; border-radius: 4px; background: var(--accent); }
.bars .bar.warn { background: var(--amber); }
.bars .bar.bad { background: var(--red); }
.bars .v { text-align: right; font-weight: 600; }
.cnote { font-size: 13px; color: var(--muted); margin: 0; }
.model-link { margin: 12px 0 0; }
.model-link a { font-weight: 700; color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent); font: 600 14px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }

.squares { display: grid; gap: 3px; margin: 10px 0 4px; }
.sq-pass { background: var(--accent); }
.sq-advisory { background: var(--amber); }
.sq-fail { background: var(--red); }
.span-years { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }

.costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.cost { border: 1px solid var(--border); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; }
.cost small { font-size: 12px; color: var(--muted); }
.cost b { font-size: 16px; }
.cost b.ok { color: var(--accent); }
.cost b.notok { color: var(--red); }
a.cost-link { color: var(--text); text-decoration: none; }
a.cost-link:hover { border-color: var(--accent); background: var(--accent-light); }
a.cost-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
a.cost-link b:not(.ok):not(.notok) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cost-go { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* Road tax band ladder (taxBandsHtml) */
.tbands { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.tbands h3 { font-size: 15px; margin: 0 0 4px; }
.tb-ladder { display: grid; grid-template-columns: 18px auto 1fr; column-gap: 10px; row-gap: 4px; align-items: center; margin-top: 10px; }
.tb-row { display: contents; }
.tb-head { font-size: 12px; color: var(--muted); text-align: right; }
.tb-head.left { text-align: left; }
.tb-l { font-weight: 700; text-align: center; color: var(--muted); }
.tb-co2, .tb-rate { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-co2 { text-align: right; }
.tb-track { display: flex; align-items: center; gap: 6px; height: 20px; min-width: 0; }
.tb-bar { height: 100%; background: #C9CFC5; border-radius: 0 4px 4px 0; min-width: 4px; flex: none; }
.tb-row.on .tb-l, .tb-row.on .tb-co2, .tb-row.on .tb-rate { color: var(--text); font-weight: 700; }
.tb-row.on .tb-track { height: 26px; }
.tb-row.on .tb-bar { background: var(--accent); }
.tb-tag { background: var(--accent-light); color: var(--accent-dark, var(--accent)); border: 1px solid #A9C7A6; border-radius: 6px; font-size: 12px; font-weight: 700; padding: 1px 6px; white-space: nowrap; }
.tb-tag::before { content: ""; display: inline-block; border: 4px solid transparent; border-right: 5px solid currentColor; border-left: 0; margin-right: 4px; vertical-align: 1px; }
.tb-k { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--accent-light); font-size: 13px; }

.advisories { margin: 0; padding-left: 20px; }
.advisories li { margin: 4px 0; }
.adv-figs { margin: 4px 0 10px; }
.adv-figs p { margin: 2px 0; font-size: 14px; color: var(--muted); }
.adv-figs p:empty { display: none; }

.fix-card { background: var(--accent); color: #fff; border-radius: 16px; padding: 22px; }
.fix-card h2 { color: #fff; }
.fix-card p { color: var(--accent-light); margin: 0 0 14px; }
.fix-card .btn { background: #fff; color: var(--accent-dark); width: 100%; justify-content: center; }

.fineprint { font-size: 14px; color: var(--muted); margin: 4px 2px 0; }
/* One sources note at the foot of each report tab (sourcesHtml). */
.sources { margin: var(--s4, 16px) 2px 0; padding-top: 10px; border-top: 1px solid var(--divider, #DCE3D9); font-size: 13px; color: var(--muted); }
.sources h3 { margin: 0 0 4px; font-size: 14px; color: var(--text); }
.sources p { margin: 0 0 6px; }

.sample-banner { background: var(--blue); color: #fff; padding: 14px 0; }
.sample-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.sample-banner p { color: #fff; margin: 0; flex: 1 1 280px; }
.sample-banner .reg-form { flex: 1 1 340px; }
.sample-banner .reg-form input { height: 50px; font-size: 21px; }
.sample-banner .reg-form button { height: 50px; background: #fff; color: var(--text); }
.sample-banner .reg-form .err { color: #fff; }

@media (max-width: 760px) {
  .check-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .check-hero .preview { display: none; }
}
@media (max-width: 480px) {
  .reg-form button { flex: 1 1 100%; }
  nav.site a.hide-xs { display: none; }
}

/* Page frame: the home page's dark footer, without its 72px section padding. */
body.check main { padding: 0; }
body.check main.check-page { padding: 24px 0 48px; }
body.check h2 { text-wrap: balance; }
body.check .steps h2, body.check .see h2, body.check .band h2, body.check .faq h2 { font-size: 30px; line-height: 1.15; }
body.check footer.site { background: #1A1D19; color: #B9C2B6; border-top: 0; padding: 40px 0; }
body.check footer.site a { color: #fff; }

/* Hive: how often each kind of problem comes up */
.incid { margin: 0 0 12px; }
.incid > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.incid .track { display: block; height: 8px; border-radius: 4px; background: var(--divider); margin-top: 4px; }
.incid .track span { display: block; height: 8px; border-radius: 4px; background: var(--amber); }
.spinner.small { width: 20px; height: 20px; border-width: 3px; margin: 0; flex: none; }

/* The buyer's checklist (buyChecksHtml) */
.bc-h { font-size: 15px; margin: 12px 0 6px; display: flex; justify-content: space-between; gap: 8px; }
.bc-h:first-of-type { margin-top: 0; }
.bc-h .muted { font-weight: 500; font-size: 13px; }
.bc-found, .bc-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bc-found li { display: flex; gap: 8px; align-items: flex-start; }
.bc-found li .ms { flex: none; }
.bc-todo label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bc-todo input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.bc-todo input:checked + span { color: var(--muted); }

/* AI cards */
.qlist { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
/* Ask the seller: each question opens to say why (26 Nov 2026); the checklist lists them. */
.qlist.qwhy { list-style: none; padding-left: 0; gap: 0; }
.qlist.qwhy li { border-bottom: 1px solid var(--divider); }
.qlist.qwhy summary { list-style: none; cursor: pointer; padding: 8px 0; display: flex; gap: 10px; justify-content: space-between; align-items: baseline; font-weight: 600; }
.qlist.qwhy summary::-webkit-details-marker { display: none; }
.qwhy-more { flex: none; font-size: 14px; font-weight: 600; color: var(--accent); }
.qlist.qwhy details[open] .qwhy-more { visibility: hidden; }
.qlist.qwhy details p { margin: 0 0 10px; color: var(--muted); }
.bc-qs { margin: 6px 0 0 30px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text); }
.model h3 { font-size: 16px; margin: 14px 0 6px; }
.model h3:first-of-type { margin-top: 0; }
.pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pts li { display: flex; gap: 8px; align-items: flex-start; }
.pts .ico { width: 20px; height: 20px; margin-top: 2px; }
.explain { margin-top: 10px; border-top: 1px solid var(--divider); padding-top: 8px; }
.explain h4 { margin: 0 0 6px; font-size: 15px; }

/* Sign-in */
.err-line { color: var(--red); font-weight: 600; font-size: 15px; margin: 10px 0 0; }
.nav-phone { font-size: 15px; color: var(--muted); margin-left: 18px; }
nav.site [data-kioo-account] a { margin-left: 12px; }
@media (max-width: 480px) { .nav-phone { display: none; } }

/* Jobs: My jobs, a job's page, Get quotes */
.job-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.job-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); margin: 0; }
.job-card:hover { border-color: var(--accent); }
.jc-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 17px; }
.jc-state { font-weight: 600; font-size: 15px; color: var(--muted); }
.jc-state.good { color: var(--accent); }
.jc-state.warn { color: #7A4A00; }
.jc-state.new { color: var(--accent); }
.chip { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 2px 8px; background: var(--amber-light); color: #7A4A00; margin-right: 6px; }
.chip.new { background: var(--accent-light); color: var(--accent-dark); }
.banner { border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: var(--card); border: 1px solid var(--border); }
.banner.good { background: var(--accent-light); border-color: var(--green-line); color: var(--accent-dark); font-weight: 600; }
.banner.warn { background: var(--amber-light); border-color: var(--amber); }
.job-items { display: flex; flex-direction: column; gap: 8px; }
.job-item { margin: 0; padding: 12px 16px; }
.job-item summary { cursor: pointer; }
.job-item p { margin: 8px 0 0; }
.job-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0; font-size: 15px; }
.q-head { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.q-head h2 { margin: 0; }
.card.qcard { margin: 10px 0; }
.card.qcard.accepted { border: 2px solid var(--amber); }
.q-top { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; }
.q-price { font-size: 20px; }
.q-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.q-actions .btn { flex: 1 1 140px; justify-content: center; }
.q-note.warn { background: var(--amber-light); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.card.confirmed { background: var(--accent-light); border-color: var(--green-line); }
.card.confirmed .fphone { font-size: 22px; font-weight: 700; margin: 8px 0; }
.card.panel h3 { margin: 0 0 8px; }
.opt { display: flex; gap: 8px; align-items: center; padding: 6px 0; cursor: pointer; }
.job-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.job-bar .btn { flex: 1 1 140px; justify-content: center; }
button.btn { border: 0; font: 600 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
button.btn.secondary { border: 1.5px solid var(--accent); }
.fix-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.fix-item:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-light); }
.fix-item input { width: 22px; height: 22px; accent-color: var(--accent); margin: 2px 0 0; flex: none; }
.fix-item span { display: flex; flex-direction: column; gap: 3px; }
.fix-item small { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips input:checked + span { color: var(--accent-dark); }
.chips label:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-light); }
/* Who's quoting? What the driver sees under each (F39). */
.qa-as label { flex: 1 1 220px; }
.qa-as small { display: block; font-weight: 400; font-size: 14px; color: var(--text); margin-top: 4px; }

/* Navigation: My cars, My jobs, Account (kioo-nav.js) - a tab bar on phones, like the app */
nav.site a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.tabbar { display: none; }
@media (max-width: 640px) {
  nav.site[data-kioo-nav] { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--card); border-top: 1px solid var(--border);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; text-decoration: none; color: var(--muted); font-weight: 600; min-height: 48px; justify-content: center; }
  .tabbar svg { width: 26px; height: 26px; fill: currentColor; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  body.has-tabbar { padding-bottom: 72px; }
  body.has-tabbar .visit-steps { bottom: calc(61px + env(safe-area-inset-bottom)); }
}

/* My cars on the car check home */
.my-cars { padding: 20px 0 0; }
.my-cars h2 { margin: 0 0 10px; }
.car-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.car-tile { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.car-tile .ct-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.car-tile .ct-score { font-size: 22px; font-weight: 700; }
.car-tile .ct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.car-tile .ct-actions .btn { padding: 10px 14px; font-size: 15px; flex: 1 1 auto; justify-content: center; }
.car-tile .linkbtn { align-self: flex-start; color: var(--muted); font-weight: 500; }

/* Repair: car picker, Get quotes / DIY tabs, the video feed and player */
.repair-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.repair-head h1 { margin: 0; flex: 1 1 auto; }
.car-pick { height: 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: 600 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding: 0 10px; max-width: 100%; }
.rtabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 16px 0 18px; max-width: 760px; }
.rtabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 7px; text-decoration: none; color: var(--muted); font-size: 13px; line-height: 1.2; text-align: center; border-bottom: 3px solid transparent; }
.rtabs a .ico { width: 24px; height: 24px; }
.rtabs a:hover { color: var(--accent); }
.rtabs a[aria-current="page"] { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
/* DIY: laid out as YouTube (31 Oct 2026, v2/design/web/DiyVideos.mock.html) -
   the full page width on a laptop, edge-to-edge cards on a phone. */
.diy-search { display: flex; gap: 8px; max-width: 720px; }
.vbox { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 48px; border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; background: var(--card); color: var(--muted); }
.vbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.vbox input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.vgo { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: 700 15px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.vgo .ico { width: 20px; height: 20px; }
.vtopics { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.vtopic { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: 600 14px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; text-align: left; }
.vtopic:hover { border-color: var(--accent); }
.vtopic[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.vtag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--amber); background: var(--amber-light); border-radius: 4px; padding: 1px 5px; }
.vtopic[aria-pressed="true"] .vtag { background: rgba(255,255,255,.18); color: #fff; }
/* Likely-repair chips (kioo-chips.js): each source's label in its own colour. */
.vtag.coming { color: #1E5E22; background: #E3F1E4; }
.vtag.fixed { color: #fff; background: var(--accent); }
.vtag.posted { color: #2E4577; background: #E4EBF6; }
.vtag.ai { color: #7A4FA3; background: #F1EAF8; }
.vtag.yours { color: var(--text); background: var(--divider, #E3E6DF); }
.rchips { margin: 8px 0 4px; }
.rchips-key { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.rchips-key b { color: var(--text); }
.rchips-key .ai-text { color: #7A4FA3; }
.vtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; }
.vfound { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 300px; }
.vfound b { color: var(--text); }
.vright { display: flex; align-items: center; gap: 8px; }
.vseg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.vseg input { position: absolute; opacity: 0; pointer-events: none; }
.vseg span { display: block; padding: 6px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: center; }
.vseg input:checked + span { background: var(--accent); color: #fff; }
.vseg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.vsafety { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 14px; border: 1px solid #E6C27A; border-radius: 12px; background: var(--amber-light); font-size: 15px; }
.vsafety .ico { color: var(--amber); }
.vsafety a { margin-left: auto; white-space: nowrap; }
.vsec { margin-top: 26px; }
.vsechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.vsechead h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; }
.vsechead h2 .ico { color: var(--accent); }
.vsechead small { color: var(--muted); font-size: 14px; }
.varrows { display: flex; gap: 6px; }
.varrows button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); cursor: pointer; }
.varrows button:first-child .ico { transform: rotate(180deg); }
.varrows button:disabled { opacity: .35; cursor: default; }
/* Cards: picture on top, two lines of title, channel, views and age */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 16px; }
.vgrid.shorts { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 14px; }
.vc, .vsc { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #CFD5CB; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.vc:hover .vthumb img, .vsc:hover .vthumb img { transform: scale(1.03); }
.vc:focus-visible .vthumb, .vsc:focus-visible .vthumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.vdur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.82); color: #fff; font-size: 12px; font-weight: 700; border-radius: 5px; padding: 1px 6px; }
.vprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.35); opacity: 0; }
.vprog i { display: block; width: 0; height: 100%; background: #fff; }
.vc.flip .vprog { opacity: 1; }
.vtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vtext b { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vtext small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.vkioo { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 7px; border-radius: 6px; background: var(--accent-light); color: var(--accent-dark); font-size: 12.5px; font-weight: 700; }
.vkioo .ico { width: 15px; height: 15px; }
.vfeat { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.vbig .vtext b { font-size: 18px; }
.vside { display: flex; flex-direction: column; gap: 14px; }
.vside .vc { flex-direction: row; gap: 12px; }
.vside .vthumb { flex: 0 0 44%; }
/* Shorts: a strip that slides (swipes on a phone) */
.vstrip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.vstrip::-webkit-scrollbar { display: none; }
.vstrip .vsc { flex: 0 0 180px; scroll-snap-align: start; }
.vsc { gap: 8px; }
.vsc .vthumb { aspect-ratio: 9 / 16; }
.vsc .vtext b { font-size: 14px; }
.vviews { position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.vmore { display: block; margin: 24px auto 0; padding: 10px 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: 700 15px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.vfoot { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 13px; }
/* Grey cards while loading */
.sk { border-radius: 8px; background: linear-gradient(90deg, #DFE3DC 0, #EEF0EC 40%, #DFE3DC 80%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.vsk { display: flex; flex-direction: column; gap: 8px; }
.vsk .t { aspect-ratio: 16 / 9; border-radius: 12px; }
.vsk .l { height: 14px; width: 90%; }
.vsk .l.short { width: 55%; }
.vgrid:has(.vsk) { margin-top: 26px; }
@media (max-width: 960px) {
  .vfeat { grid-template-columns: 1fr; }
  .vside { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 16px; }
  .vside .vc { flex-direction: column; gap: 10px; }
}
@media (max-width: 640px) {
  .vgo span { display: none; }
  .vgo { padding: 0 14px; }
  .vtopics { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -20px; margin-right: -20px; padding: 0 20px; }
  .vtopics::-webkit-scrollbar { display: none; }
  .vtopic { flex: none; white-space: nowrap; }
  .vtools { flex-direction: column; align-items: stretch; }
  .vfound { flex: none; }
  .vright { justify-content: space-between; }
  .vseg { flex: 1 1 auto; }
  .vseg label { flex: 1 1 0; }
  .vsafety { flex-wrap: wrap; }
  .vsafety a { margin-left: 32px; }
  .vsechead h2 { font-size: 18px; }
  .vsechead small, .varrows { display: none; }
  /* One card a row, the picture edge to edge, as YouTube's phone site */
  .vgrid:not(.shorts), .vside { grid-template-columns: 1fr; gap: 20px; }
  .vgrid:not(.shorts) .vthumb, .vfeat .vthumb { margin: 0 -20px; border-radius: 0; }
  .vgrid.shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vstrip { margin: 0 -20px; padding: 0 20px 4px; }
  .vstrip .vsc { flex-basis: 42vw; }
}

/* The player: a watch page with Up next on a laptop; full screen on a phone.
   Scrolls when taller than the screen; the close button stays in reach. */
body.player-open { overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 10, .9); display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px; overflow-y: auto; }
.player-in { position: relative; width: min(1180px, 100%); margin: auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; padding: 16px; border-radius: 16px; background: var(--card); color: var(--text); box-shadow: var(--shadow-lg); }
.player-in:not(:has(.pnext)) { width: min(900px, 100%); grid-template-columns: 1fr; }
.player-in.short { width: min(860px, 100%); grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.pclose { position: fixed; top: 14px; right: 16px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--card); color: var(--text); box-shadow: var(--shadow); cursor: pointer; }
.pclose .ico { width: 26px; height: 26px; }
.pframe { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player-in.short .pframe { aspect-ratio: 9 / 16; height: min(80vh, 720px); }
.pframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pinfo h2 { margin: 12px 0 2px; font-size: 20px; line-height: 1.3; }
.pinfo small { color: var(--muted); font-size: 14px; }
.pthumbs { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 12px; }
.pq { flex: 1 1 0; min-width: 0; font-weight: 600; }
.pyn { flex: none; display: flex; gap: 8px; }
.pyn button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: 600 15px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap; cursor: pointer; }
.pyn button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pyn .ico { width: 20px; height: 20px; }
.pnote { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.pnext h3 { margin: 0 0 10px; font-size: 16px; }
.pnext .vc { flex-direction: row; gap: 10px; margin-bottom: 12px; }
.pnext .vthumb { flex: 0 0 150px; border-radius: 8px; }
.pnext .vtext b { font-size: 14px; }
.pside { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pside .pinfo { flex: 1 1 auto; min-width: 0; }
.psnav { display: flex; flex-direction: column; gap: 10px; }
.psnav button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer; }
.psnav button:first-child .ico { transform: rotate(-90deg); }
.psnav button:last-child .ico { transform: rotate(90deg); }
.psnav button:disabled { opacity: .35; cursor: default; }
@media (max-width: 960px) {
  .player-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .player:not(.vadd) { padding: 0; background: var(--card); align-items: stretch; }
  .player-in, .player-in:not(:has(.pnext)) { width: 100%; margin: 0; padding: 0 0 24px; gap: 12px; border-radius: 0; box-shadow: none; }
  .pclose { top: auto; bottom: 16px; box-shadow: var(--shadow-lg); }
  .pframe { position: sticky; top: 0; z-index: 1; border-radius: 0; }
  .pinfo, .pnext { padding: 0 16px; }
  .pinfo h2 { font-size: 18px; }
  .pnext .vthumb { flex-basis: 44%; }
  /* A Short fills the screen above a slim strip of Kioo's own details */
  .player:has(.short) { background: #000; }
  .player-in.short { grid-template-columns: 1fr; gap: 0; padding: 0; background: #000; color: #fff; min-height: 100%; }
  .player-in.short .pframe { width: 100%; height: calc(100vh - 128px); height: calc(100dvh - 128px); aspect-ratio: auto; position: relative; }
  .player-in.short .pinfo { padding: 8px 16px 12px; }
  .player-in.short .pinfo h2 { margin: 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .player-in.short .pinfo small { color: #CCC; font-size: 13px; }
  .player-in.short .pnote { display: none; }
  .player-in.short .pthumbs { margin-top: 8px; padding: 0; border: 0; gap: 8px; }
  .player-in.short .pq { font-size: 14px; }
  .player-in.short .pyn button { height: 36px; padding: 0 12px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
  .player-in.short .pyn button[aria-pressed="true"] { background: #fff; color: var(--accent-dark); }
  .player-in.short .psnav { position: absolute; right: 12px; top: 35%; z-index: 2; }
  .player-in.short .pclose { top: 12px; bottom: auto; }
}
@media (max-width: 380px) {
  .pq { font-size: 14px; }
  .pyn button { padding: 0 10px; }
}
.vadd-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1.5px dashed var(--accent); border-radius: 10px; background: var(--card); color: var(--accent-dark); font: 600 15px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.vadd-btn .ico { width: 20px; height: 20px; fill: currentColor; }
.player.vadd { align-items: flex-start; padding-top: 56px; }
.vadd-card { width: min(520px, 100%); background: var(--card); color: var(--text); border: 1.5px solid var(--accent); border-radius: 16px; padding: 20px; }
.vadd-card h2 { margin: 0 0 8px; font-size: 22px; }
.vadd-link { display: flex; gap: 8px; margin-top: 14px; }
.vadd-link input { flex: 1 1 auto; min-width: 0; height: 48px; border: 1.5px solid var(--accent); border-radius: 10px; padding: 0 12px; font: 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--card); color: var(--text); }
.vadd-link .btn { padding: 0 16px; height: 48px; }
.vadd-status { margin: 10px 0 0; font-size: 14px; color: var(--muted); min-height: 0; }
.vadd-status:empty { display: none; }
.vadd-status.bad { color: var(--red); font-weight: 600; }
.vadd-actions { display: flex; gap: 12px; margin-top: 16px; }
.vadd-actions .btn { flex: 1 1 0; justify-content: center; height: 48px; }
.vadd-done { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-light); color: var(--accent-dark); font-weight: 600; }

/* Where to fix (kioo-where.js) */
.where-box { container: where / inline-size; }
.where { max-width: 760px; }
.where .ico { width: 22px; height: 22px; fill: currentColor; flex: none; }
.where .btn .ico { width: 20px; height: 20px; margin-right: 6px; vertical-align: -4px; }
.where h3.wh { margin: 22px 0 10px; font-size: 18px; }
.warea { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; }
.warea .ico { color: var(--accent); }
.warea .linkbtn { margin-left: auto; }
.wbox { margin: 16px 0 0; }
#w-top > :first-child { margin-top: 0; }
.wpick-label { display: block; margin-top: 18px; }
.wbox h3 { margin: 0 0 4px; }
.wbox p { margin: 0 0 10px; }
.wpc { width: 100%; height: 50px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font: 600 18px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-transform: uppercase; background: var(--card); color: var(--text); margin: 0 0 12px; box-sizing: border-box; }
.wpc::placeholder { text-transform: none; }
.wact { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.wact .btn { flex: 1 1 120px; text-align: center; }
.wmap { height: 280px; border-radius: 12px; border: 1px solid var(--border); margin: 18px 0 6px; }
.wmap[hidden], .wkey[hidden] { display: none; }
/* Wide screens: the list on the left, the map on the right, kept in view
   under the site header while the list scrolls. Only once there is a map. */
@container where (min-width: 820px) {
  .where:has(.wmap:not([hidden])) {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 28px;
    grid-template-areas: "top side" "body side"; grid-template-rows: auto 1fr; align-items: start;
  }
  .where:has(.wmap:not([hidden])) #w-top { grid-area: top; }
  .where:has(.wmap:not([hidden])) #w-body { grid-area: body; }
  .where:has(.wmap:not([hidden])) .wside { grid-area: side; position: sticky; top: 80px; }
  .where:has(.wmap:not([hidden])) .wmap { height: calc(100vh - 140px); min-height: 360px; max-height: 760px; margin-top: 0; }
}
.wkey { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.wkey button { font: inherit; color: inherit; background: none; border: 0; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; cursor: pointer; }
.wkey button:hover { color: var(--text); background: var(--border); }
.wkey i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.wkioo { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.wkioo .ico { color: var(--muted); width: 26px; height: 26px; }
.wkioo p { margin: 0; }
/* Where to fix (reworked 5 Nov 2026): Get quotes for the picked repair, Kioo's
   fixers as one line while there are none, the own-words box full width. */
.wquote { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; border: 1.5px solid var(--accent); background: var(--accent-light); }
.wquote > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wquote span { color: var(--muted); font-size: 14px; }
.wquote .btn { flex: none; margin: 0; }
@media (max-width: 640px) { .wquote { flex-direction: column; align-items: stretch; } }
.wkioo-none { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--muted); font-size: 14px; }
.wkioo-none .ico { flex: none; width: 22px; height: 22px; }
.wwords { margin-top: 10px; max-width: none; }
.wfix { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 4px 12px 10px; margin: 0 0 8px; }
.wfix-row { display: flex; align-items: center; gap: 8px; }
.wfix-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; padding: 8px 0 0; font: inherit; color: var(--text); cursor: pointer; }
.wfix-main > span:first-of-type, .wfix-main > span:only-child { flex: 1; min-width: 0; }
.wfix-main b, .wfix-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wfix-main small { color: var(--muted); font-size: 14px; }
.wfix-main .ico { color: var(--accent); }
.wfix > .wfix-main { width: 100%; }   /* Google's rows: a button sizes to its text, so a long address pushed the miles off the card */
.wmiles { font-weight: 700; font-size: 14px; white-space: nowrap; }
.wthumbs { display: flex; gap: 6px; padding-top: 8px; }
.wthumbs button { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font: 600 14px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.wthumbs button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-light); }
.wthumbs .ico { width: 18px; height: 18px; }
.wthumbs button:first-child .ico { color: var(--accent); }
.wc { margin: 8px 0 0; }
.wlist { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 14px 16px; margin: 22px 0 10px; font: inherit; color: var(--text); cursor: pointer; }
.wlist:disabled { cursor: default; }
.wlist > span { flex: 1; }
.wlist b, .wlist small { display: block; }
.wlist small { color: var(--muted); font-size: 14px; }
.wlist .ico:first-child { color: var(--accent); }
.werr { background: var(--red-light); border-color: var(--red); }
.werr p { margin: 6px 0 10px; }
.wnote { font-size: 13px; margin: 8px 0 0; }

/* The home page's example report: plainly an example, opening the sample */
.check-hero .preview { display: block; position: relative; color: inherit; text-decoration: none; padding-top: 14px; }
.check-hero .preview .card { border: 2px dashed var(--amber); transition: border-color .15s; }
.check-hero .preview:hover .card { border-color: var(--accent); }
.example-tag { position: absolute; top: 0; left: 18px; z-index: 1; background: var(--amber); color: #2B1B00; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.example-foot { display: flex; align-items: center; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--divider); color: var(--accent); font-weight: 600; font-size: 15px; }
.example-foot .ico { width: 20px; height: 20px; fill: currentColor; }

/* My cars (cars/index.html) */
.cars-empty { margin: 0; }
.cars-empty p { margin: 6px 0 0; }
.welcome-pts { margin: 8px 0 0; padding-left: 20px; }
.welcome-pts li { margin: 4px 0; }
/* Above the cars (Simon, 30 Oct 2026): no scrolling past them to add one. */
.add-car { margin: 0 0 28px; max-width: 640px; }
.add-car h2 { margin: 0 0 4px; }
.add-car p { margin: 0 0 12px; }

/* Home's "Get it fixed" part (the old front page, under .home) */
.home .hero h2.h1 { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 800; }
.home .hero h2.h1 em { font-style: normal; color: var(--brand); }

/* One MOT visit (the app's screen 3e) */
.visit { max-width: 720px; display: flex; flex-direction: column; gap: 0; }
.visit-date { font-size: 26px; font-weight: 700; margin: 2px 0 10px; }
.result-chip { align-self: flex-start; font-size: 14px; font-weight: 700; border-radius: 8px; padding: 4px 12px; margin-bottom: 16px; }
.result-chip.k-good { background: var(--accent-light); color: var(--accent); }
.result-chip.k-warn { background: var(--amber-light); color: #7A4A00; }
.result-chip.k-bad { background: var(--red-light); color: var(--red); }
.test-card { margin-bottom: 16px; }
.test-card h2 { display: flex; align-items: center; gap: 10px; }
.test-card h2.res-pass { color: var(--accent); }
.test-card h2.res-fail { color: var(--red); }
.test-card h2 .ico { width: 24px; height: 24px; }
.test-card .facts { margin: 0 0 10px; font-size: 15px; }
.dgroup { border-top: 1px solid var(--divider); padding-top: 10px; margin-top: 4px; }
.dgroup h3 { font-size: 16px; margin: 0 0 6px; }
.dgroup.k-bad h3 { color: var(--red); }
.dgroup.k-warn h3 { color: #7A4A00; }
.dgroup.k-good h3 { color: var(--accent); }
.dgroup.k-muted h3 { color: var(--muted); }
.dgroup ul { margin: 0 0 6px; padding-left: 22px; }
.dgroup li { margin: 0 0 6px; }
.dgroup.k-bad li::marker { color: var(--red); }
.dgroup.k-warn li::marker { color: var(--amber); }
.dgroup.k-good li::marker { color: var(--accent); }
.visit-steps { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px;
  padding: 12px 0 16px; background: var(--bg); border-top: 1px solid var(--border); }
.step-btn { height: 48px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--card); color: var(--accent);
  font: 600 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.step-btn .ico { width: 20px; height: 20px; }
.step-btn.prev .ico { transform: rotate(180deg); }
.step-btn[aria-disabled] { opacity: .4; }
.thing-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 4px; font-weight: 600; font-size: 15px; }
.thing-links .linkbtn { font-size: 15px; }
.jgroup { font-size: 17px; margin: 24px 0 0; }
.jgroup + .job-list { margin-top: 10px; }
.job-card.draft { border-style: dashed; }

/* Ratings (screen 9) */
.stars { display: flex; justify-content: center; gap: 4px; }
.stars button { background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 10px; }
.stars button:focus-visible { outline: 2px solid var(--accent); }
.star-word { text-align: center; font-weight: 700; margin: 4px 0 8px; }
.rate-q { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.rate-q > span:first-child { flex: 1 1 auto; min-width: 0; }
.rate-q .chips { margin: 0; flex: none; flex-wrap: nowrap; }
.rate-total { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.rate-total:last-child { border-bottom: 0; }
.rating-big { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.rating-big b { font-size: 40px; line-height: 1; }
.rating-who { display: flex; gap: 16px; align-items: center; }
.rating-who > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.initials { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
ul.plain { list-style: none; padding: 0; margin: 0 0 8px; }
ul.plain li { padding: 4px 0; }
.card.holding { border-color: var(--amber); }

/* Get quotes: an advisory already in a job or draft, or repaired (picker notes) */
.fix-item.blocked { background: var(--bg); cursor: default; }
.fix-item.blocked b { color: var(--muted); }
.fix-note { font-size: 14px; font-weight: 600; color: var(--text); display: block !important; }
.fix-note.good-text { color: var(--accent-dark); }
.fix-note .linkbtn { font-size: 14px; }

/* Profile rows (Your ratings, Settings) */
.prows { padding: 0; overflow: hidden; }
.prow { display: flex; align-items: center; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--divider); background: none; text-align: left; color: var(--text); text-decoration: none; font: inherit; cursor: pointer; }
.prow:last-child { border-bottom: 0; }
.prow > span { display: flex; flex-direction: column; gap: 2px; }
.prow .muted { font-size: 14px; }
a.prow:hover, button.prow:hover { background: var(--bg); }
div.prow { cursor: default; }
.prow.danger b { color: var(--red); }
.btn.danger { background: var(--red); color: #fff; }

/* Ask Kioo (Repair's fourth tab, the app's 4e / 4j) */
.ask-panel { background: var(--accent); color: #fff; border-radius: 16px; padding: 14px; margin: 16px 0 8px; }
.ask-panel h2 { color: #fff; font-size: 17px; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.ask-panel h2 svg { fill: #fff; width: 22px; height: 22px; }
.ask-box { display: flex; gap: 8px; align-items: stretch; }
.ask-box textarea { flex: 1; min-width: 0; resize: vertical; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.ask-box button { flex: none; width: 50px; border: 0; border-radius: 12px; background: var(--plate, #F5C518); cursor: pointer; display: grid; place-items: center; }
.ask-box button svg { width: 24px; height: 24px; fill: var(--text); }
.ask-line { margin: 10px 0 0; font-size: 14px; color: var(--accent-light); }
.ask-line a { color: #fff; font-weight: 700; }
.ask-h { font-size: 14px; color: var(--muted); margin: 22px 0 8px; }
.ask-card { background: var(--accent-light); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.bubble { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; max-width: 88%; white-space: pre-line; }
.bubble.me { background: var(--accent); color: #fff; margin-left: auto; width: fit-content; }
.bubble.kioo { background: var(--card); color: var(--text); }
.ask-card .ask-box { margin-top: 4px; }
.ask-card .ask-box button { background: var(--accent); }
.ask-card .ask-box button svg { fill: #fff; }
.ask-list { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ask-list.open { border: 1.5px solid var(--accent); }
.ask-q + .ask-q { border-top: 1px solid var(--divider); }
.ask-q > button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 0; background: none; text-align: left; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.ask-q > button svg { width: 20px; height: 20px; fill: var(--muted); flex: none; transition: transform .15s; }
.ask-q.open > button svg { transform: rotate(90deg); }
.ask-a { padding: 0 14px 4px; }
.ask-a > p:first-child { margin-top: 0; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { background: var(--amber-light); border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; text-align: left; }

/* Job board and the fixer's side (the app's screens 6 and 7) */
.board-summary { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.board-summary span { color: var(--accent); flex: none; }
.board-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 10px; flex-wrap: wrap; }
.board-card .jc-top a { color: var(--text); text-decoration: none; }
.board-card .jc-top a:hover { text-decoration: underline; }
.board-card .q-actions .btn { text-decoration: none; }
.board-card.hidden-job { border-style: dashed; }
.board-card .jc-comments { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #F1EAF8; color: var(--text); font-size: 14px; text-decoration: none; }
.board-card .jc-comments:hover { background: #E8DCF4; }
.board-card .jc-comments .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #6B3F96; fill: currentColor; }
.board-card .jc-comments > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.board-card .jc-comments > span .ico { width: 16px; height: 16px; vertical-align: -3px; margin: 0; }
.board-card .q-actions .jc-comment-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.board-card .q-actions .jc-comment-btn .ico { width: 18px; height: 18px; fill: currentColor; }
.icon-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--bg); }
.icon-btn .ico { width: 26px; height: 26px; }
.board-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.board-stats span { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.board-stats small { color: var(--muted); font-size: 12.5px; }
.board-stats .wide { grid-column: 1 / -1; }
.quote-guide { grid-template-columns: repeat(2, 1fr); margin: 0 0 12px; }
.quote-guide span { background: var(--card); border: 1px solid var(--border); }
.quote-guide b { font-size: 20px; }
.board-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.board-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
/* Get quotes: the job's photos, then Add while there's room (the app's 4f). */
.jp-tile { position: relative; aspect-ratio: 1; border-radius: 10px; }
.jp-tile > :is([data-photo-del], [data-pending-del]) { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: rgba(0, 0, 0, .7); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.jp-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%;
  border: 2px dashed var(--accent); background: var(--accent-light); color: var(--accent); font: inherit;
  font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.jp-add svg { width: 28px; height: 28px; fill: currentColor; }
.jp-add .spinner { width: 24px; height: 24px; margin: 0; }
.jp-wait > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 600; }
.jp-add:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.jp-view { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.jp-view img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.jp-note { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.jp-note svg { width: 18px; height: 18px; flex: none; fill: currentColor; margin-top: 1px; }
dialog.jp-big { width: min(92vw, 900px); max-width: none; }
dialog.jp-big img { width: 100%; max-height: 70vh; object-fit: contain; display: block; border-radius: 10px; background: #000; }
.jp-thumbs { display: flex; gap: 6px; margin-top: 4px; }
.jp-thumbs img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.board-tags .chip { background: var(--bg); color: var(--text); margin: 0; }
.board-tags .chip.warn, .chip.warn { background: var(--amber-light); color: #7A4A00; }
.chip.fixer { background: #EDE7F6; color: #4527A0; }

/* My cars: the MOT and tax boxes (KiooV2.Cars MotStatus / TaxStatus) */
.ct-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; }
.ct-box { display: flex; flex-direction: column; border-radius: 10px; padding: 8px 10px; background: var(--bg); }
.ct-box small { color: var(--muted); font-size: 12.5px; }
.ct-box b { font-size: 14px; }
.ct-box.k-good { background: var(--accent-light); }
.ct-box.k-good b { color: var(--accent-dark); }
.ct-box.k-warn { background: var(--amber-light); }
.ct-box.k-warn b { color: #7A4A00; }
.ct-box.k-bad { background: var(--red-light); }
.ct-box.k-bad b { color: var(--red); }
/* MOT history: the strip is an overview only (30 Oct 2026); the rows under it are what you tap */
.squares i { display: block; height: 12px; border-radius: 2px; }
.mot-rows { display: flex; flex-direction: column; margin: 10px 0 6px; }
.mot-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--divider); color: var(--text); text-decoration: none; }
.mot-row:last-child { border-bottom: 1px solid var(--divider); }
.mot-row:hover b { text-decoration: underline; }
.mot-row:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.mot-row > i { flex: none; width: 14px; height: 14px; border-radius: 3px; }
.mot-row span { flex: 1; display: flex; flex-direction: column; }
.mot-row small { color: var(--muted); font-size: 13.5px; }

/* What's coming up (kioo-coming.js, car.html#REG/coming), phone first */
.car-tile .ct-actions .ct-coming { flex-basis: 100%; border-color: var(--blue); color: #2E4577; }
.car-tile .ct-actions .ct-coming .ico { width: 20px; height: 20px; }
.coming-link { margin-top: 0; }
.coming { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.coming .card { margin: 0; }
.coming h2 { font-size: 19px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.coming .card > p.muted { margin: 0 0 10px; font-size: 15px; }
.cu-head { display: flex; flex-direction: column; gap: 6px; }
.cu-head .regplate { align-self: flex-start; }
.cu-head h1 { margin: 0; font-size: clamp(24px, 6vw, 34px); line-height: 1.2; }
.cu-head p { margin: 0; }
.cu-record { background: var(--amber-light); border: 1.5px solid var(--amber); }
.cu-rec { background: var(--card); border-radius: 12px; padding: 12px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
.cu-rec small { font-size: 13px; }
.cu-rec small.cu-led { color: var(--text); border-left: 3px solid var(--divider); padding-left: 8px; }
.cu-record .btn { width: 100%; justify-content: center; margin-top: 4px; }
.cu-tag { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--blue); }
.cu-band.now .cu-tag { color: var(--accent); }
.coming { --ai: #7A4FA3; --ai-light: #F1EAF8; --ai-line: #CDB8E3; --hive: #2E7D32; }
.cu-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cu-links .btn { padding: 10px 4px; font-size: 14px; gap: 4px; justify-content: center; min-width: 0; }
.cu-links .btn .ico { width: 18px; height: 18px; }
/* Where each thing came from: records (green square), AI (purple dot) */
.cu-src { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 2px 7px; border: 1px solid; color: var(--text); white-space: nowrap; }
.cu-src i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.cu-src.hive { border-color: var(--green-line); background: var(--accent-light); }
.cu-src.hive i { background: var(--hive); }
.cu-src.posted { border-color: #B7C4E0; background: #E6ECF7; }
.cu-src.posted i { background: var(--blue); }
.cu-src.ai { border-color: var(--ai-line); background: var(--ai-light); }
.cu-src.ai i { background: var(--ai); border-radius: 50%; }
.cu-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cu-flag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 2px 7px; background: var(--amber-light); color: #6B3F00; border: 1px solid #E6C27A; }
.cu-flag.up { background: #EEF2F9; color: #2E4577; border-color: #B7C4E0; }
.cu-flag.ok { background: var(--accent-light); color: var(--accent-dark); border-color: var(--green-line); }
.cu-flag.none { background: var(--bg); color: var(--muted); border-color: var(--divider); }
/* The road */
.cu-roadsvg svg { display: block; width: 100%; height: auto; }
.cu-roadsvg text { font-family: inherit; }
.cu-pin:hover rect, .cu-pin:focus rect { stroke-width: 2; }
.cu-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.cu-stat { border: 1px solid var(--divider); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cu-stat b { font-size: 24px; line-height: 1.15; }
.cu-stat span { font-size: 13.5px; color: var(--muted); }
.cu-aibanner { background: var(--ai-light); border: 1px solid var(--ai-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
/* This car's own MOTs, oldest first */
.cu-rec-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cu-dots { display: inline-flex; gap: 3px; }
.cu-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--divider); }
.cu-dots i.on { background: var(--amber); }
.cu-rec .cu-flag { align-self: flex-start; }
/* When do <model> cars need what?: one row per repair, a strip of every mileage band */
.cu-when { margin-top: 10px; }
.cu-when-row { display: grid; grid-template-columns: 170px 1fr; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--divider); }
.cu-when-row.cu-when-axis { border-top: 0; padding: 0 0 4px; }
.cu-when-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cu-when-row p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.4; }
.cu-when-strip { display: flex; gap: 3px; }
.cu-when-strip > * { flex: 1; min-width: 0; }
.cu-when-strip i, .cu-when-key i { height: 14px; border-radius: 3px; background: #E8EBE5; }
.cu-when-axis span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: visible; }
.cu-when-axis span.you { color: var(--text); font-weight: 700; }
i.peak { background: #33508F !important; }
i.seen { background: #A9BDE0 !important; }
i.none { background: repeating-linear-gradient(135deg, var(--card) 0 3px, var(--divider) 3px 4px) !important; }
i.you { outline: 2px solid var(--text); outline-offset: 1px; }
.cu-when-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.cu-when-key span { display: inline-flex; align-items: center; gap: 6px; }
.cu-when-key i { display: inline-block; width: 18px; height: 12px; }
.cu-when-gap { margin: 10px 0 0; font-size: 14px; }
@media (max-width: 560px) { .cu-when-row { grid-template-columns: 1fr; } .cu-when-axis > div:first-child { display: none; } }
/* What makes this model different: bars either side of "the same" */
.cu-fp { display: grid; grid-template-columns: minmax(110px, 160px) 1fr minmax(84px, auto); gap: 8px 10px; align-items: center; margin-top: 10px; font-size: 14px; }
.cu-fp .track { position: relative; height: 16px; }
.cu-fp .track::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1px solid var(--muted); }
.cu-fp .track span { position: absolute; top: 2px; height: 12px; }
.cu-fp .track .more { left: 50%; background: var(--blue); border-radius: 0 4px 4px 0; }
.cu-fp .track .less { right: 50%; background: #8C9A87; border-radius: 4px 0 0 4px; }
.cu-fp .val { font-weight: 600; text-align: right; font-size: 13px; }
/* Rust where you are: this model and every car, the area against the UK */
.cu-area-say { font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.cu-area-bars { display: grid; gap: 8px; margin-top: 12px; }
.cu-area-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 124px; gap: 10px; align-items: center; font-size: 14px; }
.cu-area-row .track { height: 14px; background: var(--divider); border-radius: 4px; overflow: hidden; }
.cu-area-row .track span { display: block; height: 100%; background: #8C9A87; border-radius: 4px; }
.cu-area-row.you .track span { background: var(--blue); }
.cu-area-row.you > div:first-child { font-weight: 600; }
.cu-area-row .val { text-align: right; font-weight: 700; }
.cu-area-row .val small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); white-space: nowrap; }
.cu-area-pc { margin-top: 14px; display: grid; gap: 6px; }
.cu-area-pc label { font-weight: 600; }
.cu-area-pc > div { display: flex; gap: 8px; }
.cu-area-pc > div > * { margin: 0; }
.cu-area-pc input { width: 9em; text-transform: uppercase; }
.cu-area-pc input::placeholder { text-transform: none; }
.cu-area-pc .err { color: var(--red, #B3261E); margin: 0; font-size: 13px; }
.cu-area-pc .err:empty { display: none; }
@media (max-width: 560px) { .cu-area-row { grid-template-columns: 1fr 72px; } .cu-area-row > div:first-child { grid-column: 1 / -1; } }
.cu-fp-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 4px 0 0; }
/* One kind of repair */
.cu-item { border: 1px solid var(--divider); border-radius: 12px; padding: 14px; margin: 0 0 10px; transition: box-shadow .3s; scroll-margin: 80px; }
.cu-item.lit { box-shadow: 0 0 0 3px var(--hive); }
.cu-item.ai { border: 1.5px dashed var(--ai-line); background: #FCFAFE; }
.cu-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cu-name { font-weight: 700; font-size: 16px; }
.cu-cost { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.cu-cost b { display: block; font-size: 16px; color: var(--text); }
.cu-meter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.cu-meter .bg { flex: 1 1 140px; max-width: 320px; height: 10px; border-radius: 4px; background: var(--divider); overflow: hidden; }
.cu-meter .bg span { display: block; height: 100%; background: var(--hive); border-radius: 0 4px 4px 0; }
.cu-meter b { font-size: 13.5px; }
.cu-quote { margin: 10px 0 0; padding: 8px 10px; border-left: 3px solid var(--border); background: var(--bg); border-radius: 0 6px 6px 0; font-size: 14px; }
.cu-why { margin: 8px 0 0; font-size: 14.5px; }
.cu-posted { margin: 8px 0 0; font-size: 14px; }
.cu-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cu-band .cu-more { width: 100%; justify-content: center; margin: 0 0 8px; }
.cu-aih { font-size: 16px; margin: 14px 0 2px; }
.cu-band .cu-ail { font-size: 13.5px; margin: 0 0 8px; }
.cu-wear { border-color: var(--ai-line); }
.cu-list { list-style: none; margin: 0; padding: 0; }
.cu-list li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--divider); padding: 10px 0; flex-wrap: wrap; }
.cu-q { min-height: 48px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; text-decoration: none; }
.cu-q span { flex: 1; }
.cu-next { display: flex; flex-direction: column; gap: 10px; }
.cu-next .btn { justify-content: center; }
.cu-foot { padding: 0 4px; }

/* Get quotes in three steps: a progress bar over the form. */
.wiz { list-style: none; padding: 0; margin: 18px 0 6px; display: flex; }
.wiz li { flex: 1; position: relative; text-align: center; }
.wiz li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--border); }
.wiz li.done::before, .wiz li.now::before { background: var(--accent); }
.wiz button, .wiz .wiz-step { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.wiz button:disabled, .wiz .wiz-step { cursor: default; }
.wiz .dot { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; box-sizing: border-box; }
.wiz .lbl { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wiz li.now .dot { border-color: var(--accent); color: var(--accent); }
.wiz li.now .lbl { color: var(--text); }
.wiz li.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.wiz-sum { padding: 4px 16px; }
.wiz-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.wiz-row:last-child { border-bottom: 0; }
.wiz-row > div { display: flex; flex-direction: column; gap: 2px; }
.wiz-row small { color: var(--muted); font-weight: 600; }
.wiz-row .muted { font-size: 14px; }
.wiz-kept { font-size: 14px; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }

/* The advert (v2/docs/advert-links-plan.md): link, note and the driver's own photo. */
.advert-open { display: inline-flex; margin: 0 0 10px; }
.advert-note { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.advert-shot-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; margin: 0 0 6px; }
.advert-shot { display: block; max-width: 100%; max-height: 220px; border-radius: 12px; border: 1px solid var(--border); }
.advert-form .field { max-width: none; margin-top: 14px; }
.advert-form .field:first-child { margin-top: 0; }
.advert-form .field input { font-size: 16px; font-weight: 500; }
.advert-form textarea { resize: vertical; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.advert-form .label { font-weight: 600; }
.advert-pick { align-self: flex-start; cursor: pointer; }
.advert-form .job-bar { margin-top: 14px; }
#advert-field input { font-size: 16px; font-weight: 500; }
.car-tile .ct-advert { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.car-tile .ct-advert .ico, .advert-open .ico { width: 20px; height: 20px; }

/* Compare cars: one column a car, row names fixed on the left; on a phone the table scrolls sideways inside its box. */
.cars-compare { margin: 0 0 14px; }
.cmp-picks { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-picks legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.cmp-pick { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 15px; }
.cmp-pick.on { border-color: var(--accent); background: var(--accent-light); }
.cmp-pick .regplate { font-size: 14px; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
table.cmp th, table.cmp td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--divider); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }
table.cmp td { width: 30%; min-width: 170px; }
table.cmp tbody th { position: sticky; left: 0; background: var(--card); font-weight: 600; width: 120px; min-width: 110px; }
table.cmp thead th { border-bottom: 2px solid var(--divider); }
table.cmp .k-bad { color: var(--red); }
.cmp-links { display: flex; flex-direction: column; gap: 8px; }
.cmp-links .btn { padding: 8px 12px; font-size: 14px; justify-content: center; }
.cmp-links .ico { width: 18px; height: 18px; }
@media (max-width: 600px) {
  table.cmp { min-width: 0; font-size: 14px; }
  table.cmp th, table.cmp td { padding: 10px 8px; }
  table.cmp td { min-width: 150px; }
  table.cmp tbody th { width: 84px; min-width: 84px; font-size: 13px; }
}

/* A job with no quotes yet: what is missing on it (kioo-jobs.js, noQuotesHtml). */
.nq-tips { margin: 8px 0 0; padding-left: 22px; }
.nq-tips li { margin: 4px 0; }

/* Comments on a job (js/kioo-comments.js). The Kiooified label is the AI's purple, as in the mock-ups. */
.kc { margin-top: 24px; }
.kc-list { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 14px; }
.kc-c { border-top: 1px solid var(--border); padding-top: 12px; }
.kc-c:first-child { border-top: 0; padding-top: 0; }
.kc-c.kc-mine { background: var(--accent-light); border: 0; border-radius: 10px; padding: 10px 12px; }
.kc-c p { margin: 4px 0 6px; }
.kc-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; }
.kc-kfy { font: 600 12px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #6B3F96; background: #F1EAF8; border: 1px solid #CDB8E3; border-radius: 6px; padding: 2px 7px; cursor: pointer; }
.kc-why { font-size: 13px; background: #F1EAF8; border: 1px solid #CDB8E3; border-radius: 8px; padding: 8px 10px; }
.kc-helped { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.bookdays { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.bookdays .opt { border: 1.5px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.bookdays .opt:has(input:checked) { border-color: var(--accent); background: #E8F3E9; }
.bookday-other { display: flex; gap: 8px; align-items: center; margin: 4px 0; font-size: 15px; }
.kc-write textarea { width: 100%; box-sizing: border-box; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--card); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 6px; resize: vertical; }
.kc-write textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.kc-preview { border: 1.5px solid #CDB8E3; background: #F1EAF8; border-radius: 10px; padding: 12px; }
.kc-preview h3 { margin: 0 0 6px; }
.kc-tick { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; cursor: pointer; }
.kc-tick input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
/* Starters and a video on a comment (5 Nov 2026) */
.kc-starters { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.kc-starters button { display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--accent-dark); background: var(--accent-light); border: 1px solid var(--accent); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.kc-starters button:hover { filter: brightness(.96); }
.kc-ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.kc-vadd { display: inline-flex; align-items: center; gap: 6px; }
.kc-vbox { border: 1.5px dashed var(--border); border-radius: 10px; padding: 12px; margin: 0 0 10px; }
.kc-vbox input { width: 100%; font: inherit; font-size: 16px; border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 10px; margin: 6px 0 8px; background: var(--card); color: var(--text); }
.kc-vcard { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); margin: 6px 0 8px; max-width: 460px; }
.kc-vthumb { position: relative; flex: none; width: 150px; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #111; cursor: pointer; }
.kc-vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-vplaybtn { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; }
.kc-vplaybtn svg { width: 26px; height: 26px; fill: #fff; }
.kc-vlen { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 600; border-radius: 4px; padding: 0 5px; }
.kc-vmeta { padding: 8px 10px 8px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.kc-vmeta b { line-height: 1.3; }
.kc-vmeta .linkbtn { align-self: flex-start; margin-top: 4px; }
.kc-vplay { position: relative; max-width: 560px; aspect-ratio: 16 / 9; margin: 6px 0 8px; border-radius: 10px; overflow: hidden; background: #000; }
.kc-vplay iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kc-vby { color: #2F4A85; background: #E6ECF7; border-color: #B7C4E0; margin-right: 6px; }
.kc-quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--accent); background: var(--accent-light); border-radius: 10px; }
.kc-quote .btn { flex: none; }
.kc-more { display: inline-block; margin: 8px 0 0; font-weight: 600; }
@media (max-width: 420px) { .kc-vthumb { width: 120px; } }
/* What fixed it? (kioo-outcome.js) */
.ko .opt { align-items: flex-start; }
.ko .opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.ko-sub { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.ko-rate { margin: 0 0 8px 28px; padding: 10px 12px; background: var(--accent-light); border-radius: 10px; }
.ko-rate .chips label { padding: 6px 12px; font-size: 14px; }
.ko .small { font-size: 14px; }
/* Report this comment (5 Nov 2026) */
.kc-report { font-size: 13px; color: var(--text); margin-left: 8px; }
.kc-rbox { border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 10px 10px; margin: 6px 0 0; }
.kc-rbox legend { padding: 0 4px; }
.kc-rbox .btn { display: block; width: 100%; text-align: left; margin: 6px 0 0; }
.kc-reported { margin: 4px 0 0; }
/* Earlier comments for the same repair (hive_tips.sql, 5 Nov 2026) */
.kc-tips { border: 1.5px solid var(--accent); background: var(--accent-light); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.kc-tips h3 { margin: 0 0 2px; }
.kc-tip { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.kc-tip:first-of-type { border-top: 0; margin-top: 0; }
.kc-tip p { margin: 0 0 6px; }
/* For you: why a job is on the board (board_for_you.sql, 5 Nov 2026) */
.board-why { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--accent-dark); }

/* Asking price compared: the typed price beside the typical one. */
.price-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-vs > div { border: 1px solid var(--divider, #D5DBD0); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.price-vs span { font-size: 13px; color: var(--muted); }
.price-vs b { font-size: 22px; }
.price-diff { margin: 8px 0 0; font-weight: 700; }

/* A Short's full-screen button: the whole player goes full screen, so
   previous, next and the thumbs stay (kioo-repair.js play()). */
.pfull { position: fixed; top: 14px; right: 68px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--card); color: var(--text); box-shadow: var(--shadow); cursor: pointer; }
.pfull .ico { width: 26px; height: 26px; }
.player:fullscreen { background: #0A0E0A; padding: 12px 16px; }
.player:fullscreen .player-in.short { width: min(1100px, 100%); }
.player:fullscreen .player-in.short .pframe { height: calc(100vh - 48px); }
@media (max-width: 720px) { .pfull { top: 12px; } }
/* Where to fix: one numbered list (5 Nov 2026) */
.wlisthead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 22px 0 10px; }
.wlisthead h3.wh { margin: 0; flex: 1 1 auto; }
.wfilters { margin: 0; gap: 6px; }
.wfilters .vtopic { padding: 6px 10px; font-size: 14px; }
.wsep { width: 1px; align-self: stretch; background: var(--border); margin: 0 4px; }
.wnum { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #5F6368; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.wfix.kioo { border-color: #8FBF93; }
.wfix.kioo .wnum { background: var(--accent); }
.wbadges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 36px; }
.wbadge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--text); background: var(--card); }
.wbadge.kioo { background: var(--accent); border-color: var(--accent); color: #fff; }
.wbadge.does { background: var(--accent-light); border-color: #8FBF93; color: var(--accent-dark); }
.wfix .wc, .wfix .wact { margin-left: 36px; }
.wmapsize { margin-left: auto !important; }
@container where (max-width: 819px) {
  .wmap { height: 140px; }
  .where.mapbig .wmap { height: 380px; }
}
@container where (min-width: 820px) { .wmapsize { display: none; } }
.wfix-main > span.wnum { flex: none; }
.wfix-main > .wnum + span { flex: 1; min-width: 0; }
/* The asking price is a button: tapping it changes the price (5 Nov 2026). */
.price-vs > .price-mine { border: 1.5px solid var(--accent); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.price-vs > .price-mine:hover { background: var(--accent-light); }
.price-mine small { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--accent); }
.price-mine small svg { width: 16px; height: 16px; fill: currentColor; }
.price-mine.editing { cursor: default; gap: 6px; }
.price-mine.editing label { font-size: 13px; color: var(--muted); font-weight: 400; }
.price-in { display: flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; height: 42px; background: var(--card); }
.price-in:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.price-in span { font-weight: 700; font-size: 20px; }
.price-in input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 20px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); }
.price-in input:focus { outline: none; }
.price-mine.editing .btn { margin: 0; padding: 8px 12px; min-height: 0; }

/* For fixers (fixers.html): the postcode and work form, then the counts. */
.fx-page { padding: 28px 0 40px; }
.fx-page h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; }
.fx-page h2 { margin-top: 32px; }
.fx-form h2 { margin: 0 0 4px; }
.fx-form h3 { margin: 22px 0 10px; font-size: 17px; }
.fx-opt { font-weight: 400; font-size: 15px; }
.fx-form .job-bar { margin-top: 22px; }
.fx-res { border: 2px solid var(--accent); }
.fx-big { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0 0 6px; }
.fx-points { padding-left: 20px; margin: 8px 0 0; }
.fx-points li { margin: 6px 0; }

/* How many are left? (kiooLeftHtml in js/kioo-left-chart.js; DfT data) */
.lc { margin-bottom: 6px; }
.lc h3 { font-size: 16px; margin: 0 0 6px; }
.lc-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 0 0 8px; }
.lc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.lc-seg label { font-size: 13px; padding: 5px 12px; cursor: pointer; background: #fff; }
.lc-seg input:checked + label { background: var(--accent); color: #fff; font-weight: 600; }
.lc-seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: -3px; }
/* One pane at a time, for up to 3 choices (trim, year, every one: Simon, 26 Nov 2026). */
.lc-p1, .lc-p2 { display: none; }
.lc:has(.lc-seg input:nth-of-type(2):checked) .lc-p0, .lc:has(.lc-seg input:nth-of-type(3):checked) .lc-p0 { display: none; }
.lc:has(.lc-seg input:nth-of-type(2):checked) .lc-p1 { display: block; }
.lc:has(.lc-seg input:nth-of-type(3):checked) .lc-p2 { display: block; }
.lc-head { margin: 0 0 8px; }
.lc-head b { font-size: 20px; }
.lc-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; margin-bottom: 2px; }
.lc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lc-legend i { display: inline-block; width: 18px; border-top: 3px solid var(--accent); }
.lc-legend i.s { border-top: 3px dashed #5A6F9E; }
.lc-box { container-type: inline-size; }
.lc-svg { display: block; width: 100%; max-width: 760px; height: auto; overflow: visible; }
/* Cars like this one in a wide pane: the chart left, the figures beside it (Simon, 30 Nov 2026: the chart filled the screen). */
.report.wide .like-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s4); align-items: start; }
.report.wide .like-figs > p:first-child { margin-top: 0; }
.lc-svg.wide { display: none; }
@container (min-width: 480px) { .lc-svg.narrow { display: none; } .lc-svg.wide { display: block; } }
.lc-grid { stroke: #E1E5DE; }
.lc-ax { font-size: 12px; fill: var(--muted); }
.lc-lab { font-size: 12px; font-weight: 700; fill: var(--text); }
.lc-taxed { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.lc-sorn { fill: none; stroke: #5A6F9E; stroke-width: 2.5; stroke-dasharray: 6 4; }
.lc-dot-t { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.lc-dot-s { fill: #5A6F9E; stroke: #fff; stroke-width: 2; }
.lc-hit { fill: transparent; }
.lc-hit:hover { fill: rgba(27, 94, 32, .08); }
.lc-tbl { font-size: 13px; margin: 4px 0 10px; }
.lc-tbl summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.lc-tbl table { border-collapse: collapse; margin-top: 6px; }
.lc-tbl th, .lc-tbl td { padding: 2px 14px 2px 0; text-align: right; font-variant-numeric: tabular-nums; }
.lc-tbl th:first-child, .lc-tbl td:first-child { text-align: left; }

/* Get quotes around one job card (v2/design/web/GetQuotesCard.mock.html):
   what you add on the left, the job card on the right and sticky; on a
   narrow pane the card first and the Next button at the bottom. */
.right-car.gq { max-width: 1060px; container-type: inline-size; }
.gq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.gq-side { order: -1; }
.gq-bar { margin-top: 14px; }
.gq-job .gq-jf { display: none; }
@container (min-width: 760px) {
  .gq-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; }
  .gq-side { order: 0; position: sticky; top: 12px; }
  .gq-bar { display: none; }
  .gq-job .gq-jf { display: block; }
}
.gq h3 { font-size: 16px; margin: 20px 0 6px; }
.gq h3 label { font: inherit; }
.gq-job { border: 2px solid var(--accent); padding: 0; overflow: hidden; }
.gq-jh { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--accent-light); border-bottom: 1px solid var(--divider); }
.gq-jh .ico { width: 22px; height: 22px; fill: var(--accent); }
.gq-jh b { flex: 1; font-size: 17px; }
.gq-jh span { font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.gq-empty { display: flex; gap: 10px; align-items: center; margin: 0; padding: 16px; color: var(--muted); }
.gq-empty .ico { width: 30px; height: 30px; fill: var(--accent); flex: none; }
.gq-line { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--divider); }
.gq-line > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gq-line b { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.gq-line small { font-size: 13px; color: var(--muted); }
.gq-line small.gq-todo { color: var(--amber); font-weight: 600; }
.gq-x { border: 0; background: none; padding: 2px; color: var(--muted); cursor: pointer; flex: none; }
.gq-x .ico { width: 22px; height: 22px; fill: currentColor; }
.gq-x:hover { color: var(--text); }
.gq-jf { padding: 12px 16px; }
.gq-jf .btn, .gq-bar .btn { width: 100%; }
.gq-jf .err-line, .gq-bar .err-line { margin: 0 0 10px; }
.gq-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.gq-row:last-of-type { border-bottom: 0; }
.gq-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gq-rt b { font-weight: 600; line-height: 1.35; }
.gq-rt small { color: var(--muted); font-size: 14px; }
.gq-row.blocked b { color: var(--muted); }
.gq-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; list-style: none; }
.gq-more summary::-webkit-details-marker { display: none; }
.gq-more p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.gq-add { flex: none; min-width: 92px; min-height: 40px; border-radius: 10px; border: 1px solid var(--accent); background: var(--card); color: var(--accent);
  font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.gq-add .ico, .gq-pick .ico { width: 20px; height: 20px; fill: currentColor; }
.gq-add.on { background: var(--accent); color: #fff; }
.gq-add:disabled, .gq-pick:disabled { opacity: .45; cursor: default; }
.gq-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.gq-pick { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.gq-pick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gq-own { display: flex; gap: 8px; align-items: stretch; }
.gq-own textarea { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); resize: vertical; min-height: 52px; }
.gq-own .btn { flex: none; width: 88px; }
.gq-hint { font-size: 14px; margin: 6px 0 0; }
.gq-full { font-size: 14px; font-weight: 600; color: var(--amber); margin: 8px 0 0; }
.gq-tag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); border-radius: 4px; padding: 0 5px; vertical-align: 1px; }
.gq-writing { display: flex; gap: 8px; align-items: center; color: var(--amber); font-weight: 600; font-size: 14px; }
.gq-writing .spinner { width: 16px; height: 16px; margin: 0; }
.gq-edit textarea { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); margin: 4px 0 8px; }
.gq-costing { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
/* Next at the bottom of every step (Simon, 25 Nov 2026), Back on the left. */
.gq-nav > span { flex: 1 1 140px; }
/* A question left unanswered after Next: red bar, its own message. */
.gq-q.bad { box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
.gq-q.bad .box, .gq-q.bad .pc-input { border-color: var(--red); }
.gq-miss { display: flex; gap: 6px; align-items: center; color: var(--red); font-weight: 600; font-size: 15px; margin: -2px 0 10px; }
.gq-miss .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.gq-opt { font-weight: 400; font-size: 16px; color: var(--muted); }

/* The job card (kioo-jobs.js jobCardHtml; v2/design/web/JobCard.mock.html):
   a garage's paper job card. Facts left, photos right; one column on a
   narrow pane, photos first. */
.jk { background: var(--card, #fff); border: 2px solid var(--accent); border-radius: 16px; overflow: hidden; margin: 12px 0 14px; container-type: inline-size; }
.jk-h { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--accent-light); border-bottom: 1px solid var(--divider); }
.jk-no { font-weight: 800; font-size: 17px; letter-spacing: .3px; }
.jk-when { font-size: 13px; color: var(--muted); flex: 1; }
.jk-st { font-size: 13px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: #fff; border: 1px solid var(--border); }
.jk-st.wait { color: #7A4A00; border-color: #E5C27A; background: #FFF1D6; }
.jk-st.go { color: #fff; background: var(--accent); border-color: var(--accent); }
.jk-st.done { color: var(--accent-dark, var(--accent)); border-color: var(--accent); }
.jk-top { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--divider); }
.jk-facts { display: grid; grid-template-columns: 104px minmax(0, 1fr); margin: 0; font-size: 15px; }
.jk-facts dt, .jk-facts dd { margin: 0; padding: 7px 12px; border-bottom: 1px solid var(--divider); }
.jk-facts dt { background: #F5F7F3; color: var(--muted); font-size: 13px; font-weight: 700; border-right: 1px solid var(--divider); }
.jk-facts dd { font-weight: 600; overflow-wrap: anywhere; }
.jk-facts dd small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.jk-facts dt:last-of-type, .jk-facts dd:last-of-type { border-bottom: 0; }
.jk-reg { font-size: 14px; }
.jk-pics { order: -1; padding: 10px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--divider); }
.jk-pic { display: block; border-radius: 10px; overflow: hidden; background: #F5F7F3; aspect-ratio: 1; }
.jk-pic.big { aspect-ratio: 4 / 3; }
.jk-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jk-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.jk-nopic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; text-align: center; min-height: 120px; }
.jk-nopic svg { width: 64px; height: auto; color: #8A938A; }
.jk-nopic .spinner { margin: 0; }
.jk-pics.none { display: none; }   /* a narrow card: no empty photo box */
@container (min-width: 600px) {
  .jk-top { grid-template-columns: minmax(0, 1fr) 240px; }
  .jk-pics.none { display: flex; }
  .jk-pics { order: 0; border-bottom: 0; border-left: 1px solid var(--divider); }
  .jk-nopic { flex: 1; min-height: 170px; }
  .jk-nopic svg { width: 100px; }
}
.jk-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.jk-t th { background: #F5F7F3; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--divider); }
.jk-t td { padding: 10px 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.jk-t td > b { display: block; font-weight: 600; line-height: 1.35; }
.jk-t td small { display: block; color: var(--muted); font-size: 13px; }
.jk-t details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; margin-top: 2px; }
.jk-t details p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.jk-t tfoot td { font-weight: 700; background: #F5F7F3; border-bottom: 0; }
.jk-r { text-align: right !important; white-space: nowrap; }
.jk-t small.jk-ph, .jk-t .jk-ph { display: none; }
@container (max-width: 440px) {
  .jk-wide { display: none; }
  .jk-t small.jk-ph { display: block; font-weight: 600; color: var(--text); }
  .jk-t .jk-ph { display: inline; }
}
.jk-stages { display: flex; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); background: #F5F7F3; }
.jk-stages li { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 7px 2px 6px; border-top: 4px solid transparent; }
.jk-stages li.done { color: var(--accent-dark, var(--accent)); border-top-color: var(--accent); }
.jk-stages li.now { color: var(--accent-dark, var(--accent)); background: transparent; border-top-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0 0 6px 6px; }
@container (max-width: 440px) { .jk-stages li { font-size: 10.5px; } }
.jk-posted { margin: -6px 0 12px; }

/* Questions and tips inside the job card (Simon, 25 Nov 2026): the line
   that asks first, then the newest comments. Outside a card (nothing uses
   that now) it still reads as a plain section. */
.jk .kc { margin: 0; border-top: 1px solid var(--divider); }
.jk .kc:empty { display: none; }
.kc-h { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #F5F7F3; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--divider); }
.kc-h span { flex: 1; }
.kc-h .linkbtn { font-size: 13px; text-transform: none; letter-spacing: 0; }
.kc-body { padding: 10px 12px; }
.jk .kc-write { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.jk .kc-write textarea { margin: 0; border: 2px solid var(--accent); }
.jk .kc-write .kc-starters { margin: 0; }
.jk .kc-write .kc-vadd { margin: 0; }
.jk .kc-write > p, .jk .kc-write .banner { margin: 0; }
.kc-line { display: flex; gap: 8px; align-items: center; width: 100%; box-sizing: border-box; text-align: left; font: inherit; font-size: 16px; color: var(--text); background: var(--card, #fff); border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 12px; cursor: text; text-decoration: none; }
.kc-line:hover { border-color: var(--accent); }
.kc-line .kc-ico { color: var(--accent); width: 22px; height: 22px; }
.kc-line b { margin-left: auto; color: var(--accent-dark); font-weight: 600; white-space: nowrap; }
.kc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kc-row .kc-hint { flex: 1 1 200px; font-size: 13px; color: var(--muted); }
.kc-row .btn { width: auto; flex: none; min-height: 42px; padding: 0 18px; margin: 0; }
.kc-tidied { border: 1px solid #A9C8A4; background: var(--accent-light); border-radius: 12px; padding: 10px 12px; }
.kc-tidied > small { display: block; font-size: 12px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .4px; }
.kc-tidied > p { margin: 4px 0 0; }
.kc-about { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); border-radius: 6px; padding: 2px 4px 2px 8px; }
.kc-about button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0 4px; }
.kc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jk .kc-list { gap: 0; margin: 0; }
.jk .kc-c, .jk .kc-c:first-child { border-top: 1px solid var(--divider); padding: 10px 12px; border-radius: 0; }
.jk .kc-c.kc-mine { background: #F3F8F1; }
.jk .kc-tips { margin: 0; border: 0; border-top: 1px solid var(--divider); border-radius: 0; }
.jk-safe { display: inline-block; font-size: 11px; font-weight: 700; color: var(--red, #B3261E); background: #FBE4E1; border: 1px solid #E8B4AE; border-radius: 4px; padding: 0 5px; margin: 2px 0; }
.jk-safe-why { display: block; color: var(--text); font-size: 13px; margin: 2px 0 4px; }
.jk-ask { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }

/* Photos the driver added after posting (later_photos.sql). */
.jk-pic { position: relative; }
.jk-later { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.7); border-radius: 4px; padding: 1px 5px; line-height: 1.3; }
.jk-thumbs .jk-later { font-size: 10px; left: 2px; bottom: 2px; padding: 0 3px; }
.kc-pics { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.kc-pics a { display: block; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: #F5F7F3; }
.kc-pics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-adds { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.kc-adds > p { margin: 0; }
.kc-adds .kc-vbox { flex-basis: 100%; margin: 0; }
.kc-mypics { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.kc-mypic { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: #F5F7F3; border: 1px solid var(--border); }
.kc-mypic.bad { border-color: var(--red); }
.kc-mypic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-mypic button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 6px; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; cursor: pointer; }
.kc-picst { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.kc-padd { cursor: pointer; }
.kc-padd.disabled { opacity: .5; pointer-events: none; }
.kc-adds .err-line { flex-basis: 100%; }
.kc-adds .btn { width: auto; margin: 0; }

/* Fixed it on MOT advisories (kioo-fixed.js, advisory-fixed-plan.md piece 1) */
.afx-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.afx-btn { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); border: 1px solid var(--accent); border-radius: 8px; padding: 2px 10px; cursor: pointer; }
.afx-btn .ico { width: 16px; height: 16px; }
.afx-btn.on { color: #fff; background: var(--accent); }
.afx-btn.quote { background: #fff; }
.afx-btn + .afx-btn { margin-left: 6px; }
.afx-row .afx-btn + .afx-btn { margin-left: 0; }
.afx-done { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.afx-done .ico { width: 18px; height: 18px; }
.afx-undo { font-size: 14px; font-weight: 400; }
.tag.good { background: var(--accent-light); color: var(--accent-dark); }
.afx-box { width: min(92vw, 520px); }
.afx-box h3 { margin: 18px 0 6px; font-size: 17px; }
.afx-group { border: 1px solid #c9d3c7; border-radius: 10px; margin: 8px 0; padding: 6px 10px; }
.afx-group legend { padding: 0 4px; }
.afx-tick { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; cursor: pointer; }
.afx-tick small { display: block; font-size: 14px; }
.afx-one { margin-left: 26px; }
.afx-paid { display: flex; align-items: center; gap: 6px; }
.afx-paid input { width: 10em; font: inherit; padding: 8px; }
.afx-box select { font: inherit; padding: 8px; min-height: 44px; max-width: 100%; border: 1px solid #6b7a69; border-radius: 8px; background: #fff; color: inherit; }
.afx-tick input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.afx-who { display: flex; flex-wrap: wrap; gap: 8px; }
.afx-note { font-size: 14px; margin-top: 14px; }/* Two things to know never folds: its title the same size as the folded cards'. */
.report.folded .things-card > h2 { font-size: var(--t-md); }
.advert-price { margin: 0 0 8px; }

/* Answers from people on an Ask Kioo question (js/kioo-ask-board.js,
   v2/docs/ask-board-plan.md piece 3): under Kioo's answer, in the comment
   look (kc-*), set apart by a border so it never reads as Kioo's words. */
.kab-in { margin: 12px 0 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); }
.kab-in > p, .kab-in > .status { padding: 10px 12px; }
.kab-in .kc-list { margin: 0; padding: 12px; }
.kab-in .kc-write { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.kab-in .kc-write textarea { margin: 0; }
.kab-in .kc-write .kc-starters { margin: 0; }
.kab-in .kc-write > p, .kab-in .kc-write .banner { margin: 0; }
.kab-in > p:has(> [data-kab-all]) { padding: 0 12px; margin: 0 0 8px !important; }
.kab-in > p.muted.small { padding: 10px 12px; }
.kab-head .chip { margin-right: 0; }
.kab-verified { background: var(--blue-light, #E6ECF7); color: var(--blue, #3D5A99); }
.kab-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.kab-helped, .kab-fit { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.kab-helped { color: var(--accent-dark); background: var(--accent-light); border: 1px solid #A9C7A6; }
.kab-fit { color: #7A4A00; background: var(--amber-light); border: 1px solid #E0B66A; }
/* Kioo's numbers under an answer: counted data, written by code */
.kab-numbers { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--card, #fff); }
.kab-numbers p { margin: 6px 0 0; }
.kab-numbers p .small { display: block; margin-top: 2px; }
.kab-numbers .kab-numbers-h { margin: 0; font-size: 13px; color: var(--accent); }
.kab-numbers .kab-own { margin: 0; }
.kab-numbers p + .kab-own { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.kab-acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; }
.kab-acts .kc-rbox { flex-basis: 100%; }
.kab-helpbtn { width: auto; min-height: 36px; padding: 0 12px; margin: 0; font-size: 14px; }
.kab-answer { width: auto; align-self: flex-start; margin: 0; }
.kab-metoo { font: 600 13px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-transform: none; letter-spacing: 0; color: var(--text); background: var(--card); border: 1.5px solid var(--border); border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.kab-metoo.on { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); }
.kab-metoo:disabled { opacity: .6; }
@media (max-width: 640px) {
  .kab-in .kc-row .btn { flex: 1 1 auto; }
}

/* The Inbox's number on the menu (27 Nov 2026, kiooPaintInboxCount): a red
   count on the icon in the rail and tab bars, beside the word in the header. */
a[data-tab] { position: relative; }
.nbadge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C62828; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
.shell-rail .nbadge, .shell-tabs .nbadge, .tabbar .nbadge { position: absolute; top: 2px; left: calc(50% + 4px); box-shadow: 0 0 0 2px var(--nbadge-ring, #fff); }
.shell-rail .nbadge { --nbadge-ring: var(--accent-dark, #1B5E20); }
header.site nav .nbadge { display: inline-block; margin-left: 6px; vertical-align: 1px; }

/* "Had this too?" on a job (27 Nov 2026, job_metoo.sql). */
.kc-metoo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.kc-metoo .btn { padding: 8px 14px; min-height: 40px; }
.kc-metoo .btn[aria-pressed="true"] { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
p.kc-metoo { margin: 0 0 12px; }

/* "How do we know?" panel (28 Nov 2026, js/kioo-panel.js): slides in from the
   right on a laptop, rises as a bottom sheet on a phone. */
.kpanel-wrap { position: fixed; inset: 0; z-index: 1000; }
.kpanel-dim { position: absolute; inset: 0; background: rgba(28, 32, 27, .45); opacity: 0; transition: opacity .35s ease; }
.kpanel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 92vw); display: flex; flex-direction: column;
  background: var(--card); color: var(--text); border-radius: 14px 0 0 14px; box-shadow: -8px 0 28px rgba(0, 0, 0, .18);
  transform: translateX(100%); transition: transform .35s ease; outline: none; }
.kpanel-wrap.on .kpanel-dim { opacity: 1; }
.kpanel-wrap.on .kpanel { transform: none; }
.kpanel-top { padding: 12px 20px 0; flex: none; }
.kpanel-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 0; background: none; border: 0;
  color: var(--accent); font: 600 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.kpanel-back .ico { width: 22px; height: 22px; }
.kpanel-back:focus-visible, .kpanel-done:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.kpanel-body { padding: 4px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.kpanel-body h2 { margin: 6px 0 12px; font-size: 24px; line-height: 1.25; }
.kpanel-body h3 { margin: 20px 0 8px; font-size: 17px; }
.kpanel-body p { margin: 0 0 10px; line-height: 1.5; }
.kpanel-done { margin-top: 20px; }
.kp-list { list-style: none; margin: 0; padding: 0; }
.kp-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; line-height: 1.4; }
.kp-list .ico { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.kp-list small { display: block; color: var(--muted); font-size: 14px; }
.kp-note { margin-top: 18px !important; padding-top: 12px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 14px; }
/* The score on a 1 to 10 line: where it sits, no band names (Simon, 28 Nov 2026). */
.kp-scale { margin: 42px 4px 8px; }
.kp-track { position: relative; height: 10px; border-radius: 5px; background: var(--divider); border: 1px solid var(--border); }
.kp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.kp-tag { position: absolute; bottom: 16px; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px;
  background: var(--text); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; }
.kp-tag::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--text); }
.kp-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .kpanel { top: auto; left: 0; width: auto; max-height: 88vh; border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .18); transform: translateY(100%); }
  .kpanel-top { padding: 8px 16px 0; }
  .kpanel-body { padding: 4px 18px calc(20px + env(safe-area-inset-bottom)); }
  .kpanel-body h2 { font-size: 21px; }
  .kpanel-done { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .kpanel, .kpanel-dim { transition: none; } }
.kp-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 40px; }
.kp-open .ico { width: 20px; height: 20px; }
/* Near 1 or 10 the tag sits to one side of its point, so it stays in the panel. */
.kp-tag-l { transform: translateX(-12px); }
.kp-tag-l::after { left: 12px; }
.kp-tag-r { transform: translateX(calc(-100% + 12px)); }
.kp-tag-r::after { left: auto; right: 12px; margin-left: 0; margin-right: -5px; }
/* History's pointer to Wanted near you (Cars like it). */
.wd-hint { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; padding: 12px 14px; }
.wd-hint > span:first-of-type { flex: 1; }
/* ... in At a glance: a green strip under the tiles, where a seller sees it. */
.wd-hint.wd-in { margin: 12px 0 0; border: 1px solid var(--accent); border-radius: var(--r-md, 10px); background: var(--accent-light); }
.wd-hint.wd-in svg { fill: var(--accent); }
.wd-hint .wd-go { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 600; white-space: nowrap; }
/* Chip rows show 4 at first (kioo-chips.js kiooChipsOrder); More opens the rest. */
.rchips:not(.open) .rchip-x, .rchips:not(.open) + .rchips-key .rchip-x { display: none; }
.rchip-more { border-style: dashed; color: var(--accent); }
.rchips-key > span + span::before { content: " · "; }
.wd-watch { margin: 6px 0 0; font-size: 14px; }
.wd-hint.wd-on { cursor: default; }
.wd-on .linkbtn { margin-left: 4px; }
.wd-now { margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.wd-now p { margin: 0; }
.wd-now a { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md, 10px); color: var(--text); text-decoration: none; background: var(--card); }
.wd-now a:hover { border-color: var(--accent); }
.wd-now .wd-go { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.sell-near { margin: 12px 0 0; }
/* Get quotes' one price block (usability findings F16, F24): usually, then quoted on Kioo. */
.gq-prices { margin: 0 0 12px; }
.gq-prices .qp-line { margin: 8px 0 0; font-size: 14px; }
.qp-line { margin: 0 0 12px; }
/* On the latest MOT: what it means first, the tester's words small under it (usability finding F12). */
.adv-plain { display: block; }
.adv-plain b { display: block; }
.adv-plain span { display: block; }
.has-plain .adv-words { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.has-plain .adv-words::before { content: "The MOT tester wrote: "; }
/* Your own car's Cars like it: the model's figures in one closed card (usability finding F13). */
.more-model > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.more-model > summary::-webkit-details-marker { display: none; }
.more-model > summary h2 { margin: 0; }
.more-model[open] > summary { margin-bottom: 12px; }
.more-model > .card, .more-model > section { box-shadow: none; border: 0; padding: 12px 0 0; margin: 0; border-top: 1px solid var(--divider); border-radius: 0; }
/* Coming up (usability finding F20): a calm first line; a rough cost opens with a tap. */
.cu-calm { margin: 0 0 var(--s4, 16px); font-size: 15px; }
.cu-calm .cu-src { vertical-align: 1px; }
details.cu-cost > summary { cursor: pointer; color: var(--accent-dark, var(--accent)); font-weight: 600; font-size: 13px; }
details.cu-cost:not([open]) { align-self: flex-start; }
/* Tap to explain a word (usability finding F21). */
.gloss { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.gloss-def { display: block; margin: 4px 0; padding: 6px 10px; border-radius: 8px; background: var(--accent-light, #E6F2EA); color: var(--text); font-size: 14px; font-weight: 400; }
/* The sample report: owner's view or a buyer's (F45), a line of its own under the banner's form. */
.sample-banner p.sample-switch { flex: 1 1 100%; order: 3; font-size: 15px; }
.sample-banner .sample-switch a { color: #fff; font-weight: 700; text-decoration: underline; }
/* The Selling tab (kioo-selling.js, v2/docs/selling-plan.md). */
.sell-parts { margin: 0; padding-left: 22px; }
.sell-parts li { margin: 8px 0; }
.sell-parts b, .sell-parts span { display: block; }
.sell-parts span { color: var(--muted); font-size: 15px; }
/* Selling piece 2: the lead card's lines go to their cards; Get quotes under Worth fixing first?. */
.sell-lead-list { list-style: none; margin: 0; padding: 0; }
.sell-lead-list li + li { border-top: 1px solid var(--border); }
.sell-lead-list a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; color: var(--text); text-decoration: none; cursor: pointer; }
.sell-lead-list a:hover span, .sell-lead-list a:focus-visible span { text-decoration: underline; }
.sell-lead-list span { flex: 1; }
.sell-lead-list .fold-ch { color: var(--muted); }
.sell-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: var(--s3); }
/* Selling piece 3: Who's looking? (the Wanted it fits, the alerts line). */
.sell-wanted-list .wd-go { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 2px; }
.sell-wanted-list .wd-go svg { fill: var(--accent); width: 18px; height: 18px; }
.sell-alerts { display: flex; align-items: flex-start; gap: 8px; margin: var(--s3) 0 0; }
.sell-alerts > svg { fill: var(--accent); flex: none; }
/* Selling piece 5: Sold it. */
.sell-acts { white-space: nowrap; }
.sold-note { margin: 0 0 var(--s3); }
.sold-sheet h3 { font-size: 16px; margin: 16px 0 6px; }
.sold-steps { margin: 0 0 10px; padding-left: 20px; }
.sold-steps li { margin: 4px 0; }
.sold-small { font-size: 14px; margin: 6px 0; }
.sold-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md, 10px); margin: 6px 0; cursor: pointer; }
.sold-opt input { margin-top: 4px; flex: none; }
.sold-opt b { display: block; }
.report.sell .report-sub .linkbtn { margin-left: 4px; }
