@font-face { font-family: "Inter"; src: url("vendor/inter/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* HVAC PM Connect web app. The look the owner picked on the HC10 board (Cross 1 with the Cross 2 menu):
   black, strong blue, lime and lilac on a pale grey page, Plus Jakarta Sans, status pills from Look 3.
   Every colour, size and corner the app uses is named here once. Do not write a raw value anywhere else. */
/* The type and spacing scale (ISSUES HC395, owner: one scale, named once). Text uses ONLY these steps, with the line-height and weight shown; spacing uses the --space-N steps from hpm-tokens.css: 4, 8, 12, 16, 24, 32, 48 (1px and 2px are allowed for hairlines). Never write a raw size anywhere else: tools/design-check/check.mjs fails the tests when you do.
   11 small labels and pills (line-height 16, weight 600)  ·  12 notes, captions, table headings (16, 500 or 600)  ·  13 body and controls (20, 450)  ·  14 emphasis and menus (20, 500 or 600)  ·  16 card titles (24, 700)  ·  20 section headings (28, 700)  ·  28 page titles and key numbers (32, 700)  ·  44 hero numbers (48, 800). */
:root { --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-28: 28px; --fs-44: 44px; }
:root {
  --ink: var(--label-primary); --ink-2: var(--label-secondary); --ink-3: var(--label-secondary); --page: var(--bg-secondary); --card: var(--bg-primary); --line: var(--fill-quaternary); --line-2: var(--separator-opaque); --soft: var(--bg-secondary);
  --blue: var(--brand-technical-blue); --on-blue: var(--status-info-fill); --lime: var(--status-pass-fill); --on-lime: var(--status-pass-text); --lilac: var(--status-info-fill); --on-lilac: var(--status-info-text); --on-dark: var(--brand-mist); --dark-fill: rgba(255,255,255,.10);
  --s1-bg: var(--status-warning-fill); --s1-tx: var(--status-warning-text); --s2-bg: var(--status-info-fill); --s2-tx: var(--status-info-text); --s3-bg: var(--status-pass-fill); --s3-tx: var(--status-pass-text); --s4-bg: var(--status-fail-fill); --s4-tx: var(--status-fail-text);
  --r-pill: 9999px; --r-card: 16px; --r-tile: 16px; --r-fact: 12px; --r-row: 12px; --r-field: 10px; --r-chip: 6px;
  --shadow: 0 2px 14px rgba(17,19,24,.05); --shadow-menu: 0 24px 70px rgba(17,19,24,.28);
  --paper: var(--bg-primary); --print-ink: var(--label-primary); --print-line: var(--separator-opaque);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 450 13px/20px var(--font); letter-spacing: -0.01em; color: var(--ink); background: var(--page); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.sp { flex: 1; }
.center { min-height: 100vh; display: grid; place-items: center; padding: var(--space-24) var(--space-16); }

/* sign-in */
.signin { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--space-48) var(--space-48) var(--space-32); width: min(440px, 100%); text-align: center; }
.signin h1 { margin: 0 0 var(--space-8); font-size: var(--fs-28); line-height: 40px; font-weight: 600; letter-spacing: -.03em; }
.signin p { margin: 0 0 var(--space-24); color: var(--ink-2); }
.signin .bt.plain { margin-top: var(--space-16); }
.signin.refused { width: min(480px, 100%); }
.signin .face { width: 64px; height: 64px; border-radius: var(--r-pill); background: var(--lilac); color: var(--on-lilac); font-size: var(--fs-28); font-weight: 600; display: grid; place-items: center; margin: 0 auto var(--space-12); }
.signin .as { display: block; font-size: var(--fs-14); color: var(--ink-2); }
.signin .em { display: block; font-size: var(--fs-16); font-weight: 600; overflow-wrap: anywhere; }
.signin .tag { display: inline-block; margin: var(--space-8) 0 var(--space-24); padding: var(--space-4) var(--space-12); border-radius: var(--r-chip); background: var(--s1-bg); color: var(--s1-tx); font-size: var(--fs-11); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.signin .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); } .signin .two .bt { margin: 0; padding: 0 var(--space-12); box-shadow: inset 0 0 0 1.5px var(--line-2); } .signin .two .bt:first-child { box-shadow: none; }
@media (max-width: 480px) { .signin { padding: var(--space-32) var(--space-24) var(--space-32); } }
.signin .hint { margin: var(--space-16) 0 0; font-size: var(--fs-13); color: var(--ink-3); }
.signin .err { margin: var(--space-16) 0 0; color: var(--s4-tx); font-weight: 600; }

/* menu bar */
.bar { background: var(--ink); color: var(--label-on-tint); min-height: 78px; padding: var(--space-12) var(--space-32); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-8) var(--space-4); position: relative; z-index: 5; }
.logo { font-size: var(--fs-20); font-weight: 600; letter-spacing: -.02em; margin-right: var(--space-16); }
.mi { border: 0; background: none; padding: var(--space-8) var(--space-16); border-radius: var(--r-pill); font-weight: 600; color: var(--on-dark); white-space: nowrap; }
.mi:hover { background: var(--dark-fill); color: var(--label-on-tint); }
.mi.on { background: var(--bg-primary); color: var(--ink); }
.mi .dn { font-size: var(--fs-11); margin-left: var(--space-8); opacity: .8; }
.find { height: 46px; min-width: 200px; border-radius: var(--r-pill); border: 0; padding: 0 var(--space-24); background: var(--card); box-shadow: var(--shadow); }
.bar .find { background: var(--dark-fill); color: var(--label-on-tint); box-shadow: none; }
.bar .find::placeholder { color: var(--on-dark); }
.me { width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: var(--lime); color: var(--ink); font-size: var(--fs-13); font-weight: 600; flex: none; margin-left: var(--space-12); }

/* Workflow menu */
.dim { position: fixed; inset: 0; background: rgba(17,19,24,.28); z-index: 4; }
.mega { position: absolute; left: 32px; right: 32px; top: calc(100% - 8px); max-width: 980px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-menu); padding: var(--space-24) var(--space-32); display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-24) var(--space-32); }
.mega .it { display: flex; gap: var(--space-16); align-items: flex-start; }
.mega .ic { flex: none; width: 46px; height: 46px; border-radius: var(--r-row); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--fs-14); }
.mega b { display: block; font-size: var(--fs-16); font-weight: 600; }
.mega .ql { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-12); margin-top: var(--space-4); }
.mega .ql a { font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.mega .ql a:first-child, .mega .ql a:hover { color: var(--blue); font-weight: 600; }

.acct { position: absolute; right: 32px; top: calc(100% - 8px); width: 300px; background: var(--card); color: var(--ink); border-radius: var(--r-tile); box-shadow: var(--shadow-menu); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); }
.acct b { font-size: var(--fs-16); font-weight: 600; } .acct .bt { margin-top: var(--space-8); justify-content: center; } .acct .banner { font-size: var(--fs-13); }

/* tab row */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-32); background: var(--page); border-bottom: 1px solid var(--line-2); }
.tabs a { padding: var(--space-8) var(--space-16); font-weight: 600; font-size: var(--fs-14); color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-pill); white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--card); background: var(--ink); border-color: var(--ink); }
.jline { display: inline-flex; align-items: center; gap: var(--space-4); margin: 0 var(--space-8); } .tabs a.jstep { display: inline-flex; align-items: center; gap: var(--space-8); border: 0; background: none; padding: var(--space-4) var(--space-8) var(--space-4) var(--space-4); } .tabs a.jstep i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--label-secondary); font-style: normal; font-size: var(--fs-12); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.tabs a.jstep.on { background: none; color: var(--ink); } .tabs a.jstep.on i { background: var(--blue); border-color: var(--blue); color: var(--card); } .tabs a.jstep:hover { background: var(--soft); } .jc { width: 22px; height: 2px; background: var(--line-2); flex: none; }

/* page */
main { padding: var(--space-24) var(--space-32) var(--space-48); display: flex; flex-direction: column; gap: var(--space-16); }
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-12); }
h1 { margin: 0; font-size: var(--fs-28); line-height: 40px; font-weight: 600; letter-spacing: -.03em; }
.tools .find { height: 40px; min-width: 240px; }
.pick { height: 40px; padding: 0 var(--space-16); border-radius: var(--r-pill); border: 0; background: var(--card); font-weight: 600; font-size: var(--fs-13); box-shadow: var(--shadow); }
.bt { height: 40px; padding: 0 var(--space-24); border-radius: var(--r-pill); border: 0; background: var(--ink); color: var(--label-on-tint); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none; }
.bt.blue { background: var(--blue); }
.bt.big { height: 50px; width: 100%; justify-content: center; }
.bt.plain { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.banner { background: var(--lilac); border-radius: var(--r-row); padding: var(--space-12) var(--space-16); font-weight: 600; }

/* count tiles: each is a button that filters the table */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-16); }
.tile { border: 0; text-align: left; border-radius: var(--r-tile); padding: var(--space-16) var(--space-24); background: var(--card); display: flex; align-items: baseline; gap: var(--space-12); font-weight: 600; }
.tile b { font-size: var(--fs-44); line-height: 46px; font-weight: 600; letter-spacing: -.03em; }
.tile.k { background: var(--ink); color: var(--label-on-tint); } .tile.b { background: var(--blue); color: var(--label-on-tint); } .tile.l { background: var(--lime); } .tile.v { background: var(--lilac); }
.tile.on { outline: 3px solid var(--ink); outline-offset: 3px; } .tile.k.on { outline-color: var(--blue); }

/* jobs table */
.card { background: var(--card); border-radius: var(--r-card); padding: var(--space-8) var(--space-12); box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
th .th { display: inline-block; border: 0; background: none; padding: var(--space-12) var(--space-12); font-size: var(--fs-11); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
th button.th:hover { color: var(--ink); }
td { padding: var(--space-12) var(--space-12); font-size: var(--fs-14); border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--soft); }
tbody tr td:first-child { border-radius: var(--r-row) 0 0 var(--r-row); } tbody tr td:last-child { border-radius: 0 var(--r-row) var(--r-row) 0; }
.jn { font-weight: 600; color: var(--ink-3); }
.ti { font-weight: 600; }
.pri, .chip { display: inline-block; padding: var(--space-4) var(--space-12); border-radius: var(--r-chip); font-size: var(--fs-11); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.pri { background: var(--lime); }
.s1 { background: var(--s1-bg); color: var(--s1-tx); } .s2 { background: var(--s2-bg); color: var(--s2-tx); } .s3 { background: var(--s3-bg); color: var(--s3-tx); } .s4 { background: var(--s4-bg); color: var(--s4-tx); }
.av { display: inline-flex; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--ink); color: var(--label-on-tint); font-size: var(--fs-11); font-weight: 600; align-items: center; justify-content: center; margin-right: var(--space-8); vertical-align: middle; }
.av.no { background: none; border: 1.5px dashed var(--ink-3); color: var(--ink-2); }
.set { color: var(--blue); font-weight: 600; }
.empty { padding: var(--space-48) var(--space-16); text-align: center; color: var(--ink-2); }
.foot { padding: var(--space-12) var(--space-12) var(--space-8); font-size: var(--fs-13); color: var(--ink-3); }

/* forms */
.pad { padding: var(--space-16) var(--space-16) var(--space-16); display: flex; flex-direction: column; gap: var(--space-16); }
h2 { margin: 0; font-size: var(--fs-16); font-weight: 600; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-16) var(--space-16); }
.fd { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.fd.wide { grid-column: 1 / -1; }
.fd.row { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: var(--space-12); }
.fd label { font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
/* One line each, so every box in a row starts at the same height. The full wording is in the hint and on hover. */
.fd:not(.row) > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.fd label span { color: var(--s4-tx); }
.fd.wide { grid-column: 1 / -1; }
.fd input:not([type="checkbox"]), .fd select, .fd textarea { width: 100%; min-height: 44px; padding: var(--space-12) var(--space-16); border: 1.5px solid var(--line-2); border-radius: var(--r-field); background: var(--card); font-weight: 600; }
.fd textarea { resize: vertical; line-height: 1.5; font-weight: 500; }
.fd input[type="checkbox"], .checks input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-16); }
.checks label { display: flex; align-items: center; gap: var(--space-8); font-size: var(--fs-14); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.banner.err { background: var(--s4-bg); color: var(--s4-tx); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--label-on-tint); padding: var(--space-12) var(--space-24); border-radius: var(--r-pill); font-weight: 600; box-shadow: var(--shadow-menu); z-index: 9; }

/* open-job page */
.crumb { font-size: var(--fs-13); font-weight: 600; color: var(--ink-3); }
.crumb a { color: inherit; text-decoration: none; } .crumb a:hover, .crumb b { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-16); }
.fact { border-radius: var(--r-fact); padding: var(--space-16) var(--space-16); background: var(--card); font-size: var(--fs-12); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fact b { display: block; margin-top: 2px; font-size: var(--fs-20); line-height: 26px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.fact.b { background: var(--blue); color: var(--on-blue); } .fact.b b { color: var(--label-on-tint); } .fact.l { background: var(--lime); color: var(--on-lime); } .fact.v { background: var(--lilac); color: var(--on-lilac); }
.ptabs { display: flex; gap: var(--space-4); padding: var(--space-4); background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); overflow-x: auto; align-self: flex-start; max-width: 100%; }
.ptabs a { padding: var(--space-8) var(--space-16); border-radius: var(--r-pill); font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.ptabs a.on { background: var(--ink); color: var(--label-on-tint); }
.ptabs i { font-style: normal; font-size: var(--fs-11); margin-left: var(--space-8); opacity: .8; }
.access { background: var(--lilac); border-radius: var(--r-row); padding: var(--space-12) var(--space-16); font-size: var(--fs-14); font-weight: 500; }
.notes { display: flex; flex-direction: column; }
.note { display: flex; gap: var(--space-12); padding: var(--space-12) 0; border-top: 1px solid var(--line); }
.note .by { font-size: var(--fs-12); font-weight: 600; color: var(--ink-3); }
.note .bd { white-space: pre-wrap; line-height: 1.5; }

/* photos and documents */
.hide { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bt:disabled { opacity: .6; cursor: default; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-12); }
.thumb { border: 0; padding: 0; background: var(--soft); border-radius: var(--r-row); overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.thumb img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--page); }
.thumb span { padding: var(--space-8) var(--space-12); font-size: var(--fs-12); font-weight: 600; overflow-wrap: anywhere; }
.link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 600; text-align: left; }

/* checklist */
tbody.plain tr { cursor: default; } tbody.plain tr:hover td { background: none; }
td.wrap { white-space: normal; min-width: 220px; } td.grow { width: 40%; min-width: 200px; }
.yn { display: inline-flex; gap: 2px; padding: var(--space-4); background: var(--page); border-radius: var(--r-pill); }
.yn button { border: 0; background: none; min-width: 48px; padding: var(--space-8) var(--space-12); border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); }
.yn button.on { background: var(--s3-tx); color: var(--label-on-tint); } .yn button.on.no { background: var(--s4-tx); }
.inl { width: 100%; min-height: 40px; padding: var(--space-8) var(--space-12); border: 1.5px solid var(--line-2); border-radius: var(--r-field); background: var(--card); }
.inl.add { flex: 1; min-width: 220px; }

/* quote */
.inl.num { text-align: right; min-width: 90px; }
.scroll { overflow-x: auto; }
.scroll td { padding: var(--space-8) var(--space-8); } .scroll select.inl { min-width: 110px; }
td.money { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.x { border: 0; background: var(--page); width: 34px; height: 34px; border-radius: var(--r-pill); font-size: var(--fs-16); font-weight: 600; color: var(--ink-2); }
.sums { align-self: flex-end; min-width: 280px; display: flex; flex-direction: column; gap: var(--space-8); }
.sum { display: flex; justify-content: space-between; gap: var(--space-24); font-variant-numeric: tabular-nums; }
.sum.big { border-top: 1px solid var(--line-2); padding-top: var(--space-8); font-size: var(--fs-20); font-weight: 600; }

/* orders, invoices, timesheets, versions, emails */
.pickr { display: grid; gap: var(--space-8); justify-items: start; } .pickr .find { width: min(460px, 100%); height: 40px; }
.hit { text-align: left; background: var(--soft); border: 0; border-radius: var(--r-field); padding: var(--space-8) var(--space-16); font-size: var(--fs-14); } .hit:hover { background: var(--lilac); }
.vers { display: grid; gap: var(--space-8); } .ver { display: flex; gap: var(--space-12); align-items: center; flex-wrap: wrap; background: var(--soft); border-radius: var(--r-row); padding: var(--space-12) var(--space-16); font-size: var(--fs-14); }
details.mail { background: var(--soft); border-radius: var(--r-row); padding: var(--space-12) var(--space-16); font-size: var(--fs-14); } details.mail summary { cursor: pointer; font-weight: 600; }
details.mail .by { margin-top: var(--space-8); font-size: var(--fs-12); font-weight: 600; color: var(--ink-3); } details.mail pre { white-space: pre-wrap; font: inherit; margin: var(--space-8) 0 0; color: var(--ink-2); }
.sums.left { align-self: flex-start; } .sum.over { color: var(--s4-tx); font-weight: 600; }
.tick { display: inline-flex; align-items: center; gap: var(--space-8); font-size: var(--fs-13); font-weight: 600; } .tick input { width: 20px; height: 20px; accent-color: var(--blue); }
.pick.wk { display: inline-flex; align-items: center; }
.inl:disabled { background: var(--soft); color: var(--ink-2); }
.scroll td:not(.grow) input.inl:not(.num) { min-width: 96px; }
a.link { text-decoration: none; }

/* the job's money, one line */
.mbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--card); border-radius: var(--r-fact); box-shadow: var(--shadow); overflow: hidden; }
.mcell { padding: var(--space-12) var(--space-16); font-size: var(--fs-11); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; border-left: 1px solid var(--line); }
.mcell:first-child { border-left: 0; } .mcell:hover { background: var(--soft); }
.mcell b { display: block; font-size: var(--fs-16); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; } .mcell.bad b { color: var(--s4-tx); }

/* search everything, in the top bar */
.gs { position: relative; } .gfind { height: 38px; width: 240px; border: 0; border-radius: var(--r-pill); padding: 0 var(--space-16); background: var(--dark-fill); color: var(--label-on-tint); font-weight: 600; }
.gfind::placeholder { color: var(--on-dark); } .gfind:focus { background: var(--bg-primary); color: var(--ink); outline: 2px solid var(--blue); }
.ghits { position: absolute; right: 0; top: calc(100% + 10px); width: min(520px, 92vw); background: var(--card); color: var(--ink); border-radius: var(--r-tile); box-shadow: var(--shadow-menu); padding: var(--space-8); display: flex; flex-direction: column; z-index: 8; }
.ghits a { display: flex; gap: var(--space-12); align-items: baseline; flex-wrap: wrap; padding: var(--space-8) var(--space-12); border-radius: var(--r-row); text-decoration: none; color: inherit; font-size: var(--fs-14); } .ghits a:hover { background: var(--soft); } .ghits .muted { padding: var(--space-8) var(--space-12); font-size: var(--fs-13); } .ghits a .muted { padding: 0; }

/* status toggles across the top of a list */
.seg { display: flex; gap: var(--space-4); padding: var(--space-4); background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); overflow-x: auto; align-self: flex-start; max-width: 100%; }
.seg button, .seg a { border: 0; background: none; padding: var(--space-8) var(--space-16); border-radius: var(--r-pill); font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.seg .on { background: var(--ink); color: var(--label-on-tint); } .seg i { font-style: normal; font-size: var(--fs-11); margin-left: var(--space-8); opacity: .8; }
.mega a.go { display: block; font-size: var(--fs-16); font-weight: 600; color: inherit; text-decoration: none; } .mega a.go:hover { text-decoration: underline; }

/* the strip of open jobs, orders and invoices */
.otabs { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-32); background: var(--card); border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.otabs .lbl { font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: var(--space-4); }
.ot { display: inline-flex; align-items: center; background: var(--page); border-radius: var(--r-pill); white-space: nowrap; }
.ot a { padding: var(--space-8) var(--space-4) var(--space-8) var(--space-16); font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.ot button { border: 0; background: none; width: 30px; height: 30px; border-radius: var(--r-pill); font-size: var(--fs-16); font-weight: 600; color: var(--ink-3); } .ot button:hover { background: var(--line-2); color: var(--ink); }
.ot.on { background: var(--ink); } .ot.on a { color: var(--label-on-tint); } .ot.on button { color: var(--on-dark); } .ot.on button:hover { background: var(--dark-fill); color: var(--label-on-tint); }

/* Home */
.dash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-16); }
@media (max-width: 1180px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 640px) { .dash { grid-template-columns: 1fr; } }
.dcard { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--space-16) var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); min-width: 0; } .dcard .tools { margin-top: auto; flex-wrap: wrap; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-12); }
.fig { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.fig b { font-size: var(--fs-20); line-height: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .fig span { font-size: var(--fs-13); font-weight: 600; color: var(--blue); }
.fig.bad b, .fig.bad span, td.late { color: var(--s4-tx); } td.late { font-weight: 600; }
.lns { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: var(--space-8); flex: 1; }
.ln { border: 0; background: none; padding: var(--space-4) 0; display: flex; justify-content: space-between; gap: var(--space-16); font-size: var(--fs-14); } .ln span { color: var(--blue); font-weight: 600; } .ln b { font-variant-numeric: tabular-nums; }
.fig:hover span, .ln:hover span { text-decoration: underline; }

/* Home cards in the app's colours */
.dcard.k { background: var(--ink); color: var(--label-on-tint); } .dcard.b { background: var(--blue); color: var(--label-on-tint); } .dcard.l { background: var(--lime); } .dcard.v { background: var(--lilac); }
.dcard.k .fig span, .dcard.k .ln span, .dcard.b .fig span, .dcard.b .ln span { color: var(--on-dark); } .dcard.b .fig span, .dcard.b .ln span { color: var(--on-blue); }
.dcard.l .fig span, .dcard.l .ln span { color: var(--on-lime); } .dcard.v .fig span, .dcard.v .ln span { color: var(--on-lilac); }
.dcard.k .fig, .dcard.k .ln, .dcard.b .fig, .dcard.b .ln { color: var(--label-on-tint); } .dcard.k .lns, .dcard.b .lns { border-top-color: var(--dark-fill); } .dcard.l .lns, .dcard.v .lns { border-top-color: rgba(17,19,24,.12); }
.dcard.k .fig.bad b, .dcard.k .fig.bad span, .dcard.b .fig.bad b, .dcard.b .fig.bad span { color: var(--s4-bg); }
.lns.plainl { gap: var(--space-8); font-size: var(--fs-14); color: var(--ink-2); line-height: 1.5; }
table.totals td { text-align: left; } .link.num { font-size: var(--fs-20); font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

/* calendar */
.calwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; } .calwrap.with { grid-template-columns: minmax(0, 1fr) 280px; }
.calw { display: grid; grid-template-columns: 150px repeat(7, minmax(110px, 1fr)); min-width: 920px; } .calm { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); min-width: 770px; }
.ch { padding: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.ch b { display: block; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); } .ch.now b { color: var(--blue); }
.ln2 { border: 0; background: none; text-align: left; padding: 10px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line); } .ln2 i { font-style: normal; font-size: 11px; margin-left: 6px; color: var(--ink-3); }
.cc { min-height: 74px; padding: 6px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cc.shut { min-height: 0; padding: 10px; } .cc.now { background: var(--soft); } .cc.over { background: var(--lilac); } .cc.out { opacity: .5; } .calm .cc { min-height: 104px; }
.cj { display: block; padding: 5px 8px; border-radius: var(--r-chip); font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: grab; overflow-wrap: anywhere; } .cj b { font-weight: 600; }
.bt.sm { height: 30px; padding: 0 var(--space-16); font-size: var(--fs-12); } .inl.sm { min-height: 32px; padding: var(--space-4) var(--space-8); width: 150px; } .inl.dep { width: 80px; min-width: 0; } .link.dark { color: var(--ink); font-weight: 600; }
.cald { display: grid; } .cald .hr { padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; } .cald .cc.hrc { min-height: 44px; }
button.ch.daybtn { border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; } button.ch.daybtn:hover b { text-decoration: underline; }
.me { position: relative; } .me .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 var(--space-4); border-radius: var(--r-pill); background: var(--s4-tx); color: var(--label-on-tint); font-size: var(--fs-11); font-style: normal; font-weight: 600; line-height: 18px; }
td.struck { text-decoration: line-through; color: var(--ink-3); } td.money.off { color: var(--ink-3); text-decoration: line-through; } td.opt { white-space: nowrap; } td.opt .tick { margin-right: var(--space-12); } td.opt .inl.sm { width: 120px; display: inline-block; }
.chip.tv { background: var(--lilac); color: var(--on-lilac); } .chip.tl { background: var(--lime); color: var(--on-lime); } .chip.tg { background: var(--line-2); color: var(--ink-2); }
.tagrow { display: inline-flex; gap: var(--space-4); margin-left: var(--space-8); vertical-align: middle; }
.bell { position: relative; border: 0; background: var(--dark-fill); color: var(--label-on-tint); height: 38px; padding: 0 var(--space-16); border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-13); margin: 0 var(--space-8); }
.bell .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 var(--space-4); border-radius: var(--r-pill); background: var(--s4-tx); color: var(--label-on-tint); font-size: var(--fs-11); font-style: normal; font-weight: 600; line-height: 18px; }
.bellp { width: min(420px, 92vw); max-height: 70vh; overflow-y: auto; gap: var(--space-4); right: 80px; }
.nt { border: 0; background: none; text-align: left; padding: var(--space-12) var(--space-12); border-radius: var(--r-row); display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-14); } .nt:hover { background: var(--soft); }
.nt.new { background: var(--soft); font-weight: 600; } .nt small { font-size: var(--fs-11); font-weight: 600; color: var(--ink-3); }
.thumbw { display: flex; flex-direction: column; gap: var(--space-8); } .inl.cap { width: 100%; } .note .grow { flex: 1; min-width: 0; } .note .inl.cap { margin-top: var(--space-8); max-width: 520px; }
th.ck, td.ck { width: 34px; padding-right: 0; } .ck input { width: 18px; height: 18px; accent-color: var(--blue); } tr.picked td { background: var(--soft); }
.more { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-8) var(--space-12); } .more .pick { height: 34px; } .rng { display: inline-flex; align-items: center; gap: var(--space-8); font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); }
.bulk { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-8); background: var(--lilac); border-radius: var(--r-row); padding: var(--space-12) var(--space-16); } .bulk .sp { flex: 1; } .bulk .pick { height: 32px; }
.link.rm { color: var(--s4-tx); font-size: var(--fs-12); align-self: flex-start; }
.gantt { display: grid; gap: var(--space-8); margin: var(--space-8) 0 var(--space-16); } .grow { display: grid; grid-template-columns: minmax(90px, 180px) 1fr; gap: var(--space-12); align-items: center; font-size: var(--fs-13); font-weight: 600; }
.gl { overflow: hidden; text-overflow: clip; overflow-wrap: anywhere; } .gt { position: relative; height: 18px; background: var(--bg); border-radius: 9999px; } .gb { position: absolute; top: 0; bottom: 0; min-width: 6px; border-radius: 9999px; background: var(--lilac); }
.gb.go { background: var(--blue); } .gb.done { background: var(--lime); } .grow.ends .gt { background: none; display: flex; justify-content: space-between; font-size: var(--fs-11); color: var(--ink-2); height: auto; }
tr.off td { opacity: .5; text-decoration: line-through; } .tk { display: inline-flex; align-items: center; gap: var(--space-4); font-size: var(--fs-13); font-weight: 600; margin-right: var(--space-12); }
table.perm td, table.perm th { text-align: left; } table.perm td:not(.ti), table.perm th:not(:first-child) { width: 110px; } table.perm input { width: 18px; height: 18px; }
.rw { display: flex; gap: var(--space-16); margin-top: var(--space-4); font-size: var(--fs-13); } .rw button[disabled] { opacity: .6; }
.wlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 var(--space-24); margin: var(--space-8) 0 var(--space-12); } .wrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: var(--space-12) 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: var(--fs-14); }
input.sw { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 9999px; background: var(--line-2); position: relative; cursor: pointer; flex: none; transition: background .15s; }
input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-primary); transition: left .15s; } input.sw:checked { background: var(--blue); } input.sw:checked::after { left: 21px; }
input.sw:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a.jump { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; font-weight: inherit; } a.jump:hover { color: var(--blue); text-decoration-color: var(--blue); }
.dcard a.jump:hover, .fact a.jump:hover { color: inherit; }
.dm { display: inline-block; margin: 2px var(--space-4) 0 0; padding: 1px var(--space-8); border-radius: 9999px; background: var(--lilac); color: var(--on-lilac); font-size: var(--fs-11); font-weight: 600; line-height: 1.5; white-space: nowrap; } .dm.off { background: var(--lime); color: var(--on-lime); }
.daybtn .dm { display: block; margin: var(--space-4) auto 0; max-width: 100%; overflow: hidden; text-overflow: clip; white-space: normal; }
.cl-day { padding: var(--space-12) 0; border-bottom: 1px solid var(--line); } .cl-day.now .cl-h b { color: var(--blue); } .cl-h { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin-bottom: var(--space-4); }
.cl-row { display: grid; grid-template-columns: 120px 60px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--space-12); align-items: center; padding: var(--space-8) var(--space-8); border-radius: var(--r-chip); text-decoration: none; color: inherit; font-size: var(--fs-13); } .cl-row:hover { background: var(--soft); } .cl-row .tm { font-weight: 600; }
.upl { display: grid; gap: var(--space-8); } .up { display: grid; grid-template-columns: 110px auto 1fr; gap: var(--space-12); align-items: center; font-size: var(--fs-14); }
.replib { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-16) var(--space-24); margin: var(--space-8) 0 var(--space-16); } .rp { display: block; width: 100%; text-align: left; border: 0; background: none; padding: var(--space-8) var(--space-8); border-radius: var(--r-chip); font-size: var(--fs-14); font-weight: 600; cursor: pointer; } .rp:hover { background: var(--soft); } .rp.on { background: var(--ink); color: var(--label-on-tint); }
.scrollx { overflow-x: auto; }
@media (max-width: 720px) { .cl-row { grid-template-columns: 1fr 1fr; } .up { grid-template-columns: 90px 1fr; } }
.wfl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); margin: var(--space-8) 0 var(--space-12); } .wfc { background: var(--card); border-radius: var(--r-card); border: 1px solid var(--line-2); border-top-width: 4px; padding: var(--space-12) var(--space-16); display: grid; gap: var(--space-8); align-content: start; }
.wfc.quotes { border-top-color: var(--system-blue); } .wfc.tasks { border-top-color: var(--system-green); } .wfc.invoices { border-top-color: var(--system-orange); }
.wf-h { display: flex; align-items: baseline; gap: var(--space-8); } .wf-t { font-size: var(--fs-13); font-weight: 600; flex: 1; } .wf-u { font-size: var(--fs-12); color: var(--ink-2); }
.wf-big { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-8); } .wf-n { font-size: var(--fs-28); font-weight: 600; line-height: 1.1; } .wf-m { font-size: var(--fs-20); font-weight: 600; }
.wf-bar { display: flex; gap: 2px; height: 8px; border-radius: var(--r-chip); overflow: hidden; } .wf-seg { background: var(--tone); min-width: 0; } .wf-seg.none { flex: 1; background: var(--soft); }
.grey { --tone: var(--system-gray); } .amber { --tone: var(--system-orange); } .blue { --tone: var(--system-blue); } .purple { --tone: var(--system-purple); } .green { --tone: var(--system-green); }
.wf-pills { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: 2px; } .wf-p { display: inline-flex; align-items: center; gap: var(--space-4); border: 1px solid var(--line-2); background: var(--card); border-radius: var(--r-pill); padding: var(--space-4) var(--space-8); font: inherit; font-size: var(--fs-13); color: var(--ink); cursor: pointer; } .wf-p:hover { background: var(--soft); }
.wf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: none; } .wf-p b { background: var(--soft); border-radius: var(--r-pill); padding: 0 var(--space-8); font-size: var(--fs-13); } .wf-p em { font-style: normal; font-size: var(--fs-11); font-weight: 600; color: var(--system-red); }
@media (max-width: 860px) { .wfl { grid-template-columns: minmax(0, 1fr); } }
.sboard { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-12); margin: var(--space-8) 0 var(--space-12); } .sbd { display: grid; justify-items: center; gap: var(--space-4); border: 0; background: none; cursor: pointer; padding: var(--space-8) 2px; border-radius: var(--r-row); font: inherit; color: var(--ink); min-width: 0; } .sbd:hover { background: var(--soft); }
.sb-l { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); text-align: center; min-height: 28px; } .sb-t { position: relative; width: 100%; height: 90px; background: var(--soft); border-radius: 10px; overflow: hidden; }
.sb-f { position: absolute; left: 0; right: 0; bottom: 0; background: var(--blue); min-height: 3px; } .sb-f.late { background: var(--system-red); } .sbd b { font-size: var(--fs-20); } .sb-v { font-size: var(--fs-12); font-weight: 600; min-height: 16px; } .sb-late { font-size: var(--fs-11); font-weight: 600; color: var(--system-red); }
@media (max-width: 720px) { .sboard { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ctx { position: fixed; z-index: 60; min-width: 220px; max-width: 270px; max-height: 420px; overflow-y: auto; background: var(--card); border-radius: 12px; box-shadow: 0 12px 40px rgba(17,19,24,.22), 0 0 0 1px var(--line); padding: var(--space-8); }
.ctx-i { display: flex; align-items: center; gap: var(--space-12); width: 100%; text-align: left; border: 0; background: none; padding: var(--space-8) var(--space-12); border-radius: 8px; font: inherit; font-size: var(--fs-13); font-weight: 600; color: var(--ink); cursor: pointer; } .ctx-i:hover, .ctx-i:focus-visible { background: var(--ink); color: var(--label-on-tint); outline: none; }
.ctx-sep { height: 1px; background: var(--line); margin: var(--space-4) var(--space-8); }
.sitemap { width: 100%; height: 300px; border: 0; border-radius: var(--r-card); margin-top: var(--space-8); }
.trk { padding: var(--space-16) var(--space-16); display: grid; gap: var(--space-12); } .trk-line { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-8); }
.trk-s { border-top: 6px solid var(--line-2); padding-top: var(--space-8); display: grid; gap: 2px; font-size: var(--fs-12); color: var(--ink-3); } .trk-s b { font-size: var(--fs-13); font-weight: 600; } .trk-s span { font-size: var(--fs-12); font-weight: 600; }
.trk-s.done { border-top-color: var(--ink); color: var(--ink-2); } .trk-s.done b { color: var(--ink); } .trk-s.now { border-top-color: var(--blue); color: var(--ink); } .trk-s.now b { color: var(--blue); }
.trk-s.skip { border-top-style: dashed; } .trk-s.late { border-top-color: var(--system-red); } .trk-late { color: var(--system-red); font-weight: 600; }
.trk-next { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; } .trk-next.done b { font-size: var(--fs-14); } .bt.lime { background: var(--lime); color: var(--ink); }
.jobwrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-16); align-items: start; } .jobmain { min-width: 0; display: grid; gap: var(--space-16); }
.ptabs.side { flex-direction: column; align-self: start; overflow: visible; padding: var(--space-8); gap: 2px; position: sticky; top: 12px; width: auto; max-width: none; }
.ptabs.side a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-12); border-radius: 12px; white-space: normal; } .ptabs.side i { background: var(--page); color: var(--ink); border-radius: 9999px; padding: 2px var(--space-8); font-size: var(--fs-12); opacity: 1; margin-left: 0; }
.ptabs.side a.on i { background: rgba(255,255,255,.18); color: var(--label-on-tint); }
@media (max-width: 900px) { .jobwrap { grid-template-columns: 1fr; } .ptabs.side { flex-direction: row; overflow-x: auto; position: static; } .ptabs.side a { white-space: nowrap; } .trk-line { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-12); } }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-12); margin: var(--space-8) 0 var(--space-12); } .setlink { display: grid; gap: 2px; padding: var(--space-12) var(--space-16); border-radius: var(--r-row); background: var(--soft); text-decoration: none; color: var(--ink); font-size: var(--fs-13); } .setlink:hover { background: var(--lilac); } .setlink b { font-size: var(--fs-14); } .setlink span { color: var(--ink-2); }
.lnact { white-space: nowrap; } .dash.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tdl { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
.tdr { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--space-12); align-items: center; padding: var(--space-8) var(--space-12); border-radius: 10px; background: rgba(255,255,255,.12); color: inherit; text-decoration: none; font-size: var(--fs-13); } .tdr:hover { background: rgba(255,255,255,.22); } .tdr i { font-style: normal; opacity: .85; font-size: var(--fs-12); } .tdr span { overflow: hidden; text-overflow: clip; white-space: nowrap; }
@media (max-width: 720px) { .dash.two { grid-template-columns: 1fr; } .tdr { grid-template-columns: 80px 1fr; } .tdr i { display: none; } }
.jform { border-top: 1px solid var(--line); padding: var(--space-12) 0; display: grid; gap: var(--space-8); } .jform h3 { margin: 0; font-size: var(--fs-14); } .jq { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; } .jq-t { flex: 1 1 320px; font-size: var(--fs-14); font-weight: 600; } .jq-n { width: 24px; font-weight: 600; color: var(--ink-2); }
.seg.sm { padding: var(--space-4); box-shadow: none; background: var(--page); } .seg.sm button { padding: var(--space-8) var(--space-16); font-size: var(--fs-13); } .seg.sm button[disabled] { opacity: .7; cursor: default; } .inl.grow { flex: 1 1 320px; }
.probs { margin: var(--space-4) 0 var(--space-8) var(--space-16); padding: 0; font-size: var(--fs-13); font-weight: 600; color: var(--ink); } .probs li { margin: 2px 0; }
.cj .vis { margin-left: 6px; padding: 0 6px; border-radius: 9999px; background: rgba(0,0,0,.14); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cj .tm { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.dn2 { border: 0; background: none; padding: 0; font-weight: 600; font-size: var(--fs-13); text-align: left; color: var(--ink-2); }
.unsched { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-12); max-height: 70vh; overflow-y: auto; }
.unsched .by { font-size: var(--fs-12); color: var(--ink-3); margin: 2px 0 0 2px; }

/* the printed sheet: hidden on screen, the only thing on paper */
.sheet { display: none; }
/* A printed sheet is first shown on screen as a preview: the same sheet, on a white page, with Print and Close above it. */
.sheetwrap { position: fixed; inset: 0; z-index: 70; background: rgba(17,19,24,.62); overflow: auto; padding: var(--space-24) var(--space-16) var(--space-48); }
.sheetbar { max-width: 860px; margin: 0 auto var(--space-12); display: flex; gap: var(--space-12); align-items: center; color: var(--label-on-tint); font-weight: 600; } .sheetbar .sp { flex: 1; }
.sheetwrap .sheet { display: block; max-width: 860px; margin: 0 auto; background: var(--paper, var(--bg-primary)); color: var(--print-ink, var(--label-primary)); font-size: var(--fs-13); padding: var(--space-48) var(--space-48); border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.sheet .sh-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--print-ink); padding-bottom: var(--space-12); margin-bottom: var(--space-16); }
.sheet .sh-top b { font-size: var(--fs-20); font-weight: 600; } .sheet .sh-co { font-size: var(--fs-11); margin-top: 2px; } .sheet h1 { font-size: var(--fs-20); line-height: 28px; }
.sheet .sh-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-24); margin-bottom: var(--space-16); } .sheet .sh-facts span { display: inline-block; min-width: 110px; color: var(--ink-2); }
.sheet td, .sheet th { white-space: normal; padding: var(--space-8) var(--space-8); border-bottom: 1px solid var(--print-line); font-size: var(--fs-12); text-align: left; } .sheet th { font-weight: 600; } .sheet .r { text-align: right; }
.sheet .sh-sums { margin: var(--space-16) 0 0 auto; width: 260px; } .sheet .sh-sums div { display: flex; justify-content: space-between; padding: var(--space-4) var(--space-8); } .sheet .sh-sums div:last-child { border-top: 2px solid var(--print-ink); font-size: var(--fs-14); }
.sheet .sh-sec { margin-top: var(--space-16); } .sheet .sh-sec h2 { font-size: var(--fs-13); margin-bottom: var(--space-4); } .sheet .sh-sec p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
@media print {
  body.printing { background: var(--paper); }
  body.printing #root, body.printing .toast, body.printing .sheetbar { display: none; }
  body.printing .sheetwrap { position: static; background: none; padding: 0; overflow: visible; }
  body.printing .sheet { display: block; color: var(--print-ink); font-size: var(--fs-12); padding: 0 var(--space-8); max-width: none; box-shadow: none; border-radius: 0; }
}

@media (max-width: 720px) {
  .bar, .tabs, .otabs, main { padding-left: var(--space-16); padding-right: var(--space-16); }
  .bar .find { order: 9; width: 100%; }
  .mega { left: 16px; right: 16px; }
  h1 { font-size: var(--fs-28); }
  .calwrap.with { grid-template-columns: minmax(0, 1fr); }
  .gs { order: 9; width: 100%; } .gfind { width: 100%; }
}

/* Task timeline: the diary by day */
.dday h3 { margin: var(--space-16) 0 var(--space-8); font-size: var(--fs-13); font-weight: 600; color: var(--muted, var(--label-secondary)); text-transform: none; }
.dline { display: grid; grid-template-columns: 118px 74px 1fr auto; gap: var(--space-12); align-items: baseline; padding: var(--space-8) var(--space-8); border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: 8px; }
.dline:hover { background: rgba(0,109,255,.06); }
.dk { font-size: var(--fs-12); font-weight: 600; padding: var(--space-4) var(--space-8); border-radius: 9999px; background: var(--fill-quaternary); justify-self: start; }
.dk.k-note, .dk.k-email { background: var(--status-info-fill); } .dk.k-photo, .dk.k-document { background: var(--status-pass-fill); } .dk.k-invoice, .dk.k-purchase, .dk.k-work { background: var(--brand-technical-blue); color: var(--label-on-tint); } .dk.k-hours { background: var(--label-primary); color: var(--label-on-tint); }
.dt { font-size: var(--fs-12); color: var(--muted, var(--label-secondary)); } .dx { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 700px) { .dline { grid-template-columns: 1fr auto; } .dx { grid-column: 1 / -1; } }

/* The compose box for an email Connect sends itself */
.mailcard { max-width: 720px; margin: 4vh auto 0; background: var(--bg-primary); color: var(--label-primary); border-radius: 16px; padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.mailcard h2 { margin: 0; } .mf { display: flex; flex-direction: column; gap: var(--space-4); font-size: var(--fs-12); font-weight: 600; color: var(--label-secondary); }
.mf input, .mf textarea { font: inherit; font-size: var(--fs-14); font-weight: 500; color: var(--label-primary); border: 1px solid var(--line); border-radius: 12px; padding: var(--space-12) var(--space-12); }

/* Home for the office: the flow strip, then the bento board */
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--card); border-radius: 16px; overflow: hidden; margin-bottom: var(--space-16); }
.fl { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-16) var(--space-16) var(--space-12); border-right: 1px solid var(--line); min-width: 0; }
.fl:last-child { border-right: 0; } .fl:hover, .fl:focus-visible { background: rgba(0,109,255,.07); } .fl:focus-visible { outline: 2px solid var(--brand-technical-blue); outline-offset: -2px; }
.fl-n { font-size: var(--fs-11); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--label-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl b { font-size: var(--fs-28); font-weight: 600; line-height: 1.05; } .fl-v { font-size: var(--fs-13); font-weight: 600; } .fl-l { font-size: var(--fs-12); color: var(--system-orange); font-weight: 600; min-height: 15px; }
.fl.hot { background: var(--status-pass-fill); } .fl.hot .fl-n { color: var(--label-primary); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-16); margin-bottom: var(--space-16); }
.bn { all: unset; box-sizing: border-box; background: var(--card); border-radius: 16px; padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; color: var(--label-primary); }
button.bn { cursor: pointer; } button.bn:hover { box-shadow: 0 0 0 2px var(--brand-technical-blue) inset; } button.bn:focus-visible { outline: 3px solid var(--brand-technical-blue); outline-offset: 2px; }
.bn-t { font-size: var(--fs-12); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--label-secondary); }
.bn > b { font-size: var(--fs-28); font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; } .bn > b.xl { font-size: var(--fs-44); } .bn-s { font-size: var(--fs-13); color: var(--label-secondary); } .bn-a { font-size: var(--fs-13); font-weight: 600; color: var(--brand-technical-blue); margin-top: auto; text-decoration: none; }
.bn.dark { background: var(--label-primary); color: var(--label-on-tint); } .bn.dark .bn-t { color: var(--status-pass-fill); } .bn-h { display: flex; justify-content: space-between; align-items: baseline; } .bn-h b { font-size: var(--fs-44); font-weight: 600; line-height: 1; }
.nd { display: flex; justify-content: space-between; align-items: center; gap: var(--space-12); border-top: 1px solid var(--label-secondary); padding-top: var(--space-12); font-size: var(--fs-14); } .nd .bt { background: var(--bg-primary); color: var(--label-primary); white-space: nowrap; } .nd.first .bt { background: var(--status-pass-fill); }
.bn.blue { background: var(--brand-technical-blue); color: var(--label-on-tint); } .bn.blue .bn-t, .bn.blue .bn-s { color: var(--label-on-tint); }
.bars { display: flex; gap: var(--space-8); align-items: flex-end; height: 76px; margin-top: auto; } .bars i { flex: 1; background: rgba(255,255,255,.88); border-radius: 8px 8px 0 0; } .bars i.now { background: var(--status-pass-fill); }
.bn.lime { background: var(--status-pass-fill); } .bn.lime .bn-t, .bn.lime .bn-s { color: var(--label-primary); } .bn.lime .bn-a { color: var(--label-primary); }
.bn .td { background: var(--bg-primary); border-radius: 12px; padding: var(--space-8) var(--space-12); font-size: var(--fs-13); font-weight: 600; color: var(--label-primary); text-decoration: none; display: flex; flex-direction: column; } .bn .td i { font-style: normal; font-weight: 500; color: var(--label-secondary); font-size: var(--fs-12); }
.bn.lilac { background: var(--status-info-fill); } .bn.lilac .bn-t, .bn.lilac .bn-s { color: var(--status-info-text); } .bn.lilac .bn-a { color: var(--status-info-text); }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fl { border-bottom: 1px solid var(--line); } .bento > * { grid-column: span 6 !important; } }
@media (max-width: 640px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento > * { grid-column: span 12 !important; } }

/* A picture in place of initials: a person's photo or a client's logo */
.av.pic { background-size: cover; background-position: center; background-color: var(--bg-primary); color: transparent; box-shadow: 0 0 0 1px var(--line); }
.av.big { width: 52px; height: 52px; font-size: var(--fs-16); margin-right: var(--space-12); flex: none; }

.mfiles { display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: var(--space-8) var(--space-12); }

/* The top headings: in a row on a computer, behind one Menu button on a phone so the page is not pushed down the screen */
.topnav { display: contents; } .burger { display: none; }
@media (max-width: 860px) {
  .bar { padding: var(--space-12) var(--space-16); min-height: 0; }
  .burger { display: inline-flex; align-items: center; min-height: 44px; border: 0; border-radius: var(--r-pill); padding: 0 var(--space-16); background: var(--bg-primary); color: var(--ink); font-weight: 600; margin-left: var(--space-8); }
  .topnav { display: none; order: 10; width: 100%; flex-direction: column; gap: 2px; padding: var(--space-8) 0 var(--space-4); }
  .topnav.open { display: flex; } .topnav .mi { text-align: left; min-height: 44px; }
  .mega { left: 12px; right: 12px; grid-template-columns: 1fr; padding: var(--space-16); max-height: 70vh; overflow: auto; }
  .tabs { padding: var(--space-8) var(--space-16) 0; }
}
.dcard.b .muted, .dcard.k .muted { color: rgba(255,255,255,.82); }

/* Receipts: the picture beside what was read from it */
.rcps { display: flex; flex-direction: column; gap: var(--space-16); }
.rcp { background: var(--card); border-radius: 16px; padding: var(--space-16); display: grid; grid-template-columns: 150px 1fr; gap: var(--space-16); }
.rcp-open { all: unset; cursor: zoom-in; border-radius: 12px; } .rcp-open:focus-visible { outline: 3px solid var(--brand-technical-blue); }
.rcp-pic { width: 150px; height: 190px; border-radius: 12px; background: var(--fill-quaternary) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--label-secondary); }
.rcp-f { display: flex; flex-direction: column; gap: var(--space-12); min-width: 0; } .rcp-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-12); }
.rcp-g select { font: inherit; font-size: var(--fs-14); border: 1px solid var(--line); border-radius: 12px; padding: var(--space-12) var(--space-12); background: var(--bg-primary); min-height: 44px; }
@media (max-width: 900px) { .rcp-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rcp { grid-template-columns: 1fr; } .rcp-pic { width: 100%; height: 220px; } .rcp-g { grid-template-columns: 1fr; } }

/* Receipts as single lines; a click opens that one in place */
.rrows { display: flex; flex-direction: column; }
.rrow { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) 110px auto; gap: var(--space-12); align-items: center; padding: var(--space-12) var(--space-16); border-top: 1px solid var(--line); min-height: 44px; font-size: var(--fs-14); }
.rrow:first-child { border-top: 0; } .rrow:hover, .rrow.on { background: rgba(0,109,255,.06); } .rrow:focus-visible { outline: 2px solid var(--brand-technical-blue); outline-offset: -2px; }
.rr-d, .rr-c, .rr-w { color: var(--label-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rr-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rr-a { text-align: right; }
.rrows .rcp { border-radius: 0; border-top: 1px solid var(--line); background: var(--bg-secondary); }
@media (max-width: 760px) { .rrow { grid-template-columns: 1fr auto; } .rr-d, .rr-c, .rr-w { display: none; } }

/* Columns like a spreadsheet: a grip on each heading's right edge, and a Columns chooser */
table.cols th { position: relative; } .rz { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 1; }
.rz::after { content: ""; position: absolute; left: 4px; top: 22%; height: 56%; width: 1px; background: var(--line); } .rz:hover::after { background: var(--brand-technical-blue); width: 2px; left: 3px; }
table.cols th[style*="max-width"] { overflow: hidden; } table.cols td { overflow: hidden; text-overflow: ellipsis; }
.colpick { position: relative; } .colmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-menu, 0 12px 40px rgba(0,0,0,.18)); padding: var(--space-12) var(--space-16); min-width: 220px; display: flex; flex-direction: column; gap: var(--space-4); }
.colmenu .wrow { justify-content: flex-start; gap: var(--space-8); }

/* A receipt opened: the document large on the left, what was read on the right. While it is being read, a line scans down it. */
.rcp2 { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.25fr); gap: var(--space-24); padding: var(--space-16); border-top: 1px solid var(--line); background: var(--bg-secondary); }
.rcp-left { display: flex; flex-direction: column; gap: var(--space-8); align-items: flex-start; }
.rcp-doc { position: relative; width: 100%; max-height: 72vh; overflow: auto; border-radius: 16px; background: var(--label-primary); display: flex; justify-content: center; }
.rcp-doc img { display: block; max-width: 100%; height: auto; } .rcp-pdf { color: var(--label-on-tint); padding: 60px var(--space-24); font-weight: 600; }
.rcp-doc.scanning img { filter: saturate(.7) brightness(.92); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; background: linear-gradient(to bottom, rgba(0,109,255,0), rgba(0,109,255,.28) 70%, rgba(214,243,107,.95) 98%, rgba(214,243,107,0)); animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-90px); } to { transform: translateY(min(72vh, 620px)); } }
@media (prefers-reduced-motion: reduce) { .scanline { animation: none; top: 40%; } }
.rcp-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); } .rcp-g2 select { font: inherit; font-size: var(--fs-14); border: 1px solid var(--line); border-radius: 12px; padding: var(--space-12) var(--space-12); background: var(--bg-primary); min-height: 44px; }
.mf.row { flex-direction: row; align-items: center; gap: var(--space-8); align-self: end; min-height: 44px; }
@media (max-width: 860px) { .rcp2 { grid-template-columns: 1fr; } .rcp-doc { max-height: 46vh; } }

/* The Xero post: single-line rows, one per record */
.xrows { display: flex; flex-direction: column; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin: var(--space-8) 0 var(--space-16); }
.xrow { display: grid; grid-template-columns: 150px 96px 110px 130px minmax(0, 1fr); gap: var(--space-12); align-items: center; padding: var(--space-12) var(--space-16); border-top: 1px solid var(--line); min-height: 44px; font-size: var(--fs-14); color: inherit; text-decoration: none; }
.xrow:first-child { border-top: 0; } .xrow:hover { background: rgba(0,109,255,.06); } .xrow .muted { overflow: hidden; text-overflow: clip; white-space: normal; }
@media (max-width: 760px) { .xrow { grid-template-columns: 1fr auto; } .xrow > :nth-child(2), .xrow > :nth-child(3) { display: none; } .xrow > :nth-child(5) { grid-column: 1 / -1; } }

/* Word templates and field codes */
.xrows.flat { border: 0; border-radius: 0; margin: 0; max-height: none; }
button.xrow { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.6fr) 96px 150px 96px minmax(0, 1fr); gap: var(--space-12); align-items: center; padding: var(--space-12) var(--space-16); border-top: 1px solid var(--line); min-height: 44px; font-size: var(--fs-14); }
button.xrow:first-child { border-top: 0; } button.xrow:hover, button.xrow.on { background: rgba(0,109,255,.06); } button.xrow:focus-visible { outline: 2px solid var(--brand-technical-blue); outline-offset: -2px; }
.wtopen { background: var(--bg-secondary); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-12); }
.wadd { flex-wrap: wrap; margin-top: var(--space-12); }
.codes { display: flex; flex-direction: column; overflow: auto; }
.codes.inline { flex-direction: row; flex-wrap: wrap; gap: var(--space-8); }
.codes code, .coderow code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-13); background: var(--fill-quaternary); border-radius: 6px; padding: 2px var(--space-8); overflow-wrap: anywhere; }
.coderow { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); padding: var(--space-8) var(--space-4); border-top: 1px solid var(--line); min-height: 44px; align-items: center; font-size: var(--fs-14); }
.coderow:hover { background: rgba(0,109,255,.06); } .coderow:focus-visible { outline: 2px solid var(--brand-technical-blue); }
.codebox { position: fixed; right: 16px; top: 72px; bottom: 16px; width: min(520px, calc(100vw - 32px)); background: var(--bg-primary); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-8); z-index: 5; color: var(--label-primary); }
.wordpick { min-height: 40px; border-radius: 9999px; padding: 0 var(--space-12); max-width: 220px; }
@media print { .codebox { display: none; } }
@media (max-width: 760px) { button.xrow { grid-template-columns: 1fr auto; } button.xrow > :nth-child(2), button.xrow > :nth-child(3), button.xrow > :nth-child(5) { display: none; } }

/* Bank check: the state filter, and its rows */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-12) 0; }
.chip.pick { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 0 var(--space-16); border-radius: 9999px; display: inline-flex; align-items: center; font-size: var(--fs-14); font-weight: 600; background: var(--bg-primary); border: 1px solid var(--line); color: var(--label-primary); }
.chip.pick.on { background: var(--label-primary); color: var(--label-on-tint); border-color: var(--label-primary); } .chip.pick:focus-visible { outline: 2px solid var(--brand-technical-blue); outline-offset: 2px; }
button.xrow.bk { grid-template-columns: minmax(0, 1.4fr) 86px 110px 140px minmax(0, 1.4fr); }

/* Progress board */
button.xrow.pg { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 96px 150px minmax(0, 1.6fr); }
.pbar { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-12); align-items: center; font-size: var(--fs-14); }
.pbar meter { width: 100%; height: 12px; }
@media (max-width: 760px) { .pbar { grid-template-columns: 70px 1fr; } .pbar b { grid-column: 1 / -1; } }

/* Plan by a word */
.planbox { display: flex; flex-direction: column; gap: var(--space-12); } .planbox label { font-weight: 600; } .planbox textarea { font: inherit; font-size: var(--fs-16); padding: var(--space-12); border-radius: 12px; border: 1px solid var(--line); width: 100%; box-sizing: border-box; }
label.xrow.pl { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) 150px; cursor: pointer; padding: var(--space-12) var(--space-16); }
label.xrow.pl input { width: 20px; height: 20px; }
@media (max-width: 760px) { label.xrow.pl { grid-template-columns: 28px 1fr; } label.xrow.pl > :nth-child(n+3) { grid-column: 2; display: block; } }

/* Asset tests on a task */
.xrow.at { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 110px auto; padding: var(--space-12) var(--space-16); }
.tools.tight { gap: var(--space-8); margin: 0; } .wtopen textarea, .wtopen input[type="text"] { font: inherit; padding: var(--space-12); border-radius: 10px; border: 1px solid var(--line); width: 100%; box-sizing: border-box; }
@media (max-width: 760px) { .xrow.at { grid-template-columns: 1fr auto; } .xrow.at > :nth-child(2) { display: none; } .xrow.at > :nth-child(4) { grid-column: 1 / -1; } }

/* Client signature pad */
.signwrap { position: fixed; inset: 0; background: rgba(17,19,24,.55); display: grid; place-items: center; z-index: 60; padding: var(--space-16); }
.signbox { background: var(--bg-primary); border-radius: 16px; padding: var(--space-16); width: min(640px, 100%); display: flex; flex-direction: column; gap: var(--space-12); color: var(--label-primary); }
.signbox input { font: inherit; padding: var(--space-12); border-radius: 10px; border: 1px solid var(--line); }
.signpad { width: 100%; height: auto; aspect-ratio: 600 / 220; border: 1px dashed var(--brand-mist); border-radius: 12px; touch-action: none; background: var(--bg-primary); }
label.tick { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 44px; padding: 0 var(--space-12); }

/* ---- The frame (ISSUES HC154, option D): one black bar across the top; a click on a heading slides its pages out in a
   strip under it. The calmer white page from HC119 stays. ---- */
:root { --bar: 54px; --page: var(--bg-primary); --r-card: 16px; --r-tile: 16px; --r-fact: 12px; --shadow: none; }
#root.app { display: block; min-height: 100%; background: var(--page); }
#root.app > .tabs { display: none; }
.pbar { display: none; }
.topbar { position: sticky; top: 0; height: var(--bar); background: var(--ink); color: var(--label-on-tint); padding: 0 var(--space-24); display: flex; align-items: center; gap: var(--space-4); z-index: 20; }
.sidenav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; } .ar { display: flex; align-items: center; }
.sb { border: 0; background: none; color: var(--label-on-tint); text-align: left; font: inherit; font-size: var(--fs-14); font-weight: 600; min-height: 36px; padding: 0 var(--space-12); border-radius: 8px; display: flex; align-items: center; gap: var(--space-8); position: relative; white-space: nowrap; text-decoration: none; }
.sb:hover, .ar.open > .sb { background: var(--label-secondary); } .sb.on, .ar.open > .sb.on { background: var(--lime); color: var(--ink); } .sb:focus-visible, .strip a:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.sb .badge { min-width: 20px; height: 20px; padding: 0 var(--space-8); border-radius: var(--r-pill); background: var(--s4-tx); color: var(--label-on-tint); font-size: var(--fs-11); font-style: normal; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.sb.add { border: 1px solid rgba(255,255,255,.22); } .sb.who { padding: 0 2px; } .sb.who .me { width: 30px; height: 30px; font-size: var(--fs-11); margin: 0; display: inline-flex; align-items: center; justify-content: center; } .sb.who .nm { display: none; }
.strip { position: absolute; left: 0; right: 0; top: var(--bar); min-height: 42px; background: var(--label-secondary); padding: var(--space-4) var(--space-24) var(--space-4) var(--space-12); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); visibility: hidden; box-shadow: 0 10px 24px rgba(17,19,24,.18); }
.ar.open > .strip { visibility: visible; }
.strip a { color: var(--label-on-tint); text-decoration: none; font-size: var(--fs-14); font-weight: 600; padding: 0 var(--space-12); min-height: 32px; border-radius: 8px; display: flex; align-items: center; white-space: nowrap; }
.strip a:hover { background: rgba(255,255,255,.12); } .strip a.on { color: var(--lime); }
.topbar .gs { margin: 0 var(--space-4); } .topbar .gfind { width: 150px; border-radius: 8px; height: 34px; padding: 0 var(--space-12); } .topbar .gfind:focus { width: 240px; }
.topbar .ghits { right: 0; left: auto; width: min(480px, 80vw); z-index: 30; }
#root.app > .mega { position: fixed; left: 16px; right: 16px; top: calc(var(--bar) + 10px); margin: 0 auto; max-height: calc(100vh - var(--bar) - 26px); overflow: auto; z-index: 40; }
#root.app > .acct { position: fixed; right: 12px; left: auto; top: calc(var(--bar) + 8px); bottom: auto; z-index: 40; }
#root.app > .dim { z-index: 35; }
.where { font-size: var(--fs-13); color: var(--ink-2); margin-bottom: var(--space-4); }
.ptabs.side { top: calc(var(--bar) + 12px); }
@media (max-width: 1240px) { .topbar .gfind { width: 110px; } .topbar .gfind:focus { width: 200px; } }
@media (max-width: 1000px) { .topbar { padding: 0 var(--space-12); gap: 2px; } .sb { padding: 0 var(--space-8); font-size: var(--fs-13); } }
main { padding: var(--space-24) var(--space-32) var(--space-48); }
/* Calmer: less big and bold, lines in place of shadows. Our black, lime and blue stay. */
h1 { font-size: var(--fs-28); line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.card, .dcard, .fact, .flow, .bn { border: 1px solid var(--line-2); }
.fact.b, .fact.l, .fact.v, .dcard.k, .dcard.b, .dcard.l, .dcard.v, .bn.dark, .bn.blue, .bn.lime, .bn.lilac { border-color: transparent; }
.fact b { font-size: var(--fs-16); line-height: 22px; font-weight: 600; } .bn { border-radius: 16px; } .flow { border-radius: 16px; }
.otabs { padding: var(--space-8) var(--space-32); }
@media (max-width: 860px) {
  #root.app > .tabs { display: flex; } .where { display: none; }
  .pbar { display: flex; align-items: center; gap: var(--space-8); background: var(--ink); color: var(--label-on-tint); padding: var(--space-12) var(--space-16); position: sticky; top: 0; z-index: 21; }
  .pbar .burger { display: inline-flex; align-items: center; min-height: 44px; border: 0; border-radius: var(--r-pill); padding: 0 var(--space-16); background: var(--bg-primary); color: var(--ink); font-weight: 600; } .pbar .sp { flex: 1; }
  .topbar { display: none; } .topbar.open { display: flex; flex-direction: column; align-items: stretch; position: fixed; inset: 64px 0 0 0; height: auto; width: 100%; padding: var(--space-16) var(--space-12); gap: var(--space-4); overflow-y: auto; z-index: 30; }
  .topbar .gs { order: -1; margin: 0 0 var(--space-8); } .topbar .gfind, .topbar .gfind:focus { width: 100%; height: 40px; } .topbar .ghits { left: 0; right: auto; }
  .sidenav { flex-direction: column; align-self: auto; gap: var(--space-4); } .ar { flex-direction: column; align-items: stretch; }
  .sb { min-height: 44px; width: 100%; font-size: var(--fs-14); padding: 0 var(--space-12); } .sb .badge { margin-left: auto; } .sb.who { padding: 0 var(--space-12); } .sb.who .nm { display: inline; }
  .strip, .ar.open > .strip { position: static; display: none; flex-direction: column; align-items: stretch; flex-wrap: nowrap; background: none; box-shadow: none; padding: 2px 0 var(--space-8) var(--space-24); min-height: 0; visibility: visible !important; opacity: 1 !important; }
  .ar.on > .strip { display: flex; } .strip a { min-height: 44px; font-weight: 500; color: var(--on-dark); } .strip a.on { color: var(--label-on-tint); font-weight: 600; }
  #root.app > .mega { left: 12px; right: 12px; top: 72px; } #root.app > .acct { left: 12px; right: 12px; width: auto; top: 72px; bottom: auto; }
  main { padding: var(--space-16) var(--space-16) var(--space-48); } .otabs { padding: var(--space-8) var(--space-16); }
}
@media print { .topbar, .pbar { display: none !important; } #root.app { display: block; } }

/* Layout A, the page header: who, where and when as one quiet line in place of a row of boxes. Lime still marks the date
   that matters, blue the one that is set. The money strip keeps its outline. */
.facts { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-32); align-items: baseline; }
.fact, .fact.b, .fact.l, .fact.v { background: none; border: 0; border-radius: 0; padding: 0; text-transform: none; letter-spacing: 0; font-size: var(--fs-14); font-weight: 500; color: var(--ink-2); display: inline-flex; gap: var(--space-8); align-items: baseline; min-height: 28px; }
.fact b, .fact.b b, .fact.l b, .fact.v b { display: inline; margin: 0; font-size: var(--fs-14); line-height: 22px; font-weight: 600; color: var(--ink); }
.fact.l b { background: var(--lime); padding: 1px var(--space-8); border-radius: 6px; } .fact.b b { background: var(--s2-bg); color: var(--s2-tx); padding: 1px var(--space-8); border-radius: 6px; } .fact.v b { background: var(--lilac); color: var(--on-lilac); padding: 1px var(--space-8); border-radius: 6px; }
.mbar { border: 1px solid var(--line-2); border-radius: 12px; }

/* Xero check rows */
a.xrow.xc { grid-template-columns: 130px minmax(0, 1.3fr) 86px 170px 130px minmax(0, 1.4fr); }
.chip.pick.sm { min-height: 36px; padding: 0 var(--space-12); font-size: var(--fs-13); font-weight: 600; }
@media (max-width: 760px) { a.xrow.xc { grid-template-columns: 1fr auto; } a.xrow.xc > :nth-child(2), a.xrow.xc > :nth-child(3), a.xrow.xc > :nth-child(6) { display: none; } }

/* Home widgets: pinned reports */
.wdgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-12); margin-bottom: var(--space-16); }
a.bn.wdg { text-decoration: none; cursor: pointer; padding: var(--space-16); } a.bn.wdg:hover { border-color: var(--ink); } a.bn.wdg > b { font-size: var(--fs-20); } a.bn.wdg:focus-visible { outline: 2px solid var(--blue); }

/* Chaser */
button.xrow.ch { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 170px minmax(0, 1.2fr); }
.mailpre { white-space: pre-wrap; font: inherit; font-size: var(--fs-14); background: var(--bg-primary); border: 1px solid var(--line-2); border-radius: 10px; padding: var(--space-12); margin: 0; max-height: 260px; overflow: auto; }

/* A technician's on-site bar: five big buttons */
.techbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-8); }
.techbar a { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--ink); color: var(--label-on-tint); font-weight: 600; font-size: var(--fs-14); text-decoration: none; }
.techbar a.on { background: var(--lime); color: var(--ink); } .techbar a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 420px) { .techbar { gap: var(--space-8); } .techbar a { font-size: var(--fs-13); } }

/* Marking up a photo */
.signbox.wide { width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; } .signbox .tools { flex-wrap: wrap; gap: var(--space-8); margin: 0; }
.markpad { width: 100%; height: auto; border-radius: 12px; touch-action: none; background: var(--label-primary); cursor: crosshair; }

/* The day's route link under a person's name on the planner */
.ch .rt { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; }

/* Insights: a question a line, the answer on it */
.xrow.q { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: var(--space-8); align-items: center; padding: 0 var(--space-16) 0 0; }
.qb { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.6fr) 150px minmax(0, 1fr); gap: var(--space-12); align-items: center; padding: var(--space-12) var(--space-16); min-height: 48px; font-size: var(--fs-14); }
.qb .num { text-align: right; } .qb:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; } .xrow.q.on { background: rgba(0,109,255,.06); }
@media (max-width: 760px) { .qb { grid-template-columns: 1fr auto; } .qb .muted { grid-column: 1 / -1; } }

/* The widget wall and the slice builder (HC117, B and C together) */
a.bn.wdg.dark { background: var(--label-primary); color: var(--label-on-tint); border-color: transparent; } a.bn.wdg.dark .bn-t { color: var(--status-pass-fill); } a.bn.wdg.dark .bn-s { color: var(--brand-mist); }
a.bn.wdg.blue { background: var(--brand-technical-blue); color: var(--label-on-tint); border-color: transparent; } a.bn.wdg.blue .bn-t, a.bn.wdg.blue .bn-s { color: var(--label-on-tint); }
a.bn.wdg.lime { background: var(--status-pass-fill); border-color: transparent; } a.bn.wdg.lime .bn-t, a.bn.wdg.lime .bn-s { color: var(--label-primary); }
a.bn.wdg.lilac { background: var(--status-info-fill); border-color: transparent; } a.bn.wdg.lilac .bn-t, a.bn.wdg.lilac .bn-s { color: var(--status-info-text); }
.bn.wdg.none { border-style: dashed; padding: var(--space-16); }
.wdgs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wbars { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-8); } .wbar { display: grid; grid-template-columns: minmax(0, 1fr) 60px auto; gap: var(--space-8); align-items: center; font-size: var(--fs-12); }
.wbar span { overflow: hidden; white-space: nowrap; text-overflow: clip; } .wbar i { height: 6px; border-radius: 6px; background: currentColor; opacity: .55; justify-self: start; } .wbar em { font-style: normal; font-weight: 600; }
.slicer { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; margin: var(--space-8) 0 var(--space-12); } .slk { display: inline-flex; align-items: center; gap: var(--space-8); font-size: var(--fs-14); color: var(--ink-2); }
.slk select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 var(--space-12); font: inherit; font-weight: 600; color: var(--ink); background: var(--bg-primary); }
.xrow.sl { grid-template-columns: minmax(0, 1.4fr) 60px 140px minmax(0, 1.6fr); padding: var(--space-12) var(--space-8); } .xrow.sl .num { text-align: right; } .xrow.sl.tot { background: var(--soft); border-top: 1px solid var(--line-2); }
.slbar { display: block; height: 12px; } .slbar i { display: block; height: 12px; border-radius: 6px; background: var(--blue); }
@media (max-width: 760px) { .xrow.sl { grid-template-columns: 1fr auto; } .xrow.sl > :nth-child(2), .xrow.sl > :nth-child(4) { display: none; } }

/* Quote stages */
.xrow.stgr { grid-template-columns: minmax(0, 1.6fr) 90px 140px auto; padding: var(--space-8) var(--space-16); } .xrow.stgr .num { text-align: right; } .inl.stg { min-width: 130px; }

/* Pay runs */
button.xrow.pr { grid-template-columns: minmax(0, 1.3fr) 130px 170px 170px 80px; } button.xrow.pr .num { text-align: right; }

/* Columns menu: tick, and move left or right */
.colrow { display: flex; align-items: center; gap: var(--space-8); } .colrow label { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 36px; }
.mv { border: 1px solid var(--line-2); background: var(--bg-primary); border-radius: 8px; min-width: 32px; min-height: 32px; font: inherit; } .mv:disabled { opacity: .35; } .mv:focus-visible { outline: 2px solid var(--blue); }

/* Split screen: a second page of Connect beside the first */
.splitpane { position: fixed; top: 0; right: 0; bottom: 0; width: 46vw; background: var(--bg-primary); border-left: 2px solid var(--ink); display: flex; flex-direction: column; z-index: 20; }
.splitbar { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-8) var(--space-12); background: var(--ink); color: var(--label-on-tint); } .splitbar .sp { flex: 1; } .splitbar .bt.plain { background: var(--bg-primary); }
.splitpane iframe { flex: 1; width: 100%; border: 0; }
body.has-split #root.app { margin-right: 46vw; }
.embedded .topbar, .embedded .pbar, .embedded .otabs { display: none !important; } .embedded #root.app > .tabs { display: flex; } .embedded .where { display: none; }
.embedded main { padding: var(--space-16) var(--space-16) var(--space-32); }
@media (max-width: 1100px) { .splitpane { display: none; } body.has-split #root.app { margin-right: 0; } }
@media print { .splitpane { display: none; } body.has-split #root.app { margin-right: 0; } }

/* The day on a map */
.daymap { width: 100%; height: 460px; border: 0; border-radius: 12px; margin-top: var(--space-12); } .stops { margin: var(--space-8) 0 0; padding-left: var(--space-24); font-size: var(--fs-14); display: flex; flex-direction: column; gap: var(--space-4); }

/* The running clock in the top bar */
a.sb.clk { background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 600; } a.sb.clk:hover { background: var(--lime); }

/* A search box over a list on a client's, site's or supplier's page (ISSUES HC159) */
.tbar { padding: var(--space-16) var(--space-16) var(--space-4); } .tfind { width: min(360px, 100%); height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 0 var(--space-16); font: inherit; font-size: var(--fs-14); background: var(--page); color: var(--ink); }
.tfind:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

/* A bill against its order, line by line (ISSUES HC158) */
.banner.ok { background: var(--s3-bg, var(--status-pass-fill)); color: var(--s3-tx, var(--system-green)); }
tr.warn td { background: var(--status-warning-fill); }

/* Menus read from the left (owner, 2026-11-21) */
.ptabs.side a, .ctx-i, .acct .bt, .strip a { text-align: left; }

/* The receipt camera (ISSUES HC161): full screen, a frame to line the receipt up in, one big button to take it */
.cam { position: fixed; inset: 0; z-index: 90; background: var(--label-primary); display: flex; flex-direction: column; }
.cam-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-frame { position: absolute; left: 10%; right: 10%; top: 9%; bottom: 22%; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.42); }
.cam-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--lime); }
.cam-frame .tl { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; } .cam-frame .tr { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.cam-frame .bl { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; } .cam-frame .br { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.cam-tip { position: absolute; left: 16px; right: 16px; top: max(14px, env(safe-area-inset-top)); text-align: center; color: var(--label-on-tint); font-weight: 600; font-size: var(--fs-14); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)); }
.cam-bar .bt { min-height: 44px; min-width: 96px; }
.cam-take { width: 76px; height: 76px; border-radius: 50%; border: 5px solid var(--bg-primary); background: var(--lime); box-shadow: 0 0 0 3px rgba(0,0,0,.35); cursor: pointer; }
.cam-take:active { transform: scale(.94); }
.cam.flash::after { content: ""; position: absolute; inset: 0; background: var(--bg-primary); animation: camflash .25s ease-out forwards; }
@keyframes camflash { from { opacity: .9; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cam.flash::after { animation: none; opacity: 0; } }

/* Status pills with a coloured outline (owner, 2026-11-21): each keeps its own colour, edged in a deeper shade of it */
.chip { border: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.chip.pick { border-color: var(--line-2); }
.subst { font-size: var(--fs-12); color: var(--ink-2); margin-top: var(--space-4); }

/* The scan as it happens (ISSUES HC168): corners close in on the paper, a beam sweeps it while it is read */
.sv { position: fixed; inset: 0; z-index: 95; background: rgba(10,11,14,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-16); padding: var(--space-16); animation: svin .2s ease-out; }
.sv.out { opacity: 0; transition: opacity .25s; }
@keyframes svin { from { opacity: 0; } to { opacity: 1; } }
.sv-pic { position: relative; max-width: 100%; }
.sv-pic img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; filter: brightness(.82) saturate(.8); transition: filter .5s; }
.sv-box { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transition: left .6s cubic-bezier(.2,.8,.2,1), top .6s cubic-bezier(.2,.8,.2,1), width .6s cubic-bezier(.2,.8,.2,1), height .6s cubic-bezier(.2,.8,.2,1); border-radius: 10px; overflow: hidden; }
.sv-box.locked { box-shadow: 0 0 0 9999px rgba(10,11,14,.45), inset 0 0 0 2px rgba(214,243,107,.55); }
.sv-box i { position: absolute; width: 30px; height: 30px; border: 4px solid var(--lime); z-index: 2; }
.sv-box .tl { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; } .sv-box .tr { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.sv-box .bl { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; } .sv-box .br { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.sv-beam { position: absolute; left: 0; right: 0; top: -30%; height: 30%; opacity: 0; background: linear-gradient(to bottom, rgba(214,243,107,0), rgba(214,243,107,.28) 80%, rgba(214,243,107,.95)); }
.sv-box.locked .sv-beam { opacity: 1; animation: svbeam 1.4s ease-in-out infinite alternate; }
@keyframes svbeam { from { top: -30%; } to { top: 100%; } }
.sv-box.ok { box-shadow: 0 0 0 9999px rgba(10,11,14,.45), inset 0 0 0 3px var(--lime); } .sv-box.ok .sv-beam, .sv-box.bad .sv-beam { animation: none; opacity: 0; }
.sv-box.bad i { border-color: var(--system-red); } .sv-box.bad { box-shadow: 0 0 0 9999px rgba(10,11,14,.45), inset 0 0 0 3px var(--system-red); }
.sv-said { color: var(--label-on-tint); font-weight: 600; font-size: var(--fs-16); text-align: center; min-height: 24px; max-width: 520px; }
.sv-tick { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: var(--fs-14); margin-right: var(--space-8); }
@media (prefers-reduced-motion: reduce) { .sv-box { transition: none; } .sv-box.locked .sv-beam { animation: none; top: 45%; } .sv { animation: none; } }

/* Start from a template, above a new task or quote (ISSUES HC165) */
.tplpick { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; margin: var(--space-4) 0 var(--space-12); } .tplpick label { font-weight: 600; font-size: var(--fs-14); }

/* Bills in (ISSUES HC166): what was read, how much of it, and what waits */
.bin-bar { position: relative; height: 6px; border-radius: 9999px; background: var(--line-2); overflow: hidden; min-width: 120px; flex: 1; max-width: 260px; }
.bin-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lime); border-radius: 9999px; transition: width .4s; }
.bin-bar.busy i { width: 35%; animation: binbusy 1.1s ease-in-out infinite; background: var(--brand-safety-amber); }
@keyframes binbusy { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bin-bar.busy i { animation: none; left: 0; width: 60%; } }
.bin-uprow { display: flex; align-items: center; gap: var(--space-16); padding: var(--space-8) 0; } .bin-uprow b { min-width: 180px; overflow: hidden; white-space: nowrap; }
.bin-got { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; margin-bottom: var(--space-12); font-weight: 600; font-size: var(--fs-14); }
.bin-open { padding: var(--space-8) var(--space-4) var(--space-12); display: flex; flex-direction: column; gap: var(--space-12); } tr.bin-detail > td { background: var(--soft); }
.bin-make { display: flex; gap: var(--space-8); flex-wrap: wrap; align-items: center; } .bin-make .pick { min-width: 200px; }

/* People in a permission group, on the group's own page (ISSUES HC176) */
.grpppl { margin-top: var(--space-16); display: flex; flex-direction: column; gap: var(--space-8); }

/* Urgency bars and one-line text, shared by the Home inbox (ISSUES HC180, HC184) */
.nbar { width: 3px; height: 20px; border-radius: 6px; flex: none; } .nbar.red { background: var(--system-red); } .nbar.amber { background: var(--brand-safety-amber); } .ltt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Home as an inbox (ISSUES HC184, pick D): a list of what needs you, its detail beside it. Cool grey, white panels, blue for the one picked. */
.ibx-top { display: flex; align-items: center; gap: var(--space-24); flex-wrap: wrap; padding: var(--space-12) var(--space-16); border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-primary); margin-bottom: var(--space-12); }
.ibx-n { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: var(--space-8); font-size: var(--fs-13); color: var(--label-secondary); } .ibx-n b { font-size: var(--fs-16); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; } .ibx-n b.blue { color: var(--brand-technical-blue); } .ibx-n:hover b, .ibx-n:focus-visible b { text-decoration: underline; }
.ibx-up { font-size: var(--fs-13); color: var(--label-secondary); text-decoration: none; } .ibx-up:hover { text-decoration: underline; }
.ibx { display: grid; grid-template-columns: 380px minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--fill-quaternary); margin-bottom: var(--space-16); min-height: 420px; }
.ibx-l { background: var(--bg-primary); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; }
.ibx-tabs { display: flex; gap: var(--space-16); padding: var(--space-12) var(--space-16); border-bottom: 1px solid var(--fill-quaternary); } .ibx-tabs button { all: unset; cursor: pointer; font-size: var(--fs-13); font-weight: 600; color: var(--label-secondary); padding-bottom: var(--space-8); border-bottom: 2px solid transparent; } .ibx-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.ibx-i { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: var(--space-12); padding: var(--space-12) var(--space-16); border-top: 1px solid var(--fill-quaternary); border-left: 3px solid transparent; } .ibx-i:first-of-type { border-top: 0; } .ibx-i:hover { background: var(--bg-secondary); }
.ibx-i.on { background: var(--status-info-fill); border-left-color: var(--blue); } .ibx-i:focus-visible, .ibx-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ibx-t { flex: 1; min-width: 0; font-size: var(--fs-14); display: flex; flex-direction: column; gap: 1px; } .ibx-t small { font-size: var(--fs-12); color: var(--label-secondary); } .ibx-c { color: var(--brand-mist); font-size: var(--fs-16); } .ibx-i.on .ibx-c { color: var(--blue); }
.nbar.blue { background: var(--blue); }
.ibx-d { padding: var(--space-16) var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); min-width: 0; } .ibx-h { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; } .ibx-h h2 { margin: 0; font-size: var(--fs-20); } .ibx-sub { font-size: var(--fs-14); font-weight: 600; }
.ibx-rows { background: var(--bg-primary); border: 1px solid var(--line-2); border-radius: 6px; } .ibx-r { display: grid; grid-template-columns: 70px minmax(0, 1.6fr) minmax(0, 1fr) auto auto; gap: var(--space-12); align-items: baseline; padding: var(--space-8) var(--space-16); font-size: var(--fs-13); color: inherit; text-decoration: none; border-top: 1px solid var(--fill-quaternary); } .ibx-r:first-child { border-top: 0; }
.ibx-r:hover { background: var(--soft); } .ibx-r .late { color: var(--system-red); font-weight: 600; } .ibx-go { color: var(--blue); font-weight: 600; } .ibx-r.more { display: block; color: var(--blue); font-weight: 600; }
@media (max-width: 860px) { .ibx { grid-template-columns: minmax(0, 1fr); } .ibx-l { border-right: 0; border-bottom: 1px solid var(--line-2); } .ibx-r { grid-template-columns: 54px minmax(0, 1fr) auto; } .ibx-r > :nth-child(3), .ibx-r > :nth-child(4) { display: none; } }

/* ---- The top bar, option D (ISSUES HC188): white, a Create button, the person's own pinned pages as pills, one All pages panel.
   Quick in and out: no transitions, so a menu is there the moment it is clicked and gone the moment it is not wanted. ---- */
.topbar { --bar-blue: var(--brand-technical-blue); --bar-deep: var(--brand-midnight-steel); background: var(--bar-blue); color: var(--label-on-tint); border-bottom: 0; gap: var(--space-8); }
.topbar .sidenav { gap: var(--space-4); align-items: center; flex-wrap: nowrap; min-width: 0; }
.topbar .sb { color: var(--label-on-tint); } .topbar .sb:hover { background: rgba(255,255,255,.16); } .topbar .sb.clk { color: var(--ink); }
.topbar .gfind { background: rgba(255,255,255,.18); color: var(--label-on-tint); } .topbar .gfind::placeholder { color: rgba(255,255,255,.8); }
.topbar .sb:focus-visible, .pn:focus-visible, .pinstar:focus-visible { outline: 2px solid var(--bg-primary); outline-offset: 1px; }
.pn { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 36px; padding: 0 var(--space-16); border: 0; border-radius: 8px; background: none; font: inherit; font-size: var(--fs-14); font-weight: 600; color: var(--label-on-tint); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pn:hover { background: rgba(255,255,255,.16); color: var(--label-on-tint); }
.pn.on, .pn.cur { background: var(--bar-deep); color: var(--label-on-tint); }
.pn.create { background: var(--bg-primary); color: var(--bar-blue); font-weight: 600; margin-right: var(--space-8); } .pn.create:hover { background: var(--status-info-fill); color: var(--bar-blue); }
.pn.all { border: 1px solid rgba(255,255,255,.4); color: var(--label-on-tint); } .pn.all:hover { background: rgba(255,255,255,.16); }
.pn.cur { padding-right: var(--space-4); }
.pinstar { border: 0; background: none; cursor: pointer; font-size: var(--fs-16); line-height: 1; padding: var(--space-4) var(--space-8); border-radius: 6px; color: var(--ink-3); } .pinstar:hover { background: var(--page); color: var(--blue); } .pinstar.set { color: var(--blue); }
.topbar .ar { position: relative; }
.allp { position: fixed; left: 12px; top: calc(var(--bar) - 2px); width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - var(--bar) - 16px); overflow: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-menu); padding: var(--space-16) var(--space-16); display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-12) var(--space-24); align-items: start; z-index: 40; }
.ag .agt { font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); }
.ap { display: flex; align-items: center; border-radius: 8px; } .ap:hover { background: var(--page); } .ap.on { background: var(--status-info-fill); }
.ap a { flex: 1; padding: var(--space-4) var(--space-8); color: var(--ink); text-decoration: none; font-size: var(--fs-14); font-weight: 600; } .ap.on a { color: var(--blue); }
@media (max-width: 860px) {
  .topbar.open .sidenav { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .topbar.open .pn { width: 100%; min-height: 44px; } .topbar.open .ar { display: block; }
  .allp { position: static; width: auto; max-height: none; box-shadow: none; grid-template-columns: 1fr; margin-top: var(--space-4); }
  .topbar.open .sb { color: var(--ink); }
}
@media (min-width: 861px) and (max-width: 1100px) { .pn { padding: 0 var(--space-8); font-size: var(--fs-13); } .topbar .gfind { width: 90px; } .topbar .gfind:focus { width: 150px; } .topbar .sb.who .nm { display: none; } }

.topbar > .sidenav > .pn .pinstar, .pn.cur .pinstar { color: var(--label-on-tint); } .pn.cur .pinstar:hover { background: rgba(255,255,255,.2); }
.topbar .sb.who .me { color: var(--ink); }

/* ---- Status chips, solid like Planner's labels (ISSUES HC189): amber, blue, green and red filled, text dark on amber and white on the rest (4.5:1 or better). ---- */
.chip.s1, .pri.s1 { background: var(--brand-safety-amber); color: var(--label-primary); border-color: transparent; }
.chip.s2, .pri.s2 { background: var(--system-blue); color: var(--label-on-tint); border-color: transparent; }
.chip.s3, .pri.s3 { background: var(--system-green); color: var(--label-on-tint); border-color: transparent; }
.chip.s4, .pri.s4 { background: var(--system-red); color: var(--label-on-tint); border-color: transparent; }

/* Sort and filter on column headings (HC174): a small arrow on each heading, a menu on click. */
.ths { border: 0; background: none; padding: 2px var(--space-4); margin-left: 2px; cursor: pointer; font-size: var(--fs-11); line-height: 1; color: var(--ink-3); border-radius: 6px; }
.ths:hover, .ths:focus-visible { color: var(--ink); background: var(--soft); }
.tmenu { position: absolute; z-index: 60; min-width: 230px; background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); padding: var(--space-4); display: flex; flex-direction: column; text-align: left; }
.tmenu button { border: 0; background: none; text-align: left; padding: var(--space-8) var(--space-12); font: inherit; font-size: var(--fs-13); cursor: pointer; border-radius: 6px; color: var(--ink); }
.tmenu button:hover, .tmenu button:focus-visible { background: var(--soft); }
.tmenu .tfind { margin: var(--space-4); width: calc(100% - 8px); box-sizing: border-box; }
/* The sub menu under the bar: this area's pages, on a white strip with a blue line under the one you are on. */
#root.app > .tabs { display: flex; position: sticky; top: var(--bar); z-index: 19; gap: 2px; padding: 0 var(--space-24); background: var(--card); border-bottom: 1px solid var(--line-2); overflow-x: auto; }
#root.app > .tabs a { padding: var(--space-12) var(--space-16) var(--space-8); font-size: var(--fs-14); }
#root.app > .tabs a:hover { color: var(--ink); background: var(--page); border-radius: 8px 8px 0 0; }
@media (max-width: 860px) { #root.app > .tabs { top: 64px; padding: 0 var(--space-12); } }


/* ---- A hint of grid in the lists (ISSUES HC191, the owner: "a hint of lines, row lines and column lines"): a faint line between columns and a slightly firmer one between rows. ---- */
table:not(.totals) th, table:not(.totals) td { border-right: 1px solid var(--line); }
table:not(.totals) th:last-child, table:not(.totals) td:last-child { border-right: 0; }
table:not(.totals) td { border-bottom-color: var(--line-2); }
table:not(.totals) thead th { border-bottom: 1px solid var(--line-2); }
tbody tr:last-child td { border-bottom: 0; }
/* The stage dial on the task page (ISSUES HC195). */
.trk { grid-template-columns: minmax(0, 1fr); gap: var(--space-16); }
.trk-side { display: grid; gap: var(--space-16); align-content: center; }
.trk-now { display: grid; gap: 2px; } .trk-now b { font-size: var(--fs-28); font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 760px) { .trk { grid-template-columns: 1fr; } }

/* Your stars sit at the right of the sub row. */
#root.app > .tabs .sp { flex: 1; } #root.app > .tabs a.fav { color: var(--ink-2); } #root.app > .tabs a.fav.on { color: var(--ink); }
.sboard { margin-top: var(--space-4); }

/* HC193: Reports question cards */
.bnrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--space-12);margin:var(--space-12) 0}
.bnrow .bn.on{outline:2px solid var(--bar-blue,var(--brand-technical-blue))}

/* HC201 (design critique F05, F07, F09): hover and press on everything clickable, 44px touch targets, a fading edge on the scrolling sub row */
.bt, .pn, .sb, .chip.pick, .seg button, .tabs a, .link, button.bn, a.bn { transition: background-color 90ms, box-shadow 90ms, transform 90ms; }
.bt:hover { filter: brightness(.94); } .bt:active { filter: brightness(.88); transform: scale(.98); }
.pn:hover, .sb:hover { background: rgba(255,255,255,.16); } .pn:active, .sb:active { background: rgba(255,255,255,.26); }
.chip.pick:hover, .seg button:hover { background: var(--soft); } .chip.pick:active, .seg button:active, .seg button:active { transform: scale(.97); }
.tabs a:hover { background: var(--soft); } .tabs a:active { background: var(--line-2); }
.link:hover { text-decoration: underline; } button.bn:active, a.bn:active { transform: scale(.99); }
.pn { min-height: 44px; display: inline-flex; align-items: center; }
@media (pointer: coarse) { .tabs a, .seg button, .chip.pick, .bt { min-height: 44px; } }
@media (max-width: 860px) { #root.app > .tabs { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, var(--label-primary) calc(100% - 28px), transparent); mask-image: linear-gradient(to right, var(--label-primary) calc(100% - 28px), transparent); } #root.app > .tabs::-webkit-scrollbar { display: none; } }
.here { text-align: center; font-weight: 600; font-size: var(--fs-14); margin-top: var(--space-4); }
.pkrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 130px; gap: var(--space-12); align-items: baseline; padding: var(--space-12) var(--space-4); border-top: 1px solid var(--line); } .pkrow:first-child { border-top: 0; } .pkrow .num { text-align: right; } .pkrow.late .num { color: var(--s4-tx); }
@media (max-width: 600px) { .pkrow { grid-template-columns: minmax(0, 1fr) auto; } .pkrow .muted { display: none; } }

.chip.imp { margin-left: var(--space-8); font-size: var(--fs-11); background: var(--soft); color: var(--muted, inherit); }
.trk-s span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--fill-quaternary); } .trk-s.done span { background: var(--ink); color: var(--bg-primary); } .trk-s.now span { background: var(--blue); color: var(--label-on-tint); } .trk-s.late span { background: var(--system-red); color: var(--label-on-tint); }
@media (max-width: 640px) { .trk-line { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-12); } }
.ptmore { border: 0; background: none; text-align: left; padding: var(--space-8) var(--space-12); border-radius: var(--r-row); font-weight: 600; font-size: var(--fs-14); color: var(--blue); cursor: pointer; min-height: 44px; } .ptmore:hover { background: var(--fill-quaternary); }
@media (max-width: 900px) { .ptmore { white-space: nowrap; } }

/* HC210 A, step two: Open and Create New under each bar item */
.pw { position: relative; display: inline-flex; align-items: center; height: var(--bar); }
.fly { display: none; position: absolute; left: 0; top: 100%; z-index: 40; min-width: 300px; gap: var(--space-32); padding: var(--space-12) var(--space-16); background: var(--brand-midnight-steel); color: var(--label-on-tint); border-radius: 0 0 var(--r-row) var(--r-row); box-shadow: var(--shadow-elevated); }
.pw:hover > .fly, .pw:focus-within > .fly { display: flex; }
.flc { display: grid; align-content: start; gap: 2px; min-width: 120px; } .flh { font-size: var(--fs-11); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; padding: 0 var(--space-8) var(--space-4); }
.fly a { display: block; padding: var(--space-8); min-height: 36px; border-radius: var(--r-xs); color: var(--label-on-tint); text-decoration: none; font-size: var(--fs-14); font-weight: 600; } .fly a:hover { background: rgba(255, 255, 255, .16); } .fly a:active { background: rgba(255, 255, 255, .26); }
@media (max-width: 860px) { .fly { display: none !important; } .pw { display: block; height: auto; } }
/* HC211 A: Settings as a rail of pages and one readable panel (Fergus-style), with Edit settings */
.setlay { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.setrail { display: grid; gap: 2px; padding: var(--space-8); background: var(--card); border-radius: var(--r-card); position: sticky; top: calc(var(--bar) + 12px); }
.setfind { width: 100%; padding: var(--space-8) var(--space-12); min-height: 44px; border: 1.5px solid var(--line-2); border-radius: var(--r-field); font-size: var(--fs-14); background: var(--card); color: var(--ink); }
.setpg[hidden], .setgrp[hidden] { display: none; }
.setgrp { font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; color: var(--ink-3); padding: var(--space-12) var(--space-12) var(--space-4); }
.setpg { display: block; text-align: left; border: 0; background: none; font: inherit; font-size: var(--fs-14); font-weight: 600; color: var(--ink); padding: var(--space-8) var(--space-12); min-height: 40px; border-radius: var(--r-row); cursor: pointer; text-decoration: none; }
.setpg:hover { background: var(--fill-quaternary); } .setpg.on { background: var(--blue); color: var(--label-on-tint); }
.setmain > .card, .setmain > section { margin-top: 0; }
.setmain .form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.setmain .fd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4) var(--space-16); align-items: center; padding: var(--space-12) 0; border-top: 1px solid var(--line); } .setmain .fd:first-child { border-top: 0; }
.setmain .fd.wide { grid-template-columns: minmax(0, 1fr); } .setmain .fd .muted { grid-column: 1 / -1; }
.setmain input:disabled, .setmain textarea:disabled, .setmain select:disabled { background: var(--bg-secondary); color: var(--ink); opacity: 1; border-color: transparent; }
.setmain input[type=checkbox] { appearance: none; width: 56px; height: 28px; border-radius: 6px; border: 1px solid var(--separator-opaque); background: var(--fill-tertiary); position: relative; cursor: pointer; flex: none; margin: 0; }
.setmain input[type=checkbox]::after { content: "OFF"; position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-11); font-weight: 600; color: var(--ink-3); padding-left: var(--space-24); }
.setmain input[type=checkbox]:checked { background: var(--blue); border-color: var(--blue); } .setmain input[type=checkbox]:checked::after { content: "ON"; color: var(--label-on-tint); padding: 0 var(--space-24) 0 0; }
.setmain input[type=checkbox]:disabled { opacity: .75; cursor: default; } .setmain input[type=checkbox]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 860px) { .setlay { grid-template-columns: minmax(0, 1fr); } .setrail { position: static; grid-auto-flow: column; overflow-x: auto; } .setgrp { display: none; } .setpg { white-space: nowrap; } .setmain .fd { grid-template-columns: minmax(0, 1fr); } }

.tile .tile-sum { margin-left: auto; font-size: var(--fs-13); font-weight: 600; opacity: .8; white-space: nowrap; }
/* Who our documents go to (HC235) */
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16) var(--space-24); margin: var(--space-12) 0; } .rcol h3 { margin: 0 0 var(--space-8); font-size: var(--fs-14); } .rcol .inl { width: 100%; margin-top: var(--space-8); }
@media (max-width: 720px) { .rgrid { grid-template-columns: 1fr; } }
.xrow.rl { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-12); } .xrow.rl .sp { flex: 1; }
.cj .vis.out { background: var(--system-red); color: var(--label-on-tint); }

.ld { height: 5px; border-radius: var(--r-chip); background: var(--line); margin-top: auto; overflow: hidden; } .ld i { display: block; height: 100%; background: var(--system-green); } .ld.over i { background: var(--system-red); }
.ldt { display: block; font-size: var(--fs-11); font-weight: 600; color: var(--ink-3); } .ldt.over { color: var(--system-red); }
.cald .cc.offh { background: var(--soft); } .cald .cc.nowh { background-image: linear-gradient(to bottom, transparent calc(var(--np) - 1px), var(--system-red) calc(var(--np) - 1px), var(--system-red) calc(var(--np) + 1px), transparent calc(var(--np) + 1px)); }
.tlw { min-width: 900px; } .tl-head, .tl-lane { display: grid; } .tl-d { padding: 8px 2px; font-size: 11px; font-weight: 600; background: var(--soft); border: 0; border-left: 1px solid var(--line); cursor: pointer; } .tl-d.we, .tl-c.we { background: var(--soft); } .tl-d.now, .tl-c.now { background: var(--lilac); }
.tl-lane { border-top: 1px solid var(--line); } .tl-name { padding: 10px 8px; font-weight: 600; font-size: 13px; } .tl-c { border-left: 1px solid var(--line); min-height: 34px; } .tl-c.over { background: var(--lilac); }
.tl-bar { z-index: 1; margin: 3px 2px; padding: 5px 8px; border-radius: var(--r-chip); font-size: 12px; font-weight: 600; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* The side rail (ISSUES HC233). Desktop only: on a phone the old bar and its Menu button stay. */
.rail { display: none; }
@media (min-width: 861px) {
  #root.app { padding-left: 64px; } #root.app:has(.rail.wide) { padding-left: 224px; }
  .rail:not(.wide) { cursor: e-resize; } .rail:not(.wide) a, .rail:not(.wide) button { cursor: pointer; }
  .rail { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 64px; background: var(--frame, var(--brand-infrastructure-black)); color: var(--label-on-tint); padding: var(--space-8) var(--space-8); display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .rail.wide { width: 224px; padding: var(--space-8); overflow-y: auto; }
  #root.app > nav.tabs { display: none; }
  .topbar .sidenav > :not(.create):not(.ar) { display: none; } .topbar > a.pn { display: none; }
  .rl-b { display: flex; align-items: center; justify-content: center; gap: var(--space-12); height: 44px; width: 100%; border: 0; border-radius: var(--r-row); background: none; color: rgba(255,255,255,.62); cursor: pointer; text-decoration: none; font: inherit; }
  .rl-b:hover, .rlw:focus-within > .rl-b { background: rgba(255,255,255,.1); color: var(--label-on-tint); } .rl-b.on { background: rgba(255,255,255,.16); color: var(--label-on-tint); }
  .rail.wide .rl-b { justify-content: flex-start; padding: 0 var(--space-8); } .rl-n { font-size: var(--fs-13); font-weight: 450; }
  .rl-g { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; font-size: var(--fs-13); font-weight: 600; } .rl-g.on { background: var(--blue); border-color: var(--blue); color: var(--label-on-tint); }
  .rl-star { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: var(--r-field); background: rgba(255,255,255,.14); font-size: var(--fs-13); font-weight: 600; } .rl-sh { font-size: var(--fs-11); font-weight: 600; text-align: center; color: rgba(255,255,255,.62); padding: 0 0 var(--space-4); }
  .rl-j { width: 2px; height: 8px; background: rgba(255,255,255,.3); margin: 0 auto; } .rl-sep { height: 1px; background: rgba(255,255,255,.22); margin: var(--space-8) var(--space-8); } .rl-gap { height: 6px; } .rl-sp { flex: 1; }
  .rlw { position: relative; }
  body:has(.ctx) .rfly { display: none !important; } .rl-b:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
  .rfly { display: none; position: absolute; left: 100%; top: -4px; padding-left: var(--space-8); z-index: 50; } .rlw:hover > .rfly, .rlw:focus-within > .rfly { display: block; }
  .rfc { min-width: 200px; background: var(--frame, var(--brand-infrastructure-black)); color: var(--label-on-tint); border-radius: var(--r-card); padding: var(--space-12) var(--space-8); box-shadow: 0 12px 32px rgba(0,0,0,.35); display: grid; gap: 1px; }
  .rfh { font-size: var(--fs-11); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.62); padding: 2px var(--space-12) var(--space-8); }
  .rfc a, .rl-sub a { display: block; padding: var(--space-8) var(--space-12); border-radius: var(--r-field); color: var(--label-on-tint); text-decoration: none; font-size: var(--fs-13); font-weight: 450; } .rfc a:hover, .rl-sub a:hover { background: rgba(255,255,255,.14); } .rfc a.on, .rl-sub a.on { background: rgba(255,255,255,.2); } .rfc a.mk, .rl-sub a.mk { color: rgba(255,255,255,.62); }
  .rl-sub { display: grid; gap: 1px; padding: 2px 0 var(--space-8) var(--space-32); }
  /* The black frame (Shopify's look): rail and top bar black, the page a rounded panel inset in it. */
  body:has(#root.app) { background: var(--frame, var(--brand-infrastructure-black)); }
  #root.app { display: flex; flex-direction: column; min-height: 100vh; background: var(--frame, var(--brand-infrastructure-black)); }
  .topbar { background: var(--frame, var(--brand-infrastructure-black)); color: var(--label-on-tint); }
  .topbar .gfind { background: rgba(255,255,255,.14); color: var(--label-on-tint); } .topbar .gfind::placeholder { color: rgba(255,255,255,.6); }
  .topbar .pn.create { background: rgba(255,255,255,.14); color: var(--label-on-tint); } .topbar .pn.create:hover { background: rgba(255,255,255,.24); }
  .topbar .pn.all { background: transparent; color: var(--label-on-tint); border: 0; } .topbar .pn.all:hover { background: rgba(255,255,255,.14); }
  #root.app > main { flex: 1; background: var(--page); border-radius: var(--r-card); margin: 0 var(--space-8) var(--space-8) 0; }
  #root.app > .otabs { background: transparent; border-bottom: 0; color: var(--label-on-tint); }
}

.calm.wn { grid-template-columns: 34px repeat(7, minmax(110px, 1fr)); min-width: 800px; } .wkn { padding: var(--space-8) var(--space-4); font-size: var(--fs-11); font-weight: 600; color: var(--ink-3); text-align: center; border-bottom: 1px solid var(--line); }
.dn2.today, .dn2.pick { width: 26px; height: 26px; border-radius: 50%; text-align: center; padding: 0; line-height: 26px; } .dn2.pick { background: var(--lime); color: var(--ink); } .dn2.today { background: var(--system-red); color: var(--label-on-tint); }
button.ch.daybtn.now b, button.ch.daybtn.pick b { display: inline-block; min-width: 26px; height: 26px; line-height: 26px; padding: 0 6px; border-radius: var(--r-pill); text-align: center; box-sizing: border-box; } button.ch.daybtn.pick b { background: var(--lime); color: var(--ink); } button.ch.daybtn.now b { background: var(--system-red); color: var(--label-on-tint); }

.ctx-i span { flex: 1; } .ctx-k { font: inherit; font-size: var(--fs-11); font-weight: 600; color: var(--ink-2); background: var(--soft); border-radius: var(--r-chip); padding: 0 var(--space-8); } .ctx-i.danger { color: var(--system-red); }

/* Table filters, row height and heading drag (ISSUES HC248, web/table.js). Row height is for the whole list. */
table.d-compact td { padding-top: var(--space-4); padding-bottom: var(--space-4); font-size: var(--fs-13); } table.d-tall td { padding-top: var(--space-24); padding-bottom: var(--space-24); }
th .tbl-fb { margin-left: var(--space-4); border: 0; background: none; color: var(--ink-3); font-size: var(--fs-11); line-height: 1; padding: var(--space-4) var(--space-8); border-radius: 6px; cursor: pointer; vertical-align: middle; }
th .tbl-fb { opacity: 0; } th:hover .tbl-fb, th .tbl-fb:focus-visible, th .tbl-fb.on, th .tbl-fb[aria-expanded="true"] { opacity: 1; } @media (hover: none) { th .tbl-fb { opacity: 1; } }
th .tbl-fb:hover { color: var(--ink); background: var(--soft); } th .tbl-fb.on { background: var(--lime); color: var(--on-lime); }
th.dropto { box-shadow: inset 3px 0 0 var(--ink); } th[draggable="true"] { cursor: grab; }
.tbl-bar { justify-content: flex-start; gap: var(--space-12); }
.tbl-panel { position: fixed; z-index: 60; width: 288px; max-height: 430px; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-8); background: var(--card); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.24); padding: var(--space-12); font-size: var(--fs-13); }
.tbl-it { text-align: left; border: 0; background: none; padding: var(--space-8) var(--space-8); border-radius: 8px; font: inherit; cursor: pointer; color: var(--ink); } .tbl-it:hover, .tbl-it[aria-pressed="true"] { background: var(--soft); } .tbl-it[aria-pressed="true"] { font-weight: 600; }
.tbl-find { box-sizing: border-box; width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: var(--space-8) var(--space-12); font: inherit; background: var(--card); color: var(--ink); }
.tbl-ranges { display: flex; gap: var(--space-8); } .tbl-rg { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-11); color: var(--ink-3); flex: 1; min-width: 0; } .tbl-rg input { font: inherit; font-size: var(--fs-13); padding: var(--space-4) var(--space-8); border: 1px solid var(--line-2); border-radius: 8px; min-width: 0; }
.tbl-all { display: flex; gap: var(--space-16); font-size: var(--fs-12); }
.tbl-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 60px; max-height: 220px; }
.tbl-row { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-4) var(--space-4); border-radius: 6px; cursor: pointer; } .tbl-row:hover { background: var(--soft); } .tbl-row input { width: 16px; height: 16px; accent-color: var(--ink); } .tbl-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tbl-row i { font-style: normal; color: var(--ink-3); font-size: var(--fs-12); }
.tbl-foot { display: flex; align-items: center; gap: var(--space-8); } .tbl-foot .sp { flex: 1; }
.tbl-chips { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; margin: 0 0 var(--space-12); }
.tbl-chip { display: inline-flex; align-items: center; gap: var(--space-8); background: var(--ink); color: var(--lime); border-radius: 9999px; padding: var(--space-4) var(--space-8) var(--space-4) var(--space-12); font-size: var(--fs-12); } .tbl-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: var(--fs-11); padding: 2px var(--space-8); }
/* A short screen (a laptop): the narrow rail shrinks its rows and icons so every area and Setup still fit without scrolling. */
@media (min-width: 861px) and (max-height: 860px) { .rail:not(.wide) .rl-b { height: 38px; } .rail:not(.wide) .rl-b svg { width: 22px; height: 22px; } .rail:not(.wide) .rl-g, .rail:not(.wide) .rl-star { width: 26px; height: 26px; } .rl-sep { margin: var(--space-4) var(--space-8); } }
@media (min-width: 861px) and (max-height: 740px) { .rail:not(.wide) .rl-b { height: 33px; } .rail:not(.wide) .rl-b svg { width: 20px; height: 20px; } .rail:not(.wide) .rl-g, .rail:not(.wide) .rl-star { width: 24px; height: 24px; font-size: var(--fs-12); } .rl-sep { margin: var(--space-4) var(--space-8); } .rl-gap { display: none; } .rl-j { height: 5px; } }
@media (min-width: 861px) and (max-height: 820px) { .rl-srch { display: none; } }
@media (min-width: 861px) and (max-height: 740px) { .rl-ss { display: none; } }

/* Home: four tiles, then Needs you and Today (ISSUES HC258) */
.hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-12); margin-bottom: var(--space-12); }
.hm-tile { all: unset; box-sizing: border-box; cursor: pointer; background: var(--bg-primary); border: 1px solid var(--line-2); border-radius: 12px; padding: var(--space-12) var(--space-16); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-tile:hover { border-color: var(--blue); } .hm-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hm-tile .hm-l { font-weight: 600; color: var(--label-secondary); } .hm-tile b { font-size: var(--fs-28); font-weight: 600; letter-spacing: -.02em; line-height: 34px; font-variant-numeric: tabular-nums; } .hm-tile.bad b { color: var(--system-red); } .hm-tile .hm-s { font-size: var(--fs-12); color: var(--blue); }
.hm-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-12); margin-bottom: var(--space-16); align-items: start; }
.hm-card { background: var(--bg-primary); border: 1px solid var(--line-2); border-radius: 12px; padding: var(--space-12) var(--space-16); min-width: 0; } .hm-h { display: flex; align-items: center; gap: var(--space-12); margin-bottom: var(--space-4); } .hm-h h2 { margin: 0; font-size: var(--fs-16); }
.hm-rows { display: flex; flex-direction: column; } .hm-r { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: var(--space-12); padding: var(--space-8) var(--space-4); border-top: 1px solid var(--fill-quaternary); color: inherit; text-decoration: none; min-width: 0; } .hm-r:first-child { border-top: 0; } .hm-r:hover { background: var(--bg-secondary); } .hm-r:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (max-width: 860px) { .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-two { grid-template-columns: minmax(0, 1fr); } }
.appr-r { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; } .appr-r .ibx-t { flex: 1 1 220px; } .appr-r .money { font-weight: 600; }

.rl-chev { margin-left: auto; font-size: var(--fs-11); opacity: .6; } .rl-b:hover .rl-chev { opacity: 1; }

/* The task number, big, at the head of the task page (the owner: "the task job number needs to be big, you can't see it") */
.jobno { font-size: var(--fs-28); line-height: 44px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--ink); color: var(--label-on-tint); border-radius: 12px; padding: 0 var(--space-16); white-space: nowrap; }

/* The right rail: an icon strip down the right edge, opening to a panel (ISSUES HC268). Desktop only. */
.rrail, .rpanel { display: none; }
@media (min-width: 861px) {
  .rrail { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); position: fixed; top: 0; right: 0; bottom: 0; width: 52px; padding-top: 56px; background: var(--frame, var(--ink)); z-index: 25; }
  .rr-b { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--label-on-tint); } .rr-b:hover { background: rgba(255,255,255,.14); } .rr-b.on { background: var(--card); color: var(--ink); } .rr-b:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
  .rr-n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 9999px; background: var(--system-red); color: var(--label-on-tint); font-size: var(--fs-11); font-style: normal; font-weight: 600; display: grid; place-items: center; padding: 0 var(--space-4); }
  .rpanel { display: flex; flex-direction: column; gap: var(--space-8); position: fixed; top: 52px; right: 52px; bottom: 8px; width: 320px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: var(--space-16) var(--space-16); overflow-y: auto; z-index: 24; }
  .rpanel .nt { display: flex; flex-direction: column; gap: 2px; text-align: left; } .rr-notes { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 10px; padding: var(--space-12) var(--space-12); font: inherit; resize: vertical; } .rpanel .tools { margin-top: auto; }
  #root.app { padding-right: 52px; } #root.app:has(.rpanel) { padding-right: 380px; }
}

/* The enquiry's stage path, chance chips and the quick add window (ISSUES HC272) */
.epath { display: flex; margin-bottom: var(--space-12); } .ep { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; padding: var(--space-8) var(--space-8) var(--space-8) var(--space-24); text-align: center; font-weight: 600; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); margin-left: -8px; } .ep:first-child { margin-left: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-left: var(--space-12); }
.ep.done { background: var(--ink); color: var(--label-on-tint); } .ep.cur { background: var(--blue); color: var(--label-on-tint); } .ep.todo { background: var(--line-2); color: var(--ink-2); } .ep:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.efigs { display: flex; align-items: center; gap: var(--space-24); flex-wrap: wrap; margin-top: var(--space-12); } .efg { display: flex; flex-direction: column; } .efg span { font-size: var(--fs-12); font-weight: 600; color: var(--ink-2); } .efg b { font-size: var(--fs-20); line-height: 30px; font-weight: 600; letter-spacing: -.02em; } .efg b.blue { color: var(--blue); } .efigs .chip.pick.on { background: var(--ink); color: var(--label-on-tint); }
.qe-wrap { position: fixed; inset: 0; background: rgba(15,15,16,.45); display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh; z-index: 60; }
.qe { width: min(560px, calc(100vw - 32px)); background: var(--card); border-radius: 16px; padding: var(--space-16) var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); box-shadow: 0 20px 60px rgba(0,0,0,.3); } .qe h2 { margin: 0; font-size: var(--fs-20); } .qe .mf { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; } .qe .mf span { font-size: var(--fs-12); font-weight: 600; color: var(--ink-2); } .qe .req { color: var(--system-red); } .qe-two { display: flex; gap: var(--space-12); }
.qe input, .qe textarea { border: 1px solid var(--line-2); border-radius: 8px; padding: var(--space-8) var(--space-12); font: inherit; width: 100%; box-sizing: border-box; }

/* The enquiry page: essentials left, photos and documents right (ISSUES HC280) */
.eq-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; margin-bottom: var(--space-12); } .eq-more { margin: var(--space-4) 0 var(--space-12); }
.eq-drop { border: 2px dashed var(--line-2); border-radius: 12px; background: var(--status-info-fill); min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); text-align: center; cursor: pointer; padding: var(--space-12); color: var(--blue); } .eq-drop.over, .eq-drop:focus-visible { border-color: var(--blue); outline: 0; }
.eq-files { display: flex; flex-direction: column; gap: var(--space-8); margin: var(--space-12) 0; } .eq-f { display: flex; align-items: center; gap: var(--space-12); min-width: 0; } .eq-open { display: flex; align-items: center; gap: var(--space-12); min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.eq-th { width: 44px; height: 44px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; font-size: var(--fs-11); font-weight: 600; color: var(--ink-2); } .eq-th img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .eq-two { grid-template-columns: minmax(0, 1fr); } }

.mbar.posbar { margin-bottom: var(--space-12); } .posbar .mcell:hover { background: none; }

td.mg { white-space: nowrap; font-weight: 600; } td.mg small { display: block; font-weight: 500; color: var(--ink-3); } td.mg.neg, .neg { color: var(--system-red); }

/* The enquiry forecast line under the Home tiles (ISSUES HC287) */
.hm-fc { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-12) var(--space-16); margin: 0 0 var(--space-12); background: var(--bg-primary); border: 1px solid var(--line-2); border-radius: 12px; color: inherit; text-decoration: none; } .hm-fc:hover { border-color: var(--blue); } .hm-fc b.blue { color: var(--blue); } .hm-fc .ibx-c { margin-left: auto; }

/* The pre-start form (ISSUES HC291) */
.ps-gh { display: flex; align-items: center; gap: var(--space-12); margin-bottom: var(--space-8); } .ps-gh h2 { margin: 0; } .ps-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink-2); color: var(--label-on-tint); display: grid; place-items: center; font-size: var(--fs-12); font-weight: 600; flex: none; } .ps-n.ok { background: var(--system-green); }
.ps-q { padding: var(--space-12) 0; border-top: 1px solid var(--fill-quaternary); } .ps-gh + .ps-q { border-top: 0; } .ps-t { font-weight: 600; }
.ps-yn { display: flex; gap: var(--space-8); margin: var(--space-8) 0; max-width: 320px; } .ps-b { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; text-align: center; padding: var(--space-12) 0; border-radius: 10px; font-weight: 600; border: 1.5px solid var(--blue); color: var(--blue); background: var(--card); min-height: 44px; }
.ps-b.on { background: var(--blue); color: var(--label-on-tint); } .ps-b.on.act { background: var(--brand-safety-amber); color: var(--ink); border-color: var(--brand-safety-amber); } .ps-b:disabled { opacity: .7; cursor: default; } .ps-b:focus-visible, .ps-c:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ps-follow { background: var(--fill-quaternary); border-radius: 12px; padding: var(--space-12) var(--space-12); margin: var(--space-4) 0; } .ps-follow textarea { width: 100%; box-sizing: border-box; margin-top: var(--space-8); }
.ps-chips { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-8) 0; } .ps-c { all: unset; box-sizing: border-box; cursor: pointer; border: 1.5px solid var(--blue); color: var(--blue); background: var(--card); border-radius: 9999px; padding: var(--space-8) var(--space-12); font-weight: 600; min-height: 32px; } .ps-c.on { background: var(--status-info-fill); } .ps-c:disabled { opacity: .7; cursor: default; }
.ps-stop { color: var(--system-red); font-weight: 600; margin-top: var(--space-8); } .ps-photo { display: flex; align-items: center; gap: var(--space-12); margin-top: var(--space-8); } .ps-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.ps-s { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-8) 0; border-top: 1px solid var(--fill-quaternary); } .ps-gaps { margin-top: var(--space-12); color: var(--system-red); } .ps-gaps b { display: block; }
.sigpad { width: 100%; max-width: 560px; height: auto; aspect-ratio: 560 / 220; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); touch-action: none; cursor: crosshair; display: block; margin: var(--space-12) 0; }

.rl-b { position: relative; } .rl-bd { position: absolute; top: 2px; right: 2px; }

.ps-ok { color: var(--system-green); font-weight: 600; margin-top: var(--space-8); } .fds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-12); margin-top: var(--space-12); }
