/* ACS "operations ledger" design system, shared with Time Audit and Training Tracker.
   Sections up to "billing checks" are copied unchanged from Training Tracker's app/static/app.css
   (tokens, base, app bar, page, banners, controls, sheets, status marks, ledger tables, list card, narrow windows);
   update them from there so the apps stay one family. Billing-only rules are at the end. */
:root {
  color-scheme: light;
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --surface-3: #ecebe6;
  --line: #dedbd4;
  --line-strong: #b9b4aa;
  --field-line: #8a8579;  /* form field borders: 3:1 against the page and panels (WCAG 1.4.11) */
  --ink: #1c1e20;
  --ink-2: #474a4f;
  --muted: #5f6266;
  --accent: #0b5f73;
  --accent-hover: #084b5b;
  --accent-tint: #e2eff1;
  --accent-ink: #ffffff;
  --review: #a3301c;  --review-tint: #f8e8e3;
  --warn: #7f4f00;    --warn-tint: #faefd9;
  --ok: #2d6a38;      --ok-tint: #e5efe5;
  --info: #0b5f73;    --info-tint: #e2eff1;
  --neutral-tint: #efeee9;
  --chart-ok: #4a9a86; --chart-warn: #f2b84b; --chart-bad: #a3201c;

  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-28: 28px; --fs-40: 40px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --r: 6px; --r-2: 8px; --r-sm: 4px;
  --row-h: 38px; --cell-pad: 6px;
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}
/* Row density (Display menu): Comfortable / Compact. */
:root[data-density="compact"] { --row-h: 28px; --cell-pad: 2px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121416; --surface: #1a1d20; --surface-2: #1f2326; --surface-3: #282c30; --line: #2f3439; --line-strong: #454b52; --field-line: #6c737b;
    --ink: #e9e7e2; --ink-2: #bcb9b1; --muted: #a09d95;
    --accent: #66b8ca; --accent-hover: #8dcbd8; --accent-tint: #14292e; --accent-ink: #0d1517;
    --review: #f0907b; --review-tint: #381d17; --warn: #e2b660; --warn-tint: #31270f; --ok: #87c48f; --ok-tint: #17291b;
    --info: #8dcbd8; --info-tint: #14292e; --neutral-tint: #24282c;
    --chart-ok: #2b7a69; --chart-warn: #f5cd6a; --chart-bad: #f06a52;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121416; --surface: #1a1d20; --surface-2: #1f2326; --surface-3: #282c30; --line: #2f3439; --line-strong: #454b52; --field-line: #6c737b;
  --ink: #e9e7e2; --ink-2: #bcb9b1; --muted: #a09d95;
  --accent: #66b8ca; --accent-hover: #8dcbd8; --accent-tint: #14292e; --accent-ink: #0d1517;
  --review: #f0907b; --review-tint: #381d17; --warn: #e2b660; --warn-tint: #31270f; --ok: #87c48f; --ok-tint: #17291b;
  --info: #8dcbd8; --info-tint: #14292e; --neutral-tint: #24282c;
  --chart-ok: #2b7a69; --chart-warn: #f5cd6a; --chart-bad: #f06a52;
}

/* ---- base ---------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font: 400 var(--fs-14)/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1 { font-size: var(--fs-20); font-weight: 600; margin: 0; }
h2 { font-size: var(--fs-16); font-weight: 600; margin: var(--s-2) 0 0; }
h3 { font-size: var(--fs-13); font-weight: 600; margin: 0; }
p { margin: 0 0 var(--s-2); }
a { color: var(--accent); text-underline-offset: 2px; }
/* The ring is a box-shadow; the transparent outline is what shows in Windows high-contrast mode, which drops shadows. */
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus); }
html { scroll-padding-top: 64px; }  /* anything scrolled to or focused stays clear of the sticky app bar */
main:focus { outline: none; box-shadow: none; }
.skip { position: absolute; left: var(--s-3); top: -60px; z-index: 50; padding: 8px 14px; border-radius: var(--r); background: var(--surface);
  color: var(--accent); font-weight: 600; border: 2px solid var(--accent); text-decoration: none; }
.skip:focus { top: var(--s-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.small { font-size: var(--fs-12); }
code { font: 500 var(--fs-12) var(--mono); background: var(--surface-3); padding: 1px 4px; border-radius: var(--r-sm); }
pre { font: 12px/1.5 var(--mono); white-space: pre-wrap; margin: 6px 0 0; }
details summary { cursor: pointer; }

/* ---- app bar (dark ledger header) ---------------------------------------------------------- */
.devstrip { background: var(--warn-tint); color: var(--warn); text-align: center; padding: 3px; font-size: var(--fs-12); font-weight: 500;
  border-bottom: 1px solid var(--line); }
/* An Admin signed in as someone: who, and the way back. Blue while view only; red-edged with full access. */
.asbar { display: flex; align-items: center; justify-content: center; gap: var(--s-2) var(--s-4); flex-wrap: wrap; padding: 6px var(--s-4);
  background: var(--info-tint); color: var(--ink); border-bottom: 2px solid var(--accent); font-size: var(--fs-13); }
.asbar p { margin: 0; }
.asbar.full { background: var(--review-tint); border-bottom-color: var(--review); }
.appbar { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: stretch; gap: var(--s-5); padding: 0 var(--s-5);
  background: #1c1e20; color: #e9e7e2; border-bottom: 1px solid #000; }
:root[data-theme="dark"] .appbar { background: #0c0d0e; }
/* ACS logo (white on transparent) with the product name in small capitals under it, starting under the lettering. */
.wordmark { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; margin-right: var(--s-3);
  color: inherit; text-decoration: none; white-space: nowrap; }
.wordmark .logo { display: block; height: 24px; width: auto; }
.wordmark .name { font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: #9d9a93; padding-left: 46px; }
.tabs { display: flex; align-items: stretch; gap: 2px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.wordmark, .appbar .right { flex: none; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #bdbab3; text-decoration: none; font-weight: 500;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: #66b8ca; }
.tabs a:focus-visible { box-shadow: inset 0 0 0 2px #66b8ca; outline-offset: -2px; }  /* inside the tab: the strip scrolls and would clip it */
.tabs .n { font-family: var(--mono); font-size: var(--fs-12); color: #1c1e20; background: #e2b660; padding: 0 6px; border-radius: 999px; }
.appbar .right { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.appbar .who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-size: var(--fs-12); color: #bdbab3; }
.appbar .who b { color: #e9e7e2; font-weight: 500; font-size: var(--fs-13); }
.initials { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-12); font-weight: 600;
  background: #3a3e43; color: #e9e7e2; text-decoration: none; flex: none; }
.appbar form { margin: 0; }
.barbtn { height: 34px; min-width: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #5a5e63; border-radius: var(--r); background: none; color: #d8d6d0; cursor: pointer; font: 500 var(--fs-13) var(--font); }
.barbtn:hover, details[open] > .barbtn { background: rgba(255, 255, 255, .08); color: #fff; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* The Display menu: a <details> in the app bar, its menu dropping below it. */
.anchor { position: relative; display: flex; align-items: center; }
details.display > summary { list-style: none; border-color: transparent; }
details.display > summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); padding: 4px; }
.menu .label { padding: 8px 10px 4px; font-size: var(--fs-12); color: var(--muted); }
.menu button { width: 100%; height: auto; display: flex; gap: var(--s-2); align-items: center; justify-content: flex-start; padding: 8px 10px;
  border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; text-align: left; color: var(--ink); font-weight: 400; }
.menu button:hover { background: var(--surface-3); border: 0; }
.menu button[aria-pressed="true"]::after { content: "\2713"; margin-left: auto; color: var(--accent); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* ---- page ---------------------------------------------------------------------------------- */
.page { padding: var(--s-5) var(--s-6) var(--s-7); display: flex; flex-direction: column; gap: var(--s-4); max-width: 1440px; margin: 0 auto; }
.page > h2 { margin-top: var(--s-3); }
.page-head { display: flex; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.page-head .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.page-head .eyebrow { font-size: var(--fs-12); color: var(--muted); }
.page-head .tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
h1 .muted.small, h1 .small { font-weight: 400; margin-left: 6px; }
/* One certification's sections (Overview, Certificate…): underlined tabs on a hairline, scrolling sideways on phones. */
.pagetabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pagetabs a { padding: 8px 12px; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pagetabs a:hover { color: var(--ink); }
.pagetabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.pagetabs a:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); outline-offset: -2px; }
.pagetabs .n { font: var(--fs-12) var(--mono); color: var(--muted); margin-left: 4px; }

/* Admin pages: a sub-navigation down the left, like Time Audit's Settings. */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.settings > .content { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
/* The admin sidebar: Overview, then each group under a heading that reads as one (sentence case, semibold, dark ink,
   a hairline and room above it, as GitHub's Primer and Atlassian now do), never as a faint, disabled-looking label. */
.subnav { display: flex; flex-direction: column; border-left: 1px solid var(--line); position: sticky; top: 76px; }
.subnav ul, .subnav-menu ul { list-style: none; margin: 0; padding: 0; }
.subnav .navhead { margin: 18px 0 4px; padding: 14px 14px 0; border-top: 1px solid var(--line);
  font: 600 var(--fs-13)/1.3 var(--font); color: var(--ink); letter-spacing: 0; text-transform: none; }
.subnav a { display: block; padding: 7px 14px; color: var(--ink-2); text-decoration: none; font-weight: 400; margin-left: -1px; border-left: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

/* ---- banners (alerts) ---------------------------------------------------------------------- */
.alert, .banner { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-2); border: 1px solid; }
.alert > *, .banner > * { margin: 0; }
.alert.err { background: var(--review-tint); border-color: var(--review); color: var(--ink); }
.alert.err::before { content: ""; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--review); flex: none; }
.alert.ok { background: var(--ok-tint); border-color: var(--ok); color: var(--ink); }
.alert.info { background: var(--info-tint); border-color: var(--accent); color: var(--ink); }
.alert.warn { background: var(--warn-tint); border-color: var(--warn); color: var(--ink); }
.alert { flex-wrap: wrap; }
.flashes { display: flex; flex-direction: column; gap: var(--s-2); }
/* After a submit with errors: one summary that takes focus and links to each field, and the message at the field. */
.error-summary { border: 3px solid var(--review); border-radius: var(--r-2); background: var(--surface); padding: var(--s-3) var(--s-4); }
.error-summary h2 { margin: 0 0 var(--s-2); font-size: var(--fs-16); }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: var(--review); font-weight: 600; }
.field-error { color: var(--review); font-weight: 600; font-size: var(--fs-13); }
[aria-invalid="true"] { border-color: var(--review); box-shadow: inset 0 0 0 1px var(--review); }
[role="group"][aria-invalid="true"] { border: 2px solid var(--review); }
.alert form.inline { margin-left: auto; }

/* ---- controls ------------------------------------------------------------------------------ */
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select:not([size]):not([multiple]) { height: 34px; padding: 0 10px; }
select[size], select[multiple] { padding: 4px; }
input[type=file] { padding: 5px 8px; max-width: 100%; }
input[type=file]::file-selector-button { font: 500 var(--fs-13) var(--font); height: 26px; padding: 0 10px; margin-right: 10px; cursor: pointer;
  border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); }
textarea { padding: 8px 10px; }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); vertical-align: -2px; }
button, .btn { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r);
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 500 var(--fs-14) var(--font); cursor: pointer;
  white-space: nowrap; text-decoration: none; }
button:hover, .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.secondary, .btn.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
button.secondary:hover, .btn.secondary:hover { background: var(--surface-3); }
button.danger, .btn.danger { border-color: var(--review); background: var(--surface); color: var(--review); }
button.danger:hover { background: var(--review-tint); }
button.small, .btn.small { height: 28px; padding: 0 10px; font-size: var(--fs-13); }
button[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.filters { display: flex; gap: var(--s-2) var(--s-3); flex-wrap: wrap; align-items: flex-end; }
.filters label, .field { display: flex; flex-direction: column; font-size: var(--fs-12); color: var(--ink-2); gap: 4px; font-weight: 500; }
.filters label > span { display: inline-flex; align-items: center; gap: 6px; height: 34px; font-size: var(--fs-13); font-weight: 400; }
.filters.choices { align-items: flex-start; gap: var(--s-4); }
.filters label > span.note { height: auto; }
.stack { display: flex; flex-direction: column; gap: var(--s-2); }
.sheet-head h2 { margin: 0; }
/* A box of tick boxes (job titles, attendees, certifications) that flows into columns and scrolls. */
.picker { columns: 240px; column-gap: var(--s-4); margin-top: 6px; max-height: 320px; overflow: auto; border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--s-2); }
.picker.people { columns: 280px; max-height: 420px; }
.picker label { break-inside: avoid; }
/* Voided records: muted text and the strike-through (not opacity, which drops below readable contrast). */
tr.void td, tr.void td a { color: var(--muted); }
/* Small toggles ("Edit…", "Needs this again…") get a 24px target (WCAG 2.5.8) and room from what's next to them. */
summary.small { line-height: 24px; min-height: 24px; }
td details + details, td form + details, td details + form { margin-top: 4px; }
.row-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
/* Import check: the counts before anything is written. */
.kpi { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.kpi .v { font: 500 var(--fs-28)/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: var(--fs-12); color: var(--ink-2); }
.kpi.ok .v { color: var(--ok); } .kpi.bad .v { color: var(--review); } .kpi.warn .v { color: var(--warn); }
/* A person's page: where they stand, what needs doing, and the add form behind one button. */
.standing { display: flex; flex-direction: column; gap: var(--s-2); }
.standing-line { margin: 0; font-size: var(--fs-14); }
.todo-h { font-size: var(--fs-13); margin: var(--s-2) 0 0; }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.todo li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ok-text { color: var(--ok); margin: 0; }
td.wrap { white-space: normal; }
.cell-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* The add form: closed, a button (with +); open, the form's title row (with × to close), so the only button inside
   is the one that sends it. Disclosures that only show more (Individual requirements, More details) keep the ▸. */
details.addform > summary { list-style: none; display: flex; align-items: center; gap: 8px; }
details.addform > summary::-webkit-details-marker { display: none; }
details.addform:not([open]) { background: none; border: 0; padding: 0; }
details.addform:not([open]) > summary { width: fit-content; height: 34px; padding: 0 14px; border: 1px solid var(--accent); border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink); font-size: var(--fs-14); font-weight: 500; }
details.addform:not([open]) > summary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
details.addform[open] > summary { font-size: var(--fs-16); font-weight: 600; padding-bottom: var(--s-3); margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--line); }
details.addform[open] > summary .plus, details.addform:not([open]) > summary .x { display: none; }
details.addform > summary .x { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-sm);
  color: var(--ink-2); }
details.addform > summary .x .icon { width: 18px; height: 18px; }
details.addform[open] > summary:hover .x { background: var(--surface-3); color: var(--ink); }
details.more > summary { color: var(--accent); font-weight: 500; margin: var(--s-3) 0 var(--s-2); }
.field.upload { gap: 6px; }
.addform .evaluation { margin-top: var(--s-3); }  /* a certification where each person is evaluated */
.field.upload .camera { align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .field.upload .camera { display: none; } }  /* no camera to open: Choose File does it */
.preview { max-width: 180px; max-height: 140px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); align-items: end; }
.formgrid .field input, .formgrid .field select { width: 100%; }
label.role, label.attendee { display: block; }

/* ---- sheets (surfaces) --------------------------------------------------------------------- */
.panel, .sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.panel { padding: var(--s-4); }
.panel > h2:first-child, .panel > input[type=hidden]:first-child + h2, .panel > b:first-child { display: block; margin: 0 0 var(--s-3); font-size: var(--fs-14); font-weight: 600; }
details.panel > summary { font-weight: 500; }
.sheet { overflow: hidden; }
.sheet-head { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-4); border-bottom: 1px solid var(--line); min-height: 48px; flex-wrap: wrap; }
.sheet-head .tools { margin-left: auto; display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }  /* phones: onto two lines */
.sheet-head .tools .record { white-space: normal; height: auto; min-height: 28px; padding-block: 4px; text-align: left; }
.sheet-body { padding: var(--s-4); }
.grid { display: grid; gap: var(--s-4); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: var(--s-4); align-items: start; }
/* Dashboard: the headline figure and the per-department breakdown side by side, the same height. */
.overview { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: var(--s-4); align-items: stretch; }
.overview .hero { align-content: center; }
/* A row of filters: fields share the width evenly, the buttons sit at the end. */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); }
.toolbar label { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-12); font-weight: 500; color: var(--ink-2); }
.toolbar label select, .toolbar label input { width: 100%; }
.toolbar .actions { display: flex; gap: var(--s-2); flex: none; }
form[aria-busy="true"], [data-live][aria-busy="true"] { opacity: .6; cursor: progress; transition: opacity .15s .15s; }

/* The one number that matters (dashboard), then the facts that explain it. */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3) var(--s-6); align-items: end; padding: var(--s-5) var(--s-5) var(--s-4); }
.hero .big { font: 600 var(--fs-40)/1 var(--font); letter-spacing: -.02em; }
.hero .big small { font-size: var(--fs-16); font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 8px; }
.hero .bar { height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface-3); position: relative; }
.hero .bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.hero .bar-label { display: flex; justify-content: space-between; font-size: var(--fs-12); color: var(--ink-2); margin-bottom: 6px; }
.facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2) 0; border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-3); }
.facts > * { padding: 0 var(--s-5) 0 0; margin-right: var(--s-5); border-right: 1px solid var(--line); }
.facts > *:last-child { border-right: 0; }
/* Each figure opens the list it counts; the one showing is underlined in the accent (a border, which high-contrast
   mode keeps). */
.facts > a { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.facts > a:hover .k { color: var(--accent); text-decoration: underline; }
.facts > a[aria-current] { border-bottom-color: var(--accent); }
.facts > a[aria-current] .k { color: var(--ink); font-weight: 600; }
.facts .k { font-size: var(--fs-12); color: var(--ink-2); }
.facts .v { font: 500 var(--fs-16)/1.3 var(--mono); }
.facts .v.review { color: var(--review); } .facts .v.warn { color: var(--warn); }
.facts .v.sans { font-family: var(--font); font-size: var(--fs-14); }  /* names and places, not figures */

/* Per-department bars. */
.bars .sheet-body { padding-top: 4px; padding-bottom: 8px; }
.bars .row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(80px, 1fr) 52px 12px; gap: var(--s-3); align-items: center;
  margin: 0 calc(-1 * var(--s-2)); padding: 5px var(--s-2); border-bottom: 1px solid var(--line); font-size: var(--fs-13); }
.bars .row:last-child { border-bottom: 0; }
.bars .row .pct { font-family: var(--mono); text-align: right; }
/* A department's bar filters the list to it; the one picked is tinted with a bar down its side (which forced-colors
   mode keeps), and its × shows them all again. */
.bars a.row { color: inherit; text-decoration: none; border-radius: var(--r-sm); }
.bars a.row:hover { background: var(--surface-3); }
.bars a.row[aria-current] { background: var(--accent-tint); border-left: 3px solid var(--accent); padding-left: calc(var(--s-2) - 3px); }
.bars a.row[aria-current] .name { font-weight: 600; }
.bars .go { color: var(--muted); text-align: center; }
.bars a.row:hover .go, .bars a.row[aria-current] .go { color: var(--ink); }
.bars .track { height: 5px; border-radius: 3px; overflow: hidden; background: var(--surface-3); }
.bars .fill { height: 100%; background: var(--chart-ok); }
.bars .fill.mid { background: var(--chart-warn); } .bars .fill.low { background: var(--chart-bad); }


/* ---- status marks (dot + text, never colour alone) ----------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line-strong); }
.b-compliant, .b-verified, .b-ok, .b-sent { color: var(--ok); } .b-compliant::before, .b-verified::before, .b-ok::before, .b-sent::before { background: var(--ok); }
.b-expiring, .b-pending, .b-duplicate, .b-deactivate, .b-warning, .b-queued { color: var(--warn); }
.b-expiring::before, .b-pending::before, .b-duplicate::before, .b-deactivate::before, .b-warning::before, .b-queued::before { background: var(--warn); }
.b-pending::before, .b-queued::before { background: none; border: 1.5px solid currentColor; }
.b-expired, .b-missing, .b-rejected, .b-error, .b-failed, .b-deactivation_aborted { color: var(--review); }
.b-expired::before, .b-missing::before, .b-rejected::before, .b-error::before, .b-failed::before, .b-deactivation_aborted::before { background: var(--review); }
.b-not_yet_due, .b-skip, .b-running, .b-discarded { color: var(--muted); }
.b-not_yet_due::before, .b-skip::before, .b-running::before, .b-discarded::before { background: none; border: 1.5px solid currentColor; }
.b-interrupted { color: var(--warn); } .b-interrupted::before { background: var(--warn); }
.run-now { margin-bottom: var(--s-5); } .run-now .run-note { grid-column: 1 / -1; margin: 0; }
.run-now .run-actions { display: flex; justify-content: flex-end; }
.sheet-body > .bar { height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface-3); position: relative; }
.sheet-body > .bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.appbar .lastcheck a { color: inherit; text-decoration: none; } .appbar .lastcheck a:hover { text-decoration: underline; }
.flag, .tag { display: inline-block; font: 500 var(--fs-11)/1 var(--mono); padding: 3px 6px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; vertical-align: 1px; }

/* ---- ledger tables ------------------------------------------------------------------------- */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-12); font-weight: 600; text-align: left;
  padding: 0 var(--s-3); height: 34px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: var(--cell-pad) var(--s-3); min-height: var(--row-h); height: var(--row-h); border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover td { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td a { font-weight: 500; }
.panel table td, .panel table th { padding-left: 6px; padding-right: 6px; }
.pager { display: flex; align-items: center; gap: var(--s-2); padding: 8px var(--s-4); color: var(--ink-2); font-size: var(--fs-13); }
.pager .tools { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pager .page-n { min-width: 30px; padding: 0 8px; }
.pager .gap { padding: 0 4px; color: var(--muted); }

/* ---- a list in one card (Dashboard, Employees, Review): count, rows per page, table, page links ---- */
.list-card { margin-top: var(--s-4); }
.list-card .sheet-head h2 { margin: 0; }
.list-card .tablewrap { border: 0; border-radius: 0; overflow: auto; max-height: calc(100vh - 150px); }
.list-card .pager { border-top: 1px solid var(--line); }
.list-card td.nowrap { white-space: nowrap; }
.per-page { display: flex; align-items: center; gap: var(--s-2); }
.per-page label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--ink-2); white-space: nowrap; }
.per-page select { height: 30px; }
.chips { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; min-height: 26px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: var(--fs-12); color: var(--ink); text-decoration: none; background: var(--surface-2); }
.chip b { font-weight: 600; }
.chip span[aria-hidden] { color: var(--muted); }
.chip:hover { border-color: var(--accent); }
.chip:hover span[aria-hidden] { color: var(--accent); }
th a.sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-weight: inherit; }
th a.sort .arrow { color: var(--muted); font-size: 10px; opacity: .55; }
th a.sort:hover .arrow, th[aria-sort] a.sort .arrow { opacity: 1; color: var(--accent); }
th[aria-sort] { color: var(--ink); }

/* ---- narrow windows ------------------------------------------------------------------------ */
/* Phones: the tabs fold into a Menu button; people with only their own pages get a bar along the bottom instead. */
.navmenu, .bottombar, .subnav-menu { display: none; }
.navmenu .menu { left: 0; right: auto; min-width: 240px; }
.navmenu .menu a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.navmenu .menu a:hover { background: var(--surface-3); }
.navmenu .menu a[aria-current="page"] { background: var(--accent-tint); font-weight: 600; }
.navmenu > summary { list-style: none; } .navmenu > summary::-webkit-details-marker { display: none; }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #1c1e20; border-top: 1px solid #000;
  grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottombar a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: #bdbab3; font-weight: 600;
  text-decoration: none; border-top: 3px solid transparent; }
.bottombar a[aria-current="page"] { color: #fff; border-top-color: #66b8ca; }
.bottombar a:focus-visible { box-shadow: inset 0 0 0 2px #66b8ca; }
.subnav-menu > summary { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); font-weight: 600; }
.subnav-menu nav { display: flex; flex-direction: column; padding: 6px 0; }
.subnav-menu nav .navhead { margin: 8px 0 2px; padding: 12px 12px 4px; border-top: 1px solid var(--line);
  font: 600 var(--fs-13)/1.3 var(--font); color: var(--ink); }
.subnav-menu nav a { display: block; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-weight: 400; border-left: 3px solid transparent; }
.subnav-menu nav a[aria-current="page"] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
@media (max-width: 1300px) { .appbar .lbl { display: none; } }
/* Narrower laptops: closer tabs and no name beside the initials, so an admin's nine tabs still fit. */
@media (max-width: 1366px) { .tabs a { padding: 0 9px; } }
@media (max-width: 1280px) { .appbar .who { display: none; } }
@media (max-width: 1140px) { body:not(.nav-simple) .tabs { display: none; } body:not(.nav-simple) .navmenu { display: flex; } }
@media (max-width: 1100px) {
  .split, .overview { grid-template-columns: minmax(0, 1fr); }
  .appbar .who, .appbar .lbl { display: none; }
}
@media (max-width: 900px) {
  .appbar { gap: 8px; padding: 0 12px; }
  .wordmark .logo { height: 18px; } .wordmark .name { font-size: 9px; padding-left: 34px; }
  .tabs a { padding: 0 10px; }
  .page { padding: 16px 12px 32px; }
  .settings { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .subnav { display: none; }
  .subnav-menu { display: block; }
  body:not(.nav-simple) .tabs { display: none; }
  body:not(.nav-simple) .navmenu { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .appbar { gap: 4px; padding: 0 8px; }
  .wordmark .name, .appbar .initials { display: none; }
  .tabs { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 0 8px; }
  body.nav-simple .tabs { display: none; }
  body.nav-simple .bottombar { display: grid; }
  body.nav-simple .page { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  /* Tables marked .cards (a person's requirements) read as one card per row on a phone. */
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr { display: block; }
  table.cards tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.cards tr:last-child { border-bottom: 0; }
  table.cards td { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); height: auto; padding: 2px 0; border: 0; }
  table.cards td.title { font-weight: 600; }
  table.cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-12); flex: none; }
  table.cards td.actions { padding-top: 6px; }
  table.cards td.actions:not(:has(a, details)) { display: none; }  /* nothing to do on this one */
  table.cards .cell-actions { flex-direction: row; flex-wrap: wrap; }
  .todo .btn, .field.upload .camera { min-height: 40px; }
  details.addform:not([open]) > summary { width: 100%; height: 40px; justify-content: center; }
}

/* ---- billing checks ------------------------------------------------------------------------ */
/* Finding types and states as status marks (dot + text): brick for money and missing paperwork, amber for details
   that disagree, a hollow grey ring for files nobody could read. */
.b-amount_mismatch, .b-missing_in_onedrive, .b-missing_in_sage, .b-open { color: var(--review); }
.b-amount_mismatch::before, .b-missing_in_onedrive::before, .b-missing_in_sage::before, .b-open::before { background: var(--review); }
.b-detail_mismatch, .b-misfiled { color: var(--warn); } .b-detail_mismatch::before, .b-misfiled::before { background: var(--warn); }
.b-unreadable, .b-not_compared, .b-ignored { color: var(--muted); }
.b-unreadable::before, .b-not_compared::before, .b-ignored::before { background: none; border: 1.5px solid currentColor; }
.b-resolved, .b-done { color: var(--ok); } .b-resolved::before, .b-done::before { background: var(--ok); }
.tag.new { border-color: var(--accent); color: var(--accent); margin-left: 6px; }
/* Figures line up on the right, in the mono face. */
th.r, td.r { text-align: right; }
/* Sage against each document: a figure that disagrees is brick on a brick tint (and bold, so it isn't colour alone). */
td.diff { color: var(--review); background: var(--review-tint); font-weight: 600; }
tbody tr:hover td.diff { background: var(--review-tint); }
.appbar .lastcheck { font-size: var(--fs-12); color: #bdbab3; white-space: nowrap; }
.appbar .lastcheck b { color: #e9e7e2; font-weight: 500; }
@media (max-width: 900px) { .appbar .lastcheck { display: none; } }
/* A finding's facts: label, value. */
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px var(--s-4); margin: 0; }
dl.kv dt { color: var(--ink-2); font-size: var(--fs-13); }
dl.kv dd { margin: 0; }
.panel form.stack textarea, .panel form.stack input[type=text] { width: 100%; }
.empty { padding: var(--s-6) var(--s-4); text-align: center; color: var(--muted); }
/* A list's filters: a row of their own between the list's heading and its table. */
.listfilters { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.differs { color: var(--review); }
/* Pay application states: draft is a hollow ring, waiting for billing amber, sent back brick, approved green. */
.b-pa-draft { color: var(--muted); } .b-pa-draft::before { background: none; border: 1.5px solid currentColor; }
.b-pa-submitted { color: var(--warn); } .b-pa-submitted::before { background: var(--warn); }
.b-pa-returned { color: var(--review); } .b-pa-returned::before { background: var(--review); }
.b-pa-approved { color: var(--ok); } .b-pa-approved::before { background: var(--ok); }
input.r { text-align: right; }
td input:not([type=checkbox]) { height: 30px; }
tr.total td { background: var(--surface-2); border-top: 1px solid var(--line-strong); }
fieldset.field { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-2) var(--s-3); margin: 0; }
fieldset.field label { display: block; color: var(--ink); font-weight: 400; font-size: var(--fs-14); padding: 2px 0; }
pre.log-detail { padding: 0 var(--s-4) var(--s-3); }
.log summary { grid-template-columns: 130px minmax(0, 1fr); }
/* The F703 on a pay application: column letters under each heading, the description and its CO number side by side. */
table.f703 th { vertical-align: bottom; }
table.f703 th .muted { font: 400 var(--fs-11) var(--mono); }
table.f703 td.desc { white-space: nowrap; }
table.f703 td.desc input[name^=change_order], table.f703 td.desc input[name=new_change_order] { width: 5.5em; margin-left: 4px; }
table.f703 tr.addrow td { background: var(--surface-2); border-top: 1px dashed var(--line-strong); }
.sheet-note { margin: 0; padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); }
/* Unpaid earlier bills on the approve form. */
fieldset.unpaid { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-2) var(--s-3); margin: 0; }
fieldset.unpaid table { width: 100%; }
fieldset.unpaid input { width: 100%; }
table.f703 input.r { width: 7.5em; }
table.f703 input[name^=pct_] { width: 4.5em; }
table.f703 td.desc input:first-child { width: 15em; }
table.f703 input[name^=item_], table.f703 input[name=new_item] { width: 3em; }
table.f703 th, table.f703 td { padding-left: 6px; padding-right: 6px; }
/* Signed: settled like approved, in the ink of a signature. */
/* Sent to the GC: a teal-green that says done, short of paid. */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 2px 0; overflow-wrap: anywhere; }
/* After signing: sent, Sage and filed side by side, stacking on narrow screens. */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); align-items: start; }
.tag.ok { border-color: var(--ok); color: var(--ok); }
.tag.warn { border-color: var(--warn); color: var(--warn); }
/* Change orders: requested a hollow ring, with the GC amber, approved green, rejected and void struck through. */
.b-co-requested { color: var(--muted); } .b-co-requested::before { background: none; border: 1.5px solid currentColor; }
.b-co-pending { color: var(--warn); } .b-co-pending::before { background: var(--warn); }
.b-co-approved { color: var(--ok); } .b-co-approved::before { background: var(--ok); }
.b-co-rejected, .b-co-void { color: var(--muted); text-decoration: line-through; } .b-co-rejected::before, .b-co-void::before { background: var(--muted); }
.co-actions { min-width: 240px; padding-top: var(--s-2); }
.pre { white-space: pre-line; }
/* WIP: the PM filter as a row of checkboxes; figures stay on one line. */
label.pmcheck { display: inline-flex; align-items: center; gap: 4px; margin: 2px 12px 2px 0; }
table.wip td.r { white-space: nowrap; }
.toolbar fieldset.pms { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; }
.toolbar fieldset.pms legend { padding: 0; margin-bottom: 4px; }
.toolbar label.pmcheck { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; width: auto; margin: 0; }
.toolbar label.pmcheck input { width: 15px; height: 15px; }

/* Finding page: the job's files, and the chosen one's page with the finding's figure marked */
ol.todo { margin: 4px 0 0; padding-left: 20px; } ol.todo li { margin: 2px 0; }
tr.current td { background: var(--accent-tint, var(--surface-3)); }
[class^="dot-"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-ok::before { background: var(--ok); } .dot-warn::before { background: var(--warn); }
.dot-review::before { background: var(--review); } .dot-muted::before { border: 1.5px solid var(--muted); width: 6px; height: 6px; }
.viewer-card { margin-top: var(--s-5); }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-5); padding: var(--s-4) var(--s-5) var(--s-5); align-items: start; }
.viewer-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: var(--s-2); }
.viewer-page { position: relative; border: 1px solid var(--line); background: #fff; }
.viewer-page img { display: block; width: 100%; height: auto; }
.viewer-page .hl { position: absolute; border: 2.5px solid var(--review); border-radius: 3px; background: rgba(163, 48, 28, .12); box-shadow: 0 0 0 3px rgba(163, 48, 28, .18); pointer-events: none; }
.viewer-side { position: sticky; top: var(--s-4); }
.viewer-side .field input, .viewer-side .field select { width: 100%; }
.sheet-view td { padding: 3px 8px; font-size: var(--fs-12); white-space: nowrap; }
.sheet-view td.hit { outline: 2.5px solid var(--review); background: var(--review-tint); font-weight: 600; }
@media (max-width: 900px) { .viewer { grid-template-columns: minmax(0, 1fr); } .viewer-side { position: static; } }

/* The WIP page: every column of ACS's workbook, so the table scrolls sideways with the job column held */
.tablewrap.wide { overflow-x: auto; }
.tablewrap.wide table.wip th, .tablewrap.wide table.wip td { white-space: nowrap; }
.tablewrap.wide table.wip th:first-child, .tablewrap.wide table.wip td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }

/* Feedback: the app bar's dialog (and /feedback), the thanks toast, Admin › Feedback's list */
dialog.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-strong);
  border-radius: var(--r-2); background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, .28); }
dialog.modal::backdrop { background: rgba(12, 13, 14, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: var(--fs-16, 16px); }
.modal-body { padding: var(--s-4); }
.fb-form { gap: var(--s-3); }
.fb-form .stack-xs, .stack-xs { display: flex; flex-direction: column; gap: 4px; }
.fb-form textarea { width: 100%; min-height: 128px; resize: vertical; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.fb-kind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.fb-kind:has(input:checked) { border-color: var(--accent); background: var(--accent-tint, var(--info-tint)); }
label.check { display: inline-flex; align-items: center; gap: 8px; }
.fb-where { margin-top: -6px; overflow-wrap: anywhere; }
.form-error { margin: 0; color: var(--review); font-weight: 500; }
.fb-actions { justify-content: flex-end; align-items: center; }
.fb-hint { margin-right: auto; }
.fb-sheet { max-width: 640px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 10px 16px; border-radius: var(--r-2);
  background: var(--ink); color: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.toast[hidden] { display: none; }
.fb-filters { border-bottom: 0; margin-left: auto; }
.fb-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-direction: column; }
.fb-item { padding: var(--s-3) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.fb-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-context { overflow-wrap: anywhere; }
.fb-review { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.fb-review input[name=note] { flex: 1 1 260px; }
.b-fb-new { color: var(--review); } .b-fb-new::before { background: var(--review); }
.b-fb-seen { color: var(--accent); } .b-fb-seen::before { background: none; border: 1.5px solid currentColor; }
.b-fb-planned { color: var(--warn); } .b-fb-planned::before { background: none; border: 1.5px solid currentColor; }
.b-fb-done { color: var(--ok); } .b-fb-done::before { background: var(--ok); }
.b-fb-wont { color: var(--muted); } .b-fb-wont::before { background: none; border: 1.5px solid currentColor; }
@media (max-width: 700px) { .appbar .barbtn[data-feedback-open] .lbl { display: none; } }
/* A phone: this app's bar has two more buttons than Training Tracker's (Feedback, Practice), and below about 410px
   Sign out ran off the right edge. Closer together there; on the narrowest screens the logo is a little smaller and
   Menu is its icon alone (its word is still there for a screen reader). */
@media (max-width: 430px) {
  .appbar { padding: 0 6px; }
  .wordmark { margin-right: 0; }
  .appbar .right { gap: 2px; }
  .appbar .barbtn { padding: 0 8px; }
}
@media (max-width: 359px) {
  .wordmark .logo { height: 16px; }
  .navmenu > summary.barbtn { font-size: 0; gap: 0; }
}

/* A hint beside a figure: a small "?" that shows a line of explanation on hover or keyboard focus (no script) */
.hint { position: relative; display: inline-block; width: 16px; height: 16px; line-height: 15px; text-align: center; font: 500 var(--fs-11)/15px var(--font);
  color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 50%; cursor: help; vertical-align: middle; }
.hint::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; width: max-content; max-width: 320px;
  padding: 6px 8px; font: 400 var(--fs-12)/1.4 var(--font); text-align: left; white-space: normal; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.hint:hover::after, .hint:focus-visible::after { opacity: 1; visibility: visible; }

/* Picking a GC from the Jobs list */
/* The "forms?" tag beside a GC whose forms aren't confirmed: click it to pick the forms there and then */
details.gcpick { display: inline-block; position: relative; vertical-align: middle; }
details.gcpick summary { list-style: none; cursor: pointer; }
details.gcpick summary::-webkit-details-marker { display: none; }
details.gcpick[open] summary { border-color: var(--accent); color: var(--accent); }
details.gcpick form { position: absolute; left: 0; top: calc(100% + 4px); z-index: 5; display: flex; gap: 4px; align-items: center;
  padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
details.gcpick select { max-width: 14em; font-size: var(--fs-12); }

/* A practice copy (practice.py): an amber band under the app bar, on every page, until it's ended. */
.practice-banner { position: sticky; top: 0; z-index: 20; display: flex; gap: var(--s-3); align-items: center; justify-content: space-between;
  flex-wrap: wrap; padding: 8px 16px; background: var(--warn-tint); color: var(--warn); border-bottom: 2px solid var(--warn); font-size: var(--fs-13, 13px); }
.practice-banner form { margin: 0; }
/* Admin › Signature: the image as it sits on the By: line */
.sig-preview { position: relative; display: inline-flex; align-items: flex-end; padding: 8px 24px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); width: max-content; }
.sig-preview img { position: relative; z-index: 1; display: block; }
.sig-line { position: absolute; left: 12px; right: 12px; bottom: 10px; border-bottom: 1px solid #000; }
