/* Nanche Site Safety — safety-sign yellow and black on concrete grey. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('../vendor/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('../vendor/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('../vendor/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('../vendor/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('../vendor/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('../vendor/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('../vendor/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #e8e9ea;          /* concrete */
  --surface: #ffffff;
  --surface-2: #f3f4f4;
  --ink: #1a1a1a;         /* sign black */
  --ink-2: #4a5056;       /* steel */
  --line: #c5c9cc;
  --line-strong: #8d9399;
  --yellow: #ffc20e;      /* safety yellow */
  --yellow-2: #ffd659;
  --on-yellow: #1a1a1a;
  --accent: #ffc20e;      /* builder brand colour when it passes contrast, else safety yellow */
  --on-accent: #1a1a1a;
  --go: #00843d;          /* safety green */
  --go-ink: #006b31;
  --go-bg: #e2f2e8;
  --stop: #c8102e;        /* safety red */
  --stop-ink: #a50d26;
  --stop-bg: #fbe5e8;
  --warn-ink: #7a4a00;
  --warn-bg: #fff1c7;
  --shadow: 0 1px 0 rgba(26, 26, 26, .08), 0 2px 6px rgba(26, 26, 26, .06);
  --chip-bg: #1a1a1a;
  --chip-fg: #ffc20e;
  --radius: 6px;
  --gutter: 16px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --stripe: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--yellow) 12px 24px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141516; --surface: #1f2123; --surface-2: #2a2d30; --ink: #f2f2f0; --ink-2: #b7bcc1; --line: #3d4246; --line-strong: #6b7177;
    --on-yellow: #1a1a1a; --go: #0c8f45; --go-ink: #5fd38f; --go-bg: #12301f; --stop: #d7263d; --stop-ink: #ff8a95; --stop-bg: #3a1419;
    --warn-ink: #ffd36b; --warn-bg: #3a2e0c; --shadow: 0 1px 0 rgba(0,0,0,.4); --chip-bg: #ffc20e; --chip-fg: #1a1a1a;
    --stripe: repeating-linear-gradient(-45deg, #1a1a1a 0 12px, var(--yellow) 12px 24px);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141516; --surface: #1f2123; --surface-2: #2a2d30; --ink: #f2f2f0; --ink-2: #b7bcc1; --line: #3d4246; --line-strong: #6b7177;
  --on-yellow: #1a1a1a; --go: #0c8f45; --go-ink: #5fd38f; --go-bg: #12301f; --stop: #d7263d; --stop-ink: #ff8a95; --stop-bg: #3a1419;
  --warn-ink: #ffd36b; --warn-bg: #3a2e0c; --shadow: 0 1px 0 rgba(0,0,0,.4); --chip-bg: #ffc20e; --chip-fg: #1a1a1a;
  --stripe: repeating-linear-gradient(-45deg, #1a1a1a 0 12px, var(--yellow) 12px 24px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.45; overflow-x: hidden; }
body[data-area="admin"] { font-size: 16px; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 .6em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--yellow); color: var(--on-yellow); padding: 12px 16px; z-index: 100; font-weight: 700; }
.skip:focus { inset-inline-start: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); border-radius: 4px; }
.ic { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic-xl { width: 56px; height: 56px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.pre { white-space: pre-wrap; }
.loading { padding: 48px var(--gutter); text-align: center; color: var(--ink-2); font-family: var(--font-cond); font-size: 22px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- demo banner ---------- */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px var(--gutter); background: var(--ink); color: var(--surface); font-size: 14px; position: relative; z-index: 20; }
:root[data-theme="dark"] .demo-bar { background: #000; color: #f2f2f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-bar { background: #000; color: #f2f2f0; } }
.demo-tag { background: var(--yellow); color: #1a1a1a; font-weight: 700; padding: 1px 8px; border-radius: 3px; font-family: var(--font-cond); font-size: 15px; }
.demo-text { opacity: .8; }
.demo-switch { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.demo-link { padding: 6px 10px; border-radius: 4px; text-decoration: none; font: inherit; font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.3); background: transparent; color: inherit; cursor: pointer; }
.demo-link.is-on { background: var(--yellow); color: #1a1a1a; border-color: var(--yellow); }
@media (max-width: 480px) { .demo-text { display: none; } .demo-switch { margin-left: 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 8px 20px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-cond); font-weight: 700; font-size: 20px; line-height: 1.1; text-decoration: none; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; transition: transform .06s; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 60px; font-size: 22px; }
.btn-xl { min-height: 76px; font-size: 28px; }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: 17px; gap: 6px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: #1a1a1a; }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-go { background: var(--go); color: #fff; }
.btn-danger { background: var(--stop); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn-danger-outline { background: var(--surface); color: var(--stop-ink); border-color: var(--stop); }
.btn-notify { background: #fff; color: #a50d26; border-color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-photo { width: 100%; min-height: 56px; border-style: dashed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 8px 4px 0; background: none; border: 0; font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: none; margin-bottom: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; text-underline-offset: 3px; }

/* ---------- form controls ---------- */
.field { margin: 0 0 20px; }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; }
.field-label-lg { font-family: var(--font-cond); font-size: 26px; line-height: 1.1; }
.field-label.small { font-weight: 600; font-size: 15px; display: grid; gap: 4px; }
.req, .opt { font-weight: 400; color: var(--ink-2); font-size: .85em; }
.help { color: var(--ink-2); font-size: .88em; margin: 0 0 8px; }
.input { display: block; width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 19px; }
textarea.input { min-height: 88px; resize: vertical; line-height: 1.4; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus-visible { border-color: var(--ink); }
.input-lg { font-size: 24px; min-height: 60px; letter-spacing: .02em; }
.input-xl { font-size: 30px; min-height: 68px; font-weight: 600; letter-spacing: .04em; font-family: var(--font-cond); }
.field.has-error .input, .field.has-error .chips, .field.has-error .seg, .field.has-error .checklist, .field.has-error .sig-box { border-color: var(--stop); }
.field-error { color: var(--stop-ink); font-weight: 600; margin: 6px 0 0; font-size: .92em; }
.field-error:empty { display: none; }
.form-error { background: var(--stop-bg); color: var(--stop-ink); border-left: 6px solid var(--stop); padding: 12px 14px; font-weight: 600; border-radius: 4px; }
.add-row { display: flex; gap: 8px; }
.add-row .input { flex: 1; min-width: 0; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; }
.inline-check input { width: 22px; height: 22px; accent-color: var(--ink); }

/* chips (single choice) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border-radius: var(--radius); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 52px; padding: 8px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }
.chip input:disabled + span { opacity: .45; }
.chips-2 { display: grid; grid-template-columns: 1fr 1fr; }
.chips-2 .chip span, .chip-lg span { width: 100%; justify-content: center; min-height: 64px; font-family: var(--font-cond); font-size: 26px; font-weight: 700; }
.chips-tight .chip span { min-height: 48px; padding: 6px 12px; }
.field.is-locked .chips::after { content: 'Set for you from the boxes above'; display: block; width: 100%; font-size: 14px; color: var(--ink-2); }

/* checklists (multi choice) */
.checklist { display: grid; gap: 6px; border-radius: var(--radius); }
.check-row { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; min-height: 56px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.check-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 30px; height: 30px; border: 2px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; color: transparent; background: var(--surface); }
.check-box .ic { width: 22px; height: 22px; }
.check-text { padding-top: 2px; font-weight: 500; }
.check-text small { display: block; color: var(--ink-2); font-size: 14px; }
.check-row:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.check-row input:checked + .check-box { background: var(--chip-bg); border-color: var(--chip-bg); color: var(--chip-fg); }
.check-row input:focus-visible + .check-box { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }
.check-row.is-trigger:has(input:checked) { border-color: var(--stop); background: var(--stop-bg); }
.check-row.is-trigger input:checked + .check-box { background: var(--stop); border-color: var(--stop); color: #fff; }
.form-incident-report .is-notifiable .check-row:has(input:checked) { border-color: var(--stop); background: var(--stop-bg); }
.form-incident-report .is-notifiable .check-row input:checked + .check-box { background: var(--stop); border-color: var(--stop); color: #fff; }

/* yes / no / n-a */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg-opt { position: relative; }
.seg-opt + .seg-opt { border-left: 2px solid var(--line-strong); }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; justify-content: center; min-height: 52px; font-family: var(--font-cond); font-weight: 700; font-size: 21px; }
.seg-opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: -5px; }
.seg-opt[data-v="yes"] input:checked + span { background: var(--go); color: #fff; }
.seg-opt[data-v="no"] input:checked + span { background: var(--stop); color: #fff; }
.seg-opt[data-v="na"] input:checked + span { background: var(--ink-2); color: var(--surface); }
.field-yesnona { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.field-yesnona .field-label { font-weight: 600; }
.field-yesnona.is-flagged { border-color: var(--stop); box-shadow: inset 6px 0 0 var(--stop); }
.flag-extra { display: grid; gap: 10px; margin-top: 10px; }

/* photos */
.photo-picker { display: grid; gap: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; margin: 0; width: 92px; height: 92px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs-lg .thumb { width: 160px; height: 160px; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* signature */
.sig-box { position: relative; border: 2px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.sig-canvas { display: block; width: 100%; height: 200px; touch-action: none; color: #111; cursor: crosshair; }
.sig-line { position: absolute; left: 16px; right: 16px; bottom: 44px; border-top: 2px dashed #9aa0a6; pointer-events: none; padding-top: 6px; color: #6b7177; font-size: 15px; }
.sig.has-ink .sig-line { color: transparent; }
.sig-actions { display: flex; justify-content: flex-end; }
.sig-list[data-empty]:not([data-empty=""])::before { content: attr(data-empty); color: var(--ink-2); display: block; padding: 12px; border: 2px dashed var(--line); border-radius: var(--radius); }
.sig-item { margin-bottom: 12px; }
.sig-name { font-weight: 700; margin-bottom: 4px; }
.sig-img { background: #fff; border: 1px solid var(--line); border-radius: 4px; max-width: 260px; display: block; }
.sig-img.sm { max-width: 140px; margin-top: 4px; }
.sig-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.sig-grid figure { margin: 0; }

/* callouts */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); margin: 0 0 16px; border-left: 6px solid; }
.callout > .ic { width: 26px; height: 26px; margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 4px; }
.callout-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--yellow); }
.callout-bad { background: var(--stop-bg); color: var(--stop-ink); border-color: var(--stop); }
.callout-good { background: var(--go-bg); color: var(--go-ink); border-color: var(--go); }
.callout-info { background: var(--surface-2); color: var(--ink); border-color: var(--ink-2); }
.callout-danger { background: var(--surface); border: 3px solid var(--stop); flex-direction: column; gap: 4px; }
.callout-danger .callout-title { color: var(--stop-ink); font-family: var(--font-cond); font-size: 24px; }
.expiry-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: 4px; font-weight: 600; font-size: 16px; }
.expiry-warn[data-level="expired"] { background: var(--stop-bg); color: var(--stop-ink); }
.expiry-warn[data-level="soon"] { background: var(--warn-bg); color: var(--warn-ink); }

.notify-panel { background: var(--stop); color: #fff; border-radius: var(--radius); padding: 18px 16px; margin: 12px 0 20px; display: grid; gap: 10px; }
.notify-title { font-family: var(--font-cond); font-weight: 800; font-size: 30px; line-height: 1; margin: 0; }
.notify-panel .btn-notify { min-height: 68px; font-size: 26px; }
.nowrap { white-space: nowrap; }
.notify-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0 calc(-1 * var(--gutter)) 12px; background: var(--stop); color: #fff; font-family: var(--font-cond); font-weight: 800; font-size: 20px; }
.notify-bar > span { flex: 1; }
.notify-steps { margin: 4px 0 0; padding-left: 22px; font-size: 16px; }
.notify-steps li { margin-bottom: 4px; }
.notify-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notify-checks li { display: flex; gap: 8px; align-items: center; opacity: .85; }
.notify-checks li.ok { opacity: 1; font-weight: 700; }
.notify-panel .countdown { background: rgba(0,0,0,.25); color: #fff; }

.risk-badge { display: inline-flex; align-items: center; min-height: 52px; padding: 8px 16px; border-radius: var(--radius); border: 2px dashed var(--line-strong); color: var(--ink-2); font-weight: 700; font-family: var(--font-cond); font-size: 22px; }
.risk-badge[data-level="low"] { background: var(--go-bg); color: var(--go-ink); border: 2px solid var(--go); }
.risk-badge[data-level="medium"] { background: var(--warn-bg); color: var(--warn-ink); border: 2px solid var(--yellow); }
.risk-badge[data-level="high"] { background: var(--stop-bg); color: var(--stop-ink); border: 2px solid var(--stop); }
.risk-badge[data-level="extreme"] { background: var(--stop); color: #fff; border: 2px solid var(--stop); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill-good { background: var(--go-bg); color: var(--go-ink); border-color: transparent; }
.pill-go { background: var(--go); color: #fff; border-color: transparent; }
.pill-bad { background: var(--stop-bg); color: var(--stop-ink); border-color: transparent; }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.pill-muted { background: transparent; }
.risk-low { background: var(--go-bg); color: var(--go-ink); }
.risk-medium { background: var(--warn-bg); color: var(--warn-ink); }
.risk-high { background: var(--stop-bg); color: var(--stop-ink); }
.risk-extreme { background: var(--stop); color: #fff; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--ink); color: var(--surface); font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: opacity .3s; }
.toast-error { background: var(--stop); color: #fff; }
.toast.out { opacity: 0; }

/* ================= WORKER ================= */
.w-main { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 24px; }
.w-head { background: var(--accent); color: var(--on-accent); position: relative; }
.w-head::before { content: ''; display: block; height: 12px; background: var(--stripe); }
.w-head-in { padding: 18px var(--gutter) 20px; }
.w-brand { font-family: var(--font-cond); font-weight: 700; font-size: 17px; margin: 0 0 6px; letter-spacing: .01em; }
.w-site { font-family: var(--font-cond); font-weight: 800; font-size: clamp(36px, 10.5vw, 56px); line-height: .95; letter-spacing: -.005em; margin: 0 0 8px; overflow-wrap: anywhere; }
.w-addr { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.w-sup { font-size: 17px; margin: 0; }
.w-sup a { font-weight: 700; white-space: nowrap; }
.w-head.is-compact::before { height: 8px; }
.w-head.is-compact .w-head-in { padding: 10px var(--gutter) 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.w-site-sm { font-family: var(--font-cond); font-weight: 800; font-size: 22px; line-height: 1.05; margin: 0; }
.w-addr-sm { margin: 0; font-weight: 600; font-size: 16px; }
.w-pad { padding: 20px var(--gutter) 8px; }
.w-h1 { font-family: var(--font-cond); font-size: 40px; font-weight: 800; line-height: 1; margin: 12px 0 12px; }
.w-h2 { font-family: var(--font-cond); font-size: 34px; font-weight: 800; line-height: 1.02; margin: 0 0 12px; outline: none; }
.w-h3 { font-family: var(--font-cond); font-size: 26px; font-weight: 700; margin: 28px 0 8px; }
.lead { font-size: 19px; margin: 0 0 20px; }
.w-actions { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 4px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 2px solid var(--line); margin-top: 8px; }
.w-links { display: grid; gap: 2px; margin-top: 18px; }

.meter { list-style: none; margin: 0; padding: 12px var(--gutter) 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter li { border-top: 6px solid var(--line); padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.meter li span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter li.done { border-color: var(--ink); color: var(--ink); }
.meter li.now { border-color: var(--yellow); color: var(--ink); box-shadow: 0 -6px 0 0 var(--ink) inset; box-shadow: none; border-top-color: var(--yellow); }
.meter li.now span { font-weight: 800; }

.w-emerg { margin: 28px 0 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.emerg-call { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--stop); color: #fff; text-decoration: none; min-height: 64px; }
.emerg-call .ic { width: 30px; height: 30px; }
.emerg-call strong { display: block; font-family: var(--font-cond); font-size: 28px; line-height: 1; }
.emerg-call small { font-size: 15px; opacity: .9; }
.emerg-list { margin: 0; padding: 6px 16px 10px; }
.emerg-list div { display: grid; grid-template-columns: minmax(0, 11em) 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.emerg-list div:last-child { border-bottom: 0; }
.emerg-list dt { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink-2); font-size: 16px; }
.emerg-list dd { margin: 0; font-weight: 600; }
.emerg-list a { font-weight: 700; }
@media (max-width: 400px) { .emerg-list div { grid-template-columns: 1fr; gap: 0; } }

.tiles { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tiles > li { display: grid; }
.tile { display: grid; gap: 2px; text-align: left; padding: 16px 18px; min-height: 76px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.tile strong { font-family: var(--font-cond); font-size: 26px; line-height: 1.05; }
.tile span { color: var(--ink-2); font-size: 16px; }
.tile.is-on, .tile:active { background: var(--accent); color: var(--on-accent); }
.tile.is-on span { color: var(--on-yellow); }

.cred-list { display: grid; gap: 12px; margin-bottom: 12px; }
.cred-edit { display: grid; gap: 10px; padding: 14px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.cred-edit.is-highlight { border-color: var(--yellow); }
.cred-edit .btn-ghost { justify-self: start; }

.slide-count { font-family: var(--font-cond); font-weight: 700; color: var(--ink-2); font-size: 18px; margin-bottom: 8px; }
.slide { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 18px; margin-bottom: 16px; box-shadow: 6px 6px 0 var(--accent); }
.slide-title { font-size: 36px; }
.slide-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.slide-points li { position: relative; padding-left: 26px; font-size: 19px; }
.slide-points li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--accent); border: 2px solid var(--on-yellow); }
.slide-points li.is-missing { color: var(--ink-2); }

.quiz-q { font-size: 30px; }
.quiz-opts { display: grid; gap: 10px; margin: 16px 0; }
.quiz-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; min-height: 64px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: 19px; font-weight: 500; }
.quiz-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.quiz-opt input:focus-visible ~ .quiz-letter { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }
.quiz-letter { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 4px; font-family: var(--font-cond); font-weight: 800; font-size: 20px; }
.quiz-opt.is-wrong { border-color: var(--stop); background: var(--stop-bg); color: var(--stop-ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.quiz-opt.is-wrong .quiz-letter { border-color: var(--stop); }
.quiz-opt.is-right { border-color: var(--go); background: var(--go-bg); color: var(--go-ink); font-weight: 700; }
.quiz-opt.is-right .quiz-letter { background: var(--go); border-color: var(--go); color: #fff; }

.hrcw-detail { display: grid; gap: 12px; margin-top: 16px; }
.hrcw.is-compact { padding: 14px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.hrcw.is-compact .field-label-lg { font-size: 22px; }

.decl { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; }
.decl-intro { font-family: var(--font-cond); font-weight: 800; font-size: 24px; margin-bottom: 10px; }
.decl-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.decl-list li { display: flex; gap: 10px; align-items: flex-start; }
.decl-list .ic { color: var(--go-ink); width: 24px; height: 24px; margin-top: 2px; }
.decl-privacy { font-size: 16px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.privacy summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.privacy p { font-size: 16px; color: var(--ink-2); }

/* signed-in pass — the moment that matters most */
.pass-page { background: var(--bg); }
.pass { background: var(--go); color: #fff; position: relative; overflow: hidden; }
.pass::after { content: ''; display: block; height: 12px; background: repeating-linear-gradient(-45deg, #fff 0 12px, var(--go) 12px 24px); opacity: .35; }
.pass-in { padding: 28px var(--gutter) 24px; display: grid; justify-items: start; }
.pass-tick { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--go); margin: 0 0 14px; }
.pass-tick .ic-xl { width: 48px; height: 48px; }
.pass.is-fresh .pass-tick { animation: pop .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pass-title { font-family: var(--font-cond); font-weight: 800; font-size: 34px; line-height: 1; margin: 0 0 8px; outline: none; }
.pass-time { font-family: var(--font-cond); font-weight: 800; font-size: clamp(72px, 24vw, 112px); line-height: .9; margin: 4px 0 2px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pass-ampm { font-size: .42em; font-weight: 700; margin-left: .12em; letter-spacing: 0; }
.pass-date { font-size: 18px; font-weight: 600; margin: 6px 0 16px; }
.pass-site { font-family: var(--font-cond); font-weight: 700; font-size: 26px; line-height: 1.05; margin: 0 0 6px; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.5); width: 100%; }
.pass-site span { display: block; font-family: var(--font); font-weight: 500; font-size: 17px; margin-top: 4px; }
.pass-name { font-weight: 700; margin: 6px 0 0; }
.pass-count { margin: 6px 0 0; font-weight: 600; opacity: .9; }
.pass-count:empty { display: none; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-btn { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 96px; padding: 10px 6px; text-align: center; text-decoration: none; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); font-family: var(--font-cond); font-weight: 700; font-size: 19px; line-height: 1.05; }
.quick-btn .ic { width: 30px; height: 30px; }
.quick-btn.is-danger { border-color: var(--stop); color: var(--stop-ink); }
.out-card { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 28px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); margin-bottom: 16px; }
.out-time { font-family: var(--font-cond); font-weight: 800; font-size: 64px; line-height: 1; margin: 0; }

.site-fixed { display: grid; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.site-fixed span { color: var(--ink-2); font-size: 16px; }
.site-pick { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 6px; }
.site-pick a { display: grid; padding: 12px 14px; min-height: 56px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.site-pick span { color: var(--ink-2); font-size: 16px; }

/* worker forms */
.form-intro { color: var(--ink-2); font-size: 17px; }
.form-section { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.form-section legend { font-family: var(--font-cond); font-weight: 800; font-size: 26px; padding: 0; margin: 0 0 12px; width: 100%; border-bottom: 3px solid var(--ink); }
.form-section.is-notifiable legend { color: var(--stop-ink); border-color: var(--stop); }
.section-intro { margin-top: -4px; }
.emergency-strip { margin-bottom: 24px; }
.form-submit { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 2px solid var(--line); display: grid; gap: 6px; }
.form-progress { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.form-progress:empty { display: none; }
body[data-area="admin"] .form-submit { background: var(--bg); }

/* ================= ADMIN ================= */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); background: var(--bg); }
.login-card { width: min(420px, 100%); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 0 24px 24px; display: grid; gap: 4px; overflow: hidden; }
.login-card::before { content: ''; display: block; height: 12px; margin: 0 -24px 18px; background: var(--stripe); }
.login-brand { font-family: var(--font-cond); font-weight: 700; margin: 0; color: var(--ink-2); }
.login-title { font-family: var(--font-cond); font-weight: 800; font-size: 36px; line-height: 1; margin: 0 0 16px; }
.pin { letter-spacing: .3em; text-align: center; }
.demo-pin { background: var(--warn-bg); color: var(--warn-ink); padding: 6px 10px; border-radius: 4px; }

.a-app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, #1a1a1a 236px, var(--bg) 236px); }
.a-nav { background: #1a1a1a; color: #f2f2f0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 0 0 12px; }
.a-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 18px; margin: 0; font-family: var(--font-cond); font-weight: 800; font-size: 22px; line-height: 1; }
.a-brand small { display: block; font-weight: 600; font-size: 15px; color: var(--accent-on-dark, var(--yellow)); margin-top: 3px; }
.a-mark { width: 30px; height: 30px; flex: none; background: var(--stripe); border-radius: 4px; border: 2px solid var(--yellow); }
.a-nav ul { list-style: none; margin: 0; padding: 0 8px; display: grid; gap: 2px; }
.a-nav a, .a-logout { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border-radius: 4px; text-decoration: none; font-weight: 600; color: #d8dadc; border-left: 4px solid transparent; }
.a-nav a:hover { background: #2a2c2e; color: #fff; }
.a-nav a.is-on { background: #2a2c2e; color: #fff; border-left-color: var(--accent-on-dark, var(--yellow)); }
.a-nav a.is-on .ic { color: var(--accent-on-dark, var(--yellow)); }
.a-logout { margin: auto 8px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.a-main { min-width: 0; padding: 28px 32px 48px; }
.a-view { max-width: 1240px; outline: none; }
.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.a-h1 { font-family: var(--font-cond); font-weight: 800; font-size: 38px; line-height: 1; overflow-wrap: anywhere; }
.a-sub { color: var(--ink-2); margin: 6px 0 0; }
.a-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a-h2 { font-family: var(--font-cond); font-weight: 800; font-size: 24px; line-height: 1.1; display: flex; align-items: center; gap: 8px; }
.a-h3 { font-family: var(--font-cond); font-weight: 700; font-size: 20px; margin: 18px 0 8px; }
@media (max-width: 900px) {
  .a-app { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .a-nav { position: sticky; top: 0; height: auto; z-index: 10; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; }
  .a-brand { padding: 10px var(--gutter); font-size: 19px; flex: 1; }
  .a-brand small { display: inline; margin-left: 6px; }
  .a-nav ul { order: 3; width: 100%; display: flex; overflow-x: auto; padding: 0 8px 6px; gap: 2px; scrollbar-width: none; }
  .a-nav ul::-webkit-scrollbar { display: none; }
  .a-nav a { white-space: nowrap; border-left: 0; border-bottom: 4px solid transparent; border-radius: 0; min-height: 44px; padding: 6px 10px; gap: 6px; }
  .a-nav a.is-on { border-bottom-color: var(--accent-on-dark, var(--yellow)); background: none; }
  .a-logout { margin: 0 8px 0 0; min-height: 44px; }
  .a-logout > span:not(.ic) { display: none; }
  .a-main { padding: 18px var(--gutter) 40px; }
  .a-h1 { font-size: 32px; }
}

.tiles-strip { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 0; margin-bottom: 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { display: grid; align-content: start; padding: 14px 16px; text-decoration: none; border-right: 1px solid var(--line); position: relative; min-height: 104px; }
.stat:last-child { border-right: 0; }
.stat::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--line); }
.stat-n { font-family: var(--font-cond); font-weight: 800; font-size: 46px; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-l { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.stat-sub { font-weight: 700; color: var(--stop-ink); font-size: 14px; }
.stat-go::before { background: var(--go); }
.stat-warn::before { background: var(--yellow); }
.stat-bad::before { background: var(--stop); }
.stat-bad .stat-n { color: var(--stop-ink); }
.stat:hover { background: var(--surface-2); }
@media (max-width: 1100px) { .tiles-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat:nth-child(3n) { border-right: 0; } .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .tiles-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); min-height: 92px; padding: 12px; } .stat:nth-child(2n) { border-right: 0 !important; } .stat-n { font-size: 38px; } }

.alert-block { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.alert-notifiable { background: var(--stop); color: #fff; }
.alert-notifiable .help { color: #fff; opacity: .9; margin: 8px 0 0; }
.alert-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.3); text-decoration: none; }
.alert-row div { display: grid; }
.alert-row div span { opacity: .9; }
.countdown { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 4px; background: var(--stop-bg); color: var(--stop-ink); font-weight: 700; font-size: 15px; flex-wrap: wrap; }
.countdown small { font-weight: 500; }
.alert-notifiable .countdown { background: #fff; color: #a50d26; }
.countdown.is-over { background: #000; color: #fff; }
.countdown.is-done { background: var(--go-bg); color: var(--go-ink); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-side { display: grid; gap: 20px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.panel > .a-h2 { margin-bottom: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-meta { color: var(--ink-2); font-weight: 600; }
.panel-bump { margin-bottom: 20px; border-left: 6px solid var(--yellow); }
.empty { padding: 18px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); text-align: center; }
.empty p { margin: 0; }

.onsite-site { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.onsite-site:first-of-type { border-top: 0; padding-top: 0; }
.onsite-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.onsite-name { flex: 1; min-width: 0; font-family: var(--font-cond); font-weight: 700; font-size: 20px; text-decoration: none; line-height: 1.1; }
.onsite-name small { display: block; font-family: var(--font); font-weight: 500; font-size: 14px; color: var(--ink-2); }
.count-chip { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 4px; background: var(--chip-bg); color: var(--chip-fg); font-family: var(--font-cond); font-weight: 800; font-size: 20px; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--font-cond); font-weight: 800; font-size: 16px; }
.person { flex: 1; min-width: 0; display: grid; }
.person a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.person small { color: var(--ink-2); font-size: 14px; }
.time-in { color: var(--ink-2); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tel-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; text-decoration: none; }

.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0 10px 12px; border-top: 1px solid var(--line); border-left: 4px solid transparent; }
.alert-list li.is-bad { border-left-color: var(--stop); }
.alert-list li.is-warn { border-left-color: var(--yellow); }
.alert-list a { display: grid; text-decoration: none; min-width: 0; }
.alert-list a span { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.alert-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mini-list { list-style: none; margin: 0 0 8px; padding: 0; }
.mini-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.mono-ish { font-family: var(--font-cond); font-weight: 600; font-size: 18px; overflow-wrap: anywhere; background: var(--surface-2); padding: 8px 10px; border-radius: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .input[type="search"] { max-width: 340px; flex: 1 1 220px; }
.toolbar.filters .input { width: auto; flex: 1 1 160px; max-width: 280px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { min-height: 44px; padding: 6px 14px; border: 2px solid var(--line); background: var(--surface); border-radius: 4px; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 14px; color: var(--ink-2); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--ink); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
.tbl .actions { text-align: right; }
.tbl tr.row-bad td:first-child { box-shadow: inset 4px 0 0 var(--stop); }
.strong-link { font-weight: 700; text-decoration: none; display: grid; }
.strong-link small { font-weight: 500; color: var(--ink-2); font-size: 14px; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; text-align: left !important; }
  .tbl td::before { content: attr(data-label); color: var(--ink-2); font-size: 14px; font-weight: 600; }
  .tbl td:first-child { display: block; font-size: 17px; }
  .tbl td:first-child::before { content: none; }
  .tbl td[data-label=""]::before { content: none; }
  .tbl td[data-label=""] { display: block; }
  .row-actions { justify-content: flex-start; }
}

.a-form { display: grid; gap: 18px; max-width: 900px; }
.a-form-wrap { max-width: 760px; }
.a-fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px 4px; margin: 0; min-width: 0; }
.a-fieldset legend { font-family: var(--font-cond); font-weight: 800; font-size: 22px; padding: 0 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grid-2 .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.a-form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body[data-area="admin"] .input { font-size: 17px; min-height: 48px; }
body[data-area="admin"] .w-h2 { font-size: 28px; }

.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inbox-row a { display: grid; gap: 2px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; }
.inbox-row.is-notifiable a { border-left-color: var(--stop); }
.inbox-type { font-family: var(--font-cond); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.inbox-title { font-weight: 700; overflow-wrap: anywhere; }
.inbox-meta { color: var(--ink-2); font-size: 14px; }
.inbox-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.sub-section { margin-bottom: 18px; }
.sub-section h3 { font-family: var(--font-cond); font-weight: 800; font-size: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.sub-section dl { margin: 0; }
.kv { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv.is-flagged dt { color: var(--stop-ink); }
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
ul.plain { margin: 0; padding-left: 18px; }
.raw { white-space: pre-wrap; font-size: 13px; }

.cred-list .cred { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); border-left: 6px solid var(--go); list-style: none; }
ul.cred-list { padding: 0; margin: 0 0 10px; }
.cred.is-bad { border-left-color: var(--stop); }
.cred-main { flex: 1 1 260px; display: grid; gap: 2px; min-width: 0; }
.cred-main > span { color: var(--ink-2); font-size: 15px; }
.cred-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cred-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* roll call — full screen, readable at arm's length */
.roll { min-height: 100vh; background: #1a1a1a; color: #f2f2f0; padding: 0 var(--gutter) 24px; }
.roll::before { content: ''; display: block; height: 14px; margin: 0 calc(-1 * var(--gutter)); background: repeating-linear-gradient(-45deg, #1a1a1a 0 12px, var(--yellow) 12px 24px); }
.roll-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 0 10px; max-width: 1100px; margin: 0 auto; }
.roll-kicker { color: var(--yellow); font-family: var(--font-cond); font-weight: 700; font-size: 22px; margin: 0; }
.roll-title { font-family: var(--font-cond); font-weight: 800; font-size: clamp(32px, 7vw, 52px); line-height: 1; margin: 2px 0 6px; overflow-wrap: anywhere; }
.roll-updated { color: #b7bcc1; font-size: 15px; margin: 0; }
.roll-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.roll-count { max-width: 1100px; margin: 6px auto 4px; font-family: var(--font-cond); font-size: 30px; font-weight: 600; padding: 10px 16px; background: #2a2c2e; border-radius: var(--radius); border-left: 8px solid var(--yellow); }
.roll-count strong { font-size: 48px; font-weight: 800; margin-right: 6px; }
.roll-count.is-done { border-left-color: var(--go); background: #12301f; }
.roll-help { max-width: 1100px; margin: 8px auto 12px; color: #b7bcc1; }
.roll-list { list-style: none; margin: 0 auto 16px; padding: 0; display: grid; gap: 8px; max-width: 1100px; }
.roll-list li { display: flex; gap: 8px; align-items: stretch; }
.roll-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 12px 16px; background: #2a2c2e; color: #f2f2f0; border: 3px solid #3d4246; border-radius: var(--radius); text-align: left; cursor: pointer; }
.roll-box { flex: none; width: 52px; height: 52px; border: 3px solid #f2f2f0; border-radius: 6px; display: grid; place-items: center; color: transparent; }
.roll-box .ic { width: 38px; height: 38px; }
.roll-name { display: grid; font-family: var(--font-cond); font-weight: 800; font-size: 30px; line-height: 1.05; min-width: 0; overflow-wrap: anywhere; }
.roll-name small { font-family: var(--font); font-weight: 500; font-size: 16px; color: #b7bcc1; margin-top: 4px; }
.roll-row.is-on { background: #12301f; border-color: var(--go); }
.roll-row.is-on .roll-box { background: var(--go); border-color: var(--go); color: #fff; }
.roll-tel { flex: none; display: grid; place-items: center; align-content: center; gap: 2px; width: 92px; background: var(--yellow); color: #1a1a1a; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 13px; text-align: center; padding: 6px; }
.roll-tel .ic { width: 30px; height: 30px; }
.roll-empty { padding: 30px; text-align: center; color: #b7bcc1; border: 2px dashed #3d4246; border-radius: var(--radius); display: block !important; }
.roll-000 { max-width: 1100px; margin: 0 auto; }
@media (max-width: 480px) { .roll-tel > span:not(.ic) { display: none; } .roll-tel { width: 64px; } .roll-name { font-size: 26px; } .roll-box { width: 44px; height: 44px; } }

/* ================= POSTERS ================= */
.poster-screen { background: #9aa0a6; min-height: 100vh; padding: 0 0 40px; }
.poster-bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px var(--gutter); background: var(--surface); border-bottom: 2px solid var(--ink); }
.poster-bar-title { margin: 0; font-family: var(--font-cond); font-weight: 800; font-size: 22px; line-height: 1.1; flex: 1 1 200px; }
.poster-bar-title small { display: block; font-family: var(--font); font-weight: 500; font-size: 14px; color: var(--ink-2); }
.poster-note { max-width: 820px; margin: 12px auto 0; padding: 10px 14px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 4px; display: flex; gap: 8px; align-items: center; font-size: 15px; }
.poster-stack { display: grid; justify-items: center; gap: 24px; padding: 20px var(--gutter); }

.poster { container-type: inline-size; width: min(210mm, 100%); aspect-ratio: 210 / 297; background: #fff; color: #111; font-family: var(--font); display: flex; flex-direction: column; box-shadow: 0 8px 30px rgba(0,0,0,.25); overflow: hidden; }
.poster-top { background: #ffc20e; padding: 3.6cqw 5cqw 2.6cqw; border-bottom: 1.8cqw solid #111; position: relative; }
.poster-top::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2cqw; background: repeating-linear-gradient(-45deg, #111 0 2.6cqw, #ffc20e 2.6cqw 5.2cqw); }
.poster-must { font-family: var(--font-cond); font-weight: 800; font-size: 9.4cqw; line-height: .9; margin: 1.4cqw 0 .9cqw; letter-spacing: -.01em; }
.poster-must span { display: block; }
.poster-scan { font-family: var(--font-cond); font-weight: 700; font-size: 4.4cqw; margin: 0; }
.poster-qr-row { display: grid; grid-template-columns: 38cqw 1fr; gap: 4cqw; padding: 3cqw 5cqw 2.4cqw; align-items: start; }
.poster-qr { border: .9cqw solid #111; padding: 1cqw; background: #fff; }
.poster-qr .qr { display: block; width: 100%; height: auto; }
.poster-code { font-size: 2.3cqw; margin: 1cqw 0 0; text-align: center; color: #333; }
.poster-code strong { font-family: var(--font-cond); font-size: 3cqw; color: #111; }
.poster-label { font-family: var(--font-cond); font-weight: 700; font-size: 2.8cqw; margin: 0 0 .4cqw; color: #555; }
.poster-addr { font-family: var(--font-cond); font-weight: 800; font-size: 5.6cqw; line-height: 1; margin: 0 0 .8cqw; overflow-wrap: anywhere; }
.poster-suburb { font-family: var(--font-cond); font-weight: 700; font-size: 4.2cqw; margin: 0 0 2cqw; }
.poster-url { font-size: 2.2cqw; margin: 0 0 2cqw; color: #333; overflow-wrap: anywhere; line-height: 1.3; }
.poster-url strong { font-size: 2.4cqw; }
.poster-visitors { font-family: var(--font-cond); font-weight: 800; font-size: 3.8cqw; line-height: 1.05; margin: 0; padding-top: 1.6cqw; border-top: .5cqw solid #111; }
.poster-visitors span { display: block; font-family: var(--font); font-weight: 600; font-size: 2.5cqw; margin-top: .8cqw; }
.poster-emerg { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr 1.4fr; margin: 0 5cqw; border: .5cqw solid #111; }
.pe { padding: 1.3cqw 1.8cqw; border-right: .35cqw solid #111; display: grid; align-content: start; gap: .3cqw; min-width: 0; }
.pe:last-child { border-right: 0; }
.pe span { font-size: 2.1cqw; font-weight: 700; }
.pe strong { font-family: var(--font-cond); font-weight: 800; font-size: 6cqw; line-height: 1; }
.pe strong.sm { font-size: 2.5cqw; font-family: var(--font); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.pe-000 { background: #c8102e; color: #fff; }
.pe-ws strong { font-size: 4.6cqw; }
.poster-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; padding: 2.8cqw 5cqw 0; flex: 1; min-height: 0; }
.pb h2 { font-family: var(--font-cond); font-weight: 800; font-size: 3.3cqw; margin: 0 0 1cqw; padding-bottom: .5cqw; border-bottom: .45cqw solid #111; }
.pb dl { margin: 0; display: grid; gap: .7cqw; }
.pb dl div { display: grid; grid-template-columns: 15cqw 1fr; gap: 1cqw; font-size: 2.1cqw; line-height: 1.25; align-items: start; }
.pb dt { color: #555; font-weight: 600; }
.pb dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.write-in { display: inline-block; width: 100%; height: 2.4cqw; border-bottom: .3cqw solid #777; }
.write-in.short { width: 60%; }
.poster-foot { display: flex; justify-content: space-between; gap: 2cqw; padding: 1.5cqw 5cqw; background: #111; color: #fff; font-size: 2cqw; font-weight: 600; margin-top: 1.6cqw; }

.qr-card { container-type: inline-size; width: min(105mm, 100%); aspect-ratio: 105 / 148; background: #fff; color: #111; display: grid; grid-template-rows: auto auto 1fr auto auto auto; padding: 4.7mm 5.2mm 4.2mm; gap: 1.6mm; border-top: 6.3mm solid #ffc20e; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.qc-must { font-family: var(--font-cond); font-weight: 800; font-size: 11cqw; line-height: 1; margin: 0; }
.qc-qr { border: 1.4cqw solid #111; padding: 1.6cqw; width: 80%; justify-self: center; }
.qc-qr .qr { display: block; width: 100%; }
.qc-site { font-family: var(--font-cond); font-weight: 800; font-size: 7cqw; line-height: 1; margin: 0; overflow-wrap: anywhere; }
.qc-site span { display: block; font-size: 5.4cqw; font-weight: 700; margin-top: 1cqw; }
.qc-emerg { display: flex; justify-content: space-between; gap: 2cqw; margin: 0; font-size: 4.2cqw; font-weight: 700; border-top: .8cqw solid #111; padding-top: 2cqw; }
.qc-emerg strong { color: #c8102e; }
.qc-co { font-size: 3.6cqw; margin: 0; color: #555; font-weight: 600; }

@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { background: #fff !important; }
  .no-print, .demo-bar, .toasts, .skip, .poster-note { display: none !important; }
  .poster-screen { background: #fff; padding: 0; min-height: 0; }
  .poster-stack { display: block; padding: 0; }
  .poster { width: 210mm; height: 297mm; aspect-ratio: auto; box-shadow: none; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qr-card { width: 105mm; height: 148mm; aspect-ratio: auto; box-shadow: none; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .poster:last-child, .qr-card:last-child { break-after: auto; }
}

/* ---------- QA round additions ---------- */
.role-line { margin: -8px 0 18px; color: var(--ink-2); }
.linklike { background: none; border: 0; padding: 4px 2px; min-height: 44px; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.update-details { margin: 18px 0 8px; padding: 4px 14px 8px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.update-details summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.wc-inline { margin: 0 0 16px; }
.privacy { margin: 0 0 18px; }
.privacy p { margin-top: 4px; }
.loc-toggle { margin-top: 14px; }
.alert-ok { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--go-ink); margin: 0 0 16px; }
.alert-fail { margin: 0 0 16px; }
.alert-fail .btn { margin-top: 8px; }
.alert-fail.on-red { display: flex; gap: 10px; align-items: flex-start; background: rgba(0,0,0,.22); border-radius: var(--radius); padding: 12px; margin: 4px 0 0; color: #fff; }
.alert-fail.on-red .callout-title { color: #fff; }
.change-list { list-style: none; margin: 0; padding: 0; }
.change-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.change-main { min-width: 0; flex: 1 1 220px; }
.change-vals { margin: 4px 0 0; overflow-wrap: anywhere; }
.change-vals .old { color: var(--ink-2); text-decoration: line-through; }
.panel-changes { border-left: 6px solid var(--yellow); }
@media (max-width: 1100px) { .tiles-strip { --n: 3 !important; } }
@media (max-width: 520px) { .tiles-strip { --n: 2 !important; } }

/* ================= SWMS ================= */
.hrcw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hrcw-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; background: var(--chip-bg); color: var(--chip-fg); font-family: var(--font-cond); font-weight: 700; font-size: 15px; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }
.hrcw-chip.is-silica { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--yellow); }
.swms-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); margin: 4px 0 6px; font-weight: 600; }
.swms-co { font-weight: 600; color: var(--ink-2); margin: -6px 0 8px; }
.swms-cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.swms-card { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); text-decoration: none; }
.swms-card strong { font-family: var(--font-cond); font-size: 24px; line-height: 1.1; }
.swms-card > span { color: var(--ink-2); font-size: 16px; }
.swms-card-top { display: flex; justify-content: space-between; align-items: center; }
.swms-card-go { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink) !important; justify-content: flex-end; }
.swms-steps-title { font-family: var(--font-cond); font-weight: 800; font-size: 26px; margin: 24px 0 10px; }
.step-cards { display: grid; gap: 12px; }
.step-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; box-shadow: 4px 4px 0 var(--accent); }
.step-head { display: flex; gap: 12px; align-items: flex-start; }
.step-head h3 { font-family: var(--font-cond); font-weight: 800; font-size: 24px; line-height: 1.1; margin: 0; }
.step-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--chip-bg); color: var(--chip-fg); font-family: var(--font-cond); font-weight: 800; font-size: 20px; }
.step-risk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.step-label { font-weight: 700; margin: 12px 0 4px; font-size: 15px; color: var(--ink-2); }
.hz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hz-list li { display: flex; gap: 8px; align-items: flex-start; }
.hz-list .ic { color: var(--stop-ink); margin-top: 3px; }
.ctl-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.ctl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 8px 0; border-top: 1px dashed var(--line); }
.ctl-level { grid-row: span 2; display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-strong); white-space: nowrap; margin-top: 2px; }
.lvl-elimination, .lvl-substitution { background: var(--go-bg); color: var(--go-ink); border-color: var(--go); }
.lvl-isolation, .lvl-engineering { background: #e3ecf7; color: #1d4f8c; border-color: #1d4f8c; }
.lvl-ppe { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--yellow); }
.ctl-who { grid-column: 2; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 14px; }
.ctl-edit { grid-column: 2; min-height: 64px; }
.ctl .btn-ghost { grid-column: 2; justify-self: start; }
.swms-sec { margin: 16px 0; }
.swms-sec h3 { font-family: var(--font-cond); font-weight: 800; font-size: 22px; margin: 0 0 6px; }
.swms-sec.silica { padding: 12px 14px; border: 2px solid var(--yellow); border-radius: var(--radius); background: var(--warn-bg); color: var(--ink); }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin-bottom: 4px; }
.kv-list { margin: 0; }
.swms-sign { margin-top: 24px; padding-top: 8px; border-top: 3px solid var(--ink); }
.swms-check { display: grid; gap: 10px; margin: 0 0 16px; }
.swms-missing .notify-title { font-size: 28px; }
.tpl-list, .tpl-grid { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.tpl-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tpl-item { display: grid; gap: 4px; width: 100%; text-align: left; padding: 12px 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; cursor: pointer; font: inherit; color: inherit; }
.tpl-item strong { font-family: var(--font-cond); font-size: 21px; line-height: 1.1; }
.tpl-item > span { color: var(--ink-2); font-size: 15px; }
.tpl-item:hover { border-color: var(--ink); }
.lib-group { margin-bottom: 20px; }
.file-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.file-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; }
.file-list span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file-chip { display: grid; place-items: center; align-content: center; gap: 4px; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px; text-align: center; }
.wiz-nav { display: grid; gap: 4px; margin-top: 20px; }
.swms-wiz { max-width: 720px; }
.cell-stack { display: flex; flex-wrap: wrap; gap: 4px; }
.confirm-sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; margin-bottom: 14px; }
.swms-content .lead { font-size: 17px; }

/* A4 print view */
.swms-print { background: #9aa0a6; min-height: 100vh; padding-bottom: 40px; }
.swms-doc { background: #fff; color: #111; width: min(210mm, calc(100% - 32px)); margin: 20px auto; padding: 12mm 11mm; font-size: 9.5pt; line-height: 1.35; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.swms-doc h1 { font-family: var(--font-cond); font-weight: 800; font-size: 20pt; line-height: 1.05; margin: 0 0 2px; }
.swms-doc h2 { font-family: var(--font-cond); font-weight: 800; font-size: 13pt; margin: 10px 0 4px; border-bottom: 1.5pt solid #111; }
.swms-doc h3 { font-size: 11pt; }
.sd-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; border-top: 6pt solid #ffc20e; padding-top: 6px; }
.sd-kicker { font-family: var(--font-cond); font-weight: 700; color: #555; margin: 0; }
.sd-meta { margin: 0; display: grid; gap: 2px; font-size: 9pt; }
.sd-meta div { display: grid; grid-template-columns: 32mm 1fr; gap: 6px; }
.sd-meta dt { color: #555; font-weight: 600; }
.sd-meta dd { margin: 0; font-weight: 700; }
.sd-hrcw ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 8mm; font-size: 8.5pt; }
.sd-hrcw li { display: flex; gap: 5px; break-inside: avoid; color: #777; }
.sd-hrcw li.on { color: #111; font-weight: 700; }
.sd-hrcw .box { flex: none; display: inline-grid; place-items: center; width: 10pt; height: 10pt; border: 1pt solid #111; font-size: 8pt; }
.sd-table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
.sd-table th, .sd-table td { border: 0.75pt solid #555; padding: 3px 4px; vertical-align: top; text-align: left; }
.sd-table th { background: #eee; font-weight: 700; }
.sd-table tr { break-inside: avoid; page-break-inside: avoid; }
.sd-table ul { margin: 0; padding-left: 12px; }
.sd-table td.risk { font-weight: 700; white-space: nowrap; }
.sd-table td.risk-high, .sd-table td.risk-extreme { background: #fbe5e8; }
.sd-table td.risk-medium { background: #fff1c7; }
.sd-table td.risk-low { background: #e2f2e8; }
.sd-table .lvl { display: inline-block; font-size: 6.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border: 0.5pt solid #555; padding: 0 2px; border-radius: 2px; color: #333; }
.sd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8mm; }
.swms-doc .swms-sec { margin: 6px 0; }
.swms-doc .swms-sec h3 { font-family: var(--font-cond); font-size: 11.5pt; }
.swms-doc .swms-sec.silica { background: #fff8dc; padding: 6px 8px; }
.sd-signon { break-before: page; page-break-before: always; }
.sd-sign td { height: 9mm; }
.sd-sign td img { max-height: 8mm; max-width: 45mm; }
.sd-sign th:nth-child(1) { width: 32%; } .sd-sign th:nth-child(2) { width: 25%; } .sd-sign th:nth-child(3) { width: 28%; }
.sd-note { font-style: italic; color: #333; }
.sd-foot { margin-top: 8px; font-size: 8pt; color: #555; border-top: 0.75pt solid #999; padding-top: 4px; }
@media (max-width: 640px) { .sd-head, .sd-cols { grid-template-columns: 1fr; } .swms-doc { padding: 16px; } .sd-table { font-size: 8pt; } .sd-hrcw ul { columns: 1; } }
@media print {
  .swms-print { background: #fff; padding: 0; min-height: 0; }
  .swms-doc { width: auto; margin: 0; padding: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .swms-doc .sd-table { font-size: 8pt; }
}
.step-card.is-removed { opacity: .6; box-shadow: none; border-style: dashed; }
.step-card.is-removed .ctl-list, .step-card.is-removed > .btn-secondary { display: none; }
.step-remove { margin: 10px 0 0; }
.step-risk-admin { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.step-risk-admin .pill { font-size: 12px; padding: 0 8px; }
.removed-steps { color: var(--ink-2); }
.sd-steps th:nth-child(1) { width: 4%; } .sd-steps th:nth-child(2) { width: 17%; } .sd-steps th:nth-child(3) { width: 22%; } .sd-steps th:nth-child(5) { width: 15%; }
/* SWMS front sheet, glossary, HRCW reasons */
.front-sheet { background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0 18px; box-shadow: 6px 6px 0 var(--accent); }
.front-sheet h3 { font-family: var(--font-cond); font-weight: 800; font-size: 28px; margin: 0 0 6px; }
.fs-label { font-weight: 700; margin: 10px 0 6px; }
.fs-stop { color: var(--stop-ink); }
.fs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fs-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; }
.fs-list .ic { flex: none; margin-top: 3px; color: var(--go-ink); }
.fs-stop-list .ic { color: var(--stop-ink); }
.glossary { margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 4px 14px; }
.glossary summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.glossary dl { margin: 0 0 10px; }
.glossary dt { font-weight: 700; margin-top: 8px; }
.glossary dd { margin: 2px 0 0; color: var(--ink-2); }
.hrcw-row { display: grid; gap: 6px; }
.hrcw-reason { margin: 0 0 4px 0; }
.hrcw-other { margin-top: 12px; }
.hrcw-other summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.sd-front .front-sheet { box-shadow: none; border-width: 2pt; font-size: 11pt; }
.sd-front .front-sheet h3 { font-size: 20pt; }
.sd-front .fs-list li { font-size: 11pt; }
.sd-after-front { break-before: page; page-break-before: always; }
.sd-glossary dl { margin: 0; display: grid; gap: 2px; }
.sd-glossary dl div { display: grid; grid-template-columns: 38mm 1fr; gap: 6px; }
.sd-glossary dt { font-weight: 700; }
.sd-glossary dd { margin: 0; }

/* ================= MULTI-BUILDER PLATFORM ================= */
/* brand lockup */
.brand-mark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { display: block; width: auto; object-fit: contain; flex: none; }
.brand-sm .brand-logo { height: 28px; max-width: 96px; }
.brand-md .brand-logo { height: 40px; max-width: 140px; }
.brand-lg .brand-logo { height: 64px; max-width: 220px; }
.brand-name { overflow-wrap: anywhere; }
.w-head .brand-mark { margin: 0 0 8px; }
.w-head .brand-logo { background: #fff; padding: 3px 5px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.w-brand { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.w-brand .brand-name { font-size: 19px; }
.w-head.is-compact .brand-logo { height: 24px; }
.a-brand .brand-logo { height: 30px; max-width: 88px; background: #fff; padding: 2px 4px; border-radius: 4px; }
.powered { margin: 28px 0 8px; text-align: center; font-size: 13px; color: var(--ink-2); letter-spacing: .01em; }
.powered strong { font-weight: 700; }
.w-foot { padding: 0 var(--gutter) 24px; }
.a-nav .powered { margin: 8px 16px 4px; text-align: left; color: #9da3a8; font-size: 12px; }

/* auth screens */
.login-card .help { margin-bottom: 4px; }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 6px; }
.demo-logins { margin: 14px 0 4px; padding: 10px 12px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-ink); font-size: 15px; }
.demo-logins p { margin: 0 0 6px; font-weight: 700; }
.demo-logins ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.demo-logins button { all: unset; cursor: pointer; display: grid; gap: 0; padding: 6px 8px; border-radius: 4px; width: 100%; box-sizing: border-box; min-height: 44px; }
.demo-logins button:hover, .demo-logins button:focus-visible { background: rgba(0,0,0,.06); outline: 2px solid currentColor; }
.demo-logins small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.demo-totp { font-family: var(--font-cond); font-size: 22px; letter-spacing: .12em; }
.code-input { letter-spacing: .35em; text-align: center; font-family: var(--font-cond); font-size: 30px; font-weight: 700; }
.totp-setup { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.totp-qr { background: #fff; padding: 8px; border: 2px solid var(--ink); border-radius: var(--radius); }
.totp-qr .qr { display: block; width: 100%; height: auto; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; overflow-wrap: anywhere; background: var(--surface-2); padding: 6px 8px; border-radius: 4px; }
@media (max-width: 560px) { .totp-setup { grid-template-columns: 1fr; } .totp-qr { max-width: 220px; } }

/* role chip in the admin nav */
.a-user { margin: 6px 16px 10px; font-size: 13px; color: #b7bcc1; line-height: 1.3; }
.a-user strong { display: block; color: #fff; font-size: 14px; overflow-wrap: anywhere; }
.a-nav-bottom { margin-top: auto; display: grid; }
.a-nav-bottom .a-logout { margin: 0 8px; }
.role-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #2a2c2e; color: #ffc20e; border: 1px solid #555; margin-top: 4px; }
@media (max-width: 900px) {
  .a-user, .a-nav .powered { display: none; }
  .a-nav-bottom { margin: 0; display: flex; }
}

/* view-as banner (read-only) */
.viewas-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px var(--gutter); background: #6b1d8f; color: #fff; font-weight: 600; font-size: 15px; border-bottom: 4px solid #1a1a1a; }
.viewas-bar strong { font-family: var(--font-cond); font-size: 18px; letter-spacing: .02em; }
.viewas-bar .btn { min-height: 40px; font-size: 16px; padding: 4px 12px; margin-left: auto; background: #fff; color: #1a1a1a; border-color: #fff; }
body.is-readonly .a-main [data-write], body.is-readonly .a-main .btn-primary:not([data-read]), body.is-readonly .a-main .btn-go, body.is-readonly .a-main .btn-danger-outline { display: none !important; }

/* suspended builder (worker page) */
.paused { margin: 0 0 18px; padding: 16px; border: 3px solid #1a1a1a; border-radius: var(--radius); background: var(--surface); box-shadow: 6px 6px 0 var(--stop); }
.paused h2 { font-family: var(--font-cond); font-weight: 800; font-size: 28px; line-height: 1.05; margin: 0 0 6px; }

/* users + platform tables */
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status-dot::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.status-dot.is-active::before { background: var(--go); }
.status-dot.is-invited::before { background: var(--yellow); box-shadow: 0 0 0 1px #1a1a1a inset; }
.status-dot.is-disabled::before, .status-dot.is-suspended::before { background: var(--stop); }
.site-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; padding: 8px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.site-checks .check-row { margin: 0; }
.dialog { border: 3px solid var(--ink); border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); }
.dialog::backdrop { background: rgba(0,0,0,.5); }
.dialog-in { padding: 20px; display: grid; gap: 6px; }
.dialog-in .a-h2 { margin-bottom: 8px; }
.invite-link { display: grid; gap: 6px; padding: 10px 12px; margin: 10px 0; border-left: 6px solid var(--go); background: var(--go-bg); border-radius: 4px; }
.invite-link code { overflow-wrap: anywhere; font-size: 14px; }
.p-nav .a-brand small { color: #c9a3ff; }
.p-mark { background: repeating-linear-gradient(-45deg, #1a1a1a 0 6px, #c9a3ff 6px 12px); border-color: #c9a3ff; }
.usage-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--ink); vertical-align: middle; margin-right: 6px; min-width: 2px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }

/* branding settings */
.brand-preview { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--bg); max-width: 420px; }
.brand-preview .w-head-in { padding: 14px 16px 16px; }
.brand-preview .w-site { font-size: 28px; }
.brand-preview .bp-body { padding: 12px 16px 16px; display: grid; gap: 8px; }
.logo-drop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-box { width: 160px; height: 80px; display: grid; place-items: center; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: #fff; overflow: hidden; }
.logo-box img { max-width: 150px; max-height: 70px; }
.colour-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.colour-row input[type="color"] { width: 56px; height: 52px; padding: 2px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.contrast-note { font-size: 15px; font-weight: 600; }
.contrast-note.ok { color: var(--go-ink); }
.contrast-note.bad { color: var(--stop-ink); }

/* poster + print branding */
.poster-brand { display: flex; align-items: center; gap: 2.4cqw; padding: 1.1cqw 5cqw; background: var(--pb-bg, #fff); color: var(--pb-fg, #111); border-bottom: .6cqw solid #111; }
.poster-brand img { height: 5.6cqw; max-width: 30cqw; object-fit: contain; background: #fff; padding: .5cqw .8cqw; border-radius: .6cqw; }
.poster-brand span { font-family: var(--font-cond); font-weight: 800; font-size: 3.6cqw; line-height: 1; }
.poster-brand small { display: block; font-family: var(--font); font-weight: 600; font-size: 2cqw; margin-top: .5cqw; opacity: .85; }
.poster-foot .pw { opacity: .75; font-weight: 500; }
.qc-brand { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin: 0; }
.qc-brand img { height: 9cqw; max-width: 40cqw; object-fit: contain; }
.qc-pw { font-size: 3cqw; color: #777; margin: 0; }
.sd-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sd-brand img { height: 34px; max-width: 140px; object-fit: contain; }
.sd-brand strong { font-family: var(--font-cond); font-size: 16pt; }
.login-wrap { width: min(460px, 100%); display: grid; gap: 4px; justify-self: center; margin-inline: auto; }
.login-wrap .login-card { width: 100%; }
.login-card.is-wide { width: min(640px, 100%); }
/* login: already logged in as someone else (reset / confirm links, "Log in to another account") */
.switch-card { display: grid; gap: 10px; padding: 14px 16px; margin: 0 0 8px; border: 2px solid var(--line, var(--ink-2)); border-radius: var(--radius); background: var(--surface-2); }
.switch-card p { margin: 0; overflow-wrap: anywhere; }
.switch-card .login-links { justify-content: center; margin-top: 0; }
.a-nav-bottom .a-switch { min-height: 40px; font-weight: 500; font-size: 14px; }
.login-wrap:has(.is-wide) { width: min(640px, 100%); }
.login-builder { margin: 0 0 6px; }
.tiles-col { display: grid; gap: 8px; }
.tiles-col .check-row small { display: block; color: var(--ink-2); font-weight: 400; }
.choose { margin: 4px 0 10px; }
.plain-steps { margin: 0 0 12px; padding-left: 22px; }
.tbl tr.row-muted td { opacity: .6; }
.tbl tr.row-total td { font-weight: 800; border-top: 2px solid var(--ink); }
.cell-stack { display: inline-grid; gap: 2px; }
.viewas-bar + .a-app .a-nav { top: 52px; height: calc(100vh - 52px); }
@media (max-width: 900px) { .viewas-bar + .a-app .a-nav { top: 0; height: auto; } .viewas-bar { position: relative; } }
.sd-pw { color: #777; }

/* posters with the builder band: tighten the safety header so the A4 still fits */
.poster:has(.poster-brand) .poster-top { padding: 2.6cqw 5cqw 1.8cqw; }
.poster:has(.poster-brand) .poster-must { font-size: 8.4cqw; margin-top: 1cqw; }
.poster:has(.poster-brand) .poster-scan { font-size: 3.9cqw; }
.poster:has(.poster-brand) .poster-qr-row { grid-template-columns: 34cqw 1fr; padding: 2.4cqw 5cqw 2cqw; }
.poster:has(.poster-brand) .poster-blocks { padding-top: 2cqw; }
.poster:has(.poster-brand) .poster-foot { margin-top: .8cqw; }

/* platform (Nanche) branding: login, office app, platform console */
.login-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 6px; color: var(--ink-2); }
.login-brand .platform-logo { height: 80px; max-width: 200px; }
.login-product { font-family: var(--font-cond); font-weight: 700; font-size: 17px; }
.a-brand { display: flex; align-items: center; gap: 10px; }
.a-brand .platform-logo { height: 56px; max-width: 84px; object-fit: contain; } /* gold on transparent: sits straight on the black sidebar */
.a-brand .brand-mark .brand-name { color: var(--accent-on-dark, var(--yellow)); font-size: 18px; }
.a-brand-text { display: block; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .a-brand .platform-logo { height: 36px; } }
:root[data-brand="platform"] .login-card::before { background: repeating-linear-gradient(-45deg, #1a1a1a 0 12px, var(--accent) 12px 24px); }
.a-brand .brand-mark { flex: none; }
.w-head .brand-md .brand-logo { height: 48px; max-width: 160px; }
.a-brand .brand-logo.platform-logo { background: none; padding: 0; border-radius: 0; }
.p-nav .a-brand small { color: var(--accent-on-dark, #c8982c); }
.pl-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.pl-swatch { margin: 0; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; place-items: center; gap: 8px; min-height: 140px; }
.pl-swatch img { max-height: 90px; max-width: 100%; object-fit: contain; }
.pl-swatch figcaption { font-size: 13px; color: #8d9399; }
.pl-chip { display: inline-block; padding: 2px 10px; border-radius: 4px; font-weight: 700; font-family: var(--font-cond); }
/* SWMS downloads */
.dl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; padding: 10px 12px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); }
.dl-bar .dl-fmt { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.dl-status { margin: 0; font-weight: 600; color: var(--ink-2); flex: 1 1 260px; display: inline-flex; align-items: center; gap: 8px; }
.dl-status:empty { display: none; }
.spinner { width: 16px; height: 16px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.tpl-sel { position: relative; }
.tpl-sel .tpl-item { padding-left: 52px; height: 100%; }
.tpl-check { position: absolute; left: 6px; top: 6px; width: 40px; height: 40px; display: grid; place-items: center; z-index: 1; cursor: pointer; }
.tpl-check input { width: 22px; height: 22px; accent-color: var(--ink); cursor: pointer; }
.tpl-row { display: grid; gap: 4px; }
.tpl-blank { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 15px; color: var(--ink-2); order: 2; }
.tpl-blank .linklike { min-height: 40px; display: inline-flex; align-items: center; gap: 4px; }
.write-line { display: block; height: 1.6em; border-bottom: 1px solid #888; margin-bottom: 4px; min-width: 200px; }
.a-brand-text { font-size: 19px; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.pass-brand { display: flex; justify-content: flex-start; margin: 0 0 12px; }
.pass-brand .brand-mark { background: #fff; color: #1a1a1a; padding: 6px 10px; border-radius: var(--radius); box-shadow: 0 0 0 2px rgba(0,0,0,.15); font-family: var(--font-cond); font-weight: 700; font-size: 18px; }
.pass-brand .brand-logo { height: 40px; max-width: 150px; }

/* =====================================================================
   Round 2 (ROUND2.md items 1–8, ROUND2B A–C)
   ===================================================================== */
/* RTL (Arabic): flip layout, keep phone numbers and codes left-to-right */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .btn-back .ic, [dir="rtl"] .btn .ic svg path[d^="M9 5l7"] { transform: scaleX(-1); }
[dir="rtl"] .callout { border-left: 0; border-right: 6px solid; }
[dir="rtl"] .nowrap, [dir="rtl"] input[type=tel], [dir="rtl"] .mono, [dir="rtl"] .pass-time { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .slide-points li, [dir="rtl"] .decl-list li { text-align: right; }
[dir="rtl"] .quiz-opt { text-align: right; }
.lang-row { display: flex; justify-content: flex-end; margin: -6px 0 10px; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 22px; background: var(--surface); font-weight: 700; cursor: pointer; }
.lang-btn:disabled { opacity: .6; }
.lang-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.lang-opt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); text-align: start; cursor: pointer; font-size: 19px; }
.lang-opt span { color: var(--ink-2); font-size: 15px; }
.lang-opt.is-on { border-color: var(--ink); background: var(--accent); color: var(--on-accent); }
.lang-opt.is-on span { color: var(--on-accent); }
.lang-opt:disabled { opacity: .55; cursor: not-allowed; }
.i18n-notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin: 0 0 14px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); font-size: 15px; }
.i18n-notice p { margin: 0; display: grid; gap: 2px; }
.i18n-notice small { color: var(--ink-2); }
.i18n-en { font-size: 14px; color: var(--ink-2); }

/* offline */
.net-bar { display: flex; align-items: center; gap: 10px; padding: 10px var(--gutter); background: var(--surface-2); border-bottom: 2px solid var(--line); font-size: 16px; }
.net-bar.is-off { background: #1a1a1a; color: #fff; }
.net-bar.is-off .ic { color: var(--yellow); }
.net-bar.has-queue:not(.is-off) { background: var(--warn-bg); color: var(--warn-ink); }
.net-bar > span:not(.ic) { flex: 1; }
.net-bar > .ic { flex: none; }
.net-count { font-weight: 600; }
.pass-pending { display: inline-block; margin: 6px 0; padding: 6px 12px; border-radius: 4px; background: #1a1a1a; color: var(--yellow); font-weight: 700; font-size: 16px; }
.pass.is-pending { background: var(--stripe); }
.pass.is-pending .pass-in { background: var(--surface); color: var(--ink); }
.pass.is-pending .pass-site { border-top-color: var(--line); }
.pass.is-pending .pass-tick { background: var(--warn-bg); color: var(--warn-ink); }
.out-card.is-queued .ic-xl { color: var(--ink-2); }
.roll-offline { display: flex; gap: 10px; align-items: flex-start; margin: 0 var(--gutter) 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--yellow); color: #1a1a1a; font-size: 17px; }
.roll-offline .ic { width: 28px; height: 28px; }
.quick-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .quick-4 { grid-template-columns: repeat(2, 1fr); } }

/* warnings at sign-in */
.signin-warnings .callout { margin-bottom: 10px; }

/* video */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.video-el { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-progress { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin: 6px 0 10px; }
.video-progress > span { display: block; height: 100%; width: 0; background: var(--go); transition: width .4s; }
.video-step.is-done .video-status { color: var(--go-ink); font-weight: 700; }
.video-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.video-list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.video-kind { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-cond); font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #1a1a1a; color: var(--yellow); font-size: 14px; }
.video-meta { flex: 1; display: grid; }
.video-meta small { color: var(--ink-2); }
.hscp-card { margin: 14px 0; padding: 12px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); }

/* forms: permits, conditional, critical */
.field.is-required .req-when { display: inline; }
.req-when { display: none; }
.crit-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 3px; background: var(--stop); color: #fff; font-family: var(--font-cond); font-size: 14px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; }
.field.is-critical { border-left: 4px solid var(--stop); padding-left: 10px; }
.crit-msg { display: flex; gap: 6px; align-items: center; margin: 6px 0 0; color: var(--stop-ink); font-weight: 700; font-size: 16px; }
.permit-block { position: sticky; bottom: 0; z-index: 4; margin: 14px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--stop); color: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.2); }
.permit-block-title { display: flex; gap: 8px; align-items: center; font-family: var(--font-cond); font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.permit-block ul { margin: 0; padding-left: 20px; max-height: 30vh; overflow: auto; }
.permit-block li { margin: 2px 0; }
.permit-block li span { display: block; font-size: 14px; opacity: .9; }
.btn.is-blocked { background: var(--surface-2); color: var(--stop-ink); border-color: var(--stop); }
.readonly-val { display: block; padding: 10px 12px; border: 2px dashed var(--line-strong); border-radius: var(--radius); font-weight: 700; }
.warn-if { margin-top: 8px; }
.psy-help, .anon-note { margin-top: 10px; }
.permit-actions { flex-wrap: wrap; }

/* AI draft */
.ai-badge { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin: 0 0 14px; border-radius: var(--radius); background: repeating-linear-gradient(-45deg, var(--warn-bg) 0 14px, var(--surface) 14px 28px); border: 2px solid var(--yellow); font-size: 15px; }
.ai-badge strong { display: block; font-family: var(--font-cond); font-size: 20px; }
.tile-ai strong .ic { color: var(--warn-ink); }
.sd-ai { font-weight: 700; }

/* admin shell: more nav items */
.a-nav ul.a-nav-main { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding-bottom: 8px; }
.a-nav ul.a-nav-main a { min-height: 40px; padding: 6px 12px; }
.a-nav .a-nav-more a { min-height: 32px; font-weight: 500; font-size: 14px; color: #b9bdc1; padding-left: 48px; }
.a-nav .a-nav-more:first-of-type { margin-top: 6px; border-top: 1px solid #333; padding-top: 6px; }
@media (max-width: 900px) { .a-nav .a-nav-more a { padding-left: 10px; } .a-nav .a-nav-more:first-of-type { border-top: 0; margin: 0; padding: 0; } }
.a-foot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }
.disclaimer { color: var(--ink-2); font-size: 13px; margin: 14px 0 0; }
.disclaimer .ic { width: 14px; height: 14px; vertical-align: -2px; }
.row-warn td { background: var(--warn-bg); }
.bad-text { color: var(--stop-ink); }
.dialog.is-wide { max-width: min(760px, 96vw); width: 96vw; }
.dialog .grid-2 { margin-bottom: 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.input-sm { min-height: 36px; padding: 4px 8px; font-size: 14px; }
.invite-code { display: block; padding: 10px; word-break: break-all; background: var(--surface-2); border-radius: 4px; }
.due { display: inline-flex; gap: 4px; align-items: center; }
.due.is-over { color: var(--stop-ink); font-weight: 700; }
.due.is-soon { color: var(--warn-ink); font-weight: 700; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.doc-row.is-bad { border-color: var(--stop); }
.doc-main { display: grid; gap: 4px; min-width: 0; }
.doc-main small { color: var(--ink-2); }
@media (max-width: 600px) { .doc-row { flex-direction: column; } }

/* portal */
.portal-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-weight: 600; }
.portal-sec { margin: 22px 0; }
.portal-sec > .w-h3 { display: flex; align-items: center; gap: 8px; }
.portal-upload { margin-top: 14px; padding: 14px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.portal-actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.portal-action { padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.portal-action.is-bad { border-color: var(--stop); }

/* packs */
.pack-progress { height: 16px; border-radius: 8px; }
.pack-job.is-bad { border-color: var(--stop); }

/* legal */
.legal-wrap { max-width: 760px; }
.legal-text { max-height: 46vh; overflow: auto; margin: 12px 0 16px; padding: 14px 16px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); font-size: 15px; }
.legal-text.is-inline { max-height: none; background: transparent; border: 0; padding: 0; }
.legal-text h2 { font-size: 20px; margin: 14px 0 6px; } .legal-text h3 { font-size: 17px; margin: 12px 0 4px; }
.legal-step { font-family: var(--font-cond); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin: 0; }

/* notifications matrix */
.tbl.mx th[scope=row] { text-align: left; min-width: 230px; font-weight: 400; }
.mx-ev { display: grid; gap: 2px; } .mx-ev small { color: var(--ink-2); font-size: 13px; }
.mx td { text-align: center; }
.mx-check { position: relative; display: inline-flex; width: 30px; height: 30px; cursor: pointer; }
.mx-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mx-check .check-box { width: 26px; height: 26px; }
.mx-check input:checked + .check-box { background: var(--go); border-color: var(--go); color: #fff; }
.mx-check input:disabled + .check-box { opacity: .4; }
.mx-check input:focus-visible + .check-box { outline: 3px solid var(--ink); outline-offset: 2px; }
.mx-extra { font-size: 14px; white-space: nowrap; }

/* invoices */
.inv-lines input.num, .input.num { text-align: right; }
.inv-lines td { vertical-align: middle; }
.inv-lines tfoot td { font-weight: 600; }
.inv-total td { font-size: 1.15em; font-weight: 800; border-top: 3px solid var(--ink); }
.invoice-doc { max-width: 210mm; margin: 0 auto; padding: 18mm 16mm; background: #fff; color: #1a1a1a; font-size: 11pt; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 4px solid #c8982c; padding-bottom: 12px; }
.inv-title h1 { font-family: var(--font-cond); font-size: 30pt; text-transform: uppercase; margin: 0 0 8px; text-align: right; }
.inv-title dl { display: grid; gap: 2px; margin: 0; }
.inv-title dl div { display: flex; justify-content: space-between; gap: 18px; } .inv-title dt { color: #555; } .inv-title dd { margin: 0; font-weight: 700; }
.inv-seller { margin-top: 8px; font-size: 10pt; }
.inv-buyer { margin: 16px 0; }
.inv-table { width: 100%; border-collapse: collapse; }
.inv-table th, .inv-table td { padding: 8px 6px; border-bottom: 1px solid #ccc; text-align: left; } .inv-table .num { text-align: right; }
.inv-paid { margin: 14px 0; display: inline-block; padding: 6px 14px; border: 3px solid #00843d; color: #00843d; font-weight: 800; transform: rotate(-3deg); }
.inv-paid.is-void { border-color: #c8102e; color: #c8102e; }
.inv-pay { margin-top: 18px; padding: 10px 12px; background: #f3f4f4; }
.inv-foot { margin-top: 24px; font-size: 9pt; color: #555; }
@media print { .a-foot { display: none; } }
@media (max-width: 640px) { .inv-head { flex-direction: column; } .inv-title h1 { text-align: left; } .invoice-doc { padding: 16px; } }

/* ---------- round 2C: user management, profile, report a problem, system alerts ---------- */
.um-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.um-filters input[type=search] { flex: 1 1 240px; max-width: 360px; }
.um-filters select { flex: 0 1 220px; width: auto; }
.um-filters .help { margin: 0 0 0 auto; }
.um-dialog .um-sec { border-top: 2px solid var(--line); padding-top: 12px; margin-top: 14px; }
.um-dialog .um-sec:first-of-type { border-top: 0; }
.um-dialog .a-h3 { margin: 0 0 8px; }
.btn-row.wrap { flex-wrap: wrap; }
.warn-text { color: var(--warn-ink); font-weight: 600; }
.report-problem { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.report-problem .ic { width: 18px; height: 18px; }
.login-help { justify-content: center; margin-top: 4px; }
.w-help-link { margin: 0 0 8px; text-align: center; }
.support-dialog .help .ic { width: 16px; height: 16px; vertical-align: -3px; }
.profile-box:empty { display: none; }
.profile-box .panel { margin-bottom: 16px; }
.stat.is-bad .stat-n { color: var(--stop-ink); }
.stat.is-warn .stat-n { color: var(--warn-ink); }
@media (max-width: 640px) {
  .um-filters input[type=search], .um-filters select { flex: 1 1 100%; max-width: none; }
  .um-filters .help { margin: 0; }
}

/* Desktop nav: the link list scrolls when the window is short, so the "more" links never slide under the user block. */
@media (min-width: 901px) {
  .a-nav ul { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; scrollbar-width: thin; scrollbar-color: #444 transparent; }
  .a-nav-bottom { flex: none; padding-top: 6px; border-top: 1px solid #2c2e30; }
}
@media (min-width: 901px) and (max-height: 860px) { .a-nav a { min-height: 38px; padding-top: 6px; padding-bottom: 6px; } .a-brand { padding-top: 12px; padding-bottom: 12px; } }

/* RTL: names and addresses typed in English keep their own word order (e.g. "12 Example Street"). */
html[dir=rtl] .w-site, html[dir=rtl] .w-site-sm, html[dir=rtl] .w-addr-sm, html[dir=rtl] .w-addr, html[dir=rtl] .pass-site, html[dir=rtl] .pass-name, html[dir=rtl] .w-brand, html[dir=rtl] .site-addr { unicode-bidi: plaintext; text-align: right; }
.um-act-out:not(:empty) { margin-top: 10px; }
/* "Check wording" (AI proofread suggestion, never applied automatically) */
.proof-wrap { margin-top: 6px; }
.proof-btn .ic { color: var(--accent-ink, #8a6a00); }
.proof-card { margin-top: 8px; padding: 10px 12px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.proof-title { margin: 0 0 6px; font-weight: 700; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.proof-title small { font-weight: 500; color: var(--ink-2); }
.proof-text { margin: 0 0 8px; white-space: pre-wrap; }
.proof-changes { margin: 0 0 8px; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.proof-ok .ic { color: var(--go-ink); }
/* IP review: footer links to open-source licences and content sources */
.ip-links { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.a-foot .ip-links { text-align: left; }
.copyright { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); text-align: center; }
.a-foot .copyright { text-align: left; }
.legal-entity { font-weight: 400; color: var(--ink-2); }
.legal-owner { margin-top: -4px; }
.ip-links .linklike { min-height: 32px; font-weight: 600; font-size: 14px; color: inherit; }
.notices-pre { white-space: pre-wrap; max-height: 60vh; overflow: auto; font-size: 13px; background: var(--surface-2); padding: 10px; border-radius: var(--radius); }
.src-list { font-size: 14px; overflow-wrap: anywhere; }

/* ---------- Part 2E: builder self-registration, pending page, onboarding, registrations console ---------- */
.reg-page .login-title { margin-bottom: 2px; }
.reg-lead { margin: 0 0 4px; }
.reg-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; padding: 0; list-style: none; counter-reset: reg; font-size: 15px; color: var(--ink-2); }
.reg-steps li { counter-increment: reg; display: flex; align-items: center; gap: 6px; }
.reg-steps li::before { content: counter(reg); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 13px; }
.reg-section { border: 0; border-top: 2px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; min-width: 0; }
.reg-section legend { padding: 0 8px 0 0; font-family: var(--font-cond); font-weight: 700; font-size: 22px; letter-spacing: .01em; }
.reg-section .grid-2 { gap: 0 16px; }
@media (max-width: 560px) { .reg-section .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.abn-state { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 4px; min-height: 0; }
.abn-state:empty { display: none; }
.abn-state .ic svg { width: 18px; height: 18px; }
.abn-state.is-ok { color: var(--go-ink); }
.abn-state.is-bad { color: var(--stop-ink); }
.pw-meter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 140px; }
.pw-meter span { height: 8px; border-radius: 4px; background: var(--line); }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--stop); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: #d48a00; }
.pw-meter[data-score="3"] span:nth-child(-n+3), .pw-meter[data-score="4"] span { background: var(--go); }
.pw-meter-text { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); flex: 1 1 auto; }
.pw-meter-text:empty { display: none; }
.pw-toggle { font-size: 14px; min-height: 32px; }
.agree-list { display: grid; gap: 8px; }
.agree-row { display: flex; align-items: stretch; gap: 8px; }
.agree-row .check-row { flex: 1 1 auto; min-width: 0; }
.agree-read { flex: none; align-self: center; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.captcha-box { margin: 12px 0 4px; min-height: 65px; }
.form-error-box { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 4px; padding: 10px 12px; border: 2px solid var(--stop); border-radius: var(--radius); background: var(--stop-bg); color: var(--stop-ink); font-weight: 600; }
.form-error-box[hidden] { display: none; }
.reg-fine { margin-top: 10px; font-size: 13.5px; }
.reg-notice { margin: 14px 0 4px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 14.5px; color: var(--ink-2); }
.reg-notice-title { margin: 0 0 4px; font-family: var(--font-cond); font-weight: 700; font-size: 18px; color: var(--ink); }
.reg-notice ul { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 3px; }
.reg-notice p { margin: 0; }
.reg-notice strong { color: var(--ink); }
.reg-notice .text-link, .inline-link { display: inline; min-height: 0; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; } /* inline link in a sentence (WCAG 2.5.8 inline exception) */
.login-register { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); width: 100%; font-weight: 600; }
.reg-kv { margin: 6px 0 10px; }
.onboarding { margin-bottom: 18px; border: 2px solid var(--ink); }
.onboarding .a-h2 .ic { color: var(--accent); }
.onb-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 2px 0 10px; }
.onb-bar span { display: block; height: 100%; background: var(--go); }
.onb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.onb-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); flex-wrap: wrap; }
.onb-list li.is-done { background: var(--go-bg); border-color: transparent; }
.onb-list li.is-done strong { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-2); }
.onb-tick { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); color: var(--go-ink); }
.onb-list li.is-done .onb-tick { border-color: var(--go); background: var(--go); color: #fff; }
.onb-tick .ic svg { width: 18px; height: 18px; }
.onb-text { flex: 1 1 220px; min-width: 0; }
.onb-text small { display: block; color: var(--ink-2); font-size: 14px; }
.onb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.onb-foot { margin: 8px 0 0; text-align: right; font-size: 14px; }
.trial-banner { margin-bottom: 14px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: auto; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.nav-badge[hidden] { display: none; }
.tab .nav-badge { margin-left: 6px; }
a.tab { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
a.tab.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tabs { margin: 0 0 14px; }
.fchip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border: 2px solid var(--line); border-radius: 20px; background: var(--surface); color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; }
.fchip.is-on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.fchip-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--surface-2); color: var(--ink); font-size: 13px; }
.radio-list { display: grid; gap: 6px; margin: 0 0 10px; }
.radio-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--ink); }
.radio-row input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.radio-row small { display: block; color: var(--ink-2); font-size: 14px; font-weight: 400; }
.approve-plan { margin-top: 8px; padding: 10px 12px 2px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.share-box .share-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.share-box .share-link { flex: 1 1 260px; min-width: 0; font-size: 15px; }
.ua-line { display: block; word-break: break-word; }
@media (max-width: 560px) { .agree-row { flex-direction: column; } .agree-read { align-self: flex-end; } }

/* ---------- Part 2F: location snapshots ---------- */
.loc-notice p { font-size: 18px; line-height: 1.45; margin: 0; }
.loc-away { margin: 12px 0; }
.loc-cell { text-decoration: none; white-space: nowrap; }
.loc-panel .kv-list > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.loc-panel dt { font-weight: 700; color: var(--ink-2); }
.loc-panel dd { margin: 0; overflow-wrap: anywhere; }
.loc-panel .btn { margin-top: 10px; }
[data-site-location-edit] .btn-row { flex-wrap: wrap; }

/* ---------- Part 2G: SWMS template updates (badge, "What changed" panel, changed-step markers) ---------- */
:root { --info-ink: #1d4f7a; --info-bg: #e2edf7; --info: #2f6fa8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --info-ink: #a8d0f5; --info-bg: #142a3d; --info: #5b9bd5; } }
:root[data-theme="dark"] { --info-ink: #a8d0f5; --info-bg: #142a3d; --info: #5b9bd5; }
.tu-badge { font-size: 13px; padding: 1px 9px; white-space: normal; }
.tu-badge .ic { width: 14px; height: 14px; }
.tu-badge.tu-legal { background: var(--stop-bg); color: var(--stop-ink); border-color: var(--stop); }
.tu-badge.tu-safety { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--yellow); }
.tu-badge.tu-improvement { background: var(--info-bg); color: var(--info-ink); border-color: transparent; }
.tu-badge.tu-reviewed { background: transparent; color: var(--ink-2); border-style: dashed; }
.tu-panel { border-left: 6px solid var(--info); margin-bottom: 16px; }
.tu-panel.tu-legal { border-left-color: var(--stop); }
.tu-panel.tu-safety { border-left-color: var(--yellow); }
.tu-panel.tu-reviewed { border-left-color: var(--line-strong); }
.tu-panel-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.tu-panel-head .a-h2 { margin: 0; }
.tu-entries { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 10px; }
.tu-entry { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius); }
.tu-entry p { margin: 4px 0 0; }
.tu-entry.is-reviewed { opacity: .8; }
.tu-entry-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-weight: 700; }
.tu-meta { font-size: 15px; color: var(--ink-2); }
.tu-meta a { display: inline-flex; gap: 4px; align-items: center; }
.tu-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tu-review-form { margin-top: 12px; display: grid; gap: 8px; }
.tu-wiz-note { display: flex; gap: 6px; align-items: center; margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius); background: var(--info-bg); color: var(--info-ink); font-weight: 600; font-size: 15px; }
.tu-from { align-items: center; }
.step-card.is-changed { border-color: var(--yellow); outline: 3px solid var(--warn-bg); }
.step-flag { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 4px 0 8px; padding: 4px 10px; border-radius: 999px; width: fit-content; max-width: 100%;
  background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; font-size: 14px; }
.step-flag small { font-weight: 600; }
.ctl.is-carried { outline: 2px dashed var(--line-strong); outline-offset: 2px; border-radius: 4px; }
.ctl-carried { grid-column: 1 / -1; display: flex; gap: 4px; align-items: center; font-size: 13px; color: var(--warn-ink); font-weight: 700; }
.tu-count-urgent { color: var(--stop-ink); font-weight: 700; }
