@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Railroad design system: "Kitchen Colour Code".
   Bright white wall chart, navy ink, stainless-grey chrome. Colour is rationed:
   blue = action, green/amber/red = status (always with a shape and a word), department tab = identity.
   Light by default. Dark is opt-in via [data-theme="dark"] (toggle in the sidebar). Change tokens here and every screen follows. */
:root {
  /* Matches Stewarding OS: navy brand, one cool slate neutral family, Geist + Geist Mono, navy-tinted shadows. */
  --navy: #0f1f3d;
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f3f5f8; --surface-3: #e8ecf1; --line: #dce2ea; --line-strong: #c5cedb; --line-soft: #e8ecf1;
  --ink: #0e1a2b; --ink-2: #435066; --muted: #637086;
  --primary: #1e3a8a; --primary-strong: #172e70; --primary-hover: #3753a3; --primary-ink: #ffffff; --primary-soft: #e9edf7;
  --ok: #17743f; --ok-soft: #e3f5e9; --ok-fill: #1b8a4c;
  --warn: #a85408; --warn-soft: #fdf1dc; --warn-fill: #e2a33b; --warn-mark: #c97700;
  --bad: #c23a32; --bad-soft: #fbe9e9; --bad-fill: #d9453b;
  --info: #12708f; --info-soft: #e2f1f8;
  --open-fill: #7d94ae;
  --dept-0: #3947c4; --dept-1: #0b7e82; --dept-2: #6a43bf; --dept-3: #ad225c; --dept-4: #2d6d9e; --dept: var(--dept-0); --dept-ink: #ffffff;
  --radius: 1rem; --radius-sm: .75rem; --r-xs: .375rem; --r-sm: .5rem; --r-md: .75rem; --r-lg: 1rem; --r-xl: 1.25rem;
  --shadow-xs: 0 1px 2px rgb(15 31 61 / .06);
  --shadow: 0 1px 2px rgb(15 31 61 / .05), 0 2px 6px rgb(15 31 61 / .05);
  --shadow-lift: 0 2px 4px rgb(15 31 61 / .05), 0 8px 20px rgb(15 31 61 / .07);
  --ring: 0 0 0 3px rgb(30 58 138 / .14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --navy: #0b1320;
  --bg: #0b1320; --surface: #111b2b; --surface-2: #0b1320; --surface-3: #18243a; --line: #243249; --line-strong: #33445f; --line-soft: #1d2b42;
  --ink: #e7ecf3; --ink-2: #aab5c6; --muted: #8794a8;
  --primary: #8fa8ee; --primary-strong: #b3c4f5; --primary-hover: #b3c4f5; --primary-ink: #0b1320; --primary-soft: #1a2845;
  --ok: #6fd6a0; --ok-soft: #14382a; --ok-fill: #2fbb77;
  --warn: #f2c14e; --warn-soft: #3b2f0e; --warn-fill: #f4b115; --warn-mark: #f4b115;
  --bad: #ff9187; --bad-soft: #43201d; --bad-fill: #ee5a4c;
  --info: #7cc8e4; --info-soft: #12303d;
  --open-fill: #7189a8;
  --dept-0: #8a97ff; --dept-1: #4ec7ca; --dept-2: #b196ff; --dept-3: #ff82b3; --dept-4: #78b5e6; --dept-ink: #0b1522;
  --shadow-xs: 0 1px 2px rgb(0 0 0 / .3);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 2px 6px rgb(0 0 0 / .2); --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 8px 20px rgb(0 0 0 / .3);
  --ring: 0 0 0 3px rgb(143 168 238 / .25);
  color-scheme: dark;
}
.dept-0 { --dept: var(--dept-0); } .dept-1 { --dept: var(--dept-1); } .dept-2 { --dept: var(--dept-2); } .dept-3 { --dept: var(--dept-3); } .dept-4 { --dept: var(--dept-4); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); font-feature-settings: "tnum" 0, "ss01" 0; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; accent-color: var(--primary); }
h1, h2, h3 { letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: 1.9rem; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 .35rem; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .8rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: 0 0 .8rem; text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 2px; } a:hover { color: var(--primary-strong); }
code { font-family: var(--font-mono); font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
::selection { background: var(--primary-soft); color: var(--ink); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nw { white-space: nowrap; }
td, th, .stat b, .badge, progress, .who-line { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; border-radius: 8px; }
* { scrollbar-color: var(--line) transparent; }

/* ---- shell: light sidebar, department tab, content */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.side { background: var(--surface); border-right: 1px solid var(--line-soft); padding: 18px 14px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.deptchip { display: block; margin: 0 0 14px; padding: 11px 13px; border-radius: 12px; background: var(--dept); color: var(--dept-ink); text-decoration: none; line-height: 1.25; }
.deptchip b { display: block; font-size: .98rem; } .deptchip span { font-size: .8rem; opacity: .9; }
.side a.nav { display: flex; align-items: center; gap: 11px; color: var(--ink-2); text-decoration: none; padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 560; transition: background .15s, color .15s; }
.ico { width: 20px; height: 20px; flex: none; opacity: .8; } .side a.nav[aria-current="page"] .ico { opacity: 1; }
.side a.nav:hover { background: var(--surface-2); color: var(--ink); }
.side a.nav[aria-current="page"] { background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; }
.side .who { margin-top: auto; padding: 12px 6px 2px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--dept); color: var(--dept-ink); display: grid; place-items: center; font-weight: 700; font-size: .82rem; }
.who-meta { min-width: 0; font-size: .85rem; line-height: 1.3; } .who-meta a { color: var(--ink); font-weight: 650; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who button, .linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .82rem; color: var(--muted); text-decoration: underline; cursor: pointer; } .who button:hover, .linkbtn:hover { color: var(--ink); }
.theme-btn { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.theme-btn:hover { background: var(--surface-2); } .theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.main { min-width: 0; padding: 30px clamp(16px, 4vw, 44px) 56px; max-width: 1280px; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.head p { margin: 0; }

/* ---- surfaces */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.mb { margin-bottom: 20px; } .my { margin: 22px 0; } .mt { margin-top: 22px; }
.narrow { max-width: 540px; } .narrow2 { max-width: 640px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; font-weight: 560; }
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.flash.error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.flash.info { background: var(--primary-soft); color: var(--primary-strong); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- status tiles: filters, not decoration. The tab on top is the colour code. */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); margin-bottom: 22px; }
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: space-between; gap: 8px; min-height: 112px; background: var(--zone-soft); border: 1px solid color-mix(in srgb, var(--zone-fill) 22%, transparent); border-radius: var(--radius); padding: 16px 18px 14px; text-decoration: none; color: var(--ink); --zone: var(--primary-strong); --zone-fill: var(--primary); --zone-soft: var(--surface); }
.stat b { display: block; font-size: 2.5rem; line-height: 1; letter-spacing: -.04em; font-weight: 700; color: var(--zone); }
.stat span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.stat span::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--zone-mark, var(--zone-fill)); border-radius: 50%; }
.zone-warn span::before { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); } .zone-bad span::before { border-radius: 2px; } .zone-open span::before { background: transparent; border: 2px solid var(--primary); } .zone-plain span::before { display: none; }
a.stat { transition: transform .15s, box-shadow .15s; } a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.stat.is-on { outline: 2px solid var(--zone-fill); outline-offset: 2px; }
.zone-ok { --zone: var(--ok); --zone-fill: var(--ok-fill); --zone-soft: var(--ok-soft); } .zone-warn { --zone: var(--warn); --zone-fill: var(--warn-fill); --zone-mark: var(--warn-mark); --zone-soft: var(--warn-soft); } .zone-bad { --zone: var(--bad); --zone-fill: var(--bad-fill); --zone-soft: var(--bad-soft); }
.zone-open { --zone: var(--primary-strong); --zone-fill: var(--primary); --zone-soft: var(--primary-soft); } .zone-plain { --zone: var(--ink); --zone-fill: var(--open-fill); --zone-soft: var(--surface); border-color: var(--line-soft); box-shadow: var(--shadow); }
.t-ok { color: var(--ok); } .t-bad { color: var(--bad); } .t-warn { color: var(--warn); }
.rate-note { margin: -8px 0 20px; }
.outcome { margin: 4px 0 8px; } .outcome svg { display: block; width: 100%; height: 14px; border-radius: 8px; overflow: hidden; background: var(--line-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: .85rem; color: var(--ink-2); } .legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: transparent; border: 0; }
.table-wrap table { min-width: 580px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 650; white-space: nowrap; }
tbody tr { transition: background .12s; } tbody tr:hover td { background: var(--surface-2); } tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; }

/* ---- status chips: colour + shape + word (never colour alone) */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 99px; font-size: .8rem; font-weight: 650; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-soft); white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .badge.ok::before { background: var(--ok-fill); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .badge.warn::before { background: var(--warn-mark); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .badge.bad::before { background: var(--bad-fill); border-radius: 2px; }
.badge.info { background: var(--primary-soft); color: var(--primary-strong); border-color: transparent; } .badge.info::before { background: transparent; border: 2px solid var(--primary); }

/* ---- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 650; padding: 9px 17px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; min-height: 42px; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); color: var(--ink); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgb(26 95 200 / .3); } .btn.primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: var(--primary-ink); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); } .btn.danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn.sm { padding: 4px 12px; min-height: 34px; font-size: .86rem; } .btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .actions form, .inline { display: inline; }
label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 5px; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; padding: 10px 13px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--primary); }
.field { margin-bottom: 16px; } .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; } .help { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; } .toolbar .field { margin: 0; flex: 1 1 220px; }
.check { display: flex; gap: 9px; align-items: center; font-weight: 560; margin-bottom: 7px; color: var(--ink); } fieldset { border: 0; padding: 0; margin: 0 0 16px; } legend { font-weight: 650; margin-bottom: 7px; color: var(--ink-2); }
.daypick { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px 26px; } .daypick .check { margin: 0; }
.helpers { max-height: 190px; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
details.more > summary, details.filters > summary { cursor: pointer; color: var(--primary); font-weight: 600; padding: 4px 0; } details.more { padding-bottom: 6px; } td .more input, td .more select { margin: 5px 0; }
details.card.filters { padding: 12px 18px; box-shadow: none; background: transparent; border-style: dashed; border-color: var(--line); } details.card.filters[open] { background: var(--surface); border-style: solid; box-shadow: var(--shadow); padding: 16px 20px 18px; }
details.filters > summary { list-style: none; display: flex; gap: 10px; align-items: baseline; color: var(--ink); } details.filters > summary::-webkit-details-marker { display: none; }
details.filters > summary::before { content: ""; width: 10px; height: 10px; background: var(--muted); clip-path: polygon(15% 0, 100% 50%, 15% 100%); transition: transform .15s; align-self: center; } details.filters[open] > summary::before { transform: rotate(90deg); }
details.filters form { margin-top: 14px; } .fgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .filters .field { margin-bottom: 4px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 14px 0 4px; }
ul.plain { margin: 0 0 10px; padding-left: 20px; } pre.codes { font: 650 1.05rem/1.75 var(--font-mono); margin: 8px 0 0; letter-spacing: .04em; }

/* ---- charts */
svg.trend { width: 100%; height: 120px; display: block; } .b-ok { fill: var(--ok-fill); } .b-warn { fill: var(--warn-mark); } .b-bad { fill: var(--bad-fill); } .b-open { fill: var(--open-fill); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-left: 10px; } .key.b-ok { background: var(--ok-fill); } .key.b-warn { background: var(--warn-mark); } .key.b-bad { background: var(--bad-fill); } .key.b-open { background: var(--open-fill); }

/* ---- builder, QR, preview */
.sec { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.sec-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; } .sec-head input { font-weight: 700; flex: 1 1 200px; width: auto; }
.task { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 9px; }
.task .t2 { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; } .task .t2 label { display: inline-flex; gap: 7px; align-items: center; margin: 0; font-weight: 560; }
.mini { display: flex; flex-direction: column; gap: 5px; } .mini .btn { padding: 2px 10px; min-height: 30px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qr-card { display: grid; grid-template-columns: 124px 1fr; gap: 18px; align-items: start; } .qr-card img, .mfa-qr { width: 124px; height: 124px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 5px; } .qr-card.revoked img { opacity: .35; } .mfa-qr { width: 200px; height: 200px; padding: 8px; }
.preview-task { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); } .preview-task:last-child { border: 0; } .box { width: 28px; height: 28px; border: 2.5px solid var(--muted); border-radius: 8px; flex: none; }
a.tile { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; } a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--primary); }

/* ---- sign-in and error pages: the colour code as a signature strip */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, 5fr) 6fr; background: var(--surface); }
.auth-side { display: flex; flex-direction: column; gap: 28px; padding: 40px clamp(28px, 5vw, 64px); background: #123f86; color: #fff; }
.auth-side .brand { color: #fff; padding: 0; font-size: 1.3rem; } .auth-side .brand img { border-radius: 10px; }
.auth-pitch { margin-top: auto; } .auth-pitch h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; color: #fff; margin: 0 0 14px; max-width: 14em; } .auth-pitch p { color: #dbe7fb; font-size: 1.05rem; max-width: 30em; }
.auth-points { list-style: none; margin: 0 0 auto; padding: 22px 0 0; border-top: 1px solid rgb(255 255 255 / .22); display: grid; gap: 10px; color: #dbe7fb; max-width: 32em; } .auth-points li { padding-left: 22px; position: relative; } .auth-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-2px); }
.auth-main { display: grid; place-items: center; padding: 32px 24px; background: var(--bg); }
.auth-form { width: min(100%, 410px); background: var(--surface); padding: 36px 34px 30px; border-radius: 18px; box-shadow: var(--shadow-lift); border: 1px solid var(--line-soft); }
.auth-form h1 { font-size: 1.7rem; } .auth-form .muted { margin-bottom: 22px; } .auth-form .btn.primary { min-width: 120px; } .auth-form form > .small { margin-left: 8px; }
.brand-compact { display: none; padding: 0 0 20px; font-size: 1.2rem; }
/* ---- employee flow (public, phone first, one hand, poor light) */
body.pub { background: var(--bg); }
.pub-top { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; font-weight: 750; letter-spacing: -.01em; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.pub-top img { width: 30px; height: 30px; border-radius: 8px; }
.pub-main { max-width: 580px; margin: 0 auto; padding: 20px 16px 130px; }
.menu { display: grid; gap: 12px; } a.tile.big { padding: 20px; font-size: 1.06rem; min-height: 68px; font-weight: 650; }
.names { display: grid; gap: 9px; margin: 12px 0 18px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.name { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 650; font-size: 1.04rem; margin: 0; cursor: pointer; min-height: 58px; color: var(--ink); transition: border-color .12s, background .12s; }
.name input { width: 24px; height: 24px; flex: none; } .name:hover { border-color: var(--primary); } .name:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); } .name[hidden] { display: none; }
.wide { width: 100%; min-height: 54px; font-size: 1.06rem; } .stack { display: grid; gap: 10px; margin: 18px 0; }
.who-line { margin: 0 0 14px; } .note { margin-bottom: 14px; background: var(--primary-soft); border-color: transparent; }
.progress { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0 12px; }
progress { display: block; width: 100%; height: 12px; border: 0; border-radius: 99px; overflow: hidden; margin-bottom: 7px; appearance: none; -webkit-appearance: none; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); } progress::-webkit-progress-value { background: var(--ok-fill); } progress::-moz-progress-bar { background: var(--ok-fill); }
.sec-title { margin: 22px 0 9px; font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.task-card { background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: 14px; padding: 4px 16px; margin-bottom: 11px; box-shadow: var(--shadow); transition: border-color .15s, background .15s; } .task-card:has(.tick input:checked) { border-color: color-mix(in srgb, var(--ok-fill) 45%, var(--line)); background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); }
.tick { display: flex; gap: 15px; align-items: flex-start; margin: 0; padding: 14px 0; font-weight: 560; cursor: pointer; color: var(--ink); } .tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mark { flex: none; width: 38px; height: 38px; border: 2.5px solid var(--muted); border-radius: 11px; display: grid; place-items: center; margin-top: 1px; background: var(--surface); transition: background .15s, border-color .15s, transform .12s; }
.tick:active .mark { transform: scale(.94); }
.tick input:checked + .mark { background: var(--ok-fill); border-color: var(--ok-fill); } .tick input:checked + .mark::after { content: ""; width: 11px; height: 19px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg) translate(-1px, -2px); border-radius: 1px; }
.tick input:focus-visible + .mark { box-shadow: var(--ring); } .tick input:checked ~ .tt b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tt { flex: 1; } .blk { display: block; margin-top: 2px; } .more summary { padding: 5px 0; font-size: .9rem; } .more input[type=text] { margin: 5px 0 12px; }
.sticky-actions { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line-soft); box-shadow: 0 -8px 24px rgb(19 32 46 / .08); z-index: 6; justify-content: center; backdrop-filter: blur(8px); }
.sticky-actions .btn { flex: 1; max-width: 280px; min-height: 52px; font-size: 1rem; }
.confirm-row { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; } .done { text-align: center; padding: 30px 22px; } .done h1 { margin-bottom: 8px; }

/* ---- responsive */
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .brand-compact { display: flex; } .auth-main { padding: 20px 16px; align-items: start; } .auth-form { padding: 28px 22px 24px; margin-top: 6vh; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; align-items: center; overflow-x: auto; gap: 4px; padding: 10px 12px; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--line-soft); } .side::-webkit-scrollbar { display: none; }
  .brand { padding: 0 8px 0 2px; flex: none; } .brand span { display: none; } .deptchip { margin: 0 6px 0 0; padding: 7px 11px; flex: none; } .deptchip span { display: none; }
  .side a.nav, .side .who { white-space: nowrap; flex: none; } .side .who { margin: 0 0 0 auto; border: 0; padding: 0 0 0 8px; } .who-meta { display: none; }
}
@media (max-width: 560px) {
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; } .seg a { white-space: nowrap; flex: none; } details.filters > summary .muted { display: none; }
  .row { grid-template-columns: 1fr; } .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .stat { padding: 14px 14px 12px; min-height: 96px; } .stat b { font-size: 2rem; }
  .main { padding: 20px 14px 44px; } .head { margin-bottom: 16px; } h1 { font-size: 1.45rem; } .qr-card { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.legend .key { margin-left: 0; } .legend b { font-variant-numeric: tabular-nums; }

/* ---- period segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow); }
.seg a { padding: 7px 15px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; transition: background .15s; } .seg a:hover { background: var(--surface-2); color: var(--ink); }
.seg a[aria-current="true"] { background: var(--primary); color: var(--primary-ink); }

/* ---- disclosure rows and table actions */
details.more > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; } details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 9px; height: 9px; background: currentColor; clip-path: polygon(15% 0, 100% 50%, 15% 100%); transition: transform .15s; } details.more[open] > summary::before { transform: rotate(90deg); }
td .actions { flex-wrap: nowrap; }
@media (max-width: 560px) { .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .seg a { flex: none; white-space: nowrap; } }

/* ---- finish: neutral tiles carry no status dot, selects match inputs, one entrance moment */
.stat span::before { display: none; } .zone-ok span::before, .zone-warn span::before, .zone-bad span::before, .zone-open span::before { display: block; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23536880' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; cursor: pointer; }
:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%2398aabf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.grid > .stat { animation: rise .45s cubic-bezier(.16, 1, .3, 1) backwards; }
.grid > .stat:nth-child(2) { animation-delay: .04s; } .grid > .stat:nth-child(3) { animation-delay: .08s; } .grid > .stat:nth-child(4) { animation-delay: .12s; } .grid > .stat:nth-child(5) { animation-delay: .16s; } .grid > .stat:nth-child(6) { animation-delay: .2s; }
th, td { padding: 12px 12px; } th:first-child, td:first-child { padding-left: 18px; } th:last-child, td:last-child { padding-right: 18px; }
th { letter-spacing: .035em; font-size: .75rem; }
.table-wrap td:first-child { min-width: 150px; } .table-wrap th:first-child { min-width: 150px; }

/* ====================================================================
   Stewarding OS alignment: same type scale, pill controls, soft active
   nav, sentence-case table headers, navy-tinted surfaces.
   ==================================================================== */
body { font-size: .875rem; line-height: 1.55; text-rendering: optimizeLegibility; }
h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; } h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.015em; } h3 { font-size: .925rem; font-weight: 600; }
.small { font-size: .8rem; } label { font-size: .8rem; font-weight: 550; color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-xs); }

/* shell */
.shell { grid-template-columns: 252px minmax(0, 1fr); }
.side { padding: 14px 12px; gap: 1px; }
.brand { padding: 4px 8px 16px; font-size: .95rem; font-weight: 650; letter-spacing: -.015em; } .brand img { width: 28px; height: 28px; border-radius: 8px; }
.deptchip { display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin: 0 0 12px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); line-height: 1.25; }
.deptchip::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--dept); flex: none; }
.deptchip b { font-size: .86rem; font-weight: 650; } .deptchip span { font-size: .76rem; color: var(--muted); opacity: 1; display: block; }
.side a.nav { height: 34px; padding: 0 10px; border-radius: var(--r-sm); font-size: .855rem; font-weight: 500; color: var(--ink-2); gap: 10px; }
.side a.nav:hover { background: var(--surface-2); color: var(--ink); }
.side a.nav[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.ico { width: 18px; height: 18px; opacity: 1; color: var(--muted); } .side a.nav[aria-current="page"] .ico, .side a.nav:hover .ico { color: currentColor; }
.main { padding: 26px clamp(16px, 3.5vw, 40px) 56px; }
.head { margin-bottom: 20px; } .head p { color: var(--muted); }

/* surfaces */
.card, .table-wrap, .sec { border-color: var(--line); box-shadow: var(--shadow-xs); }
.card { border-radius: var(--r-lg); }
.table-wrap { border-radius: var(--r-lg); }
.flash, .empty { border-radius: var(--r-md); }

/* tables: sentence-case headers on a quiet surface */
th { text-transform: none; letter-spacing: 0; font-size: .75rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 10px 14px; }
td { font-size: .84rem; padding: 11px 14px; }
th:first-child, td:first-child { padding-left: 18px; } th:last-child, td:last-child { padding-right: 18px; }
td a { font-weight: 550; }

/* buttons: pills, accent fill */
.btn { border-radius: 999px; font-size: .825rem; font-weight: 550; padding: 7px 16px; min-height: 38px; background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn:hover { background: var(--surface-3); color: var(--ink); border-color: var(--line); } .btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-xs); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); box-shadow: var(--shadow); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); } .btn.danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn.sm { min-height: 32px; padding: 4px 13px; font-size: .78rem; }
.theme-btn { border-radius: var(--r-sm); width: 32px; height: 32px; }
.avatar { background: var(--surface-3); color: var(--ink-2); font-weight: 650; width: 32px; height: 32px; }

/* inputs */
input, select, textarea { font-size: .875rem; padding: 8px 13px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-md); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--ring); }
.field label, .toolbar label { margin-bottom: 4px; }

/* period switch: the same pill tabs as the Stewarding OS area switcher */
.seg { gap: 3px; padding: 4px; border-radius: 999px; border-color: var(--line); box-shadow: var(--shadow-xs); }
.seg a { padding: 0 15px; height: 32px; display: inline-flex; align-items: center; border-radius: 999px; font-size: .85rem; font-weight: 550; color: var(--ink-2); }
.seg a[aria-current="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .seg a[aria-current="true"] { background: var(--ink); color: var(--surface); }

/* status chips: pills with the same soft tints */
.badge { font-size: .76rem; font-weight: 600; padding: 2px 10px 2px 8px; }
.badge.info, .zone-open { --zone: var(--info); }
.badge.info { background: var(--info-soft); color: var(--info); } .badge.info::before { border-color: var(--info); }

/* tiles: white cards, soft status tint on hover only, number in status ink */
.stat { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); border-radius: var(--r-lg); }
.stat b { font-size: 2.1rem; font-weight: 650; letter-spacing: -.035em; } .stat span { font-size: .8rem; font-weight: 550; }
a.stat:hover { background: var(--zone-soft); border-color: color-mix(in srgb, var(--zone-fill) 35%, var(--line)); box-shadow: var(--shadow); }
.zone-open { --zone: var(--info); --zone-fill: var(--info); --zone-soft: var(--info-soft); } .zone-open span::before { border-color: var(--info); }
.zone-plain { box-shadow: var(--shadow-xs); }
.outcome svg { height: 10px; border-radius: 999px; }

/* sign-in: Stewarding OS navy */
.auth-side { background: #0f1f3d; } .auth-form { border-radius: var(--r-xl); box-shadow: var(--shadow-lift); }
.pub-top { border-bottom: 1px solid var(--line); }
.deptchip { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; } .deptchip::before { grid-row: 1 / 3; } .deptchip b, .deptchip span { grid-column: 2; }
.btn.wide { min-height: 54px; font-size: 1rem; } .sticky-actions .btn { min-height: 52px; font-size: .95rem; }
.name { border-radius: var(--r-lg); font-size: 1rem; }
.tt b { font-size: 1.02rem; font-weight: 600; } .sticky-actions .btn { font-size: .9rem; padding-inline: 10px; }
.deptchip::before { align-self: center; }
.narrow2 { max-width: 700px; }

/* ====================================================================
   Brand mark, collapsible menu, logo motion
   ==================================================================== */
.shell { grid-template-columns: var(--side-w, 252px) minmax(0, 1fr); transition: grid-template-columns .32s var(--ease-out); }
html[data-side="collapsed"] .shell { --side-w: 72px; }
.side { overflow-x: hidden; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 14px; }
.side-head .brand { padding: 4px 4px 4px 8px; flex: 1; min-width: 0; transition: padding .32s var(--ease-out); }
.brand .lbl { white-space: nowrap; font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.side-toggle { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: var(--r-sm); cursor: pointer; }
.side-toggle:hover { background: var(--surface-3); color: var(--ink); } .side-toggle .ico { margin: 0; width: 18px; height: 18px; color: currentColor; }
.lbl, .who-meta { transition: opacity .18s var(--ease-out); }
.signout-ico { display: none; }
html[data-side="collapsed"] .side-head { flex-direction: column; gap: 8px; padding-bottom: 12px; }
html[data-side="collapsed"] .side-head .brand { flex: none; padding: 4px 0; }
html[data-side="collapsed"] .lbl, html[data-side="collapsed"] .who-meta, html[data-side="collapsed"] .deptchip b, html[data-side="collapsed"] .deptchip span { display: none; }
html[data-side="collapsed"] .deptchip { display: grid; place-items: center; padding: 10px 0; } html[data-side="collapsed"] .deptchip::before { grid-row: auto; width: 12px; height: 12px; }
html[data-side="collapsed"] .side a.nav { justify-content: center; padding: 0; gap: 0; } html[data-side="collapsed"] .side a.nav .ico { margin: 0; }
html[data-side="collapsed"] .side .who { flex-direction: column; padding: 12px 0 2px; gap: 8px; } html[data-side="collapsed"] .signout-ico { display: block; } html[data-side="collapsed"] .who .theme-btn { margin-left: 0; }

/* the mark: a circular track, no tile. Rails and ties take their colour from the theme; the whole ring turns when the menu opens or closes. */
.rr-logo { --logo-rail: #0f1f3d; --logo-tie: #3b63c9; width: 34px; height: 34px; flex: none; display: block; overflow: visible; }
:root[data-theme="dark"] .rr-logo { --logo-rail: #e7ecf3; --logo-tie: #8fb0ff; }
.auth-side .rr-logo, .pub-top .rr-logo { --logo-rail: #ffffff; --logo-tie: #8fb0ff; }
.rl-rail { fill: none; stroke: var(--logo-rail); stroke-width: 3.6; } .rl-tie { stroke: var(--logo-tie); stroke-width: 3; stroke-linecap: round; }
.rl-spin { transform-box: view-box; transform-origin: 32px 32px; }
.rl-train { fill: #f5b942; opacity: 0; offset-path: circle(23.5px at 32px 32px); offset-distance: 0%; }
@keyframes rl-spin-cw { from { transform: rotate(-360deg); } to { transform: none; } }
@keyframes rl-spin-ccw { from { transform: rotate(360deg); } to { transform: none; } }
@keyframes rl-orbit { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes rl-orbit-back { 0% { offset-distance: 100%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 0%; opacity: 0; } }
html[data-sidefx="close"] .rl-spin { animation: rl-spin-cw .9s var(--ease-out); } html[data-sidefx="open"] .rl-spin { animation: rl-spin-ccw .9s var(--ease-out); }
html[data-sidefx="close"] .rl-train { animation: rl-orbit .9s ease-in-out; } html[data-sidefx="open"] .rl-train { animation: rl-orbit-back .9s ease-in-out; }
html[data-side="collapsed"] .deptchip { display: flex; justify-content: center; align-items: center; }

/* ====================================================================
   Staff flow (phone first): branded header, hero card, large targets
   ==================================================================== */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.pub { background: var(--bg); }
.pub-top { background: #0f1f3d; color: #fff; border: 0; padding: 12px 18px; gap: 11px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.pub-top .rr-logo { width: 30px; height: 30px; }
.pub-main { padding: 14px 14px 140px; }
.pub-hero { background: #0f1f3d; color: #fff; border-radius: 20px; padding: 20px 20px 22px; margin: 0 0 18px; box-shadow: var(--shadow-lift); }
.pub-hero p { margin: 0 0 6px; color: #9db4e8; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pub-hero h1 { color: #fff; font-size: 1.65rem; line-height: 1.12; margin: 0; }
.pub-hero .who-line { margin: 10px 0 0; color: #dbe5fb; font-size: .9rem; text-transform: none; letter-spacing: 0; font-weight: 450; } .pub-hero .who-line b { color: #fff; } .pub-hero .who-line a { color: #fff; }
.step-pill { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / .13); color: #e6edfc; font-size: .8rem; font-weight: 550; }

.field:has(#find) { margin: 0 0 12px; } #find { min-height: 52px; border-radius: 999px; padding-left: 20px; font-size: 1rem; background: var(--surface); }
.names { gap: 10px; margin: 0 0 18px; max-height: none; overflow: visible; padding: 0; }
.name { position: relative; min-height: 66px; padding: 10px 16px 10px 12px; border: 1.5px solid var(--line); border-radius: 18px; gap: 14px; box-shadow: var(--shadow-xs); }
.name input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ini { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .95rem; transition: background .15s, color .15s; }
.nm { font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.name:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgb(30 58 138 / .12); }
.name:has(input:checked) .ini { background: var(--primary); color: #fff; }
.name:has(input:checked)::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 16px; border: solid var(--primary); border-width: 0 3px 3px 0; transform: translateY(-62%) rotate(45deg); }
.name:has(input:focus-visible) { box-shadow: var(--ring); }
.btn.wide { min-height: 56px; font-size: 1.05rem; border-radius: 999px; }

.progress { background: var(--bg); padding: 4px 0 14px; top: 0; }
progress { height: 10px; margin-bottom: 8px; } .progress b { font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.sec-title { margin: 22px 2px 10px; font-size: .95rem; text-transform: none; letter-spacing: -.005em; color: var(--ink); font-weight: 700; }
.task-card { border-radius: 18px; border-width: 1.5px; padding: 6px 16px 4px; margin-bottom: 12px; box-shadow: var(--shadow-xs); }
.tick { padding: 14px 0 10px; gap: 16px; }
.mark { width: 44px; height: 44px; border-radius: 14px; border: 2.5px solid var(--line-strong); }
.tick input:checked + .mark::after { width: 12px; height: 22px; }
.tt b { font-size: 1.08rem; line-height: 1.3; }
.task-card .more { padding: 0 0 12px 60px; }
.task-card .more > summary { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 550; color: var(--ink-2); background: var(--surface-2); } .task-card .more > summary:hover { background: var(--surface-3); }
.task-card .more[open] > summary { margin-bottom: 10px; }
.sticky-actions { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 10px; border-top: 1px solid var(--line); }
.sticky-actions .btn { min-height: 54px; border-radius: 999px; font-size: .95rem; } .sticky-actions .btn.primary { flex: 1.4; }

.done { padding: 34px 22px 26px; } .done h1 { font-size: 1.5rem; }
.done-mark { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; }
.done-mark.is-ok { background: var(--ok-soft); } .done-mark.is-ok::after { content: ""; width: 14px; height: 28px; border: solid var(--ok); border-width: 0 5px 5px 0; transform: rotate(45deg) translate(-2px, -3px); border-radius: 2px; }
.done-mark.is-warn { background: var(--warn-soft); } .done-mark.is-warn::after { content: ""; width: 5px; height: 26px; background: var(--warn); border-radius: 3px; box-shadow: 0 34px 0 -0px transparent; transform: translateY(-4px); }
.done-mark.is-warn::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); transform: translateY(18px); }
.done-mark { position: relative; }

/* ---- dashboard simplification: reports menu, quiet explainers, compact progress */
.menu-btn { position: relative; } .menu-btn > summary { list-style: none; cursor: pointer; } .menu-btn > summary::-webkit-details-marker { display: none; }
.menu-btn .chev { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; } .menu-btn[open] .chev { transform: rotate(180deg); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 290px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.menu-pop a { display: block; padding: 10px 12px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); } .menu-pop a:hover { background: var(--surface-2); }
.menu-pop b { display: block; font-size: .86rem; font-weight: 600; } .menu-pop span { display: block; font-size: .78rem; color: var(--muted); margin-top: 1px; }
details.how { margin: 10px 0 22px; } details.how > summary { cursor: pointer; font-size: .8rem; color: var(--muted); list-style: none; display: inline-block; } details.how > summary::-webkit-details-marker { display: none; } details.how > summary:hover { color: var(--ink); }
details.how > summary::before { content: "i"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 7px; border: 1.5px solid currentColor; border-radius: 50%; font-size: .68rem; font-weight: 700; font-style: italic; }
details.how p { margin: 8px 0 0; max-width: 62ch; }
.mini-bar { width: 72px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; } .mini-bar i { display: block; height: 100%; background: var(--ok-fill); border-radius: 99px; }
.w0 { width: 0; } .w10 { width: 10%; } .w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }
td.zero { color: var(--muted); }
.table-wrap td b { font-weight: 600; }

/* ---- sign-in brand moment: the mark draws itself once on load */
.brand-xl .rr-logo { width: 52px; height: 52px; } .brand-xl .lbl { font-size: 1.6rem; letter-spacing: -.03em; color: #fff; }
.auth .brand-compact .rr-logo { width: 38px; height: 38px; } .auth .brand-compact .lbl { font-size: 1.25rem; }
.auth .rl-spin { animation: rl-spin-cw 1.2s .1s var(--ease-out); } .auth .rl-train { animation: rl-orbit 1.2s .1s ease-in-out; }
details.addbox > summary { list-style: none; display: inline-flex; cursor: pointer; margin-bottom: 14px; } details.addbox > summary::-webkit-details-marker { display: none; } details.addbox[open] > summary { display: none; } details.addbox > form { margin-top: 0; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; } .btn.ghost:hover { background: var(--surface-3); color: var(--ink); }
/* phones always show the full top bar, whatever the desktop menu state */
@media (max-width: 760px) {
  html[data-side="collapsed"] .side a.nav { justify-content: flex-start; padding: 0 10px; gap: 8px; } html[data-side="collapsed"] .side .who { flex-direction: row; padding: 0 0 0 8px; }
  html[data-side="collapsed"] .deptchip { display: block; padding: 7px 11px; } html[data-side="collapsed"] .deptchip b { display: block; } html[data-side="collapsed"] .deptchip::before { display: none; }
  html[data-side="collapsed"] .side-head { flex-direction: row; } html[data-side="collapsed"] .lbl { display: revert; }
}
@media (max-width: 760px) { html[data-side="collapsed"] .brand .lbl, .brand .lbl { display: none; } }

/* ====================================================================
   Phone (<= 760px): fixed top bar, drawer menu, stacked-card tables
   ==================================================================== */
.ico-mob { display: none; }
@media (max-width: 760px) {
  .shell { display: block; padding-top: 58px; transition: none; }
  .side { position: fixed; top: 0; left: 0; right: 0; z-index: 50; width: auto; height: auto; max-height: 100dvh; overflow-y: auto; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; padding: 9px 14px; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-xs); }
  .side-head { padding: 0; flex-direction: row; gap: 6px; min-height: 40px; } .side-head .brand { flex: 1; padding: 0; } .brand .lbl { display: inline; font-size: 1.05rem; } .brand .rr-logo { width: 32px; height: 32px; }
  .side-toggle { display: grid !important; width: 42px; height: 42px; border-radius: var(--r-md); color: var(--ink); } .side-toggle .ico { width: 24px; height: 24px; } .ico-desk { display: none; } .ico-mob { display: block; }
  .side > .deptchip, .side > a.nav, .side > .who { display: none; }
  html[data-nav="open"] .side > .deptchip { display: grid; margin: 8px 0 6px; padding: 11px 13px; }
  html[data-nav="open"] .side > a.nav { display: flex; height: 48px; padding: 0 12px; font-size: 1rem; gap: 14px; }
  html[data-nav="open"] .side > .who { display: flex; margin: 8px 0 4px; padding: 12px 4px 4px; border-top: 1px solid var(--line); gap: 12px; }
  html[data-nav="open"] .who-meta { display: block; } html[data-nav="open"] .signout-ico { display: none; }
  html[data-nav="open"] .side .lbl, html[data-nav="open"] .deptchip b, html[data-nav="open"] .deptchip span { display: revert; }
  html[data-nav="open"] .side { box-shadow: var(--shadow-lift); }
  .main { padding: 18px 14px 40px; } .head { gap: 12px; margin-bottom: 16px; } .head > .actions, .head > .btn, .head > details { width: auto; }
  h1 { font-size: 1.4rem; } .head p { font-size: .85rem; }
  .menu-pop { right: auto; left: 0; width: min(290px, calc(100vw - 28px)); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .stat { min-height: 92px; padding: 13px 14px; } .stat b { font-size: 1.9rem; }
  .row, .fgrid, .cols { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; } .narrow2, .narrow { max-width: none; }
  .toolbar { gap: 10px; } .toolbar .field { flex: 1 1 100%; } .toolbar .btn { width: 100%; }
  .actions { gap: 8px; } .legend { font-size: .8rem; }
  .btn { min-height: 44px; } .btn.sm { min-height: 38px; }
  input, select, textarea { min-height: 46px; font-size: 16px; }
  /* tables -> stacked cards */
  .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .table-wrap table { min-width: 0; display: block; } .table-wrap thead { display: none; } .table-wrap tbody { display: grid; gap: 10px; }
  .table-wrap tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); padding: 6px 0; }
  .table-wrap td, .table-wrap td:first-child, .table-wrap td:last-child { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 16px; border: 0; text-align: right; min-width: 0; }
  .table-wrap td[data-label]::before { content: attr(data-label); flex: none; font-size: .76rem; font-weight: 600; color: var(--muted); text-align: left; }
  .table-wrap td:first-child { font-size: 1rem; padding-top: 12px; text-align: left; justify-content: flex-start; } .table-wrap td:first-child::before { display: none; }
  .table-wrap td > * { text-align: right; } .table-wrap td:first-child > * { text-align: left; }
  .table-wrap td.actions, .table-wrap td:last-child:not([data-label]) { justify-content: flex-start; flex-wrap: wrap; padding-bottom: 12px; }
  .table-wrap tbody tr:hover td { background: transparent; }
  .mini-bar { margin-right: 8px; }
  .pager { flex-wrap: wrap; }
  .auth-main { padding: 16px; }
}
@media (max-width: 760px) { .table-wrap td:first-child { display: block; } .table-wrap td:first-child .small { display: block; } }
@media (max-width: 760px) { .table-wrap td.is-empty { display: none; } }
@media (max-width: 760px) {
  .table-wrap.cards-2 tr { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 0 8px; }
  .table-wrap.cards-2 td:first-child { grid-column: 1 / -1; padding-bottom: 6px; }
  .table-wrap.cards-2 td[data-label] { display: block; text-align: left; padding: 6px 16px; } .table-wrap.cards-2 td[data-label]::before { display: block; margin-bottom: 2px; } .table-wrap.cards-2 td > * { text-align: left; }
}
.btn { white-space: nowrap; }
@media (max-width: 760px) { .table-wrap.cards-2 td:first-child::before { display: none; } }
.find-row { max-width: 320px; margin: 0 0 12px; } .find-row input { border-radius: 999px; padding-left: 18px; } tr[hidden] { display: none !important; }
.grid.platform { grid-template-columns: repeat(4, 1fr); } @media (max-width: 760px) { .grid.platform { grid-template-columns: repeat(2, 1fr); } }

/* ====================================================================
   Staff checklist, matched to Stewarding OS: one card, compact rows,
   chips for extras, a single Submit in a sticky dock.
   ==================================================================== */
.pub-hero { padding: 14px 18px 16px; border-radius: 18px; margin-bottom: 12px; } .pub-hero h1 { font-size: 1.25rem; } .pub-hero p { margin-bottom: 3px; font-size: .72rem; } .pub-hero .who-line { margin-top: 6px; font-size: .84rem; }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-xs); padding: 0 18px 6px; }
.pc .progress { position: sticky; top: 0; z-index: 5; margin: 0 -18px 2px; padding: 12px 18px 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); border-radius: 20px 20px 0 0; }
.progress-top { display: flex; justify-content: space-between; font-size: .88rem; } .progress-top b { font-weight: 600; color: var(--ink); }
.pc progress { height: 8px; margin: 8px 0 0; }
.pc-sec { margin: 16px 0 2px; font-size: .78rem; font-weight: 650; letter-spacing: .02em; color: var(--muted); text-transform: none; }
.pc-items { list-style: none; margin: 0; padding: 0; }
.pc-item { padding: 12px 0; border-top: 1px solid var(--line); } .pc-item:first-child { border-top: 0; }
.pc .tick { padding: 0; gap: 14px; align-items: flex-start; }
.pc .mark { width: 30px; height: 30px; border-width: 2px; border-radius: 9px; margin-top: 0; }
.pc .tick input:checked + .mark::after { width: 8px; height: 15px; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.pc .tt b { font-size: 1rem; font-weight: 600; line-height: 1.35; } .pc .tick input:checked ~ .tt b { text-decoration-thickness: 1px; }
.opt { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: .7rem; font-weight: 600; vertical-align: 1px; }
.pc .more { padding: 8px 0 0 44px; }
.pc .more > summary { padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 550; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.pc .more > summary::before { display: none; } .pc .more[open] > summary { margin-bottom: 8px; border-color: var(--line-strong); }
.dock { position: sticky; bottom: 0; z-index: 6; margin: 14px -14px 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.dock-note { margin: 0 0 8px; text-align: center; } .dock .btn.wide { min-height: 52px; font-size: 1rem; }
.pub-main { padding-bottom: 20px; }
