/* Kona Ice — Territory Command v7 · "calm" layer (cycle 11)
   Loaded after board.css. One type system (Inter; serif only for truck names on the board; mono only for the clock),
   nothing smaller than 13px on a desk or 15px on a phone, no letter-spaced capitals, one button style per verb,
   and three faces chosen on the name card: body.face-driver (phone, light), body.face-caller (iPad, light),
   body.face-owner (the board, dark or day). Evidence and rulings: design/loop/cycle-11/. */

/* ---------- tokens ---------- */
body.calm{ --fs:15px; --fs-sm:14px; --fs-xs:13px; --navy2:#4A5468; --stamp:14px; --accent:#F2A94A; --mango:#F2A94A; }
body.calm.day{ --dim:#5C6678; --muted:#4A5468; --line:#D5DBE2; --navy2:#4A5468; }
/* cycle 17 ruling E (F13; WCAG 1.4.3): every amber-on-light pair measured under 3:1 in the day theme gets ink, not amber, for its text.
   NEXT CALL day: ink on amber (6.9:1). "Filters · N on", THIS MORNING, the contact phone link, the giveback "KEV" labels: dark amber #92400E (5.6:1 on white). */
body.calm.day .nc-btn, body.calm.day #btnNextCall{ color:#141A2E !important; background:var(--accent) !important; border-color:var(--accent) !important; }
body.calm.day .nc-btn.on, body.calm.day #btnNextCall.on{ background:#141A2E !important; border-color:#141A2E !important; color:#FFFFFF !important; } /* open = filled ink, so the state still shows (review 17 #1) */
body.calm.day #leadFilters, body.calm.day .fchip{ color:#92400E !important; border-color:#B45309 !important; }
body.calm.day .digest b, body.calm.day .digest .dg-t{ color:#92400E !important; }
body.calm.day .contact a:not(.find):not(.call){ color:#92400E; } body.calm.day .contact a.call{ color:#141A2E !important; }
body.calm.day .stamp.ok{ color:#166534 !important; }
body.calm.day .wk-grid tr>th:first-child b{ color:var(--ink) !important; box-shadow:inset 4px 0 0 var(--tk, var(--muted)); padding-left:6px; } /* the truck's colour is a swatch, the name is ink */
body.calm:not(.day) .wk-grid tr>th:first-child b{ color:var(--tk, var(--ink)); }
body.calm.day .wk-grid .today > b, body.calm.day .wk-grid th.today b{ color:#92400E !important; }
body.calm.day .tabs button .badge, body.calm.day #bottombar .badge{ background:#B3261E; }
body.calm.day .wk-exc li.sev2 b, body.calm.day .wk-exc li.sev3 b{ color:#B3261E !important; } body.calm:not(.day) .wk-exc li.sev2 b, body.calm:not(.day) .wk-exc li.sev3 b{ color:#F87171 !important; }
body.calm.day .lnk, body.calm.day #leadNote .ln-more, body.calm.day .wk-exc > b, body.calm.day a[href^="tel:"]:not(.call):not(.btn):not(.nc-btn){ color:#92400E !important; }
@media (max-width:1024px){ body.calm{ --fs:17px; --fs-sm:16px; --fs-xs:15px; --row-pad:10px; } }

/* ---------- one typeface ---------- */
body.calm, body.calm button, body.calm input, body.calm select, body.calm textarea{ font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif; }
body.calm .num, body.calm .kpis, body.calm .dayline, body.calm .row .when, body.calm .row .when small, body.calm .calllog, body.calm .stamp, body.calm .mystate{ font-family:Inter,system-ui,sans-serif; }
body.calm .clock .t{ font-family:"IBM Plex Mono",ui-monospace,monospace; }
body.calm .strip .cs b, body.calm .bay-h, body.calm .brand h1{ font-family:"IBM Plex Serif",Georgia,serif; letter-spacing:0; }
body.calm .bw{ letter-spacing:.04em; }
/* no letter-spaced capitals anywhere a person reads (E2: 118 of them) */
body.calm h3, body.calm .kpi i, body.calm #tabs button, body.calm #bottombar button, body.calm .mystate, body.calm .stamp, body.calm .lbl, body.calm .zb-n, body.calm .zonebar b, body.calm .bay-h, body.calm .filters label, body.calm .tog, body.calm .legend .lg-title, body.calm .row .when, body.calm .chip, body.calm .score, body.calm .st-chips button, body.calm .next-acts button, body.calm .outcomes button, body.calm button.book, body.calm .row .what button, body.calm .nc-card b, body.calm .sn-k, body.calm .wk-h, body.calm .cs-sub, body.calm .txt, body.calm .pitch b, body.calm .attnlist b, body.calm .hdr-btns button, body.calm .mechip{ letter-spacing:0 !important; text-transform:none !important; }
/* a floor under the small type (E2: 57–70 % of phone text ≤ 12 px) */
body.calm .row .when, body.calm .row .when small, body.calm .txt, body.calm .note, body.calm .dim, body.calm small, body.calm .calllog, body.calm .chip, body.calm .kpi i, body.calm .sub, body.calm .asof, body.calm .lg-shapes button, body.calm .legend label, body.calm .zb-n, body.calm .row .meta, body.calm .row .what i, body.calm .pitch, body.calm .attnlist li, body.calm .filters, body.calm .wk-h, body.calm .wk-b, body.calm .cs-sub, body.calm .score{ font-size:var(--fs-xs) !important; }
body.calm .mystate, body.calm .stamp{ font-size:var(--fs-xs); font-weight:700; }
body.calm .row .when{ font-weight:600; }
body.calm button.book{ font-size:var(--fs-sm); border-color:var(--ok); color:var(--ok); }
body.calm .row .what .outcomes button, body.calm .row .what > div > button{ font-size:var(--fs-sm); }

/* ---------- one button per verb (E3: 57 styles) ---------- */
body.calm button, body.calm .btn, body.calm a.btn{ min-height:var(--ctl-h,40px); /* cycle 18 P3: the desk's density setting moves this */ padding:0 14px; border-radius:10px; border:1px solid var(--line); background:var(--panel); color:var(--ink); font-size:var(--fs); font-weight:600; line-height:1.2; }
@media (max-width:1024px){ body.calm button, body.calm .btn, body.calm a.btn{ min-height:44px; } }
body.calm .btn.act, body.calm .btn.primary, body.calm button.primary, body.calm #idSave, body.calm .nc-btn, body.calm .bookForm button[type=submit], body.calm .add button[type=submit], body.calm .contact .call, body.calm a.call{ background:var(--accent); border-color:var(--accent); color:#141A2E; }
body.calm .btn.ghost, body.calm button.ghost, body.calm .secondary, body.calm .morechip{ background:transparent; color:var(--muted); }
body.calm .btn.danger, body.calm button.danger, body.calm .x{ color:var(--red); border-color:var(--red); background:transparent; }
body.calm .stamp.off, body.calm .mystate{ border-style:solid; }           /* dashed pills read as wireframes (cold test) */
body.calm .contact .copy, body.calm .row .copy{ min-height:32px; padding:0 10px; font-size:var(--fs-xs); }
body.calm #tabs button, body.calm #bottombar button, body.calm .zb-n, body.calm .zonebar b, body.calm .lg-shapes button, body.calm .tile, body.calm .kpi{ border-radius:8px; }
body.calm #bottombar button{ min-height:50px; font-size:var(--fs-sm); padding:0 4px; border:0; background:none; border-radius:0; }
body.calm .tiles .tile{ min-height:56px; }

/* ---------- plain words in the chrome ---------- */
body.calm .sub #liveText, body.calm .asof{ display:none; } body.calm .sub #liveDot.off + #liveText, body.calm .sub #liveDot.error + #liveText, body.calm .sub #liveDot.warn + #liveText{ display:inline; }                 /* "this device only · refreshed by hand" is for the owner's More, not the header */
body.calm .kpi.attn i::after{ content:" to look at"; }

/* ---------- the board, calmed (owner face) ---------- */
body.face-owner #tabs button[data-tab=schools], body.face-owner #tabs button[data-tab=leads], body.face-owner #tabs button[data-tab=events], body.face-owner #tabs button[data-tab=pipeline], body.face-owner #tabs button[data-tab=help]{ display:none; }
body.face-owner #tabs button{ flex:1 1 auto; white-space:nowrap; overflow:visible; text-overflow:clip; font-size:var(--fs); }
body.face-owner header .kpis{ display:none; }
body.face-owner header .oneline{ display:block; grid-column:2 / 4; align-self:center; font-size:var(--fs); color:var(--muted); line-height:1.4; padding:0 8px; }
body.face-owner header .hdr-btns{ display:none; }
body.face-owner #thunder{ order:9; }                                        /* hazards stay, but after the trucks, not before them (E12) */
body.face-owner #pane-today .scroll{ display:flex; flex-direction:column; } body.face-owner #pane-today .scroll > *{ flex:0 0 auto; } /* cycle 13 cold test: a flex child must never shrink under its neighbours (the attention rows hid under Next up) */
body.calm li.attn .attn-acts .btn{ min-height:40px; white-space:nowrap; } body.calm li.attn{ align-items:center; } body.calm li.attn .what{ min-width:0; }
/* cycle 17 ruling A (F1, F2; NN/g, Cloudscape, every seat): what needs attention comes first, then the trucks, then the timeline; the two
   h3+list pairs keep their DOM order (the old shared `order` collapsed both headings together — "Next up / Crew today / list / No shifts today") */
body.face-owner #attention{ order:0; } body.face-owner #bays{ order:1; } @media (max-height:500px){ body.face-owner #attention{ order:1; } body.face-owner #bays{ order:0; } } /* ruling 13 stays in landscape: the trucks first when the screen is short */
body.face-owner #timelineWrap{ order:2; }
body.face-owner #pane-today h3{ order:3; } body.face-owner #todayList{ order:4; } body.face-owner #todayList ~ h3{ order:5; } body.face-owner #crewToday{ order:6; }
body.tv.face-owner li.strip.idle{ display:none; }                           /* a quiet wall shows the clock and the next booking, not six "No booking" strips (E11) */
body.tv .yardline{ font-size:28px; color:var(--muted); padding:16px 24px; }
.oneline{ display:none; }
.yardline{ display:none; } body.tv .yardline{ display:block; }
body.tv .oneline{ font-size:26px; }

/* ---------- the faces: driver (phone) and caller (iPad) hide the board ---------- */
body.face-driver header .kpis, body.face-driver header .hdr-btns, body.face-driver header .dayline, body.face-driver header .clock,
body.face-driver .mapwrap, body.face-driver .toolbar, body.face-driver #tabs, body.face-driver #zoneBar, body.face-driver #nearBar,
body.face-driver #thunder, body.face-driver #attention, body.face-driver #splitter, body.face-driver .alerts, body.face-driver .nextstop{ display:none !important; }
body.face-caller header .kpis, body.face-caller header .hdr-btns, body.face-caller header .dayline, body.face-caller header .clock,
body.face-caller .mapwrap, body.face-caller .toolbar, body.face-caller #tabs, body.face-caller #zoneBar, body.face-caller #nearBar, body.face-caller #splitter,
body.face-caller #pane-leads .filters, body.face-caller #pane-leads .script, body.face-caller #bottombar{ display:none !important; }
body.face-caller.filters-open #pane-leads .filters{ display:flex !important; flex-wrap:wrap; gap:8px; padding:8px 12px; }
body.face-driver main, body.face-caller main{ grid-template-columns:minmax(0,1fr) !important; grid-template-rows:minmax(0,1fr) !important; }
body.face-driver aside, body.face-caller aside{ min-height:0; height:100%; }
body.face-driver aside, body.face-caller aside{ width:auto; max-width:none; border-left:0; }
body.face-driver header, body.face-caller header{ grid-template-columns:1fr auto; padding:10px 16px; min-height:0; }
body.face-driver .brand h1{ display:none; } body.face-caller .brand h1{ font-size:18px; }
body.face-driver header{ padding:6px 16px; }
body.calm .drive a.btn{ display:flex; align-items:center; justify-content:center; text-decoration:none; }
body.face-driver .brand .bw, body.face-caller .brand .bw{ display:none; }

/* face nav (caller): three plain destinations, one entry point each (rule 6) */
.facenav{ display:none; } .facebar{ display:none; }
body.face-caller .facenav{ display:flex; gap:8px; padding:10px 16px 0 16px; }
body.face-caller .facenav button{ flex:1; min-height:48px; font-size:var(--fs); }
body.face-caller .facenav button.on{ background:var(--navy); color:#fff; border-color:var(--navy); }
body.face-caller .facebar{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 16px; }
body.face-caller .facebar .filterbtn{ min-height:44px; }
body.face-caller #pane-leads .nextcall{ order:-1; }
body.face-caller .nc-card .nc-btns button{ min-height:48px; font-size:var(--fs); }
body.face-caller .nc-card .nc-btns{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
body.face-caller .nc-card .nc-btns .morechip{ grid-column:span 2; }
body.face-caller .row .outcomes button{ min-height:44px; }
body.face-caller #pane-leads{ max-width:860px; margin:0 auto; width:100%; }

/* ---------- driver pane ---------- */
#pane-drive{ display:none; }
body.face-driver #pane-drive.on{ display:flex; flex-direction:column; }
.drive{ padding:12px 16px 24px 16px; display:flex; flex-direction:column; gap:14px; max-width:560px; margin:0 auto; width:100%; box-sizing:border-box; }
.drive .dv-top{ display:flex; justify-content:space-between; align-items:baseline; }
.drive .dv-truck{ font-family:"IBM Plex Serif",Georgia,serif; font-size:26px; font-weight:600; color:var(--ink); }
.drive .dv-date{ font-size:var(--fs-sm); color:var(--muted); }
.drive .dv-stop{ background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:16px; display:flex; flex-direction:column; gap:6px; }
.drive .dv-stop .k{ font-size:var(--fs-xs); color:var(--muted); font-weight:600; }
.drive .dv-stop .t{ font-size:22px; font-weight:700; line-height:1.2; color:var(--ink); }
.drive .dv-stop .a{ font-size:var(--fs); color:var(--ink); }
.drive .dv-state{ font-size:var(--fs); color:var(--muted); }
body.calm .drive .dv-big{ min-height:84px; font-size:24px; font-weight:800; border-radius:18px; background:var(--accent); border-color:var(--accent); color:#141A2E; width:100%; }
body.calm .drive .dv-big:disabled{ opacity:.6; }
.drive .dv-row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body.calm .drive .dv-row .btn, body.calm .drive .dv-row button{ min-height:56px; font-size:var(--fs); }
body.calm .drive .dv-row .ok{ border-color:var(--ok); color:var(--ok); }
.drive details.dv-else summary{ list-style:none; cursor:pointer; color:var(--ink); font-size:var(--fs); font-weight:600; font-family:Inter, sans-serif; letter-spacing:0; text-transform:none; padding:0 14px; min-height:48px; display:flex; align-items:center; justify-content:space-between; border:1px solid var(--line); border-radius:10px; background:var(--panel); } /* cycle 17 B (F19): a button, not a coloured sentence */
.drive details.dv-else[open] summary{ border-bottom-left-radius:0; border-bottom-right-radius:0; }
.drive details.dv-else summary span{ color:var(--muted); }
/* cycle 17 B (F8): the band above the card — amber for a weather hold, red for a truck down; the big button goes outlined while held */
.drive .dv-band{ display:flex; flex-direction:column; gap:2px; padding:12px 16px; border-radius:12px; border-left:8px solid; font-size:var(--fs); }
.drive .dv-band b{ font-size:18px; letter-spacing:.04em; }
.drive .dv-band.hold{ background:#FEF3C7; color:#78350F; border-color:#D97706; } .drive .dv-band.down{ background:#FEE2E2; color:#7F1D1D; border-color:#DC2626; }
body:not(.day) .drive .dv-band.hold{ background:#3B2A05; color:#FDE68A; } body:not(.day) .drive .dv-band.down{ background:#3F0F0F; color:#FECACA; }
body.calm .drive.held .dv-big{ background:var(--panel); border:2px solid var(--line); color:var(--ink); }
.drive.held .dv-stop{ opacity:.75; }
.drive details.dv-else summary::-webkit-details-marker{ display:none; }
.drive .dv-else-row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding-top:8px; }
body.calm .drive .dv-else-row button{ min-height:48px; }
.drive .dv-later{ display:flex; flex-direction:column; gap:6px; }
.drive .dv-later .k{ font-size:var(--fs-xs); color:var(--muted); font-weight:600; }
.drive .dv-later .li{ display:flex; justify-content:space-between; gap:10px; padding:10px 12px; background:var(--panel); border:1px solid var(--line); border-radius:12px; font-size:var(--fs-sm); }
.drive .dv-off{ font-size:var(--fs-sm); color:var(--muted); }
.drive .dv-empty{ background:var(--panel); border:1px dashed var(--line); border-radius:16px; padding:18px; font-size:var(--fs); color:var(--muted); }
body.face-driver #bottombar{ display:grid !important; grid-template-columns:repeat(3,1fr); }
body.face-driver #bottombar button[data-go=leads], body.face-driver #bottombar button[data-go=week], body.face-driver #bottombar button[data-go=map], body.face-driver #bottombar button[data-go=more]{ display:none; }
body.face-driver #pane-today .bay-h, body.face-driver #pane-today h3{ font-size:var(--fs); }

/* ---------- Next-call card and strips: plain words, no small caps, quiet secondary outcomes ---------- */
body.calm .nextcall .nc-card *, body.calm .nextcall .nc-h, body.calm .nextcall .nc-h *{ letter-spacing:0 !important; text-transform:none !important; }
body.calm .nextcall .nc-h, body.calm .nextcall .kind, body.calm .nextcall .ask, body.calm .nextcall .ask b, body.calm .nextcall small, body.calm .nextcall .dist, body.calm .nextcall .contact a, body.calm .nextcall .contact span{ font-size:var(--fs-sm) !important; }
body.calm .nc-card .nc-btns button.secondary, body.calm .nc-card .nc-btns button.skip, body.calm .nc-card button[data-k=not26], body.calm .nc-card button[data-k=no]{ background:transparent; color:var(--muted); border-color:transparent; font-weight:500; }
body.calm .nc-card .nc-btns button kbd{ display:none; }
body.face-caller .facebar{ order:-2; border-bottom:1px solid var(--line); margin-bottom:6px; }
body.face-caller #pane-leads.on{ display:flex; flex-direction:column; }
body.calm .strip .acts .btn, body.calm .strip .acts button, body.calm .strip .stamp, body.calm .strip .txt, body.calm .strip .cs i, body.calm .strip .site, body.calm .strip .con, body.calm .strip .usd, body.calm .strip .win, body.calm .bay-h, body.calm .dayline{ font-family:Inter,system-ui,sans-serif; letter-spacing:0 !important; text-transform:none !important; }
body.calm .strip .acts .btn, body.calm .strip .acts button{ font-size:var(--fs-xs); min-height:34px; padding:0 10px; }
body.calm .dayline, body.calm .strip .txt, body.calm .strip .site, body.calm .strip .con, body.calm .strip .usd, body.calm .strip .win{ font-size:var(--fs-xs); }
body.calm .stamp{ min-height:30px; padding:0 10px; font-weight:700; }
.morelinks{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:12px 12px 4px 12px; }
body.calm .morelinks .btn{ min-height:44px; }
body.calm #toast{ font-size:var(--fs-sm); }
/* cycle 17 ruling C (F7): the Undo is the driver's only way back — a full-width label in the body face, never the display face, never clipped */
body.calm #toast button{ min-height:44px; min-width:88px; padding:0 16px; font:700 var(--fs-sm) Inter, sans-serif; letter-spacing:0; border-radius:10px; }
body.calm .practice-bar{ min-height:36px; padding:4px 10px; flex-wrap:nowrap; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; } body.calm .practice-bar > span{ overflow:hidden; text-overflow:ellipsis; } body.calm .practice-bar button{ min-height:28px !important; padding:0 10px; font-size:12px; flex:0 0 auto; } body.calm .practice-bar.ask{ flex-wrap:wrap; white-space:normal; }
/* review 15 product 10: on the caller face the toast docks at the top (under the practice bar), never over the outcome buttons or Skip */
body.face-caller #toast{ bottom:auto; top:calc(max(var(--pbar,0px),var(--pbar-min,0px)) + 8px + env(safe-area-inset-top,0px)); max-width:min(680px,calc(100vw - 24px)); }
body.calm .bay h4, body.calm .bay h4 span{ font-size:var(--fs-xs); letter-spacing:0; text-transform:none; font-family:Inter,system-ui,sans-serif; }
body.calm .nc-skip kbd{ display:none; }

/* ---- cycle 12: the caller finishes alone ---- */
body.calm .cb-line{ font-size:var(--fs); margin:4px 0 2px; color:var(--ink,#1A2233); }
body.calm .cb-line b{ font-weight:700; }
body.calm .cb-line[data-set="0"]{ color:var(--muted); }
body.calm .nc-conflict{ font-size:var(--fs-sm); color:#8A4B00; background:#FFF4E5; border-radius:8px; padding:6px 10px; margin:4px 0; }
body.calm .nc-today{ font-size:var(--fs); color:var(--dim); padding:4px 12px 6px; }
body.calm .nc-last{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 12px 8px; padding:8px 12px; border-radius:10px; background:#EEF3FF; color:#1A2233; font-size:var(--fs-sm); } /* review 15 css 2: the ground is always light, so the ink is always dark (was invisible after 6 PM) */
body.calm .nc-last .btn{ min-height:40px; flex:none; }
body.calm .cb-row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0 4px; }
body.calm .cb-row > button{ min-height:48px; font-size:var(--fs); border-radius:10px; }
body.calm .cb-row > button.clear{ grid-column:span 2; background:transparent; color:var(--muted); border-color:transparent; min-height:40px; }
body.calm .cb-row .cb-days{ grid-column:span 2; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
body.calm .cb-row .cb-days button{ min-height:48px; font-size:var(--fs); border-radius:10px; }
body.calm .cb-row .cb-another{ grid-column:span 4; display:flex; align-items:center; gap:10px; font-size:var(--fs-sm); color:var(--dim); }
body.calm .cb-row .cb-another input{ min-height:44px; font-size:var(--fs); }
body.calm .nc-more{ margin:2px 0; font-size:var(--fs-sm); }
body.calm .nc-more > summary{ cursor:pointer; min-height:40px; display:flex; align-items:center; color:var(--dim); list-style:none; }
body.calm .nc-more > summary::before{ content:"▸ "; }
body.calm .nc-more[open] > summary::before{ content:"▾ "; }
body.face-caller kbd{ display:none !important; }
@media (max-width:1024px){ body.face-caller .cb-row .cb-days{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:600px){ body.calm .cb-row .cb-days{ grid-template-columns:repeat(2,minmax(0,1fr)); } body.calm .cb-row .cb-another{ grid-column:span 2; } }
/* driver: the offline line and the close-out sizes (red team, missing 3) */
body.calm .dv-sync{ font-size:var(--fs-sm); padding:4px 0; color:var(--dim); }
body.calm .dv-sync.off{ color:#8A4B00; font-weight:700; }
body.calm .dv-sync.sent{ color:#0F6E3B; font-weight:700; }
body.calm .close-sheet input[type=number], body.calm .close-sheet input[inputmode]{ min-height:56px; font-size:22px; }
body.calm .close-sheet .cs-btns button, body.calm .close-sheet .cs-wx button{ min-height:44px; }
body.calm .close-sheet .cs-wx{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:8px 0; }
body.calm .close-sheet .cs-wx button.on{ outline:3px solid var(--acc,#1F5FBF); outline-offset:-3px; }
body.calm .close-sheet label.cs-f{ display:block; font-size:var(--fs); margin:10px 0 4px; }
/* booking form: the END control is never clipped on a phone */
body.calm .bk-f input[type=datetime-local]{ min-width:0; width:100%; font-size:var(--fs); }
@media (max-width:600px){ body.calm #bookForm .bk-f{ grid-column:span 2; } }
body.calm .nc-head .nc-today.inhead{ padding:0; flex-basis:100%; font-size:var(--fs-sm); }
body.face-caller .nc-head{ flex-wrap:wrap; row-gap:2px; }
/* the caller card fits an iPad landscape without scrolling: tighter kind line and name, address meta folded */
body.face-caller .nc-card .nc-kind{ font-size:var(--fs-xs) !important; }
body.face-caller .nc-card .nc-name{ margin:2px 0 0; font-size:22px; line-height:1.1; }
body.face-caller .nc-card > .what > .meta:not(.windows){ display:none; }
body.face-caller #nextCall .nc-head{ padding-top:6px; padding-bottom:4px; }
body.calm #attention li .meta, body.calm #attention li small, body.calm #attention li .sub{ font-size:var(--fs-xs) !important; } @media (max-width:640px){ body.calm #attention li .meta, body.calm #attention li small, body.calm #attention li .sub{ font-size:16px !important; } } /* cycle 17 A: the list is above the fold now, so it keeps the phone floor */
body.calm li.attn .what{ font-size:var(--fs-sm); }
body.calm aside h3, body.calm .pane h3{ font-size:var(--fs-xs) !important; }
/* review defect 5: every touch target on the faces ≥48px */
body.calm .nc-last .btn, body.calm .cb-row > button.clear{ min-height:48px; } body.calm .nc-more > summary{ min-height:44px; }
body.calm .drive .dv-text{ min-height:56px; margin-top:8px; }
/* cold test (cycle 12): the disclosure is a real tap target; the two quieter outcomes still look like buttons */
body.calm .dv-else > summary{ min-height:48px; display:flex; align-items:center; }
body.face-caller .nc-card .nc-btns button.secondary, body.face-caller .nc-card button[data-k=not26], body.face-caller .nc-card button[data-k=no]{ border-color:var(--line,#D8DEE9); }

/* ---- cycle 13: the owner's questions ---- */
body.calm .pay-pill{ display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border-radius:999px; font-size:var(--fs-xs); font-weight:700; border:1px solid var(--line,#D8DEE9); background:#fff; color:#4A5468; margin-top:6px; } /* review 15 css 5: white ground, so a fixed dark ink (night --muted was 2.1:1) */
body.calm .pay-pill.paid{ background:#E6F6EC; color:#0F6E3B; border-color:#BFE6CD; }
body.calm .pay-pill.overdue{ background:#FDECEC; color:#A32020; border-color:#F3C4C4; }
body.calm .pay-pill.pending{ background:#FFF4E5; color:#8A4B00; border-color:#F7D8B0; }
body.calm .stmt-rows{ display:grid; grid-template-columns:max-content 1fr; gap:6px 16px; margin:12px 0; font-size:var(--fs); }
body.calm .stmt-rows dt{ color:var(--dim); } body.calm .stmt-rows dd{ margin:0; font-weight:600; }
body.calm .stmt-corr{ color:#8A4B00; }
body.calm .stmt-how{ display:flex; gap:8px; align-items:center; } body.calm .stmt-how input{ min-height:44px; font-size:var(--fs); flex:1; }
body.calm .meta.touch.cold{ color:#8A4B00; font-weight:700; }
body.calm .meta.hostgive{ color:#0F6E3B; font-weight:700; }
body.calm .attn-acts{ display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
body.calm .attn-acts .btn{ min-height:36px; }
body.calm .pipe-shape{ margin:0 0 12px; padding:12px 14px; border-radius:12px; background:var(--card2,#EEF3FF); } body.calm .pipe-shape .shape-line{ color:var(--ink); } body:not(.day) .pipe-shape{ background:var(--panel,#1a2238); } /* cycle 14 A7: the calling line was white on white after 6 PM */
body.calm .shape-line{ font-size:20px; font-weight:800; letter-spacing:0; }
body.calm .shape-tabs{ display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
body.calm .shape-tabs button{ min-height:36px; padding:0 12px; border-radius:999px; font-size:var(--fs-xs); }
body.calm .shape-tabs button.on{ background:var(--acc,#1F5FBF); color:#fff; border-color:transparent; }
body.tv .clock .tvgive{ font-size:22px; font-weight:800; color:#7CE0A3; margin-top:4px; }
@media (max-width:1024px){ body.calm .pay-pill, body.calm .attn-acts .btn, body.calm .shape-tabs button{ min-height:44px; } }
body.calm li.attn{ flex-wrap:wrap; }
body.calm li.attn .attn-acts{ flex:1 0 100%; display:flex; flex-direction:row; flex-wrap:wrap; justify-content:flex-start; gap:8px; margin-top:6px; }
body.calm li.attn .attn-acts .btn{ flex:0 0 auto; }

/* ---- nightly leads: candidates found overnight ---- */
body.calm .cand{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:6px; font-size:var(--fs-xs); }
body.calm .cand-chip{ display:inline-flex; align-items:center; min-height:26px; padding:0 10px; border-radius:999px; background:#FFF4E5; color:#8A4B00; font-weight:800; }
body.calm .cand-why{ color:var(--dim); flex:1 1 240px; }
body.calm .cand a{ color:var(--acc,#1F5FBF); }
body.calm .cand-acts{ display:flex; gap:8px; flex:1 0 100%; }
body.calm .cand-acts .btn{ min-height:40px; }
@media (max-width:1024px){ body.calm .cand-acts .btn{ min-height:44px; } }

/* ===== cycle 14 — navigation across phone, desk and TV (design/loop/cycle-14/decision-packet.md) ===== */
/* A5: the only thing that scrolled a list sideways was a lead's PITCH/CAMP note with no break point; lists never scroll sideways */
body.calm .pane .scroll{ overflow-x:hidden; }
body.calm .row .what, body.calm .row .pitch, body.calm .row .meta, body.calm .nc-card .what{ min-width:0; overflow-wrap:anywhere; }
/* A14: the red count on the Leads tab was 9 px on a thin pill */
body.calm .tabs button .badge, body.calm #bottombar .badge{ font-size:13px !important; font-weight:700; padding:2px 7px; border-radius:999px; line-height:1.2; background:#B3261E; color:#fff; }
/* A4: where am I — a 44 px row at the top of every pane under More: ‹ More · Leads */
.subhead{ display:flex; align-items:center; gap:10px; min-height:44px; padding:0 12px; border-bottom:1px solid var(--line); background:var(--board); position:sticky; top:0; z-index:3; font-size:var(--fs); }
.subhead .sh-back{ min-height:44px; padding:0 8px 0 2px; border:0; background:none; color:#7CB8FF; font:inherit; font-weight:600; cursor:pointer; } body.day .subhead .sh-back{ color:#1D4ED8; } /* review 15 css 6: a link colour per theme — the amber --accent was 1.9:1 on the white day board */
.subhead .sh-sep{ color:var(--dim); } .subhead .sh-where b{ font-weight:700; color:var(--ink); }
body.tv .subhead{ display:none; }
/* ruling 5: the sentence is Today's first row on the phone; one row on the desk */
.oneline-today{ display:none; }
@media (max-width:640px){
  body.face-owner header .oneline{ display:none; }
  body.face-owner .oneline-today{ display:block; padding:10px 12px 6px; font-size:var(--fs); color:var(--muted); line-height:1.4; }
}
@media (min-width:641px){ body.face-owner header .oneline{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } body.face-owner header{ min-height:0; } }
/* ruling 1: Week second; under 360 px (200 % zoom) four items — Map lives in the sheet */
#sheetMap{ display:none; }
@media (max-width:359px){ body.face-owner #bottombar{ grid-template-columns:repeat(4,1fr) !important; } body.face-owner #bottombar [data-go=map]{ display:none !important; } #sheetMap{ display:block; } }
/* ruling 7: compact truck strips on the owner's phone — the buttons open on a tap of the strip */
@media (max-width:640px), (max-height:500px){
  body.face-owner #bays li.strip .acts, body.face-owner #bays li.strip .st-chips{ display:none !important; }
  body.face-owner #bays li.strip.open .acts:not(:empty){ display:flex !important; } body.face-owner #bays li.strip.open.choosing .st-chips{ display:flex !important; }
  body.face-owner #bays li.strip{ cursor:pointer; }
  body.face-owner #bays li.strip:not(.open)::after{ content:"tap for buttons"; grid-area:acts; font-size:16px; color:var(--muted); padding:0 12px 8px; }
  body.face-owner #bays li.strip.idle:not(.open)::after{ content:""; padding:0; }
  /* ruling 11: 16 px body in the strips, 44 px buttons and stamps */
  body.calm .strip .site b, body.calm .strip .site small, body.calm .strip .con, body.calm .strip .usd, body.calm .strip .notes, body.calm .strip .win b, body.calm .strip .win small, body.calm .strip .txt{ font-size:16px !important; }
  body.calm .strip .acts .btn, body.calm .strip button.stamp, body.calm .strip .acts a.btn{ min-height:44px; display:inline-flex; align-items:center; }
  body.calm .notes .stamp{ position:static; display:inline-flex; margin-top:6px; }
  body.calm .notes{ padding-right:12px !important; }
  body.calm .row .x, body.calm .cal-add, body.calm .wk-prev, body.calm .wk-next, body.calm .wk-now{ min-height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; }
  body.calm .cal-add{ font-size:16px; }
  /* ruling 8: seven columns on a phone — short truck names, 44 px tall cells */
  .wk-grid .wk-full{ display:none; } .wk-grid tr>th:first-child{ width:40px !important; padding:0 2px !important; } .wk-grid tr>th:first-child b{ font-size:16px !important; letter-spacing:0; }
  .wk-grid{ border-spacing:2px !important; padding:4px 4px !important; } .wk-b{ min-height:44px; }
  body.calm .wk-b{ padding:2px; } /* review 15 css 20: the one-button rule's 0 14px left a 12 px text column in a 42 px cell — "2 h" broke in two, "$1.2k" spilled */
  /* ruling 9: a lead row is compact until tapped; then the six outcomes as two columns of 44 px buttons */
  #leadList li.row .status-btns:not(.nc-btns){ display:none !important; }
  #leadList li.row.expanded .status-btns:not(.nc-btns){ display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:8px; }
  #leadList li.row.expanded .status-btns button{ min-height:44px !important; font-size:16px !important; }
  #leadList li.row.expanded .status-btns .morechip{ display:none !important; } #leadList li.row.expanded .status-btns button.secondary, #leadList li.row.expanded .status-btns button[data-k=no], #leadList li.row.expanded .status-btns button[data-k=not26]{ display:inline-flex !important; }
  #leadList li.row:not(.expanded) .pitch, #leadList li.row:not(.expanded) .calllog{ display:none; }
  /* cycle 17 ruling F (F12, F22): the Schools rows use the same outcome component as a Leads row — two columns of 44 px, one face, no slabs */
  #schoolList li.row .status-btns{ display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:8px; }
  #schoolList li.row .status-btns button{ min-height:44px !important; font-size:16px !important; padding:0 10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #schoolList li.row .status-btns .morechip{ display:none !important; } #schoolList li.row .status-btns button.secondary{ display:inline-flex !important; }
  body.calm .status-btns button.book, body.calm .btn.book, body.calm .cal-add, body.calm .row .what .risk{ font-family:Inter, sans-serif !important; letter-spacing:0 !important; text-transform:none !important; font-weight:700; } /* one button face (F22): the serif caps go */
  #leadList li.row{ cursor:pointer; }
  /* ruling 5: the Leads toolbar keeps the search on the phone */
  body.face-owner:not(.mapmode) .toolbar #btnPin{ display:none; } body.face-owner .toolbar{ padding:6px 10px; } body.face-owner .toolbar #search{ min-height:44px; }
  /* ruling 11: caller labels to the floor */
  body.face-caller .nc-card .nc-kind, body.face-caller .nc-card .nc-ask, body.face-caller .nc-card .more-btn, body.face-caller .nc-card .nc-due, body.face-caller .nc-card small{ font-size:16px !important; }
  /* ruling 14: 2 × 3 outcome grid, Skip on its own 44 px row */
  body.face-caller .nc-card .nc-btns{ gap:6px; } body.face-caller .nc-card .nc-btns button{ min-height:44px; } body.face-caller .nc-card .nc-btns .nc-skip{ grid-column:span 2; min-height:44px; } body.face-caller .nc-card{ padding:12px !important; }
}
@media (min-width:1025px){ .wk-grid .wk-short{ display:none; } }
@media (min-width:641px) and (max-width:1024px){ .wk-grid .wk-short{ display:none; } }
/* ruling 9 desk: outcomes wrap, nothing scrolls sideways */
.status-btns{ flex-wrap:wrap; } .chips{ display:flex; flex-wrap:wrap; gap:4px; } .chip-more{ cursor:pointer; }
/* ruling 11 desk: 44 px tabs, 13 px floors */
@media (min-width:641px){ body.calm #tabs button{ min-height:44px; } body.calm .row .what .loc, body.calm .tabs button .badge{ font-size:13px !important; } }
/* ruling 12: contrast — stamps, my-state, timers, week labels, calendar link, ≥ 4.5:1 in both themes */
body.calm .stamp{ color:#B3261E; background:#fff !important; } body.calm .stamp.ok{ color:#1F7A4D; } body.calm .stamp.navy{ color:#20285C; } body.calm .stamp.off{ color:#5A6484; } /* a stamp carries its own white ground, so it reads the same on the strip, the panel and the wall */
/* review 15 css 3–4: the strip and the stamp are always light grounds — fixed navy/grey inks, not the night tokens (the --muted override of .stamp.off that sat here is gone) */
body.calm .cs .mystate{ color:#20285C; border-color:var(--muted); } @media (min-width:641px){ body.calm .cs .mystate{ font-size:13px; } } @media (max-width:640px){ body.calm .cs .mystate{ font-size:16px !important; } }
body.calm .strip .win .num, body.calm .strip .win b, body.calm .strip .win small, body.calm .strip.st-en-route .cs b, body.calm .strip .cs b{ color:#20285C !important; } /* the strip is always the light card; the name and timer are navy on it in both themes */
body.calm .row .what .loc, body.calm .row .what .edit.loc{ color:#3B4677; border-color:#8A93B5; } body.calm .wk-grid th.rest b, body.calm .wk-grid th.rest small{ opacity:1; color:var(--muted) !important; }
body.calm .wk-b i, body.calm .wk-grid th, body.calm .wk-grid tr:first-child th small, body.calm .wk-grid .wk-t{ color:var(--muted) !important; }
body.calm .cal-add{ color:var(--ink); border-color:var(--muted); }
/* ruling 13: landscape phone and 200 % desk — height under 500 px */
@media (max-height:500px){
  body.calm header{ min-height:0; padding:4px 12px !important; } body.calm .brand h1{ font-size:15px; } body.calm header .oneline, body.calm .dayline, body.calm .kpis{ display:none !important; }
  body.calm .practice-bar{ min-height:24px; padding:2px 10px; font-size:12px; } body.calm .practice-bar button{ min-height:22px !important; padding:0 8px; font-size:12px; }
  body.calm .toolbar{ padding:4px 10px; } body.calm .toolbar #search{ min-height:36px; padding:4px 10px; }
  body.calm .pane .scroll{ min-height:40vh; }
  body.face-driver .dv-stop .a, body.face-driver .dv-later, body.face-driver .dv-off, body.face-driver .dv-sync:empty{ display:none !important; }
  body.face-driver .dv-stop{ padding:6px 12px; } body.face-driver .dv-big{ min-height:56px; }
  body.calm #bottombar button{ min-height:44px; }
}
/* review 15 css 1: the 0 px map row is a phone-layout rule (main is one column there); a short desk window (1200×480) keeps its two columns and its sidebar.
   owner only (review 1: the driver's aside was landing in the 0 px row) */
@media (max-height:500px) and (max-width:980px){
  body.face-owner:not(.mapmode) main{ grid-template-rows:0 1fr !important; } body.face-owner:not(.mapmode) .mapwrap, body.face-owner:not(.mapmode) #map{ visibility:hidden; }
}
/* ruling 5 desk: the sentence is the only line; the clock never wraps under it */
@media (min-width:641px){ body.face-owner header{ flex-wrap:nowrap; align-items:center; } body.face-owner header .dayline{ display:none; } body.face-owner header .oneline{ flex:1 1 0; min-width:0; grid-column:auto; } body.face-owner header .clock{ flex:0 0 auto; } }
/* ruling 7: the strip carries its own state stamp — the bay headers are noise on a phone; the sentence is one tight row */
@media (max-width:640px), (max-height:500px){
  body.face-owner #bays .bay h4, body.face-owner #bays .bay-h{ display:none !important; }
  body.face-owner .oneline-today{ padding:8px 12px 4px; font-size:16px; line-height:1.3; }
  body.calm #bays h4, body.calm #bays h4 span, body.calm .stamp{ font-size:16px !important; }
  body.calm li.attn .attn-acts .btn, body.calm li.attn .btn{ min-height:44px !important; }
}
@media (max-height:500px){
  body.face-owner .oneline-today, body.face-owner #bays .bay h4{ display:none !important; }
  body.face-driver .dv-state, body.face-driver .dv-date{ display:none !important; } body.face-driver .dv-top{ padding:4px 12px; } body.face-driver .dv-stop{ padding:4px 12px; } body.face-driver .dv-stop .t{ font-size:18px; } body.face-driver .dv-row{ margin-top:6px; }
}
/* ruling 7: three attention rows, then "Show all N"; a compact strip keeps its stamp and hides the note lines until opened */
#attention li.more{ display:none; }
/* cycle 17 A: on the desk the list is first too — four rows, then "Show all N", so the trucks start on the first screen (Cloudscape: ≤ 7 items, the rest behind a link) */
@media (min-width:641px){ body.face-owner:not(.tv) #attention:not(.all) li.attn:nth-child(n+5){ display:none; } body.face-owner:not(.tv) #attention li.more{ display:flex; justify-content:center; padding:4px 0; } }
@media (max-width:640px), (max-height:500px){
  body.face-owner #attention:not(.all) li.attn:nth-child(n+4){ display:none; } body.face-owner #attention li.more{ display:flex; justify-content:center; padding:6px 0; } body.face-owner #attention li.more .btn{ min-height:44px; }
  body.face-owner #bays li.strip:not(.open) .notes > .txt, body.face-owner #bays li.strip:not(.open) .notes > .cal-add{ display:none; }
  body.face-owner #bays li.strip:not(.open) > .con, body.face-owner #bays li.strip:not(.open) > .notes{ padding-top:0 !important; padding-bottom:4px !important; }
  body.face-owner #bays li.strip .notes .stamp{ margin-top:0; }
  body.face-owner #timelineWrap{ display:none; }
}
@media (max-width:640px), (max-height:500px){ body.face-owner #bays li.strip:not(.open) > .con{ display:none; } body.face-owner #bays li.strip:not(.open) > .usd{ grid-column:1 / -1; text-align:left; padding-top:0 !important; } }
/* ruling 11/14 caller: labels at the 16 px floor; outcomes two per row, tight, Skip on its own row */
body.face-caller .nc-card .nc-head b:not(.nc-name), body.face-caller .nc-card .nc-head span, body.face-caller .nc-card .askfor, body.face-caller .nc-card .askfor b, body.face-caller .nc-card .calllog, body.face-caller .nc-card .nc-due, body.face-caller .nc-card small, body.face-caller .nc-card .meta{ font-size:16px !important; }
@media (max-width:640px){
  body.face-caller .nc-card .nc-btns button{ line-height:1.1; padding:6px 8px; min-height:44px !important; }
  body.face-caller .nc-card .nc-btns{ gap:6px; margin-top:8px; }
  body.face-caller .nc-card .nc-head{ padding-top:4px !important; padding-bottom:2px !important; }
  body.face-caller .nc-card .nc-btns .nc-skip{ grid-column:span 2; min-height:44px; margin-top:0; }
}
body.face-caller #nextCall .nc-head b, body.face-caller #nextCall .nc-head span, body.face-caller #nextCall .nc-card .meta span, body.face-caller #nextCall .nc-card .warn, body.face-caller #nextCall .nc-card .due{ font-size:16px !important; letter-spacing:0 !important; }
@media (max-width:640px){ body.face-caller .facebar .fb-sum{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; } }
body.face-caller #nextCall .whynow, body.face-caller #nextCall .whynow span{ font-size:16px !important; }
/* ruling 13: landscape — one-line strips and a one-line header so two trucks fit above the bar */
@media (max-height:500px){
  body.face-owner header .brand{ display:flex; align-items:center; gap:10px; } body.face-owner header .brand .sub{ margin:0; } body.face-owner header .mechip{ min-height:32px; padding:2px 10px; }
  body.face-owner #bays li.strip:not(.open){ grid-template-columns:auto auto minmax(0,1fr) auto; grid-template-areas:"cs win site notes"; align-items:center; padding:2px 0; }
  body.face-owner #bays li.strip:not(.open) > div{ padding:4px 8px; } body.face-owner #bays li.strip:not(.open) .cs b{ font-size:16px; } body.face-owner #bays li.strip:not(.open) .cs small, body.face-owner #bays li.strip:not(.open) .site small, body.face-owner #bays li.strip:not(.open) > .usd, body.face-owner #bays li.strip:not(.open) .win small, body.face-owner #bays li.strip:not(.open) .win .bar{ display:none; }
  body.face-owner #bays li.strip:not(.open) .site b{ font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } body.face-owner #bays li.strip:not(.open) .notes{ white-space:nowrap; }
}
/* ruling 5: the search box belongs to the lists it filters — not to Bookings, Pipeline, Setup, Help or the Week on a phone */
@media (max-width:640px), (max-height:500px){ body.face-owner[data-pane="book"] .toolbar, body.face-owner[data-pane="pipeline"] .toolbar, body.face-owner[data-pane="setup"] .toolbar, body.face-owner[data-pane="help"] .toolbar, body.face-owner[data-pane="week"] .toolbar{ display:none !important; } body.face-owner .toolbar{ padding:4px 10px; } }
/* ruling 5: the Week bar is one row on a phone — ‹ Week of › · This week · Lock, then the summary line */
@media (max-width:640px), (max-height:500px){ body.face-owner .wk-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; padding:6px 10px !important; } body.face-owner .wk-bar .wk-sum{ order:9; flex:1 1 100%; margin:0; } body.face-owner .wk-bar .wk-lock, body.face-owner .wk-bar .wk-now{ margin:0; } }
body.calm .wk-grid th.rest{ opacity:1; } body.calm .wk-grid th.rest b, body.calm .wk-grid th.rest small{ color:var(--muted) !important; }
body.calm:not(.day) .row .what .loc, body.calm:not(.day) .row .what .edit.loc{ color:#C7CEE6; border-color:#6B7596; }
/* ruling 12: trucks outside the focused zone are quieter, not unreadable — 2.15:1 at opacity .38 (audit 14, driver Trucks); .7 keeps navy on the strip above 4.5:1 */
body.calm .strip.offzone{ opacity:.85; } body.calm .strip.offzone .cs b, body.calm .strip.offzone .win .num{ color:#20285C !important; }
/* ruling 11: the week cell's small line ("2 h", "no $") was 9 px */
@media (max-width:640px), (max-height:500px){ body.calm .wk-b i{ font-size:12px !important; line-height:1.1; } body.calm .wk-b b{ font-size:16px !important; } body.calm .wk-grid tr:first-child th b{ font-size:14px !important; } body.calm .wk-grid tr:first-child th small{ font-size:12px !important; } }
/* review 15: the PITCH / CAMP note on the Next-call card at the 16 px floor */
body.face-caller .nc-card .pitch, body.face-caller .nc-card .pitch b{ font-size:16px !important; }
/* cycle 17 ruling I (F3; Perplexity, ChatGPT): on the desk the strip shows its name, its address and its notes — the name column fits its
   longest truck name and may take two lines, the address and each note line clamp at two lines instead of one-line ellipsis; 12 px row padding */
@media (min-width:641px){
  body.calm:not(.tv) .strip{ grid-template-columns:minmax(86px,max-content) minmax(80px,max-content) minmax(0,1.2fr) minmax(120px,.9fr); padding-top:12px; padding-bottom:12px; }
  body.calm:not(.tv) .cs b{ white-space:normal; overflow:visible; text-overflow:clip; line-height:1.05; max-width:120px; }
  body.calm:not(.tv) .site small{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  body.calm:not(.tv) .notes .txt{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  body.calm:not(.tv) .legend{ bottom:34px; } /* ruling J (F16/C15): clear of the Leaflet attribution line */
}
/* cycle 17 F22: the attention row's buttons use the body face like every other button */
body.calm li.attn .btn, body.calm li.attn .attn-acts .btn{ font-family:Inter, sans-serif; letter-spacing:0; text-transform:none; font-weight:700; }
.drive.held .dv-state{ display:none; } /* the band says it (B) */

/* ===================================================================== cycle 18 (v7.8)
   P3 — desk type scale and density (Carbon productive / Fluent 2: 14 body, 12 metadata, 12 floor; controls 32 compact / 40 comfortable).
   board.css's hard-coded 9–13 px sizes are tokens now (--d13 … --d9, each falling back to its old size); only the desk redefines them. */
@media (min-width:1025px){
  body.calm:not(.tv){ --d13:14px; --d12:12px; --d11:12px; --d10:12px; --d9:12px; --ctl-h:40px; --row-pad:10px; } /* Grok's CUT taken: no compact/comfortable switch — measured, compact bought one more strip (1 → 2); the strip layout below buys more */
  body.calm:not(.tv) .strip .acts .btn, body.calm:not(.tv) .status-btns button{ min-height:var(--ctl-h); }
  body.calm:not(.tv) .strip .acts .btn{ display:inline-flex; align-items:center; }
  /* the desk strip was 224 px: the notes sat in a 130 px column (three wrapped lines + the stamp under them). Now the notes run under the
     title across the wide columns as one flowing line with the stamp at its right end — name and window span the three text rows. */
  body.calm:not(.tv) #bays li.strip{ grid-template-areas:"cs win site usd" "cs win con con" "cs win notes notes" "acts acts acts acts" "chips chips chips chips"; padding-top:8px; padding-bottom:8px; }
  body.calm:not(.tv) #bays li.strip > .con{ display:flex; gap:10px; align-items:baseline; padding-bottom:2px; } body.calm:not(.tv) #bays li.strip > .con b{ display:inline; }
  body.calm:not(.tv) #bays li.strip > .notes{ display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px; align-items:center; padding:0 7px 6px !important; } /* the note lines on the left, the stamp beside them — it never takes a line of its own */
  body.calm:not(.tv) #bays li.strip > .notes > *{ grid-column:1; min-width:0; }
  body.calm:not(.tv) #bays li.strip > .notes .txt{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-line-clamp:unset; }
  body.calm:not(.tv) #bays li.strip > .notes .stamp{ position:static; margin:0; grid-column:2; grid-row:1 / span 6; align-self:center; }
  body.calm:not(.tv) .tabs button .badge{ font-size:11px; }
}

/* P2 — the call sheet in groups: a sticky header per group with its count; shut groups build no rows */
#leadList li.grp{ position:sticky; top:-12px; /* the scroller's own 12 px padding would leave row text showing above the header */ z-index:3; list-style:none; margin:0; padding:0; background:var(--board); border-bottom:1px solid var(--line); }
#leadList li.grp h4{ margin:0; font:inherit; }
body.calm #leadList li.grp button{ width:100%; display:flex; align-items:center; gap:10px; min-height:44px; padding:0 12px; border:0; border-radius:0; background:var(--panel); color:var(--ink); font:700 var(--fs-sm) Inter, sans-serif; text-align:left; }
#leadList li.grp .g-t{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#leadList li.grp .g-n{ font-weight:700; color:var(--ink); background:var(--line); border-radius:999px; padding:1px 9px; font-size:var(--fs-xs); }
#leadList li.grp .g-c{ color:var(--muted); width:1em; text-align:center; }
#leadList li.grp:not(.open) button{ color:var(--muted); font-weight:600; }
#leadList li.grp-more{ list-style:none; display:flex; justify-content:center; padding:8px 0 12px; border-bottom:1px solid var(--line); }
#leadList .score{ cursor:pointer; }
#leadList .why{ display:flex; flex-wrap:wrap; gap:4px 6px; align-items:center; margin:0 0 6px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:var(--panel); font-size:var(--fs-xs); color:var(--ink); }
#leadList .why b{ margin-right:4px; } #leadList .why span{ background:var(--board); border:1px solid var(--line); border-radius:999px; padding:1px 8px; white-space:nowrap; } #leadList .why span.neg{ color:#B3261E; } body:not(.day) #leadList .why span.neg{ color:#F87171; }
#leadList .why i{ flex-basis:100%; font-style:normal; color:var(--muted); }

/* P4 — a booking row: when · what · [Edit] [⋯]; map / calendar / delete live in the ⋯ menu */
#bookList li.row.compact{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; position:relative; }
#bookList li.row.compact .what{ min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:2px 8px; }
#bookList li.row.compact .what > b{ flex:1 1 100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#bookList li.row.compact .what > .meta{ flex:1 1 60%; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#bookList li.row.compact .what > .wx{ flex:0 1 auto; margin:0; }
#bookList li.row.compact .wx .risk.wait{ display:none; } /* "weather…" while the forecast loads is not news */
.row-acts{ display:flex; align-items:center; gap:6px; position:relative; }
body.calm .row-acts .ra-more{ min-width:44px; padding:0; font-size:20px; line-height:1; letter-spacing:1px; }
@media (pointer:coarse){ .row-acts{ gap:10px; } body.calm .row-acts .ra-more{ min-width:48px; min-height:48px; } } /* Grok MIS-TAP: more room between Edit and ⋯ under a thumb */
body.calm .row-acts .ra-edit{ padding:0 12px; font-size:var(--fs-sm); }
.ra-menu{ position:fixed; left:0; top:0; z-index:60; max-height:calc(100vh - 16px); overflow:auto; min-width:220px; display:flex; flex-direction:column; padding:6px; background:var(--panel); border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.28); }
.ra-menu[hidden]{ display:none; }
body.calm .ra-menu .ra-item{ display:flex; align-items:center; justify-content:flex-start; min-height:44px; min-width:0; width:100%; padding:0 12px; border:0; border-radius:8px; background:none; color:var(--ink); font:600 var(--fs-sm) Inter, sans-serif; letter-spacing:0; text-transform:none; text-decoration:none; text-align:left; box-sizing:border-box; }
body.calm .ra-menu .ra-item:hover, body.calm .ra-menu .ra-item:focus-visible{ background:var(--board); }
body.calm .ra-menu .ra-item{ white-space:nowrap; }
body.calm .status-btns button.book, body.calm .btn.book{ font-family:Inter, sans-serif !important; letter-spacing:0 !important; text-transform:none !important; font-weight:700; } /* F22 on every width (cycle 17 had it inside the phone block) */
@media (max-width:640px){ #bookList li.row.compact .what > b{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; } }
body.calm .ra-menu .ra-item.danger{ color:#B3261E; } body.calm:not(.day) .ra-menu .ra-item.danger{ color:#F87171; }

/* P5 — More: grouped sheet (two columns, headings span), grouped tiles on the desk, labelled theme / density choices */
.sheet-body .sh-h{ grid-column:1 / -1; font:700 12px Inter, sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding:6px 2px 0; }
@media (max-width:640px), (max-height:500px) and (max-width:900px){ #sheet .sheet-body{ grid-template-columns:1fr 1fr; } #sheet .sheet-body #sheetClose{ grid-column:1 / -1; } } /* the More sheet only — the pre-trip sheet shares .sheet-body */
@media (min-width:641px){ .sheet-body .sh-h{ display:none; } }
.morelinks .ml-h{ grid-column:1 / -1; font:700 12px Inter, sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); padding:6px 2px 0; }
.morelinks .ml-seg{ grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.morelinks .ml-seg .ml-cap{ min-width:84px; font-size:var(--fs-sm); color:var(--muted); }
body.calm .morelinks .ml-seg button{ min-height:40px; padding:0 14px; border-radius:999px; font-size:var(--fs-sm); }
body.calm .morelinks .ml-seg button.on{ background:var(--ink); color:var(--board); border-color:var(--ink); }
@media (max-width:640px){ .morelinks .ml-nav{ display:none !important; } } /* the sheet already lists them */

/* P1 — the install bar (touch devices in a browser tab, shared board only) */
.installbar{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding:10px 14px; background:#E8F1FF; color:#14254A; border-bottom:1px solid #B9CDF2; }
.installbar[hidden]{ display:none; }
.installbar .ib-t{ flex:1 1 220px; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:var(--fs-sm); } .installbar .ib-t b{ font-size:var(--fs); }
.installbar .ib-a{ display:flex; gap:8px; } body.calm .installbar .ib-a .btn{ min-height:44px; }
body.calm .installbar .ib-a .btn.ghost{ background:transparent; border-color:#8FA8D8; color:#14254A; }
.installbar .ib-steps{ flex-basis:100%; margin:4px 0 2px; padding-left:22px; font-size:var(--fs-sm); line-height:1.45; }
body.tv .installbar{ display:none !important; }
@media print{ .installbar, .row-acts{ display:none !important; } }
body.calm .row.hist{ opacity:1; } body.calm .row.hist .when small, body.calm .row.hist .when{ color:var(--muted); } /* history reads as history by its heading, not by fading its text below 4.5:1 */

/* ===================================================================== cycle 19 (v7.9)
   P4 first (Grok: "a focused item hidden under a sticky bar or a sub-24 px target blocks every later action"):
   WCAG 2.2 — 2.4.11 focus not obscured, 2.5.8 target size 24 px. Then the first-day list, the desk keys, unsaved rows. */
#pane-leads .scroll{ scroll-padding-top:58px; } /* the sticky group header is 44 px: a row focused by keyboard lands below it, not under it */
.pane .scroll{ scroll-padding-bottom:12px; }
#leadList li.row, #bookList li.row, #schoolList li.row{ scroll-margin-top:4px; }
/* 24 px floor for the small controls the audit found (the checkbox itself stays native; its label is the target) */
#legend .lg-title{ min-height:24px; display:flex; align-items:center; }
#legend .lg-only, body.calm #legend .lg-only{ min-height:24px; min-width:24px; }
#legend input[type=range]{ min-height:24px; }
:where(label.tog:not([hidden])){ min-height:24px; display:inline-flex; align-items:center; gap:6px; } /* :where() = no weight: the phone's 44 px toggle rule still wins (review 19) */
details.script > summary{ min-height:24px; display:flex; align-items:center; }
#leadNote .ln-more:not([hidden]){ min-height:24px; display:inline-flex; align-items:center; }
#leadList .score:not([hidden]), #schoolList .score:not([hidden]){ min-width:24px; min-height:24px; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; }
:where(.lnk:not([hidden])){ min-height:24px; display:inline-flex; align-items:center; }
:where(.contact > a){ min-height:24px; align-content:center; } /* no display here: the phone hides these behind "details" and CALL keeps its 44 px (review 19) */

/* P1 — the first-day list: one line until opened, so it never pushes the day's work down */
.day1{ margin:0 0 10px; border:1px solid var(--line); border-radius:12px; background:var(--panel); flex:0 0 auto; }
.day1 > summary{ list-style:none; display:flex; align-items:center; gap:8px; min-height:44px; padding:4px 12px; cursor:pointer; font-size:var(--fs-sm); }
.day1 > summary::-webkit-details-marker{ display:none; }
.day1 > summary b{ font:700 var(--fs-sm) Inter, sans-serif; white-space:nowrap; }
.day1 .d1-n{ background:var(--line); color:var(--ink); border-radius:999px; padding:1px 9px; font-size:var(--fs-xs); font-weight:700; white-space:nowrap; }
.day1 .d1-next{ flex:1; min-width:0; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.day1 .d1-c{ color:var(--muted); } .day1[open] .d1-c{ transform:rotate(180deg); }
.day1.all{ border-color:#2E9B63; } .day1.all .d1-n{ background:#2E9B63; color:#fff; }
.day1 ol{ list-style:none; margin:0; padding:2px 12px 6px; }
.day1 ol li{ display:flex; align-items:center; gap:10px; min-height:36px; font-size:var(--fs-sm); color:var(--ink); border-top:1px solid var(--line); }
.day1 ol li.done{ color:var(--muted); }
.day1 .d1-ck{ flex:0 0 22px; width:22px; height:22px; border-radius:50%; border:2px solid var(--muted); display:inline-flex; align-items:center; justify-content:center; font-size:14px; font-weight:800; line-height:1; box-sizing:border-box; }
.day1 li.done .d1-ck{ border-color:#2E9B63; background:#2E9B63; color:#fff; }
.day1 .d1-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 10px; padding:4px 12px 8px; color:var(--muted); font-size:var(--fs-xs); } .day1 .d1-foot > span{ flex:1 1 200px; min-width:0; }
body.calm .day1 .d1-foot .lnk{ min-height:44px; padding:0 4px; border:0; background:none; color:var(--muted); text-decoration:underline; font:600 var(--fs-xs) Inter, sans-serif; white-space:nowrap; }
body.tv .day1{ display:none !important; }
@media (max-width:1024px){ #pane-today .scroll > .day1{ order:1; } } /* phone Today orders its parts with flex order: the list follows the trucks (order 1), it does not jump above them */
@media (max-height:500px){ .day1{ display:none; } } /* a phone on its side has room for the work only (cycle 15 B10) */
@media (max-width:1024px){ .day1 > summary, .day1 > summary b, .day1 .d1-n, .day1 ol li, .day1 .d1-ck, .day1 .d1-foot, body.calm .day1 .d1-foot .lnk{ font-size:16px; } .day1{ margin-top:10px; } } /* phone text floor 16 px (cycle 15 B8) */
@media (min-width:1025px){ body.calm:not(.tv) .day1 > summary{ min-height:40px; } body.calm .day1 .d1-foot .lnk{ min-height:32px; } }

/* P2 — the desk keys: the row the keys act on, the way in, the list of keys */
#leadList li.row.kf{ outline:2px solid var(--accent, #F2A93B); outline-offset:-2px; border-radius:8px; }
#leadList li.row:focus{ outline:2px solid var(--accent, #F2A93B); outline-offset:-2px; }
body.calm .keys-link{ display:none; }
@media (min-width:1025px) and (pointer:fine){ body.calm:not(.tv) .keys-link{ display:inline-flex; min-height:32px; padding:0 8px; border:0; background:none; color:var(--muted); text-decoration:underline; font:600 var(--fs-xs) Inter, sans-serif; } }
.ml-seg.ml-desk{ display:none; } @media (min-width:1025px) and (pointer:fine){ .ml-seg.ml-desk{ display:flex; } }
body.calm .ml-keys-how{ display:none; border:0; background:none; color:var(--muted); text-decoration:underline; padding:0 8px; min-height:32px; font:600 var(--fs-xs) Inter, sans-serif; } @media (min-width:1025px) and (pointer:fine){ body.calm .ml-keys-how{ display:inline-flex; align-items:center; } }
dialog.keys-help{ width:min(560px, calc(100vw - 32px)); max-height:calc(100vh - 48px); overflow:auto; border:1px solid var(--line); border-radius:14px; background:var(--panel); color:var(--ink); padding:18px 20px; box-shadow:0 20px 60px rgba(0,0,0,.45); }
dialog.keys-help::backdrop{ background:rgba(0,0,0,.5); }
.keys-help h3{ margin:0 0 4px; font:700 18px Inter, sans-serif; } .keys-help .kh-sub{ margin:0 0 10px; color:var(--muted); font-size:13px; line-height:1.4; }
.keys-help table{ width:100%; border-collapse:collapse; } .keys-help th, .keys-help td{ text-align:left; padding:7px 6px; border-top:1px solid var(--line); font-size:14px; vertical-align:top; font-weight:500; }
.keys-help th{ white-space:nowrap; width:110px; } .keys-help kbd{ font:700 13px ui-monospace, Menlo, Consolas, monospace; background:var(--board); border:1px solid var(--line); border-radius:6px; padding:2px 7px; color:var(--ink); }
.keys-help .kh-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; } .keys-help .kh-foot .tog{ min-height:40px; font-size:14px; }

/* P3 — a change the database refused stays on its row */
#bookList li.row.unsaved{ border-left:4px solid #B3261E; padding-left:8px; }
#bookList li.row.unsaved > .when{ color:#B3261E; font-weight:700; } body.calm:not(.day) #bookList li.row.unsaved > .when{ color:#F87171; }
.unsaved-line{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:6px; color:#B3261E; font-size:var(--fs-xs); font-weight:600; flex-basis:100%; } body.calm:not(.day) .unsaved-line{ color:#F87171; }
.unsaved-acts{ display:inline-flex; gap:8px; margin-top:6px; } .unsaved-line .unsaved-acts{ margin-top:0; }
#bookList li.row .pend-mark{ margin-left:6px; }

/* ===================================================================== cycle 20 (v7.10)
   The icon set (js/icons.js): every emoji in the page's text is drawn as a vector in the text colour. */
.ico{ width:1.15em; height:1.15em; vertical-align:-0.2em; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; display:inline-block; overflow:visible; }
.lg-emo .ico{ width:16px; height:16px; }
body.tv .ico{ stroke-width:1.9; }

/* ===================================================================== cycle 21 (v7.11)
   The printed route sheet: on screen it does not exist; on paper it is the only thing. */
#printSheet{ display:none; }
@media print{
  body.print-route > *:not(#printSheet){ display:none !important; }
  body.print-route #printSheet{ display:block !important; color:#000; background:#fff; font:12pt/1.35 Arial, Helvetica, sans-serif; }
  #printSheet h1{ font:700 18pt Arial, sans-serif; margin:0 0 2pt; } #printSheet .ps-sub{ margin:0 0 10pt; font-size:10pt; color:#333; }
  #printSheet h2{ font:700 14pt Arial, sans-serif; margin:12pt 0 4pt; break-after:avoid; }
  #printSheet table{ width:100%; border-collapse:collapse; } #printSheet th, #printSheet td{ border:1px solid #000; padding:5pt 6pt; text-align:left; vertical-align:top; font-size:11pt; }
  #printSheet th{ font-size:9pt; text-transform:uppercase; letter-spacing:.04em; background:#eee; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  #printSheet tr{ break-inside:avoid; } #printSheet .ps-ck{ width:34pt; text-align:center; } #printSheet .ps-box{ display:inline-block; width:16pt; height:16pt; border:1.5pt solid #000; }
  #printSheet .ps-t{ white-space:nowrap; } #printSheet .ps-n{ width:60pt; }
  @page{ margin:12mm; }
}
