/* HoursReady design tokens v4.0.0. GENERATED from brand/tokens/tokens.json by brand/tokens/build-tokens.mjs. Do not edit by hand. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("Liberation Sans");
  size-adjust: 100%;
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --surface-1: #F6F7F9;
  --surface-2: #EEF1F4;
  --ink: #0E1116;
  --ink-2: #3A414C;
  --ink-3: #686E7C;
  --line: #E6E8EC;
  --field: #858B95;
  --accent: #0B5D3B;
  --accent-hover: #094D31;
  --accent-ink: #FFFFFF;
  --accent-tint: #E7F3EC;
  --ok: #127A3F;
  --ok-tint: #E6F4EC;
  --warn: #A15C00;
  --warn-tint: #FFF4E0;
  --bad: #B42318;
  --bad-tint: #FDECEA;
  --info: #1F4FB8;
  --info-tint: #EAF0FC;
  --ex: #A15C00;
  --ex-tint: #FFF4E0;
  --mark: #0B5D3B;
  --sun: #1F4FB8;
  --sun-soft: #EAF0FC;
  --arc: #0B5D3B;
  --ot: #1F4FB8;
  --pattern: #E6E8EC;
  --dot: #DDE1E6;
  --card: #FFFFFF;
  --data-reg: #0B5D3B;
  --data-ot: #1F4FB8;
  --data-dt: #0E1116;

  --font: "Instrument Sans", "Instrument Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-features: "kern";
  --font-features-num: "tnum";
  --display-stretch: 75%;
  --heading-stretch: 80%;
  --t-display: clamp(2.5rem, 1.913rem + 2.6087vw, 4rem);
  --t-display-lh: clamp(2.75rem, 2.163rem + 2.6087vw, 4.25rem);
  --t-display-w: 600;
  --t-display-tr: -0.032em;
  --t-h1: clamp(2.125rem, 1.7826rem + 1.5217vw, 3rem);
  --t-h1-lh: clamp(2.5rem, 2.1576rem + 1.5217vw, 3.375rem);
  --t-h1-w: 600;
  --t-h1-tr: -0.028em;
  --t-h2: clamp(1.625rem, 1.4293rem + 0.8696vw, 2.125rem);
  --t-h2-lh: clamp(2rem, 1.8043rem + 0.8696vw, 2.5rem);
  --t-h2-w: 600;
  --t-h2-tr: -0.022em;
  --t-h3: clamp(1.25rem, 1.2011rem + 0.2174vw, 1.375rem);
  --t-h3-lh: clamp(1.625rem, 1.5761rem + 0.2174vw, 1.75rem);
  --t-h3-w: 600;
  --t-h3-tr: -0.012em;
  --t-h4: 1.0625rem;
  --t-h4-lh: 1.5rem;
  --t-h4-w: 600;
  --t-h4-tr: -0.006em;
  --t-lead: clamp(1.125rem, 1.0516rem + 0.3261vw, 1.3125rem);
  --t-lead-lh: clamp(1.75rem, 1.6522rem + 0.4348vw, 2rem);
  --t-lead-w: 400;
  --t-lead-tr: -0.005em;
  --t-body: clamp(1rem, 0.9755rem + 0.1087vw, 1.0625rem);
  --t-body-lh: clamp(1.625rem, 1.5761rem + 0.2174vw, 1.75rem);
  --t-body-w: 400;
  --t-body-tr: 0;
  --t-small: 0.875rem;
  --t-small-lh: 1.25rem;
  --t-small-w: 400;
  --t-small-tr: 0;
  --t-caption: 0.8125rem;
  --t-caption-lh: 1.125rem;
  --t-caption-w: 500;
  --t-caption-tr: 0.005em;
  --t-num-xl: clamp(3.25rem, 2.5652rem + 3.0435vw, 5rem);
  --t-num-xl-lh: clamp(3.5rem, 2.913rem + 2.6087vw, 5rem);
  --t-num-xl-w: 600;
  --t-num-xl-tr: -0.03em;
  --t-num-lg: clamp(1.75rem, 1.6033rem + 0.6522vw, 2.125rem);
  --t-num-lg-lh: clamp(2rem, 1.8043rem + 0.8696vw, 2.5rem);
  --t-num-lg-w: 600;
  --t-num-lg-tr: -0.02em;
  --t-num-md: 1.0625rem;
  --t-num-md-lh: 1.5rem;
  --t-num-md-w: 600;
  --t-num-md-tr: 0;

  --sp-0: 0rem;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  --section: clamp(4rem, 3.2174rem + 3.4783vw, 6rem);
  --wrap: 75rem;
  --wrap-text: 42.5rem;
  --measure: 40rem;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 999px;
  --e-1: 0 8px 30px rgb(14 17 22 / .08);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  --dur-fast: 120ms;
  --dur-menu: 160ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1114;
    --surface-1: #181B20;
    --surface-2: #22262D;
    --ink: #FFFFFF;
    --ink-2: #C3C7CD;
    --ink-3: #8A9099;
    --line: #2E333B;
    --field: #6B7280;
    --accent: #FF5A1F;
    --accent-hover: #E64E15;
    --accent-ink: #0F1114;
    --accent-tint: #2A1710;
    --ok: #6EE7A0;
    --ok-tint: #12261A;
    --warn: #FFB394;
    --warn-tint: #2A1710;
    --bad: #FF8F85;
    --bad-tint: #331719;
    --info: #7FA0FF;
    --info-tint: #1A2236;
    --ex: #FFB394;
    --ex-tint: #2A1710;
    --mark: #E9EAE6;
    --sun: #FF5A1F;
    --sun-soft: #2A1710;
    --arc: #E9EAE6;
    --ot: #FF5A1F;
    --pattern: #1E2228;
    --dot: #262B32;
    --card: #181B20;
    --data-reg: #E9EAE6;
    --data-ot: #FF5A1F;
    --data-dt: #FFFFFF;
    --e-1: 0 8px 30px rgb(0 0 0 / .35);
  }
}

@media print {
  :root {
    --ink: #000000;
    --ink-2: #222222;
    --ink-3: #444444;
    --bg: #FFFFFF;
    --surface-1: #FFFFFF;
    --surface-2: #FFFFFF;
    --line: #999999;
    --accent: #000000;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-menu: 0ms; }
}

/* ---- Brand v2 (DESIGN-SYSTEM-V2). GENERATED from tokens.json "v2". Additive: nothing above this line changes. ---- */
:root {
  --t-hero: clamp(3.375rem, 2.4457rem + 4.1304vw, 5.75rem);
  --t-hero-lh: clamp(3.25rem, 2.4185rem + 3.6957vw, 5.375rem);
  --t-hero-w: 600;
  --t-hero-tr: -0.035em;
  --t-h1m: clamp(2.25rem, 1.7609rem + 2.1739vw, 3.5rem);
  --t-h1m-lh: clamp(2.625rem, 2.1359rem + 2.1739vw, 3.875rem);
  --t-h1m-w: 600;
  --t-h1m-tr: -0.03em;
  --t-h2m: clamp(1.875rem, 1.5326rem + 1.5217vw, 2.75rem);
  --t-h2m-lh: clamp(2.25rem, 1.9076rem + 1.5217vw, 3.125rem);
  --t-h2m-w: 600;
  --t-h2m-tr: -0.025em;
  --t-h3m: clamp(1.3125rem, 1.2391rem + 0.3261vw, 1.5rem);
  --t-h3m-lh: clamp(1.75rem, 1.7011rem + 0.2174vw, 1.875rem);
  --t-h3m-w: 600;
  --t-h3m-tr: -0.012em;
  --t-lead-m: clamp(1.125rem, 1.0272rem + 0.4348vw, 1.375rem);
  --t-lead-m-lh: clamp(1.75rem, 1.6033rem + 0.6522vw, 2.125rem);
  --t-lead-m-w: 400;
  --t-lead-m-tr: -0.005em;
  --t-stat: clamp(2rem, 1.6087rem + 1.7391vw, 3rem);
  --t-stat-lh: clamp(2.25rem, 1.8587rem + 1.7391vw, 3.25rem);
  --t-stat-w: 600;
  --t-stat-tr: -0.02em;
  --t-menu: 0.9375rem;
  --t-menu-lh: 1.25rem;
  --t-menu-w: 500;
  --t-menu-tr: 0;
  --t-menu-desc: 0.8125rem;
  --t-menu-desc-lh: 1.125rem;
  --t-menu-desc-w: 400;
  --t-menu-desc-tr: 0;
  --section-m: clamp(5rem, 3.8261rem + 5.2174vw, 8rem);
  --wrap-wide: 82.5rem;
  --r-xl: 24px;
  --e-2: 0 24px 60px rgb(14 17 22 / .12);
  --line-strong: #C9CED6;
  --raised-bg: #FFFFFF;
  --node-bg: #FFFFFF;
  --node-active-bg: #E7F3EC;
  --node-active-border: #0B5D3B;
  --sec-ink-bg: #E7F3EC;
  --sec-night-bg: #F6F7F9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --line-strong: #3A404A;
    --raised-bg: #181B20;
    --node-bg: #0F1114;
    --node-active-bg: #2A1710;
    --node-active-border: #FF5A1F;
    --sec-ink-bg: #2A1710;
    --sec-night-bg: #181B20;
    --sec-night-hairline: #2E333B;
    --e-2: 0 24px 60px rgb(0 0 0 / .5);
  }
}

/* Section themes (DS2 §2.2): each class re-points the same tokens, so components need no theme CSS.
   .sec-ink and .sec-night: at most one of each per page. Night is neutral near-black, never navy (guardrail). */
.sec { background: var(--bg); color: var(--ink); }
.sec-soft { background: var(--surface-1); color: var(--ink); }
.sec-ink { background: var(--sec-ink-bg); color: var(--ink); }
.sec-night { background: var(--surface-1); color: var(--ink); }

/* App shell + components for the static app screens (app board v4, owner-approved 2026-11-23); the twin of the chassis
   theme pack's app.css. Colours, type and font come from brand/tokens/tokens.css (prepended by each build; light and
   dark by prefers-color-scheme). Mobile first; the sidebar from 64rem. Plain elements inside <main> get the board's
   look too, so screens that build their DOM in script need no class names. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--font); font-feature-settings: var(--font-features); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); border-radius: 8px; }
.hs-i { flex: none; }
.hs-sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--bg); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.hs-mark-h { stroke: var(--mark); }
.hs-mark-sun { fill: var(--sun); }
.num, table { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.hs-app { min-height: 100dvh; display: flex; flex-direction: column; }
.hs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hs-bar { position: sticky; top: 0; z-index: 30; min-height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
.hs-logo-m, .hs-logo-d { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink); }
.hs-logo-m .hs-lockup, .hs-logo-d .hs-lockup { height: 24px; width: auto; }
.hs-crumb { display: none; margin: 0; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-3); min-width: 0; }
.hs-crumb b { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hs-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.hs-iconbtn:hover { background: var(--surface-1); }
.hs-lnk { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.hs-lnk:hover { background: var(--surface-1); color: var(--ink); }
.hs-acct { position: relative; }
.hs-acct > button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: var(--surface-1); color: var(--ink); font: inherit; cursor: pointer; }
.hs-acct > button .nm, .hs-acct > button .hs-i { display: none; }
.hs-acct > button .nm { font-size: .9375rem; font-weight: 500; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-acct > button .hs-i { color: var(--ink-3); }
.hs-av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .875rem; font-weight: 600; flex: none; }
.hs-menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); background: var(--bg); border-radius: 12px; box-shadow: 0 8px 30px rgb(14 17 22 / .12), 0 0 0 1px var(--line); padding: 8px; z-index: 40; }
.hs-menu .who { margin: 0 0 6px; padding: 10px 12px 12px; box-shadow: inset 0 -1px 0 var(--line); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.hs-menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: .9375rem; color: var(--ink-2); text-decoration: none; }
.hs-menu a:hover { background: var(--surface-1); color: var(--ink); }
.hs-menu .hs-i { color: var(--ink-3); }
.hs-ext { margin-left: auto; }
.billing { display: inline-flex; gap: 8px; align-items: center; }
.billing button { margin: 0; }

/* sidebar: an off-canvas drawer below 64rem, a column from 64rem */
.hs-side { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); overflow-y: auto; background: var(--surface-1); padding: 12px; display: flex; flex-direction: column; gap: 16px; transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
.hs-open .hs-side { transform: none; visibility: visible; }
.hs-scrim { position: fixed; inset: 0; z-index: 45; background: rgb(14 17 22 / .45); }
.hs-side-top { display: flex; align-items: center; justify-content: space-between; }
.hs-logo { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); }
.hs-logo .hs-lockup { height: 28px; width: auto; }
.hs-switch { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 12px; background: var(--bg); box-shadow: 0 1px 2px rgb(14 17 22 / .06), 0 0 0 1px var(--line); min-width: 0; }
.hs-co { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: .875rem; flex: none; }
.hs-switch .t { flex: 1; min-width: 0; line-height: 1.2; }
.hs-switch .t b { display: block; font-size: .9375rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-switch .t small { font-size: .8125rem; color: var(--ink-3); }
.hs-nav { display: grid; gap: 2px; }
.hs-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.hs-nav a .hs-i { color: var(--ink-3); }
.hs-nav a:hover { color: var(--ink); }
.hs-nav a[aria-current="page"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgb(14 17 22 / .06), 0 0 0 1px var(--line); }
.hs-nav a[aria-current="page"] .hs-i { color: var(--accent); }
.hs-grow { flex: 1; }
.hs-foot { margin-top: auto; padding: 20px 16px; font-size: .875rem; color: var(--ink-3); box-shadow: inset 0 1px 0 var(--line); }
.hs-foot p { margin: 0; }
.hs-main > main { width: 100%; max-width: 1032px; margin: 0; padding: 24px 16px 40px; }
.hs-main > main.wide { max-width: none; }
.hs-device { justify-content: space-between; }
.hs-device .who { flex: 1 1 auto; min-width: 0; font-size: .9375rem; color: var(--ink-2); text-align: right; overflow-wrap: anywhere; }
/* the language switch (i18n.ts): shown only where a second language may be shown */
.hs-lang { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-2); }
.hs-lang[hidden] { display: none; }
.hs-lang select { min-height: 36px; border: 0; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--field); padding: 0 8px; font: inherit; color: var(--ink); }
.hs-lang select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.hs-device .hs-lang label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-menu .hs-lang { min-height: 44px; padding: 0 12px; }

@media (min-width: 48rem) {
  .hs-bar { padding: 0 24px; }
  .hs-main > main { padding: 32px 24px 48px; }
  .hs-foot { padding: 20px 24px; }
  .hs-lnk { display: inline-flex; }
  .hs-acct > button { padding: 4px 10px 4px 4px; }
  .hs-acct > button .nm, .hs-acct > button .hs-i { display: inline; }
}
@media (min-width: 64rem) {
  .hs-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .hs-side { position: sticky; transform: none; visibility: visible; width: auto; height: 100dvh; padding: 20px 12px; gap: 20px; transition: none; }
  .hs-scrim, .hs-close, .hs-menu-b, .hs-logo-m { display: none !important; }
  .hs-bar { min-height: 64px; padding: 0 40px; }
  .hs-crumb { display: flex; }
  .hs-main > main { padding: 40px 40px 56px; }
  .hs-foot { padding: 20px 40px; }
}
@media print { .hs-side, .hs-bar, .hs-scrim, .skip { display: none !important; } .hs-app { display: block; } }

/* ---------- type (plain elements in the page) ---------- */
main h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem); line-height: 1.18; font-stretch: var(--heading-stretch); letter-spacing: -0.025em; color: var(--ink); font-weight: 600; }
main h2 { margin: 0 0 12px; font-size: clamp(1.25rem, 1.2rem + .2vw, 1.375rem); line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); font-weight: 600; }
main h3 { margin: 24px 0 8px; font-size: 1.0625rem; line-height: 1.45; color: var(--ink); font-weight: 600; }
main p { margin: 0 0 12px; }
.lead { max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; line-height: 1.45; }
.hint, .help { color: var(--ink-3); font-size: .875rem; line-height: 1.45; }
.cap { font-size: .8125rem; line-height: 1.4; color: var(--ink-3); }

/* ---------- controls ---------- */
main button, .hs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 12px 8px 0 0; padding: 10px 24px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center; }
main button:hover, .hs-btn.p:hover { background: var(--accent-hover); color: var(--accent-ink); }
main button:disabled { opacity: .45; cursor: not-allowed; }
main button.secondary, .hs-btn.s { background: var(--surface-2); color: var(--ink); }
main button.secondary:hover, .hs-btn.s:hover { background: var(--line); color: var(--ink); }
main button.link, .hs-btn.t { background: none; color: var(--accent); padding: 0 4px; min-height: 44px; margin: 0; text-decoration: underline; }
.hs-btn.p { background: var(--accent); color: var(--accent-ink); }
.hs-btn.sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; margin: 0; }
.hs-btn.g { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); }
label { font-size: .875rem; font-weight: 500; color: var(--ink); }
main select, main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), main textarea { min-height: 48px; max-width: 100%; border-radius: 8px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--field); padding: 0 14px; font: inherit; font-size: 1rem; color: var(--ink); }
main textarea { padding: 10px 14px; }
main select:focus, main input:focus, main textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
main input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--bad); }
main input[type="checkbox"], main input[type="radio"] { width: 20px; height: 20px; accent-color: var(--accent); }
fieldset { border: 0; border-radius: 12px; background: var(--surface-1); margin: 12px 0; padding: 16px; min-width: 0; }
legend { font-weight: 600; color: var(--ink); padding: 0; float: left; width: 100%; margin-bottom: 8px; }
legend + * { clear: both; }
details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--ink); }

/* ---------- components ---------- */
.hs-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.hs-tag.sm { min-height: 22px; font-size: .75rem; padding: 0 8px 0 6px; gap: 4px; }
.hs-tag.ok, .verdict.ok { background: var(--ok-tint); color: var(--ok); }
.hs-tag.warn { background: var(--warn-tint); color: var(--warn); }
.hs-tag.bad, .verdict.bad { background: var(--bad-tint); color: var(--bad); }
.verdict { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 1rem; }
.verdict:empty { display: none; }
.hs-panel, main section.card { background: var(--surface-1); border-radius: 20px; padding: 20px; margin: 0 0 16px; }
.hs-note, .privacy, .notice-box { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-size: .9375rem; line-height: 1.5; }
.hs-note strong, .hs-note b, .privacy strong { color: var(--ink); }
.hs-note .hs-i { margin-top: 2px; }
.privacy, .hs-note.acc { background: var(--accent-tint); } .privacy .hs-i, .hs-note.acc .hs-i { color: var(--accent); }
.hs-note.ok { background: var(--ok-tint); } .hs-note.ok .hs-i { color: var(--ok); }
.hs-note.warn, .gate { background: var(--warn-tint); } .hs-note.warn .hs-i { color: var(--warn); }
.hs-note.bad { background: var(--bad-tint); } .hs-note.bad .hs-i { color: var(--bad); }
.hs-note.info { background: var(--info-tint); } .hs-note.info .hs-i { color: var(--info); }
.gate { color: var(--ink-2); border-radius: 12px; padding: 14px 16px; }
.gate:empty { display: none; }
.rt, ul.rules a.library { display: inline-flex; align-items: center; gap: 6px; background: var(--info-tint); color: var(--info); font-size: .8125rem; line-height: 18px; font-weight: 500; padding: 3px 8px; border-radius: 8px; text-decoration: none; }

/* stepper: numbered, done steps ticked (the page sets aria-current="step"; done = every step before it) */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0 0 24px; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px 8px; font-size: .875rem; line-height: 1.3; font-weight: 500; color: var(--ink-3); min-width: 0; }
.steps li::before { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-2); }
.steps li::after { content: counter(s); order: -1; grid-row: 2; width: 24px; height: 24px; margin-top: -2px; border-radius: 50%; display: grid; place-items: center; font-size: .8125rem; font-weight: 600; background: var(--surface-2); color: var(--ink-3); }
.steps li.done, .steps li[aria-current="step"] { color: var(--ink); }
.steps li.done::before, .steps li[aria-current="step"]::before { background: var(--accent); }
.steps li.done::after { content: "✓"; background: var(--accent); color: var(--accent-ink); }
.steps li[aria-current="step"]::after { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.steps .lbl { grid-row: 2; grid-column: 2; overflow-wrap: anywhere; }
@media (max-width: 47.99rem) {
  .steps { gap: 4px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
  .steps li::after { grid-row: auto; justify-self: start; }
  .steps .lbl { display: none; }
  .steps li[aria-current="step"] .lbl { display: block; grid-column: 1 / -1; grid-row: auto; white-space: nowrap; overflow: visible; }
  .steps li[aria-current="step"] { grid-column: span 1; }
}

/* drop zone: a styled label over the real file input (keyboard: the input stays focusable) */
.drop { position: relative; display: block; border-radius: 20px; background: var(--surface-1); padding: 40px 20px; text-align: center; outline: 2px dashed var(--field); outline-offset: -2px; cursor: pointer; }
.drop.over { background: var(--accent-tint); outline-color: var(--accent); }
.drop:focus-within { outline-style: solid; outline-color: var(--accent); }
.drop .tile { width: 56px; height: 56px; border-radius: 12px; background: var(--bg); box-shadow: 0 1px 2px rgb(14 17 22 / .06), 0 0 0 1px var(--line); display: grid; place-items: center; margin: 0 auto 20px; color: var(--accent); }
.drop .dz-h { display: block; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.375rem); line-height: 1.3; color: var(--ink); font-weight: 600; }
.drop .dz-p { display: block; margin-top: 6px; color: var(--ink-3); }
.drop .dz-b { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; margin-top: 20px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fmt { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.fmt span { font-size: .8125rem; font-weight: 600; color: var(--ink-2); background: var(--bg); border-radius: 6px; padding: 3px 8px; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 48rem) { .drop { padding: 56px 32px; } }

/* tables: scroll inside their container, never the page; .stack tables become cards on phones */
.scroll, .table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
main table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
main caption { text-align: left; font-weight: 600; color: var(--ink); padding: 0 0 10px; }
main th { font-size: .8125rem; font-weight: 500; color: var(--ink-3); text-align: left; padding: 0 12px 10px; box-shadow: inset 0 -1px 0 var(--line); vertical-align: bottom; }
main td, main tbody th, main tr th[scope="row"] { padding: 14px 12px; box-shadow: inset 0 -1px 0 var(--line); vertical-align: top; color: var(--ink-2); text-align: left; }
main tr th[scope="row"] { color: var(--ink); font-weight: 600; font-size: .9375rem; }
main tr.total th, main tr.total td { font-weight: 600; color: var(--ink); box-shadow: none; padding-top: 16px; }
main tr.flag td:first-child, main tr.flag th:first-child { box-shadow: inset 3px 0 0 var(--warn), inset 0 -1px 0 var(--line); }
ul.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .875rem; }
ul.rules li.notice { color: var(--warn); }
table.results td:not(:last-child), table.results th[scope="col"]:not(:first-child):not(:last-child) { text-align: right; white-space: nowrap; }
@media (max-width: 47.99rem) {
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th[scope="row"] { display: block; width: 100%; }
  table.stack caption { display: block; }
  table.stack tr:first-of-type:has(th[scope="col"]) { display: none; }
  table.stack tr { border-radius: 12px; background: var(--surface-1); padding: 8px 14px; margin: 0 0 12px; }
  table.stack td, table.stack th[scope="row"] { box-shadow: none; padding: 6px 0; text-align: left !important; white-space: normal !important; }
  table.stack td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  table.stack td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: .8125rem; font-weight: 500; }
  table.stack td.rules-cell { display: block; }
  table.stack td.rules-cell::before { display: block; margin-bottom: 6px; }
  table.stack tr.total { background: var(--accent-tint); }
}
.trio { display: grid; gap: 16px; margin-top: 24px; }
.trio h3 { margin: 0 0 4px; }
.trio p { margin: 0; }
@media (min-width: 48rem) { .trio { grid-template-columns: repeat(3, 1fr); } }
.privacy > .hs-i { color: var(--accent); margin-top: 2px; }
/* rule tags: each rule line in a results table is a tag (the hours, the rule, its Rules Library and source links) */
ul.rules li:not(.notice):not(.muted) { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; background: var(--info-tint); color: var(--info); font-size: .8125rem; line-height: 18px; font-weight: 500; padding: 4px 8px; border-radius: 8px; }
ul.rules li a { color: var(--info); text-decoration: underline; display: inline-flex; align-items: center; min-height: 24px; }
ul.rules li a.library { background: none; padding: 0; }
@media (min-width: 64rem) { .hs-app { background: linear-gradient(to right, var(--surface-1) 264px, var(--bg) 264px); } }
/* section tabs inside a screen (the team screens): one scrolling row, never the page */
.hs-sub { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 20px; padding: 0 0 4px; -webkit-overflow-scrolling: touch; }
.hs-sub a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface-1); color: var(--ink-2); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hs-sub a:hover { color: var(--ink); background: var(--surface-2); }
.hs-sub a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* Team screens (app.hoursready.com/team/): the page's own parts. The shell, type and controls are brand/app-shell/shell.css;
   colours and the font brand/tokens/tokens.css (both prepended by build.mjs). */
main > section { border-top: 1px solid var(--line); padding-top: 8px; }
main h2 { margin-top: 28px; }
main > section:first-of-type { border-top: 0; }
label { display: block; margin: 10px 0 4px; }
input, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--field); border-radius: 6px; padding: 8px 10px; min-height: 44px; max-width: 100%; }
input:not([size]), select { width: 100%; max-width: 28rem; }
/* INFO-S2-3: anything hidden stays hidden, whatever rule sets its display (S2: `button {display:inline-block}` showed
   hidden buttons) */
[hidden] { display: none !important; }
main button, .button { font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; margin: 8px 8px 0 0; border-radius: 12px;
  border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; }
main button:hover, .button:hover { background: var(--accent-hover); }
main td button { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 1px var(--field); margin-top: 4px; }
main td button:hover { background: var(--accent); color: var(--accent-ink); } /* the hovered table button keeps its contrast (was accent on accent-hover) */
button:disabled { opacity: .5; cursor: not-allowed; }
form.inline label { display: inline-block; margin-right: 8px; }
.list { padding-left: 1.2rem; }
.list button { margin-left: 8px; }
.table-wrap { overflow-x: auto; max-width: 100%; position: relative; } /* contains the absolutely positioned sr-only labels */
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
td input { min-height: 44px; width: 6.5rem; }
.msg { min-height: 1.5em; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.muted { color: var(--ink-2); }
.strong { font-weight: 700; }
.break { word-break: break-all; }
/* W3.C task 6: the enrollment QR code (src/qr.ts draws it with a white quiet zone; kept light in dark mode too) */
.qr { width: 14rem; max-width: 100%; margin: 0.5rem 0; }
.qr svg { display: block; width: 100%; height: auto; }
.filters label { display: inline-block; margin-right: 6px; }
.filters select, .filters input { width: auto; }
@media (max-width: 480px) { .filters label { display: block; } .filters select, .filters input { width: 100%; } }
.hint { margin: 4px 0 0; font-size: .95rem; }
label.inline { display: inline; font-weight: 400; }
.punch-photo { max-width: 100%; height: auto; display: block; }
/* screens S1: the timesheet */
.sheet-head { margin: 4px 0 8px; }
.notice { border-left: 4px solid var(--accent); padding: 8px 12px; margin: 8px 0; }
.totals { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0; }
.totals dt { font-weight: 600; }
.totals dd { margin: 0; }
.sheet h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.sheet li { overflow-wrap: anywhere; }
/* empty states (no company yet): one card, the real next action */
main section.card.empty { max-width: 36rem; }
main section.card.empty h2 { margin-top: 0; }
main section.card.empty form button { margin-top: 12px; }
main section.card.empty p a { display: inline-block; padding: 12px 0; margin: -12px 0; } /* 44 px tap target, same line height */
/* Business step 2: pay rates and job costing (money columns right-aligned, tabular figures) */
table.num td:not(:first-child), table.num th[scope="col"]:not(:first-child), #history td:nth-child(3), #rates td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
table.num thead th, #rates thead th, #history thead th { text-align: left; }
table.num thead th:not(:first-child) { text-align: right; }
table.num tr.person td { color: var(--ink-2); }
table.num td.indent { padding-left: 1.5rem; }
table.num tfoot th, table.num tfoot td { border-top: 2px solid var(--line); padding-top: 8px; }
table.num th[scope="row"] { text-align: left; font-weight: 600; }
main button.link { background: none; color: var(--accent); box-shadow: none; padding: 0; min-height: 44px; margin: 0; text-align: left; font-weight: 600; }
main button.link:hover { background: none; text-decoration: underline; color: var(--accent); }
main button.link[aria-expanded="true"]::after { content: " ▾"; }
main button.link[aria-expanded="false"]::after { content: " ▸"; }
.cost-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; }
.cost-bar > div { flex: 1 1 16rem; }
.cost-bar p { margin: 0; }
.cost-totals { grid-template-columns: repeat(4, auto 1fr); }
@media (max-width: 720px) { .cost-totals { grid-template-columns: auto 1fr; } }
.pay { margin-top: 12px; }
.pay h4 { margin: 14px 0 4px; font-size: 1rem; }
.cost-bar + section.card { margin-top: 16px; }
table.num td, table.num th[scope="row"] { vertical-align: middle; }
@media (max-width: 47.99rem) {
  table.stack tfoot, table.stack tfoot tr, table.stack tfoot td, table.stack tfoot th[scope="row"] { display: block; width: 100%; }
  table.stack tfoot tr { border-radius: 12px; background: var(--accent-tint); padding: 8px 14px; margin: 0 0 12px; }
  table.stack tfoot td, table.stack tfoot th[scope="row"] { box-shadow: none; padding: 6px 0; border-top: 0; text-align: left !important; }
  table.stack tfoot td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  table.stack tfoot td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: .8125rem; font-weight: 500; }
  table.stack tr.person { margin-left: 16px; width: calc(100% - 16px); box-sizing: border-box; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
  table.num td.indent { padding-left: 0; font-weight: 600; color: var(--ink); }
}
/* Business step 3: the audit report (the chain-check stamp, event rows with a reason line, the secondary download) */
main button.secondary { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 1px var(--field); }
main button.secondary:hover { background: var(--accent); color: var(--accent-ink); }
.cost-bar p.actions button { margin-top: 0; }
.stamp { margin-top: 16px; box-shadow: inset 4px 0 0 var(--ok); padding-left: 18px; }
.stamp.is-bad { box-shadow: inset 4px 0 0 var(--bad); }
.stamp h2 { margin: 0 0 4px; font-size: 1.05rem; }
.stamp.is-ok h2 { color: var(--ok); }
.stamp.is-bad h2 { color: var(--bad); }
.stamp p { margin: 0; overflow-wrap: anywhere; }
.block { display: block; }
.reason { margin-top: 4px; color: var(--ink-2); }
#events td { vertical-align: top; overflow-wrap: anywhere; }
@media (max-width: 47.99rem) {
  /* the audit report's stacked rows: two-part cells stay on one line; the detail (and its reason) reads full width */
  #events td[data-label] { flex-wrap: wrap; }
  #events td[data-label] > span.block { display: inline; }
  #events td[data-label] > span.block + span.block { margin-left: 8px; }
  #events td[data-label="Detail"] { display: block; }
  #events td[data-label="Detail"]::before { display: block; margin-bottom: 4px; }
  #events td[data-label="Detail"] > span.block { display: block; margin-left: 0; }
  #events td[data-label="Employee"]:empty { display: none; }
}
/* Business step 4: the week schedule (/team/schedule/) */
.sched-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; margin: 8px 0; }
.sched-bar > div { flex: 0 1 auto; }
.sched-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sched-week { margin: 8px 0 0; font-size: 1.1rem; }
.sched-times { display: flex; gap: 12px; flex-wrap: wrap; }
.sched-times input { width: 9rem; }
table.sched th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; }
table.sched td { vertical-align: top; min-width: 6rem; padding: 6px 4px; }
table.sched { margin-top: 12px; }
table.sched td button.shift { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; font-weight: 500; font-size: .875rem; padding: 6px 8px; border-radius: 8px; }
table.sched td button.shift.draft { box-shadow: inset 0 0 0 1px var(--field); background: var(--bg); border: 1px dashed var(--ink-3); }
table.sched td button.shift.published { background: var(--accent-tint); color: var(--ink); box-shadow: none; }
table.sched td button.shift:disabled { opacity: 1; cursor: default; }
/* INFO-SCH-1: read-only roles see a draft muted, with its "Draft" chip */
table.sched td button.shift.draft.muted { color: var(--ink-2); background: transparent; font-weight: 400; }
table.sched td button.shift.draft.muted .chip { font-style: italic; }
.sched-view { display: flex; gap: 4px; flex-wrap: wrap; }
.sched-view button[aria-pressed="true"] { background: var(--accent-tint); color: var(--ink); font-weight: 600; }
table.sched-actual td .chip { display: block; }
table.sched-actual td .chip.warn { color: var(--warn); }
table.sched td button.add { font-size: .875rem; padding: 4px 12px; min-height: 44px; }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.chip.warn { display: block; color: var(--warn); }
.chip.off { display: block; margin: 0 0 4px; padding: 2px 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
table.sched td.num { white-space: nowrap; }
@media (max-width: 47.99rem) {
  table.sched td[data-label] { display: block; }
  table.sched td[data-label]::before { display: block; margin-bottom: 4px; }
  table.sched td { min-width: 0; }
  table.sched td button.shift { margin-top: 4px; }
}
