/* CivilGenZ design system "Blueprint" (25 Oct 2026): the tokens and the shared components of every page.
   Navy app header, cool paper work area, white cards with soft corners, amber for the main action, blue for links and focus,
   Inter for the interface and IBM Plex Mono for codes, rates and quantities.
   The old token names (--red, --red-dark, --red-wash, --green …) stay as aliases: pages and kept versions that use them get the new palette. */
:root{
  /* colour */
  --navy:#0f2a44;
  --navy-2:#16385a;
  --navy-3:#1f4a73;
  --on-navy:#e8eef5;
  --on-navy-muted:#a9bccf;
  --paper:#f5f7fa;
  --card:#ffffff;
  --ink:#14202b;
  --ink-2:#2c3a47;
  --muted:#5b6b7a;
  --line:#dde3ea;
  --line-strong:#c5ced8;
  --line-soft:#e9eef3;
  --hover:#f0f4f8;
  --accent:#e8890c;
  --accent-dark:#b86a00;
  --accent-ink:#9a5400;
  --accent-wash:#fff4e5;
  --on-accent:#1a1a1a;
  --blue:#1f6feb;
  --blue-dark:#1557c0;
  --blue-wash:#eaf2fe;
  --ok:#1e7f4f;
  --ok-wash:#e8f5ee;
  --bad:#c62828;
  --bad-wash:#fdecec;
  --warn:#b26a00;
  --warn-wash:#fff6e0;
  /* old names, kept */
  --red:var(--accent);
  --red-dark:var(--accent-ink);
  --red-wash:var(--accent-wash);
  --green:var(--ok);
  --green-wash:var(--ok-wash);
  /* type */
  --font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --fs-xs:12px;--fs-sm:13px;--fs-md:15px;--fs-base:16px;--fs-lg:20px;--fs-xl:28px;--fs-2xl:40px;
  /* space, shape, depth */
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;
  --r:8px;--r-sm:6px;--r-lg:12px;--r-pill:999px;
  --shadow-1:0 1px 2px rgba(15,42,68,.06),0 1px 3px rgba(15,42,68,.08);
  --shadow-2:0 4px 14px rgba(15,42,68,.10);
  --shadow-3:0 18px 50px rgba(15,42,68,.25);
  --focus:0 0 0 3px rgba(31,111,235,.35);
  /* a button is visible at rest (6 Nov 2026, the owner): a fill different from what is behind it and a border of at least 3:1, not only on hover */
  --btn-fill:#e6ecf3;
  --btn-hover:#d7e0ea;
  --btn-line:#7a8b9c;
  --btn-ink:var(--ink);
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;touch-action:manipulation} /* no double-tap zoom on a phone (15 Nov 2026, the owner) */
body{background:var(--paper);color:var(--ink);font-family:var(--font);font-size:var(--fs-base);line-height:1.5;overflow-x:hidden;-webkit-font-smoothing:antialiased}
a{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:none;box-shadow:var(--focus);border-radius:var(--r-sm)}
::selection{background:var(--blue-wash)}
.mono,code,kbd,td.num,.num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.wrap{max-width:1200px;margin:0 auto;padding:0 var(--s4)}
.narrow{max-width:520px}

/* the app header: navy bar, the CivilGenZ lockup on the left (it is also the Home button), the account bar on the right */
.topbar{display:none}
header{background:var(--navy);color:var(--on-navy);padding:8px 0;border-bottom:1px solid var(--navy-3);position:relative;z-index:30}
header .wrap{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);flex-wrap:wrap;min-height:40px}
.hc-home{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;line-height:1;color:var(--on-navy);text-decoration:none;padding:6px 10px 6px 6px;border:1px solid transparent;background:transparent;border-radius:var(--r)}
.hc-home:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#fff}
.hc-home .hc-mark{flex:none;display:block}
.hc-home .hc-wm{font-size:17px;font-weight:800;letter-spacing:-.02em;color:#fff}
.hc-home .hc-wm b{color:var(--accent);font-weight:800}
.hc-home .hc-home-t{font-size:12px;font-weight:600;color:var(--on-navy-muted);padding-left:9px;margin-left:1px;border-left:1px solid rgba(255,255,255,.22)}
.brand{font-size:20px;font-weight:800;letter-spacing:-.02em;text-decoration:none}
.brand .dot{display:none}

/* page heading: title and lead on the left, the page's main action on the right */
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s4);flex-wrap:wrap;padding:var(--s6) 0 var(--s4)}
h1{font-size:clamp(26px,4vw,34px);font-weight:800;letter-spacing:-.025em;line-height:1.15}
h2{font-size:var(--fs-lg);font-weight:700;letter-spacing:-.015em;margin:var(--s6) 0 var(--s3)}
h2 .count{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0;margin-left:8px;background:var(--line-soft);padding:2px 8px;border-radius:var(--r-pill);vertical-align:2px}
h3{font-size:16px;font-weight:700}
.lead{color:var(--muted);margin-bottom:var(--s4);max-width:72ch}
.small{font-size:var(--fs-sm);color:var(--muted)}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--blue-dark)}

/* cards and panels */
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-1);padding:var(--s5);display:flex;flex-direction:column;gap:14px}
.panel[hidden]{display:none}
.panel.row{flex-direction:row;flex-wrap:wrap;align-items:flex-end}
.panel > h2:first-child,.panel > h3:first-child{margin-top:0}

/* hidden means hidden (10 Nov 2026, the owner: show only what applies). A display rule (label{display:flex}, a .row's flex,
   an inline style) used to beat the browser's own [hidden], so boxes of another choice stayed on screen. Never give a hidden
   element a display rule; toggle .hidden instead. Test: dev-tests/hidden0.mjs */
[hidden]{display:none!important}

/* the work's ID (15 Nov 2026, the owner: "prominently shown on works as an identifier"): one badge wherever a work shows —
   Home Recent Works and the work pop-up, the Works list and header, My Works cards */
.hc-wid{display:inline-flex;align-items:center;gap:3px;flex:none;font-family:var(--mono);font-size:11.5px;font-weight:700;line-height:1.3;letter-spacing:.01em;white-space:nowrap;padding:1px 8px 1px 6px;border-radius:999px;color:#0f2a44;background:#e8eef5;border:1px solid #9fb3c8;box-shadow:inset 3px 0 #e8890c;vertical-align:middle}
.hc-wid::before{content:'#';color:#e8890c;font-weight:800}
.hc-wid.lg{font-size:13.5px;padding:3px 12px 3px 9px}

/* forms */
label{display:flex;flex-direction:column;gap:6px;font-size:var(--fs-sm);font-weight:600;color:var(--ink-2);min-width:0}
input,select,textarea{font:inherit;font-size:15px;font-weight:400;padding:9px 11px;border:1px solid var(--line-strong);border-radius:var(--r-sm);background:#fff;color:var(--ink);min-width:0;width:100%;transition:border-color .12s,box-shadow .12s}
input:hover,select:hover,textarea:hover{border-color:#aab6c3}
/* tick boxes and option dots (27 Oct 2026, the owner): a coloured square (a round dot for an option) of one size on every page, beside
   its words. The size is !important so that a page rule written for text boxes (".bar input{flex:1 1 240px}") never stretches it into a
   tall, empty click area; the doubled [type] outranks page rules such as ".hc-dlg input" that would grey its border. A page may colour
   it with --tick (border and ticked fill), --tick-wash (empty fill) and --tick-on (the tick). */
input[type=checkbox][type=checkbox],input[type=radio][type=radio]{-webkit-appearance:none;appearance:none;flex:0 0 auto!important;width:18px!important;height:18px!important;min-width:0;min-height:0;padding:0!important;margin:0;border:2px solid var(--tick,var(--blue));border-radius:4px;background:var(--tick-wash,var(--blue-wash));display:inline-grid;place-content:center;vertical-align:middle;cursor:pointer;transition:background-color .12s,box-shadow .12s;-webkit-print-color-adjust:exact;print-color-adjust:exact}
input[type=radio][type=radio]{border-radius:50%}
input[type=checkbox][type=checkbox]::before{content:"";width:10px;height:10px;background:var(--tick-on,#fff);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%);transform:scale(0);transition:transform .1s}
input[type=radio][type=radio]::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--tick-on,#fff);transform:scale(0);transition:transform .1s}
input[type=checkbox][type=checkbox]:checked,input[type=radio][type=radio]:checked{background:var(--tick,var(--blue))}
input[type=checkbox][type=checkbox]:checked::before,input[type=radio][type=radio]:checked::before{transform:scale(1)}
input[type=checkbox][type=checkbox]:hover,input[type=radio][type=radio]:hover{box-shadow:0 0 0 4px color-mix(in srgb,var(--tick,var(--blue)) 18%,transparent)}
input[type=checkbox][type=checkbox]:disabled,input[type=radio][type=radio]:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
label:has(> input[type=checkbox]),label:has(> input[type=radio]){flex-direction:row;align-items:center;gap:8px;width:fit-content;max-width:100%;cursor:pointer}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--blue);box-shadow:var(--focus)}
input[readonly]{background:var(--paper)}

/* buttons: primary (amber), secondary (.ghost), blue (.blue), danger (.danger), small (.sm) */
.btn{font:inherit;font-size:14px;font-weight:700;line-height:1.2;padding:10px 16px;border:1px solid var(--accent);border-radius:var(--r-sm);background:var(--accent);color:var(--on-accent);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center;white-space:nowrap;transition:background .12s,border-color .12s,box-shadow .12s}
.btn:hover{background:#f39a22;border-color:#f39a22}
.btn:active{background:var(--accent-dark);border-color:var(--accent-dark)}
.btn:disabled{opacity:.5;cursor:default}
.btn.ghost{background:var(--btn-fill);color:var(--btn-ink);border-color:var(--btn-line);font-weight:600}
.btn.ghost:hover{border-color:var(--blue);color:var(--blue-dark);background:var(--blue-wash)}
/* the small text buttons (.lnk, defined page by page as underlined words) drawn as small pills, visible at rest (9 Nov 2026, the owner: the
   browser run's finding 4). button.lnk outranks every page's own .lnk; a.lnk (a real link that opens a page) keeps the link look */
button.lnk{display:inline-flex;align-items:center;gap:4px;font:inherit;font-size:12.5px;font-weight:600;line-height:1.4;padding:2px 10px;border:1px solid var(--btn-line);border-radius:999px;background:var(--btn-fill);color:var(--btn-ink);text-decoration:none;cursor:pointer;vertical-align:baseline;white-space:nowrap}
button.lnk:hover,button.lnk:focus-visible{border-color:var(--blue);color:var(--blue-dark);background:var(--blue-wash)}
button.lnk:disabled{opacity:.5;cursor:default}
.zone .btn.ghost{background:color-mix(in srgb,var(--zc) 12%,#fff);border-color:var(--zc)}
.zone .btn.ghost:hover{background:color-mix(in srgb,var(--zc) 22%,#fff);border-color:var(--zc);color:var(--btn-ink)}
.btn.blue{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.blue:hover{background:var(--blue-dark);border-color:var(--blue-dark)}
.btn.danger{background:var(--bad-wash);color:var(--bad);border-color:var(--bad)}
.btn.danger:hover{background:#f9d6d6;border-color:var(--bad)}
.btn.sm{font-size:13px;padding:5px 10px}

/* messages */
.note{background:var(--warn-wash);color:#6b4100;border:1px solid #f1d9a6;border-left:4px solid var(--accent);border-radius:var(--r-sm);padding:12px 14px;font-size:14px;margin-bottom:var(--s4)}
.note.ok{background:var(--ok-wash);color:#145c38;border-color:#bfe2cd;border-left-color:var(--ok)}
.note.bad{background:var(--bad-wash);color:#8e1c1c;border-color:#f3c2c2;border-left-color:var(--bad)}
.note.info{background:var(--blue-wash);color:#123d7a;border-color:#c6dafc;border-left-color:var(--blue)}
.empty{border:1.5px dashed var(--line-strong);border-radius:var(--r);padding:var(--s5);color:var(--muted);font-size:14px;text-align:center;background:rgba(255,255,255,.5)}

/* tables: light header row, quiet rules, numbers in mono */
.table{width:100%;border-collapse:separate;border-spacing:0;background:var(--card);border:1px solid var(--line);border-radius:var(--r);font-size:14px;overflow:hidden}
.table th{text-align:left;font-size:12px;letter-spacing:.02em;color:var(--muted);font-weight:600;padding:10px 12px;background:#f8fafc;border-bottom:1px solid var(--line);white-space:nowrap}
.table td{padding:10px 12px;border-top:1px solid var(--line-soft);vertical-align:middle}
.table tbody tr:first-child td{border-top:0}
.table tbody tr:hover td{background:#fafbfd}
.table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.table .acts{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.table .name{font-weight:600;overflow-wrap:anywhere}
.table .sub{font-size:12px;color:var(--muted)}
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* tags and badges */
.tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:2px 9px;border-radius:var(--r-pill);border:1px solid currentColor;line-height:1.5}
.tag.on{color:var(--ok);background:var(--ok-wash);border-color:#bfe2cd}
.tag.off{color:var(--bad);background:var(--bad-wash);border-color:#f3c2c2}

footer{margin-top:var(--s7);padding:var(--s5) 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
/* touch screens: a field under 16px makes the page zoom in when tapped */
@media (pointer:coarse){input,select,textarea{font-size:16px}}
/* Recently deleted (Works page, 7 Nov 2026): one short row a document, the box scrolls by itself */
dialog.hc-bin{margin:auto;border:1px solid var(--line);border-radius:10px;padding:14px 16px;width:100%;max-width:min(720px,94vw)}
dialog.hc-bin h3{margin:0 0 2px;font-size:16px}
dialog.hc-bin .bin-l{max-height:58vh;overflow-y:auto;border:1px solid var(--line);border-radius:8px;margin:8px 0 10px}
dialog.hc-bin .bin-r{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:7px 10px;border-bottom:1px solid var(--line)}
dialog.hc-bin .bin-r:last-child{border-bottom:0}
dialog.hc-bin .bin-t{flex:1 1 260px;min-width:0;display:flex;flex-direction:column}
dialog.hc-bin .bin-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
dialog.hc-bin .bin-a,dialog.hc-bin .wd-acts{display:flex;flex-wrap:wrap;gap:4px 6px}
dialog.hc-bin .bin-l>.small{padding:10px}
@media (max-width:720px){
  .btn.sm{padding:8px 12px}
  .head{padding-top:var(--s5)}
  .panel{padding:var(--s4)}
  .hc-home .hc-home-t{display:none}
}
/* tables become cards on phones */
@media (max-width:720px){
  .table.cards,.table.cards tbody,.table.cards tr,.table.cards td{display:block;width:100%}
  .table.cards{border-radius:var(--r)}
  .table.cards thead{display:none}
  .table.cards tr{border-top:1px solid var(--line);padding:8px 0}
  .table.cards tbody tr:first-child{border-top:0}
  .table.cards td{border:0;padding:4px 12px}
  .table.cards td.num{text-align:left}
  .table.cards tr.hc-rk{background:var(--rkt);box-shadow:inset 4px 0 var(--k)}.table.cards tr.hc-rk>td{background:none;box-shadow:none}   /* a row in its kind's colour as a card (12 Nov 2026) */
  .table.cards td[data-l]::before{content:attr(data-l) ': ';color:var(--muted);font-size:12px;font-family:var(--font)}
  .table.cards .acts{justify-content:flex-start}
}
/* the Mobile view chosen on the device (7 Nov 2026, the owner): the same cards whatever the screen (html.hc-phone, chrome-base.js) */
html.hc-phone .table.cards,html.hc-phone .table.cards tbody,html.hc-phone .table.cards tr,html.hc-phone .table.cards td{display:block;width:100%}
html.hc-phone .table.cards{border-radius:var(--r)}
html.hc-phone .table.cards thead{display:none}
html.hc-phone .table.cards tr{border-top:1px solid var(--line);padding:8px 0}
html.hc-phone .table.cards tbody tr:first-child{border-top:0}
html.hc-phone .table.cards td{border:0;padding:4px 12px}
html.hc-phone .table.cards tr.hc-rk{background:var(--rkt);box-shadow:inset 4px 0 var(--k)}html.hc-phone .table.cards tr.hc-rk>td{background:none;box-shadow:none}
html.hc-phone .table.cards td.num{text-align:left}
html.hc-phone .table.cards td[data-l]::before{content:attr(data-l) ': ';color:var(--muted);font-size:12px;font-family:var(--font)}
html.hc-phone .table.cards .acts{justify-content:flex-start}

/* skeleton rows while a list loads: the page answers at once */
.skel{height:14px;margin:9px 0;border-radius:var(--r-sm);background:linear-gradient(90deg,#e6ebf1 25%,#f2f5f8 37%,#e6ebf1 63%);background-size:400% 100%;animation:skel 1.2s ease-in-out infinite}
.skel-h{height:22px;width:40%;margin-top:18px}.skel-list .skel:not(.skel-h){height:46px}.skel-row td{padding:4px 8px}
@keyframes skel{0%{background-position:100% 50%}100%{background-position:0 50%}}
@media (prefers-reduced-motion:reduce){.skel{animation:none}*{transition:none!important}}
@media print{header{background:none;color:#000;border:0}.hc-home{display:none}}

/* the particulars of a work in one line (2 Nov 2026, the owner: one record, shown on every page of the work; src/ui/particulars.js) */
.hc-parts{display:flex;flex-wrap:wrap;gap:3px 10px;align-items:center;font-size:12.5px;color:var(--ink-2);margin:6px 0 10px;padding:6px 10px;border:1px solid var(--line);background:#fff}
.hc-parts[hidden]{display:none}.hc-parts b{color:var(--ink)}.hc-parts .m{color:var(--muted)}.hc-parts a{font-weight:700}
.hc-parts button{font:inherit;font-size:12px;font-weight:700;border-radius:999px;padding:2px 10px;border:1px solid var(--blue);background:var(--blue-wash);color:#1557c0;cursor:pointer;margin-left:auto}
dialog.hc-pd{border:0;padding:0;margin:auto;inset:0;width:min(780px,96vw);box-shadow:0 12px 40px rgba(0,0,0,.25)}dialog.hc-pd:focus{outline:none}dialog.hc-pd::backdrop{background:rgba(15,25,35,.45)}
.hc-pd form{display:flex;flex-direction:column;gap:10px;padding:14px 16px}.hc-pd h2{font-size:17px;margin:0}
.hc-pd .hc-pd-body{max-height:68vh;overflow:auto}.hc-pd .hc-pd-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.hc-pd fieldset{border:1px solid var(--line);padding:6px 10px 8px;margin:0;display:flex;flex-wrap:wrap;gap:6px 10px}.hc-pd legend{font-weight:800;font-size:12.5px;padding:0 4px}
.hc-pd label{flex:1 1 140px;font-size:12px;gap:3px}.hc-pd input,.hc-pd select{font-size:13.5px;padding:5px 7px}
.hc-pd .prop{background:#fff8e6}.hc-pd .s{font-size:12px;color:var(--muted)}
.hc-pd .hc-pd-b{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:10px}
/* every distinct part its own colour (9 Nov 2026, the owner): a fieldset.hue carries --c (src/tools/work-particulars.js GROUP_LOOK) and its
   sign in a .hue-s; the legend is a pill in --c, labels in its dark shade, a filled entry (input.has) tinted, an empty one white */
fieldset.hue{--c:#546e7a;border:1px solid color-mix(in srgb,var(--c) 28%,#fff);border-left:5px solid var(--c);border-radius:12px;background:color-mix(in srgb,var(--c) 5%,#fff);box-shadow:0 2px 8px color-mix(in srgb,var(--c) 12%,transparent);padding:10px 12px 12px;margin:0;min-width:0;animation:hueIn .25s ease-out}
fieldset.hue>legend{display:inline-flex;align-items:center;gap:6px;background:var(--c);color:#fff;font-weight:800;font-size:12.5px;letter-spacing:.02em;padding:2px 12px 2px 8px;border-radius:999px;box-shadow:0 2px 6px color-mix(in srgb,var(--c) 35%,transparent)}
fieldset.hue>legend .sm2{color:#fff;opacity:.85}
/* the price adjustment part of the particulars (21 Nov 2026): the estimate's chips under the boxes, each box's word of the estimate */
.hc-pa-tools{flex-basis:100%;grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 2px;padding-top:8px;border-top:1px dashed color-mix(in srgb,var(--c,#1557c0) 30%,#fff)}
.hc-pa-note{font-size:12px;color:#5b6876}
.hc-pa-est{display:block;font-size:11.5px;font-weight:650;color:#b45309;margin-top:2px}
.hc-pa-est.same{color:#15803d}
fieldset.hue .hue-s{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#fff;font-size:11.5px;line-height:1}
fieldset.hue label{color:color-mix(in srgb,var(--c) 70%,#14202b);min-width:0}
fieldset.hue input,fieldset.hue select,fieldset.hue textarea{width:100%;box-sizing:border-box;min-width:0;max-width:100%;border:1px solid color-mix(in srgb,var(--c) 35%,#fff);border-radius:8px;background:#fff;color:var(--ink,#14202b)}
fieldset.hue input:focus,fieldset.hue select:focus,fieldset.hue textarea:focus{outline:none;border-color:var(--c);box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 22%,transparent)}
fieldset.hue input.has,fieldset.hue select.has,fieldset.hue textarea.has{background:color-mix(in srgb,var(--c) 10%,#fff);border-color:color-mix(in srgb,var(--c) 55%,#fff);font-weight:600}
fieldset.hue[disabled]{opacity:.75}fieldset.hue[disabled] input,fieldset.hue[disabled] select{background:color-mix(in srgb,var(--c) 6%,#f2f4f6)}
fieldset.hue .btn.ghost{background:color-mix(in srgb,var(--c) 12%,#fff);border-color:var(--c)}
@keyframes hueIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){fieldset.hue{animation:none}}

/* the shared chip (9 Nov 2026, the owner: "still boring button"): one designed look for every chip that does something, in its own colour --c.
   A soft gradient in the colour, a border in it (at least 3:1), the sign in a white circle, the name bold, the count a solid badge, a soft
   coloured shadow; lifts on hover; .on = filled; .alert = warm red-orange with a slow glow on the badge. First use: Books tool chips. */
.hc-chip{--c:#1557c0;font:inherit;font-size:12.5px;font-weight:650;line-height:1.4;display:inline-flex;align-items:center;gap:6px;padding:2px 4px 2px 3px;border:1px solid var(--c);border-radius:999px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 6%,#fff),color-mix(in srgb,var(--c) 16%,#fff));color:color-mix(in srgb,var(--c) 82%,#14202b);box-shadow:0 1px 2px color-mix(in srgb,var(--c) 18%,transparent),inset 0 1px 0 rgba(255,255,255,.8);cursor:pointer;white-space:nowrap;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.hc-chip .sg{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#fff;color:var(--c);font-size:11.5px;line-height:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 30%,#fff),0 1px 2px color-mix(in srgb,var(--c) 25%,transparent);flex:none;border:0;padding:0;margin:0;opacity:1}
.hc-chip b{font-weight:800;font-size:11px;min-width:12px;text-align:center;padding:1px 7px;border-radius:999px;background:var(--c);color:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15)}
.hc-chip:hover,.hc-chip:focus-visible{transform:translateY(-1px);background:linear-gradient(180deg,color-mix(in srgb,var(--c) 10%,#fff),color-mix(in srgb,var(--c) 24%,#fff));box-shadow:0 4px 10px color-mix(in srgb,var(--c) 30%,transparent);outline:none}
.hc-chip.on{background:linear-gradient(180deg,color-mix(in srgb,var(--c) 82%,#fff),var(--c));color:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--c) 40%,transparent)}
.hc-chip.on b{background:#fff;color:var(--c)}
/* the Time allowed's days / months chips beside its number box (14 Nov 2026): finger-sized, never squeezed */
/* a tag beside a date that Clause 10CC / 10C go by (Particulars of the work; 20 Nov 2026): it says, it does nothing */
.hc-patag{--c:#1565c0;display:inline-flex;align-items:center;gap:5px;align-self:flex-end;flex:0 1 auto;font-size:11.5px;font-weight:700;line-height:1.3;padding:3px 10px 3px 4px;margin:0 0 4px;border-radius:999px;border:1px solid color-mix(in srgb,var(--c) 45%,#fff);background:linear-gradient(180deg,color-mix(in srgb,var(--c) 6%,#fff),color-mix(in srgb,var(--c) 16%,#fff));color:color-mix(in srgb,var(--c) 80%,#14202b);box-shadow:0 1px 2px color-mix(in srgb,var(--c) 14%,transparent)}
.hc-patag i{font-style:normal;display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#fff;font-size:10px;box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 35%,#fff)}
.hc-units{display:inline-flex;gap:4px;flex:none}.hc-units .hc-chip{padding:7px 12px;font-size:13px}.hc-units .hc-chip:disabled{cursor:default;opacity:.75;transform:none}
/* units as an active part of the site (21 Nov 2026): the unit chips, the unit tag, the navy conversion note and the red unit flag are styled by src/ui/unit-chips.js itself (UNIT_CSS), so the bundled pages without this file have them too */
.hc-chip.alert{--c:#c2410c;background:linear-gradient(180deg,#fff7ed,#ffe1cc)}
.hc-chip.alert b{background:linear-gradient(180deg,#ea580c,#b3360f);animation:chipGlow 2.4s ease-in-out infinite}
.hc-chip.alert.on{background:linear-gradient(180deg,#ea580c,#b3360f)}
.hc-chip.alert.on b{background:#fff;color:#b3360f;animation:none}
/* the small signs on a Books tree row (10 Nov 2026, the owner): the same look as the tool chips above the tree, sign in a white circle, count in a filled pill, in the tool's colour --c */
.tsg{display:inline-flex;gap:4px;margin-left:auto;flex:none;font-size:11px;line-height:1.3}
.tsg i{--c:#1557c0;font-style:normal;font-weight:700;display:inline-flex;align-items:center;gap:3px;padding:1px 2px 1px 1px;border:1px solid color-mix(in srgb,var(--c) 55%,#fff);border-radius:999px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 6%,#fff),color-mix(in srgb,var(--c) 18%,#fff));color:var(--c);white-space:nowrap;box-shadow:0 1px 2px color-mix(in srgb,var(--c) 20%,transparent)}
.tsg i s{text-decoration:none;display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#fff;color:var(--c);font-size:9.5px;line-height:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 35%,#fff)}
.tsg i b{font-weight:800;font-size:10px;min-width:8px;text-align:center;padding:0 5px;border-radius:999px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 80%,#fff),var(--c));color:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15)}
.tsg i.alert{--c:#c2410c;background:linear-gradient(180deg,#fff7ed,#ffe1cc)}
.tsg i.alert b{background:linear-gradient(180deg,#ea580c,#b3360f)}
@keyframes chipGlow{0%,100%{box-shadow:0 0 0 0 rgba(234,88,12,.45)}50%{box-shadow:0 0 0 4px rgba(234,88,12,0)}}
@media (prefers-reduced-motion:reduce){.hc-chip{transition:none}.hc-chip:hover{transform:none}.hc-chip.alert b{animation:none}}
/* a tap shows at once (15 Nov 2026, the owner: "chips should immediately recognise the tap"): closed.js puts .hc-press on the chip under the
   finger at pointerdown; it presses in (scale, not transform, so a page's own transform rules cannot undo it) and deepens in its colour.
   No grey flash, no double-tap zoom wait; on a touch screen the chip's tap area reaches past its edges (::after) so a near miss still counts,
   while the chip keeps its small look. .hc-wait = tapped before the page part was ready (closed.js presses it again once it is). */
.hc-chip,a.card,.adm-tile,.hc-chipbar>a,.hc-chipbar>button,[data-chip]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.hc-chip,.adm-tile,[data-chip]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.hc-chip:active,.hc-chip.hc-press{scale:.95;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 18%,#fff),color-mix(in srgb,var(--c) 34%,#fff));box-shadow:inset 0 1px 3px color-mix(in srgb,var(--c) 40%,transparent);transition:scale .05s ease,background .05s ease,box-shadow .05s ease}
.hc-chip.on:active,.hc-chip.on.hc-press{background:var(--c);filter:brightness(.9)}
a.card:active,a.card.hc-press,.adm-tile:active,.adm-tile.hc-press,.hc-chipbar>a.hc-press,.hc-chipbar>button.hc-press,[data-chip].hc-press{scale:.96;filter:brightness(.93) saturate(1.15);transition:scale .05s ease,filter .05s ease}
@media (pointer:coarse){.hc-chip{position:relative}.hc-chip::after{content:"";position:absolute;inset:-7px -3px;border-radius:999px}}
.hc-wait{cursor:progress!important;animation:hcTapWait 1s ease-in-out infinite}
.hc-wait .sg{color:transparent!important;background:#fff;border:2.5px solid color-mix(in srgb,var(--c,#1557c0) 22%,#fff);border-top-color:var(--c,#1557c0);box-sizing:border-box;animation:hcTapSpin .8s linear infinite}
.hc-wait:not(:has(.sg))::before{content:"";background:none!important;display:inline-block;vertical-align:-2px;width:12px;height:12px;margin-right:6px;box-sizing:border-box;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:hcTapSpin .7s linear infinite}
.hc-waitfail{--c:#c2410c;box-shadow:0 0 0 3px rgba(194,65,12,.35)!important}
@keyframes hcTapWait{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--c,#1557c0) 40%,transparent)}50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--c,#1557c0) 0%,transparent)}}
@keyframes hcTapSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.hc-chip:active,.hc-chip.hc-press,a.card:active,a.card.hc-press,.adm-tile:active,.adm-tile.hc-press,.hc-chipbar>a.hc-press,.hc-chipbar>button.hc-press,[data-chip].hc-press{scale:none}.hc-wait{animation:none}}
/* LOCK-CSS — the lock of an item (18 Nov 2026; src/core/item-lock.js LOCK_LOOK). One chip everywhere: open (grey) or locked in the colour
   of its kind (.on; me teal, ts blue, agr navy, eis green), the sign in a white circle. The same rules stand in field-ui.js and in the
   bundles' own stylesheets (they do not load site.css). Change them together (dev-tests/soqlock1.mjs compares them). */
.hc-lock{--c:#64748b;font:inherit;font-size:12px;font-weight:700;line-height:1.3;display:inline-flex;align-items:center;gap:5px;min-height:26px;margin:0;padding:2px 10px 2px 3px;border:1px solid var(--c);border-radius:999px;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 8%,#fff),color-mix(in srgb,var(--c) 20%,#fff));color:color-mix(in srgb,var(--c) 78%,#14202b);cursor:pointer;white-space:nowrap;box-shadow:0 1px 3px color-mix(in srgb,var(--c) 28%,transparent);transition:transform .12s,box-shadow .15s;-webkit-tap-highlight-color:transparent;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.hc-lock .sg{display:inline-grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;background:#fff;font-size:11px;line-height:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 35%,#fff),0 1px 2px color-mix(in srgb,var(--c) 25%,transparent)}
.hc-lock.me{--c:#0f766e}.hc-lock.ts{--c:#1d4ed8}.hc-lock.agr{--c:#0f2a44}.hc-lock.eis{--c:#15803d}
.hc-lock.on{background:linear-gradient(180deg,color-mix(in srgb,var(--c) 82%,#fff),var(--c));color:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--c) 40%,transparent)}
.hc-lock:hover,.hc-lock:focus-visible{transform:translateY(-1px);box-shadow:0 4px 10px color-mix(in srgb,var(--c) 34%,transparent)}
.hc-lock:focus-visible{outline:2px solid color-mix(in srgb,var(--c) 55%,#fff);outline-offset:2px}
.hc-lock:active{transform:scale(.96)}
.hc-lock.ic{padding:2px 3px;gap:0}
.hc-lock.busy{cursor:progress;pointer-events:none}
.hc-lock.busy .sg{font-size:0;background:#fff;border:2px solid color-mix(in srgb,var(--c) 28%,#fff);border-top-color:var(--c);box-shadow:none;animation:hcLockSpin .7s linear infinite}
@keyframes hcLockSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.hc-lock{transition:none}.hc-lock:hover,.hc-lock:focus-visible,.hc-lock:active{transform:none}.hc-lock.busy .sg{animation:none}}
/* LOCK-CSS-END */
/* the shared designed pop-up (12 Nov 2026, the owner: "pop up should also be very beautiful"): the work pop-up's look (index.html dialog.hc-wk)
   for any page. dialog.hc-pop > .hp-h (navy band, orange glow: title b, small .hp-s, pill buttons) · .hp-b (scrolls) · .hp-f (light footer).
   Inside: .hp-card (a tinted card in its colour --c, .hp-lb small-caps label with its sign .sg), .hp-chips (a row of .hc-chip). Top level, never in @media. */
dialog.hc-pop{margin:auto;inset:0;width:min(860px,94vw);max-height:90vh;border:0;border-radius:18px;padding:0;overflow:hidden;color:#0f2a44;background:#fff;box-shadow:0 24px 60px rgba(15,42,68,.35),0 2px 6px rgba(15,42,68,.12)}
dialog.hc-pop[open]{display:flex;flex-direction:column;animation:hcWkIn .2s ease-out}
dialog.hc-pop::backdrop{background:rgba(15,42,68,.5);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
@keyframes hcWkIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){dialog.hc-pop[open]{animation:none}}
.hc-pop .hp-h{flex:none;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:14px 14px 14px 18px;color:#fff;background-color:#0f2a44;background-image:radial-gradient(circle at 0 0,rgba(232,137,12,.45) 0,transparent 55%),linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:auto,22px 22px,22px 22px;border-bottom:3px solid #e8890c}
.hc-pop .hp-h>b{flex:1 1 220px;min-width:0;font-size:17px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.hc-pop .hp-h .hp-s{flex-basis:100%;order:9;font-size:12px;font-weight:600;color:#dbe6f2}
.hc-pop .hp-h button{font:inherit;font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:999px;cursor:pointer;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.6);box-shadow:none}
.hc-pop .hp-h button:hover,.hc-pop .hp-h button:focus-visible{background:#fff;color:#0f2a44;outline:none}
.hc-pop .hp-b{flex:1 1 auto;min-height:0;overflow:auto;padding:12px 16px 14px;font-size:13.5px;display:flex;flex-direction:column;gap:10px}
.hc-pop .hp-f{flex:none;display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 16px;background:#f4f7fb;border-top:1px solid #e1e8f0}
.hc-pop .hp-f>span{flex:1 1 200px;font-size:12px;color:#5b6b7a}
/* Home → Start from a Sample (22 Nov 2026, src/ui/sample-pick.js): the sample works, one line each (Name of Work bold, Sub Head under it) */
dialog.hc-sp{width:min(640px,94vw)}
.hc-sp .sp-q{font:inherit;font-size:14px;padding:9px 12px;border:1px solid var(--btn-line,#7a8b9c);border-radius:999px;background:#fff;width:100%;box-sizing:border-box}
.hc-sp .sp-list{display:flex;flex-direction:column;gap:6px;max-height:56vh;overflow:auto;padding:2px}
.hc-sp .sp-row{--c:#1e7f4f;display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%;text-align:left;font:inherit;cursor:pointer;padding:8px 12px 8px 8px;border-radius:12px;border:1px solid color-mix(in srgb,var(--c) 40%,#fff);border-left:4px solid var(--c);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--c) 7%,#fff));color:#0f2a44;box-shadow:0 1px 3px rgba(15,42,68,.08);transition:transform .12s,box-shadow .12s}
.hc-sp .sp-row:hover,.hc-sp .sp-row:focus-visible{transform:translateY(-1px);box-shadow:0 6px 16px color-mix(in srgb,var(--c) 22%,transparent);outline:none}
.hc-sp .sp-row .sg{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-style:normal;font-weight:800;color:#fff;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 70%,#fff),var(--c));box-shadow:0 1px 3px color-mix(in srgb,var(--c) 40%,transparent)}
.hc-sp .sp-row .t{flex:1 1 calc(100% - 40px);min-width:0;display:flex;flex-direction:column}
.hc-sp .sp-row .t b{font-size:14px;font-weight:750;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.hc-sp .sp-row .t small{font-size:12px;color:#5b6b7a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-sp .sp-row .pt{flex:none;margin-left:38px;font-size:11px;font-weight:700;letter-spacing:.03em;padding:2px 8px;border-radius:999px;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff)}
.hc-sp .sp-none{padding:18px;text-align:center;color:#5b6b7a;border:1px dashed #c5ced8;border-radius:12px}
@media (min-width:760px){.hc-sp .sp-row{flex-wrap:nowrap}.hc-sp .sp-row .t{flex:1 1 0}.hc-sp .sp-row .pt{margin-left:0}}
@media (prefers-reduced-motion:reduce){.hc-sp .sp-row{transition:none}.hc-sp .sp-row:hover{transform:none}}
/* Works → Place of the work (28 Nov 2026, src/ui/work-place.js): the city box and its three purposes (labour, cost index, Schedule of Rates),
   each card in its own colour */
dialog.hc-wkp{width:min(640px,94vw)}
.hc-wkp .hp-card input{font:inherit;font-size:14px;padding:8px 12px;border:1px solid var(--btn-line,#7a8b9c);border-radius:999px;background:#fff;flex:1 1 220px;min-width:0;box-sizing:border-box}
.hc-wkp .hp-card .hc-chip small{font-size:11px;font-weight:600;opacity:.85;margin-left:4px}
/* the Training tour (22 Nov 2026, src/ui/training): the Home pop-up (.hc-trpop) and the closing window (.hc-trend); the playing card
   styles itself (runner.js). Top level, never in @media */
dialog.hc-trpop,dialog.hc-trend{width:min(560px,94vw)}
.hc-trpop .trp-w{--c:#1e6b43;display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:14px;border:1px solid color-mix(in srgb,var(--c) 40%,#fff);background:linear-gradient(180deg,color-mix(in srgb,var(--c) 6%,#fff),color-mix(in srgb,var(--c) 14%,#fff));box-shadow:0 4px 14px color-mix(in srgb,var(--c) 14%,transparent)}
.hc-trpop .trp-n{font-size:15px;font-weight:800;line-height:1.3}
.hc-trpop .trp-s{font-size:12px;color:#5b6b7a}
.hc-trpop .hp-chips,.hc-trend .hp-chips{display:flex;flex-wrap:wrap;gap:6px}
.hc-trpop .trp-note,.hc-trend .tre-w{margin:0;font-size:12.5px;line-height:1.45;color:#33475b;padding:8px 12px;border-radius:12px;background:#f1f5fa;border-left:4px solid #e8890c}
.hc-trend .tre-sk{font-size:12.5px;color:#5b6b7a}.hc-trend .tre-sk summary{cursor:pointer;font-weight:700}.hc-trend .tre-sk ul{margin:6px 0 0;padding-left:18px;max-height:30vh;overflow:auto}
/* a step named, not pressed: a flat tag in its colour (it says, it does nothing: never the button look of .hc-chip) */
.hc-trtag{--c:#1557c0;display:inline-flex;align-items:center;gap:5px;padding:2px 10px 2px 3px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.4;color:var(--c);background:color-mix(in srgb,var(--c) 10%,#fff)}
.hc-trtag i{font-style:normal;display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fff;font-size:10px}
.hc-trtag.done i{background:var(--c);color:#fff}
.hc-trend .hp-f .btn.danger{background:#fff1f0;border-color:#c2410c;color:#9b1c1c}
.hc-pop .hp-f .btn{border-radius:999px}
.hc-pop .hp-chips{display:flex;flex-wrap:wrap;gap:6px}
.hc-pop .hp-card{--c:#546e7a;border:1px solid color-mix(in srgb,var(--c) 26%,#fff);border-left:5px solid var(--c);border-radius:12px;background:color-mix(in srgb,var(--c) 5%,#fff);box-shadow:0 2px 8px color-mix(in srgb,var(--c) 12%,transparent);padding:8px 10px 10px}
.hc-pop .hp-lb{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:color-mix(in srgb,var(--c) 85%,#14202b);margin:0 0 6px}
.hc-pop .hp-lb .sg{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--c);color:#fff;font-size:12px;letter-spacing:0;box-shadow:0 1px 3px color-mix(in srgb,var(--c) 40%,transparent)}
.hc-pop .hp-lb em{font-style:normal;margin-left:auto;font-size:11px;padding:1px 8px;border-radius:999px;background:var(--c);color:#fff;letter-spacing:0}
.hc-pop .hp-pill{display:inline-block;font-size:11.5px;font-weight:650;padding:1px 9px;border-radius:999px;background:#eef3f8;color:#334a61;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.hc-pop .hp-pill.need{background:#fde8e8;color:#b00020}
/* the ⓘ Decimals pop-up (19 Nov 2026, src/ui/rounding-info.js): narrower, its rules as coloured cards; two columns on a wider screen */
dialog.hc-pop.hc-rules{width:min(620px,94vw)}
.hc-rules .hp-b{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-content:start}
.hc-rules .hp-card{min-width:0;overflow-wrap:anywhere}
.hc-rules .hp-card{padding:7px 10px}
.hc-rules .hp-card .hp-lb{margin:0 0 3px}
.hc-rules .hp-card>div:last-child{font-size:13px;line-height:1.45;color:#22313f}
@media (min-width:760px){.hc-rules .hp-b{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hc-pop details>summary{cursor:pointer;color:#47566a;font-weight:650;margin:4px 0}
/* a .hc-modal box with the pop-up look (13 Nov 2026, the Account window): windows opened over it stay above it */
.hc-dlg.hc-pop{padding:0;gap:0;border-top:0;border-radius:18px;overflow:hidden;max-height:calc(100vh - 48px);display:flex;flex-direction:column;box-shadow:0 24px 60px rgba(15,42,68,.35),0 2px 6px rgba(15,42,68,.12);animation:hcWkIn .2s ease-out}
@media (prefers-reduced-motion:reduce){.hc-dlg.hc-pop{animation:none}}
.hc-acct{width:min(540px,100%)}
/* Copy as a new work (22 Nov 2026, src/ui/windows-generators.js copyWorkDialog): always the complete work; what comes shows as read-only chips */
dialog.hc-pop.hc-copyw{width:min(640px,94vw)}
.hc-copyw>form{display:contents}
.hc-copyw .hp-card{margin:0;min-width:0}
.hc-copyw legend.hp-lb{float:left;width:100%;padding:0}
.hc-copyw legend.hp-lb+*{clear:both}
.hc-copyw .hc-cw-has .hc-chip{cursor:default;pointer-events:none}
.hc-copyw .hc-cw-sub{font-size:12px;color:#5b6b7a;margin-top:6px;line-height:1.45}
.hc-copyw label.hc-cw-p{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:4px 0;font-size:13.5px;font-weight:500;color:#22313f}
.hc-copyw label.hc-cw-p>input[type=radio]{flex:none;margin:0}
.hc-copyw label.hc-cw-p>span{flex:1 1 0;min-width:0}
.hc-copyw .hp-f>span:empty{display:none}
.hc-copyw .hp-f .hc-cancel{margin-left:auto}
.hc-copyw .hc-cw-p input[type=date]{width:auto;flex:0 1 170px;font:inherit;padding:3px 6px;border-radius:8px;border:1px solid color-mix(in srgb,var(--c) 40%,#fff)}
.hc-copyw input[name=name]{width:100%;box-sizing:border-box;padding:8px 10px;font:inherit;font-size:15px;font-weight:650;color:#0f2a44;border:1px solid color-mix(in srgb,var(--c) 45%,#fff);border-radius:10px;background:color-mix(in srgb,var(--c) 7%,#fff)}
.hc-copyw input[name=name]:focus{outline:2px solid color-mix(in srgb,var(--c) 55%,#fff);outline-offset:1px}
/* cement, steel and HSD by city and zone (20 Nov 2026, src/ui/mat-settings.js): the Where chips, four one-line rows in their colours, a detail with Previous / Next */
dialog.hc-pop.hc-mat{width:min(760px,94vw)}
.hc-mat .mt-r{--c:#546e7a;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;width:100%;text-align:left;font:inherit;cursor:pointer;margin:0 0 5px;padding:7px 10px;border-radius:11px;color:#0f2a44;background:#fff;border:1px solid color-mix(in srgb,var(--c) 34%,#fff);border-left:5px solid var(--c);box-shadow:0 1px 4px color-mix(in srgb,var(--c) 14%,transparent)}
.hc-mat .mt-r:hover,.hc-mat .mt-r:focus-visible{background:color-mix(in srgb,var(--c) 8%,#fff);box-shadow:0 3px 10px color-mix(in srgb,var(--c) 22%,transparent);outline:none}
.hc-mat .mt-r.mine{background:color-mix(in srgb,var(--c) 7%,#fff)}
.hc-mat .mt-r .sg,.mt-tag .sg{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:var(--c);color:#fff;font-size:12.5px;box-shadow:0 1px 3px color-mix(in srgb,var(--c) 40%,transparent)}
.hc-mat .mt-r .n{font-weight:800;flex:0 0 150px}
.hc-mat .mt-r .v{font-weight:750;color:var(--c);flex:1 1 160px}
.hc-mat .mt-r .w{font-size:12px;color:#5b6b7a;flex:0 1 auto;margin-left:auto}
.hc-mat .mt-city{display:flex;flex-direction:column;gap:2px;font-size:12px;font-weight:650;color:#47566a;margin-top:8px;max-width:320px}
.hc-mat .mt-note{font-size:12px;color:#5b6b7a;margin-top:4px}
.hc-mat .mt-nav{display:flex;flex-wrap:wrap;gap:6px}
.hc-mat .mt-now{margin:0 0 6px}
.hc-mat .mt-ref{font-size:12px;color:#5b6b7a}
.hc-mat .mt-scroll{max-height:200px;overflow:auto;border-radius:9px;border:1px solid #e1e8f0;background:#fff}
.hc-mat .mt-t{width:100%;border-collapse:collapse;font-size:13px}
.hc-mat .mt-t th{position:sticky;top:0;background:#f4f7fb;text-align:left;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#47566a;padding:4px 8px}
.hc-mat .mt-t td{padding:3px 8px;border-top:1px solid #eef3f8}
.hc-mat .mt-t .n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.hc-mat .mt-t small{display:block;font-size:11.5px;color:#5b6b7a;line-height:1.3}
.hc-mat .mt-t th.n{text-align:right}
.hc-mat .mt-dsr{font-size:12px;color:#5b6b7a}
.hc-mat .mt-k{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:4px 0;border-top:1px solid #eef3f8}
.hc-mat .mt-k:first-of-type{border-top:0}
.hc-mat .mt-k .btn{margin-left:auto}
.hc-mat .mt-h{font-size:12px;color:#47566a;padding:2px 0}
.hc-mat .mt-f{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-top:8px}
.hc-mat .mt-f label{display:flex;flex-direction:column;gap:2px;font-size:12px;font-weight:650;color:#47566a;flex:0 1 150px}
.hc-mat .mt-f label.wide{flex:1 1 240px}
.hc-mat .hp-f .mt-on{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:650;color:#47566a}
/* the settings in force, as tags (words that do nothing: never a button's look) */
.mt-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mt-tag{--c:#546e7a;display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;padding:3px 10px 3px 3px;border-radius:12px;color:#0f2a44;background:color-mix(in srgb,var(--c) 9%,#fff)}
.mt-tag b{color:var(--c)}
.mt-tag small{font-size:11px;color:#5b6b7a}
/* the band of these settings in the "Justified rates by date" pop-up (src/ui/windows-rates.js) */
.hc-jmat{--c:#b45309;margin:6px 0 8px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--c) 26%,#fff);border-left:5px solid var(--c);border-radius:12px;background:color-mix(in srgb,var(--c) 5%,#fff);box-shadow:0 2px 8px color-mix(in srgb,var(--c) 12%,transparent)}
.hc-jmat-t{font-size:11.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:color-mix(in srgb,var(--c) 85%,#14202b);margin:0 0 6px}
.hc-acct .hp-b{background:#f7f9fc}
.hc-acct-row{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;min-width:0}
.hc-acct .hp-card>*+*{margin-top:8px}
.hc-acct label.hc-acct-row{font-size:13px;font-weight:650}
.hc-acct label.hc-acct-row{display:inline-flex;flex-direction:row;margin:0}
.hc-acct select{font:inherit;padding:4px 8px;border-radius:8px;width:auto;min-width:90px;max-width:100%;margin:0}
.hc-acct [data-view-toggle]{padding:4px 12px}
.hc-acct a.hc-chip{text-decoration:none}
.hc-acct .hc-an-now{font-size:14px;overflow-wrap:anywhere}
.hc-acct .hc-an-g{font-size:14px;overflow-wrap:anywhere}
.hc-acct .hp-chips .hc-chip{padding:4px 12px 4px 4px;font-size:13px}
.hc-chip b.hc-acct-vt{background:none;color:inherit;padding:0;font-size:inherit;font-weight:inherit;box-shadow:none;min-width:0}
.hc-chip.on b.hc-acct-vt{color:#fff}
html.hc-phone .hc-dlg.hc-pop{max-height:none;border-radius:0}
/* dropdowns (10 Nov 2026, the owner: "can't dropdowns also become beautiful and of different colours kind of chip"): the closed box
   is tinted in its colour (--sc, else the part's --c, else blue) with a white chevron in a coloured circle on the right; a press opens
   src/ui/chip-select.js's window of chips (a sheet on a phone, a panel under the box on a computer). The chevron and tint are layers
   over the page's own background colour, so a page's tint (fieldset.hue .has) still shows. [multiple] and [size] lists keep a list. */
select:not([multiple]):not([size]:not([size="1"])){-webkit-appearance:none;appearance:none;cursor:pointer;font-weight:600;padding-right:34px!important;border-color:color-mix(in srgb,var(--sc,var(--c,#1557c0)) 60%,#7a8b9c);border-radius:10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M6 8.5l4 4 4-4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),radial-gradient(circle closest-side,var(--sc,var(--c,#1557c0)) 92%,transparent 100%),linear-gradient(180deg,rgba(255,255,255,.7),color-mix(in srgb,var(--sc,var(--c,#1557c0)) 9%,transparent))!important;background-repeat:no-repeat!important;background-position:right 7px center,right 7px center,0 0!important;background-size:20px 20px,20px 20px,100% 100%!important;box-shadow:0 1px 2px color-mix(in srgb,var(--sc,var(--c,#1557c0)) 18%,transparent),inset 0 1px 0 rgba(255,255,255,.8);transition:border-color .12s,box-shadow .12s}
select:not([multiple]):not([size]:not([size="1"])):hover{border-color:var(--sc,var(--c,#1557c0));box-shadow:0 3px 9px color-mix(in srgb,var(--sc,var(--c,#1557c0)) 25%,transparent)}
select:not([multiple]):not([size]:not([size="1"])):focus{border-color:var(--sc,var(--c,#1557c0));box-shadow:0 0 0 3px color-mix(in srgb,var(--sc,var(--c,#1557c0)) 22%,transparent)}
select:not([multiple]):not([size]:not([size="1"])):disabled{cursor:not-allowed;opacity:.6;filter:grayscale(.6)}
select[multiple],select[size]:not([size="1"]){border-radius:10px;border-color:color-mix(in srgb,var(--sc,var(--c,#1557c0)) 45%,#7a8b9c);background-color:color-mix(in srgb,var(--sc,var(--c,#1557c0)) 4%,#fff)}
select option:checked{font-weight:700}
/* the window of chips (src/ui/chip-select.js) */
dialog.hc-csel{--sc:#1557c0;position:fixed;margin:0;inset:auto;padding:0;border:1px solid color-mix(in srgb,var(--sc) 35%,#fff);border-radius:16px;background:#fff;color:#0f2a44;box-shadow:0 18px 44px rgba(15,42,68,.28),0 2px 6px rgba(15,42,68,.12);overflow:hidden;display:none;flex-direction:column;max-width:calc(100vw - 16px);animation:cselIn .16s ease-out}
dialog.hc-csel[open]{display:flex}
dialog.hc-csel.up{animation-name:cselUp}
dialog.hc-csel::backdrop{background:rgba(15,42,68,.12)}
dialog.hc-csel.ph{inset:auto 0 0 0;width:100%;max-width:100%;max-height:78vh;max-height:78dvh;border-radius:20px 20px 0 0;border-width:1px 0 0;padding-bottom:env(safe-area-inset-bottom,0);animation-name:cselSheet}
dialog.hc-csel.ph.kb{bottom:auto;left:6px;right:6px;width:auto;border-radius:16px;border-width:1px;padding-bottom:0}
dialog.hc-csel.ph::backdrop{background:rgba(15,42,68,.45);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.hc-csel .cs-h{display:flex;align-items:center;gap:8px;padding:10px 12px 9px 14px;color:#fff;background-color:#0f2a44;background-image:radial-gradient(circle at 0 0,color-mix(in srgb,var(--sc) 70%,transparent) 0,transparent 60%);border-bottom:3px solid var(--sc);flex:none}
.hc-csel .cs-sg{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;color:var(--sc);font-size:12px;font-weight:800;flex:none}
.hc-csel .cs-t{flex:1;min-width:0;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-csel .cs-n{font-size:11px;color:#c8d6e5;white-space:nowrap}
.hc-csel .cs-x{font:inherit;font-size:12px;font-weight:700;padding:4px 11px;border-radius:999px;cursor:pointer;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.6);flex:none}
.hc-csel .cs-x:hover,.hc-csel .cs-x:focus-visible{background:#fff;color:#0f2a44;outline:none}
.hc-csel .cs-q{margin:10px 12px 0;width:auto;flex:none;border-radius:999px;padding:7px 14px;font-size:14px;border:1px solid color-mix(in srgb,var(--sc) 45%,#c5ced8);background:color-mix(in srgb,var(--sc) 4%,#fff)}
dialog.hc-csel.ph .cs-q{font-size:16px}   /* below 16px an iPhone zooms the whole page when the box is tapped */
.hc-csel .cs-b{display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;padding:12px;overflow:auto;overscroll-behavior:contain;min-height:0;outline:none;background:linear-gradient(180deg,color-mix(in srgb,var(--sc) 4%,#fff),#fff 80px)}
.hc-csel .cs-g{flex:1 0 100%;display:flex;align-items:center;gap:6px;margin:4px 0 -2px;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--c)}
.hc-csel .cs-g::after{content:"";flex:1;height:1px;background:color-mix(in srgb,var(--c) 30%,#fff)}
.hc-csel .cs-g .sg{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--c);color:#fff;font-size:10px;letter-spacing:0}
.hc-csel .cs-o{white-space:normal;text-align:left;max-width:100%;font-size:13.5px;padding:5px 12px 5px 5px;gap:8px;line-height:1.3}
.hc-csel .cs-o .sg{width:24px;height:24px;font-size:12.5px;font-weight:800}
.hc-csel .cs-o .cs-l{min-width:0;overflow-wrap:anywhere}
.hc-csel .cs-o .cs-ok{font-weight:800;margin-left:2px}
.hc-csel .cs-o:disabled{opacity:.45;cursor:not-allowed;transform:none}
.hc-csel.ph .cs-o{font-size:15px;padding:7px 14px 7px 6px}
.hc-csel.ph .cs-o .sg{width:28px;height:28px;font-size:14px}
.hc-csel .cs-none{margin:0;color:#5b6b7a;font-size:13px}
@keyframes cselIn{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
@keyframes cselUp{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
@keyframes cselSheet{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){dialog.hc-csel{animation:none}}

/* zones (3 Nov 2026, the owner: "all parts of a page functionally different should be coloured different, colour should also speak which is
   part of which"): a part of a page is a .zone in its family colour (z-doc amber documents/tools, z-book blue books & rules, z-team navy team &
   works, z-test green trying / samples, z-rule purple conditions, z-admin grey Admin and history) — a band on the left, a pale wash and a small
   name tag. A zone inside a zone keeps its own colour, is framed in its parent's and its tag carries the parent's dot. First use: nit-masters. */
.zone{--zc:var(--muted);--zp:var(--zc);position:relative;border-left:4px solid var(--zc);background:color-mix(in srgb,var(--zc) 4%,#fff);padding:8px 10px 10px;margin:10px 0;border-radius:0 var(--r-sm) var(--r-sm) 0}
.zone .zone{border:1px solid color-mix(in srgb,var(--zp) 30%,#fff);border-left:4px solid var(--zc);background:color-mix(in srgb,var(--zc) 7%,#fff);margin:6px 0}
.zone-tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;line-height:1.5;color:#fff;background:var(--zc);padding:0 9px;border-radius:var(--r-pill);margin:0 0 4px}
.zone .zone>.zone-tag::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--zp);box-shadow:0 0 0 1.5px #fff}
.zone-bar{background:color-mix(in srgb,var(--zc) 9%,#fff);border-top:1px solid color-mix(in srgb,var(--zc) 25%,#fff);margin:8px -10px -10px;padding:6px 10px}
.z-doc{--zc:var(--accent-dark)}.z-book{--zc:var(--blue)}.z-team{--zc:var(--navy-3)}.z-test{--zc:var(--ok)}.z-rule{--zc:#6b4fa0}.z-admin{--zc:var(--muted)}
.z-doc .zone{--zp:var(--accent-dark)}.z-book .zone{--zp:var(--blue)}.z-team .zone{--zp:var(--navy-3)}.z-test .zone{--zp:var(--ok)}.z-rule .zone{--zp:#6b4fa0}.z-admin .zone{--zp:var(--muted)}

/* buttons side by side are each a different colour (10 Nov 2026, the owner: "every button can be different colour from adjacent button"):
   in a row of buttons the secondary ones take --bc in turn (blue, teal, violet, amber, green, rose; every border at least 3:1 on white),
   a tinted fill, the border in the colour. The main / primary button, Delete (.danger), tabs, chips (.hc-chip) and an .on keep their own look.
   A button marked .b-red / .b-green keeps that colour wherever it stands. */
:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button:not([class])):not(.main,.primary,.danger,.on,.hc-chip,.tab,[role=tab],:disabled){--bc:#1557c0;background:linear-gradient(180deg,color-mix(in srgb,var(--bc) 5%,#fff),color-mix(in srgb,var(--bc) 15%,#fff));border:1px solid var(--bc);border-radius:9px;color:color-mix(in srgb,var(--bc) 78%,#14202b);font-weight:650;box-shadow:0 1px 2px color-mix(in srgb,var(--bc) 20%,transparent),inset 0 1px 0 rgba(255,255,255,.85);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button:not([class])):not(.main,.primary,.danger,.on,.hc-chip,.tab,[role=tab],:disabled):nth-child(6n+2){--bc:#0f766e}
:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button:not([class])):not(.main,.primary,.danger,.on,.hc-chip,.tab,[role=tab],:disabled):nth-child(6n+3){--bc:#6b4fa0}
:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button:not([class])):not(.main,.primary,.danger,.on,.hc-chip,.tab,[role=tab],:disabled):nth-child(6n+4){--bc:#b45309}
:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button:not([class])):not(.main,.primary,.danger,.on,.hc-chip,.tab,[role=tab],:disabled):nth-child(6n+5){--bc:#1e7f4f}
:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button:not([class])):not(.main,.primary,.danger,.on,.hc-chip,.tab,[role=tab],:disabled):nth-child(6n){--bc:#be185d}
:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button:not([class])):not(.main,.primary,.danger,.on,.hc-chip,.tab,[role=tab],:disabled):is(:hover,:focus-visible){background:linear-gradient(180deg,color-mix(in srgb,var(--bc) 10%,#fff),color-mix(in srgb,var(--bc) 26%,#fff));border-color:var(--bc);color:color-mix(in srgb,var(--bc) 88%,#14202b);transform:translateY(-1px);box-shadow:0 4px 10px color-mix(in srgb,var(--bc) 28%,transparent);outline:none}
@media (prefers-reduced-motion:reduce){:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button){transition:none}:is(.acts,.hc-chipbar,.row,.zone-bar,.btns,.bar,.tools,.hc-acts)>:is(.btn.ghost,button.lnk,.btnx,button):hover{transform:none}}
:is(.btn.ghost,button.lnk,.btnx,button).b-red:not(:disabled){--bc:#b42318!important}:is(.btn.ghost,button.lnk,.btnx,button).b-green:not(:disabled){--bc:#1e7f4f!important}

/* Share and Delete on a work, and the people picker (moved from index.html, 7 Nov 2026: the dialogs live in src/ui/windows-records.js and open on the Works page too) */
dialog.hc-wshr{margin:auto;inset:0;border:1px solid var(--line);border-radius:10px;padding:14px 16px;max-width:min(520px,94vw);width:100%}
dialog.hc-wshr h3{margin:0 0 6px;font-size:16px}
dialog.hc-wshr .ws-row{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}
dialog.hc-wshr .ws-row b{flex:1 1 100%;font-size:14px}
dialog.hc-wshr .rolesel{width:auto;padding:4px 6px;font-size:13px}
dialog.hc-wshr .ws-parts{display:flex;flex-wrap:wrap;gap:4px 10px;flex:1 1 100%}
dialog.hc-wshr .ws-p{font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
dialog.hc-wshr .shareform{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
dialog.hc-wshr .ws-say{color:var(--bad,#b00020);margin:8px 0}
dialog.hc-wshr .ws-say:empty{display:none}
dialog.hc-wshr .wd-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
dialog.hc-wdel{margin:auto;inset:0;border:1px solid var(--line);border-radius:10px;padding:14px 16px;max-width:min(440px,94vw);width:100%}
dialog.hc-wdel h3{margin:0 0 8px;font-size:16px}
dialog.hc-wdel .wd-r,dialog.hc-wdel .wd-p{display:block;padding:4px 0;font-size:14px;cursor:pointer}
dialog.hc-wdel .wd-parts{padding-left:22px}
dialog.hc-wdel .wd-parts[hidden]{display:none}
dialog.hc-wdel .wd-say{margin:8px 0 10px}
dialog.hc-wdel .wd-acts{display:flex;gap:8px;flex-wrap:wrap}
dialog.hc-wdel .wd-go:disabled{opacity:.5}
.picker{position:relative;flex:1 1 300px;min-width:0}
.picker input{width:100%;padding:6px 9px;font-size:14px}
.picker .lnkfu{background:none;border:0;padding:3px 0 0;font:inherit;font-size:12px;font-weight:700;color:var(--red);cursor:pointer;text-decoration:underline}
.picklist>.small:first-child{font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:11px}
.picklist{display:flex;flex-direction:column;border:1px solid var(--line);border-top:0;background:#fff;max-height:280px;overflow:auto}
.picklist:empty{display:none}
.pick{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;font:inherit;font-size:14px;padding:8px 10px;border:0;border-top:1px solid var(--line);background:#fff;cursor:pointer;color:var(--ink)}
.pick:first-child{border-top:0}
.pick:hover,.pick:focus{background:var(--green-wash);outline:none}
.pick span{font-size:12px;color:var(--muted)}
.picklist .small{padding:8px 10px}

/* ── The phone kit (9 Nov 2026, the owner: "laptop not required"): what every phone page shares. All at the top level (never only inside
   a @media block); the phone layout is html.hc-phone (the device's Mobile view, chrome-base.js), not a screen width.
   src/ui/phone-kit.js opens the sheets and reads the swipes; src/ui/app-nav.js draws the tab bar. Test: dev-tests/phonekit0.mjs. */
:root{--tap:48px;--sheet-r:22px;--ease:cubic-bezier(.22,.9,.3,1);--glow:radial-gradient(circle at 0 0,rgba(232,137,12,.45) 0,transparent 55%);
  --k-doq:#0b7285;--k-est:#1f4fb8;--k-nit:#a35a00;--k-jus:#6b2fd0;--k-exe:#1e6b43;--k-dev:#b0305c;--k-step:#1f4a73}
/* pages glide into each other (browsers without it simply open the page) */
@view-transition{navigation:auto}
::view-transition-old(root){animation:hcVtOut .18s ease both}
::view-transition-new(root){animation:hcVtIn .26s var(--ease) both}
@keyframes hcVtOut{to{opacity:0;transform:translateY(-6px)}}
@keyframes hcVtIn{from{opacity:0;transform:translateY(10px)}}
/* a bottom sheet: a pop-up that rises from the foot of a phone, within the thumb's reach. On a wide screen it stays a centred window. */
dialog.hc-sheet{margin:auto;border:0;padding:0;width:min(560px,94vw);max-height:88vh;border-radius:18px;background:var(--card,#fff);color:var(--ink);box-shadow:0 24px 70px rgba(15,42,68,.35);overflow:hidden}
dialog.hc-sheet[open]{display:flex;flex-direction:column;animation:hcShIn .24s var(--ease)}
dialog.hc-sheet::backdrop{background:rgba(15,42,68,.5);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
dialog.hc-sheet:focus{outline:none}
.hc-sheet .sh-h{position:relative;flex:none;display:flex;align-items:center;gap:10px;padding:16px 16px 14px;color:#fff;background:var(--glow),var(--navy);border-bottom:3px solid var(--accent)}
.hc-sheet .sh-h h3{flex:1;min-width:0;margin:0;font-size:17px;line-height:1.25;color:#fff;overflow-wrap:anywhere}
.hc-sheet .sh-h .sh-n{flex:none;font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--accent);color:#1a1200}
.hc-sheet .sh-x{flex:none;font:inherit;font-size:13px;font-weight:700;min-height:36px;padding:6px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.14);color:#fff;cursor:pointer}
.hc-sheet .sh-b{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px}
.hc-sheet .sh-f{flex:none;display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 16px;background:#f4f7fb;border-top:1px solid var(--line)}
.hc-sheet .sh-f .grow{flex:1}
.hc-sheet .sh-f button,.hc-sheet .sh-f a.btn{border-radius:999px}
.hc-lbl{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:12px 0 6px}
.hc-lbl:first-child{margin-top:0}
@keyframes hcShIn{from{opacity:0;transform:translateY(10px) scale(.98)}}
@keyframes hcShUp{from{transform:translateY(100%)}}
html.hc-phone dialog.hc-sheet{margin:auto 0 0;width:100%;max-width:100%;max-height:92dvh;border-radius:var(--sheet-r) var(--sheet-r) 0 0;touch-action:pan-y}
html.hc-phone dialog.hc-sheet[open]{animation:hcShUp .3s var(--ease)}
html.hc-phone .hc-sheet .sh-h{padding-top:22px}
html.hc-phone .hc-sheet .sh-h::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:4px;background:rgba(255,255,255,.5)}
html.hc-phone .hc-sheet .sh-f{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
html.hc-phone .hc-sheet .sh-f button,html.hc-phone .hc-sheet .sh-f a.btn{min-height:var(--tap);padding-left:18px;padding-right:18px;font-size:15px}
/* one-line rows that open a sheet (a long list never prints every record in full) */
.hc-rows{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.hc-rowcard{--kc:var(--k-step);display:flex;align-items:center;gap:10px;width:100%;min-height:var(--tap);text-align:left;font:inherit;font-size:14px;color:var(--ink);padding:9px 12px;border:1px solid color-mix(in srgb,var(--kc) 28%,#fff);border-left:4px solid var(--kc);border-radius:12px;background:color-mix(in srgb,var(--kc) 5%,#fff);box-shadow:var(--shadow-1);cursor:pointer;text-decoration:none;transition:transform .12s var(--ease),box-shadow .12s}
.hc-rowcard:active{transform:scale(.985)}
.hc-rowcard .rc-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.hc-rowcard .rc-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-rowcard .rc-t span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-rowcard .rc-v{flex:none;font-weight:800;font-variant-numeric:tabular-nums}
.hc-rowcard .rc-go{flex:none;color:var(--kc);font-weight:800}
/* the work bar on a phone: one line of pills that slides sideways (This work: DOQ · SOQ · NIT …) */
html.hc-phone .hc-workbar{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none;gap:6px;padding:7px 12px}
html.hc-phone .hc-workbar::-webkit-scrollbar{display:none}
html.hc-phone .hc-workbar>*{flex:none}
html.hc-phone .hc-workbar button,html.hc-phone .hc-workbar .hc-wb-me,html.hc-phone .hc-workbar a.hc-wb-work{border-radius:999px;padding:6px 12px;min-height:34px}
html.hc-phone .hc-workbar .hc-wb-sep{display:none}
/* a bar of many buttons on a phone: one line that slides sideways, each a pill */
html.hc-phone .hc-chipbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:8px;padding:2px 0 6px;scroll-snap-type:x proximity}
html.hc-phone .hc-chipbar::-webkit-scrollbar{display:none}
html.hc-phone .hc-chipbar>.grow{display:none}
html.hc-phone .hc-chipbar>.btn,html.hc-phone .hc-chipbar>button,html.hc-phone .hc-chipbar>a{flex:none;white-space:nowrap;min-height:44px;border-radius:999px;padding:8px 16px;font-size:14px;scroll-snap-align:start}
/* a table as one-line rows on a phone; the row opens in a sheet (phone-kit.js rowSheets) */
html.hc-phone table.rs-on{--kc:var(--k-step);display:block;width:100%;border:0;background:none;box-shadow:none}
html.hc-phone table.rs-on thead{display:none}
html.hc-phone table.rs-on tbody,html.hc-phone table.rs-on tfoot{display:flex;flex-direction:column;gap:6px;width:100%}
html.hc-phone table.rs-on tfoot{margin-top:8px}
html.hc-phone table.rs-on tr{display:flex;align-items:center;gap:10px;min-height:var(--tap);padding:8px 12px;border:1px solid color-mix(in srgb,var(--kc) 28%,#fff);border-left:4px solid var(--kc);border-radius:12px;background:color-mix(in srgb,var(--kc) 4%,#fff);box-shadow:var(--shadow-1)}
html.hc-phone table.rs-on tbody tr:not(.rs-skip){cursor:pointer;transition:transform .12s var(--ease)}
html.hc-phone table.rs-on tbody tr:not(.rs-skip):active{transform:scale(.985)}
html.hc-phone table.rs-on tbody tr:not(.rs-skip)::after{content:"›";flex:none;font-weight:800;color:var(--kc)}
html.hc-phone table.rs-on tbody tr:not(.rs-skip) td{display:none;border:0;padding:0;background:none;pointer-events:none;text-align:left;width:auto}
html.hc-phone table.rs-on tbody tr:not(.rs-skip) td.rs-a{display:block;flex:none;max-width:34%;font-weight:800;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.hc-phone table.rs-on tbody tr:not(.rs-skip) td.rs-b{display:block;flex:1;min-width:0;font-size:13px;color:var(--ink-2);max-height:1.45em;line-height:1.45;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html.hc-phone table.rs-on tbody tr:not(.rs-skip) td.rs-c{display:block;flex:none;font-weight:800;font-size:14px;font-variant-numeric:tabular-nums}
html.hc-phone table.rs-on tfoot tr{border-left-color:var(--navy);background:#f4f7fb;font-weight:800}
html.hc-phone table.rs-on tfoot td,html.hc-phone table.rs-on tr.rs-skip td{display:block;border:0;padding:0;background:none;flex:1 1 auto}
html.hc-phone table.rs-on tfoot td:empty{display:none}
.rs-g{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.rs-f{min-width:0;font-size:15px}.rs-f.rs-w,.rs-f.rs-acts{grid-column:1/-1}
.rs-f .hc-lbl{margin:0 0 3px}
.rs-f .rs-v{font-weight:650;overflow-wrap:anywhere}.rs-f.rs-w .rs-v{font-weight:400;font-size:14px;line-height:1.45}
.rs-f .rs-v input:not([type=checkbox]):not([type=radio]),.rs-f .rs-v select,.rs-f .rs-v textarea{width:100%;min-height:46px;font-size:16px;padding:8px 10px;border:1px solid var(--line-strong,#c9d3dd);border-radius:10px;background:#fff;text-align:left}
.rs-f .rs-v button,.rs-f .rs-v a[href]{display:inline-flex;align-items:center;min-height:42px;margin:4px 6px 0 0;padding:8px 14px;font:inherit;font-size:14px;font-weight:700;border-radius:999px;border:1px solid var(--btn-line);background:var(--btn-fill);color:var(--btn-ink);text-decoration:none;cursor:pointer}
.rs-f.rs-acts .rs-v{display:flex;flex-wrap:wrap;gap:8px;padding-top:6px;border-top:1px solid var(--line)}
.rs-f.rs-acts .rs-v button,.rs-f.rs-acts .rs-v a[href]{flex:1 1 40%;justify-content:center;min-height:var(--tap);margin:0}
/* the journey of a work: its steps down one line, done ones ticked, the next one lit */
.hc-journey{list-style:none;margin:6px 0;padding:0;position:relative}
.hc-journey li{position:relative;margin:0;padding:0 0 5px 34px}
.hc-journey li::before{content:"";position:absolute;left:12px;top:24px;bottom:-4px;width:2px;background:var(--line-strong,#c9d3dd)}
.hc-journey li:last-child::before{display:none}
.hc-journey li.done::before{background:var(--ok)}
.hc-journey .jn{position:absolute;left:0;top:7px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:800;background:#fff;border:2px solid var(--line-strong,#c9d3dd);color:var(--muted)}
.hc-journey li.done .jn{background:var(--ok);border-color:var(--ok);color:#fff}
.hc-journey li.next .jn{border-color:var(--accent);color:var(--accent-dark);box-shadow:0 0 0 4px rgba(232,137,12,.22);animation:hcPulse 2.2s ease-in-out infinite}
.hc-journey .jb{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;text-align:left;font:inherit;font-size:14.5px;color:var(--ink);padding:5px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;transition:transform .12s var(--ease)}
.hc-journey .jb:active{transform:scale(.985)}
.hc-journey .jb b{flex:1;min-width:0;font-weight:650}
.hc-journey .jb time,.hc-journey .jb .jd{flex:none;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.hc-journey li.done .jb{border-color:color-mix(in srgb,var(--ok) 35%,#fff);background:color-mix(in srgb,var(--ok) 5%,#fff)}
.hc-journey li.next .jb{border-color:var(--accent);background:var(--accent-wash);box-shadow:var(--shadow-1)}
.hc-journey li.next .jb{min-height:48px}.hc-journey li.next .jn{top:11px}.hc-journey li.next .jb b{font-weight:800}
.hc-journey li.todo .jb{color:var(--ink-2,#3a4a59)}
@keyframes hcPulse{50%{box-shadow:0 0 0 7px rgba(232,137,12,.08)}}
/* a small ring: so many steps done of so many */
.hc-ringlet{position:relative;flex:none;width:64px;height:64px}
.hc-ringlet svg{width:100%;height:100%;transform:rotate(-90deg)}
.hc-ringlet .tr{fill:none;stroke:rgba(255,255,255,.22);stroke-width:5}
.hc-ringlet .pg{fill:none;stroke:var(--accent);stroke-width:5;stroke-linecap:round;transition:stroke-dashoffset .7s var(--ease)}
.hc-ringlet b{position:absolute;inset:0;display:flex;align-items:baseline;justify-content:center;padding-top:20px;font-size:17px;line-height:1;font-weight:800;color:#fff}
.hc-ringlet b small{font-size:10.5px;font-weight:600;opacity:.8;margin-left:1px}
/* the tick after a save */
.hc-tick{position:fixed;left:50%;top:42%;z-index:20000;width:84px;height:84px;margin:-42px 0 0 -42px;border-radius:50%;display:grid;place-items:center;font-size:40px;color:#fff;background:var(--ok);box-shadow:0 12px 34px rgba(30,107,67,.4);pointer-events:none;animation:hcTick .9s var(--ease) both}
@keyframes hcTick{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1.08)}55%{transform:scale(1)}80%{opacity:1}100%{opacity:0;transform:scale(.96)}}
@media (prefers-reduced-motion:reduce){
  ::view-transition-old(root),::view-transition-new(root){animation:none}
  dialog.hc-sheet[open],html.hc-phone dialog.hc-sheet[open],.hc-journey li.next .jn{animation:none}
  .hc-tick{animation-duration:.01s;animation-iteration-count:1;opacity:0}
  .hc-rowcard,.hc-journey .jb{transition:none}
}
@media print{.hc-tick{display:none}}

/* after the four reviews of the phone gallery (9 Nov 2026): one button shape, rounded boxes, a toast that covers nothing */
html.hc-phone .btn{border-radius:999px;min-height:44px}
html.hc-phone .btn.sm{min-height:40px}
html.hc-phone .box,html.hc-phone .panel{border-radius:14px;box-shadow:var(--shadow-1)}
html.hc-phone .hc-toast{top:calc(8px + env(safe-area-inset-top));bottom:auto;border-radius:14px;font-size:13.5px;line-height:1.4}
.hc-sheet .sh-f [hidden]{display:none}
.rs-f.rs-acts .rs-v button.rs-danger{flex:0 1 auto;margin-left:auto;background:#fff;border-color:var(--bad);color:var(--bad)}
html.hc-phone header .hc-inline:not(.hc-slot)>a,html.hc-phone header .hc-inline:not(.hc-slot)>button{min-height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center}
html.hc-phone .hc-ringlet b small{font-size:12px}
/* land on the place (9 Nov 2026, the owner): the field, words or row a button came from, lit where it opens (src/ui/find-mark.js) */
mark.hc-hit{background:linear-gradient(180deg,#fff4c2,#ffe08a);color:inherit;border-radius:4px;padding:0 2px;box-shadow:0 0 0 2px #f0a43a,0 2px 10px rgba(240,140,30,.35);scroll-margin:80px;animation:hcHit 1.6s ease-out 1}
@keyframes hcHit{0%{box-shadow:0 0 0 2px #f0a43a,0 0 0 10px rgba(240,140,30,.45)}60%{box-shadow:0 0 0 2px #f0a43a,0 0 0 3px rgba(240,140,30,.15)}100%{box-shadow:0 0 0 2px #f0a43a,0 2px 10px rgba(240,140,30,.35)}}
@media (prefers-reduced-motion:reduce){mark.hc-hit{animation:none}}
/* markers in their own colours, apart from the words around them (9 Nov 2026, the owner): field blue, optional line green, tick box violet (src/ui/find-mark.js tintMarkers) */
/* :not(dialog): the NIT window is dialog.hc-mk (src/ui/nit-make.js); this is the marker's span (16 Nov 2026: the window's text turned semi-bold) */
.hc-mk:not(dialog){border-radius:5px;padding:0 3px;font-weight:600;box-decoration-break:clone;-webkit-box-decoration-break:clone;white-space:normal}
.hc-mfld{background:#e3efff;color:#0b4a9e;box-shadow:inset 0 0 0 1px #9cc2f5}
.hc-mopt{background:#e5f5e8;color:#1d6a30;box-shadow:inset 0 0 0 1px #9fd4ab}
.hc-mblk{background:#efe8fb;color:#5a2d9c;box-shadow:inset 0 0 0 1px #c4b0ea}
/* a table the user fills: {{#TABLE Name}} above its table, teal (11 Nov 2026; src/books/table-fill.js) */
.hc-mtbl{background:#dff5f3;color:#0a5f5a;box-shadow:inset 0 0 0 1px #8fd3cd}
.rdr-deleted .hc-mk{background:none;box-shadow:none;color:inherit}
/* the markers coloured inside an editing box (9 Nov 2026, the owner): a layer behind the see-through textarea, letter for letter (src/ui/find-mark.js tintTextarea) */
.hc-tw{position:relative;display:block;width:100%;min-width:0}
.hc-tb{position:absolute;z-index:0;margin:0;pointer-events:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;word-wrap:break-word;color:transparent;border-style:solid;border-color:transparent;user-select:none}
.hc-tw>textarea.hc-tta{position:relative;z-index:1;background:transparent!important;width:100%}
.hc-tb .hc-mk{padding:0;font-weight:inherit;border-radius:3px;color:transparent}
/* ── Opened from the work (12 Nov 2026, the owner: one work is one DOQ, one SOQ, one NIT, one JOR, then Executed and Deviation; these pages
   are never started on their own): a page with no work shows this card alone (main.hc-nowork hides the rest). Used by executed.html, deviation.html. */
.hc-fromwork{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr;gap:6px 14px;align-items:center;margin:4px 0 14px;padding:18px 20px;border-radius:18px;color:#fff;background:var(--glow),linear-gradient(135deg,var(--navy) 0,var(--navy-3) 100%);border-bottom:3px solid var(--accent);box-shadow:0 10px 28px rgba(15,42,68,.22);animation:hcFwIn .28s var(--ease) both}
.hc-fromwork .fw-sg{grid-row:span 2;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:22px;background:#fff;color:var(--navy);box-shadow:0 0 0 4px rgba(232,137,12,.35)}
.hc-fromwork .fw-k{font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ffd59a}
.hc-fromwork b{display:block;font-size:17px;line-height:1.35}
.hc-fromwork p{grid-column:2;margin:2px 0 0;font-size:13.5px;line-height:1.5;color:#dbe6f2}
.hc-fromwork .fw-b{grid-column:2;display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.hc-fromwork .fw-b .btn.ghost{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.6)}
main.hc-nowork>:not(.head):not(.hc-fromwork){display:none!important}
@keyframes hcFwIn{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hc-fromwork{animation:none}}

/* (12 Nov 2026, the owner's phone) iOS gives a date box a fixed inner width: it ran out of its card (With effect from, Rates as on) */
html.hc-phone input:is([type=date],[type=month],[type=datetime-local]){min-width:0;max-width:100%;box-sizing:border-box;-webkit-appearance:none;appearance:none}
html.hc-phone input:is([type=date],[type=month])::-webkit-date-and-time-value{text-align:left}

/* ── One responsive app (18 Nov 2026, the owner): ONE markup, written for the phone first; a wider screen only rearranges it. Widths
   (never 640 / 700 / 720 again): phone below 760px · tablet 760–1199px · laptop 1200px and up. Never a JS mode, a second component or an
   isPhone branch that shows, hides or replaces a function: every action exists at every width (on a phone it may sit in a sheet).
   The model is Books → Fill-ins (src/ui/book-fillins.js). Plan and checklist: docs/plans/responsive-one-app.md. Test: dev-tests/responsive0.mjs. */
/* list + detail: stacked on a phone, side by side from 760px, each scrolls by itself inside a fixed screen (--split-top = what sits above it).
   .three adds a side panel (.s): under the detail on a tablet, a third column on a laptop. */
.hc-split{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.hc-split>.l,.hc-split>.r,.hc-split>.s{min-width:0;overflow:auto}
.hc-split>.l{max-height:42vh}
@media (min-width:760px){
  .hc-split{grid-template-columns:minmax(260px,2fr) minmax(0,3fr);height:calc(100vh - var(--split-top,215px));min-height:360px}
  .hc-split>.l{max-height:none}
  .hc-split.three{grid-template-areas:"l r" "l s";grid-template-rows:minmax(0,1fr) auto}
  .hc-split.three>.l{grid-area:l}.hc-split.three>.r{grid-area:r}.hc-split.three>.s{grid-area:s;max-height:40vh}
}
@media (min-width:1200px){
  .hc-split.three{grid-template-columns:minmax(260px,2fr) minmax(0,3fr) minmax(240px,1.4fr);grid-template-areas:"l r s";grid-template-rows:minmax(0,1fr)}
  .hc-split.three>.s{max-height:none}
}
/* cards that fill the width: one column on a phone, as many as fit on a wider screen */
.hc-cols{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
/* a row of action chips: one line that slides sideways on a phone, wraps from 760px */
.hc-bar{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px 0 4px}
.hc-bar::-webkit-scrollbar{display:none}
.hc-bar>*{flex:none}
@media (min-width:760px){.hc-bar{flex-wrap:wrap;overflow:visible}}
/* the action foot: sticky at the foot of a phone, an ordinary toolbar from 760px */
.hc-foot{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--card,#fff);border-top:1px solid var(--line);box-shadow:0 -4px 14px rgba(15,42,68,.08)}
@media (min-width:760px){.hc-foot{position:static;padding:6px 0;background:none;border-top:0;box-shadow:none}}
