/* Mobile first: the base rules are the phone layout, and the one media query adds room on a desktop. */
/* APP-DARK-LOOK (Vlad 2026-11-26, Telegram 14171): the whole app wears the Company Settings mockup v2 look: a dark navy-to-black
   page, cyan section labels, rounded translucent cards with thin row lines, white titles, grey subtitles, a white primary button and
   red Log out. Every screen colour comes from these tokens; @media print at the end of this file puts screens back to light. */
:root {
  color-scheme:dark;
  --page-top:#0f1446; --page-mid:#0a0d2c; --page-low:#05060f; --page-end:#000;
  --page-gradient:linear-gradient(180deg,#0f1446 0%,#0a0d2c 38%,#05060f 75%,#000 100%);
  --title:#fff; --ink:#eef0f6; --ink-2:#c9ccd8; --mid:#9a9fb3; --section:#22c4f0;
  --line:rgba(255,255,255,.14); --row-line:rgba(255,255,255,.08); --line-strong:rgba(255,255,255,.3);
  --card:rgba(255,255,255,.045); --soft:rgba(255,255,255,.07); --tint-strong:rgba(255,255,255,.14); --hero-bg:rgba(255,255,255,.07);
  --surface:#161a3c; --toast-bg:#26293d; --plate:#fff; --plate-ink:#1b2530;
  --blue:#22c4f0; --blue-dark:#9fe6fb; --red:#ff6b6d; --accent:#22c4f0; --link:#5fd6f6;
  --fill:#fff; --fill-hover:#e3e6ee; --on-fill:#0a0d2c;
  --danger:#ff6b6d; --danger-bg:rgba(255,77,79,.16); --danger-border:rgba(255,107,109,.5); --danger-solid:#ff5a5c; --danger-fg:#ff8a8b;
  --ok-fg:#6ee7a0; --ok-bg:rgba(52,199,89,.16); --ok-border:rgba(110,231,160,.45); --ok-solid:#34c27a;
  --warn-fg:#ffbf47; --warn-bg:rgba(255,176,32,.16); --warn-border:rgba(255,191,71,.45); --warn-solid:#ffbf47;
  --info-fg:#5fd6f6; --info-bg:rgba(34,196,240,.16); --info-border:rgba(95,214,246,.45);
  --purple-fg:#cdb8ff; --purple-bg:rgba(183,148,246,.16); --purple-border:rgba(205,184,255,.45); --purple-solid:#b794f6;
  --field-bg:#14183a; --field-border:rgba(255,255,255,.3); --placeholder:#8f95ab; --disabled-fg:#80869b; --disabled-bg:#10132e;
  --focus:#22c4f0; --muted:#9a9fb3;
  --tabbar-bg:rgb(28,30,40); /* UX-POLISH-173: solid, so page text never shows through the bar */ --tabbar-border:rgba(255,255,255,.1); --tab-fg:#d5d8e2; --tab-on-bg:rgba(255,255,255,.1);
  --nav-fg:#c9ccd8; --nav-on-bg:rgba(255,255,255,.09);
  --tabbar-gap:max(18px, calc(env(safe-area-inset-bottom, 0px) + 6px));
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
html { background:var(--page-end); }
body { margin:0; min-height:100vh; background:var(--page-gradient) fixed; background-color:var(--page-end); color:var(--ink); font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif; overflow-wrap:break-word; }
main { max-width:1040px; margin:0 auto; padding:16px 16px 40px; }
h1 { margin:0 0 4px; font-size:28px; line-height:1.15; }
h2 { margin:18px 0 8px; font-size:18px; color:var(--section); }  /* APP-DARK-LOOK: section labels are cyan */
a { color:var(--link); }
h3 { margin:0 0 4px; font-size:19px; }
p { margin:6px 0; }
.purpose { margin:0 0 14px; color:var(--mid); }
.small { font-size:14px; color:var(--mid); }
.card-status { margin:4px 0 2px; } /* UX-POLISH-40: status line sits right above its card link */
.nowrap { white-space:nowrap; }
.narrow { max-width:420px; margin:12px auto 0; }

/* Header: company and role are always visible, so nobody reads figures under the wrong company. */
.top { background:transparent; color:var(--title); border-bottom:1px solid var(--row-line); }
.top-in { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; max-width:1040px; margin:0 auto; padding:8px 16px; }
.brand { color:var(--title); font-size:18px; font-weight:800; text-decoration:none; padding:11px 0; }
/* HOME-HEADER (Vlad 2026-11-20 18:14): the office Home's tagline beside the wordmark: small white text on one line; it shrinks on a narrow
   phone and is hidden below 300 px rather than wrapping (home.html block brand). */
.brand-tag { flex:0 1 auto; min-width:0; margin-left:-2px; color:var(--title); font-size:14px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:374px) { .brand-tag { font-size:13px; } }
@media (max-width:299px) { .brand-tag { display:none; } }
.who { order:3; flex:1 0 100%; margin:0 0 4px; font-size:14px; }
.who b { display:block; font-size:16px; }
.who span { color:var(--mid); }
.top form { margin:0 0 0 auto; }
.top .legal { flex-basis:100%; min-width:0; margin:-10px 0 -4px; padding:0 0 2px; font-size:11px; line-height:1.35; color:var(--link); overflow-wrap:anywhere; }
.top .legal p { margin:0; }
.top .legal .legal-warn { color:var(--danger); font-weight:800; }
.top .legal .legal-line { margin-top:2px; }
.legal-text { margin:20px 0 0; padding-top:10px; border-top:1px solid var(--line); font-size:12px; line-height:1.4; color:var(--mid); }
.logout { min-height:44px; padding:8px 14px; font:inherit; font-size:15px; font-weight:600; color:var(--danger); background:transparent; border:1px solid var(--line); border-radius:6px; cursor:pointer; }

/* Job cards are one large tap target. */
.card { display:block; padding:14px; margin:0 0 10px; color:inherit; text-decoration:none; background:var(--card); border:1px solid var(--line); border-radius:8px; }
a.card:hover, a.card:focus { border-color:var(--blue); }
.card.attn { border:2px solid var(--blue); }
.card.soft { background:var(--soft); }
.status { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; margin:10px 0; }
.price { font-size:22px; white-space:nowrap; }
.next { margin:0; color:var(--blue); font-weight:700; }
.tag { display:inline-block; padding:2px 9px; font-size:14px; font-weight:600; background:var(--card); border:1px solid var(--ink); border-radius:12px; }
.tag.solid { color:var(--on-fill); background:var(--fill); border-color:var(--fill); }

/* Job page */
.back { display:inline-block; min-height:44px; padding:10px 0; color:var(--blue); font-weight:600; }
.total { padding:14px; margin-bottom:12px; background:var(--soft); border:2px solid var(--ink); border-radius:8px; }
.total-label { margin:0; font-size:14px; font-weight:600; color:var(--mid); }
.big { margin:2px 0 8px; font-size:40px; font-weight:800; line-height:1.1; }
.big-none { margin:2px 0 8px; font-size:26px; font-weight:800; }
.next-box { padding:14px; margin-bottom:12px; border:2px solid var(--blue); border-radius:8px; }
.next-step { margin:2px 0; font-size:20px; font-weight:700; }
.row { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); }
.row:last-child { border-bottom:0; }
.row > :first-child { flex:0 1 auto; color:var(--mid); }  /* a long label wraps rather than pushing the value off a phone screen */
.row > :last-child { text-align:right; }

/* Forms */
label { display:block; margin:14px 0 4px; font-size:15px; font-weight:600; }
input { width:100%; min-height:48px; padding:10px; font:inherit; color:var(--ink); background:var(--field-bg); border:1px solid var(--field-border); border-radius:6px; }
input::placeholder, textarea::placeholder { color:var(--placeholder); opacity:1; }
input:disabled, select:disabled, textarea:disabled { color:var(--disabled-fg); background:var(--disabled-bg); border-color:var(--line); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid var(--focus); outline-offset:1px; }
input[type=checkbox], input[type=radio], progress { accent-color:var(--accent); }
input[type=file]::file-selector-button { margin-right:10px; padding:8px 12px; font:inherit; font-weight:600; color:var(--ink); background:var(--soft); border:1px solid var(--line-strong); border-radius:6px; }
.check { display:flex; align-items:center; gap:10px; min-height:44px; margin:12px 0 0; font-size:16px; cursor:pointer; }
.check input { flex:none; width:24px; height:24px; min-height:0; margin:0; }
.pw-wrap { position:relative; }
.pw-wrap input { padding-right:52px; }
.pw-wrap input::-ms-reveal, .pw-wrap input::-ms-clear { display:none; }
.pw-eye { position:absolute; top:0; right:0; display:flex; align-items:center; justify-content:center; width:48px; height:100%; min-height:44px; margin:0; padding:0; color:var(--mid); background:none; border:0; border-radius:6px; cursor:pointer; }
.pw-eye[hidden] { display:none; }
.pw-eye:focus-visible { outline:3px solid var(--blue); outline-offset:-3px; }
.pw-eye.is-shown .slash { display:none; }
.btn { display:block; width:100%; min-height:50px; margin:18px 0 0; padding:13px 14px; font:inherit; font-weight:700; text-align:center; text-decoration:none; color:var(--on-fill); background:var(--fill); border:0; border-radius:6px; cursor:pointer; }
.err { padding:10px 12px; margin:10px 0; font-weight:600; border:1px solid var(--red); border-left-width:6px; border-radius:6px; }
/* Errors at the field (#24): the refused question outlined red, its message under it; Save off until required answers are there */
.err .not-saved { margin:0 0 4px; color:var(--red); }
.err .not-saved .small { color:inherit; font-weight:600; }
.err a { color:inherit; }
.has-err { margin:8px -8px; padding:2px 8px 8px; border:2px solid var(--red); border-radius:6px; }
.has-err > fieldset, .has-err > input, .has-err > select, .has-err > textarea { margin-bottom:0; }
.field-err { margin:6px 0 0; color:var(--red); font-weight:600; }
.req { margin-left:3px; color:var(--red); font-weight:700; }
.save-hint { margin:6px 0 0; }
/* #29: a save that worked, said once on the job page */
.saved-line { margin:10px 0; padding:10px 12px; font-weight:600; color:var(--ok-fg); background:var(--ok-bg); border:1px solid var(--ok-border); border-left-width:6px; border-radius:6px; }

@media (min-width:760px) {
  h1 { font-size:32px; }
  .who { order:0; flex:1 1 auto; margin:0; }
  .who b { display:inline; margin-right:8px; }
  .top form { margin:0; }
  .two { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
  .total, .next-box, .facts { max-width:620px; }
}

/* Account and security pages */
.acct { color:var(--title); font-size:15px; font-weight:600; padding:11px 4px; margin-left:auto; }
.top .acct + form { margin-left:0; }
/* LIVE1 FEEDBACK1: the owner's Improve BluePlan link, its own line under the name on a phone, before Account on a wide screen */
.top .improve { order:4; flex:1 0 100%; color:var(--title); font-size:15px; font-weight:600; padding:6px 0 10px; }
@media (min-width:760px) { .top .improve { order:0; flex:0 0 auto; padding:11px 4px; } }
/* FEEDBACK1 status line: the owner's ideas with their check marks (received, in testing, live) on the Improve BluePlan page */
.ideas { list-style:none; padding:0; margin:0 0 10px; max-width:620px; }
.idea { padding:10px 0; border-top:1px solid var(--line); }
.idea-text { margin:0 0 4px; overflow-wrap:anywhere; }
.idea-step.done { color:var(--ink); font-weight:600; }
.idea-step.todo, .idea-step.stopped { color:var(--mid); }
/* FB-EVERYONE: each idea's status chip (red Not started, yellow Being worked on, green Done, grey Not now; the word is always in it) and the
   owner's colour filter over everyone's ideas: each filter is a 48px tap target that wraps on a 320px phone */
.idea-status, .idea-from { margin:0 0 4px; }
.fb-colours { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 12px; }
.fb-colour { display:inline-flex; align-items:center; min-height:48px; padding:0 10px; border:1px solid var(--line); border-radius:8px; color:var(--ink); text-decoration:none; }
.fb-colour.on { border:2px solid var(--blue); font-weight:700; }
/* IDEAS-V3 (mockup ideas-v3.png): the Improve BluePlan list tabs + rows, and one idea's own page (idea.html) */
.ideas-tabs { display:flex; margin:8px 0 12px; border:1px solid var(--blue); border-radius:10px; overflow:hidden; max-width:620px; }
.ideas-tab { flex:1 1 0; display:flex; align-items:center; justify-content:center; min-height:48px; padding:0 4px; color:var(--blue); font-weight:600; text-decoration:none; text-align:center; overflow-wrap:anywhere; }
.ideas-tab + .ideas-tab { border-left:1px solid var(--line); }
.ideas-tab.on { background:var(--fill); color:var(--on-fill); }
.ideas-when { margin:14px 0 4px; font-size:15px; letter-spacing:.04em; text-transform:uppercase; color:var(--blue); }
.ideas-v3 .idea-row { border-bottom:1px solid var(--line); }
.idea-row-link { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:56px; padding:8px 0; color:inherit; text-decoration:none; }
.idea-row-text { display:flex; flex-direction:column; min-width:0; }
.idea-title { font-weight:700; overflow-wrap:anywhere; }
.idea-meta { color:var(--mid); font-size:16px; overflow-wrap:anywhere; }
.idea-sub { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 12px; color:var(--mid); }
.idea-head { overflow-wrap:anywhere; }
.idea-said-box { border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:0 0 12px; max-width:620px; }
.idea-body { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.idea-picture { margin:0 0 12px; max-width:620px; }
.idea-picture img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:10px; }
.idea-where { list-style:none; padding:0; margin:0 0 12px; max-width:620px; }
.idea-where-step { padding:10px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.idea-where-step.todo { color:var(--mid); }
.idea-where-step.now { font-weight:700; }
.idea-where-mark { display:inline-block; width:1.3em; }
.idea-do { display:flex; flex-wrap:wrap; gap:10px; margin:8px 0 16px; max-width:620px; }
.idea-do form { flex:1 1 160px; }
.idea-do .btn { width:100%; }
.prompt { margin:0; padding:10px 16px; background:var(--warn-bg); border-bottom:1px solid var(--warn-border); }
.prompt a { display:block; min-height:24px; max-width:1008px; margin:0 auto; color:var(--ink); font-weight:700; }
.ok { padding:10px 12px; margin:10px 0; font-weight:600; border:1px solid var(--blue); border-left-width:6px; border-radius:6px; }
.rules { padding:10px 12px; margin:12px 0; background:var(--soft); border-radius:6px; }
.rules ul { margin:6px 0 0; padding-left:20px; }
.rules li { margin:4px 0; }
.qr { display:flex; justify-content:center; margin:8px 0; }
.qr svg { display:block; width:min(100%,280px); height:auto; background:var(--plate); }
.key { padding:10px; font:16px/1.5 ui-monospace,Menlo,Consolas,monospace; text-align:center; background:var(--soft); border-radius:6px; }
/* 2FA-SAMEPHONE: phones see "Add to this phone" first, computers see the QR first; the key copies with one tap. */
.tfa-ways { display:flex; flex-direction:column; gap:12px; margin:12px 0; }
.tfa-scan { order:1; }
.tfa-same { order:2; }
.tfa-page .purpose, .tfa-help, .tfa-scan-line, .tfa-manual { font-size:18px; line-height:1.4; margin:8px 0; }
.tfa-page .key { font-size:18px; overflow-wrap:anywhere; }
.ui-btn.tfa-copy { margin:8px 0 16px; }
@media (max-width: 700px), (pointer: coarse) { .tfa-same { order:1; } .tfa-scan { order:2; } }
.codes { margin:10px 0; padding:10px 12px; list-style:none; font:16px/1.9 ui-monospace,Menlo,Consolas,monospace; text-align:center; background:var(--soft); border-radius:6px; }
.event { padding:10px 14px; }
.event h3 { font-size:17px; }
.card h3 .tag { vertical-align:middle; }

/* Screen A: usage and spending */
.usage { max-width:620px; margin-top:24px; padding:4px 14px 10px; background:var(--soft); border-radius:8px; }

/* Forms for job screens. Radios are large tap targets: the label is the target. */
select, textarea { width:100%; min-height:48px; padding:10px; font:inherit; color:var(--ink); background:var(--field-bg); border:1px solid var(--field-border); border-radius:6px; }
textarea { min-height:90px; }
/* UX-POLISH-95 (W5 2026-11-22): WebKit (iPhone Safari) draws a native select at its own ~23 px and ignores min-height; a set height
   gives the Channel picker on + Campaign (/sales/sources/new) the same 48 px as the Name field. Native picker and its default unchanged. */
#src-new-form select { height:48px; }
.top-action { margin:10px 0 14px; }
fieldset { margin:14px 0 0; padding:0; border:0; }
legend { padding:0; font-size:15px; font-weight:600; }
.choices { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.choice { display:flex; align-items:center; gap:8px; flex:1 1 auto; min-height:48px; margin:0; padding:8px 12px; font-weight:500; border:1px solid var(--mid); border-radius:6px; cursor:pointer; }
.choice input { width:22px; min-height:22px; height:22px; margin:0; flex:none; }
button.choice { justify-content:center; font:inherit; font-weight:600; color:var(--blue); background:var(--card); }  /* a one-tap answer, such as "Uses an AAV?" on an older alternate */
.choice:has(input:checked) { border:2px solid var(--blue); background:var(--soft); font-weight:700; }
.group { margin:0 0 14px; padding:4px 14px 14px; border:1px solid var(--line); border-radius:8px; }
.group h2 { margin-top:10px; }
.reveal { display:none; }
form:has(option[value="crawlspace_garage_slabs"]:checked) .reveal, .reveal.show { display:block; margin-top:12px; padding:10px 12px; background:var(--warn-bg); border-radius:6px; }
.missing { margin:8px 0; padding-left:20px; }
.missing li { margin:4px 0; }
.btn.second { color:var(--title); background:transparent; border:2px solid var(--line-strong); }
.btn:not(.second):not(:disabled):hover { background:var(--fill-hover); }

/* Job steps and lists */
.steps { max-width:620px; margin:0 0 14px; }
.step { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:50px; padding:10px 14px; margin:0 0 8px; font-weight:700; color:var(--blue); text-decoration:none; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.step:hover, .step:focus { border-color:var(--blue); }
input[type=file] { padding:10px 6px; }
/* iPhone Safari gives a date box its own minimum width, which pushes it past the form's edge. Without its built-in look it obeys the width like any other box. */
input[type=date] { display:block; min-width:0; max-width:100%; -webkit-appearance:none; appearance:none; text-align:left; }
input[type=date]::-webkit-date-and-time-value { min-height:1.45em; text-align:left; }
#upload-fields { margin:0; min-width:0; }
/* The wrapper is the last word on width: if a phone still sizes the box wider, it is cut at the form's edge and never crosses it. */
.date-field { position:relative; display:block; width:100%; max-width:100%; min-width:0; overflow:hidden; border-radius:6px; }
.date-field input { width:100%; }
/* An empty date box on iPhone Safari draws today's date. Hidden until someone is choosing, so it can't be read as the date on the plans. */
.date-field input.is-empty:not(:focus) { color:transparent; }
.date-field input.is-empty:not(:focus)::-webkit-date-and-time-value { color:transparent; }
.date-field input.is-empty:not(:focus)::-webkit-datetime-edit { opacity:0; }
.date-empty { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--mid); pointer-events:none; }
.date-empty[hidden] { display:none; }
.upload { margin:14px 0 0; padding:12px; background:var(--soft); border-radius:8px; }
.upload[hidden] { display:none; }
.upload-file { margin:0 0 8px; font-weight:600; overflow-wrap:anywhere; }
.upload-result:empty { display:none; }
.upload[data-state="done"] .pbar { color:var(--ok-fg); }
.upload[data-state="done"] .pbar::-webkit-progress-value { background:var(--ok-solid); }
.upload[data-state="done"] .pbar::-moz-progress-bar { background:var(--ok-solid); }
.upload-result { margin:8px 0 0; font-weight:600; overflow-wrap:anywhere; }
.upload[data-state="done"] .upload-result { color:var(--ok-fg); }
.upload[data-state="failed"] .upload-result, .upload[data-state="refused"] .upload-result { color:var(--red); }
.btn-plain { display:block; width:100%; min-height:48px; margin:10px 0 0; padding:10px 14px; font:inherit; font-weight:600; color:var(--link); background:var(--card); border:1px solid var(--line-strong); border-radius:6px; cursor:pointer; }
.btn-plain[hidden] { display:none; }
#team-add-text[hidden] { display:none; }  /* A3b: .ui-btn sets display; Text it instead goes away while the email box is empty */
#fixture-trueup[hidden] { display:none; }  /* PRICE SHEET (i2c): .card sets display, so a true-up gone from the saved page must hide */
#upload-problems[hidden], #upload-rows[hidden], .upload-summary[hidden], #upload-add[hidden], #plain-fields[hidden], #file-label[hidden], #file[hidden], #upload-pick-note[hidden], .upload-row [hidden] { display:none; }
.upload-rows { list-style:none; margin:12px 0 0; padding:0; min-width:0; }
.upload-row { margin:0 0 10px; padding:12px; min-width:0; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.upload-row .upload-file { margin:0 0 6px; }
.upload-row[data-state="failed"] { border-color:var(--red); }
.row-fields { margin:0; padding:0; min-width:0; border:0; }
/* These beat the generic details rules further down, which would otherwise inset the date box and leave No date set across its edge. */
.upload-row .row-more { margin:10px 0 0; padding:0 12px; min-width:0; }
.upload-row .row-more[open] { padding-bottom:12px; }
.upload-row .row-more summary { min-height:44px; padding:10px 0; font-weight:600; color:var(--blue); }
.upload-row .row-more > .date-field { padding:0; }
.upload-chosen { margin:0; overflow-wrap:anywhere; }
.upload-summary { margin:10px 0; font-weight:600; }
.btn:disabled { opacity:.5; cursor:default; }
.dl { display:inline-block; min-height:44px; padding:10px 0; color:var(--blue); font-weight:600; }

/* Screen D */
.qty-row { display:grid; grid-template-columns:1fr; gap:6px; padding:10px 0; border-bottom:1px solid var(--line); }
.qty-row label { margin:0; }
.qty-pair { display:grid; grid-template-columns:80px 1fr; gap:8px; }
details { margin:0 0 8px; border:1px solid var(--line); border-radius:8px; }
details[open] { padding-bottom:12px; }
summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:50px; padding:10px 14px; font-weight:700; cursor:pointer; list-style:none; }
summary::-webkit-details-marker { display:none; }
summary .tag { flex:none; font-weight:500; }
details > form, details > div { padding:0 14px; }
.tag.warn { color:var(--warn-fg); background:var(--warn-bg); border-color:var(--warn-border); }
.tag.red { color:var(--danger); background:var(--danger-bg); border-color:var(--danger); }  /* BN1: a paper that has run out, L&I not active */
.linkish { min-height:44px; padding:8px 0; font:inherit; font-weight:600; color:var(--red); background:none; border:0; cursor:pointer; }
.qty-list .row { flex-wrap:wrap; }
.qty-list .row > :first-child { flex:0 1 auto; min-width:0; color:var(--ink); font-weight:600; }
.qty-list .src { flex:1 0 100%; font-size:14px; color:var(--mid); text-align:left; }

/* Screen E and owner review */
.line-name { flex:1 1 auto; color:var(--ink); }
.facts.lines .row > :first-child { flex:1 1 auto; color:var(--ink); }
.facts.lines .row > :last-child { flex:none; white-space:nowrap; font-weight:600; }
.facts.lines .row > .who-does { flex:0 1 auto; min-width:0; white-space:normal; }  /* D7 (p): a company name with its amount wraps rather than widening a phone page; the amount stays whole */
.sum { font-weight:800; border-top:2px solid var(--ink); }
.alt { padding:12px 14px; margin:0 0 10px; border:1px solid var(--line); border-radius:8px; }
.alt h3 { margin-bottom:6px; }
.compare { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:8px 0; text-align:center; }
.compare div { padding:8px 4px; background:var(--soft); border-radius:6px; }
.compare small { display:block; font-size:13px; color:var(--mid); }
.compare b { display:block; font-size:16px; }
.flag { padding:8px 10px; margin:8px 0; font-weight:600; background:var(--warn-bg); border:1px solid var(--warn-border); border-radius:6px; }
/* MVP 9: the margin warning's own red, so it never reads as an approval hold (amber .flag) */
.margin-low { padding:8px 10px; margin:8px 0; background:var(--danger-bg); border:1px solid var(--danger-border); border-left-width:6px; border-radius:6px; }
.margin-low > p:first-child { margin:0 0 4px; font-weight:700; color:var(--danger-fg); }
.margin-low .small { margin:0; }
#margin-line a.margin-edit { display:inline-block; min-height:var(--ui-tap-min, 48px); line-height:var(--ui-tap-min, 48px); }  /* MVP 9 pass2 Could: a full tap target above Approve */
.tablewrap { overflow-x:auto; margin:8px 0 14px; -webkit-overflow-scrolling:touch; }
table { border-collapse:collapse; width:100%; font-size:14px; }
th, td { padding:6px 8px; text-align:right; border-bottom:1px solid var(--line); white-space:nowrap; }
th:first-child, td:first-child { text-align:left; white-space:normal; min-width:130px; }
thead th { background:var(--soft); font-weight:700; }
tr.sum td { border-top:2px solid var(--ink); }
.internal { padding:8px 12px; margin:0 0 12px; color:var(--title); font-weight:700; background:var(--hero-bg); border-radius:6px; }
.tag.alt-type { color:var(--blue-dark); border-color:var(--blue-dark); background:var(--soft); }
/* UX-POLISH-124: a frozen estimate shows "Alternates as sent" and the base once above its alternates; each card keeps With this and Adds/Saves */
.alt-sent-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0; }
.alt-sent-head small { color:var(--mid); }
.compare.two { grid-template-columns:repeat(2,1fr); }

/* Screen G: billing panel */
.tabs { display:flex; gap:6px; margin:14px 0 10px; }
.tabs a { flex:1 1 0; display:flex; align-items:center; justify-content:center; min-height:50px; padding:8px; font-weight:700; color:var(--blue); text-decoration:none; border:2px solid var(--blue); border-radius:8px; }
.tabs a[aria-current="page"] { color:var(--on-fill); background:var(--fill); }
.stage { padding:10px 14px 12px; margin:0 0 10px; border:1px solid var(--line); border-radius:8px; }
.stage-head { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.stage-head b:last-child { white-space:nowrap; }
.stage .pct-input { max-width:140px; }
.stage-total { display:flex; justify-content:space-between; gap:12px; padding:10px 14px; font-weight:700; background:var(--soft); border-radius:8px; }
.stage-total.off { color:var(--red); background:var(--card); border:2px solid var(--red); }
.unit-total { font-weight:500; white-space:nowrap; }
.for-customer, .for-contractor { display:none; }
form:has(input[name="materials"][value="customer_buys"]:checked) .for-customer { display:block; }
form:has(input[name="materials"][value="contractor_orders"]:checked) .for-contractor { display:block; }
.wording { padding:8px 12px; margin:6px 0; background:var(--soft); border-radius:6px; }
.wording b { display:block; font-size:14px; color:var(--mid); }
.choice.tight { margin-top:10px; }
textarea.short { min-height:64px; }
.add-stage { margin-top:10px; }
.add-stage > div { padding:0 10px; }
.fix { margin:6px 0 0; padding:0 12px; min-width:0; }
.fix summary { min-height:44px; padding:10px 0; font-weight:600; color:var(--blue); cursor:pointer; }
.fix-form { min-width:0; padding:0 0 8px; }
.fix-said[hidden] { display:block; visibility:hidden; }  /* its room stays, so a word appearing can't move what a finger is on its way to */
.fix-said { margin:8px 0 0; min-height:1.5em; font-weight:600; color:var(--ok-fg); overflow-wrap:anywhere; }
.fix-said.bad { color:var(--red); }
.fix-said.wait { color:inherit; font-weight:400; }
[data-save][hidden] { display:none; }
.fix-form input, .fix-form select { max-width:100%; }
.fix-form select, .upload-row select { width:100%; min-height:48px; }
.rev { min-width:0; overflow-wrap:anywhere; }

/* Screen D: reading the plans. Cards per fixture, two across on a phone. */
.reading { margin:0 0 18px; }
.fx-group { margin:18px 0; }
.fx-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; }
.fx-card { min-width:0; padding:10px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.fx-card.fx-unsure { border:2px solid var(--warn-fg); background:var(--warn-bg); }
.fx-card.fx-out { opacity:.65; }
.fx-card summary { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-height:44px; cursor:pointer; list-style:none; }
.fx-card summary::-webkit-details-marker { display:none; }
.fx-icon { width:36px; height:36px; color:var(--blue); flex:none; }
.fx-count { font-size:30px; font-weight:700; line-height:1; }
.fx-label { flex-basis:100%; font-weight:600; overflow-wrap:anywhere; }
.fx-more { margin-top:6px; overflow-wrap:anywhere; }
.rv-source { margin-top:8px; padding-top:6px; border-top:1px solid var(--line); font-size:18px; }
.rv-source p { margin:4px 0; }
.rv-src-lines { margin:4px 0; padding-left:20px; }
.stepper { display:flex; gap:6px; margin-top:8px; }
.stepper button { flex:1 1 44px; min-width:44px; min-height:44px; padding:4px; font:inherit; font-weight:700; background:var(--card); color:inherit; border:1px solid var(--ink); border-radius:6px; cursor:pointer; }
.stepper button.ok { flex:2 1 auto; color:var(--on-fill); background:var(--fill); border-color:var(--fill); }
.fx-add { width:100%; min-height:44px; margin-top:6px; padding:6px; font:inherit; font-size:14px; color:var(--blue); background:none; border:1px dashed var(--blue); border-radius:6px; cursor:pointer; }
.fx-building { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; padding:6px 0; border-bottom:1px solid var(--line); }
.fx-building .stepper { margin:0; min-width:170px; }
.fx-building .fx-icon { width:24px; height:24px; vertical-align:middle; }
.fx-added { margin:18px 0; padding:12px; border:2px dashed var(--blue); border-radius:8px; }
.fx-notes { margin:14px 0; }
.fx-notes h4 { margin:12px 0 4px; }
.q-card.q-open { border:2px solid var(--blue); }
.q-text { margin:0 0 6px; font-weight:600; overflow-wrap:anywhere; }
.q-options { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.q-option { flex:1 1 130px; min-height:44px; padding:8px; font:inherit; color:inherit; background:var(--card); border:1px solid var(--ink); border-radius:6px; cursor:pointer; }
.q-option.on { color:var(--on-fill); background:var(--fill); border-color:var(--fill); font-weight:700; }
.q-option.suggested { border:2px solid var(--blue); font-weight:700; }  /* IN1: BluePlan's reading, still the person's tap */
.ir-card { border-top:1px solid var(--line); padding-top:8px; margin-top:8px; }

/* Upload first: one button on the jobs page. The file box hides behind its label, which is the button, so the phone's picker opens on one tap. */
.upload-first { margin:10px 0 16px; }
.upload-pick { margin-top:0; font-size:18px; }
.upload-input { position:absolute; width:1px; height:1px; min-height:0; padding:0; overflow:hidden; clip:rect(0 0 0 0); border:0; }
.upload-input:focus-visible + .small, .upload-pick:focus-within { outline:3px solid var(--blue); outline-offset:2px; }
.upload-first.js #upload-send { display:none; }
.auto-upload.js [data-upload-send] { display:none; }  /* auto-upload.js sends the file when it is chosen */
[data-upload-progress][hidden], [data-upload-said][hidden] { display:none; }
/* Forms that keep the picked files (auto-upload.js data-keep / data-multi, rule 35): one row per file, its bar and a clear mark under it */
.upl-item { margin:8px 0 0; overflow-wrap:anywhere; }
.upl-item .progress[hidden], .upl-mark[hidden], .upl-open[hidden] { display:none; }
.upl-mark { margin:4px 0 0; font-size:18px; font-weight:700; }
.upl-mark.ok { color:var(--ok-fg); }
.upl-mark.bad { color:var(--red); }
.upl-mark.wait { color:var(--ink); font-weight:600; }
/* OB-UX F1 + F2 (W4): the partner's papers, one at a time; the open one is a card with one big picker (the label is the button) */
.ob-paper { margin:12px 0; padding:12px 16px; border:1px solid var(--line); border-radius:8px; overflow-wrap:anywhere; }
.ob-paper h3 { margin:0 0 6px; font-size:19px; }
.ob-paper.ob-open { border:2px solid var(--accent); padding:16px; }
.ob-paper-sent .ob-mark { color:var(--ok-fg); }
.ob-paper-later { background:var(--soft); }
.ob-paper-later .ob-mark, .ob-paper-next .ob-mark { color:var(--mid); }
.ob-paper-now .ob-mark { color:var(--link); }
.ob-sent { font-weight:700; color:var(--ok-fg); font-size:18px; margin:4px 0; }
.ob-pick { position:relative; display:flex; align-items:center; justify-content:center; width:100%; min-height:56px; font-size:19px; font-weight:700; cursor:pointer; box-sizing:border-box; white-space:normal; }
.ob-pick input[type="file"] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.ob-pick-form .btn[data-upload-send] { margin-top:8px; }
.ob-later { display:block; min-height:48px; margin-top:8px; font-size:18px; }
.ob-links a { display:inline-block; min-height:48px; line-height:48px; font-size:18px; }
/* UX35-W4 (rule 35(c), 2026-11-13): the crew papers page reads like the partner page: 18px text, 17px+ help in the normal colour, 48px taps,
   the step cards of .ob-paper; the I-9 help line (the words they can read) as big as the English above it */
.ob-crew { font-size:18px; line-height:1.5; }
.ob-crew h2 { font-size:21px; margin:0 0 6px; }
.ob-crew .small { font-size:18px; color:inherit; }
.ob-crew .i9-help { display:inline-block; font-size:18px; color:inherit; }
.ob-crew input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .ob-crew select { font-size:18px; min-height:48px; box-sizing:border-box; }
.ob-crew input[type="checkbox"], .ob-crew input[type="radio"] { width:24px; height:24px; vertical-align:middle; }
.ob-crew .btn { min-height:48px; font-size:18px; }
.ob-crew .ob-stepno { font-weight:700; color:var(--link); margin:0 0 8px; }
.ob-crew .ob-paper-done .ob-mark { color:var(--ok-fg); }
.ob-crew .lang-switch a, .ob-crew .lang-switch b { display:inline-block; min-height:48px; line-height:48px; padding:0 6px; }
/* UX-AUDIT-9: the I-9 in 5 labeled parts (one shows at a time with scripts), the "checked, not kept" line beside the secret boxes,
   the Continue / Back row, the help line at the end */
.ob-crew .ob-part { border:0; margin:0 0 8px; padding:0; min-width:0; }
.ob-crew .ob-part[hidden], .ob-crew .ob-helper-box[hidden], .ob-crew .ob-part-go[hidden] { display:none; }
.ob-crew .ob-part-name { font-weight:700; font-size:19px; color:var(--link); padding:0; margin:8px 0 4px; }
.ob-crew .ob-kept { background:var(--soft); border-left:4px solid var(--accent); padding:8px 12px; margin:8px 0; }
.ob-crew .ob-part-go { display:flex; gap:12px; flex-wrap:wrap; margin:12px 0 0; }
.ob-crew .ob-part-go .ui-btn { min-height:48px; font-size:18px; flex:1 1 auto; }
.ob-crew #ob-crew-help { margin:16px 0; }
.ob-crew #ob-crew-help a { display:inline-block; min-height:48px; line-height:1.5; padding:12px 0; }
.ob-pick.ob-wait { opacity:.55; }
.ob-idcopy-form { margin:10px 0; }
/* UX35-W4 part 3: the same ID photo pick on the Bench card and the hire's job card (templates/_idcopy_pick.html): 18 px words, 48 px taps */
.idc-pick { font-size:18px; line-height:1.5; }
.idc-pick select { font-size:18px; min-height:48px; box-sizing:border-box; max-width:100%; }
.idc-pick .btn { min-height:48px; font-size:18px; }
.ob-pick input[type="file"]:disabled { pointer-events:none; }  /* no paper yet: the tap reaches the button, which goes to the paper pick */
.upload-progress[hidden] { display:none; }
/* OB-UX F3 + F4 (W3 2026-11-13, spec W4-ob-ux.md section 1): the partner onboarding page only (<div class="ob">), so staff pages stay the same.
   Big, plain and high-contrast for older partners on a phone; long words wrap, never cut (Russian fits at 320px); no fixed widths. */
/* OB-UX-CODEX Must 1 (Codex review 2026-11-17): no automatic hyphens ("Blue-Lam", "de-cline"); a word longer than the line still wraps */
.ob { font-size:18px; line-height:1.5; white-space:normal; -webkit-hyphens:manual; hyphens:manual; overflow-wrap:break-word; }
.ob h1 { font-size:26px; line-height:1.25; margin:8px 0 12px; }
.ob h2 { font-size:22px; font-weight:700; line-height:1.3; margin:0 0 8px; }
.ob h3 { font-size:19px; font-weight:700; line-height:1.35; margin:0 0 8px; }
.ob h4 { font-size:18px; font-weight:700; line-height:1.35; margin:0 0 8px; }
/* PROPOSAL-ESIGN-PAY P1: the proposal sign page (psign.html, inside .ob): each option row is one big tap (the whole label), the notice
   set apart, the total large */
/* MVP9-P8 (deck page 8): the deposit amount on the signed page, large like the deck */
.ps-dep-amt { font-size:2rem; font-weight:700; margin:4px 0 8px; }
.ps-mail p { font-size:18px; overflow-wrap:anywhere; } /* GOLIVE-P1A-F6: the signed copy email lines on Signed proposals (rule 35: 18 px) */
.ps-group { border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin:0 0 14px; min-width:0; }
.ps-group legend { font-weight:700; padding:0 4px; }
.ps-opt { display:flex; align-items:center; gap:12px; min-height:48px; padding:4px 0; cursor:pointer; }
.ps-opt input { width:24px; height:24px; flex:none; margin:0; }
/* pass-2 Must 1: beats the shared `.ob input:not(...)` full-width rule (0,4,1) on the sign page only, so a radio stays a 24 px dot */
.ob.ps .ps-opt input[type="radio"]:not([type="hidden"]) { display:inline-block; width:24px; height:24px; min-height:0; padding:0; flex:none; margin:0; }
.ps-opt span { flex:1 1 0; min-width:0; white-space:normal; overflow-wrap:anywhere; }
.ps-notice { border-left:4px solid var(--line-strong); padding-left:12px; margin:0 0 14px; }
/* PROPOSALS-V2 B3 (mockup screen 5): the install-day chips, one tap each (a button per day), 48 px tall like .ps-opt, two or three to a
   row at 320 px; the asked day filled. What happens next is a plain numbered list. */
.ps-chips { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 14px; }
.ob.ps .ps-chip { flex:0 1 auto; min-height:48px; min-width:0; padding:10px 14px; font:inherit; font-size:18px; font-weight:600; color:var(--blue);
  background:var(--card); border:2px solid var(--blue); border-radius:24px; cursor:pointer; white-space:nowrap; }
.ob.ps .ps-chip.is-on { color:var(--on-fill); background:var(--fill); }
.ob.ps .ps-chip-none { white-space:normal; color:var(--ink); border-color:var(--line); }
.ob.ps .ps-chip-none.is-on { color:var(--title); background:var(--tint-strong); border-color:var(--mid); }
.ob.ps .ps-chip:disabled { cursor:default; opacity:.7; }
.ps-next ol { margin:0 0 14px; padding-left:24px; }
.ps-next li { margin:0 0 6px; }
.ps-total { font-size:22px; font-weight:700; }
/* MVP8-DECK7 (deck page 7): Included / Not included boxes on the sign page's Read step, 18 px like the rest of the page */
.ps-box { background:var(--soft); border:1px solid var(--info-border); border-radius:10px; padding:12px 14px; margin:0 0 14px; }
.ps-box h3 { margin:0 0 6px; font-size:19px; }
.ps-box ul { margin:0; padding-left:22px; }
.ps-box li { margin:0 0 6px; overflow-wrap:anywhere; }
.ps-box p { margin:6px 0 0; }
.ps-version { font-weight:700; margin:0 0 10px; }
/* PROPOSALS-V2 B1 (mockup screen 2): the job and its price on top, check-marked Included lines, Ask a question / Request a change */
.ps-head { margin:0 0 14px; }
.ps-job { font-size:20px; font-weight:700; margin:0; overflow-wrap:anywhere; }
.ps-addr { margin:2px 0 6px; color:var(--mid); overflow-wrap:anywhere; }
.ps-price { font-size:32px; font-weight:800; margin:4px 0 6px; color:var(--ink); }
.ps-ticks ul { list-style:none; padding-left:0; }
.ps-ticks li::before { content:"\2713"; font-weight:700; margin-right:8px; color:var(--ok-fg); }
.ps-reg { font-size:18px; color:var(--mid); margin:0 0 12px; overflow-wrap:anywhere; }
.ps-ask { margin:16px 0 0; }
.ob.ps .ob-dir { font-size:18px; color:var(--ink); }  /* pass-1 Must 3: directions on the customer page 18 px, dark (rule 35(c)) */
.ps-ask-one { margin:0 0 10px; }
.ps-ask-one > summary { display:flex; align-items:center; justify-content:center; min-height:48px; list-style:none; cursor:pointer; }
.ps-ask-one > summary::-webkit-details-marker { display:none; }
.ps-ask-one textarea { width:100%; box-sizing:border-box; font-size:18px; min-height:110px; }
.ps-ask-text { white-space:pre-line; overflow-wrap:anywhere; }
.pp-asked { overflow-wrap:anywhere; }
.ps-decide { display:flex; flex-wrap:wrap; gap:12px; }
.ps-self { font-size:18px; overflow-wrap:anywhere; } /* FU-F7-UNDO: the signed-by-itself line above Not them (rule 35: 18 px) */
.ob p { margin:0 0 12px; }
.ob .small, .ob .ob-dir { font-size:17px; color:var(--mid); }
.ob .ob-intro { font-size:18px; }
.ob .lang-switch, .offer-lang { font-size:18px; }
.ob .lang-switch a, .offer-lang a { display:inline-block; min-height:48px; line-height:48px; padding:0 6px; }
.ob input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]) { display:block; width:100%; max-width:100%; min-height:52px; box-sizing:border-box; margin:4px 0 0; padding:10px 12px; font-size:18px; }
.ob .btn { min-height:56px; width:100%; box-sizing:border-box; font-size:19px; font-weight:700; white-space:normal; }
.ob .btn:not(.second) { color:var(--on-fill); background:var(--fill); }
.ob .btn-plain { min-height:48px; font-size:18px; white-space:normal; }
.ob .ob-steps { margin:8px 0 16px; padding:12px 14px; background:var(--soft); border-radius:8px; }
.ob .ob-step-of { margin:0 0 8px; font-size:19px; font-weight:700; }
.ob .ob-rows { list-style:none; margin:0; padding:0; }
.ob .ob-row { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; min-height:40px; margin:4px 0; }
.ob .ob-dot { display:inline-flex; align-items:center; justify-content:center; flex:none; width:30px; height:30px; border-radius:50%; font-weight:700; box-sizing:border-box; }
.ob .ob-row-done .ob-dot { color:var(--on-fill); background:var(--ok-solid); }
.ob .ob-row-now .ob-dot { color:var(--on-fill); background:var(--fill); }
.ob .ob-row-open .ob-dot { color:var(--link); background:var(--card); border:2px solid var(--accent); }
.ob .ob-row-later .ob-dot { color:var(--mid); background:var(--card); border:2px solid var(--line-strong); }
.ob .ob-row-name { flex:1 1 8em; min-width:0; }
.ob .ob-row-now .ob-row-name { font-weight:700; }
.ob .ob-word { font-weight:700; }
.ob .ob-row-done .ob-word { color:var(--ok-fg); }
.ob .ob-row-now .ob-word { color:var(--link); }
.ob .ob-row-open .ob-word { color:var(--link); }
.ob .ob-row-later .ob-word { color:var(--mid); font-weight:600; }
.ob .ob-step { margin:24px 0 0; padding-top:16px; border-top:1px solid var(--line); }
.ob .ob-fold { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 12px; margin:0; }
.ob .ob-fold .ob-dir { flex-basis:100%; font-size:18px; }  /* FU-OBUXF34 (a): the 'Still to send' line takes its own row, 18 px (rule 35c) */
.ob .ob-tick { font-weight:700; color:var(--ok-fg); }
.ob .ob-change { display:inline-block; min-height:48px; line-height:48px; font-size:18px; font-weight:600; }
.ob label { font-size:18px; }
.ob .ob-field label { display:block; font-weight:600; }
.ob .ob-err { display:block; margin:0 0 4px; color:var(--danger); font-weight:700; }
.ob .ob-check label { display:flex; align-items:flex-start; gap:12px; min-height:48px; padding:8px 0; font-weight:600; cursor:pointer; }
.ob .ob-check input[type="checkbox"] { flex:none; width:28px; height:28px; margin:0; }
.ob .ob-consent { font-size:17px; color:var(--ink); }
.ob.ps .ob-consent { font-size:18px; }  /* PROPOSALS-V2 B2: the customer page's consent words 18 px like the rest (rule 35(c)) */
/* F3: the locked summary and agreement, laid out (onboard.layout): headings, sections with a thin line, lists with a hanging indent */
.ob .ob-doc { margin:8px 0 20px; }
/* OB-UX-CODEX Must 4 + Should 2: each summary section clearly apart, headings sized and spaced, text easy to read. Layout only: the words are
   the package's, as loaded (onboard.layout) */
.ob .ob-doc .ob-sec + .ob-sec { margin-top:28px; padding-top:24px; border-top:2px solid var(--line); }
.ob .ob-doc p, .ob .ob-doc li { line-height:1.6; }
.ob .ob-doc h3 { font-size:21px; line-height:1.3; margin:0 0 12px; color:var(--link); }
.ob .ob-doc h3.ob-title { font-size:22px; color:var(--ink); }
.ob .ob-doc h4 { font-size:19px; line-height:1.3; margin:24px 0 8px; color:var(--link); }
.ob .ob-doc h3.ob-head { text-transform:lowercase; }
.ob .ob-doc h3.ob-head::first-letter { text-transform:uppercase; }
/* OB-UX-CODEX Must 3: a stable left gutter (a thin band) and right padding instead of the hanging indent, so a list item wraps inside the
   content area at 320 px without crowding the edge; Must 4: space between items */
.ob .ob-list { list-style:none; margin:0 0 16px; padding:0; }
.ob .ob-list li { margin:0 0 12px; padding:10px 12px 10px 14px; text-indent:0; background:var(--card); border-left:4px solid var(--line); border-radius:0 6px 6px 0; }
.ob .ob-agreement, .ob .ob-agreement p, .ob .ob-agreement li { font-size:17px; color:var(--ink); }
.ob .ob-full summary { min-height:48px; line-height:48px; font-size:18px; font-weight:600; color:var(--link); cursor:pointer; }
/* OB-UX-CODEX Should 3: room around each initial box; the initials field set apart under the box text so it is easy to find */
.ob .ob-box { margin:28px 0; padding:18px 16px 16px; border:2px solid var(--line); border-radius:8px; }
.ob .ob-box > h3 { margin:0 0 12px; }
.ob .ob-box-text { margin:0 0 16px; }
.ob .ob-box-text .ob-list li { background:none; padding:0 0 0 12px; border-left-width:3px; border-radius:0; }
.ob .ob-box .ob-init { margin:0; padding:14px 0 0; border-top:2px dashed var(--line); }
.ob .ob-init input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]) { width:7em; font-size:22px; letter-spacing:.05em; }
.ob .ob-still { font-weight:700; }
/* OB-UX-CODEX Must 2: "Got it, thanks." and the other saved lines read as a short status, never as a bordered control like a button */
.ob p.ok { margin:4px 0 12px; padding:0; border:0; border-radius:0; background:none; color:var(--ok-fg); font-weight:700; }
.ob p.ok::before { content:"✓ "; }
.upload-files { margin:8px 0 0; padding-left:18px; overflow-wrap:anywhere; }
.upload-files li.bad { color:var(--red); }

/* The job page as the landing page's sample card: status pill, documents, a working line, unclear items, then the result tiles. */
.job-card { max-width:680px; min-width:0; }
.status-line { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin:0 0 12px; }
.status-line > div { min-width:0; }
.status-line h1 { overflow-wrap:anywhere; }
.status-line h1 .tag { font-size:13px; vertical-align:middle; }
.pill { flex:none; margin-top:6px; padding:5px 10px; font-size:13px; font-weight:800; border-radius:999px; background:var(--soft); color:var(--blue-dark); white-space:nowrap; }
.pill-ready { background:var(--ok-bg); color:var(--ok-fg); }
.pill-stopped { background:var(--warn-bg); color:var(--warn-fg); }
.docs-box { padding:14px; margin:0 0 12px; background:var(--card); border:2px dashed var(--line); border-radius:14px; min-width:0; }
/* DECK3 (MVP deck page 3): the green "Job created / Plans attached (N) / Preparing your draft" card in the job page's documents box while
   BluePlan reads a just-uploaded job, with the "We flag missing facts that change the price." line under it. 18 px, dark green on pale green. */
.job-started { margin:0 0 12px; }
.job-started .ui-card { margin:0 0 6px; background:var(--ok-bg); border:1px solid var(--ok-border); }
.job-started .ui-card-head h3 { margin:0; font-size:20px; color:var(--ok-fg); }
.job-started .ui-card-line { margin:4px 0 0; font-size:18px; line-height:1.35; color:var(--ok-fg); }
.job-started-note { margin:0; font-size:18px; line-height:1.35; color:var(--ink); }
.doc-lines { margin:6px 0; padding-left:18px; overflow-wrap:anywhere; }
.working { margin:6px 0 0; font-weight:700; }
.unclear { padding:4px 14px 10px; margin:0 0 12px; background:var(--warn-bg); border:2px solid var(--warn-fg); border-radius:10px; }
.unclear h2 { margin-top:10px; }
.unclear ul { margin:6px 0; padding-left:18px; }
.unclear li { margin:8px 0; overflow-wrap:anywhere; }
.unclear .src, .facts .src { font-size:14px; color:var(--mid); }
.unclear .q-options { margin:6px 0 0; }
/* Two tiles across, and the price on its own row, so a price with cents fits a 320 px screen. Three across from 480 px. */
.metric-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin:0 0 10px; }
.metric-price { grid-column:1 / -1; }
@media (min-width:480px) { .metric-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); } .metric-price { grid-column:auto; } }
.metric { display:block; min-width:0; padding:10px 8px; color:inherit; text-decoration:none; border:1px solid var(--line); border-radius:10px; }
.metric strong { display:block; font-size:22px; line-height:1.15; overflow-wrap:anywhere; }
a.metric strong { font-size:22px; color:var(--blue); white-space:nowrap; }
.metric small { display:block; font-size:13px; color:var(--mid); }
.unclear .q-options { gap:6px; }
.unclear .q-option { flex:1 1 auto; min-height:44px; padding:6px 10px; font-size:15px; }
.unclear.gnx .q-option { flex:1 1 130px; min-height:48px; padding:10px 12px; font-size:18px; display:flex; align-items:center; justify-content:center; text-align:center; text-decoration:none; }  /* MVP5-P4: rule 35, 48 px / 18 px answers; the link answer looks like the buttons */
.gnx-q { margin:4px 0; font-size:18px; }
.unclear.gnx .small, .unclear.gnx .tag, .unclear.gnx h2 { font-size:18px; color:var(--ink); }  /* MVP5-P4 pass-1 Must 1: rule 35(c), no small grey words on the card */
.unclear.gnx p.small > a { display:inline-flex; align-items:center; min-height:48px; }  /* its text links get a 48 px tap area */
.unclear.gnx .gnx-head { margin:0 0 6px; }  /* MVP5-P4 look (deck page 4): the status chip is the card's heading */
.unclear.gnx .ui-chip { font-size:18px; }
.unclear.gnx .gnx-q { font-size:22px; line-height:1.25; margin:8px 0; overflow-wrap:anywhere; }
.gnx-answers { display:grid; gap:10px; margin:12px 0 4px; }
.unclear.gnx .ui-btn { font-size:18px; text-decoration:none; text-align:center; overflow-wrap:anywhere; }  /* full-width, 48 px, outlined: equal answers, none picked */
.facts .row > :first-child { flex:0 1 auto; min-width:0; }
.facts .row > :last-child { flex:0 0 auto; max-width:60%; }
/* Evidence: tap a sheet or cell to see it */
a.ev-link { display:inline-flex; align-items:center; min-height:44px; padding:2px 10px; margin:2px 0; font-weight:600; color:var(--blue); background:var(--card); border:1px solid var(--blue); border-radius:6px; text-decoration:none; overflow-wrap:anywhere; }
.facts a.ev-link, .unclear a.ev-link { font-size:14px; }
.ev-title { margin-bottom:2px; overflow-wrap:anywhere; }
.ev-where { margin:0 0 10px; font-weight:700; overflow-wrap:anywhere; }
.ev-pic { display:block; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:var(--plate); }
.ev-pic img { display:block; width:100%; height:auto; }
.ev-value { font-size:20px; font-weight:700; }
.ev-scroll { max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line); border-radius:6px; }
.ev-cells { border-collapse:collapse; font-size:14px; }
.ev-cells th, .ev-cells td { padding:6px 8px; border:1px solid var(--line); text-align:left; vertical-align:top; max-width:12em; overflow-wrap:anywhere; }
.ev-cells th { background:var(--soft); color:var(--mid); font-weight:600; }
.ev-cells td.ev-hit, .ev-lines li.ev-hit { background:var(--warn-bg); outline:3px solid var(--warn-fg); outline-offset:-3px; font-weight:700; }
.ev-lines { padding-left:0; list-style:none; }
.ev-lines li { padding:6px 8px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
/* What changed after a new revision */
.changes { padding:4px 14px 10px; margin:0 0 12px; background:var(--info-bg); border:2px solid var(--blue); border-radius:10px; }
.changes h2 { margin-top:10px; }
.changes h3 { margin:10px 0 2px; font-size:16px; overflow-wrap:anywhere; }
.chg-list { margin:4px 0; padding-left:0; list-style:none; }
.chg-list li { padding:6px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.chg-list li p { margin:2px 0; }
.chg-list .q-option { flex:1 1 auto; min-height:44px; padding:6px 10px; font-size:15px; }

/* The one progress bar (templates/_progress.html, static/progress.js): a real percent beside the step, "Reading sheet 12 of 23 · 47%".
   No bar until the total is known, and never a bouncing or pulsing one. Fits 320 px: the bar is the box's width and the words wrap. */
.progress { margin:10px 0 0; min-width:0; }
.progress:first-child { margin-top:0; }
.pbar { display:block; width:100%; height:12px; margin:0 0 6px; padding:0; -webkit-appearance:none; -moz-appearance:none; appearance:none;
  background:var(--card); color:var(--blue); border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.pbar[hidden] { display:none; }
.pbar::-webkit-progress-bar { background:var(--card); border-radius:6px; }
.pbar::-webkit-progress-value { background:var(--accent); border-radius:5px 0 0 5px; transition:width .3s ease; }
.pbar::-moz-progress-bar { background:var(--accent); border-radius:5px 0 0 5px; }
.progress-text { margin:0; font-weight:700; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.progress-text:empty { display:none; }
@media (prefers-reduced-motion: reduce) { .pbar::-webkit-progress-value { transition:none; } }
/* Screen G: won or lost, and the job's stage */
.decision-box { padding:14px; margin-bottom:12px; border:1px solid var(--ink); border-radius:8px; }
.decision-box h2 { margin:6px 0 4px; }
.decision-box .decide .q-option { flex:1 1 110px; min-height:52px; font-size:18px; font-weight:700; }
.stage-path { display:flex; flex-wrap:wrap; gap:4px; margin:0 0 8px; padding:0; list-style:none; font-size:14px; }
.stage-path li { flex:1 1 0; min-width:0; padding:5px 6px; text-align:center; border-radius:4px; background:var(--soft); color:var(--mid); overflow-wrap:anywhere; }
.stage-path li.done { background:var(--soft); color:var(--blue-dark); }
.stage-path li.now { background:var(--fill); color:var(--on-fill); font-weight:700; }
.stage-path li.now.won { background:var(--ok-solid); }
.stage-path li.now.lost { background:var(--danger-solid); }
.lost-details { display:grid; gap:4px; margin-top:10px; }
.lost-details input, .lost-details textarea { width:100%; box-sizing:border-box; font:inherit; min-height:44px; }
.lost-details .btn { justify-self:start; margin-top:6px; }
.linklike { min-height:44px; padding:8px 0; font:inherit; color:var(--blue-dark); background:none; border:0; text-decoration:underline; cursor:pointer; }
.stage-nav { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 14px; padding:0; list-style:none; }
#jobs-stage .stage-nav { flex-wrap:nowrap; gap:8px; overflow-x:auto; scroll-snap-type:x proximity; padding:2px 24px 2px 0; -webkit-overflow-scrolling:touch;
  -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 24px), transparent); }  /* JOBS-COMPACT: one row, fades at the right edge = more to scroll */
#jobs-stage .stage-nav li { flex:0 0 auto; scroll-snap-align:start; }
.stage-nav a { display:inline-block; min-height:44px; box-sizing:border-box; padding:11px 12px; font-size:14px; color:var(--ink); text-decoration:none; border:1px solid var(--ink); border-radius:18px; background:var(--card); }
.stage-nav a[aria-current="page"] { color:var(--on-fill); background:var(--fill); border-color:var(--fill); font-weight:700; }
/* Screen I, Job Outcome Record */
.outcome-badge { display:inline-block; padding:4px 12px; border-radius:6px; font-weight:700; color:var(--title); background:var(--tint-strong); }
.outcome-badge.won { color:var(--on-fill); background:var(--ok-solid); }
.outcome-badge.lost { color:var(--on-fill); background:var(--danger-solid); }
.outcome-facts, .outcome-actuals, .outcome-history { margin:16px 0; }
.outcome-facts h3, .outcome-actuals h3 { margin:14px 0 4px; font-size:17px; }
.outcome-form label { display:block; margin-top:10px; }
.outcome-form input:not([type=radio]) { width:100%; max-width:320px; box-sizing:border-box; min-height:44px; font-size:16px; }
.outcome-compare ul { padding-left:20px; margin:6px 0; }
.change-row { display:flex; justify-content:space-between; gap:8px; align-items:flex-start; padding:6px 0; border-bottom:1px solid var(--line); }
.change-row > span:first-child { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; text-align:left; }
.change-row > form { flex:none; }
.change-add fieldset { border:0; padding:0; margin:10px 0; }
.outcome-form .tag-pick { display:flex; align-items:center; gap:6px; margin:0; }
.outcome-form .tag-pick input { flex:none; width:22px; height:22px; min-height:0; margin:0; padding:0; }
.tag-pick:has(input:checked) { color:var(--on-fill); background:var(--fill); border-color:var(--fill); font-weight:700; }
.outcome-history ol { padding-left:20px; }
.outcome-history li { overflow-wrap:anywhere; }
.outcome-facts .row > :first-child, .outcome-actuals .row > :first-child { flex:0 1 auto; min-width:0; overflow-wrap:anywhere; }
.outcome-facts .row > :last-child, .outcome-actuals .row > :last-child { min-width:0; overflow-wrap:anywhere; }
.removed { margin:8px 0; }

/* Screen H: invoices */
.invoice-card { margin: 1rem 0; }
.invoice-card.next { border-left: 4px solid var(--accent); padding-left: .6rem; }
.inv-status { margin: .2rem 0 .4rem; }
.inv-status.approved, .inv-status.sent { color: var(--ok-fg); }
.inv-history summary { cursor: pointer; }
.inv-setting { overflow-wrap: anywhere; }
.draft-lang { margin:0; padding:8px 16px; background:var(--warn-bg); border-bottom:1px solid var(--warn-border); font-size:.9em; }
/* T1: crew on a job, one tap per person */
.crew { margin:16px 0; }
.crew-said p { margin:0 0 4px; }
.crew-people .q-option { display:flex; flex-direction:column; align-items:flex-start; text-align:left; overflow-wrap:anywhere; }
.crew-people .q-option small { font-weight:400; }
.crew-list { margin:6px 0; padding-left:20px; }
.crew-log summary { min-height:44px; padding:10px 0; cursor:pointer; }
.field-work { margin:16px 0; }
.fw-inspection, .fw-photo { display:flex; flex-direction:column; gap:6px; margin:8px 0 12px; }
.fw-inspection select, .fw-inspection textarea, .fw-photo input { max-width:100%; min-height:44px; }
.fw-results, .fw-photos { margin:6px 0; padding-left:0; list-style:none; }
.fw-results li, .fw-photos li { padding:8px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.fw-photos img { display:block; max-width:100%; height:auto; max-height:320px; margin-bottom:4px; }
/* FIX #24: Edit and Remove under each alternate, two full taps side by side; Undo right after a remove */
.alt-actions { display:flex; gap:8px; margin:4px 0 12px; }
.alt-actions > * { flex:1 1 0; margin:0; }
.alt-actions form .btn, .alt-actions .btn { width:100%; margin:0; }
.undo-line { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.undo-line .btn { margin:0; }
.facts.lines.alt-list .row > span { flex:1 1 auto; min-width:0; white-space:normal; font-weight:400; }  /* the row's one line wraps on a phone */
/* FIX #24 item 3: the alternate questions BluePlan filled, and the R-value box shown only when insulation changes */
.q[hidden] { display:none; }
.filled-tag { margin-left:6px; font-weight:400; }
.filled-line { color:var(--muted, #555); }
/* #37 Team screen */
.team-people { list-style:none; margin:0 0 18px; padding:0; max-width:620px; }
.team-person { padding:10px 0 14px; border-bottom:1px solid var(--line); }
.team-person.off { opacity:.7; }
.team-person p { margin:4px 0; overflow-wrap:anywhere; }
.team-actions { display:flex; flex-wrap:wrap; gap:0 10px; }
.team-actions form { flex:1 1 140px; }
/* CERT-TEAM: a field tech's plumber certificate on Team */
.team-cert { margin:10px 0 4px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; }
.team-cert h3 { margin:0 0 6px; font-size:1rem; }
.team-cert-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px 10px; }
.team-cert-form label { flex:1 1 100%; margin:0; }
.team-cert-form select, .team-cert-form input[type=date] { flex:1 1 160px; min-height:48px; font:inherit; }
/* TEAM-V3 A1: the Team list (round initials, role badge, chevron), Add a person role cards, a person's page facts */
.team-top { display:flex; flex-direction:column; gap:8px; max-width:620px; margin:0 0 14px; }
.team-h { font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; color:var(--blue); margin:16px 0 6px; }
.team-needs, .team-rows, .team-facts { list-style:none; margin:0 0 10px; padding:0; max-width:620px; }
.team-need { padding:10px 12px; border:1px solid var(--line); border-radius:8px; margin:0 0 8px; }
.team-need p { margin:0 0 6px; overflow-wrap:anywhere; }
.team-row-item { border-bottom:1px solid var(--line); }
.team-row-item.off { opacity:.7; }
.team-row { display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 0; color:inherit; text-decoration:none; }
.team-av { flex:0 0 40px; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700;
  background:var(--hero-bg); color:var(--title); font-size:.9rem; }
.team-av.waiting { background:var(--tint-strong); }
.team-av.big { flex-basis:56px; width:56px; height:56px; font-size:1.1rem; }
.team-row-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.team-row-name { overflow-wrap:anywhere; }
.team-row-line { overflow-wrap:anywhere; }
.team-chev { flex:0 0 auto; font-size:1.4rem; color:var(--mid); }
.team-badge-invited, .team-badge-off { background:var(--tint-strong); color:var(--title); }
/* TEAM-V3 B1: fix a wrong email of someone who has not joined (person page), and its link under Needs you */
.team-email { display:flex; flex-direction:column; gap:6px; padding:8px 0; }
.team-email label { font-weight:700; margin:0; }
.team-email input[type=email] { min-height:48px; font:inherit; width:100%; box-sizing:border-box; }
.team-email input[type=tel] { min-height:48px; font:inherit; width:100%; box-sizing:border-box; } /* TEAM-V3 B4 */
.team-email p { margin:0; }
.team-email .team-actions { gap:8px 10px; }
.team-email .team-actions .ui-btn { flex:1 1 160px; }
.team-fix { display:inline-block; min-height:44px; line-height:44px; }
.team-roles { border:0; padding:0; margin:12px 0; display:grid; grid-template-columns:1fr 1fr; gap:8px; max-width:620px; }
/* S3-TEAM-V2: the role chips (Field tech / Office / Owner) in one row of pills, More roles folded under them */
.team-roles:has(.team-role-chips) { display:block; }
.team-role-chips { display:flex; flex-wrap:wrap; gap:8px; }
.team-role-card.team-chip { flex-direction:row; align-items:center; min-height:44px; padding:0 16px; border-radius:999px; }
.team-more-roles { margin:4px 0 0; }
.team-more-roles summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--blue-dark); font-weight:600; }
/* S3-TEAM-V2 A2: the More role that is picked shows on the summary (nth label = nth name), so a closed fold never hides it */
.team-more-picked > span { display:none; font-weight:400; }
.team-more-roles:has(.team-chip:nth-child(1) input:checked) .team-more-picked > span:nth-child(1),
.team-more-roles:has(.team-chip:nth-child(2) input:checked) .team-more-picked > span:nth-child(2),
.team-more-roles:has(.team-chip:nth-child(3) input:checked) .team-more-picked > span:nth-child(3),
.team-more-roles:has(.team-chip:nth-child(4) input:checked) .team-more-picked > span:nth-child(4) { display:inline; }
.team-roles legend { font-weight:700; margin:0 0 6px; padding:0; }
.team-role-card { position:relative; display:flex; flex-direction:column; gap:2px; min-height:56px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; margin:0; cursor:pointer; }
.team-role-card input { position:absolute; opacity:0; width:1px; height:1px; }
.team-role-card:has(input:checked) { border:2px solid var(--blue-dark); background:var(--soft); }
.team-role-card:has(input:focus-visible) { outline:2px solid var(--blue-dark); outline-offset:2px; }
.team-role-name { font-weight:700; overflow-wrap:anywhere; }
.team-who { display:flex; align-items:center; gap:12px; margin:6px 0 10px; }
/* TEAM-V3 B2: Remove (mockup: a full-width red outline button, the note under it), the Removed fold with Put back, a removed person's page */
.team-remove { margin:18px 0 0; max-width:620px; }
.team-remove .ui-btn-danger { width:100%; background:var(--card); color:var(--ui-danger); }
.team-remove p { margin:6px 0 0; text-align:center; }
.team-removed { margin:14px 0 0; max-width:620px; }
.team-removed > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; }
.team-removed .team-row-item { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
.team-removed .team-row { flex:1 1 220px; min-width:0; }
.team-put-back { margin:0 0 8px; }
.team-gone { max-width:620px; }
.team-gone .ui-btn { width:100%; }
.team-who h1 { margin:0; overflow-wrap:anywhere; }
.team-who p { margin:2px 0 0; }
.team-fact { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; padding:10px 0; border-bottom:1px solid var(--line); }
.team-fact > span { overflow-wrap:anywhere; min-width:0; }
.team-facts > li:not(.team-fact) { padding:6px 0; }
@media (max-width:359px) { .team-roles { grid-template-columns:1fr; } }
.team-link { max-width:620px; }
.team-link-text { width:100%; min-height:44px; font:inherit; overflow-wrap:anywhere; }
.team-link-buttons { display:flex; flex-wrap:wrap; gap:0 10px; }
.team-link-buttons .btn { flex:1 1 140px; width:auto; }
.btn[hidden] { display:none; }
/* #46 Account -> Telegram: the one-time link code, read off one screen and typed or sent on another; the privacy steps */
.tg-code { max-width:620px; }
.tg-code-text { margin:10px 0; padding:10px; font:24px/1.4 ui-monospace,Menlo,Consolas,monospace; letter-spacing:.08em; text-align:center; background:var(--soft); border-radius:6px; overflow-wrap:anywhere; }
.tg-steps { max-width:620px; padding-left:22px; }
.tg-steps li { margin:0 0 10px; }
.tg-steps p { margin:2px 0; overflow-wrap:anywhere; }
/* UP1: water service sizing (water_sizing.html) */
.ws-questions textarea, .ws-form input:not([size]), .ws-form select, .ws-check-form input { width:100%; max-width:100%; box-sizing:border-box; }
.ws-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:6px 12px; margin:8px 0; }
.ws-grid label { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.ws-grid input { width:4em; }
.ws-table { width:100%; border-collapse:collapse; }
.ws-found { margin:8px 0 12px; } .ws-found .btn { margin:4px 6px 4px 0; white-space:normal; max-width:100%; }
.ws-table th, .ws-table td { padding:4px 6px; text-align:left; border-bottom:1px solid var(--line); white-space:normal; overflow-wrap:anywhere; min-width:0; }
.ws-src { display:block; }
.ws-check { padding:8px 0; border-bottom:1px solid var(--line); }
.ws-facts { padding-left:18px; }
/* UX-AUDIT-2b: water page parts fold; the summary is a 48 px tap row with the part's open count */
.ws-fold { margin:12px 0; }
.ws-fold > summary { cursor:pointer; min-height:48px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ws-fold > summary h2, .ws-fold > summary h3 { display:inline; margin:0; }
.ws-how > summary, .ws-copy-fold > summary { cursor:pointer; min-height:44px; display:flex; align-items:center; }
/* BP-007 part 2: Receipts (owner/admin) */
.receipts { margin:8px 0; padding-left:0; list-style:none; }
.receipt { padding:10px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.receipt p { margin:4px 0; }
.receipt-job { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 0 0; }
.receipt-job select { max-width:100%; min-height:44px; flex:1 1 12em; }
/* MVP 10 page 12: what BluePlan read off a receipt and the office's check (receipts.html) */
.rcpt-read { margin:6px 0; }
.rcpt-read, .rcpt-read p, .rcpt-read label, .rcpt-read .small, .rcpt-read .btn, .rcpt-read .ui-chip, .rcpt-read a { font-size:18px; }  /* rule 35(c) */
.rcpt-actions { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0; }
.rcpt-actions .btn, .rcpt-fix .btn { min-height:48px; }
.rcpt-fix { display:grid; gap:6px; max-width:28rem; margin:6px 0; }
.rcpt-fix input, .rcpt-fix select { min-height:48px; font-size:18px; max-width:100%; box-sizing:border-box; }
.receipt-job .btn { min-height:44px; }
/* UX35-W4 part 4: Add receipt on the tech's job page (_receipt_add.html): a big button opens the camera or files; the box itself is hidden */
.rcpt-add { font-size:18px; }
.rcpt-add .small { font-size:18px; color:inherit; }
.rcpt-add .btn { min-height:48px; font-size:18px; }
.rcpt-add .rcpt-file { position:absolute; width:1px; height:1px; min-height:0; padding:0; opacity:0; overflow:hidden; }
.rcpt-filed .btn { display:inline-block; width:auto; min-height:48px; margin:4px 0 0; }
.needs { font-weight:600; }
/* AB1: as-built records. The facts read from a card: label above its words, no indent, so long sentences use the phone width. */
.ab-facts { margin:8px 0; }
.ab-facts dt { font-weight:600; margin-top:6px; }
.ab-facts dd { margin:0; overflow-wrap:anywhere; }

/* D7 (k) item 2: the shared voice path's record button (static/voice.js) */
.vo-rec { margin: 0.5rem 0 1rem; }
.vo-mic { width: 100%; min-height: 3.5rem; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vo-on .vo-mic { background: var(--danger-solid); border-color: var(--danger); color: var(--on-fill); }
.vo-locked .vo-mic { opacity: 0.6; }
.vo-stop { width: 100%; margin-top: 0.5rem; }
.vo-state:empty { display: none; }

/* BH/BP-002: an order email shown on the buy list wraps on a 320 px phone */
.buy-order-draft { margin:0 0 var(--ui-space-1); }
.buy-order-draft .ui-chip { font-size:18px; }  /* rule 35(c): 18 px words on phone pages (pass1 M1) */
.buy-order-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9em; margin: 0.4em 0 0; }
/* UX-POLISH-65: a supplier heading hidden under its own order card shows again when the page is opened at #s-<supplier> */
.buy-supplier:target > h2.ui-sr { position:static; width:auto; height:auto; margin:18px 0 8px; overflow:visible; clip:auto; white-space:normal; }
/* BUYLIST-V3 slice A: Needs you cards on top, the item count beside each heading in plain weight, the job line under each row */
.buy-needs .buy-need { margin:0 0 var(--ui-space-1); }
.buy-needs .buy-need ul { margin:6px 0 0; padding-left:20px; }
.buy-supplier > h2 .buy-n, .buy-job > h2 .buy-n { font-weight:400; white-space:nowrap; }
.buy-row-job a { overflow-wrap:anywhere; }
.buy-row-job, .buy-foot { font-size:18px; color:var(--ink); }  /* rule 35(c): the job line and the over-order/sizes directions are 18 px ink (pass1 M2, Codex M1) */
.buy-group-job { margin:0; }  /* UX-POLISH-146: a one-job supplier group names its job once under the heading */
.buy-group-job a { display:inline-block; min-height:44px; padding:10px 0; }
.buy-test .ui-chip { white-space:normal; max-width:100%; }  /* the Test job chip wraps at 320 px instead of widening the page (scrollWidth 385 on main) */
/* AD1-6: the draft design sheet (design.html) */
.ad-stamp { margin:8px 0; padding:8px 10px; border:2px solid var(--ink); border-radius:6px; background:var(--warn-bg); }
.ad-wrap { margin:10px 0; max-width:100%; overflow:hidden; border:1px solid var(--line); border-radius:6px; background:var(--plate); }
.ad-sheet { display:block; width:100%; height:auto; touch-action:manipulation; }
.ad-sheet[data-moving="1"] { cursor:crosshair; outline:3px solid var(--blue); }
.ad-fixture, .ad-run { cursor:pointer; }
.ad-list { list-style:none; margin:6px 0 12px; padding:0; min-width:0; }
.ad-list li { margin:0 0 8px; padding:8px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.ad-list select { max-width:100%; }
.ad-run-form { margin:6px 0 0; }
.ad-system summary { font-weight:600; }
.ad-key span { font-weight:700; }
.ad-key-drain { color:var(--warn-fg); } .ad-key-vent { color:var(--ok-fg); } .ad-key-cold { color:var(--link); } .ad-key-hot { color:var(--danger); }
.ad-hide { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); border:0; padding:0; }
#ad-move-hint[hidden], #ad-move[hidden], #ad-spot-use[hidden] { display:none; }
@media print { .ad-run-form, .ad-list form, [data-move], form.inline { display:none; } .ad-stamp { border-color:#000; } }

/* C1b part 1: the Labor units page */
.lu-item { border-top: 1px solid var(--line); padding-top: .4rem; margin-top: .6rem; }
.lu-item h3 { margin: .2rem 0; }
.lu-item p, .lu-row { margin: .2rem 0; }
.crm-note { white-space: pre-line; }
.crm-tabs { flex-wrap: wrap; }
.crm-tabs a { flex: 1 1 40%; min-height: 44px; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.crm-search input[type=search] { max-width: 100%; box-sizing: border-box; }
#crm-add summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
/* #34 Company documents: the page's checklist and cards, and the strip on Your jobs (fits 320 px) */
.cdocs-list { list-style:none; padding:0; margin:0 0 14px; }
.cdocs-row { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; padding:10px 0; border-bottom:1px solid var(--line); }
.cdocs-row .cdocs-flag { flex-basis:100%; }
.cdocs-packet .cdocs-row { min-width:0; overflow-wrap:anywhere; } /* ONBOARD-PACKET: a long GC email never pushes the card sideways */
.cdocs-missing .cdocs-state, .cdocs-expired .cdocs-state, .cdocs-state.cdocs-expired { color:var(--red); }
.cdocs-row .cdocs-flag, .cdocs-row .cdocs-via, .cdocs-row .cdocs-wc { flex-basis:100%; } /* FU-ONBPACKET1: 'via' line and the WA state fund mark */
.cdocs-wc { margin:0; } .cdocs-wc .btn-plain { min-height:44px; }
.cdocs-packet-src .btn-plain { display:inline-flex; align-items:center; width:auto; min-height:44px; margin:0; padding:0 6px; border:0; background:none; text-decoration:underline; } /* FU-ONBPACKET4: Change sits on the grey source line, 44 px tall */
.cdocs-not-uploaded > span, .cdocs-settled { color:var(--mid); } /* FU-ONBPACKET1: a paper not uploaded yet is grey, never red, while Send works */
.cdocs-file-line { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; overflow-wrap:anywhere; }
.cdocs-facts { display:grid; grid-template-columns:minmax(0, max-content) minmax(0, 1fr); gap:4px 12px; margin:8px 0; }
.cdocs-facts dt { font-weight:600; }
.cdocs-facts dd { margin:0; overflow-wrap:anywhere; }
.cdocs-boxes select, .cdocs-upload select { width:100%; min-height:48px; font:inherit; }
/* UX35-W4 part 4 (rule 35 (c)): directions on Company documents at reading size, never small grey; the several-files line only where the
   script sends several (form.js), a phone without it picks one */
.cdocs-dir { font-size:18px; color:inherit; }
.cdocs-upload:not(.js) .cdocs-pages { display:none; }
.cdocs-strip { margin:0 0 14px; padding:10px 12px; border:1px solid var(--warn-fg); border-left-width:6px; border-radius:6px; background:var(--warn-bg); overflow-wrap:anywhere; }
.cdocs-strip.cdocs-strip-urgent { border-color:var(--red); background:var(--danger-bg); }
.cdocs-strip ul { margin:0 0 6px; padding-left:18px; font-weight:600; }
.cdocs-strip .btn { margin-top:8px; }
.cdocs-strip .cdocs-file { position:absolute; width:1px; height:1px; min-height:0; padding:0; opacity:0; overflow:hidden; }
.cdocs-strip .cdocs-open { display:inline-flex; align-items:center; min-height:48px; padding:4px 0 0; color:var(--blue); font-weight:600; }  /* rule 35: 48 px tap (FU-HOMEROOT a) */

/* CRM1 part 3: the Pipeline money board. Columns side by side on a wide screen (scroll sideways), one under the other on a phone. */
.board { display:flex; gap:12px; overflow-x:auto; align-items:flex-start; padding-bottom:8px; }
.board-col { flex:0 0 17rem; min-width:0; }
.board-col h2 { font-size:1.05rem; margin:0 0 2px; }
.board-card h3 { font-size:1rem; margin:0 0 4px; overflow-wrap:anywhere; }
.board-card p, .board-card .small { overflow-wrap:anywhere; }
.board-card form .btn { margin:4px 4px 0 0; }
.board-card summary { min-height:44px; display:flex; align-items:center; cursor:pointer; }
.board-jump a { display:inline-block; margin:0 8px 6px 0; }
@media (max-width: 700px) { .board { display:block; overflow-x:visible; } .board-col { margin-bottom:14px; } }
.bench-gate { list-style:none; padding-left:0; }
.bench-gate li { margin:8px 0; overflow-wrap:anywhere; }
.bench-card h2 { overflow-wrap:anywhere; }
/* OB-ESIGN-FINGER: the optional finger signature on the partner's sign step (390 px phone first, one hand) */
.sign-pad canvas { display:block; width:100%; height:auto; aspect-ratio:2 / 1; min-height:180px; touch-action:none; background:var(--plate); border:2px dashed var(--mid); border-radius:6px; }
/* V1-HOME: the phone Home (/home, home.html). Everything here is under .home, so no other page changes. 390 and 320 px first: two tile
   columns, each tile at least 96 px tall, text 18 px (the line 17 px, dark), nothing wider than the screen.
   HOME-DECK (MVP 14, deck pages 1-2, D119): the office Home takes the deck's look: the tagline is the heading, Ask BluePlan sits on the page
   (no box) with a blue Talk and a light-blue Add photo or plan, soft blue tiles, and a short green "working for you" strip under them.
   A field tech's Talk tile stays black (not on the deck). */
.home { max-width:640px; margin:0 auto; font-size:18px; line-height:1.4; color:var(--ink); overflow-wrap:anywhere; }
.home h1 { margin:0; font-size:28px; }
.home:not(.home-tech) h1 { margin:0 0 14px; line-height:1.2; }
.home-tagline, .home-ask-note { margin:2px 0 14px; font-size:18px; color:var(--ink); }
.home-ask { margin:0 0 14px; padding:0; }
.home-ask p { margin:0 0 12px; }
.home-tile-mic:focus-visible, .home-tile:focus-visible, .home-photo:focus-within { outline:3px solid var(--blue); outline-offset:2px; }
.home .upload-progress { margin-top:10px; font-size:18px; }
.home-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.home-tile { display:flex; flex-direction:column; gap:6px; box-sizing:border-box; min-height:96px; margin:0; padding:14px; background:var(--card); color:var(--ink);
  border:1px solid var(--line); border-radius:16px; text-decoration:none; }
.home:not(.home-tech) .home-tile { background:var(--soft); border-color:var(--line); }
.home:not(.home-tech) .home-grid a.home-tile { align-items:center; justify-content:center; text-align:center; }
.home-tile-title { font-size:20px; font-weight:700; line-height:1.2; }
.home-line { font-size:18px; line-height:1.3; color:var(--ink); }
.home-tile-talk { background:var(--toast-bg); border-color:var(--line-strong); color:var(--title); }
.home-tile-talk .home-line { color:var(--title); }
.home-photo .home-photo-form { display:flex; flex-direction:column; gap:6px; flex:1; margin:0; }
.home-photo label { display:flex; flex-direction:column; gap:6px; flex:1; margin:0; font-size:18px; font-weight:400; cursor:pointer; }
.home-photo [data-upload-progress], .home-photo [data-upload-said] { font-size:18px; margin:6px 0 0; }
/* UX-AUDIT-6: Needs you on top (each line a link to the work), the areas below as smaller links */
.home:not(.home-tech) .home-areas .home-tile { min-height:72px; padding:10px 12px; gap:2px; }
.home:not(.home-tech) .home-areas .home-tile-title { font-size:18px; }
.home-areas #tile-bench { grid-column:1 / -1; }  /* its line has up to three counts: the full row keeps it short */
/* HOME-BADGES (Vlad 2026-11-20 16:05): a tile's count badge on its top-right corner ("+5": what needs you there; none at 0), like a phone
   app's badge: it sits over the corner, outside the text, so it never covers the title at 320 px. The Inbox tile takes the whole row. */
.home-tile { position:relative; }
.home-badge { position:absolute; top:-8px; right:-6px; display:inline-flex; align-items:center; justify-content:center; min-width:30px; height:30px;
  padding:0 8px; box-sizing:border-box; border:2px solid var(--page-top); border-radius:15px; background:var(--fill); color:var(--on-fill); font-size:16px; font-weight:700; line-height:1; }
.home-tile:has(> .home-badge) { padding-top:26px; }  /* the words start below the badge */
/* HOME-HEADER tiles option A (Vlad 2026-11-20 18:18-18:23): the office tiles show their NAME only, centered; the count lines stay for a
   screen reader (home.js keeps them current). The pill is colored by the most urgent state (home_routes.tile_pill), white on each color
   at >= 5:1: red = late, amber = waits on you, green = ready or on track, navy = only new. */
.home:not(.home-tech) .home-areas .home-tile { align-items:center; justify-content:center; text-align:center; padding:24px 12px; min-height:80px; }  /* top and bottom alike: the name stays centered and starts below the pill (22 px) */
.home:not(.home-tech) .home-areas .home-line { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap; border:0; }
.home-badge.home-pill-late { background:var(--danger-solid); }
.home-badge.home-pill-owner { background:var(--warn-solid); }
.home-badge.home-pill-ok { background:var(--ok-solid); }
.home-badge.home-pill-new { background:var(--accent); }
.home-grid .home-tile-wide { grid-column:1 / -1; }
.home-unread { margin:8px 0 0; font-size:18px; color:var(--ink); }
.home-working { margin:18px 0 0; padding:0; }
.home-working h2 { margin:0 0 6px; font-size:20px; }
.home-working p { margin:0; }
.home-working ul { margin:0; padding:0; list-style:none; }
.home-working li { display:flex; align-items:center; gap:8px; min-height:48px; }
.home-working li, .home-working a { color:var(--ok-fg); }
.home-working a { display:flex; align-items:center; flex:1; min-height:48px; }
.home-check { color:var(--ok-fg); font-weight:800; }
.home-improve { margin:14px 0 0; }
.home-improve a { display:inline-flex; align-items:center; min-height:48px; font-size:18px; font-weight:600; color:var(--blue-dark); }
@media (max-width:359px) { .home-tile { padding:12px; } }
/* DNB-PHASE0: the owner's Dispatch & Bench block on home and the Call first list on /bench; BENCH-REVIEW-FIXES (4) panels as one line */
.dnb-home h2 { margin:0 0 6px; }
.dnb-home .dnb-sum { font-size:1.15em; font-weight:700; margin:0; }
/* UX-POLISH-92+115+135: /bench Dispatch & Bench as one compact row: two links side by side (48 px targets), one counts line under them */
.dnb-row { margin:6px 0 12px; }
.dnb-row .dnb-go { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0; }
.dnb-row .dnb-go .btn { display:flex; align-items:center; justify-content:center; min-height:48px; margin:0; padding:8px 4px; font-size:16px; }
.dnb-row .dnb-sum { font-size:1em; font-weight:600; margin:6px 0 0; }
@media (max-width:359px) { .dnb-row .dnb-go .btn { font-size:14px; } .dnb-row .dnb-sum { font-size:14px; } }
.call-list { list-style:none; margin:0; padding:0; }
.call-item { padding:12px 0; border-top:1px solid var(--line); }
.call-item h3 { margin:0 0 4px; }
.call-item .call-phone { margin:8px 0 0; }
.call-item .call-ask { font-weight:700; margin:8px 0; }
.bench-panel > summary { min-height:48px; padding:10px 0; font-weight:700; cursor:pointer; }
/* UX35-W4 part 2 (rule 35(b)(c)): the bench card's Step X of N strip (done / now / next in words, never colour alone), direction lines at
   reading size, and the 'New result in' line the status poll shows when it kept what the owner is typing */
.bench-strip { margin:8px 0 16px; padding:12px 14px; background:var(--soft); border-radius:8px; font-size:18px; }
.bench-strip-of { margin:0 0 8px; font-size:19px; font-weight:700; }
.bench-strip ol { list-style:none; margin:0; padding-left:0; }
.bench-st { display:flex; align-items:center; gap:8px; min-height:48px; overflow-wrap:anywhere; }
.bench-st-mark { flex:0 0 1.4em; text-align:center; font-weight:700; }
.bench-st-done .bench-st-mark { color:var(--ok-fg); }
.bench-st-now { font-weight:700; color:var(--link); }
.bench-dir { font-size:18px; color:inherit; }
.bench-registry { font-size:18px; color:var(--mid); }
#bench-live-note[hidden] { display:none; }
/* PROPOSAL-ESIGN-PAY P6: the QuickBooks lines on the money board and /pipeline/quickbooks, 18 px so they read on a phone (rule 35) */
#board-qbo p, #board-win p, .qbo-line, .qbo-chip, .qbo-move p, #qbo-moves h2, #qbo-said p, #qbo-unlinked p, #qbo-autos p, #qbo-unlinked select { font-size:18px; }
.qbo-inv { padding:12px 0; border-top:1px solid var(--mid); }
/* #44 part 1: the price page's Permit and inspections box (rule 35: 18 px text on the phone, one tap per choice, buttons from .btn) */
.permit-box .permit-buildings { padding-left:20px; margin:8px 0; }
.permit-box .permit-lines { margin:8px 0; }
@media (max-width: 600px) { .permit-box, .permit-box .small, .permit-box .btn { font-size:18px; } }

/* IN2-INAPP: the county's inspection results on the job page and the office's Inspections page */
.ir-city h3 { margin: 0.5rem 0; }
.ir-city, .ir-city-card, .ir-city-card p, .ir-city-card li, #city-unmatched, #city-unmatched p, #city-unmatched label, #city-new p { font-size: 18px; }
.ir-city-card .city-result { font-weight: 700; }
.ir-city-card .city-passed { color: var(--ok-fg); }
.ir-city-card .city-failed, .ir-city-card .city-partial { color: var(--danger); }
.ir-city-card .city-words, .ir-city-card .city-list { overflow-wrap: anywhere; }
.ir-city-card .city-list { margin: 0.25rem 0 0.5rem 1.25rem; padding: 0; }
.ir-city-card .city-files .btn { margin: 0 0.5rem 0.5rem 0; min-height: 48px; }
.ir-city-card .city-ids { overflow-wrap: anywhere; color: var(--ink); }
.city-put select { width: 100%; max-width: 100%; min-height: 48px; font-size: 18px; margin: 0.25rem 0 0.5rem; }
.city-put .btn { min-height: 48px; }
/* #44 part 2: the Company page's permit fee tables (rule 35: 18 px text on the phone, buttons and taps 48 px and up) */
#permit-fees, #permit-fees p, #permit-fees li, #permit-fees label, #permit-fees legend, #permit-fees summary { font-size:18px; }
#permit-fees .permit-office { margin:14px 0; padding:12px; border:1px solid var(--mid); border-radius:6px; }
#permit-fees .permit-office h3 { margin:0 0 6px; font-size:20px; }
#permit-fees .permit-tiers, #permit-fees .permit-changes { padding-left:20px; margin:8px 0; }
#permit-fees summary { min-height:48px; list-style:none; }
#permit-fees summary::-webkit-details-marker { display:none; }
#permit-fees fieldset { min-width:0; margin:12px 0 0; padding:8px; border:1px solid var(--mid); border-radius:6px; }
#permit-fees .btn { min-height:48px; }
.permit-box .permit-due { font-size:18px; }
/* #45 permit application (permit_application.html): Fill this rows say so in words and get a red edge; steps list; one-tap choices */
.permit-app .permit-steps { padding-left: 24px; }
.permit-app .permit-steps .now { font-weight: 700; }
.permit-app .permit-row { border-left: 4px solid var(--line); padding: 8px 0 8px 12px; margin: 0 0 12px; }
.permit-app .permit-row.fill_this { border-left-color: var(--danger); }
.permit-app .permit-row .fill-this strong { color: var(--danger); }
.permit-app .permit-row.not_for_us { border-left-color: var(--line); }
.permit-app .permit-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.permit-app .permit-choices form { flex: 1 1 140px; }
.permit-app details > summary { min-height: 48px; cursor: pointer; }
.permit-app details > summary h2 { display: inline; }
.permit-app .permit-change > summary { min-height: 48px; line-height: 48px; font-size: 18px; color: var(--link); }
.permit-app .permit-readback dt { font-weight: 700; margin-top: 8px; }
.permit-app .permit-readback dd { margin: 0 0 4px; }
.permit-app .permit-statement { font-weight: 700; border: 1px solid var(--line-strong); padding: 12px; }
.permit-app .permit-consent input[type="checkbox"] { width: 28px; height: 28px; vertical-align: middle; }
.permit-app .permit-consent label { display: inline-block; min-height: 48px; }
.permit-app .sign-pad canvas { width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line-strong); touch-action: none; }
.permit-app-card .permit-app-open { display: inline-block; min-height: 48px; line-height: 48px; }
/* HEAT1 part A: the Heating units page, phone first (rule 35): 18px text, 48px taps */
.heat-page, .heat-page p, .heat-page li, .heat-page label, .heat-page input, .heat-page select { font-size: 18px; }
.heat-page .small { font-size: 16px; }
.heat-page .heat-why { font-size: 18px; }  /* the sentences that say why nothing is priced: base size (rule 35) */
.heat-unit { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .8rem; }
.heat-unit h3 { margin: .3rem 0; }
.heat-row { margin: .3rem 0; }
.heat-draft { margin: .4rem 0; padding: 10px 12px; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 6px; }
.heat-page details > summary { min-height: 48px; line-height: 48px; cursor: pointer; color: var(--link); font-weight: 600; }
/* HEAT1 part B: the takeoff's Heating section and the price page's heating box: 18px text, 48px taps (rule 15) */
.heat-job, .heat-job p, .heat-job li, .heat-job label, .heat-job input, .heat-job select, .heat-job legend, .heat-job h4 { font-size: 18px; }
.heat-job .small { font-size: 18px; }
.heat-job .btn, .heat-job button, .heat-job input, .heat-job select { min-height: 48px; }
.heat-job details > summary { min-height: 48px; line-height: 48px; cursor: pointer; color: var(--link); font-weight: 600; }
.heat-job .heat-type { display: block; width: 100%; text-align: left; white-space: normal; }
.heat-job .heat-line { overflow-wrap: anywhere; }
.heat-job input[type=radio] { min-height: 24px; width: 24px; height: 24px; }
.heat-job .choice { display: flex; align-items: center; gap: .5rem; min-height: 48px; }
/* HEAT1 part C: the outcome record's Heating hours block and the Heating units page's suggestions */
.heat-out h3, .heat-prop p, .heat-prop li { overflow-wrap: anywhere; }
.heat-out [hidden] { display: none; }  /* HEAT1 C: .btn sets display; a hidden Save (outcome.js), Undo or empty line stays hidden */
.heat-yesno { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; }
.heat-yesno form { margin: 0; }
.heat-yesno .btn { white-space: normal; }
/* VOICE-EVERYWHERE (Vlad 2026-11-16 19:18): every Talk button is hold-to-talk (static/voice.js). While held the button is red, says it is
   listening and has a thick red ring; a kept recording offers Try again; Home's and the job list's Talk hold right there, the link shows only on a phone
   that can't record. */
.vo-on .vo-mic { outline:4px solid var(--danger); outline-offset:2px; }  /* held: red with a thick ring, never an animation (test_progress: nothing pulses) */
.vo-retry { width:100%; margin-top:.5rem; }
#jobs-talk[hidden], .home-tile-open[hidden] { display:none; }
.vo-form, .vo-here { margin:0; }
.vo-here .vo-state { margin:6px 0 0; }
.jobs-talk-hold { margin:0 0 14px; }
.jobs-talk-hold .vo-mic { margin-top:6px; }
.home-tile-mic { display:flex; align-items:center; justify-content:center; gap:4px; width:100%; min-height:52px; margin:4px 0 0; padding:6px 8px; white-space:normal; text-align:center; line-height:1.2; overflow-wrap:anywhere;
  /* pass 5 review: the held label and ru/es wrap inside the half-width tile at 390 px */
  border-radius:999px; background:var(--fill); color:var(--on-fill); border:2px solid var(--fill); font:inherit; font-size:17px; font-weight:700; cursor:pointer; }
.home-tile-talk .vo-state, .home-tile-open { color:var(--title); }
.home-tile-open { font-size:16px; }
.fb-saved { font-weight:700; overflow-wrap:anywhere; }
.fb-said-do { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-start; margin-top:10px; }
.fb-said-do form { margin:0; }
.fb-said-do .btn { width:auto; min-width:7.5rem; margin:0; }
.fb-edit { flex:0 1 auto; margin:0; border:0; border-radius:0; }
.fb-edit[open] { padding-bottom:0; }
.fb-edit > form { padding:0; }
.fb-edit[open] { flex-basis:100%; }
.fb-edit > summary { list-style:none; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:50px; }
.fb-edit > summary::-webkit-details-marker { display:none; }
.fb-edit form .btn { width:100%; margin-top:10px; }
/* FB-IMPROVE-2: saving you can see, files with the next idea, priority chips (the shared ui-chip, always with its word) */
.fb-ok { font-size:1.15em; font-weight:700; margin:0 0 6px; }
.fb-said-files { overflow-wrap:anywhere; }
.btn.is-saving { opacity:.75; cursor:progress; }
.fb-files { margin:14px 0; max-width:620px; }
.fb-files-up { margin:0; }
.fb-pick { display:flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:50px; cursor:pointer; }
.fb-files-up.js .fb-file-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }  /* the label above is its button */
.fb-files-up.js .fb-file-input:focus-visible + .fb-pick { outline:3px solid var(--ink); outline-offset:2px; }
.fb-waiting-head { font-weight:700; margin:10px 0 4px; }
.fb-waiting-list { list-style:none; padding:0; margin:0; }
.fb-waiting-file { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:6px 0; border-top:1px solid var(--line); }
.fb-waiting-file form { margin:0; }
.fb-file-name { overflow-wrap:anywhere; flex:1 1 12rem; }
.fb-file-remove { width:auto; min-width:7.5rem; min-height:48px; margin:0; }
.fb-play { width:auto; min-height:48px; margin:4px 0; overflow-wrap:anywhere; }  /* FB-VIDEO: an idea's video opens and plays */
.fb-prio { margin:0 0 6px; border:0; padding:0; }
.fb-prio > summary { list-style:none; display:inline-flex; align-items:center; min-height:48px; cursor:pointer; }
.fb-prio > summary::-webkit-details-marker { display:none; }
.fb-prio-pick { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 8px; padding:0; }
.fb-prio-pick .btn { width:auto; flex:1 1 9rem; min-height:48px; margin:0; }
.fb-prio-pick .btn[aria-pressed="true"] { outline:3px solid var(--ink); }
.idea-files { overflow-wrap:anywhere; }
.vo-type > summary { display:flex; align-items:center; min-height:48px; cursor:pointer; }
/* REMOVE-PATTERN (D94; templates/_remove.html, shared by CRM leads and Bench): a red-outlined Remove that opens one question in place (no
   script); each reason chip removes with one tap; then "Removed · Undo" for about 8 s, then the lasting state with Put back */
.btn.danger { color:var(--red); background:var(--card); border:2px solid var(--red); min-height:48px; }
.logout-all .btn.danger { min-height:50px; padding:11px 14px; }  /* UX-POLISH-174: /account Log out everywhere, red outlined at the standard 50 px button height (2 px less padding for the 2 px border) */
.logout-all .btn.danger:not(:disabled):hover { background:var(--danger-bg); }  /* stays an outlined red button on hover (the generic .btn hover would fill it) */
details.rm-pick { margin:18px 0 8px; padding:0; border:0; }
details.rm-pick > div { padding:14px; margin-top:8px; }
.rm-pick > summary.btn { display:flex; justify-content:center; margin:0; }
.rm-chips { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 4px; }
.rm-chips .btn { flex:1 1 40%; width:auto; margin:0; min-height:48px; }
.rm-hint { margin:0; }
.rm-hint a { display:inline-flex; align-items:center; min-height:44px; }
.rm-removed { margin:10px 0; padding:12px; background:var(--soft); border:1px solid var(--line); border-left:6px solid var(--red); border-radius:6px; }
.rm-removed p { margin:0 0 4px; }
.rm-removed.rm-fresh { padding:0; background:none; border:0; }  /* only the dark "Removed · Undo" bar shows; the script drops rm-fresh after 8 s */
.rm-toast { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; padding:6px 6px 6px 14px; color:var(--title); background:var(--toast-bg); border-radius:6px; font-size:1.05rem; }
.rm-toast .btn { flex:0 0 auto; width:auto; min-width:6.5rem; min-height:48px; margin:0; color:var(--blue-dark); background:var(--card); }
.rm-toast[hidden], .rm-later[hidden] { display:none; }
.rm-later .btn, .rm-note .btn { margin-top:10px; }
.rm-note { margin-top:12px; }
.rm-why { margin-top:12px; }
.rm-why > p { flex-basis:100%; margin:0; font-weight:700; }  /* JOBS-LIST-CLEAN: "Why? Optional" on its own row above the chips */
.crm-removed-list { margin:0; padding:0; list-style:none; }
/* JOB-REMOVE: the office's job cards (kit card with Remove); the card's body opens the job like the old whole-card link */
#jobs-list .ui-card { margin:0 0 12px; }
.jobs-card-body { display:block; color:inherit; text-decoration:none; }
.jobs-card-body p { margin:6px 0 0; }
/* JOBS-COMPACT (Vlad 2026-11-19 19:51, Codex call; codex-decision.md): status color on every card, its pill and its filter chip; compact phone cards */
#jobs-list .ui-card, #jobs-list a.card { margin:0 0 8px; padding:12px; border-radius:12px; }
#jobs-list .ui-card:has(.jstage-pricing), #jobs-list a.card.jstage-pricing { border-left:4px solid var(--warn-border); }
/* JOBS-LIST-CLEAN (Vlad 2026-11-20 16:04): ONE color per stage (pricing amber, approved blue, sent purple, won green, lost gray) on the edge,
   the pill and the stage chip; Needs your attention is said by its heading, not a color; job types are neutral gray outlines */
#jobs-list .ui-card:has(.jstage-approved), #jobs-list a.card.jstage-approved { border-left:4px solid var(--accent); }
#jobs-list .ui-card:has(.jstage-sent), #jobs-list a.card.jstage-sent { border-left:4px solid var(--purple-fg); }
#jobs-list .ui-card:has(.jstage-won), #jobs-list a.card.jstage-won { border-left:4px solid var(--ok-fg); }
#jobs-list .ui-card:has(.jstage-lost), #jobs-list a.card.jstage-lost { border-left:4px solid var(--line-strong); }
#jobs-list .ui-card-head h3 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:18px; line-height:23px; }
#jobs-list .ui-card-head h3 a { display:inline; min-height:0; }
#jobs-list .ui-card-head { min-height:48px; }
#jobs-list a.card h3 { margin:0; font-size:18px; line-height:23px; }
#jobs-list .jobs-meta { margin:2px 0 0; overflow:hidden; font-size:18px; line-height:23px; color:var(--mid); white-space:nowrap; text-overflow:ellipsis; }
#jobs-list .status { margin:8px 0 0; }
#jobs-list .price { font-size:18px; }
#jobs-list .next { display:flex; align-items:center; min-height:48px; margin:4px 0 0; font-size:18px; font-weight:600; text-decoration:underline; }
.jtag { display:inline-flex; align-items:center; min-height:32px; box-sizing:border-box; padding:2px 10px; font-size:16px; font-weight:700; border-radius:16px; }
.jtag-pricing { color:var(--warn-fg); background:var(--warn-bg); border-color:var(--warn-border); }
.jtag-approved { color:var(--link); background:var(--info-bg); border-color:var(--info-border); }
.jtag-sent { color:var(--purple-fg); background:var(--purple-bg); border-color:var(--purple-border); }
.jtag-won { color:var(--ok-fg); background:var(--ok-bg); border-color:var(--ok-border); }
.jtag-lost { color:var(--mid); background:var(--soft); border-color:var(--line); }
/* #33 job type badge (its own colors, never a stage color) + the plain Work tag, and the type filter row under the stage row */
#jobs-list .jobs-kind { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 0; }
.jkind, .jwork { display:inline-flex; align-items:center; min-height:32px; box-sizing:border-box; padding:2px 10px; font-size:16px; font-weight:700; border-radius:16px; }
.jwork { font-weight:600; color:var(--ink); background:var(--card); border-color:var(--line-strong); padding:2px 8px; }
.jkind { color:var(--ink); background:var(--card); border-color:var(--line-strong); }  /* JOBS-LIST-CLEAN: every job type the same neutral outline, never a stage color */
#jobs-kind .stage-nav { flex-wrap:nowrap; gap:8px; overflow-x:auto; scroll-snap-type:x proximity; padding:2px 24px 2px 0; margin-top:-6px; -webkit-overflow-scrolling:touch;
  -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 24px), transparent); }
#jobs-kind .stage-nav li { flex:0 0 auto; scroll-snap-align:start; }
#jobs-kind .stage-nav a { min-height:48px; padding:12px 14px; font-size:16px; font-weight:600; }
#jobs-kind .stage-nav a { color:var(--ink); border-color:var(--line-strong); }  /* JOBS-LIST-CLEAN: the type chips neutral too */
#jobs-kind .stage-nav a[aria-current="page"] { color:var(--title); font-weight:700; }
#jobs-kind .stage-nav a[aria-current="page"] { color:var(--title); background:var(--toast-bg); border-color:var(--line-strong); }
/* UX-POLISH-43: the type chips sit under the Needs you list, so they get room from the card above (no tuck under the stage chips there) */
#jobs-list #jobs-kind { margin:16px 0 8px; }
#jobs-list #jobs-kind .stage-nav { margin-top:0; }
/* Remove is off the card face: swipe left (ui-kit.js) opens it in place; the job page and Select several still have it */
#jobs-list .ui-card-foot { display:none; }
#jobs-list .ui-card-foot:has(details[open]) { display:flex; }
#jobs-stage .stage-nav a { min-height:48px; padding:12px 14px; font-size:16px; font-weight:600; }
#jobs-stage .stage-all { color:var(--link); border-color:var(--accent); }
#jobs-stage .stage-pricing { color:var(--warn-fg); border-color:var(--warn-fg); }
#jobs-stage .stage-approved { color:var(--link); border-color:var(--accent); }
#jobs-stage .stage-sent { color:var(--purple-fg); border-color:var(--purple-fg); }
#jobs-stage .stage-won { color:var(--ok-fg); border-color:var(--ok-fg); }
#jobs-stage .stage-lost { color:var(--mid); border-color:var(--line-strong); }
#jobs-stage .stage-nav a[aria-current="page"] { font-weight:700; }  /* colour comes from the chip's own current rule (dark ink on its solid fill) */
#jobs-stage .stage-all[aria-current="page"], #jobs-stage .stage-approved[aria-current="page"] { color:var(--on-fill); background:var(--fill); border-color:var(--accent); }
#jobs-stage .stage-sent[aria-current="page"] { color:var(--on-fill); background:var(--purple-solid); border-color:var(--purple-fg); }
#jobs-stage .stage-pricing[aria-current="page"] { color:var(--on-fill); background:var(--warn-solid); border-color:var(--warn-border); }
#jobs-stage .stage-won[aria-current="page"] { color:var(--on-fill); background:var(--ok-solid); border-color:var(--ok-fg); }
#jobs-stage .stage-lost[aria-current="page"] { background:var(--toast-bg); border-color:var(--line-strong); }
/* UX-POLISH-109: the stage and type chips wrap into compact rows instead of one sideways-scrolling row, so "Sent" and "Commercial"
   are never cut off at the right edge; same order, counts and 48 px taps (Codex review 20261122-1434) */
#jobs-stage .stage-nav, #jobs-kind .stage-nav { flex-wrap:wrap; overflow-x:visible; scroll-snap-type:none; padding:2px 0; -webkit-mask-image:none; mask-image:none; }
#jobs-stage .stage-nav a, #jobs-kind .stage-nav a { padding:12px 12px; }
.jobs-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 8px; }  /* JOBS-FIRST: "Your jobs" + "+ New job" on one row */
.jobs-head h1 { flex:1 1 auto; margin:0; min-width:0; }
.jobs-head .jobs-new-btn { flex:0 0 auto; width:auto; max-width:none; display:inline-flex; align-items:center; min-height:48px; margin:0; padding:4px 10px; font-size:18px; font-weight:700; border-radius:8px; white-space:nowrap; }  /* UX-POLISH-17: less padding, more room for the heading; no width cap so the words never clip at large text (the heading wraps instead); 18 px words + 48 px tap kept (rule 35c) */
.jobs-new { margin:0 0 8px; }
.jobs-new:not(.js) #upload-send { margin-top:0; }
.jobs-links { margin:0 0 12px; }
.jobs-links > summary { font-weight:600; cursor:pointer; }
.more-tools { margin:0 0 var(--ui-space-2); }  /* the Bench's More links (bench.html); /more no longer folds (SETTINGS-FOR-EVERY-ROLE A1) */
.more-tools > summary { font-weight:700; cursor:pointer; }
.jobs-links > summary, .more-tools > summary { min-height:48px; }
.jobs-links p.small, .more-tools p.small { margin:0; font-size:18px; color:var(--ui-ink); }
.jobs-links p.small a, .more-tools p.small a { display:inline-flex; align-items:center; min-height:48px; }

/* R-2 part B (D-a): the price page's Assumptions box and the owner review's list, phone first (rule 35(c): text >= 18 px, taps >= 48 px) */
#assumptions, #assumptions p, #assumptions li, #assumptions label, #assumptions input, #assumptions button, #assumptions summary { font-size: 18px; }
#assumptions .btn, #assumptions button, #assumptions input { min-height: 48px; }
#assumptions details > summary { min-height: 48px; line-height: 48px; cursor: pointer; color: var(--link); font-weight: 600; }
#assumptions .assumed-row { padding: 6px 0; border-top: 1px solid var(--line); }
#assumptions .assumed-row:first-of-type { border-top: 0; }
.assumed-chip { white-space: normal; }
/* CREW-PAY-FLOOR (D92): Crew pay sheet */
.cp-week { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.cp-pick { display:flex; flex-wrap:wrap; gap:8px; }
.cp-pick .btn { min-height:48px; }
.cp-lines, .cp-rates { list-style:none; padding:0; }
.cp-lines li, .cp-rates li { padding:10px 0; border-bottom:1px solid var(--line); font-size:18px; }
.cp-lines li.cp-check { border-left:6px solid var(--warn-fg); padding-left:10px; }
.cp-warn { color:var(--warn-fg); font-weight:600; }
.cp-city { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:8px; }
.cp-city input { font-size:18px; min-height:48px; }

/* NAV-TABBAR (D95, nav.py): base.html puts ui-has-bar on <body> for a login with a role. Phone: the bar has Home and More, so the header
   is the brand only (who, Improve, Account, Log out are on the More page). Desktop: the header keeps them and gets a labeled Home link. */
.top .home-link { display:none; }
@media (max-width:759px) { .ui-has-bar .top .who, .ui-has-bar .top .improve, .ui-has-bar .top .acct, .ui-has-bar .top .top-out { display:none; } }
@media (min-width:760px) { .top .home-link { display:inline-block; color:var(--nav-fg); font-size:15px; font-weight:700; padding:11px 4px; }
  .top .home-link[aria-current="page"] { color:var(--title); background:var(--nav-on-bg); border-radius:8px; } }
@media (max-width:359px) { .ui-has-bar .ui-bar { gap:2px; padding-left:2px; padding-right:2px; } .ui-has-bar .ui-bar a { padding:0 1px; font-size:14px; } }  /* 5 tabs at 320 px: Russian Объекты/Резерв fit whole */
.more-page { max-width:720px; }  /* SETTINGS A1: the grouped rows stay a phone-width column on a desktop */
.more-who { margin:0 0 var(--ui-space-2); font-size:18px; }
.more-who b { display:block; }
/* CREW-PAY-FLOOR part B (rule 35(c)): directions and size rules on Crew pay are full-size text, not small grey */
.cp-city .small, .cp-newer, .cp-newer .small, .cp-lni, .cp-lni .small, .cp-rates .small, #rates p.small, #checked { font-size:18px; color:inherit; }
.cp-city p.small { flex-basis:100%; margin:0; }
/* UX-AUDIT-5 (pass 1 Must 2, rule 35(c)): the billing page's tab explanation, job-type direction and groundwork notes are full-size text */
.billp-note { font-size:var(--ui-font-body, 18px); color:var(--ui-ink, #1b2530); }
/* UX-AUDIT-4 (UXA-4, rule 35(c)): the price page: total and what it includes first, jump lines to boxes that wait on an answer, the stable
   breakdown folded under 'Price details' (one 48px+ summary, its sub line full-size text) */
.price-includes { margin:0 0 12px; }
.price-includes .btn { margin:6px 8px 0 0; }
.price-note { font-size:var(--ui-font-body, 18px); color:var(--ui-ink, #1b2530); }
.price-jumps { margin:6px 0 12px; padding-left:22px; font-size:var(--ui-font-body, 18px); }
.price-jumps li { margin:6px 0; }
.price-jumps a { display:inline-flex; align-items:center; min-height:48px; padding:10px 0; }
.price-details { margin:18px 0 12px; border:1px solid var(--line, #d6dce8); border-radius:8px; }
.price-details > summary { flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; min-height:56px; }
.price-details > summary .price-details-h { font-size:20px; }
.price-details > summary .price-details-sub { font-weight:400; font-size:var(--ui-font-body, 18px); color:var(--ui-ink, #1b2530); }
.price-details[open] > summary { border-bottom:1px solid var(--line, #d6dce8); }
.price-details > :not(summary) { margin-left:14px; margin-right:14px; }
/* OWNER-REVIEW-FAST (D98): the Ready to approve screen (ready.html): the big total, the folded lines, the one Approve */
.rd-total-label { margin:var(--ui-space-1) 0 0; font-weight:700; }
.rd-total { margin:0; font-size:2rem; font-weight:800; line-height:1.2; overflow-wrap:anywhere; }
.rd-fold { margin:var(--ui-space-2) 0; }
.rd-fold ul { margin:0 0 var(--ui-space-2); padding-left:1.25rem; }
.rd-fold li { margin:var(--ui-space-1) 0; overflow-wrap:anywhere; }
.rd-act { margin:var(--ui-space-3) 0 var(--ui-space-2); }
.rd-links { display:flex; flex-wrap:wrap; gap:var(--ui-space-2); margin:var(--ui-space-2) 0; }
#rd-skip .ui-card-head, #job-skip .ui-card-head { flex-wrap:wrap; }  /* FU-EARNEDSKIP2: on a narrow phone the chip goes under "Approved by itself", never splits a word */
#rd-skip .ui-card-head h3, #job-skip .ui-card-head h3 { min-width:min(9em, 100%); }
/* PRICING-MARKUP-TABLE fix 1 (Codex Must 1): the Company markup card and the price page's markup line read at 18 px on a phone (rule 35);
   their buttons stay 48 px or more. These two cards only: the app-wide 16 px base is FU-MKT-4. */
#markup-table, #markup-table label, #markup-table legend, #markup-table input, #markup-table p, #markup-table li, #markup-table .small,
#markup-table .btn, #markup-row, #markup-row label, #markup-row input, #markup-row p, #markup-row .small, #markup-row summary, #markup-row .btn { font-size:18px; }
#markup-table .btn, #markup-row .btn, #markup-row summary.btn { min-height:48px; }
#markup-table h3 { font-size:19px; }
/* #26 CUSTOMER SUGGEST: the job page's "Same customer?" card and the customer box's list; phone-size text and taps (common.md rule 35) */
#job-customer-same, #cust-sug, #cust-sug-note { font-size:18px; }
#job-customer-same .q-option, #cust-sug .q-option { flex:1 1 100%; min-height:48px; padding:10px 12px; font-size:18px; text-align:left; }
#job-customer-same .btn, #cust-sug .btn { min-height:48px; font-size:18px; }
#cust-sug p { margin:6px 0 2px; }
/* SIGN-ANY-DOC: the owner's page pictures with the boxes drawn on them; the signer's page pictures */
.sd .sd-dir { font-size:18px; }
.sd .sd-pic { max-width:100%; border:1px solid var(--line); margin:8px 0; }
.sd .sd-pic img, .sd .sd-page img { display:block; width:100%; height:auto; }
/* INSPECTOR-CONTACTS: the inspectors list page (inspectors.html): Send + Download side by side, then the page pictures full width */
.insp-lead, .insp-dir { font-size:18px; color:var(--ui-ink, #1a2330); }  /* rule 35(c): directions 18 px ink, never small grey */
.insp-acts { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0; }
.insp-acts .ui-btn { flex:1 1 140px; min-height:48px; }
.insp-acts .ui-btn[hidden], #insp-send-failed[hidden] { display:none; }  /* .ui-btn sets display: Send stays hidden until the phone can share the file */
.insp-pages .insp-page { display:block; max-width:100%; border:1px solid var(--line); margin:8px 0; }
.insp-pages .insp-page img { display:block; width:100%; height:auto; }
/* DAILY-PLAN tile: today's plan as a light page picture; Print and Download 48 px+, words 18 px (rule 35(c)) */
.dp-day, .dp-dir { font-size:18px; color:var(--ui-ink, #1a2330); }
.dp-acts { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0; }
.dp-acts .ui-btn { flex:1 1 140px; min-height:52px; font-size:18px; }
.dp-pages .dp-page { display:block; max-width:100%; border:1px solid var(--line); margin:8px 0; }
.dp-pages .dp-page img { display:block; width:100%; height:auto; }
.dp-sheet { display:none; }
.sd .sd-row { display:flex; flex-wrap:wrap; gap:8px; }
.sd textarea { width:100%; font-size:17px; }
.sd .sd-page { border:1px solid var(--line); margin:8px 0; }

/* IN2-BOOK: booking an inspection on the county portal (job page line + confirm screen) */
.ir-book p, .ib-confirm p, .ib-sent { font-size: 18px; }
.ib-sent { margin: 0.5rem 0 1rem; }
.ib-sent dt { font-weight: 700; margin-top: 0.5rem; }
.ib-sent dd { margin: 0; overflow-wrap: anywhere; }

/* MVP 10 CREW-BRIEF (deck page 10): the tech's Today plan (crew_plan.html) and the job brief on their job page (job_field.html #brief).
   Phone first: 18px text, 48px taps, the plan's facts as one short list, one main button (rule 35, D99 kit tokens). */
.cbr-plan, .cbr-brief { margin:0 0 var(--ui-space-2); font-size:var(--ui-font-body); line-height:var(--ui-line-body); color:var(--ui-ink); }
.cbr-kicker { margin:0 0 var(--ui-space-2); padding:var(--ui-space-2); background:var(--ui-info-bg); border:1px solid var(--ui-info-border); border-radius:var(--ui-radius-card); color:var(--ui-info-fg); }
.cbr-lines { margin:0 0 var(--ui-space-2); padding:0; list-style:none; }
.cbr-lines li { padding:6px 0; overflow-wrap:anywhere; }
/* TECH-HOME-V2 part B My week (my_week.html): the day cards' job lines at body size (rule 35(c)), past days quieter */
.week-left { font-size:var(--ui-font-body); line-height:var(--ui-line-body); margin:0 0 var(--ui-space-2); }
/* TECH-HOME-V2 B4 My proposals and Commission (my_proposals.html, my_commission.html): a lead line, the total, one card per line */
.mine-lead, .mine-job { font-size:var(--ui-font-body); line-height:var(--ui-line-body); margin:0 0 var(--ui-space-2); }
.mine-total { font-size:var(--ui-font-body); font-weight:700; line-height:var(--ui-line-body); margin:0 0 var(--ui-space-3); }
.mine-list { display:flex; flex-direction:column; gap:var(--ui-space-2); }
.week-jobs { margin:0; font-size:var(--ui-font-body); line-height:var(--ui-line-body); }
.week-jobs.ui-quiet, .week-jobs.ui-quiet a { color:var(--ui-mid); }
/* TECH-HOME-V2 part B, Pickups today (pickups.html): one card per stop, each job's rows; no money */
.pk-lead, .pk-map, .pk-all { font-size:var(--ui-font-body); line-height:var(--ui-line-body); margin:0 0 var(--ui-space-2); }
.pk-stops { display:grid; gap:var(--ui-space-3); }
.pk-job { margin:var(--ui-space-2) 0 var(--ui-space-1); font-size:var(--ui-font-body); }
.pk-rows { margin:0; padding-left:1.2em; font-size:var(--ui-font-body); line-height:var(--ui-line-body); overflow-wrap:anywhere; }
.pk-ahead-title { margin:var(--ui-space-1) 0 0; color:var(--ui-mid); font-size:var(--ui-font-body); }
.pk-picked { margin:var(--ui-space-3) 0 0; }
.pk-picked .ui-btn { width:100%; font-size:var(--ui-font-body); }
.pk-picked-ahead { margin-top:var(--ui-space-2); }
.pk-design { margin:var(--ui-space-1) 0 0; font-size:var(--ui-font-body); }
#pk-toast, #pk-toast .ui-btn, .pk-stops .ui-chip { font-size:var(--ui-font-body); }  /* PICKUP-DONE Codex Must: 18 px on this phone page */
.pk-ahead { color:var(--ui-mid); }
.pk-map a, .pk-all a { display:inline-block; min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); }
.cbr-lines a, .cbr-rows a { display:inline-block; min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); }
.cbr-plan h2, .cbr-brief h2 { font-size:var(--ui-font-section); margin:var(--ui-space-2) 0 8px; }
.cbr-ack .ui-btn, .cbr-brief > .ui-btn { display:flex; width:100%; justify-content:center; box-sizing:border-box; }
.cbr-open { margin:var(--ui-space-2) 0 0; }
.cbr-open a { display:inline-block; min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); font-size:var(--ui-font-body); font-weight:700; }
.cbr-ack { margin:var(--ui-space-2) 0 0; }
.cbr-acked { margin:var(--ui-space-2) 0 0; padding:var(--ui-space-2); background:var(--ui-ready-bg); border:1px solid var(--ui-ready-border); border-radius:var(--ui-radius-card); color:var(--ui-ready-fg); }
.cbr-ready { margin:0 0 var(--ui-space-2); padding:var(--ui-space-2); background:var(--ui-ready-bg); border:1px solid var(--ui-ready-border); border-radius:var(--ui-radius-card); color:var(--ui-ready-fg); }
.cbr-rows { margin:0 0 var(--ui-space-2); }
.cbr-rows dt { font-size:var(--ui-font-label); font-weight:700; margin:var(--ui-space-2) 0 2px; }
.cbr-rows dd { margin:0; overflow-wrap:anywhere; }
.cbr-check { margin:0; padding:0; list-style:none; }
.cbr-check li { padding:6px 0; }
.cbr-check li.done { color:var(--ui-ready-fg); }

/* AOI-4: the owner's "Where is each job?" list (/office). Rule 35: 18 px text, 48 px taps. */
.office-updated { font-size:18px; margin:0 0 12px; }
.office-stale .office-updated { color:var(--ui-blocked-fg); font-weight:600; }
.office-stale .office-groups { opacity:.6; }
.office-group h2 { font-size:22px; margin:20px 0 8px; }
.office-count { font-weight:400; }
.office-none { font-size:18px; margin:0 0 8px; }
.office-group .ui-card-line { font-size:18px; overflow-wrap:anywhere; }
.office-group .ui-card-head { min-width:0; }
.office-group .ui-card-head h3, .office-group .ui-card-head h3 a { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.office-steps summary { display:flex; align-items:center; min-height:48px; font-size:18px; font-weight:600; cursor:pointer; color:var(--blue-dark); }
.office-step-list { margin:0 0 8px; padding-left:22px; font-size:18px; }
.office-step-list li { margin:4px 0; overflow-wrap:anywhere; }
.office-step-at { font-variant-numeric:tabular-nums; font-weight:600; }
/* UX-AUDIT-7: "Other jobs" folds (one per next step, closed by default) and the Test jobs fold; 48 px tap, 18 px words */
.office-fold { margin:0 0 8px; border:1px solid var(--mid); border-radius:8px; padding:0 12px; }
.office-fold > summary { display:flex; align-items:center; min-height:48px; font-size:18px; font-weight:600; cursor:pointer; color:var(--blue-dark); overflow-wrap:anywhere; }
.office-fold[open] > summary { margin-bottom:8px; }

/* JOB-CLOSEOUT-PROOF part A (_closeout.html): the close-out check on the job's field page. Phone first (rule 35): 18 px words, 48 px taps. */
.closeout .co-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.closeout .co-item { border: 1px solid var(--ui-border, #c9d2dc); border-radius: 10px; padding: 12px; font-size: 18px; }
.closeout .co-item h3 { margin: 4px 0; font-size: 20px; overflow-wrap: anywhere; }
.closeout .co-kicker, .closeout .co-dir, .closeout .co-count, .closeout .co-limit { font-size: 18px; margin: 6px 0; }
.closeout .co-done { border-color: var(--ok-fg); }
.closeout .co-needs_proof, .closeout .co-needs_video { border-color: var(--danger); }
.closeout .co-proofs { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.closeout .co-proofs img { display: block; max-width: 100%; max-height: 220px; border-radius: 6px; }
.closeout .co-proofs a { overflow-wrap: anywhere; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 48px; }
.closeout .co-inline { display: inline-block; margin: 4px 8px 4px 0; }
.closeout .ui-btn, .closeout label.ui-btn { min-height: 48px; }
.closeout .co-file { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; overflow: hidden; }
.closeout .co-office summary { min-height: 48px; display: flex; align-items: center; font-size: 18px; cursor: pointer; }
.closeout .co-office textarea, .closeout .co-add input { width: 100%; font-size: 18px; box-sizing: border-box; }
.closeout .ui-chip, .closeout [data-upload-said], .closeout .upl-list, .closeout .upl-mark, .closeout .upl-list * { font-size: 18px; }
.closeout .co-next { font-weight: 600; }
.closeout .co-office textarea, .closeout .co-add input { min-height: 48px; }

/* MVP10-SCHEDULE: the Schedule board (schedule.html), one column on a phone */
.sched-sug, .sched-none { margin:var(--ui-space-1) 0; font-size:var(--ui-font-body); line-height:var(--ui-line-body); color:var(--ui-ink); }
.sched-go { margin:var(--ui-space-1) 0; }
.sched-change { margin:var(--ui-space-1) 0 0; font-size:var(--ui-font-body); }
.sched-change summary { min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); color:var(--ui-blue); font-weight:700; cursor:pointer; }
.sched-pick { display:flex; flex-wrap:wrap; gap:var(--ui-space-1) var(--ui-space-2); align-items:flex-end; margin:0 0 var(--ui-space-1); }
.sched-pick label { display:flex; flex-direction:column; font-size:var(--ui-font-label); }
.sched-pick select { min-height:var(--ui-tap-min); font-size:var(--ui-font-body); }
.sched-crew { margin:0; padding:var(--ui-space-1) 0 0; border:0; }
.sched-crew legend { font-weight:700; font-size:var(--ui-font-label); }
.sched-person { display:flex; gap:var(--ui-space-1); align-items:center; min-height:var(--ui-tap-min); font-size:var(--ui-font-body); overflow-wrap:anywhere; }
.sched-person input { width:24px; height:24px; flex:none; }
.sched-person > span { flex:1 1 auto; min-width:0; }
.sched-why { color:var(--ui-mid); }
.sched-nav { display:flex; justify-content:space-between; gap:var(--ui-space-2); }
.sched-nav a { display:inline-block; min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); font-size:var(--ui-font-body); }
.sched-day { margin:0 0 var(--ui-space-2); padding:var(--ui-space-2); background:var(--card); border:1px solid var(--ui-line); border-radius:var(--ui-radius-card); font-size:var(--ui-font-body); }
.sched-day h3 { margin:0 0 var(--ui-space-1); font-size:var(--ui-font-section); }
.sched-today { border-color:var(--ui-blue); border-width:2px; background:var(--ui-info-bg); }
/* UX-POLISH-12: an empty day is one compact line (no card), so the days with work and today stand out */
.sched-day.sched-empty { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 var(--ui-space-1); margin:0; padding:var(--ui-space-1) var(--ui-space-2); background:transparent; border:0; border-bottom:1px solid var(--ui-line); border-radius:0; }
.sched-day.sched-empty h3 { margin:0; font-size:var(--ui-font-body); }
.sched-day.sched-empty p { margin:0; }
.sched-day.sched-empty.sched-today { margin:var(--ui-space-1) 0; border:2px solid var(--ui-blue); border-radius:var(--ui-radius-card); background:var(--ui-info-bg); }
.sched-day:not(.sched-empty) + .sched-day.sched-empty { margin-top:var(--ui-space-1); }
.sched-line { display:flex; flex-wrap:wrap; justify-content:space-between; gap:var(--ui-space-1); padding:var(--ui-space-1) 0; border-top:1px solid var(--ui-soft); }
.sched-line p { margin:0; line-height:var(--ui-line-body); overflow-wrap:anywhere; }
.sched-line a { display:inline-block; min-height:var(--ui-tap-min); padding:10px 0; line-height:var(--ui-line-compact); }
/* SCHEDULE-V2 part A (schedule.html): who's free strip, To fix badge, who is where chips, person x day grid */
.sched-head h1 { margin-bottom:0; }
.sched-sub { margin:4px 0 var(--ui-space-2); font-size:var(--ui-font-body); color:var(--ui-mid); display:flex; flex-wrap:wrap; gap:var(--ui-space-1); align-items:center; }
.sched-fixchip { display:inline-block; min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); padding:0 12px; border-radius:999px; background:var(--danger-bg); color:var(--danger); font-weight:700; text-decoration:none; }
.sched-badge-red { background:var(--danger-solid); color:var(--on-fill); }
.sched-free { display:grid; grid-template-columns:repeat(auto-fit, minmax(52px, 1fr)); gap:6px; margin:0 0 var(--ui-space-2); }
.sched-free-day { display:flex; flex-direction:column; align-items:center; padding:6px 2px; border:1px solid var(--ui-line); border-radius:var(--ui-radius-card); background:var(--card); font-size:15px; line-height:1.25; text-align:center; min-width:0; }
.sched-free-day strong { font-size:17px; }
.sched-free-day.is-today { border:2px solid var(--ui-blue); background:var(--ui-info-bg); }
.sched-free-day.is-full { background:var(--ui-soft); }
.sched-free-day.is-over { border-color:var(--danger); background:var(--danger-bg); color:var(--danger); }
.sched-free-wd { font-size:15px; overflow-wrap:anywhere; }
.sched-gridlink { margin:-4px 0 var(--ui-space-1); text-align:right; }
.sched-gridlink a { display:inline-block; min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); font-size:var(--ui-font-body); }
.sched-job { margin:0 0 var(--ui-space-1); padding:var(--ui-space-1) var(--ui-space-2); background:var(--card); border:1px solid var(--ui-line); border-radius:var(--ui-radius-card); font-size:var(--ui-font-body); }
.sched-job p { margin:0; overflow-wrap:anywhere; }
.sched-job a { display:inline-block; min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); }
.sched-chips { display:flex; flex-wrap:wrap; gap:6px; padding:4px 0; }
.sched-name { display:inline-block; padding:2px 10px; border-radius:999px; background:var(--ui-info-bg); font-size:16px; }
.sched-gridbox { margin:0 0 var(--ui-space-2); font-size:var(--ui-font-body); }
.sched-gridbox summary { min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); color:var(--ui-blue); font-weight:700; cursor:pointer; }
.sched-gridwrap { overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }
.sched-gridtab { border-collapse:separate; border-spacing:3px; font-size:15px; min-width:100%; }
.sched-gridtab th { text-align:left; font-weight:700; padding:4px; }
.sched-gridtab tbody th { max-width:7em; overflow-wrap:anywhere; }
.sched-gridtab thead th { white-space:nowrap; }
.sched-gridtab td { padding:6px 4px; border-radius:6px; text-align:center; min-width:64px; overflow-wrap:anywhere; background:var(--ui-soft); }
.sched-gridtab th.is-today { color:var(--ui-blue); }
.sched-cell.is-busy { background:var(--ui-info-bg); }
.sched-cell.is-free { background:var(--ok-bg); }
.sched-cell.is-conflict { background:var(--danger-bg); color:var(--danger); font-weight:700; }
.sched-cell.is-off, .sched-cell.is-not_work_day, .sched-cell.is-past { color:var(--ui-mid); }
.sched-insp td { background:var(--warn-bg); }
/* UX-AUDIT-3 (Codex UXA-3): job page = name + stage, one next-step card, then the work; the Removed box is a slim bar; every
   other job tool sits in one compact list lower down. Takeoff: accepted quantities and history fold away under their headings. */
.job-removed-slim .rm-removed:not(.rm-fresh) { margin:8px 0; padding:8px 12px; }
.job-removed-slim .rm-later { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; }
.job-removed-slim .rm-later p { margin:0; }
.job-removed-slim .rm-later form { margin:0 0 0 auto; }
.job-removed-slim .rm-later .btn { width:auto; min-height:48px; margin:0; padding:8px 16px; }
.job-tools { margin:22px 0 14px; }
.job-tools-more p.small { margin:8px 0; }
.tk-fold > summary { cursor:pointer; min-height:48px; display:flex; align-items:center; }
.tk-fold > summary h2 { display:inline; margin:0; }
/* UX-TALK-CHAT (Vlad 2026-11-19 20:33): the chat composer (_composer.html) on Home and the walk-through: examples above, one rounded box,
   "+" on the left, microphone and send arrow on the right, like the chat apps people know. */
/* UX-POLISH-23 (Codex post-merge a5e5ece2): the two examples are compact one-line chips in ONE row (it scrolls sideways when they do not
   both fit), so the box comes up one row higher; a tap still only fills the box (composer.js). */
.cmp-tips { list-style:none; margin:0 0 var(--ui-space-1); padding:0; display:flex; flex-wrap:nowrap; gap:8px; overflow-x:auto;
  -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.cmp-tips::-webkit-scrollbar { display:none; }
.cmp-tips > li { flex:0 0 auto; max-width:82%; }  /* pass1 M1: no chip is as wide as the row, so the next one always peeks in */
.cmp-tips[hidden] { display:none; }  /* FU-UXTALKCHAT (d): the example rows only fill the box with JS (composer.js unhides them) */
.cmp-tip { display:block; min-height:48px; padding:8px 16px; font:inherit; font-size:15px; line-height:1.2; text-align:left; white-space:nowrap;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; color:var(--ink); background:var(--soft); border:1px solid var(--line); border-radius:24px; cursor:pointer; }
.cmp-tip:focus-visible { outline:3px solid var(--blue); outline-offset:-3px; }  /* inside the chip: the sideways row clips an outer ring */
.cmp { margin:0 0 var(--ui-space-2); }
.cmp-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px; background:var(--card); border:1px solid var(--mid); border-radius:24px; }
.cmp-bar:focus-within { border-color:var(--blue); box-shadow:0 0 0 2px rgba(34,196,240,.35); }
.cmp-bar textarea { flex:1 1 100%; min-height:52px; margin:0; padding:6px 8px; border:0; border-radius:16px; resize:vertical; font-size:17px; }
.cmp-bar textarea:focus { outline:none; }
.cmp-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.cmp-btn { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-height:44px; margin:0; padding:0;
  font:inherit; font-size:20px; line-height:1; border-radius:50%; cursor:pointer; box-sizing:border-box; }
.cmp-plus { margin-right:auto; color:var(--blue); background:var(--card); border:2px solid var(--line); font-size:26px; font-weight:400; }
.cmp-plus:focus-within, .cmp-btn:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
/* FU-UXTALKCHAT (b): "+" is a label for the upload form's file input; keyboard focus lands on that input, so show it on the "+" */
:root:has(#upload-files:focus-visible) .cmp-plus { outline:3px solid var(--blue); outline-offset:2px; }
.cmp-rec { display:contents; }
.cmp-rec[hidden] { display:none; }
.cmp-bar .cmp-mic { color:var(--blue); background:var(--info-bg); border:2px solid var(--info-border); }
.cmp-rec.vo-on .cmp-mic { color:var(--on-fill); background:var(--danger-solid); border-color:var(--red); }
.cmp-rec.vo-locked .cmp-mic { opacity:1; }  /* FU-UXTALKCHAT (a): tap mode's Stop and send is live, not faded like a held recorder's locked mic */
.cmp-send { color:var(--on-fill); background:var(--fill); border:2px solid var(--fill); font-weight:700; }
/* HOME-HEADER (Vlad 2026-11-20 18:41): mic and send are one button in one spot (composer.js .cmp-one): an empty box shows the microphone
   (when it can record), words or a picked file show the send arrow. A recording in progress (.vo-on) keeps its Stop and send button. */
.cmp-one:not(.cmp-typed) .cmp-rec:not([hidden]) ~ .cmp-send { display:none; }
.cmp-one.cmp-typed .cmp-rec:not(.vo-on):not(.vo-locked) .cmp-mic { display:none; }
.cmp-one.cmp-typed .cmp-rec.vo-on ~ .cmp-send, .cmp-one.cmp-typed .cmp-rec.vo-locked ~ .cmp-send { display:none; }
.cmp-gap { margin-right:auto; }
.cmp-bar .vo-state, .cmp-bar .vo-retry { order:10; flex:1 1 100%; margin:0 8px; }
.cmp-bar .vo-state:empty { display:none; }
.cmp-upload { margin:0 0 var(--ui-space-2); }

/* FIXSHEET-3: a job's fixture sheet (templates/fixture_sheet.html). Phone first: 18 px text, 48 px taps. */
/* UX-POLISH-81: compact progress = a thin 3-part bar (done dark blue, now blue, next grey) + one line for the current step */
.fs-progress { margin: 0 0 16px; }
.fs-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 6px; font-size: 18px; }
.fs-step { flex: 1 1 0; height: 8px; border-radius: 4px; background: var(--ui-line, #c5ced6); }
.fs-step-done { background: var(--accent); }
.fs-step-now { background: var(--accent); box-shadow: 0 0 0 2px var(--page-top), 0 0 0 4px var(--ui-blue, #14508c); }
.fs-step-line { margin: 0; font-size: 18px; font-weight: 700; color: var(--ui-ink, #1b2530); }
.fs-busy, .fs-note, .fs-why, .fs-dir, .fs-meta, .fs-price, .fs-name, .fs-sheet .ui-card-line, .fs-steps, .fs-upload label { font-size: 18px; }
.fs-why { font-weight: 600; }
.fs-sec { margin: 20px 0 8px; }
.fs-pick summary { min-height: 48px; display: flex; align-items: center; font-size: 18px; cursor: pointer; }
.fs-pick ul { list-style: none; padding: 0; margin: 0; }
.fs-pick li { border-top: 1px solid var(--ui-line, #d5dbe2); padding: 8px 0; }
.fs-fix { display: grid; gap: 8px; margin-top: 8px; }
.fs-fix input { min-height: 48px; font-size: 18px; }
/* FIXSHEET-4 part B: Builder / Mid / Luxury packages (templates/_fixture_packages.html). Grade colour is a border + the chip word, never colour alone. */
.fpkg { margin: 20px 0 0; padding-top: 12px; border-top: 2px solid var(--ui-line, #d5dbe2); }
.fpkg-house { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 6px 0; }
.fpkg-house form { margin: 0; }
.fpkg-g { width: 100%; min-height: 56px; font-size: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; border-width: 3px; border-style: solid; }
.fpkg-builder { border-color: var(--ok-fg); }
.fpkg-mid { border-color: var(--warn-fg); }
.fpkg-luxury { border-color: var(--danger); }
.fpkg-on { font-weight: 700; box-shadow: 0 0 0 3px currentColor inset; }
.fpkg-sum { font-size: 16px; font-weight: 400; }
.fpkg-total { font-size: 18px; font-weight: 700; }
/* FIXSHEET-5 part B: the Price and buy list block (fixture_sheet.html, _fixture_posting.html) */
.fpost-say, .fpost-net { font-size: 18px; }
.fpost-net { font-weight: 700; }
.fpost-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.fpkg-line { border-top: 1px solid var(--ui-line, #d5dbe2); padding: 12px 0; }
.fpkg-cards { display: grid; gap: 8px; }
.fpkg-card { border: 2px solid; border-radius: 8px; padding: 8px 10px; font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.fpkg-card.fpkg-on { border-width: 4px; box-shadow: none; }
.fpkg-sort { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 800px) { .fpkg-cards { grid-template-columns: repeat(3, 1fr); } }

/* MARKETING-SCREEN part A (marketing.html, marketing_item.html): the checklist and lead-source lines inside a kit card; an item's whole text */
.mktg-list { list-style:none; margin:6px 0 0; padding:0; font-size:18px; line-height:1.4; }
.mktg-list li { margin:4px 0; overflow-wrap:anywhere; }
.mktg-check-done { color:var(--ui-ready-fg, #0a5a2c); }
.mktg-body { white-space:pre-wrap; overflow-wrap:anywhere; font-size:18px; line-height:1.5; margin:12px 0 0; }

/* OWNER-HOME-V2 (Vlad 2026-11-20 19:14, mockup tmp/ideas-mockup/role-owner-v2.png): the owner's one-screen Home. The bar: wordmark with
   "Owner · name" under it, the trade pack pill on the right; the page: one line, the examples, the composer, six SQUARE tiles 3x2 (name
   and count pill only). Fits a 390x844 phone with no scrolling; at 320 px the tiles shrink and the names get smaller, never cut. */
.brand-owner { display:flex; flex-direction:column; min-width:0; padding:4px 0; line-height:1.15; }
.brand-owner .brand { padding:0; font-size:20px; }
.brand-sub { color:var(--link); font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-pack { margin-left:auto; padding:2px 0 2px 14px; border-left:3px solid var(--info-border); color:var(--title); font-size:20px; font-weight:800; line-height:1.15; white-space:nowrap; }
@media (max-width:359px) { .home-pack { padding-left:10px; font-size:18px; } }
.home-owner .home-owner-line { margin:0 0 10px; font-size:18px; line-height:1.3; color:var(--ink); }
.home-owner .home-ask { margin-bottom:12px; }
.home-owner-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.home.home-owner .home-areas .home-tile { aspect-ratio:1 / 1; min-height:0; padding:8px 4px; border-radius:14px; }
.home.home-owner .home-areas .home-tile-title { font-size:clamp(14px, 4.4vw, 18px); line-height:1.15; overflow-wrap:anywhere; }
.home-owner-grid #tile-bench { grid-column:auto; }
/* MARKETING-SCREEN part D: the 7th square (Marketing) makes a 3rd row; on a short phone (iPhone SE: 568-667 px tall) the squares give up
   some height so the whole Home still fits above the bottom bar (one screen, no scrolling); never under 56 px (a 48 px tap target with room for the name and the pill). 392 px = what sits above and below the grid (top bar,
   line, Ask box, gaps, bottom bar): re-run tests/browser/check_owner_home_390.py whenever anything above or below the owner grid changes.
   min-height and the vh line keep 56 px on a browser without dvh (iOS Safari before 15.4 drops the dvh line). */
@media (max-height:700px) { .home.home-owner .home-areas .home-tile { aspect-ratio:auto; min-height:56px; height:max(56px, calc((100vh - 392px - var(--tabbar-gap)) / 3));
                                                                        height:max(56px, calc((100dvh - 392px - var(--tabbar-gap)) / 3)); } }
/* UX-POLISH-175 (Codex UX review 2026-11-26 10:25): on a phone the owner's tiles are 88 px tall, not ~111 px squares (about 69 px back over three
   rows, more room above Hold to talk); three columns, pills and two-line names unchanged. A short phone keeps its own height, never over 88 px.
   Wider screens keep the squares. */
@media (max-width:759px) { .home.home-owner .home-areas .home-tile { aspect-ratio:auto; height:88px; } }
@media (max-width:759px) and (max-height:700px) { .home.home-owner .home-areas .home-tile { height:min(88px, max(56px, calc((100vh - 392px - var(--tabbar-gap)) / 3)));
                                                                                         height:min(88px, max(56px, calc((100dvh - 392px - var(--tabbar-gap)) / 3))); } }
@media (max-width:359px) { .home-owner-grid { gap:8px; } .home.home-owner .home-owner-line { margin-bottom:6px; } .home-owner .home-ask { margin-bottom:8px; } }
@media (max-width:759px) { .ui-has-bar main:has(> .home-owner) { padding-bottom:calc(112px + env(safe-area-inset-bottom, 0px)); } }

/* TECH-HOME-V2 (Vlad 2026-11-20 20:25, mockup tmp/ideas-mockup/home-tech-v2.png): the field tech's Home. Next stop card (blue frame), the
   "+" photos row, three squares per row like the owner's, and one wide blue Hold to talk · What I did bar above the tab bar. */
.tn { margin:0 0 12px; padding:12px 14px; border:2px solid var(--ui-blue, #1f6fd1); border-radius:14px; background:var(--card); }
.tn-kicker { margin:0; color:var(--blue); font-size:18px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; }
.tn-job { margin:2px 0 0; font-size:20px; line-height:1.2; overflow-wrap:anywhere; }
.tn-job a { color:var(--ink); text-decoration:none; }
.tn-line { margin:2px 0 0; font-size:18px; color:var(--ink); overflow-wrap:anywhere; }
.tn-acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; align-items:stretch; }
.tn-btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; box-sizing:border-box; min-height:48px; padding:6px 12px; border:2px solid var(--info-border);
  border-radius:10px; background:var(--card); color:var(--blue-dark); font:inherit; font-size:18px; font-weight:700; text-decoration:none; cursor:pointer; }
.tn-check { flex:1 1 150px; margin:0; display:flex; }
.tn-go { flex:1; background:var(--ok-solid); border-color:var(--ok-fg); color:var(--on-fill); }
.tn-in { flex:1 1 150px; margin:0; display:flex; align-items:center; font-size:18px; font-weight:700; color:var(--ok-fg); }
.home-tech-extra { display:flex; flex-direction:column; gap:8px; margin:0 0 12px; }
.home-tech-extra .home-tile { min-height:52px; padding:8px 14px; border-radius:999px; }
.home-tech-extra .home-tile-title { font-size:18px; }
.home-tech-extra .home-photo label, .home-tech-extra a.home-tile { display:flex; flex-direction:row; align-items:center; gap:10px; }
.home-tech-extra .home-tile { flex-direction:row; align-items:center; background:var(--card); }
.home-tech-extra .home-tile .home-line { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }  /* the job's name is for a screen reader; the row says Add photos */
.home-tech-extra .home-tile-title > span[aria-hidden] { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; margin-right:6px; border:2px solid var(--info-border);
  border-radius:50%; background:var(--soft); color:var(--blue-dark); font-size:24px; font-weight:700; }
.home-tech-extra .home-photo { border-radius:14px; }  /* without scripts its Add photo button shows under the row */
/* TECH-HOME-V2 B1: the extra-work box (one row: the box, the microphone or the send arrow), its note and the tech's latest lines */
.home-xbox { margin:0 0 12px; }
.home-xbox .cmp-bar textarea { flex:1 1 0; min-width:0; min-height:44px; font-size:18px; }
.home-xbox .cmp-bar .cmp-gap { display:none; }
.home-xbox .cmp-bar .cmp-btn { min-width:48px; min-height:48px; }  /* rule 35(c): 48 px taps on a plumber screen */
.home-xbox-note { margin:6px 6px 0; font-size:18px; color:var(--ink); }
.home-xbox-lines { list-style:none; margin:6px 0 0; padding:0 6px; font-size:18px; }
.home-xbox-line { margin:2px 0; overflow-wrap:anywhere; }
.home-xbox-line.xw-priced { color:var(--ok-fg); }
/* TECH-HOME-V2 B1b: the draft price and Approve on the office's extra-work card (/extra-work) */
.xq { margin:6px 0 4px; }
.xq-head { margin:4px 0 2px; }
.xq-lines { margin:2px 0 6px; padding-left:20px; }
.xq-unread { margin:2px 0 6px; color:var(--warn-fg); }
.xq-price { display:inline-flex; align-items:center; gap:8px; margin-right:8px; }
.xq-price input { width:8em; min-height:48px; font-size:18px; }
.xq-approved { font-weight:600; }
.home-xbox .ui-soon { margin-top:8px; }
/* TECH-HOME-V2 B3: the field tech's Can Sell bar under the squares (18 px words on a plumber screen, rule 35(c)) */
.home-cansell { display:flex; flex-direction:column; gap:2px; margin:12px 0 0; padding:10px 12px; border:1px solid var(--info-border); border-radius:14px; background:var(--card); }
.home-cansell-title { font-size:18px; font-weight:700; }
.home-cansell-line { font-size:18px; overflow-wrap:anywhere; }
.home-cansell-how { font-size:18px; color:var(--ink); }
.home-tech-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.home.home-tech .home-tech-grid .home-tile { aspect-ratio:1 / 1; min-height:0; padding:8px 4px; border-radius:14px; align-items:center; justify-content:center; text-align:center;
  background:var(--soft); border-color:var(--info-border); }
.home.home-tech .home-tech-grid .home-tile-title { font-size:clamp(14px, 4.4vw, 18px); line-height:1.15; overflow-wrap:anywhere; }
.home.home-tech .home-tech-grid .home-line { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }  /* the count is the pill; the line stays for a screen reader */
.home-tech-grid .home-tile-wide { grid-column:1 / -1; aspect-ratio:auto !important; min-height:72px !important; }
.home-tech-bar { margin:14px 0 0; }
.home-tech-bar .home-tile-talk { min-height:56px; padding:6px 12px; border-radius:12px; color:var(--on-fill); background:var(--fill); border-color:var(--fill); align-items:center; justify-content:center; text-align:center; }
.home-tech-bar .home-tile-talk .home-tile-title, .home-tech-bar .home-tile-talk .home-line, .home-tech-bar .home-tile-talk .vo-state, .home-tech-bar .home-tile-open { color:var(--on-fill); }  /* white bar = dark ink on it */
.home-tech-bar .home-tile-mic { margin:0; background:transparent; color:var(--on-fill); border-color:transparent; font-size:18px; text-transform:uppercase; letter-spacing:.4px; }
.home-preview { margin:0 0 12px; padding:10px 12px; border-radius:10px; background:var(--warn-bg); font-size:18px; }
@media (max-width:359px) { .home-tech-grid { gap:8px; } .tn { padding:10px; } .tn-btn { padding:6px 8px; } }  /* the bar's own height + a gap: the Home ends above it, no scroll */
/* MARKETING-SCREEN part C1: Sales > Add a lead (_add_lead.html), the owner only. Screenshot first (the main tap), then Say it and Type. */
.add-lead { margin:0 0 12px; }
.add-lead h2 { margin:0 0 8px; }
.add-lead-label { display:block; font-size:18px; margin:0 0 4px; }
.add-lead-form input[type="text"] { width:100%; box-sizing:border-box; min-height:48px; font-size:18px; }
.add-lead-btns { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin:8px 0 0; align-items:stretch; }
.add-lead-btns .btn { min-height:48px; display:flex; align-items:center; justify-content:center; gap:6px; margin:0; font-size:18px; }
.add-lead-btns .add-lead-shot, .add-lead-btns [data-upload-send] { grid-column:1 / -1; }
.add-lead-btns .ui-soon { min-height:48px; margin:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px 6px; padding:4px 8px; }
.add-lead-filebox { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.add-lead-said p, .add-lead-ask p { margin:0 0 8px; font-size:18px; overflow-wrap:anywhere; }
.add-lead-acts { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.add-lead-acts form { margin:0; }
.add-lead-acts .btn { min-height:48px; }
.add-lead-reply { margin:0 0 12px; }
.add-lead-reply textarea { width:100%; box-sizing:border-box; font-size:18px; margin:0 0 8px; }
.add-lead-shotlink { display:inline-flex; align-items:center; min-height:48px; font-size:18px; }
.add-lead-fix label { display:block; font-size:18px; margin:8px 0 2px; }
.add-lead-fix input { width:100%; box-sizing:border-box; min-height:48px; font-size:18px; }
.add-lead-fix .btn { margin-top:12px; min-height:48px; width:100%; }
.add-lead-people { border:0; margin:8px 0 0; padding:0; }
.add-lead-person { display:flex; align-items:center; gap:8px; min-height:48px; font-size:18px; }
/* OWNER-HOME-V2: the Sales hub (sales.html top) */
.sales-head { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.sales-head h1 { margin-bottom:0; }
.sales-sub { margin:2px 0 12px; }
.sales-h2 { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
/* UX-POLISH-74: the "+ Campaign" link beside the heading stays on one line at 320 px (the "+" never sits alone). */
.sales-h2 > a { white-space:nowrap; }
.sales-calls { list-style:none; margin:0 0 12px; padding:0; }
.sales-calls li { padding:10px 0; border-bottom:1px solid var(--line, #dde3ea); }
.sales-dot { display:inline-block; width:10px; height:10px; margin-right:6px; border-radius:50%; }
.sales-dot-late { background:var(--danger-solid); }
.sales-dot-today { background:var(--warn-solid); }
.sales-dot-new { background:var(--accent); }
.sales-call-when { white-space:nowrap; } /* UX-POLISH-69: "New · no reply yet" / "Was due <day>" never split across lines */
/* MVP20-FOLLOWUPS part B: the lead page's follow-up emails card (one row per email: its day + a status chip) */
.lead-followup { font-size:18px; } /* rule 35: phone text 18 px (the app base is 16) */
.lead-followup-rows { list-style:none; margin:0 0 12px; padding:0; }
.lead-followup-rows li { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line, #dde3ea); }
.lead-followup-unsure { flex-basis:100%; margin:4px 0 0; }
.lead-followup-rows form { flex-basis:100%; }
/* LEAD-AUTOREPLY-SLA B2a: the instant reply's row and the qualification card; rule 35(c): 18 px, no small grey words */
.lead-followup-ack { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--line, #dde3ea); }
.lead-followup-ack p, .lead-followup-ack form { flex-basis:100%; margin:4px 0 0; }
.lead-qual { font-size:18px; }
.lead-qual .small, .lead-followup .small { font-size:18px; color:inherit; }
.lead-qual-reasons { margin:4px 0 8px; padding-left:22px; }
.lead-qual summary { display:flex; align-items:center; min-height:48px; cursor:pointer; overflow-wrap:anywhere; }
.lead-qual select { font-size:18px; min-height:48px; max-width:100%; }
.lead-qual label[for] { display:block; }
.lead-qual .ui-chip, .lead-followup .ui-chip, .lead-qual .ui-btn, .lead-followup .ui-btn, .lead-qual .btn, .lead-followup .btn, .lead-qual .btn-plain, .lead-followup .btn-plain, .lead-qual legend, .lead-qual label, .lead-qual summary { font-size:18px; }  /* rule 35(c): 18 px in both cards (Codex UX pass 1) */
.sales-links { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.sales-more { margin:16px 0; }
/* MARKETING-SCREEN part B: Sales > Where leads came from, one kit card per source; the count chip sits in the card's head. */
.sales-rows { display:grid; gap:8px; margin:0 0 8px; }
.sales-rows .ui-card-head .ui-chip { min-width:40px; justify-content:center; }
/* REALESTATE-AGENT-ROLE part A: the agent's Home (agent_home.html). The label is the file box's button; picking sends at once. */
.agent-page { font-size:var(--ui-font-body, 18px); }  /* rule 35(c): 18 px base on this phone page */
.agent-steps { list-style:none; padding:0; margin:.75rem 0; }
.agent-steps li { padding:.3rem 0; }
.agent-steps .agent-now { font-weight:700; }
.agent-steps .agent-next { color:var(--ink); opacity:.75; }
.agent-up { margin:1rem 0; }
.agent-up .agent-pick-big, .agent-up label.ui-btn { display:flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:56px; width:100%; cursor:pointer; }
.agent-up.js .agent-file-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.agent-up.js .agent-file-input:focus-visible + label { outline:3px solid var(--ink); outline-offset:2px; }
.agent-pages { list-style:none; padding:0; margin:.5rem 0 1rem; }
.agent-pages li { padding:.35rem 0; overflow-wrap:anywhere; }
.agent-connect .ui-btn { width:100%; min-height:56px; }
.agent-requests { margin-top:1.5rem; }
/* REALESTATE-AGENT-ROLE part B: the agent's estimate (agent_estimate.html), 18 px base, 48 px boxes (rule 35(c)) */
.agent-estimate .est-group { margin:1rem 0; }
.agent-estimate .est-price { display:block; margin-top:.5rem; }
.agent-estimate .est-price input { display:block; width:100%; max-width:14rem; min-height:48px; font-size:18px; padding:.4rem .6rem; }
.agent-estimate .est-totals { margin:1.25rem 0; padding:.75rem 0; border-top:2px solid var(--ui-border, #d0d7e2); }
.agent-estimate .est-now { font-size:1.15em; }

/* PROPOSALS-V2 part A: the office Proposals page (proposals_page.html, mockup tile-proposals.png) */
.pp-head { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--ui-space-2); margin:0 0 var(--ui-space-3); padding:var(--ui-space-2) var(--ui-space-3); color:var(--title); background:var(--hero-bg); border-radius:var(--ui-radius-card); }
.pp-head h1 { margin:0; color:var(--title); font-size:var(--ui-font-title); }
.pp-head .pp-back { color:var(--title); text-decoration:none; padding-right:4px; }
.pp-sub { margin:2px 0 0; color:var(--title); opacity:.85; font-size:var(--ui-font-footnote); }
.pp-need { flex:none; padding:4px 10px; color:var(--ui-blue-dark); background:var(--card); border-radius:var(--ui-radius-pill); font-weight:700; font-size:var(--ui-font-label); }
.pp-start { display:grid; grid-template-columns:1fr 1fr; gap:var(--ui-space-2); margin:0 0 var(--ui-space-3); }
.pp-sec { margin:0 0 var(--ui-space-3); }
.pp-sec-head { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-2); }
.pp-sec-head h2 { margin:0 0 var(--ui-space-1); font-size:var(--ui-font-label); text-transform:uppercase; letter-spacing:.04em; color:var(--ui-mid); }
.pp-count { display:inline-block; min-width:1.6em; padding:0 6px; color:var(--title); background:var(--hero-bg); border-radius:var(--ui-radius-pill); text-align:center; }
#pp-approve .pp-count { color:var(--on-fill); background:var(--warn-solid); }
.pp .ui-card { display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:var(--ui-space-2); align-items:center; margin:0 0 var(--ui-space-2); }
.pp .ui-card > * { grid-column:1; min-width:0; }
.pp .ui-card > .ui-card-act { grid-column:2; grid-row:1 / span 2; margin:0; }
.pp .ui-card-act .ui-btn { width:auto; min-width:var(--ui-tap-min); }
#pp-approve .ui-card-act .ui-btn-primary { background:var(--ui-ready-fg); border-color:var(--ui-ready-fg); }
.pp .ui-card > .progress, .pp .ui-card > .pp-soon-line { grid-column:1 / -1; }
.pp .ui-card > .progress { margin-top:var(--ui-space-1); }
.pp .ui-card > .progress .progress-text { display:none; }  /* the card line above already says "Takeoff N%" */
.pp-soon-line { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin:var(--ui-space-1) 0 0; }
.pp-soon { display:inline-flex; flex-wrap:wrap; align-items:center; gap:4px; color:var(--ui-mid); opacity:.75; font-size:var(--ui-font-footnote); }
.pp-soon-tag { padding:0 6px; border:1px solid var(--ui-line); border-radius:var(--ui-radius-pill); background:var(--ui-soft); }
.pp-soon .ui-btn { width:auto; }
.pp-won { margin:0; }
/* MONEY-PAGE part A: the owner Money page (money_page.html, mockup tile-money.png); cards share the Proposals page's row layout */
.mp-head { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--ui-space-2); margin:0 0 var(--ui-space-3); padding:var(--ui-space-2) var(--ui-space-3); color:var(--title); background:var(--hero-bg); border-radius:var(--ui-radius-card); }
.mp-head h1 { margin:0; color:var(--title); font-size:var(--ui-font-title); }
.mp-head .mp-back { color:var(--title); text-decoration:none; padding-right:4px; }
.mp-sub { margin:2px 0 0; color:var(--title); opacity:.85; font-size:var(--ui-font-footnote); }
.mp-pill { flex:none; padding:4px 10px; color:var(--danger); background:var(--card); border-radius:var(--ui-radius-pill); font-weight:700; font-size:var(--ui-font-label); }
.mp-totals { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--ui-space-1); margin:0 0 var(--ui-space-3); }
.mp-box { display:flex; flex-direction:column; align-items:center; min-width:0; padding:var(--ui-space-1); border:1px solid var(--ui-line); border-radius:var(--ui-radius-card); background:var(--ui-soft); text-align:center; }
.mp-box-num { font-size:clamp(1rem, 4.6vw, 1.25rem); white-space:nowrap; }
.mp-box-name { font-size:var(--ui-font-footnote); color:var(--ui-mid); }
.mp-note { margin:0 0 var(--ui-space-2); color:var(--ui-mid); font-size:var(--ui-font-footnote); }
.mp-sec { margin:0 0 var(--ui-space-3); }
.mp-sec-head { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-2); }
.mp-sec-head .ui-link { white-space:nowrap; }
.mp-sec-head h2 { margin:0 0 var(--ui-space-1); font-size:var(--ui-font-label); text-transform:uppercase; letter-spacing:.04em; color:var(--ui-mid); }
.mp-count { display:inline-block; min-width:1.6em; padding:0 6px; color:var(--on-fill); background:var(--warn-solid); border-radius:var(--ui-radius-pill); text-align:center; }
#mp-late .mp-count { background:var(--danger-solid); }
.mp .ui-card { display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:var(--ui-space-2); align-items:center; margin:0 0 var(--ui-space-2); }
.mp .ui-card > * { grid-column:1; min-width:0; }
.mp .ui-card > .ui-card-act { grid-column:2; grid-row:1 / span 2; margin:0; }
.mp .ui-card > .mp-soon-line { grid-column:1 / -1; }
.mp .ui-card-act .ui-btn { width:auto; min-width:var(--ui-tap-min); }
#mp-late .ui-card-line, #mp-margin .ui-card-line { overflow-wrap:anywhere; }
.mp .ui-card-head { min-width:0; }
.mp .ui-card h3, .mp .ui-card h3 a { min-width:0; max-width:100%; overflow-wrap:anywhere; }  /* UX-POLISH-79: a long one-word customer or job name wraps inside its card, never runs off the phone */
#mp-margin .ui-card h3::before { content:""; display:inline-block; width:.7em; height:.7em; margin-right:6px; border-radius:50%; background:var(--danger-solid); }
.mp-soon-line { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin:var(--ui-space-1) 0 0; }
.mp-soon { display:inline-flex; flex-wrap:wrap; align-items:center; gap:4px; color:var(--ui-mid); opacity:.75; font-size:var(--ui-font-footnote); }
.mp-soon-tag { padding:0 6px; border:1px solid var(--ui-line); border-radius:var(--ui-radius-pill); background:var(--ui-soft); }
.mp-soon .ui-btn { width:auto; }
.mp-gray { opacity:.8; }
.mp-links { display:grid; grid-template-columns:1fr 1fr; gap:var(--ui-space-2); margin:0 0 var(--ui-space-3); }
.mp-link { display:flex; flex-direction:column; justify-content:center; min-width:0; min-height:var(--ui-tap-min); padding:var(--ui-space-2); border:1px solid var(--ui-line); border-radius:var(--ui-radius-card); background:var(--ui-soft); color:inherit; text-decoration:none; }
.mp-link span { font-size:var(--ui-font-footnote); color:var(--ui-mid); }
/* JOBS-PAGE: the four stage counts, 2 x 2 on a phone, one row from 600px */
.jp-stages { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.jp-stage { margin: 0; text-align: center; }
.jp-stage strong { display: block; font-size: 1.75rem; }
@media (min-width: 600px) { .jp-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* IDEAS-TRACKER (Vlad 2026-11-20 18:30, mockup tmp/ideas-mockup/merged-button.png; _ideas_bar.html, ideas-bar.js): one full-width blue
   HOLD TO TALK · YOUR IDEAS bar fixed just above the tab bar on every page (at the very bottom on a desktop, where there is no tab bar).
   Tap opens the person's ideas above it; the recorder's lines, Stop and Try again sit above it too, so the bar never changes height. The page
   gets room for it, so it never covers the last line; toasts and the bulk bar move up above it. */
.ideas-bar { position:fixed; z-index:14; left:0; right:0; bottom:calc(var(--tabbar-gap) + 72px); }
.ideas-bar .ideas-form, .ideas-bar .ideas-rec { margin:0; position:static; }
.ideas-bar .ideas-btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:56px; margin:0; padding:6px 12px; border:0;
  border-radius:0; background:var(--fill); color:var(--on-fill); font-size:18px; font-weight:800; line-height:1.2; text-transform:uppercase; letter-spacing:.4px; }
.ideas-bar .vo-on .ideas-btn { background:var(--danger-solid); outline:0; }
.ideas-bar .vo-locked .ideas-btn { opacity:1; }
.ideas-count { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:26px; padding:0 7px; border-radius:13px; background:var(--card); color:var(--link); font-size:16px; }
.ideas-bar .ideas-state, .ideas-bar .vo-stop, .ideas-bar .vo-retry, .ideas-said { position:absolute; left:0; right:0; bottom:100%; margin:0; }
.ideas-bar .ideas-state { padding:10px 16px; background:var(--surface); border-top:1px solid var(--ui-line, #c5ced6); font-size:17px; }
.ideas-bar .vo-stop, .ideas-bar .vo-retry { width:auto; left:auto; right:12px; bottom:calc(100% + 6px); min-height:48px; }
.ideas-said { display:flex; padding:10px 16px; background:var(--toast-bg); color:var(--title); font-size:17px; }
.ideas-said[hidden] { display:none; }
.ideas-said-line { display:flex; align-items:center; gap:12px; margin:0; width:100%; }
.ideas-undo { min-height:48px; margin-left:auto; padding:0 16px; border:1px solid var(--line-strong); border-radius:8px; background:transparent; color:var(--title); font-size:17px; font-weight:700; }
.ideas-sheet { position:absolute; left:0; right:0; bottom:100%; max-height:min(60vh, 520px); overflow-y:auto; overscroll-behavior:contain; background:var(--surface);
  border-top:1px solid var(--ui-line, #c5ced6); box-shadow:0 -6px 18px rgba(0,0,0,.5); }
.ideas-list { list-style:none; margin:0; padding:0 16px; }
.ideas-item { padding:12px 0; border-bottom:1px solid var(--ui-line, #c5ced6); }
.ideas-item:last-child { border-bottom:0; }
.ideas-body { margin:8px 0 4px; font-size:18px; overflow-wrap:anywhere; }
.ideas-meta { margin:0; font-size:17px; color:var(--ui-mid, #55626f); }
.ideas-empty { padding:16px 0; font-size:18px; }
.ui-has-bar main:has(~ .ideas-bar) { padding-bottom:calc(176px + env(safe-area-inset-bottom, 0px)); }
.ui-has-bar:has(.ideas-bar) .ui-toast { bottom:calc(var(--tabbar-gap) + 136px); }
.ui-has-bar:has(.ideas-bar) .ui-bulk { bottom:calc(var(--tabbar-gap) + 136px); }
/* UX-POLISH-94 (Codex post-merge 2026-11-21 23:38, /bench No answer reveal): the page scroll keeps room for the fixed bars, so a reveal that
   scrolls itself into view (scrollIntoView block:nearest, e.g. "Open in Messages to send") and a focused field stop above the HOLD TO TALK
   bar and the tab bar, never under them. Phone: tabbar gap + 72 px tab bar + 56 px ideas bar + 8 px; tab bar alone gap + 72; desktop: ideas bar 56 + 8. */
@media (max-width:759px) {
  html:has(> body.ui-has-bar) { scroll-padding-bottom:calc(var(--tabbar-gap) + 72px); }
  html:has(> body.ui-has-bar > .ideas-bar) { scroll-padding-bottom:calc(var(--tabbar-gap) + 136px); }
}
@media (min-width:760px) { html:has(> body.ui-has-bar > .ideas-bar) { scroll-padding-bottom:64px; } }
@media (max-width:759px) { .ui-has-bar main:has(> .home-owner):has(~ .ideas-bar) { padding-bottom:calc(176px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width:359px) { .ideas-bar .ideas-btn { font-size:16px; letter-spacing:0; gap:6px; } }
@media (min-width:760px) { .ideas-bar { bottom:0; } .ui-has-bar main:has(~ .ideas-bar) { padding-bottom:96px; } .ui-has-bar:has(.ideas-bar) .ui-toast, .ui-has-bar:has(.ideas-bar) .ui-bulk { bottom:72px; } }
@media print { .ideas-bar { display:none; } }

/* IDEAS-TRACKER part B (Vlad 2026-11-20 18:37, Telegram voice-note look; static/voice.js liveOn): every Hold to talk, while held. The strip
   lies over the held button: red dot, running timer, "< Slide to cancel"; a big round blue microphone under the thumb and a padlock with ^
   above it; locked = trash can + Send in the strip. No CSS animation (test_progress): the dot blinks by the timer's tick, the microphone
   grows by a transition, and neither moves at all with "reduce motion" on. */
.vo-live { position:fixed; z-index:40; display:flex; align-items:center; gap:10px; box-sizing:border-box; padding:0 12px; background:var(--surface);
  color:var(--ink); border:1px solid var(--line); border-radius:8px; font-size:18px; pointer-events:none; }
.vo-live.vo-live-bar { border-radius:0; border-width:1px 0; }  /* the ideas bar: the strip is the bar, edge to edge */
.vo-dot { flex:0 0 auto; width:14px; height:14px; border-radius:50%; background:var(--danger-solid); transition:opacity .2s; }
.vo-dot.vo-dot-dim { opacity:.25; }
.vo-time { flex:0 0 auto; font-variant-numeric:tabular-nums; font-weight:700; }
.vo-slide { flex:1 1 auto; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-align:center; color:var(--mid); font-size:16px; font-weight:600; }
.vo-ball { position:fixed; z-index:41; width:88px; height:88px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--fill); color:var(--on-fill); font-size:36px; box-shadow:0 4px 14px rgba(0,0,0,.25); pointer-events:none; transform-origin:center;
  scale:.4; transition:scale .15s ease-out; }
.vo-ball.vo-ball-big { scale:1; }
.vo-padlock { position:fixed; z-index:41; width:44px; height:72px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; background:var(--surface); border:1px solid var(--line); border-radius:22px; box-shadow:0 2px 8px rgba(0,0,0,.15); font-size:20px; color:var(--mid); pointer-events:none; }
.vo-padlock-up { font-size:18px; line-height:1; }
.vo-live.vo-live-hands { pointer-events:auto; }  /* locked: the trash can and Send take taps */
.vo-live .vo-trash { flex:0 0 auto; min-width:48px; min-height:48px; padding:0; border:0; background:transparent; font-size:26px; cursor:pointer; }
.vo-live .vo-send { position:static; flex:0 0 auto; width:auto; min-height:48px; margin:0 0 0 auto; padding:0 20px; }
@media (max-width:359px) { .vo-live { gap:8px; } .vo-slide { white-space:normal; text-overflow:clip; text-align:left; font-size:16px; line-height:1.1; } }  /* 320 px: the hint wraps to 2 lines, never cut */
@media (prefers-reduced-motion: reduce) { .vo-ball { transition:none; scale:1; } .vo-dot { transition:none; } }

/* MVP21-CSV-IMPORT part B: Bring in a spreadsheet (crm_import.html, crm_import_one.html): cards, never a wide table. Kept above the UI-BLOCKS kit section */
.csvi-act { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.csvi-act form { margin:0; }
.csvi-counts { padding-left:20px; margin:8px 0; }
.csvi-counts li { margin:6px 0; }
.csvi-row h3, .csvi-row .ui-card-line, .csvi-typed, #csvi-file, #csvi-skipped { overflow-wrap:anywhere; }
.csvi-more summary { min-height:48px; display:flex; align-items:center; cursor:pointer; }
.csvi-file { min-height:48px; max-width:100%; }

/* SCHEDULE-V2 A2 (W4, mockup schedule-tech.png): the field tech's My day on /today (crew_plan.html); buttons reuse .tn-btn. Kept above the
   UI-BLOCKS kit section, which holds .ui-* rules only (tests/test_ui_blocks.py) */
.myday-head { position:relative; margin:0 0 12px; padding:12px 14px; border-radius:14px; background:var(--hero-bg); color:var(--title); }
.myday-head h1 { margin:0; padding-right:96px; font-size:24px; color:var(--title); overflow-wrap:anywhere; }
.myday-who { margin:2px 0 0; font-size:18px; }
.myday-count { position:absolute; top:12px; right:12px; padding:2px 10px; border-radius:999px; background:var(--card); color:var(--blue-dark); font-size:16px; font-weight:800; white-space:nowrap; }
.myday-line { margin:0 0 8px; padding:0 0 0 22px; list-style:none; border-left:3px solid var(--line); }
.myday-stop { position:relative; margin:0 0 14px; font-size:var(--ui-font-body); line-height:1.35; overflow-wrap:anywhere; }
.myday-stop::before { content:""; position:absolute; left:-31px; top:5px; width:14px; height:14px; border-radius:50%; background:var(--fill); }
.myday-now::before { background:var(--accent); }
.myday-pickup::before { background:var(--ok-solid); }
.myday-what { margin:0; font-weight:800; color:var(--ink); }
.myday-what a { color:var(--ink); padding:14px 0; }  /* inline, so the name runs on with the time and place; the padding keeps a 48 px tap */
.myday-sub { margin:2px 0 0; color:var(--mid); font-size:var(--ui-font-body); }
.myday-sub a { display:inline-block; min-height:var(--ui-tap-min); line-height:var(--ui-tap-min); }
.myday-stop .tn-acts { margin-top:8px; }
.myday-check { margin:10px 0 0; }
.myday-go { display:flex; width:100%; min-height:56px; align-items:center; justify-content:center; gap:6px; border:0; border-radius:14px; background:var(--ok-solid); color:var(--on-fill); font:inherit; font-size:20px; font-weight:800; cursor:pointer; }
.myday-in { margin:10px 0 0; font-size:18px; font-weight:700; color:var(--ok-fg); }
.myday-sec { margin:16px 0 6px; font-size:var(--ui-font-section); }
.myday-eod { padding:10px 12px; border:1px solid var(--line); border-radius:14px; }
.myday-week { margin:0 0 12px; padding:0; list-style:none; font-size:var(--ui-font-body); line-height:1.6; }
.myday-off { color:var(--mid); }
/* BENCH-PAGE: the three counts in one row, the area tiles 2 x 2 on a phone */
.bp-counts, .bp-tiles { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.bp-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-count, .bp-tile { margin: 0; text-align: center; }
.bp-count a, .bp-count-off, .bp-tile a { display: block; min-height: 48px; color: inherit; text-decoration: none; }
.bp-count strong, .bp-tile strong { display: block; font-size: 1.75rem; }
.bp-tile small { display: block; }
.bp-count span { display: block; font-size: 15px; overflow-wrap: normal; word-break: normal; hyphens: none; }  /* "New, checking" never breaks mid-word at 320 */
/* MVP19-COMPANY-EMAIL: the platform admin's one link command for a company mailbox wraps on a phone */
.pmail-cmd { display:block; padding:10px; background:var(--soft); border-radius:6px; font:16px/1.4 ui-monospace,Menlo,Consolas,monospace; overflow-wrap:anywhere; }
.cmail-page p, .cmail-page label, .cmail-page li { font-size:18px; line-height:1.45; }
/* CUSTOMERS-V3 (customers.html, customer.html, customer_certificates.html): the subtitle line, the "none" lines, a whole list card as the
   tap target (the name's link covers the card: rows hold no other control), the chips row and the bottom actions */
.cv3-sub { margin:-8px 0 12px; color:var(--ui-mid); font-size:var(--ui-font-body); }
.cv3-none { font-size:var(--ui-font-body); }
.cv3-list .ui-card-head h3 a::after { content:""; position:absolute; inset:0; }
.cv3-chips { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 12px; }
.cv3-chips .ui-soon-row { flex:1 1 100%; }
.cv3-acts { display:grid; gap:8px; margin:16px 0; }
/* USAGE-V3 (usage.html, Vlad 2026-11-21 13:57 mockup usage-v3.png): the month on top of /usage. Day bar heights are step classes
   usage-h0..h20 (5% each) because the CSP allows no inline style; a day column is the whole chart height, so the tap area is tall. */
.usage-hero { margin:6px 0 2px; font-size:18px; }
.usage-hero-amount { font-size:40px; line-height:1.1; font-weight:800; margin-right:4px; }
.usage-hero-rest { color:var(--mid); }
.usage-days { display:flex; align-items:stretch; gap:3px; height:96px; margin:14px 0 4px; }
.usage-day { flex:1 1 0; min-width:0; display:flex; align-items:flex-end; }
a.usage-day:focus-visible { outline:3px solid var(--blue); outline-offset:1px; }
.usage-day-bar { display:block; width:100%; background:var(--fill); border-radius:2px 2px 0 0; }
a.usage-day .usage-day-bar { background:var(--fill); }
.usage-h0 { height:2px; background:var(--soft); }
.usage-h1 { height:5%; }
.usage-h2 { height:10%; }
.usage-h3 { height:15%; }
.usage-h4 { height:20%; }
.usage-h5 { height:25%; }
.usage-h6 { height:30%; }
.usage-h7 { height:35%; }
.usage-h8 { height:40%; }
.usage-h9 { height:45%; }
.usage-h10 { height:50%; }
.usage-h11 { height:55%; }
.usage-h12 { height:60%; }
.usage-h13 { height:65%; }
.usage-h14 { height:70%; }
.usage-h15 { height:75%; }
.usage-h16 { height:80%; }
.usage-h17 { height:85%; }
.usage-h18 { height:90%; }
.usage-h19 { height:95%; }
.usage-h20 { height:100%; }
.usage-for { margin:0 0 12px; }
.usage-for-row { padding:8px 0; border-bottom:1px solid var(--line); }
.usage-for-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin:0; font-size:18px; }
.usage-quiet { font-weight:400; color:var(--mid); font-size:18px; }
.usage-for-n { margin:2px 0 0; font-size:18px; color:var(--mid); }
.usage-caption { margin:0 0 4px; font-size:18px; color:var(--ink); }
.usage-month { margin:0 0 2px; font-size:18px; color:var(--ink); }
.usage-details { margin-top:16px; }
.usage-details > :not(summary) { margin-left:12px; margin-right:12px; }
/* UX-POLISH-151: the Detailed usage counts fold shows a chevron, down when closed, up when open (from [open]); drawn, not read aloud */
.usage-details > summary::after { content:""; flex:none; width:10px; height:10px; margin:-4px 4px 0 0; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); }
.usage-details[open] > summary::after { margin-top:4px; transform:rotate(-135deg); }
/* UX-POLISH-90 (Codex post-merge 2026-11-21): the /bench and /bench/jobs back links keep the app link color (--link, both themes) after a visit (no purple), so
   "Back to jobs" and "Plumber bench" look like every other BluePlan link. Kept above the UI-BLOCKS kit section (.ui-* rules only). */
.bench-nav a, .bench-nav a:visited { color:var(--link); }

/* AI-FIRST-H1 part 1 (W4, 2026-11-26): the Onboarding packet page (company_packet.html). Only theme tokens (W3 owns their values): a
   ready row is the ready color, ends soon / check / starts later the check (amber) color, missing the waiting (grey, dashed), expired the
   blocked (red); a reading row shows a still part-ring, never a moving one (tests/test_progress.py). Fits 320 px: the text wraps, nothing is wider than the screen. */
.cpk-head { margin:0 0 var(--ui-space-2); }
.cpk-head h1 { margin:0; font-size:var(--ui-font-title); line-height:var(--ui-line-title); overflow-wrap:anywhere; }
.cpk-sub { margin:4px 0 0; color:var(--ui-mid); font-size:var(--ui-font-footnote); }
.cpk-card { margin:0 0 var(--ui-space-2); padding:var(--ui-space-2); border:1px solid var(--ui-line); border-radius:var(--ui-radius-card); background:var(--ui-soft); max-width:100%; box-sizing:border-box; }
.cpk-label { margin:0 0 var(--ui-space-1); font-size:var(--ui-font-label); color:var(--ui-blue); }
.cpk-rows, .cpk-notes { list-style:none; margin:0; padding:0; }
.cpk-row + .cpk-row { border-top:1px solid var(--ui-line); }
.cpk-tap { display:flex; align-items:center; gap:var(--ui-space-1); min-height:var(--ui-tap-min); padding:4px 0; color:inherit; text-decoration:none; min-width:0; }
.cpk-text { display:flex; flex-direction:column; min-width:0; overflow-wrap:anywhere; }
.cpk-title { font-weight:700; }
.cpk-line { font-size:var(--ui-font-footnote); color:var(--ui-mid); }
.cpk-dot { flex:0 0 28px; width:28px; height:28px; box-sizing:border-box; border-radius:50%; border:2px solid var(--ui-waiting-border);
  display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; line-height:1; }
.cpk-ready .cpk-dot { background:var(--ui-ready-fg); border-color:var(--ui-ready-fg); color:var(--ui-ready-bg); }
.cpk-ends_soon .cpk-dot, .cpk-not_yet .cpk-dot { border-color:var(--ui-check-border); background:var(--ui-check-bg); }
.cpk-ends_soon .cpk-line, .cpk-not_yet .cpk-line { color:var(--ui-check-fg); }
.cpk-unsure .cpk-dot { border-color:var(--ui-check-border); background:var(--ui-check-bg); color:var(--ui-check-fg); }
.cpk-unsure .cpk-line, .cpk-missing .cpk-line { color:var(--ui-check-fg); }
.cpk-missing .cpk-dot { border-style:dashed; border-color:var(--ui-waiting-border); }
.cpk-expired .cpk-dot { border-color:var(--ui-blocked-border); background:var(--ui-blocked-bg); color:var(--ui-blocked-fg); }
.cpk-expired .cpk-line { color:var(--ui-blocked-fg); }
.cpk-reading .cpk-tap, .cpk-reading { display:flex; align-items:center; gap:var(--ui-space-1); min-height:var(--ui-tap-min); }
.cpk-reading .cpk-dot { border-color:var(--ui-line); border-top-color:var(--ui-blue); border-right-color:var(--ui-blue); }
.cpk-notes { margin-top:var(--ui-space-1); }
.cpk-note { padding:4px 0; font-size:var(--ui-font-footnote); color:var(--ui-mid); overflow-wrap:anywhere; }
.cpk-inline { display:inline; margin:0; }
.cpk-leave { margin:0 0 var(--ui-space-1); }
.cpk-pick { margin:0 0 var(--ui-space-1); }
.cpk-upload .cpk-upload-btn { display:flex; align-items:center; justify-content:center; min-height:var(--ui-tap-min); width:100%; box-sizing:border-box; cursor:pointer; }
.cpk-file { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.cpk-file:focus-visible + .cpk-hint { outline:2px solid var(--ui-blue); }
.cpk-hint { margin:var(--ui-space-1) 0 0; color:var(--ui-mid); }
.cpk-nothing, .cpk-last { margin:var(--ui-space-1) 0 0; color:var(--ui-mid); }
#packet.cpk-card input, #packet.cpk-card textarea { max-width:100%; box-sizing:border-box; }
/* H1-DOCS-SIMPLE: ui.fold, one row that opens (native <details>); the chevron turns when open */
.ui-fold { border-top:1px solid var(--ui-line); min-width:0; }
.ui-fold:last-child { border-bottom:1px solid var(--ui-line); }
.ui-fold-head { display:flex; align-items:center; gap:var(--ui-space-1); min-height:var(--ui-tap-min); padding:4px 0; cursor:pointer; list-style:none; min-width:0; }
.ui-fold-head::-webkit-details-marker { display:none; }
.ui-fold-head::marker { content:""; }
.ui-fold-chev { flex:0 0 auto; width:9px; height:9px; margin:0 4px 0 2px; border-right:2px solid var(--ui-mid); border-bottom:2px solid var(--ui-mid); transform:rotate(45deg); transition:transform .15s; }
.ui-fold[open] > .ui-fold-head .ui-fold-chev { transform:rotate(225deg); }
.ui-fold-head:focus-visible { outline:2px solid var(--ui-blue); outline-offset:2px; }
.ui-fold-body { padding:0 0 var(--ui-space-2); min-width:0; overflow-wrap:anywhere; }
/* H1-DOCS-SIMPLE: Company documents rows (number, name, two-state words at the right) */
.cdocs-papers { margin:var(--ui-space-2) 0 var(--ui-space-1); font-size:var(--ui-font-label); color:var(--ui-blue); }
.cdocs-rows { margin:0 0 var(--ui-space-2); }
.cdocs-num { flex:0 0 28px; width:28px; height:28px; box-sizing:border-box; border-radius:50%; border:2px solid var(--ui-waiting-border); display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:var(--ui-font-footnote); }
/* a name never breaks inside a word (320 px: "Registration" stays whole); the words at the right take the rest and wrap at spaces */
/* fix 1 C4: min-width 0, so a long name in another language wraps (hyphens where the language allows) instead of pushing the page sideways;
   English names stay whole (no auto hyphens) */
.cdocs-name { flex:0 1 auto; min-width:0; font-weight:700; overflow-wrap:break-word; hyphens:auto; }
.cdocs-name:lang(en) { hyphens:manual; }
.cdocs-say { flex:1 1 0; min-width:0; text-align:right; font-size:var(--ui-font-footnote); font-weight:600; overflow-wrap:break-word; }
.cdocs-mark-ok .cdocs-say { color:var(--ui-ready-fg); }
.cdocs-mark-ok .cdocs-num { border-color:var(--ui-ready-border); background:var(--ui-ready-bg); color:var(--ui-ready-fg); }
.cdocs-mark-soon .cdocs-say { color:var(--ui-check-fg); }
.cdocs-mark-soon .cdocs-num { border-color:var(--ui-check-border); background:var(--ui-check-bg); color:var(--ui-check-fg); }
.cdocs-mark-attention .cdocs-say { color:var(--ui-blocked-fg); }
.cdocs-mark-attention .cdocs-num { border-color:var(--ui-blocked-border); background:var(--ui-blocked-bg); color:var(--ui-blocked-fg); }
.cdocs-mark-reading .cdocs-say { color:var(--ui-mid); }
.cdocs-paper .cdocs-file + .cdocs-file { border-top:1px dashed var(--ui-line); padding-top:var(--ui-space-1); }
.cdocs-paper .cdocs-file-line { margin:0 0 4px; }
.cdocs-paper form { margin:4px 0; }
.cdocs-paper .cdoc-change > summary, .cdocs-older > summary { display:flex; align-items:center; min-height:44px; cursor:pointer; color:var(--ui-blue); }
.cdocs-up-line { margin:var(--ui-space-1) 0 0; }
.cdocs-up { display:inline-flex; align-items:center; justify-content:center; min-height:var(--ui-tap-min); cursor:pointer; box-sizing:border-box; }
.cdocs-up:focus-visible { outline:2px solid var(--ui-blue); outline-offset:2px; } /* fix 1 S2: the row's Upload is reached by Tab */
.cdocs-up.cdocs-up-own { width:auto; margin:0; padding:0 6px; border:0; background:none; color:var(--ui-blue); text-decoration:underline; } /* fix 1 C2: a small link, 44 px tall */
.cdocs-why { margin:0 0 var(--ui-space-1); color:var(--ui-blocked-fg); } /* fix 1 M1: the L&I answer that turned the row red */
.cdocs-upload { margin:0 0 var(--ui-space-2); }
.cdocs-upload .cdocs-upload-btn { display:flex; align-items:center; justify-content:center; min-height:var(--ui-tap-min); width:100%; box-sizing:border-box; cursor:pointer; }
.cdocs-mark-attention .cpk-line, .cpk-mark-attention .cpk-line { color:var(--ui-blocked-fg); }
.cpk-mark-ok .cpk-line { color:var(--ui-ready-fg); }
.cpk-mark-soon .cpk-line { color:var(--ui-check-fg); }
.cdocs-lni-line { color:var(--ui-mid); }

/* APP-DARK-LOOK: pictures drawn for white paper keep a white plate on the dark page: the company logo, the new-company logo preview,
   plan and document page pictures. */
.cdet-logo, .ui-logo-preview, .sd .sd-pic img, .sd .sd-page img, .insp-pages .insp-page img, .dp-pages .dp-page img { background:var(--plate); }
/* APP-DARK-LOOK: on paper the page itself is white with dark text (the light tokens come back in the print block at the end). */
@media print {
  html, body { background:#fff; color:#1b2530; }
  h2 { color:#1b2530; }
  .top { color:#1b2530; border-bottom-color:#c5ced6; }
}
/* JOB-TYPE-BLANK-FIX (W3, Codex UX Must 2): the 'Set job type' jump lands the picker at the top with room under it, and the page end leaves the
   picker's hint and Save clear of the floating Ideas bar + tab bar (sticky at tabbar gap + 72 px tab bar + 56 px Ideas bar + 8 px). */
.jt-pick { scroll-margin-top:12px; }
.jt-pick .jt-save { position:sticky; z-index:2; bottom:calc(var(--tabbar-gap) + 136px); margin:0 -8px; padding:8px; background:var(--surface); border-radius:12px; }
.jt-pick .jt-save p { margin:0 0 8px; }
@media (min-width:760px) { .jt-pick .jt-save { bottom:80px; } }
.jt-jump { margin:8px 0 0; }

/* CUSTOMER-PAGES-LIGHT (Vlad 2026-11-26, Telegram 14586): a page a homeowner, GC or partner opens from a text or email stays light.
   base.html puts class="customer-page" on <body> for app.CUSTOMER_PAGE_ENDPOINTS (<html lang="xx"> stays as it is: tests read it) and the
   tokens sit on :root through :has(), so the html background, color-scheme and overscroll are light too. This block is the paper palette of
   the @media print block at the end of this file (tests/test_customer_pages_light.py keeps the two equal) plus the few screen-only tokens
   paper never needs. */
:root:has(> body.customer-page) {
    color-scheme:light;
    --page-gradient:none; --page-top:#fff; --page-mid:#fff; --page-low:#fff; --page-end:#fff;
    --title:#1b2530; --ink:#1b2530; --ink-2:#44505c; --mid:#55626f; --section:#1b2530; --muted:#55626f;
    --line:#c5ced6; --row-line:#c5ced6; --line-strong:#55626f;
    --card:#fff; --soft:#f2f5f7; --tint-strong:#e3e8ee; --hero-bg:#0e3c6b; --surface:#fff; --toast-bg:#26323d;
    --blue:#14508c; --blue-dark:#0e3c6b; --red:#a32020; --accent:#14508c; --link:#14508c;
    --fill:#14508c; --fill-hover:#0e3c6b; --on-fill:#fff;
    --danger:#a32020; --danger-bg:#fceaea; --danger-border:#d99a9a; --danger-solid:#a32020; --danger-fg:#8b1e1e;
    --ok-fg:#176b35; --ok-bg:#e8f5ec; --ok-border:#8abd9a; --ok-solid:#1e7d3a;
    --warn-fg:#704800; --warn-bg:#fff4d6; --warn-border:#d6a843; --warn-solid:#b45309;
    --info-fg:#0e3c6b; --info-bg:#eaf2fa; --info-border:#91b4d3;
    --purple-fg:#5b2a86; --purple-bg:#f3ecfa; --purple-border:#b9a0d6; --purple-solid:#5b2a86;
    --field-bg:#fff; --field-border:#55626f; --placeholder:#55626f; --disabled-fg:#55626f; --disabled-bg:#f2f5f7;
    --ui-ink:#1b2530; --ui-mid:#55626f; --ui-line:#c5ced6; --ui-soft:#f2f5f7; --ui-blue:#14508c; --ui-blue-dark:#0e3c6b; --ui-footnote:#44505c;
    --ui-surface:#fff; --ui-border:#c5ced6;
    --ui-ready-fg:#176b35; --ui-ready-bg:#e8f5ec; --ui-ready-border:#8abd9a;
    --ui-check-fg:#704800; --ui-check-bg:#fff4d6; --ui-check-border:#d6a843;
    --ui-waiting-fg:#44505c; --ui-waiting-bg:#f2f5f7; --ui-waiting-border:#c5ced6;
    --ui-blocked-fg:#8b1e1e; --ui-blocked-bg:#fceaea; --ui-blocked-border:#d99a9a;
    --ui-info-fg:#0e3c6b; --ui-info-bg:#eaf2fa; --ui-info-border:#91b4d3; --ui-danger:#a32020;
    --focus:#14508c; --plate-ink:#1b2530; --nav-fg:#44505c; --nav-on-bg:#e3e8ee;
    --ui-focus-ring:0 0 0 3px #14508c; --ui-shadow:0 2px 10px rgb(0 0 0 / 12%); --ui-toast-bg:#26323d; --ui-toast-fg:#fff;
}
/* CUSTOMER-PAGES-LIGHT, Codex 54(b) pass 1 (rule 35(c) on every customer page): base text, notes, directions and consent words 18 px (the
   applicant status page and unsubscribe inherited 16 px, document and onboarding directions/consent were 17 px); the applicant's language
   links are 48 px taps; the 'Ask for a different day' chip outline reaches 3:1 on white (was --line, 1.59:1). Words and layout unchanged. */
body.customer-page { font-size:18px; }
body.customer-page .small, body.customer-page .ob .ob-dir, body.customer-page .ob .ob-consent { font-size:18px; }
body.customer-page #status-lang a { display:inline-block; min-height:48px; line-height:48px; padding:0 4px; }
body.customer-page .ob.ps .ps-chip-none { border-color:var(--mid); }
/* MVP 8 Terms + privacy links (login, invite, proposal sign page, the legal pages): 18 px words, 48 px tap rows */
.legal-links { display:flex; flex-wrap:wrap; gap:0 24px; margin:16px 0; }
.legal-links a { display:inline-flex; align-items:center; min-height:48px; font-size:18px; }
/* S1-FIRST-LOGIN slice 3: "Set up your company" (setup.html). Reuses the Company documents rows (.cdocs-*, ui.fold). */
.setup-count { margin:var(--ui-space-1) 0; }
.setup-done { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ui-space-1); margin:0 0 var(--ui-space-2); padding:var(--ui-space-1) var(--ui-space-2); border:1px solid var(--ui-ready-border); background:var(--ui-ready-bg); color:var(--ui-ready-fg); border-radius:8px; }
.setup-done p { margin:0; flex:1 1 12em; font-weight:600; }
.setup-filled { margin:0 0 4px; font-weight:700; color:var(--ui-ready-fg); overflow-wrap:anywhere; }
.setup-ask { margin:0 0 var(--ui-space-1); font-weight:600; }
.setup-cards { list-style:none; margin:0 0 var(--ui-space-1); padding:0; display:grid; gap:var(--ui-space-1); }
.setup-card { display:flex; flex-wrap:wrap; align-items:center; gap:4px var(--ui-space-1); padding:var(--ui-space-1); border:1px solid var(--ui-line); border-radius:8px; }
.setup-card-name { flex:1 1 12em; min-width:0; font-weight:700; overflow-wrap:anywhere; }
.setup-card-city { color:var(--ui-mid); }
.setup-card-valid { font-size:var(--ui-font-footnote); font-weight:600; color:var(--ui-ready-fg); }
/* S1-FIRST-LOGIN slice 4: row 2 free trial and the owner's trial card (Home under the Ask box) */
.setup-trial { margin:0 0 var(--ui-space-1); font-weight:600; overflow-wrap:anywhere; }
.setup-card-start { margin:0 0 var(--ui-space-1); }
.trial-card { margin:0 0 14px; }
.trial-card a { display:inline-block; padding:6px 12px; border:1px solid var(--ui-line); border-radius:999px; font-weight:600; text-decoration:none; }
/* S1-FIRST-LOGIN slice 5 (W4): the owner's To do card on More, its count (also on the More tab, apart from the Inbox count), the first Home result card */
.ui-bar-todo { background:var(--ui-check-bg); color:var(--ui-check-fg); box-shadow:inset 0 0 0 1px var(--ui-check-border); }
.todo-card .todo-rows { list-style:none; margin:8px 0 0; padding:0; }
.todo-card .todo-rows li { border-top:1px solid var(--ui-line); }
.todo-card .todo-rows li > a, .todo-card .todo-rows li > span.todo-words { display:flex; }
.todo-card .todo-rows li > a, .todo-card .todo-rows li { min-height:48px; }
.todo-card .todo-rows li { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.todo-card .todo-rows li > a { flex:1; align-items:center; gap:8px; flex-wrap:wrap; text-decoration:none; color:inherit; }
.todo-card .todo-words { flex:1 1 12em; font-weight:600; }
.first-card { display:flex; align-items:center; gap:8px; margin:0 0 14px; padding:10px 12px; border:1px solid var(--ui-line); border-radius:12px; }
.first-card-line { flex:1; margin:0; font-weight:600; }
.first-card-act { display:flex; align-items:center; gap:4px; }
.first-card-act form { margin:0; }
.first-card-x { min-width:44px; min-height:44px; border:0; background:none; font-size:22px; line-height:1; cursor:pointer; color:inherit; }
.setup-card form { margin:0; flex:1 0 100%; }
.setup-card .btn, .setup-type .btn, .setup-data .btn, .setup-link { min-height:var(--ui-tap-min); }
.setup-type { display:flex; flex-wrap:wrap; gap:var(--ui-space-1); align-items:flex-end; margin-top:var(--ui-space-1); }
.setup-type label { flex:1 0 100%; font-weight:600; }
.setup-type input { flex:1 1 12em; min-width:0; min-height:var(--ui-tap-min); box-sizing:border-box; }
.setup-data { display:flex; flex-wrap:wrap; gap:var(--ui-space-1); align-items:center; }
.setup-data form { margin:0; }
.setup-soon { margin:var(--ui-space-2) 0 0; padding:var(--ui-space-1) var(--ui-space-2); border:2px dotted var(--ui-line); border-radius:8px; color:var(--ui-mid); display:flex; flex-wrap:wrap; gap:4px var(--ui-space-1); justify-content:space-between; }
.setup-soon-tag { font-size:var(--ui-font-footnote); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.setup-filled-note { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ui-space-1); margin:0 0 var(--ui-space-2); padding:var(--ui-space-1) var(--ui-space-2); border:1px solid var(--ui-ready-border); background:var(--ui-ready-bg); border-radius:8px; }
.setup-filled-note .setup-filled { flex:1 1 12em; margin:0; }
.setup-filled-note form { margin:0; }
.setup-row .cdocs-say { flex:0 1 auto; min-width:6.5em; }
.setup-row .cdocs-name { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.setup-row > .ui-fold-head { padding:4px var(--ui-space-1); }
.setup-row > .ui-fold-body { padding:0 var(--ui-space-1) var(--ui-space-2); }
.setup-data > .btn, .setup-data > form { flex:1 1 14em; }
.setup-data > form .btn, .setup-card form .btn, .setup-undo .btn { width:100%; }
.setup-filled-note .setup-undo .btn { width:auto; }

/* UI-BLOCKS (D99, Vlad 2026-11-16 20:45; tokens: Codex UX lead 2026-11-16, with rule 35 / UX35-TEXT folded in): the shared kit every new or
   changed screen is built from (templates/ui/blocks.html, static/ui-kit.js). Only --ui- variables and .ui- classes, so a screen that does
   not use the kit renders as before. 8 px grid; type 28/20/18; BlueLam blue is the only action color; chips colored by meaning
   (green ready, amber check by hand, grey waiting, red blocked, blue info for a role); every tap target at least 48 px. */
:root {
  --ui-space-1:8px; --ui-space-2:16px; --ui-space-3:24px; --ui-space-4:32px; --ui-space-6:48px;
  --ui-font-body:18px; --ui-font-label:17px; --ui-font-button:16px; --ui-font-footnote:15px; --ui-font-title:28px; --ui-font-section:20px; --ui-font-card-title:18px;
  --ui-line-body:1.45; --ui-line-title:1.15; --ui-line-compact:1.3;
  --ui-ink:#eef0f6; --ui-mid:#9a9fb3; --ui-line:rgba(255,255,255,.14); --ui-soft:rgba(255,255,255,.07); --ui-blue:#22c4f0; --ui-blue-dark:#9fe6fb; --ui-footnote:#b4b8c8;
  --ui-surface:rgba(255,255,255,.045); --ui-border:rgba(255,255,255,.14);
  --ui-ready-fg:#6ee7a0; --ui-ready-bg:rgba(52,199,89,.16); --ui-ready-border:rgba(110,231,160,.45);
  --ui-check-fg:#ffbf47; --ui-check-bg:rgba(255,176,32,.16); --ui-check-border:rgba(255,191,71,.45);
  --ui-waiting-fg:#c9ccd8; --ui-waiting-bg:rgba(255,255,255,.08); --ui-waiting-border:rgba(255,255,255,.22);
  --ui-blocked-fg:#ff8a8b; --ui-blocked-bg:rgba(255,77,79,.16); --ui-blocked-border:rgba(255,107,109,.5);
  --ui-info-fg:#5fd6f6; --ui-info-bg:rgba(34,196,240,.16); --ui-info-border:rgba(95,214,246,.45);
  --ui-danger:#ff6b6d;
  --ui-radius-sm:8px; --ui-radius-card:12px; --ui-radius-pill:999px;
  --ui-tap-min:48px; --ui-focus-ring:0 0 0 3px #22c4f0; --ui-shadow:0 2px 10px rgb(0 0 0 / 45%);
  --ui-toast-bg:#26293d; --ui-toast-fg:#fff;
}
.ui { font-size:var(--ui-font-body); line-height:var(--ui-line-body); }
.ui h1, .ui-title { margin:0 0 var(--ui-space-2); font-size:var(--ui-font-title); line-height:var(--ui-line-title); }
.ui h2, .ui-section { margin:var(--ui-space-3) 0 var(--ui-space-1); font-size:var(--ui-font-section); line-height:var(--ui-line-compact); }
.ui-foot { font-size:var(--ui-font-footnote); color:var(--ui-footnote); }
.ui :focus-visible { outline:none; box-shadow:var(--ui-focus-ring); }
.ui-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* status chip: says what state a thing is in; not a button */
.ui-chip { display:inline-flex; align-items:center; min-height:32px; padding:2px var(--ui-space-1); font-size:var(--ui-font-button); font-weight:700; line-height:var(--ui-line-compact);
  border:1px solid; border-radius:var(--ui-radius-pill); white-space:nowrap; }
.ui-chip-ready { color:var(--ui-ready-fg); background:var(--ui-ready-bg); border-color:var(--ui-ready-border); }
.ui-chip-check { color:var(--ui-check-fg); background:var(--ui-check-bg); border-color:var(--ui-check-border); }
.ui-chip-waiting { color:var(--ui-waiting-fg); background:var(--ui-waiting-bg); border-color:var(--ui-waiting-border); }
.ui-chip-blocked { color:var(--ui-blocked-fg); background:var(--ui-blocked-bg); border-color:var(--ui-blocked-border); }
.ui-chip-info { color:var(--ui-info-fg); background:var(--ui-info-bg); border-color:var(--ui-info-border); }
/* buttons: primary = the one action of a card or screen; secondary = an outline for an in-place action; a link for going somewhere */
.ui-btn { display:flex; align-items:center; justify-content:center; width:100%; min-height:var(--ui-tap-min); margin:0; padding:var(--ui-space-1) var(--ui-space-2);
  font:inherit; font-size:var(--ui-font-button); font-weight:700; line-height:var(--ui-line-compact); text-align:center; text-decoration:none; border-radius:var(--ui-radius-sm); cursor:pointer; }
.ui-btn-primary { color:var(--on-fill); background:var(--fill); border:2px solid var(--fill); }
.ui-btn-primary:hover { background:var(--fill-hover); border-color:var(--fill-hover); }
.ui-btn-secondary { color:var(--title); background:transparent; border:2px solid var(--line-strong); font-weight:600; }
.ui-btn-danger { color:var(--danger); background:var(--danger-bg); border:2px solid var(--ui-danger); }
.ui-btn:disabled, .ui-btn[aria-disabled="true"] { color:var(--ui-footnote); background:var(--ui-soft); border:2px dashed var(--ui-line); cursor:not-allowed; }
.ui-btn[hidden] { display:none; }
.ui-link { display:inline-flex; align-items:center; min-height:var(--ui-tap-min); padding:0 2px; font:inherit; font-size:var(--ui-font-body); color:var(--ui-blue);
  text-decoration:underline; background:none; border:0; cursor:pointer; }
/* card: title, up to 3 lines, 1 chip, 1 primary action, an optional secondary link */
.ui-card { position:relative; margin:0 0 var(--ui-space-2); padding:var(--ui-space-2); background:var(--card); border:1px solid var(--ui-line); border-radius:var(--ui-radius-card); }
.ui-card-hero { background:var(--card); border:2px solid var(--ui-blue); }
.ui-card-head { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-1); }
.ui-card-head h2, .ui-card-head h3 { flex:1 1 auto; min-width:0; margin:0; font-size:var(--ui-font-card-title); line-height:var(--ui-line-compact); }
.ui-card-head h3 a { display:inline-flex; align-items:center; min-height:var(--ui-tap-min); color:inherit; text-decoration:none; }  /* the name is a 48 px target */
.ui-card-head h3 a:hover { text-decoration:underline; }
/* card avatar (CUSTOMERS-V3): the initials badge sits left of the name and lines; the chips wrap under a long name */
.ui-card-av { display:grid; grid-template-columns:48px minmax(0, 1fr); column-gap:var(--ui-space-2); align-items:center; }
.ui-card-av > * { grid-column:2; min-width:0; }
.ui-card-av[hidden] { display:none; }  /* search as you type hides a card: the grid must not show it again */
.ui-card-av > .ui-avatar { grid-column:1; grid-row:1 / span 4; align-self:center; }
.ui-card-av .ui-card-head { flex-wrap:wrap; justify-content:flex-start; }
.ui-card-av .ui-card-head h3 { flex:0 1 auto; overflow-wrap:anywhere; }
.ui-avatar { display:flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:50%; background:var(--hero-bg); color:var(--title); font-size:var(--ui-font-button); font-weight:700; }
.ui-card-kicker { margin:0 0 var(--ui-space-1); font-size:var(--ui-font-section); font-weight:800; }
.ui-card-line { margin:var(--ui-space-1) 0 0; }
.ui-card-line.ui-quiet { color:var(--ui-mid); }
.ui-card-line.ui-wrap, .ui-card-line.ui-wrap .ui-link { max-width:100%; overflow-wrap:anywhere; } /* long web/email addresses wrap on a phone */
.ui-card-act { margin-top:var(--ui-space-2); }
.ui-card-act form { margin:0; }
.ui-card-act > .ui-btn + .ui-btn, .ui-card-act > form + .ui-btn, .ui-card-act > .ui-btn + form { margin-top:var(--ui-space-1); }  /* ui.card then=: the second step (e.g. No answer -> Text follow-up) right under the first */
.ui-card-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 var(--ui-space-2); margin-top:var(--ui-space-1); }
.ui-card-pick { display:flex; align-items:center; gap:var(--ui-space-1); min-height:var(--ui-tap-min); margin:0 0 var(--ui-space-1); font-size:var(--ui-font-label); font-weight:600; }
.ui-card-pick input { width:24px; height:24px; min-height:0; margin:0; }
/* BENCH-V3 C1: ui.choices, rows to tick inside a screen's form (48 px rows, 18 px words; a row that cannot be picked is grey with its why) */
.ui-choices { border:0; margin:0 0 var(--ui-space-2); padding:0; min-width:0; }
.ui-choices legend { padding:0; margin:0 0 var(--ui-space-1); font-size:var(--ui-font-label); font-weight:600; }
.ui-choice { display:flex; align-items:center; gap:var(--ui-space-2); min-height:var(--ui-tap-min); padding:var(--ui-space-1) 0; border-top:1px solid var(--ui-line); font-size:var(--ui-font-body); }
.ui-choice input { width:24px; height:24px; min-height:0; margin:0; flex:0 0 auto; }
.ui-choice-text { display:flex; flex-direction:column; flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.ui-choice-text > span:first-child { font-weight:600; }
.ui-choice-text .ui-foot { font-weight:400; }
.ui-choice-off { color:var(--ui-footnote); }
/* search + one filter control with counts */
.ui-search { margin:0 0 var(--ui-space-1); }
.ui-search input { width:100%; min-height:var(--ui-tap-min); padding:var(--ui-space-1) 12px; font:inherit; font-size:var(--ui-font-body); border:1px solid var(--ui-mid); border-radius:var(--ui-radius-sm); }
.ui-filter { display:flex; flex-wrap:wrap; align-items:flex-start; gap:var(--ui-space-1); margin:0 0 var(--ui-space-2); }
.ui-pill { display:inline-flex; align-items:center; min-height:var(--ui-tap-min); padding:0 var(--ui-space-2); font-size:var(--ui-font-button); font-weight:700; color:var(--ui-blue);
  text-decoration:none; background:var(--card); border:1px solid var(--ui-line); border-radius:var(--ui-radius-pill); cursor:pointer; list-style:none; }
.ui-pill::-webkit-details-marker { display:none; }
.ui-pill[aria-current="page"], .ui-pill.ui-on { color:var(--on-fill); background:var(--fill); border-color:var(--fill); }
/* language pick (BENCH-LANG, D96): one pill per language; pills wrap with a gap so two never touch at 320 px */
.ui-lang-pick { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ui-space-1); }
.ui-filter details { position:relative; }
.ui-filter details[open] > summary { border-color:var(--ui-blue); }
.ui-filter-menu { position:absolute; z-index:5; left:0; min-width:15rem; max-width:calc(100vw - 32px); margin:var(--ui-space-1) 0 0; padding:var(--ui-space-1) 0; list-style:none; background:var(--surface);
  border:1px solid var(--ui-line); border-radius:var(--ui-radius-sm); box-shadow:var(--ui-shadow); }
/* on a phone the menu lines up with the start of the filter row, not with its pill: a pill pushed right by "Needs action" would carry
   the menu past the edge (FU-MAIN-LANG390) */
@media (max-width:759px) { .ui-filter { position:relative; } .ui-filter details { position:static; } .ui-filter-menu { left:0; right:auto; max-width:100%; } }
.ui-filter details:not([open]) .ui-filter-menu { display:none; }  /* closed: no box at all (Chrome still lays out a closed <details>' content) */
.ui-filter-menu a { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-2); min-height:var(--ui-tap-min); padding:0 var(--ui-space-2); color:var(--ui-ink); text-decoration:none; }
.ui-filter-menu a[aria-current="page"] { font-weight:800; color:var(--ui-blue); }
.ui-filter-menu a:hover, .ui-filter-menu a:focus { background:var(--ui-soft); }
/* links (UX-AUDIT-6): each whole row opens the work */
.ui-links ul { margin:0; padding:0; list-style:none; }
.ui-links li + li { border-top:1px solid var(--ui-line); }
.ui-links a { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-2); min-height:var(--ui-tap-min); font-size:var(--ui-font-body); font-weight:700; color:var(--ui-blue); text-decoration:none; }
.ui-links a:focus-visible { outline:3px solid var(--ui-blue); outline-offset:2px; }
.ui-links-none { margin:0; font-size:var(--ui-font-body); }
/* "What's missing": one row per open item, its source under it, one action (or Done) on the right */
.ui-missing { margin:0 0 var(--ui-space-2); padding:0; list-style:none; }
.ui-missing li { display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-2); padding:var(--ui-space-2) 0; border-top:1px solid var(--ui-line); }
.ui-missing li > div { min-width:0; }
.ui-missing li > div p { margin:0; }
.ui-missing li > div .ui-foot { margin-top:var(--ui-space-1); }
.ui-missing .ui-btn, .ui-missing form { flex:0 0 auto; width:auto; margin:0; }
/* empty state */
.ui-empty { margin:0 0 var(--ui-space-2); padding:var(--ui-space-3); text-align:center; background:var(--ui-soft); border-radius:var(--ui-radius-card); }
.ui-empty h2 { margin:0 0 var(--ui-space-1); font-size:var(--ui-font-section); }
.ui-empty p { margin:0; }
.ui-empty .ui-btn { margin-top:var(--ui-space-2); }
/* toast: a short dark bar at the bottom; with Undo it stays about 8 s (static/ui-kit.js), longer while the finger, mouse or keyboard is on it */
.ui-toast { position:fixed; z-index:20; left:var(--ui-space-2); right:var(--ui-space-2); bottom:calc(var(--ui-space-2) + env(safe-area-inset-bottom, 0px)); max-width:560px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:var(--ui-space-1); padding:var(--ui-space-1) var(--ui-space-1) var(--ui-space-1) var(--ui-space-2);
  font-size:var(--ui-font-button); color:var(--ui-toast-fg); background:var(--ui-toast-bg); border-radius:10px; box-shadow:var(--ui-shadow); }
.ui-toast form { margin:0; }
.ui-toast .ui-btn { width:auto; min-width:6rem; color:var(--title); background:transparent; border:2px solid #fff; }
.ui-toast[hidden] { display:none; }
/* JOBS-LIST-CLEAN: a one-tap remove's toast: "Removed" + Undo, then "Why? Optional" with the reason chips on their own row */
.ui-toast-why { flex-wrap:wrap; }
.ui-toast-chips { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ui-space-1); flex-basis:100%; }
.ui-toast-chips p { flex-basis:100%; margin:0; }
.ui-rm-one { margin:0; }
.ui-rm-now { min-height:48px; padding:0; background:none; border:0; font:inherit; cursor:pointer; }
.ui-has-bar .ui-toast { bottom:calc(var(--tabbar-gap) + 72px); }  /* IDEAS-BAR-OWNER-ONLY: above the floating tab bar when no ideas bar is shown (same as .ui-bulk) */
/* Remove (D94): a visible Remove on every card; a swipe left on a phone shows a red Remove too (never removes by itself); each reason chip
   IS the remove (two taps, no confirm); multi-select removes several with one reason */
.ui-rm { margin:0; }
.ui-rm > summary { list-style:none; }
.ui-rm > summary::-webkit-details-marker { display:none; }
.ui-rm-q { margin:var(--ui-space-1) 0; font-weight:700; }
.ui-rm-chips { display:flex; flex-wrap:wrap; gap:var(--ui-space-1); margin:0 0 var(--ui-space-1); }
.ui-rm-chips .ui-btn { flex:1 1 40%; width:auto; }
details.ui-rm, .ui-filter details { margin:0; padding:0; border:0; border-radius:0; }  /* not the boxed <details> of older screens */
details.ui-rm[open] { flex-basis:100%; padding:var(--ui-space-1) 0 0; }
.ui-filter details[open] { padding:0; }
details.ui-rm > form { padding:0; }
.ui-swipe { position:absolute; top:0; right:0; bottom:0; display:none; align-items:center; justify-content:center; width:96px; color:var(--on-fill); font-weight:800;
  background:var(--danger-solid); border:0; border-radius:0 var(--ui-radius-card) var(--ui-radius-card) 0; font:inherit; font-weight:800; cursor:pointer; }
.ui-card.ui-swiped { padding-right:calc(96px + var(--ui-space-2)); }
.ui-card.ui-swiped .ui-swipe { display:flex; }
/* the same swipe on a plain list row (Team): the row holds the red Remove at its right edge */
.ui-swipe-row { position:relative; }
.ui-rows { list-style:none; margin:0 0 var(--ui-space-2); padding:0; }
.ui-rows > li { border-bottom:1px solid var(--ui-line); }
.ui-rows > li > a { display:flex; align-items:center; min-height:var(--ui-tap-min); }
.ui-swipe-row .ui-swipe { border-radius:0; }
.ui-swipe-row.ui-swiped { padding-right:96px; }
.ui-swipe-row.ui-swiped .ui-swipe { display:flex; }
.ui-bulk { position:sticky; z-index:10; bottom:0; margin:var(--ui-space-2) 0 0; padding:var(--ui-space-2); background:var(--surface); border:2px solid var(--ui-blue); border-radius:var(--ui-radius-card); box-shadow:var(--ui-shadow); }
.ui-bulk p { margin:0 0 var(--ui-space-1); font-weight:700; }
.ui-has-bar .ui-bulk { bottom:calc(var(--tabbar-gap) + 72px); }
/* phone bottom bar shell (NAV-TABBAR fills it): up to 5 labeled tabs, phone only */
.ui-bar { position:fixed; z-index:15; left:12px; right:12px; bottom:var(--tabbar-gap); display:flex; justify-content:space-around; gap:var(--ui-space-1); padding:4px var(--ui-space-1);
  background:var(--tabbar-bg); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border:1px solid var(--tabbar-border); border-radius:32px; box-shadow:0 8px 24px rgb(0 0 0 / 45%); }
.ui-bar a { flex:1 1 0; display:flex; align-items:center; justify-content:center; min-width:0; min-height:56px; padding:0 4px; font-size:var(--ui-font-footnote); font-weight:700;
  color:var(--tab-fg); text-align:center; text-decoration:none; border-radius:28px; }
.ui-bar a[aria-current="page"] { color:var(--title); background:var(--tab-on-bg); }
.ui-has-bar main { padding-bottom:calc(112px + env(safe-area-inset-bottom, 0px)); }
@media (min-width:760px) { .ui-bar { display:none; } .ui-has-bar main { padding-bottom:40px; } .ui-has-bar .ui-toast, .ui-has-bar .ui-bulk { bottom:var(--ui-space-2); } }
@media (prefers-reduced-motion: reduce) { .ui-card { transition:none; } }
@media print { .ui-bar, .ui-toast, .ui-bulk, .ui-rm, .ui-swipe { display:none; } }

/* CERT-SCOPE (b): the plumber certificate badge (ui.cert_code next to a name, ui.cert_line under it), the same on every office screen.
   Light background, dark text, written status (spec p.1); the colours reuse the chip tokens. */
.ui-badge { display:inline-block; margin-left:var(--ui-space-1); padding:0 6px; font-size:var(--ui-font-button); font-weight:700; line-height:1.4;
            color:var(--ui-info-fg); background:var(--ui-info-bg); border:1px solid var(--ui-info-border); border-radius:6px; vertical-align:middle; white-space:nowrap; }
.ui-badge-line { margin:4px 0 0; font-weight:600; overflow-wrap:anywhere; }
.ui-badge-line::before { content:""; display:inline-block; width:10px; height:10px; margin-right:6px; border-radius:50%; border:1px solid currentColor; vertical-align:baseline; }
.ui-badge-ready { color:var(--ui-ready-fg); } .ui-badge-ready::before { background:var(--ui-ready-bg); }
.ui-badge-check { color:var(--ui-check-fg); } .ui-badge-check::before { background:var(--ui-check-bg); }
.ui-badge-waiting { color:var(--ui-waiting-fg); } .ui-badge-waiting::before { background:var(--ui-waiting-bg); }
.ui-badge-blocked { color:var(--ui-blocked-fg); } .ui-badge-blocked::before { background:var(--ui-blocked-bg); }


/* IN-APP-NOTIFY part A: the unread Inbox count on the bar's Home tab and the desktop Inbox link */
.ui-bar-count { display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:24px; margin-left:4px; padding:0 6px; border-radius:11px; background:var(--fill); color:var(--on-fill); font-size:15px; font-weight:700; line-height:1; }
.ui-inbox-body { white-space:pre-line; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:8; -webkit-box-orient:vertical; overflow:hidden; }  /* the brief keeps its lines; the full plan is one tap away */

/* ELEC-A6 New company form: the picked logo, shown before saving */
.ui-logo-preview:not([hidden]) { display: block; max-width: 160px; max-height: 96px; margin-top: 8px; }


/* SHELL-FIRST ComingSoon (ui/blocks.html coming_soon): a part of an approved screen not built yet. Gray, dashed, a "Coming soon" tag, nothing
   to tap; the owner only (the macro checks the role). Shapes: tile (a Home square), row, wide. */
.ui-soon { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; box-sizing:border-box; margin:0; padding:26px 6px 8px;
  border:2px dashed var(--line); border-radius:14px; background:var(--soft); color:var(--mid); text-align:center; cursor:default; }
.ui-soon-tile { aspect-ratio:1 / 1; min-height:0; }
.ui-soon-row, .ui-soon-wide { flex-direction:row; flex-wrap:wrap; justify-content:flex-start; gap:4px 10px; padding:10px 12px; text-align:left; }
.ui-soon-row { border-radius:14px; min-height:52px; }
.ui-soon-wide { margin:12px 0 0; min-height:64px; }
.ui-soon-tag { position:absolute; top:4px; right:6px; padding:1px 7px; border-radius:999px; background:var(--toast-bg); color:var(--title); font-size:15px; font-weight:700; line-height:1.5; }
.ui-soon-row .ui-soon-tag, .ui-soon-wide .ui-soon-tag { position:static; order:3; }
.ui-soon-title { font-size:clamp(14px, 4.2vw, 18px); font-weight:700; line-height:1.15; overflow-wrap:anywhere; }
.ui-soon-note { font-size:15px; line-height:1.25; }
.ui-soon-tile { padding:6px 4px; gap:3px; }
.ui-soon-tile .ui-soon-tag { position:static; order:-1; padding:1px 6px; font-size:clamp(11px, 3.3vw, 15px); white-space:nowrap; }
.ui-soon-tile .ui-soon-title { font-size:clamp(13px, 3.9vw, 17px); overflow-wrap:normal; word-break:normal; }  /* a name breaks between words, never inside one */
.ui-soon-tile .ui-soon-note { font-size:clamp(12px, 3.3vw, 15px); }
@media (max-width:359px) { .ui-soon-tile .ui-soon-note { display:none; } }
/* locked (ui/blocks.html locked, TECH-HOME-V2 B4): built but not open to this person yet (a Home square before Can Sell). A square like the
   Home tiles, gray and dashed, a lock before the name, one line under it; no tag, nothing to tap. The line is the point (it can carry the
   tech's own "5% would be $X"), so it stays on the narrowest phones. */
.ui-locked { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; box-sizing:border-box; margin:0; padding:6px 4px;
  aspect-ratio:1 / 1; min-height:0; border:2px dashed var(--line); border-radius:14px; background:var(--soft); color:var(--mid); text-align:center; cursor:default; }
.ui-locked-title { font-size:clamp(13px, 3.9vw, 17px); font-weight:700; line-height:1.15; overflow-wrap:normal; word-break:normal; }
.ui-locked-note { font-size:clamp(12px, 3.3vw, 15px); line-height:1.25; }
.ui-soon-row .ui-soon-note, .ui-soon-wide .ui-soon-note { flex-basis:100%; font-size:16px; }

/* SETTINGS-FOR-EVERY-ROLE A1 (ui/blocks.html set_group / set_row / set_soon / set_logout; mockup settings-roles-v2.html): a small cyan
   label over one rounded dark card of rows; each row is one tap (the whole row is the link), white title, grey line, chevron at the right;
   a usage number sits at the right instead. Log out is red in its own last card, the build line grey under it. */
.ui-set { margin:0 0 var(--ui-space-2); }
.ui-set-label { margin:22px 0 8px 4px; font-size:var(--ui-font-footnote); font-weight:600; color:var(--section); }
.ui-set-card { margin:0; padding:0; list-style:none; background:var(--card); border-radius:14px; overflow:hidden; }
.ui-set-row { margin:0; border-top:1px solid var(--row-line); }
.ui-set-row:first-child { border-top:0; }
.ui-set-tap { display:flex; align-items:center; gap:12px; box-sizing:border-box; min-height:max(56px, var(--ui-tap-min, 48px)); padding:12px 16px; color:var(--title); text-decoration:none; }
a.ui-set-tap:hover, a.ui-set-tap:focus-visible { background:var(--soft); }
.ui-set-text { display:flex; flex-direction:column; gap:2px; flex:1 1 auto; min-width:0; }
.ui-set-title { font-size:17px; font-weight:500; line-height:1.3; overflow-wrap:anywhere; }
.ui-set-title .ui-chip { margin-left:6px; vertical-align:middle; }
.ui-set-sub { font-size:var(--ui-font-footnote); line-height:1.3; color:var(--mid); overflow-wrap:anywhere; }
.ui-set-value { flex:none; max-width:50%; font-size:17px; font-weight:600; color:var(--ink-2); text-align:right; overflow-wrap:anywhere; }
.ui-set-chev { flex:none; width:9px; height:9px; margin-right:4px; border-right:2px solid var(--mid); border-bottom:2px solid var(--mid); transform:rotate(-45deg); }
.ui-set-soon { opacity:.5; cursor:default; }
.ui-set-soon .ui-soon-tag { position:static; flex:none; }
.ui-set-foot { margin:8px 4px 0; font-size:var(--ui-font-footnote); color:var(--mid); }
.ui-set-end { margin-top:var(--ui-space-3); }
.ui-set-out { margin:0; }
.ui-set-out-btn { display:block; width:100%; min-height:56px; padding:12px 16px; font:inherit; font-size:17px; font-weight:600; color:var(--danger); background:var(--card);
  border:0; border-radius:14px; cursor:pointer; text-align:center; }
.ui-set-out-btn:hover, .ui-set-out-btn:focus-visible { background:var(--danger-bg); }
.ui-set-ver { margin:14px 0 0; font-size:var(--ui-font-footnote); color:var(--mid); text-align:center; }
/* the Settings tab's gear (bottom_bar, icon "gear"): the gear above the word, so four tabs still fit at 320 px */
.ui-bar a.ui-bar-icon-tab { flex-direction:column; gap:2px; line-height:1.1; }
.ui-bar-icon { display:block; flex:none; width:22px; height:22px; }
.ui-bar a.ui-bar-icon-tab .ui-bar-count { position:absolute; margin:0 0 0 34px; top:4px; }
.ui-bar a.ui-bar-icon-tab { position:relative; }

/* ui.meter (ui/blocks.html): a real count toward a goal, as a thick rounded bar (TECH-HOME-V2 B3 Can Sell) */
.ui-meter { display:block; width:100%; height:14px; margin:6px 0 2px; border:0; border-radius:999px; background:var(--soft); overflow:hidden; -webkit-appearance:none; appearance:none; }
.ui-meter::-webkit-progress-bar { background:var(--soft); border-radius:999px; }
.ui-meter::-webkit-progress-value { background:var(--accent); border-radius:999px; }
.ui-meter::-moz-progress-bar { background:var(--accent); border-radius:999px; }
/* BENCH-V3 part A (mockup bench-v3.png): the Call next card: check chips, the Ask line, a big Call, "How did it go?" (3 equal answers), the text
   as it goes with "Open in Messages to send", and the Next up rows under the card */
.ui .bench-chips { display:flex; flex-wrap:wrap; gap:var(--ui-space-1); }
/* BENCH-V3 part 2 (mockup bench-v3.png, middle phone): the Applicant page summary: one row per fact with Edit at the right (the editor
   opens under the row), the four actions two by two, History lines */
.ui#bench-sum .bench-facts { margin:var(--ui-space-2) 0 0; }
.ui#bench-sum .bench-fact { display:flex; flex-wrap:wrap; align-items:center; gap:0 var(--ui-space-2); min-height:48px; border-bottom:1px solid var(--ui-line); font-size:var(--ui-font-body); }
.ui#bench-sum .bench-fact dt { font-weight:700; }
.ui#bench-sum .bench-fact dd { margin:0; flex:1 1 8em; min-width:0; overflow-wrap:anywhere; }
.ui#bench-sum .bench-fact-act { margin-left:auto; min-height:48px; min-width:48px; display:inline-flex; align-items:center; justify-content:flex-end; font-weight:700; color:var(--ui-blue); cursor:pointer; list-style:none; }
.ui#bench-sum .bench-fact-act::-webkit-details-marker { display:none; }
.ui#bench-sum .bench-fact-edit { margin-left:auto; }
.ui#bench-sum .bench-fact-edit[open] { flex-basis:100%; margin-left:0; }
.ui#bench-sum .bench-fact-edit form { display:flex; flex-direction:column; gap:var(--ui-space-1); padding-bottom:var(--ui-space-2); }
.ui#bench-sum .bench-fact-edit input[type=text] { width:100%; box-sizing:border-box; min-height:48px; font-size:var(--ui-font-body); }
.ui#bench-sum .bench-sum-act { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--ui-space-1); margin-top:var(--ui-space-3); }
.ui#bench-sum .bench-sum-act form { margin:0; display:flex; }
.ui#bench-sum .bench-sum-act .ui-btn, .ui#bench-sum .bench-sum-act .ui-chip { width:100%; min-height:48px; box-sizing:border-box; justify-content:center; text-align:center; }
.ui#bench-sum .bench-sum-act .ui-soon { grid-column:1 / -1; }
.ui#bench-sum .bench-history { list-style:none; margin:0; padding:0; }
.ui#bench-sum .bench-history li { padding:var(--ui-space-1) 0; border-bottom:1px dashed var(--ui-line); overflow-wrap:anywhere; }
.ui .bench-ask { font-weight:700; }
.ui .bench-dial .ui-btn { width:100%; min-height:56px; font-size:var(--ui-font-button); }
.ui .bench-howdid-q { margin:var(--ui-space-2) 0 var(--ui-space-1); font-size:var(--ui-font-label); font-weight:700; color:var(--ui-mid); text-transform:uppercase; }
.ui .bench-howdid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--ui-space-1); }
.ui .bench-howdid form { margin:0; display:flex; }
.ui .bench-howdid .ui-btn { width:100%; min-height:var(--ui-tap-min); padding-left:4px; padding-right:4px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.ui .bench-howdid .ui-btn small { font-weight:400; font-size:var(--ui-font-footnote); }
.ui .bench-howdid .ui-btn.bench-on { border-width:2px; border-color:var(--ui-blue); }
.ui .bench-text { margin-top:var(--ui-space-2); }
.ui .bench-text-body { background:var(--ui-info-bg); border-radius:var(--ui-radius-sm); padding:var(--ui-space-2); margin:0 0 var(--ui-space-1); white-space:pre-wrap; }
.ui .bench-text > .ui-btn { width:100%; }
.ui .bench-next h2 { font-size:var(--ui-font-label); text-transform:uppercase; color:var(--ui-blue); margin:var(--ui-space-2) 0 0; }
.ui .bench-next ul { list-style:none; margin:0; padding:0; }
.ui .bench-next li a { display:flex; justify-content:space-between; gap:var(--ui-space-1); min-height:var(--ui-tap-min); align-items:center; border-bottom:1px solid var(--ui-line); color:var(--ui-ink); text-decoration:none; }
.ui .bench-note { margin-top:var(--ui-space-1); }
.ui .bench-note textarea { width:100%; box-sizing:border-box; font-size:var(--ui-font-body); }
/* BENCH-V3 C1: the Offer a job screen (mockup bench-v3.png, right phone); under .ui so the kit guard holds */
.ui .bench-offer-pick { display:flex; flex-wrap:wrap; gap:var(--ui-space-1) var(--ui-space-2); align-items:flex-end; margin:0 0 var(--ui-space-2); }
.ui .bench-offer-pick label, .ui .bench-offer-pay label { display:flex; flex-direction:column; gap:var(--ui-space-1); font-size:var(--ui-font-label); font-weight:600; min-width:0; max-width:100%; }
.ui .bench-offer-pick select, .ui .bench-offer-pick input, .ui .bench-offer-pay input { min-height:var(--ui-tap-min); font-size:var(--ui-font-body); max-width:100%; box-sizing:border-box; }
.ui .bench-offer-pick select { width:100%; }
.ui .bench-offer h2 { font-size:var(--ui-font-label); text-transform:uppercase; color:var(--ui-blue); margin:var(--ui-space-2) 0 var(--ui-space-1); }
/* MVP18 UX stand-in M1/M4: the customer pay page's amount is the biggest text on the card and never splits; the chip goes under it */
.cardpay .ui-card-hero .ui-card-head { flex-wrap:wrap; justify-content:flex-start; }
.cardpay .ui-card-hero .ui-card-head h3 { font-size:32px; line-height:1.15; white-space:nowrap; overflow-wrap:normal; flex:0 0 auto; margin:0; }

/* APP-DARK-LOOK: on a short phone the floating bar sits closer to the edge so the owner Home tiles still end above it (320x568). */
@media (max-height:700px) { :root { --tabbar-gap:max(10px, calc(env(safe-area-inset-bottom, 0px) + 6px)); } }

/* APP-DARK-LOOK: paper stays light. A printed screen takes the old light palette back: white page, dark text, BlueLam blue. */
@media print {
  :root {
    color-scheme:light;
    --page-gradient:none; --page-top:#fff; --page-mid:#fff; --page-low:#fff; --page-end:#fff;
    --title:#1b2530; --ink:#1b2530; --ink-2:#44505c; --mid:#55626f; --section:#1b2530; --muted:#55626f;
    --line:#c5ced6; --row-line:#c5ced6; --line-strong:#55626f;
    --card:#fff; --soft:#f2f5f7; --tint-strong:#e3e8ee; --hero-bg:#0e3c6b; --surface:#fff; --toast-bg:#26323d;
    --blue:#14508c; --blue-dark:#0e3c6b; --red:#a32020; --accent:#14508c; --link:#14508c;
    --fill:#14508c; --fill-hover:#0e3c6b; --on-fill:#fff;
    --danger:#a32020; --danger-bg:#fceaea; --danger-border:#d99a9a; --danger-solid:#a32020; --danger-fg:#8b1e1e;
    --ok-fg:#176b35; --ok-bg:#e8f5ec; --ok-border:#8abd9a; --ok-solid:#1e7d3a;
    --warn-fg:#704800; --warn-bg:#fff4d6; --warn-border:#d6a843; --warn-solid:#b45309;
    --info-fg:#0e3c6b; --info-bg:#eaf2fa; --info-border:#91b4d3;
    --purple-fg:#5b2a86; --purple-bg:#f3ecfa; --purple-border:#b9a0d6; --purple-solid:#5b2a86;
    --field-bg:#fff; --field-border:#55626f; --placeholder:#55626f; --disabled-fg:#55626f; --disabled-bg:#f2f5f7;
    --ui-ink:#1b2530; --ui-mid:#55626f; --ui-line:#c5ced6; --ui-soft:#f2f5f7; --ui-blue:#14508c; --ui-blue-dark:#0e3c6b; --ui-footnote:#44505c;
    --ui-surface:#fff; --ui-border:#c5ced6;
    --ui-ready-fg:#176b35; --ui-ready-bg:#e8f5ec; --ui-ready-border:#8abd9a;
    --ui-check-fg:#704800; --ui-check-bg:#fff4d6; --ui-check-border:#d6a843;
    --ui-waiting-fg:#44505c; --ui-waiting-bg:#f2f5f7; --ui-waiting-border:#c5ced6;
    --ui-blocked-fg:#8b1e1e; --ui-blocked-bg:#fceaea; --ui-blocked-border:#d99a9a;
    --ui-info-fg:#0e3c6b; --ui-info-bg:#eaf2fa; --ui-info-border:#91b4d3; --ui-danger:#a32020;
  }
}
