/* =====================================================================
   CHOCK — what the group's interface did not already have:
   the car card, the condition-report zones, the signature pad, the
   comparison, the owner's single view. Everything else is Taut's.
   ===================================================================== */
.pagehead h2::after{background:var(--signal)}
.mark .sym svg{width:100%;height:100%;display:block;border-radius:22%}

/* a car in a list: the name, the year, the one line that matters now */
.carrow{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:13px 14px;border-bottom:1px solid var(--line);min-height:64px}
.carrow:last-child{border-bottom:none}
button.carrow:hover{background:var(--surface-2)}
.carrow .cic{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;background:var(--surface-3);color:var(--ink-2);flex-shrink:0}
.carrow .cic svg{width:34px;height:auto}
.carrow h4{font-size:15px;font-weight:600;line-height:1.3}
.carrow .meta{display:block;font-family:var(--f-mono);font-size:10.5px;color:var(--faint);margin-top:3px}
.carrow .due{display:block;font-size:13px;color:var(--ink-2);margin-top:4px;line-height:1.35}
.carrow .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.carrow .chips:empty{display:none}
.carrow>svg:last-child{width:18px;height:18px;color:var(--faint);flex-shrink:0}
.carhead{display:flex;gap:14px;align-items:center;margin-bottom:6px}
.carhead .cic{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;background:var(--surface-3);color:var(--ink-2);flex-shrink:0}
.carhead .cic svg{width:44px;height:auto}
.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--muted);font-size:13.5px;font-weight:600;margin:-6px 0 6px -4px;padding:0 4px}
.back svg{width:18px;height:18px}

/* the car's own due list: legal, insurer, care — each row names its source */
.duerow{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-bottom:1px solid var(--line)}
.duerow:last-child{border-bottom:none}
.duerow .grow strong{display:block;font-size:14.5px;font-weight:600;line-height:1.3}
.duerow .grow small{display:block;font-size:12px;color:var(--muted);margin-top:3px;line-height:1.4}
.duerow .src{font-family:var(--f-mono);font-size:10px;color:var(--faint);margin-top:4px;display:block;overflow-wrap:anywhere}
.duerow .src a{color:var(--faint)}
.duewhen{font-family:var(--f-mono);font-size:11.5px;white-space:nowrap;text-align:right}
.duewhen.over{color:var(--bad);font-weight:600}
.duewhen.soon{color:var(--warn);font-weight:600}
.kindtag{display:inline-block;font-family:var(--f-mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;padding:2px 6px;border-radius:4px;background:var(--surface-3);color:var(--muted);margin-right:6px;vertical-align:1px}
.kindtag.legal{background:var(--info-wash);color:var(--info)}
.kindtag.insurer{background:var(--brand-wash);color:var(--brand)}
.kindtag.practice{background:var(--surface-3);color:var(--muted)}

/* condition report: one row per zone, three states, a photo */
.zones{display:flex;flex-direction:column}
.zone{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.zone:last-child{border-bottom:none}
.zone .zn{flex:1;min-width:0;font-size:14.5px}
.zone .zn small{display:block;font-size:12px;color:var(--muted)}
.zone .seg{flex:0 0 auto;gap:4px}
.zone .seg button{min-width:44px;min-height:44px;flex:0 0 auto;padding:0 8px}
.zone .seg button.on.good{background:var(--ok-solid);border-color:var(--ok-solid);color:#fff}
.zone .seg button.on.warn{background:var(--warn-fill);border-color:var(--warn-fill);color:#1C2226}
.zone .seg button.on.bad{background:var(--bad-solid);border-color:var(--bad-solid);color:#fff}
.zthumbs{display:flex;gap:6px;flex-wrap:wrap}
.zthumbs img{width:56px;height:56px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cmp figure{margin:0}
.cmp img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;border:1px solid var(--line);display:block}
.cmp figcaption{font-family:var(--f-mono);font-size:10px;color:var(--muted);margin-top:4px}
.chg{box-shadow:inset 3px 0 0 var(--warn)}
.chg.worse{box-shadow:inset 3px 0 0 var(--bad)}

/* signature pad: a finger on glass, for the transporter and the one who hands over */
.sigpad{width:100%;height:150px;border:1px dashed var(--line-strong);border-radius:var(--r);background:var(--surface-2);touch-action:none;display:block}
.sigimg{height:56px;width:auto;max-width:100%;background:#fff;border-radius:6px;border:1px solid var(--line);display:block}

/* the owner's single view: the car, and what has been done to it */
.timeline{position:relative;padding-left:24px}
.timeline::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl{position:relative;padding:8px 0 12px}
.tl::before{content:"";position:absolute;left:-22px;top:13px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid var(--line-strong)}
.tl.ok::before{border-color:var(--ok)} .tl.warn::before{border-color:var(--warn-fill)} .tl.bad::before{border-color:var(--bad)} .tl.brand::before{border-color:var(--brand)}
.tl strong{display:block;font-size:14px;font-weight:600}
.tl span{display:block;font-family:var(--f-mono);font-size:10.5px;color:var(--faint);margin-top:2px}
.tl p{font-size:13px;color:var(--ink-2);margin-top:4px}

/* the stage's hero mark */
.hero-mark{width:64px;height:64px}
.hero-mark svg{width:100%;height:100%;border-radius:22%;display:block}
.demo-ribbon{background:var(--warn-fill);color:#1C2226;font-family:var(--f-mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;text-align:center;padding:5px 8px;font-weight:600;margin-bottom:14px;border-radius:8px}

/* ---------- v0.3: catalogue, lists for the moment, papers, costs, offer ---------- */
.msearch{position:relative}
.msearch-in{position:relative}.msearch-in svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--faint);pointer-events:none}
.msearch-in .input{padding-left:38px}
.mresults{display:flex;flex-direction:column;margin-top:6px;border-radius:12px;overflow:hidden}
.mresults:not(:empty){border:1px solid var(--line);background:var(--surface)}
.mrow{display:flex;align-items:center;gap:10px;text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);min-height:52px;width:100%}
.mrow:last-child{border-bottom:none}.mrow:hover{background:var(--surface-2)}
.mrow strong{display:block;font-size:15px;font-weight:600}.mrow span span{display:block;font-family:var(--f-mono);font-size:10.5px;color:var(--faint);margin-top:2px}
.mrow svg{width:16px;height:16px;color:var(--faint)}
.mnone{padding:12px;font-size:13px;color:var(--ink-2)}
.mpicked{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:14px}
.mpicked .lbl{display:block;font-family:var(--f-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.mpicked strong{display:block;font-size:16px;font-weight:600;margin-top:2px}.mpicked .yrs{display:block;font-size:13px;color:var(--ink-2)}
.makes{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}
.mk{border:1px solid var(--line);border-radius:999px;padding:7px 12px;font-size:13px;background:var(--surface);min-height:36px}
.mk.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.mkv{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 4px}
.mkv div{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--surface)}
.mkv span{display:block;font-family:var(--f-mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.mkv b{display:block;font-size:13.5px;font-weight:600;margin-top:3px;line-height:1.3}
@media (max-width:380px){.mkv{grid-template-columns:1fr 1fr}}
ul.plain{margin:0;padding-left:18px}ul.plain li{margin:4px 0;font-size:14px}
.catline{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--ink-2);background:var(--surface);text-align:left}
.catline svg{width:16px;height:16px;flex-shrink:0}
.runlist{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.runrow{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface)}
.runrow.done{border-color:color-mix(in srgb,var(--ok) 45%,var(--line))}.runrow.issue{border-color:color-mix(in srgb,var(--bad) 55%,var(--line))}.runrow.na{opacity:.8}
.runrow .rl{font-size:14.5px;font-weight:500;margin-bottom:8px;line-height:1.35}
.runrow textarea{margin-top:8px}
.seg.sm button{min-height:38px;font-size:13px}
.tiles2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.tiles2 div{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--bg)}
.tiles2 span{display:block;font-family:var(--f-mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.tiles2 b{display:block;font:400 20px/1.2 var(--f-disp);margin-top:4px;word-break:break-word}
.costlist{border-top:1px solid var(--line);margin:4px -14px 0}
.costlist .lrow{padding-left:14px;padding-right:14px}
.lrow .amt{font-family:var(--f-mono);font-size:13px;font-weight:600;white-space:nowrap}
.lrow.void h4,.lrow.void .amt{text-decoration:line-through;color:var(--faint)}
.lrow .ic{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--surface-3);color:var(--ink-2);flex-shrink:0}
.lrow .ic svg{width:20px;height:20px}.lrow .ic.ok{color:var(--ok)}.lrow .ic.bad{color:var(--bad)}
.lrow .thumb{width:40px;height:40px;border-radius:10px;object-fit:cover;flex-shrink:0}
img.prev.big{width:100%;max-height:320px;object-fit:contain;border-radius:12px;background:var(--surface-3);margin:8px 0}
.offer{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:14px;padding:14px;border:1px solid color-mix(in srgb,var(--brand) 35%,var(--line));border-radius:16px;background:var(--surface)}
.offer strong{display:block;font-size:15px}.offer span{display:block;font-size:13.5px;color:var(--ink-2);margin-top:2px}
.offer-acts{display:flex;gap:8px;margin-left:auto}
button.tlbtn{display:block;width:100%;text-align:left}
button.tlbtn:hover strong{text-decoration:underline}
.lrow>svg{width:18px;height:18px;flex-shrink:0;color:var(--faint)}

/* ---------- v1.0: the group's chrome, in Chock's colours ---------- */
/* the row back to the page above: "‹ CARS", as Kedge's "‹ BOAT" */
.back{display:inline-flex;align-items:center;gap:4px;min-height:44px;color:var(--ink-2);font-family:var(--f-mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;margin:-8px 0 4px -6px;padding:0 6px;border-radius:8px}
.back:hover{color:var(--brand)}
.back svg{width:16px;height:16px}
.back span{max-width:70vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the bottom bar: taller on a phone, roomier on a tablet, one line on a desk (Kedge v2.4) */
.nav button{min-height:70px}
.actionbar{bottom:calc(70px + env(safe-area-inset-bottom,0px))}
#app{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
#app.bar{padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))}
@media(min-width:720px){ .nav button{min-height:78px} .actionbar{bottom:calc(78px + env(safe-area-inset-bottom,0px))} .nav button span{font-size:11px} }
@media(min-width:1100px){ .nav button{flex-direction:row;gap:10px} .nav svg{width:20px;height:20px} .nav .dot{right:auto;left:calc(50% + 6px);top:18px} }
.syncchip{cursor:pointer;border:1px solid transparent}
.syncchip:hover{border-color:var(--line)}
/* the day's sentence */
.plan-lead{font-family:var(--f-disp);font-size:19px;line-height:1.3;font-weight:500;color:var(--ink)}
.plan-sub{font-size:12.5px;color:var(--muted);margin-top:4px!important}
/* a check's tags and its third button */
.crit,.owntag{display:inline-block;font-family:var(--f-mono);font-size:9px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;margin-left:8px;vertical-align:1px}
.crit{color:var(--bad)}
.owntag{color:var(--brand)}
.histbtn{color:var(--faint);margin-left:-6px}
.histbtn svg{width:16px;height:16px}
.hdot{width:10px;height:10px;border-radius:50%;flex-shrink:0;background:var(--line-strong)}
.hdot.ok{background:var(--ok)} .hdot.flag{background:var(--warn-fill)} .hdot.fail{background:var(--bad)}
.lrow .snagthumb{width:44px;height:44px;border-radius:8px;object-fit:cover}
/* the person bubble */
.mehead{display:flex;gap:12px;align-items:center;padding-right:36px}
.mehead h3{margin:0}
.av.lg{width:48px;height:48px;font-size:15px;box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--brand)}
.mechip{display:flex;align-items:center;gap:8px;margin-top:12px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-size:12.5px;color:var(--ink-2)}
.mechip b{width:7px;height:7px;border-radius:50%;background:var(--brand);flex-shrink:0}
.stack>a.btn,.stack>.btn{justify-content:center}
.stack .btn svg{width:17px;height:17px}
/* nudges: the link and the "Not now" side by side */
.nudge-acts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:6px}
.nudge-acts a.later{color:var(--muted);font-weight:500}
/* the update, when it cannot load by itself */
.updbar{position:fixed;left:12px;right:12px;top:calc(10px + env(safe-area-inset-top,0px));z-index:80}
.updbar-in{max-width:560px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 14px;border-radius:14px;background:var(--surface);border:1px solid color-mix(in srgb,var(--brand) 40%,var(--line));box-shadow:var(--shadow-lift);font-size:14px;font-weight:600}
.updbar-in svg{width:18px;height:18px;color:var(--brand);flex-shrink:0}
/* the net under a page */
.errnet svg{color:var(--bad)!important}
/* filters that wrap instead of hiding the last chip */
.snagbar .filters{flex-wrap:wrap;overflow:visible}
.seg.seg-wrap{flex-wrap:wrap}
.seg.seg-wrap button{flex:1 1 auto}
/* share text */
.sharepre{white-space:pre-wrap;font-family:var(--f-mono);font-size:11.5px;line-height:1.55;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0 0;max-height:280px;overflow:auto;color:var(--ink-2)}
/* defect pills */
.zonepill,.sevpill{display:inline-block;font-family:var(--f-mono);font-size:10px;letter-spacing:.06em;padding:2px 6px;border-radius:4px;background:var(--surface-3);color:var(--muted)}
.sevpill{background:var(--bad-wash);color:var(--bad);text-transform:uppercase;font-weight:700}
/* pages: the care rows, the week squares */
.lrow>svg:first-child{width:20px;height:20px;color:var(--brand)}
a.lrow{color:inherit;text-decoration:none}
.carerow{flex-wrap:wrap}
.carerow.stopped h4{color:var(--faint);text-decoration:line-through}
.careacts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.addrow .input{min-height:44px}
.wkdots{display:flex;gap:3px;flex-shrink:0}
.wkdots i{width:12px;height:12px;border-radius:3px;background:var(--surface-3)}
.wkdots i.on{background:var(--brand)}
.wkdots i.fut{background:transparent;border:1px dashed var(--line)}
.tile .n small{font-family:var(--f-mono)}
.kv dd.mono{font-family:var(--f-mono)}
.crittg{color:var(--faint);border-radius:10px}
.crittg.on{color:var(--bad);background:var(--bad-wash)}
.carerow .iconbtn svg{width:18px;height:18px}
.carerow .iconbtn{flex-shrink:0;display:grid;place-items:center}
a.btn{text-decoration:none}
.block-t strong .nowtag{display:inline;margin-top:0;font-size:9.5px;color:var(--brand)}
.fchip:not(.on) b{opacity:1;color:var(--muted)}

/* targets of at least 44 px (QA, v1.0) */
.duerow .src a,.lrow .meta a{display:inline-block;padding:12px 0;margin:-10px 0}
.mark{min-height:44px}

/* ============ 1.1.0 — the layout audit (test/layout_audit.py) ============ */
/* the toast said its piece over the buttons at the foot of a page and took their taps: only its own button answers now */
#toast.on{pointer-events:none}
#toast.on button{pointer-events:auto}
/* a hint assumed the next thing brought its own air; a card or a list right after it did not */
.hintcard+.card,.hintcard+.snags,.hintcard+.block,.hintcard+.tiles,.hintcard+.banner{margin-top:12px}
/* labels: a button in a row of buttons keeps its words on one line and takes a row of its own when there is no room;
   only a button that already has the whole row may use a second line, and then the two lines are balanced */
.btn{text-wrap:balance}
.sheet-acts .btn{flex:1 1 auto;min-width:-moz-fit-content;min-width:fit-content}
.wherepill,.zonepill,.sevpill,.holdpill{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
/* a choice in a segmented control never breaks its label: the buttons stay equal while there is room, and the last
   one drops to a row of its own when there is not (they were allowed to shrink below their own words) */
.seg button{min-width:-moz-fit-content;min-width:fit-content}
/* the head of a list: the title keeps its width, and the filter button moves under it when the two do not fit
   (it was capped at 64% of the row, which squeezed the title and cut the car's name) */
.listhead{flex-wrap:wrap;row-gap:8px}
.listhead h3{flex:0 0 auto}
.listhead .fbtn{max-width:100%}
/* a date row: "overdue by 274 days" on one line squeezed the title beside it to a few words a line and broke the
   source's address in two. The state now takes two lines at most, and the title keeps the room */
.duerow>.grow{min-width:0}
.duerow>div:last-child{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end}
.duewhen{white-space:normal;max-width:9.5em;text-wrap:balance}
/* two fields side by side: a label that needs two lines pushed its box below its neighbour's. Label, box and hint
   now sit on three shared rows, so the boxes always line up */
@supports (grid-template-rows:subgrid){
  .row2{grid-template-rows:auto auto auto;row-gap:0;column-gap:10px}
  .row2>.field{display:grid;grid-row:span 3;grid-template-rows:subgrid}
  .row2>.field>label{align-self:end}
}
/* a select in half a row has room for a dozen letters on a phone: "Open or carport" and "United Kingdom" were cut.
   A row that holds a select becomes one column on a phone; rows of plain boxes (make and model) stay side by side */
@media(max-width:480px){ .row2:has(select){grid-template-columns:1fr} }
select.input{text-overflow:ellipsis}
/* moving a car: the new place's name and its kind share a row only when both fit */
.rowf>.input{flex:1 1 180px;min-width:0}
/* "You are here" in the group card was written in the product's dot colour, too pale for text this small */
.ggroup .gp em{color:var(--brand)}
