/* THE WORKSHEET LOOK, AT EVERY WIDTH (spec 008 R1). Presentation only: no element is added, moved or renamed by this file, and nothing in it changes a figure.
   Direction: Ken Ha's Kelowna site concept (deep green-black ink, forest, lime on forest only, sage tints, a warm off-white canvas, a tight grotesk for
   figures, small letter-spaced eyebrows), at the density of a working tool. The palette is the one token set in looks.css (Ken's light look, the only look).
   Colour, type face and weight, case, tracking, rules, radii and focus rings apply on the phone, compact and desktop shells alike, under @media screen.
   Size, spacing and placement stay with each shell: the groups under @media screen and (min-width:1024px) are the desktop layout, and the phone keeps its own
   44px targets (mobile.css). The selector prefix html:root:root body[data-shell] has the same specificity the former look-and-theme attribute prefix had,
   so the cascade against workspace.css and mobile.css is unchanged; it reads no look or theme attribute.
   No decorative left rails (Jason's rule): hierarchy comes from type, fill and space; the only rules drawn are complete borders, focus rings, table
   separators and the underline under a selected tab or city. */
:root{--ws-forest:#1A3D35;--ws-forest-deep:#14302A;--ws-lime:#C8EC84;--ws-sage:#E6EDDF;--ws-sage-ink:#D4E2D0;--ws-on-forest:#F6F6F0;--ws-on-forest-muted:#C9D8CF;--ws-neg-on-forest:#FFB4AB}
/* Spec 008 phase 1: semantic type and spacing, adopted only by the surfaces below. */
:root{
 --worksheet-number-weight:500;--worksheet-summary-size:13.5px;--worksheet-summary-phone-size:16px;--worksheet-summary-row-space:7px;--worksheet-summary-padding:14px 16px 10px;--worksheet-summary-phone-padding:12px;
 --type-headline:28px;--type-section:15px;--type-body:13px;--type-small:12px;--type-label:10.5px;
 --space-4:4px;--space-8:8px;--space-12:12px;--space-16:16px;--space-24:24px;--space-32:32px;--space-48:48px;
}
body[data-shell=mobile],body[data-shell=desktop-compact]{--type-headline:24px}
@media screen and (min-width:1024px){
 /* ---- Type: Inter throughout, tabular figures, tight display tracking ---- */
}
@media screen{
 html:root:root body[data-shell]{font-family:var(--font-body);color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased}
 html:root:root body[data-shell] :is(.strip-v,
 .sheet-key-figure,
 #v-pf td.n,
 .ws-summary td.n,
 :is(input[type=number],input[data-formatted-number])){font-variant-numeric:tabular-nums}

 /* ---- The top bar: one primary action, quiet groups ---- */
 html:root:root body[data-shell] .workspace-topbar{background:var(--s1);border-bottom:1px solid var(--hair)}
 html:root:root body[data-shell] :is(.topbar-brand .brand,header .brand){font-weight:700;font-family:var(--font-display);letter-spacing:-.02em;color:var(--ink)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .topbar-brand .brand{display:flex;align-items:center;gap:9px;font-size:16px;line-height:20px}
 /* Ken's mark: three slanted bars in the brand teal. Decorative (empty alternative text), drawn as an inline SVG. */
 html:root:root body[data-shell] .topbar-brand .brand::before{content:"" / "";flex:none;width:22px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath fill='%231A8574' d='M4 0h4L5 18H1zM10 4h4l-2.3 14h-4zM16 8h4l-1.7 10h-4z'/%3E%3C/svg%3E") no-repeat center/contain}
}
@media screen{
 html:root:root body[data-shell] .topbar-search #addr{background:var(--s1);border:1px solid var(--control-line);border-right:0;border-radius:0;color:var(--ink)}
 html:root:root body[data-shell] .topbar-search #addr:hover{border-color:var(--control-line)}
 html:root:root body[data-shell] .topbar-search #addr:focus{outline:none;border-color:var(--ws-forest);box-shadow:0 0 0 3px var(--accent-ring)}
 html:root:root body[data-shell] .topbar-search #go{background:var(--ws-forest);color:#FFFFFF;border:1px solid var(--ws-forest);border-radius:0;font-weight:600;letter-spacing:.005em}
 html:root:root body[data-shell] .topbar-search #go:hover{background:var(--ws-forest-deep)}
 /* Undo, Redo and Reset all: quiet text controls. Save: the one outlined secondary. */
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .topbar-edit-group{gap:2px}
}
@media screen{
 html:root:root body[data-shell] .topbar-edit-button{background:transparent;border:1px solid transparent;border-radius:6px;color:var(--ink-muted);font-weight:500}
 html:root:root body[data-shell] .topbar-edit-button:hover:not(:disabled){background:var(--s2);border-color:transparent;color:var(--ink)}
 html:root:root body[data-shell] .topbar-edit-button:disabled{opacity:.4}
 html:root:root body[data-shell] #sheet-save{border-color:var(--control-line);color:var(--ink)}
 html:root:root body[data-shell] #sheet-save:hover:not(:disabled){border-color:var(--ws-forest);background:var(--s2)}
 html:root:root body[data-shell] .topbar-report-button,
 html:root:root body[data-shell] .topbar-more-button{background:transparent;border:1px solid transparent;color:var(--ink);font-weight:500}
 html:root:root body[data-shell] .topbar-report-button:hover,
 html:root:root body[data-shell] .topbar-more-button:hover{background:var(--s2)}
 html:root:root body[data-shell] .topbar-more-button[aria-expanded=true]{background:var(--s2);border-color:var(--hair-strong)}
 html:root:root body[data-shell] .topbar-report-button[aria-pressed=true]{background:var(--ws-sage);color:var(--ws-forest);font-weight:600}
 /* Units and Explain: one sage segmented control and a quiet toggle. */
 html:root:root body[data-shell] .topbar-units .unit-control{background:var(--s2);border-radius:0}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .topbar-units .unit-control{gap:0;padding:2px}
}
@media screen{
 html:root:root body[data-shell] .topbar-units .unit-control-label{color:var(--ink-subtle)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .topbar-units .unit-control-label{margin:0 8px 0 6px;font-size:12px}
}
@media screen{
 html:root:root body[data-shell] .topbar-units .unit-control-choice{background:transparent;border:0;border-radius:0;color:var(--ink-muted);font-weight:500}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .topbar-units .unit-control-choice{min-height:32px;margin:0}
}
@media screen{
 html:root:root body[data-shell] .topbar-units .unit-control-choice:hover{background:var(--s1);color:var(--ink)}
 html:root:root body[data-shell] .topbar-units .unit-control-choice[aria-pressed=true]{background:var(--ws-forest);color:#FFFFFF;font-weight:600;box-shadow:none}
 html:root:root body[data-shell] .topbar-units .explain-control-toggle{background:transparent;border:1px solid transparent;color:var(--ink);font-weight:500}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .topbar-units .explain-control-toggle{min-height:36px}
}
@media screen{
 html:root:root body[data-shell] .topbar-units .explain-control-toggle:hover{background:var(--s2)}
 html:root:root body[data-shell] .topbar-units .explain-control-toggle[aria-pressed=true]{background:var(--ws-sage);color:var(--ws-forest);border-color:transparent;font-weight:600}
 html:root:root body[data-shell] .topbar-panel{border-color:var(--hair);border-radius:2px;box-shadow:0 12px 32px #18201E29}

 /* ---- The inspector: warm canvas, white working surfaces ---- */
 html:root:root body[data-shell] .wrap{background:var(--canvas);border-right:1px solid var(--hair)}

 /* ---- City switcher: plain links, the current city underlined ---- */
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .city-nav{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 18px;margin:14px 0 12px;padding:0}
}
@media screen{
 html:root:root body[data-shell] .city-nav a{border:0;border-radius:0;color:var(--ink-subtle);text-decoration:none;border-bottom:2px solid transparent}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .city-nav a{padding:4px 0 3px;font-size:13px;line-height:18px}
}
@media screen{
 html:root:root body[data-shell] .city-nav a:hover{color:var(--ink);border-bottom-color:var(--hair-strong)}
 html:root:root body[data-shell] .city-nav a[aria-current="page"]{color:var(--ws-forest);font-weight:600;border-bottom-color:var(--ws-forest)}

 /* ---- The answer: a forest card, pinned ---- */
 /* Ken's dark band: full bleed under the top bar, square, the figure in the display face, the eyebrow in lime. */
 html:root:root body[data-shell] .workspace-strip:not([hidden]){background:var(--ws-forest);border-bottom:0;color:var(--ws-on-forest)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip:not([hidden]){margin:0 calc(-1 * var(--space-24));padding:0 var(--space-24)}
}
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-figure{color:var(--ws-on-forest)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip .strip-figure{padding-top:10px}
}
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-k{font-weight:800;letter-spacing:.14em;color:var(--ws-lime)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip .strip-k{font-size:var(--type-label);line-height:13px}
}
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-v{font-family:var(--font-display);font-weight:700;letter-spacing:-.035em;color:var(--ws-on-forest)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip .strip-v{font-size:var(--type-headline);line-height:30px}
}
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-v.neg{color:var(--ws-neg-on-forest)}
 html:root:root body[data-shell] .workspace-strip .strip-change{color:var(--ws-on-forest)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip .strip-change{margin-top:14px}
}
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-line{color:var(--ws-on-forest-muted)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip .strip-headroom{padding-bottom:10px}
}
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-cached{color:var(--ws-on-forest-muted);background:transparent;border-color:#C9D8CF80}
 html:root:root body[data-shell] .workspace-strip .strip-checks-chip{color:var(--ws-forest);background:var(--ws-lime);border-color:var(--ws-lime);font-weight:600}
 html:root:root body[data-shell] .workspace-strip .strip-checks-chip[aria-expanded=true]{background:var(--s1)}
 html:root:root body[data-shell] .workspace-strip .strip-figure:focus-visible,
 html:root:root body[data-shell] .workspace-strip .strip-checks-chip:focus-visible{outline:2px solid var(--ws-lime);outline-offset:2px}
 html:root:root body[data-shell] .workspace-strip .strip-checks-panel{border-radius:0;border:1px solid var(--hair-strong)}
 /* "Change assumptions" opens the assumptions drawer, a phone affordance: at the desktop shell the inputs are already on screen beside it. The row stays (it also carries the checks chip). */
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #assume{display:none}

 /* ---- Tabs: underline tabs; Levers and Numbers carry the weight ---- */
}
@media screen{
 html:root:root body[data-shell] .workspace-resource{background:var(--canvas)}
 html:root:root body[data-shell] .workspace-resource .workspace-tabs{background:var(--canvas);border-bottom:1px solid var(--hair-strong)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-resource .workspace-tabs{gap:2px;margin:0;padding-top:4px}
}
@media screen{
 html:root:root body[data-shell] .workspace-resource .workspace-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--ink-subtle);font-weight:500}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-resource .workspace-tabs button{flex:0 1 auto;min-height:34px;padding:2px 10px 0;font-size:13px;margin-bottom:-1px}
}
@media screen{
 html:root:root body[data-shell] .workspace-resource .workspace-tabs button:hover{color:var(--ink);border-bottom-color:var(--hair-strong)}
 html:root:root body[data-shell] .workspace-resource .workspace-tabs [aria-selected=true]{background:transparent;color:var(--ws-forest);border-bottom-color:var(--ws-forest);font-weight:700}

 /* ---- Section headings: small letter-spaced eyebrows ---- */
 html:root:root body[data-shell] .sheet-heading{color:#127064!important}
 html:root:root body[data-shell] .sheet-heading{font-weight:800;font-family:var(--font-body);letter-spacing:.14em;color:var(--ink-subtle);border-bottom:1px solid var(--hair-strong)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .sheet-heading{margin-top:18px;padding:0 0 6px;font-size:10.5px;line-height:14px}
}
@media screen{
 html:root:root body[data-shell] .workspace-region .panel>h3{font-weight:600;font-family:var(--font-display);letter-spacing:-.015em;color:var(--ink)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-region .panel>h3{font-size:18px;line-height:24px}

 /* ---- Input rows: a calm grid, white value boxes, quiet units, thin sliders ---- */
 /* The row pitch is the sheet's own (32 px, 3 px padding): the same rows sit at the same heights as before, so a lever is where the reader left it. */
}
@media screen{
 html:root:root body[data-shell] .sheet-row{border-bottom:1px solid var(--hair)}
 /* 13 px and the grid's own 4 px gap: at the narrowest inspector (420 px) every row name still fits on one line. */
 html:root:root body[data-shell] .sheet-row>.row-name{font-weight:500;color:var(--ink)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .sheet-row>.row-name{font-size:13px}
}
@media screen{
 html:root:root body[data-shell] .sheet-row :is(input[type=number],input[data-formatted-number],select){font-weight:500;color:var(--ink);background:var(--s1);border:1px solid var(--control-line);border-radius:2px}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .sheet-row :is(input[type=number],input[data-formatted-number],select){padding:2px 8px;font-size:13px}
}
@media screen{
 html:root:root body[data-shell] .sheet-row :is(input[type=number],input[data-formatted-number],select):hover{border-color:var(--control-line)}
 html:root:root body[data-shell] .sheet-row :is(input[type=number],input[data-formatted-number],select):focus{border-color:var(--ws-forest);box-shadow:0 0 0 3px var(--accent-ring)}
 html:root:root body[data-shell] .sheet-row :is(input[type=number],input[data-formatted-number])::placeholder{color:var(--ink-subtle);font-weight:400}
 html:root:root body[data-shell] .sheet-row>.row-unit{color:var(--ink-subtle)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .sheet-row>.row-unit{font-size:12px}
 /* :where, not :is: an id inside :is lifted this rule over the refusal style below (a refused value's note must keep its own size and ink). */
}
@media screen{
 html:root:root body[data-shell] .sheet-row :where(.why,.limit,.charged-rate,.line-basis,.line-measured,.tier-note,#target-share-basis){color:var(--ink-subtle)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .sheet-row :where(.why,.limit,.charged-rate,.line-basis,.line-measured,.tier-note,#target-share-basis){font-size:12px;line-height:17px}
 html:root:root body[data-shell] .sheet-row .charged-rate{margin-top:2px}
}
@media screen{
 html:root:root body[data-shell] .sheet-row .row-note-toggle{color:var(--ws-forest)}
 /* Native slider geometry kept (the thumb-press tests measure the native thumb); only its colour follows the palette. */
 html:root:root body[data-shell] input[type=range][data-scenario-range]{accent-color:var(--ws-forest)}
 html:root:root body[data-shell] input[type=range][data-scenario-range]:focus-visible{outline:2px solid var(--focus-ink);outline-offset:-2px}
 html:root:root body[data-shell] .sheet-row #storeys-mode{background:var(--s1);border:1px solid var(--hair-strong);border-radius:6px}
 html:root:root body[data-shell] .sheet-key-fact{color:var(--ink-muted)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .sheet-key-fact{font-size:12.5px}
}
@media screen{
 html:root:root body[data-shell] .sheet-key-result{border-bottom-color:var(--hair)}

 /* ---- Source: a quiet text link on every row, always visible, never a pill ---- */
 html:root:root body[data-shell] .sheet-row .provenance-tap,
 html:root:root body[data-shell] .workspace-region .provenance-tap{background:transparent;border:0;border-radius:2px;color:#0B6E64;font-weight:400;text-decoration:none}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .sheet-row .provenance-tap,
 html:root:root body[data-shell] .workspace-region .provenance-tap{min-height:28px;padding:0 4px;font-size:12px;line-height:28px}
}
@media screen{
 html:root:root body[data-shell] .provenance-tap:hover{color:var(--ws-forest);text-decoration:underline;text-underline-offset:2px;background:var(--s2)}
 html:root:root body[data-shell] .provenance-tap:focus-visible{color:var(--ws-forest);text-decoration:underline;outline:2px solid var(--focus-ink);outline-offset:1px}
 html:root:root body[data-shell] #v-pf .provenance-tap{color:#0B6E64;text-decoration:none;font-weight:400}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf .provenance-tap{line-height:16px;min-height:0}
}
@media screen{
 html:root:root body[data-shell] #v-pf .provenance-tap:hover{color:var(--ws-forest);text-decoration:underline}

 /* ---- Drawers and panels: white working surfaces on the canvas ---- */
 html:root:root body[data-shell] .drawer{border-color:var(--hair);border-radius:0;background:var(--s1)}
 html:root:root body[data-shell] .drawer.section.invite{border-color:var(--hair)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .drawer.section>summary{padding:12px 16px}
}
@media screen{
 html:root:root body[data-shell] .drawer.section .d-t{font-weight:600;letter-spacing:-.005em}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .drawer.section .d-t{font-size:15px}
}
@media screen{
 html:root:root body[data-shell] .drawer>summary:hover{background:var(--s2);box-shadow:none}
 html:root:root body[data-shell] #d-inputs{background:transparent;border:0}

 /* ---- The pro forma: a statement, groups as eyebrows, footing rules ---- */
 html:root:root body[data-shell] #d-waterfall{border-color:var(--hair)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf table{border-collapse:collapse}
}
@media screen{
 html:root:root body[data-shell] #v-pf td{border-bottom:1px solid var(--hair)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf td{padding-top:7px;padding-bottom:7px;font-size:13.5px}
}
@media screen{
 html:root:root body[data-shell] #v-pf td.n{font-weight:500}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf td.n{text-align:right}
}
@media screen{
 html:root:root body[data-shell] #v-pf .why{color:var(--ink-subtle)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf .why{font-size:12px;line-height:17px}
}
@media screen{
 html:root:root body[data-shell] #v-pf tr.cost-group>th{font-weight:600;font-family:var(--font-body);letter-spacing:.1em;text-transform:uppercase;color:var(--ws-forest);border-bottom:1px solid var(--hair-strong)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf tr.cost-group>th{padding:22px 0 6px;font-size:11px;line-height:14px}
}
@media screen{
 html:root:root body[data-shell] #v-pf tr.subtotal>td{border-top:0;border-bottom:1px solid var(--hair-strong);background:var(--s2);font-weight:600}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf tr.subtotal>td{padding-top:8px;padding-bottom:10px}
 html:root:root body[data-shell] #v-pf tr.subtotal>td:first-child{padding-left:8px}
 html:root:root body[data-shell] #v-pf tr.subtotal>td.n{padding-right:8px}
}
@media screen{
 html:root:root body[data-shell] #v-pf tr.cost-total>td{border-top:2px solid var(--ws-forest);border-bottom:1px solid var(--hair-strong);font-weight:700}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf tr.cost-total>td{padding-top:12px;padding-bottom:12px;font-size:15px}
}
@media screen{
 html:root:root body[data-shell] #v-pf tr.cost-total.cost-net>td{border-top:0;font-weight:600}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf tr.cost-total.cost-net>td{font-size:13.5px}
}
@media screen{
 html:root:root body[data-shell] #v-pf tr.total>td{border-top:2px solid var(--ws-forest);border-bottom:0;font-weight:700;letter-spacing:-.01em;color:var(--ws-forest)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf tr.total>td{padding-top:12px;padding-bottom:12px;font-size:18px;line-height:24px}
}
@media screen{
 html:root:root body[data-shell] #v-pf tr.per-lot>td{color:var(--ink-muted)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf tr.per-lot>td{font-size:12.5px}
}
@media screen{
 html:root:root body[data-shell] #v-pf tr.memo>td{color:var(--ink-subtle)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-pf tr.memo>td{font-size:12.5px}

 /* ---- City row: one line; scrolls sideways if the window is too narrow for every city ---- */
 /* Visual review of 469398b7 (HIGH 1): every city shows; the row wraps to a second line rather than clipping. */
 html:root:root body[data-shell] .city-nav{flex-wrap:wrap;overflow:visible;white-space:normal;margin:12px 0 10px;padding:0;gap:2px 16px}
 html:root:root body[data-shell] .city-nav a{flex:none;font-size:12.5px}

 /* ---- The answer band: room to breathe ---- */
 html:root:root body[data-shell] .workspace-strip .strip-figure{padding-top:8px}
 html:root:root body[data-shell] .workspace-strip .strip-headroom{padding-bottom:14px}

 /* ---- Secondary actions in the sheet: one quiet outlined style ---- */
}
@media screen{
 html:root:root body[data-shell] #construction-controls>button,
 html:root:root body[data-shell] .sheet-row button:not(.provenance-tap):not(.row-note-toggle):not(.explainer-reveal):not(.scenario-lever-action){font-weight:inherit;font-family:inherit;font-weight:500;color:var(--ink);background:var(--s1);border:1px solid var(--hair-strong);border-radius:4px}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #construction-controls>button,
 html:root:root body[data-shell] .sheet-row button:not(.provenance-tap):not(.row-note-toggle):not(.explainer-reveal):not(.scenario-lever-action){min-height:30px;padding:0 12px;font-size:inherit;line-height:inherit;font-size:12.5px;cursor:pointer}
}
@media screen{
 html:root:root body[data-shell] #construction-controls>button:hover,
 html:root:root body[data-shell] .sheet-row button:not(.provenance-tap):not(.row-note-toggle):not(.explainer-reveal):not(.scenario-lever-action):hover{border-color:var(--ws-forest);color:var(--ws-forest)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #construction-controls{margin:8px 0}

 /* ---- The verdict card: square, the figure in the display face, status as tags ---- */
}
@media screen{
 html:root:root body[data-shell] .workspace-verdict-card{border:1px solid var(--hair);border-radius:0;background:var(--s1)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-verdict-card{padding:20px}
}
@media screen{
 html:root:root body[data-shell] .workspace-verdict-card .ceiling>.k{letter-spacing:.1em;color:#127064}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-verdict-card .ceiling>.k{font-size:11px}
}
@media screen{
 html:root:root body[data-shell] .workspace-verdict-card .ceiling>.v{font-family:var(--font-display);font-weight:700;letter-spacing:-.035em;color:var(--ink)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-verdict-card .ceiling>.v{font-size:var(--type-headline);line-height:30px}
}
@media screen{
 html:root:root body[data-shell] .verdict-range{border-bottom:2px solid var(--ws-forest)}
 html:root:root body[data-shell] .verdict-chips button{background:var(--s2);border:1px solid transparent;border-radius:2px;color:var(--ink)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .verdict-chips button{min-height:30px;padding:4px 10px;font-size:12px}
}
@media screen{
 html:root:root body[data-shell] .verdict-chips button:hover{border-color:var(--control-line)}
 html:root:root body[data-shell] .verdict-method-button{border-radius:4px;background:var(--s1)}

 /* ---- The group summary (views/numbers.mjs paintGroupSummary): one screen, each group opens its lines ---- */
 /* A group the reader closed from the summary: its lines step out of the statement, its heading and subtotal stay. */

}
/* The group summary: the phone keeps its own field cards, and print keeps every line. */
.ws-summary{margin:4px 0 20px;padding:var(--worksheet-summary-padding);background:var(--s1);border:1px solid var(--hair)}
/* The same summary heads the phone Numbers card, ahead of its statement. */
@media screen{
 body[data-shell=mobile] .ws-summary{margin:0 0 24px;padding:var(--worksheet-summary-phone-padding)}
 body[data-shell=mobile] .ws-summary-head{flex-wrap:wrap;gap:8px;margin-bottom:8px}
 body[data-shell=mobile] .ws-summary td{vertical-align:middle;font-size:var(--worksheet-summary-phone-size)}
 body[data-shell=mobile] .ws-sum-heading{display:flex;align-items:center;gap:8px}
 body[data-shell=mobile] .ws-sum-heading>span{min-width:0}
 body[data-shell=mobile] .ws-summary .ws-sum-source{flex:none;margin-left:0;font-size:12px}
 body[data-shell=mobile] .ws-summary td:first-child{overflow-wrap:anywhere;padding-right:8px}
 body[data-shell=mobile] .ws-summary td.n{width:1%;font-variant-numeric:tabular-nums}
 #field-sheet .ws-summary td.n:not(.ws-sum-note){white-space:nowrap}
 body[data-shell=mobile] .ws-summary td.n.ws-sum-note{white-space:normal;min-width:112px;font-size:16px}
 body[data-shell=mobile] .ws-summary button.ws-summary-open{min-height:44px;padding:8px 0;font-size:16px}
 body[data-shell=mobile] .ws-summary tr.ws-sum-ceiling>td{font-size:20px}
}
@media print{.ws-summary{display:none!important}#v-pf tr.ws-folded{display:table-row!important}}
@media screen and (max-width:1439px){
 html:root:root body[data-shell] .workspace-resource .workspace-tabs button{padding:2px 7px 0;font-size:12.5px}
}
@media screen{
 .ws-summary-mode{min-height:28px;padding:0 10px;font:inherit;font-size:12px;font-weight:500;color:var(--ink-muted);background:transparent;border:1px solid var(--hair-strong);border-radius:6px;cursor:pointer}
 .ws-summary-mode:hover{color:var(--ink);border-color:var(--control-line)}
 /* The label says which way it is set (Hide or Show line items), so the pressed state keeps the one white, bordered look at every width. */
 .ws-summary-mode[aria-pressed=true]{color:var(--ink-muted);background:transparent;border-color:var(--hair-strong);font-weight:500}
 .ws-summary-mode:focus-visible{outline:2px solid var(--focus-ink);outline-offset:2px}
}

/* Summary parts, every shell that shows it. */
 .ws-summary-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 6px}
.ws-summary-title{margin:0;font:800 10.5px/14px var(--font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--accent-hi)}
.ws-summary-note{margin:0;font-size:12px;color:var(--ink-subtle)}
.ws-summary table{width:100%;border-collapse:collapse}
.ws-summary td{padding:0;border-bottom:1px solid var(--hair);font-size:var(--worksheet-summary-size)}
.ws-summary td.n{padding:var(--worksheet-summary-row-space) 0;text-align:right;font-weight:var(--worksheet-number-weight);white-space:nowrap}
.ws-summary button.ws-summary-open{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:0;font:inherit;font-size:13.5px;color:var(--ink);text-align:left;background:none;border:0;cursor:pointer}
.ws-summary button.ws-summary-open::before{content:"";flex:none;width:6px;height:6px;margin:0 2px 2px 0;border-right:1.5px solid var(--ink-subtle);border-bottom:1.5px solid var(--ink-subtle);transform:rotate(-45deg);transition:transform var(--motion-duration) var(--motion-easing)}
.ws-summary tr[data-open=true] button.ws-summary-open::before{transform:rotate(45deg);margin-bottom:5px}
.ws-summary button.ws-summary-open:hover{color:var(--accent-hi)}
.ws-summary button.ws-summary-open:focus-visible{outline:2px solid var(--focus-ink);outline-offset:2px}
.ws-summary tr.ws-sum-total>td{padding-top:9px;padding-bottom:9px;border-top:2px solid var(--accent-hi);font-weight:700}
.ws-summary tr.ws-sum-total>td:first-child{padding-left:16px}
.ws-summary tr.ws-sum-plain>td:first-child{padding:7px 0 7px 16px;color:var(--ink-muted)}
.ws-summary tr.ws-sum-ceiling>td{padding-top:11px;padding-bottom:4px;border-top:2px solid var(--accent-hi);border-bottom:0;font-size:17px;font-weight:700;color:var(--accent-hi)}
.ws-summary tr.ws-sum-ceiling>td:first-child{padding-left:16px}
.ws-summary tr.ws-sum-ceiling>td.neg,.ws-summary td.n.neg{color:var(--bad-ink)}

/* v0.5.59: where to look, under each open due diligence item (diligence-links.mjs). Plain links; each opens in a new tab. */
.dd .dd-links{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px}
.dd .dd-links a{font-size:12.5px;line-height:18px;color:var(--accent-hi);text-decoration:underline;text-underline-offset:2px}
.dd .dd-links a:hover{color:var(--ink)}
.dd .dd-links a::after{content:" \2197" / "";font-size:11px}
@media print{.dd .dd-links a::after{content:" (" attr(href) ")"}}

@media screen and (min-width:1024px){
 /* Codex critique 1 (#3): the verdict card keeps the negative colour of a figure below zero. */
}
@media screen{
 html:root:root body[data-shell] .workspace-verdict-card .ceiling>.v.neg{color:var(--bad-ink)}
 /* (#8) one inner gutter for the summary, the verdict and the statement. */
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .ws-summary,
 html:root:root body[data-shell] .workspace-verdict-card{padding-inline:16px}
 html:root:root body[data-shell] #d-waterfall>.d-b{padding-inline:16px}
}
@media screen{
 html:root:root body[data-shell] .ws-summary tr.ws-sum-ceiling td.n{font-weight:700;font-family:var(--font-display);letter-spacing:-.02em}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .ws-summary tr.ws-sum-ceiling td.n{font-size:22px;line-height:26px}

}
/* The summary's Source: forwards to the statement row's own Source, so every figure keeps one record. */
.ws-summary .ws-sum-source{margin-left:8px;padding:0 4px;min-height:28px;font:inherit;font-size:12px;font-weight:400;color:var(--accent-hi);background:none;border:0;border-radius:2px;cursor:pointer}
.ws-summary .ws-sum-source:hover{text-decoration:underline;text-underline-offset:2px}
.ws-summary .ws-sum-source:focus-visible{outline:2px solid var(--focus-ink);outline-offset:1px}
@media screen and (max-width:1279px){
 /* At 1024 the eight tabs wrapped to two rows: one row, the selected tab always reachable by scrolling sideways. */
 html:root:root body[data-shell] .workspace-resource .workspace-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 html:root:root body[data-shell] .workspace-resource .workspace-tabs button{flex:none;padding:2px 4px 0;font-size:12px}
}
@media screen and (min-width:1024px){
 /* A refusal beside a box keeps its own weight and size (workspace.css, v0.5.34 gate V-MED-3): the caption size above is for notes, not refusals. */
}
@media screen{
 html:root:root body[data-shell] .sheet-row .limit.invalid{color:var(--bad-ink)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .sheet-row .limit.invalid{font-size:13px;line-height:1.4}

}

/* ---- Visual review of 469398b7 ---- */
.strip-links{display:none}
@media screen and (min-width:1024px){
 /* HIGH 2: the answer band's two quiet links (strip-links.mjs), on their own row directly below the figure. */
 html:root:root body[data-shell] .workspace-strip .strip-headroom{padding-bottom:8px}
 /* The links take the row "Change assumptions" had under the figure (it is not drawn at the desktop shell), so the band is no taller for them. */
 html:root:root body[data-shell] .workspace-strip .strip-assume-row .strip-links:not([hidden]){display:flex;flex-wrap:nowrap;gap:0 var(--space-16);margin:0;padding:0;font-size:var(--type-small);line-height:16px;white-space:nowrap}
}
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-links a{color:var(--ws-lime);text-decoration:underline;text-underline-offset:2px;text-decoration-color:#C8EC8480}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip .strip-links a{position:relative}
 /* Extend the 16 px text line to a 24 px target without changing the band pitch. */
 html:root:root body[data-shell] .workspace-strip .strip-links a::after{content:"";position:absolute;inset:calc(-1 * var(--space-4)) 0}
}
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-links a:hover{text-decoration-color:var(--ws-lime)}
 html:root:root body[data-shell] .workspace-strip .strip-links a:focus-visible{outline:2px solid var(--ws-lime);outline-offset:2px}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip .strip-links a[hidden]{display:none}
 /* MED 2: the checks chip gets its own room. */
 html:root:root body[data-shell] .workspace-strip .strip-assume-row:has(.strip-checks-chip:not([hidden])){margin:8px 0}
 /* MED 1: square, flat: the recap bar under the summary and the figure cards; the full address in the bar. */
}
@media screen{
 html:root:root body[data-shell] #v-recap{border-radius:0;box-shadow:none;border:1px solid var(--hair);background:var(--s1)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-recap .recap-main{flex:1 1 100%;flex-wrap:wrap;white-space:normal;margin-bottom:8px}
 html:root:root body[data-shell] #v-recap .recap-main *{white-space:normal;overflow:visible;text-overflow:clip;max-width:none}
}
@media screen{
 html:root:root body[data-shell] #v-strip,
 html:root:root body[data-shell] #v-strip .cell{border-radius:0!important;box-shadow:none}
 html:root:root body[data-shell] :is(.ws-summary-mode,
 #storeys-mode,
 #construction-controls>button,
 .sheet-row button:not(.provenance-tap):not(.row-note-toggle):not(.explainer-reveal):not(.scenario-lever-action)){border-radius:2px}
 /* MED 3: summary rows, one height, one baseline. */
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .ws-summary td{height:36px;padding-top:0;padding-bottom:0;vertical-align:middle}
 html:root:root body[data-shell] .ws-summary tr.ws-sum-ceiling>td{height:48px;padding-top:6px}
 html:root:root body[data-shell] .ws-summary .ws-sum-source{min-height:24px;line-height:20px;padding:0 4px;vertical-align:baseline}
 html:root:root body[data-shell] .ws-summary button.ws-summary-open{min-height:36px}
 /* MED 5: the due diligence list: one hairline between items, no marker glyphs, labels on the panel padding. */
 html:root:root body[data-shell] #v-diligence .dd{padding:0;margin:0;list-style:none}
 html:root:root body[data-shell] #v-diligence .dd li.no::before{content:none;display:none}
}
@media screen{
 html:root:root body[data-shell] #v-diligence .dd li{border-bottom:1px solid var(--hair)}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-diligence .dd li{padding:12px 0}
}
@media screen{
 html:root:root body[data-shell] #v-diligence .dd li:last-child{border-bottom:0}
 html:root:root body[data-shell] #v-diligence .d-next{border-top:0}
}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] #v-diligence .d-next{margin-top:0;padding-top:0}
 /* LOW 1: room between the tab rule and the first line of Levers. */
 html:root:root body[data-shell] #workspace-panel-Levers #d-inputs>.d-b{padding-top:6px}

}
/* Buyer review of the candidate: a caption under a summary label (transfer tax on Land; the profit basis note), and the plain words in place of a
   negative land cost. */
.ws-summary .ws-sum-caption{display:block;margin-top:1px;font-size:11.5px;line-height:15px;font-weight:400;color:var(--ink-subtle)}
.ws-summary td.n.ws-sum-note{font-weight:400;color:var(--ink-subtle);font-size:12.5px}
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .ws-summary tr:has(.ws-sum-caption)>td{height:auto;padding-top:7px;padding-bottom:7px}
}
@media screen and (min-width:1024px){
 /* The empty "Change assumptions" slot took the row's gap, so the band links started 8 px in from the figure. */
 html:root:root body[data-shell] .workspace-strip .strip-assume{display:none}
 /* The basis line carries ", servicing not priced" where that applies; 11.5 px keeps it whole on one line at 1440. */
 html:root:root body[data-shell] .workspace-strip .strip-line{font-size:11.5px}

}

/* Touch tablets keep small Source and help text with measurable 24 px targets. Mouse rows keep their existing height. */
@media screen and (pointer:coarse){
 body[data-shell=desktop] #v-pf .explainer-reveal{min-width:24px;min-height:24px}
 body[data-shell=desktop] #v-pf .provenance-tap,
 html:root:root body[data-shell=desktop] #v-pf .provenance-tap{display:inline-block;min-width:24px;min-height:24px}
}

/* Summary folds apply on every screen. Each group remains available from its summary button; print keeps every line. */
@media screen{#v-pf tr.ws-folded{display:none}}
@media screen and (min-width:1024px){
 /* The band link row sits 6 px under the figure whether or not the checks chip is there (visual re-review MED). */
 html:root:root body[data-shell] .workspace-strip .strip-assume-row,
 html:root:root body[data-shell] .workspace-strip .strip-assume-row:has(.strip-checks-chip:not([hidden])){margin:6px 0 4px}
 /* No box inside the due diligence panel's box (visual re-review LOW). */
}
/* Spec 008 R2: the Due diligence panel is the one box. Its drawers draw no box of their own at any width: no border, no fill, no shadow, and no fill under a finger
   (a tap leaves the summary :hover, and the hover fill and the browser's tap flash were a second box inside the panel on a phone). Groups are told apart by Ken's quiet rule above the
   second drawer and by space, and the list is flush with the drawer titles. */
@media screen{
 html:root:root body[data-shell] #v-diligence .drawer{border:0;background:transparent}
 html:root:root body[data-shell] #v-diligence .drawer>summary,
 html:root:root body[data-shell] #v-diligence .drawer>summary:hover{padding-left:0;padding-right:0;background:transparent;box-shadow:none;border-radius:0;-webkit-tap-highlight-color:transparent}
 html:root:root body[data-shell] #v-diligence .drawer>.d-b{padding-left:0;padding-right:0}
 html:root:root body[data-shell] #v-diligence .drawer+.drawer{margin-top:12px}
 html:root:root body[data-shell] #v-diligence .drawer+.drawer>summary{border-top:1px solid var(--hair-strong)}
}
@media screen and (hover:hover){
 html:root:root body[data-shell] #v-diligence .drawer>summary:hover .d-t{text-decoration:underline;text-underline-offset:3px}
}

/* Optional disclosures follow the links and take space only when present. */
@media screen and (min-width:1024px){
 body[data-topbar=on] .workspace-strip:not([hidden]){grid-template-areas:"figure change" "assume change" "cached cached" "severity severity" "building building" "headroom headroom"}
}
.workspace-strip .strip-cached{grid-area:cached;justify-self:start;min-height:var(--space-24);font-family:inherit;font-size:var(--type-small);line-height:15px;cursor:pointer;white-space:normal;text-align:left}
.workspace-strip .strip-cached[hidden]{display:none}
.workspace-strip .strip-cached:focus-visible{outline:2px solid currentColor;outline-offset:2px}
body[data-shell] .workspace-strip:not([data-strip-state=withheld]) .strip-v,
body[data-shell] .workspace-verdict-card .ceiling>.v:not(.phrase){font-size:var(--type-headline)}
/* The checkbox's auto width inherited from the sheet collapsed its custom appearance.
   Keep the existing label, Source and note in their row, with an explicit square target. */
.sheet-row[data-sheet-key=site_in_transit_oriented_area] #site-in-toa{width:var(--space-24);height:var(--space-24)}
.sheet-row[data-sheet-key=site_in_transit_oriented_area]{column-gap:var(--space-4)}
.sheet-row[data-sheet-key=site_in_transit_oriented_area]>.row-name{font-size:var(--type-body)}
body[data-shell=mobile] .sheet-row[data-sheet-key=site_in_transit_oriented_area]{column-gap:var(--space-8)}
body[data-shell=mobile] .sheet-row[data-sheet-key=site_in_transit_oriented_area]>.row-name{font-size:var(--type-section)}
body[data-shell=mobile] .sheet-row[data-sheet-key=site_in_transit_oriented_area] #site-in-toa{width:44px;height:44px}
body[data-shell=mobile] .sheet-row[data-sheet-key=site_in_transit_oriented_area] .provenance-tap{align-self:center;margin-block:0}
/* Below 1024 px the pinned band keeps its v0.5.60 layout and height: the figure with the checks chip, then the change line.
   The band links are a desktop part (they stay display:none here). The saved-read disclosure sits under the figure as one
   15 px line, as it did inside the figure on v0.5.60; hidden, its row is empty and has no height. Its tap area reaches up over
   the figure (the same destination) instead of growing the band: 44 px on the phone, 24 px on the compact shell. */
@media screen and (max-width:1023px){
 body[data-shell=mobile] .workspace-strip:not([hidden]):not([data-strip-refused=on]){grid-template-areas:"figure chip" "cached chip" "change change" "severity severity"}
 body[data-shell=desktop-compact] .workspace-strip:not([hidden]):not([data-strip-refused=on]){grid-template-areas:"figure change chip" "cached . ." "severity severity severity"}
 body[data-shell] .workspace-strip .strip-cached{position:relative;min-height:0!important;margin:2px 0 0;padding:0;font-size:12px;line-height:15px}
 body[data-shell=mobile] .workspace-strip .strip-cached::after{content:"";position:absolute;inset:-29px 0 0}
 body[data-shell=desktop-compact] .workspace-strip .strip-cached::after{content:"";position:absolute;inset:-9px 0 0}
}
@media screen and (max-width:1023px) and (max-height:520px){
 body[data-shell=mobile] .workspace-strip:not([hidden]):not([data-strip-refused=on]){grid-template-areas:"figure change chip" "cached . ." "severity severity severity"}
}
/* R5 parking controls: the underground stall count's row is drawn only while the underground
   rule is in force (views/levers.mjs syncParkingRuleRows sets [hidden] on every node marked
   data-parking-stalls and on the sheet wrapper that holds them). Author display rules (the
   drawer's block label and note, the sheet's grid row) outrank the UA's [hidden] state, so the
   hidden state is stated here; it applies in every shell, and the phone sheet repeats it in
   mobile.css. */
#d-inputs [data-parking-stalls][hidden],#d-inputs [data-sheet-key=parking_rule_stalls][hidden]{display:none!important}
/* The pinned band keeps its v0.5.60 height below 1024 px (tests/test_008_phase1_defects_e2e.py): Ken's wide-tracked 800 eyebrow is 250 px wide at 360 and wrapped to two
   lines beside the checks chip, so the eyebrow keeps the tracking and weight it had there. Face, colour and fill are Ken's at every width. */
@media screen and (max-width:1023px){
 html:root:root body[data-shell] .workspace-strip .strip-k{font-weight:600;letter-spacing:.06em}
}
/* Keep the complete scheme label beside the 44 px checks target at 360 px,
   using the existing readable type size and a tighter eyebrow. */
@media screen and (max-width:375px){
 html:root:root body[data-shell=mobile] .workspace-strip .strip-k{letter-spacing:0}
}
/* The phone's checks chip is a 44 px target whose pill is drawn by its ::before (workspace.css): Ken's lime fill goes on that pill, not on the button's box. */
@media screen{
 html:root:root body[data-shell=mobile] .workspace-strip .strip-checks-chip{background:none;border:0}
 html:root:root body[data-shell=mobile] .workspace-strip .strip-checks-chip::before{background:var(--ws-lime);border-color:var(--ws-lime)}
 html:root:root body[data-shell=mobile] .workspace-strip .strip-checks-chip[aria-expanded=true]::before{background:var(--s1)}
}

/* Spec 008 R1 iteration 3. The band's two sublines wrap at the desktop shell instead of cutting with an ellipsis: "servicing not priced" and the visitor's own
   price "(yours $390/sf)" are the words that explain a below-zero result. The link row above them is fixed, so nothing moves. Spec 008 R2 (F10): the same from the
   compact shell (900 px) up; the phone band keeps its v0.5.60 height and its single lines. */
@media screen and (min-width:900px){
 html:root:root body[data-shell] .workspace-strip .strip-line{white-space:normal;overflow:visible;text-overflow:clip}
}
/* The phone's display row, in the open card: Units / Imperial / Metric are one joined control, Explain and Back to site are plain text actions, all 44 px tall on one
   baseline, as the desktop bar draws them. The card lays out as a wrapping row so Units, Explain and Back to site share one line; everything else takes a full line.
   The 12 px above the row is the space under the band; the 8 px column gap separates the units control from the actions. */
@media screen{
 html:root:root body[data-shell=mobile] #field-sheet{display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;column-gap:8px;row-gap:0}
 html:root:root body[data-shell=mobile] #field-sheet>:not(.unit-control,.explain-control,button){flex:0 0 100%;min-width:0}
 html:root:root body[data-shell=mobile] #field-sheet>.workspace-strip{flex:0 0 calc(100% + 24px)}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control{flex:0 0 auto;gap:0;margin:12px 0 0;flex-wrap:nowrap}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control .unit-control-label{margin:0 6px 0 0;font-size:13px;color:var(--ink-subtle)}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control .unit-control-choice{min-height:44px;margin:0;padding:0 10px;font-size:13px;border:0;border-radius:0;background:var(--s2);color:var(--ink-muted);font-weight:500}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control .unit-control-choice[aria-pressed=true]{background:var(--ws-forest);color:#FFFFFF;font-weight:600}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.explain-control{flex:0 0 auto;margin:12px 0 0;flex-wrap:nowrap}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.explain-control .explain-control-toggle{min-height:44px;padding:0 6px;font-size:13px;font-weight:500;background:transparent;border:1px solid transparent;border-radius:0;color:var(--ink)}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.explain-control .explain-control-toggle[aria-pressed=true]{background:var(--ws-sage);color:var(--ws-forest);font-weight:600}
 html:root:root body[data-shell=mobile] #field-sheet>button:first-of-type{flex:0 0 auto;min-height:44px;margin:12px 0 0;padding:0 6px;font:inherit;font-size:13px;font-weight:500;line-height:1.2;white-space:nowrap;background:transparent;border:1px solid transparent;border-radius:0;color:var(--ink)}
}
/* The phone's Source-bearing rows are as tall as the rows above them: the 44 px Source target already sets the height, so the name cell adds no padding of its own. */
@media screen{
 html:root:root body[data-shell=mobile] .ws-summary tr.ws-sum-plain>td:first-child{padding-top:0;padding-bottom:0}
}

/* ==== Spec 008 R2: touch targets beyond the phone, and the phone's status sentences ====
   The phone floor is 44 px (mobile.css). Every other shell (the compact shell, and the desktop shell with a mouse or with touch) has a floor of 24 px (WCAG 2.5.8; iteration 3: a zero-specificity :where() floor with no !important, so a larger min-height a control already has wins and the floor only raises what is under 24 px), so a control
   is a 24 px box and not a 16 px word with an invisible larger hit area. Text that sits in a line of prose keeps its line: the box is 24 px tall and its margin gives the
   difference back, so no row of the band, the Pro forma or the due diligence list grows. The panel divider's 8 px drag strip is the one exception (it has an arrow key
   alternative, and a wider strip would sit over the inspector's scrollbar); tests/test_008_phone_tablet_surfaces_e2e.py names it. */
@media screen{
 :where(html:root:root body[data-shell]:not([data-shell=mobile]) :is(button,summary,select,[role=button],[role=tab]):not(.strip-cached)){min-height:24px}
 :where(html:root:root body[data-shell]:not([data-shell=mobile]) :is(button,[role=button]):not(.strip-cached)){min-width:24px}
 /* The band's saved-read button keeps its 15 px line and its hit area at the compact shell, where tests/test_008_phase1_defects_e2e.py pins the band's height; at the desktop shell it is a 24 px box. */
 :where(html:root:root body[data-shell=desktop] .workspace-strip .strip-cached){min-height:24px}
 /* The floor above is zero specificity, so a control that already has a larger minimum keeps it. These are the controls whose own rules set a minimum UNDER 24 px (20, 22 or 0),
    and each is raised here at a specificity that beats only those rules (the 28 and 36 px provenance tap rules are larger and are not matched). */
 html:root:root body[data-shell]:not([data-shell=mobile]) :is(.explainer-reveal,.row-note-toggle,.hero-zone-trigger){min-height:24px;min-width:24px}
 /* R3i1-H1: the 24 px target must not grow a sheet row (57 px at the row budget). The negative block margin cancels the extra height over one line. */
 html:root:root body[data-shell]:not([data-shell=mobile]) .sheet-row :is(.row-note-toggle,.explainer-reveal){margin-block:calc((1lh - 24px) / 2)}
 body[data-shell]:not([data-shell=mobile]) .sheet-row .provenance-tap{min-height:24px}
 html:root:root body[data-shell]:not([data-shell=mobile]) :is(#v-pf,.workspace-verdict-card) .provenance-tap{min-height:24px;min-width:24px}
 html:root:root body[data-shell]:not([data-shell=mobile]) :is(input[type=checkbox],input[type=radio]){min-width:24px;min-height:24px}
 /* The sheet's own checkbox was drawn 2 px wide at the desktop shell (appearance:none with width:auto in a grid cell): a 24 px box is the target and the box you see. */
 html:root:root body[data-shell]:not([data-shell=mobile]) .sheet-row input[type=checkbox]{width:24px;height:24px;border-radius:4px}
 /* A link in a line of prose stays an inline box, so a long one still breaks across lines: its 24 px is padding (inline padding adds to the box you can hit, not to the line), and the negative margin
    gives the height back where a link is a block or flex item (a link row), so no row grows. */
 html:root:root body[data-shell]:not([data-shell=mobile]) a[href]:not([class]){box-sizing:border-box;min-height:24px;padding-block:5px;margin-block:-5px}
 html:root:root body[data-shell]:not([data-shell=mobile]) :is(.tag,.term)[role=button]{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:24px;margin-block:-4px;vertical-align:middle}
 html:root:root body[data-shell]:not([data-shell=mobile]) .hero-zone-trigger{border-bottom:0;text-decoration:underline dotted;text-underline-offset:3px;margin-block:-4px;vertical-align:baseline}
 html:root:root body[data-shell]:not([data-shell=mobile]) .workspace-strip .strip-checks-chip{height:24px;margin-block:-4px}
 html:root:root body[data-shell]:not([data-shell=mobile]) .workspace-strip .strip-links a{margin-block:-4px}
 /* An unclassed link in the link row carries 5 px of padding and gives back 5 px (the rule above gives 4, which grew the band by 2 px at 1440 against origin/main). */
 html:root:root body[data-shell]:not([data-shell=mobile]) .workspace-strip .strip-links a[href]:not([class]){margin-block:-5px}
 html:root:root body[data-shell]:not([data-shell=mobile]) .dd .dd-links a{margin-block:0}
}

/* Spec 008 R2 (F8), iteration 2: on the phone a status sentence ("Showing metric. Your scheme, prices and Undo history are unchanged.") takes its own full-width line under the
   Units and Explain row, in the flow, so it pushes the content below it down for the few seconds it is read and covers nothing: not the heading, the "?" button, the
   band or the city tabs, and a tap on it reaches nothing underneath. While a sentence is shown its control stops drawing a box of its own (display:contents), so the buttons and
   the sentence are items of the one wrapping row; the margins and orders below put every button exactly where it stood (the row's column gap is 8 px in both homes).
   The units sentence comes first, the Explain sentence under it, 8 px apart (the front page row gap, the card's margin); the card's next heading has its own 16 px above it. */
@media screen{
 html:root:root body[data-shell=mobile] .workspace-chrome{flex-wrap:wrap;overflow:visible}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control{order:-2}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.explain-control,
 html:root:root body[data-shell=mobile] #field-sheet>button:first-of-type{order:-1}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control:has(.unit-control-status:not(:empty)),
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.explain-control:has(.explain-control-status:not(:empty)){display:contents}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control:has(.unit-control-status:not(:empty))>:is(.unit-control-label,.unit-control-choice){order:-2;margin-top:12px}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control:has(.unit-control-status:not(:empty))>.unit-control-label{margin-right:-2px}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.unit-control:has(.unit-control-status:not(:empty))>.unit-control-choice+.unit-control-choice{margin-left:-8px}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>.explain-control:has(.explain-control-status:not(:empty))>.explain-control-toggle{order:-1;margin-top:12px}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>:is(.unit-control,.explain-control) :is(.unit-control-status,.explain-control-status){
  position:static;order:0;flex:0 0 100%;width:auto;max-width:100%;box-sizing:border-box;margin:0;padding:6px 10px;font-size:13px;line-height:1.35;color:var(--ink);background:var(--s1);
  border:1px solid var(--hair-strong);border-radius:6px;white-space:normal;overflow-wrap:anywhere}
 html:root:root body[data-shell=mobile] :is(.workspace-chrome,#field-sheet)>:is(.unit-control,.explain-control) :is(.unit-control-status,.explain-control-status):empty{display:none}
 html:root:root body[data-shell=mobile] #field-sheet>:is(.unit-control,.explain-control) :is(.unit-control-status,.explain-control-status){margin-top:8px}
}

/* Spec 008 R2 (iteration 2, visual review MED): the massing panel is the one box. The "Limited by" line and the City context note inside it were each a bordered box of their
   own, and the placement warning was a bordered box with a tint, so the panel held boxes inside a box (the same on origin/main 1d43c1f7: not caused by this ring). They are plain
   text now, set apart by the banner's own 4 px gaps; the warning keeps its tint and its warning colour and loses the border. The 1 px of border each line lost is given back as padding,
   so no banner line changes height (the stability tests pin the stage). */
@media screen{
 html:root:root body[data-shell] :is(.massing-stage-banner,.massing-stage-binding) p{border:0;border-radius:0;background:transparent;padding:7px 0}
 html:root:root body[data-shell] .massing-stage-banner .massing-warning{background:var(--warn-tint);border-radius:4px;padding:7px 10px}
}

/* Spec 008 R2 (iteration 2, visual review LOW): on the phone a due diligence row reads as one unit. The label sits 4 px above its value (the row gap it wrapped with was 12 px, as far as
   the distance to the next row), and the next row is 15 px away (7 px under, 7 px over, 1 px rule). The drawer's count ("9") sits on the title row beside the chevron, as it does
   from the compact shell up, instead of alone on a line of its own under "9 of 23, from live records" (that line was the same on origin/main 1d43c1f7: not caused by this ring). */
@media screen and (max-width:600px){
 html:root:root body[data-shell=mobile] #v-diligence .dd li{row-gap:4px;margin-block:0;padding-top:7px;padding-bottom:7px}
}
@media screen{
 html:root:root body[data-shell=mobile] #v-diligence .drawer>summary{grid-template-columns:minmax(0,1fr) auto auto}
 html:root:root body[data-shell=mobile] #v-diligence .drawer>summary>.d-v{grid-column:2;grid-row:1;justify-self:end}
 html:root:root body[data-shell=mobile] #v-diligence .drawer>summary::after{grid-column:3}
}

/* Spec 008 R3: the band by coverage. A state with no figure (rates needed, envelope only, zoning only) puts its words in the headline slot, so the slot is never empty and
   the band keeps its height and its alignment: the eyebrow names the state, the words sit where the figure would, on the same left edge, in the section size (not the
   headline size, which a sentence would wrap in), with the headline's own line box so one line of words is as tall as one line of figure. A below-zero band is a figure
   ("short $9.37M"), so it keeps the figure's own type and the .neg colour and needs no rule here. */
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-v.strip-words{font-family:var(--font-body);font-size:var(--type-section);font-weight:600;letter-spacing:0;line-height:20px;padding-block:5px;font-variant-numeric:normal}
}
@media screen and (max-width:1023px){
 html:root:root body[data-shell] .workspace-strip .strip-v.strip-words{padding-block:2px}
}
/* Spec 008 R3: the two states with no lines under the headline (envelope only, zoning only) keep the height the ordinary band has at the same shell, so switching city moves nothing below the band:
   119 px at the desktop shell, 54 px on the compact shell, 67 px on the phone (tests/test_008_coverage_states_e2e.py measures each against the priced band at that width). */
@media screen and (min-width:1024px){
 html:root:root body[data-shell] .workspace-strip[data-strip-coverage=envelope-only]:not([hidden]),
 html:root:root body[data-shell] .workspace-strip[data-strip-coverage=zoning-only]:not([hidden]){box-sizing:border-box;min-height:119px}
}
@media screen and (max-width:1023px){
 html:root:root body[data-shell=desktop-compact] .workspace-strip[data-strip-coverage=envelope-only]:not([hidden]),
 html:root:root body[data-shell=desktop-compact] .workspace-strip[data-strip-coverage=zoning-only]:not([hidden]){box-sizing:border-box;min-height:54px}
 html:root:root body[data-shell=mobile] .workspace-strip[data-strip-coverage=envelope-only]:not([hidden]),
 html:root:root body[data-shell=mobile] .workspace-strip[data-strip-coverage=zoning-only]:not([hidden]){box-sizing:border-box;min-height:67px}
}
/* Spec 008 R3: the rates-needed band's words are the link to the rates (the figure button carries data-open-assumption), so they read as one, as the band's own links do. */
@media screen{
 html:root:root body[data-shell] .workspace-strip .strip-figure[data-strip-link=rates] .strip-v{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#C8EC8480}
 html:root:root body[data-shell] .workspace-strip .strip-figure[data-strip-link=rates]:hover .strip-v{text-decoration-color:var(--ws-lime)}
}
