@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/static/fonts/DMSans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 400; font-display: swap; src: url('/static/fonts/Fraunces-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Layout: one calm column, summary before detail — today's check, the week in plain counts,
   the company comparison, then one card per day with dentists and nurses drawn as dots. */
:root {
  --bg: #F4F8F7;
  --surface: #FFFFFF;
  --ink: #0E3440;
  --body: #57595C;
  --muted: #5A6A70;
  --line: #D9E5E4;
  --dentist: #00465C;
  --nurse: #00A85E;
  --extra: #EE4561;
  --short: #A87400;
  --logo: #00465C;
  --over-bg: #FBE4E4;
  --over-ink: #B3263D;
  --short-bg: #FDF4CC;
  --short-ink: #7A5600;
  --ok-bg: #DDF3E8;
  --ok-ink: #00663A;
  --quiet-bg: #EBF0F0;
  --accent-bg: #B4F3F3;
  --focus: #00804A;
  --control-line: #7E9095;
  --display: 'Canela', 'Fraunces', 'DM Serif Display', Georgia, serif;
  --sans: 'Athletics', 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heat-1: #FBE4E4; --heat-2: #F6B8C2; --heat-3: #C8364F; --heat-4: #9E1F36; --heat-ink-strong: #FFFFFF; --heat-2-ink: #7A1528;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1D23; --surface: #0F2A32; --ink: #E6F3F2; --body: #C3D0D1; --muted: #9DB1B5; --line: #1F3E47;
    --dentist: #73BEBE; --nurse: #2FC07F; --extra: #F2677D; --short: #F3B927; --logo: #B4F3F3;
    --over-bg: #3A1820; --over-ink: #FFB3BF; --short-bg: #33290B; --short-ink: #F7D37A;
    --ok-bg: #0F3324; --ok-ink: #8FE0B5; --quiet-bg: #16333B; --accent-bg: #245F6B; --focus: #2FC07F; --control-line: #557680;
    --heat-1: #3A1820; --heat-2: #6B2433; --heat-3: #A3324A; --heat-4: #C23B55; --heat-ink-strong: #FFFFFF; --heat-2-ink: #FFB3BF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1D23; --surface: #0F2A32; --ink: #E6F3F2; --body: #C3D0D1; --muted: #9DB1B5; --line: #1F3E47;
  --dentist: #73BEBE; --nurse: #2FC07F; --extra: #F2677D; --short: #F3B927; --logo: #B4F3F3;
  --over-bg: #3A1820; --over-ink: #FFB3BF; --short-bg: #33290B; --short-ink: #F7D37A;
  --ok-bg: #0F3324; --ok-ink: #8FE0B5; --quiet-bg: #16333B; --accent-bg: #245F6B; --focus: #2FC07F; --control-line: #557680;
  --heat-1: #3A1820; --heat-2: #6B2433; --heat-3: #A3324A; --heat-4: #C23B55; --heat-ink-strong: #FFFFFF; --heat-2-ink: #FFB3BF;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 15px; line-height: 1.5; font-weight: 400; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; padding-block: 18px 64px; display: grid; gap: 22px; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; color: var(--ink); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 46px); }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0; }
button, select, input { font: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wordmark { width: 64px; height: auto; display: block; }
.wordmark path { fill: var(--logo); }
.fresh { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.fresh i { width: 8px; height: 8px; border-radius: 50%; background: var(--nurse); display: inline-block; }
.fresh.stale i { background: var(--short); }
.hero { display: grid; gap: 8px; }
.lede { max-width: 62ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.check { border-width: 2px; display: grid; gap: 14px; }
.check.todo { border-color: var(--extra); }
.check.done { border-color: var(--nurse); }
.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.check-msg { font-size: 16px; color: var(--ink); }
.pending { display: flex; gap: 8px; flex-wrap: wrap; }
.pending a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--over-bg); color: var(--over-ink); text-decoration: none; font-weight: 500; }
.streak { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.streak span.box { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--quiet-bg); color: var(--muted); }
.streak span.box.yes { background: var(--ok-bg); color: var(--ok-ink); }
.streak span.box.no { background: var(--over-bg); color: var(--over-ink); }
.btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 500; cursor: pointer; background: var(--accent-bg); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--surface); }
a.btn { display: inline-block; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.note { font-size: 13px; color: var(--muted); }
.banner { border-radius: 10px; padding: 10px 14px; font-size: 14px; background: var(--short-bg); color: var(--short-ink); }

.weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.week { display: grid; gap: 10px; align-content: start; }
.week .big { display: flex; gap: 18px; flex-wrap: wrap; }
.week .big div { display: grid; }
.week .big b { font-family: var(--display); font-weight: 300; font-size: 34px; color: var(--ink); line-height: 1; }
.week .big small { font-size: 12px; color: var(--muted); }
.verdict { border-radius: 10px; padding: 8px 12px; font-weight: 500; font-size: 14px; }
.verdict.over { background: var(--over-bg); color: var(--over-ink); }
.verdict.short { background: var(--short-bg); color: var(--short-ink); }
.verdict.ok { background: var(--ok-bg); color: var(--ok-ink); }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .lab { color: var(--ink); min-width: 0; }
.bar-track { position: relative; height: 22px; }
.bar-fill { position: absolute; left: 0; top: 3px; height: 16px; border-radius: 0 6px 6px 0; }
.bar-val { position: absolute; top: 1px; font-size: 13px; font-weight: 600; color: var(--ink); margin-left: 6px; padding: 0 4px; border-radius: 4px; background: var(--surface); white-space: nowrap; z-index: 1; }
.rule-mark { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--muted); }
.axis { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px; font-size: 11px; color: var(--muted); }
.axis .ticks { position: relative; height: 14px; }
.axis .ticks span { position: absolute; transform: translateX(-50%); }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.pip { width: 11px; height: 11px; display: inline-block; flex: none; }
.pip.d { background: var(--dentist); border-radius: 3px; }
.pip.n { background: var(--nurse); border-radius: 50%; }
.pip.x { background: var(--extra); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pip.m { border: 2px dashed var(--short); border-radius: 50%; }

.week-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.week-group { display: grid; gap: 10px; }
.days { display: grid; gap: 10px; }
article.day { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
article.day.over, article.day.no_dentists { border-left-color: var(--extra); }
article.day.short { border-left-color: var(--short); }
article.day.match { border-left-color: var(--nurse); }
article.day.closed { padding-block: 10px; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-date { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.day-date h3 { font-size: 20px; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.chip { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip.over, .chip.no_dentists { background: var(--over-bg); color: var(--over-ink); }
.chip.short { background: var(--short-bg); color: var(--short-ink); }
.chip.match { background: var(--ok-bg); color: var(--ok-ink); }
.chip.closed { background: var(--quiet-bg); color: var(--muted); }
.count-row { display: grid; grid-template-columns: 76px 34px 1fr; gap: 8px; align-items: center; }
.count-row .label { font-size: 13px; color: var(--muted); }
.count-row .num { font-size: 18px; font-weight: 600; color: var(--ink); text-align: right; }
.pips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.sentence { font-size: 14px; color: var(--ink); }
.sentence .why { color: var(--muted); }
.decide { display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.decide-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.decide label { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.decide select, .decide input { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.decide input { width: min(100%, 360px); }
.decided { font-size: 13px; color: var(--ok-ink); background: var(--ok-bg); border-radius: 10px; padding: 8px 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.decided.warn { background: var(--short-bg); color: var(--short-ink); }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; font-size: 13px; }
.more { justify-self: start; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.detail { display: grid; gap: 12px; }
.flags { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.sessions { display: grid; gap: 8px; }
.sess-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--quiet-bg); }
.sess-name { display: grid; line-height: 1.2; }
.sess-name b { color: var(--ink); font-weight: 600; font-size: 14px; }
.sess-name small { font-size: 11px; color: var(--muted); }
.sess-counts { display: grid; gap: 5px; min-width: 0; }
.sess-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: center; }
.sess-line .label { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.mini.over { background: var(--over-bg); color: var(--over-ink); }
.mini.short { background: var(--short-bg); color: var(--short-ink); }
.mini.match { background: var(--ok-bg); color: var(--ok-ink); }
.mini.closed { background: transparent; color: var(--muted); font-weight: 400; }
.pairs { display: grid; gap: 8px; }
.pairs-head { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.pairs-head b { color: var(--ink); font-size: 14px; }
.pair { display: grid; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 4px; }
.pair.ok { border-left-color: var(--nurse); }
.pair.extra, .pair.support, .pair.hygienist { border-left-color: var(--extra); }
.pair.missing, .pair.short, .pair.unset, .pair.elsewhere { border-left-color: var(--short); }
.pair-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.pair-head .who { display: grid; min-width: 0; }
.pair-head b { color: var(--ink); font-weight: 600; }
.pair-head small { color: var(--muted); font-size: 12px; }
.pair-nurses { display: flex; flex-wrap: wrap; gap: 6px; }
.person { font-size: 12px; background: var(--quiet-bg); border-radius: 999px; padding: 3px 10px; color: var(--ink); }
.person small { color: var(--muted); }
.person.draft { background: transparent; border: 1px dashed var(--muted); }
.pair .none { font-size: 12px; color: var(--muted); }
details.how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
details.how summary { cursor: pointer; color: var(--ink); font-weight: 500; }
details.how ul { padding-left: 18px; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; }
.empty { text-align: center; padding: 34px 18px; display: grid; gap: 8px; }
/* Stays in the page so screen readers announce it; invisible and click-through until shown. */
.toast:not(.show) { opacity: 0; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 32px); }
@media (max-width: 480px) {
  .count-row { grid-template-columns: 64px 28px 1fr; }
  .sess-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sess-name { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .week .big b { font-size: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  article.day, .card { transition: border-color .2s ease; }
}

/* ---------- overview (master) components ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; align-content: start; }
.tile b { font-family: var(--display); font-weight: 300; font-size: 36px; color: var(--ink); line-height: 1.05; }
.tile.alert { border-color: var(--extra); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
td.r, th.r { text-align: right; }
td.site { color: var(--ink); font-weight: 500; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.pill.yes { background: var(--ok-bg); color: var(--ok-ink); }
.pill.no { background: var(--over-bg); color: var(--over-ink); }
.pill.warn { background: var(--short-bg); color: var(--short-ink); }
.pill.quiet { background: var(--quiet-bg); color: var(--muted); }
.boxes { display: inline-flex; gap: 4px; }
.boxes span { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--quiet-bg); color: var(--muted); }
.boxes span.yes { background: var(--ok-bg); color: var(--ok-ink); }
.boxes span.no { background: var(--over-bg); color: var(--over-ink); }
/* Heatmap (overview): hm-* classes only. Separate borders + spacing give each day its own square. */
.hm { border-collapse: separate; border-spacing: 4px; width: auto; min-width: 100%; font-size: 13px; }
.hm th, .hm td { padding: 0; border: 0; text-align: center; white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 400; vertical-align: middle; }
.hm .hm-site { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 0 12px 0 0; min-width: 150px; max-width: 230px; white-space: normal; line-height: 1.25; font-size: 14px; color: var(--ink); font-weight: 500; }
.hm thead .hm-site { vertical-align: bottom; padding-bottom: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hm .hm-site a { color: var(--ink); text-decoration: none; }
.hm .hm-site a:hover { text-decoration: underline; text-underline-offset: .15em; }
.hm th.hm-week { text-align: left; padding: 0 2px 6px; border-bottom: 2px solid var(--line); color: var(--ink); font-weight: 600; font-size: 13px; }
.hm th.hm-week small { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 12px; }
/* A week with one or two days left must not stretch its squares: the heading wraps instead. */
.hm th.hm-week { white-space: normal; }
@media (max-width: 900px) { .hm th.hm-week small { display: block; margin-left: 0; } }
.hm th.hm-day { min-width: 48px; padding: 4px 0 6px; border-radius: 8px; line-height: 1.15; }
.hm th.hm-day span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.hm th.hm-day b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm th.hm-day.we b { color: var(--muted); font-weight: 500; }
.hm th.hm-day.today { background: var(--ink); }
.hm th.hm-day.today span, .hm th.hm-day.today b { color: var(--surface); }
.hm .hm-gap { width: 14px; min-width: 14px; }
.hm .cell { min-width: 48px; height: 36px; border-radius: 8px; font-size: 13px; text-decoration: none; }
.hm a.cell:hover { box-shadow: 0 0 0 2px var(--ink); }
.hm tr.hm-total th, .hm tr.hm-total td { padding-top: 10px; }
.hm tr.hm-total .hm-site { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hm .sum { display: grid; place-items: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm .sum b { color: var(--over-ink); font-weight: 700; font-size: 14px; }
.hm .sum small { color: var(--short-ink); font-size: 11px; font-weight: 600; }
.hm .sum.closed { color: var(--muted); }
@media (max-width: 560px) {
  .two-weeks th.site, .two-weeks td.site, .sticky-first th.site, .sticky-first td.site { min-width: 96px; }
  .hm .hm-site { min-width: 96px; max-width: 120px; font-size: 13px; padding-right: 8px; }
  .hm th.hm-day, .hm .cell { min-width: 42px; }
}
.cell { display: grid; place-items: center; min-width: 38px; height: 30px; border-radius: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cell.mixed { grid-auto-flow: row; align-content: center; gap: 1px; line-height: 1; }
.cell.mixed small { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 999px; background: var(--short-bg); color: var(--short-ink); }
.cell.closed { background: transparent; color: var(--muted); font-weight: 400; }
.cell.match { background: var(--ok-bg); color: var(--ok-ink); }
.cell.short { background: var(--short-bg); color: var(--short-ink); }
.cell.h1 { background: var(--heat-1); color: var(--over-ink); }
.cell.h2 { background: var(--heat-2); color: var(--heat-2-ink); }
.cell.h3 { background: var(--heat-3); color: var(--heat-ink-strong); }
.cell.h4 { background: var(--heat-4); color: var(--heat-ink-strong); }
.heat-legend { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; align-items: center; }
.heat-legend .lg { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.heat-legend .cell { min-width: 34px; height: 22px; font-size: 11px; padding: 0 4px; }
.heat-legend .cell.mixed { height: 30px; }
.heat-legend .lg .cell:last-of-type { margin-right: 4px; }
/* Two-week tables (overview costs and shifts): headers wrap, a rule between the weeks, the site column stays put. */
.two-weeks th { white-space: normal; vertical-align: bottom; line-height: 1.3; min-width: 72px; }
.two-weeks th.site, .two-weeks td.site, .sticky-first th.site, .sticky-first td.site { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 150px; white-space: normal; }
.two-weeks .wk-start { border-left: 1px solid var(--line); padding-left: 16px; }
.two-weeks td .cost { display: block; }
.two-weeks td .range { display: block; font-size: 11px; color: var(--muted); }
.two-weeks tr.total td { font-weight: 600; color: var(--ink); border-bottom: 0; }
.issues { display: grid; gap: 14px; }
.issues h3 { font-size: 18px; }
.issues ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.api { display: grid; gap: 14px; }
.api p { max-width: 78ch; }

/* ---------- site chrome: navigation, forms, team page ---------- */
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { font: inherit; font-size: 14px; color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 999px; background: transparent; border: 0; cursor: pointer; }
.nav a[aria-current="page"] { background: var(--quiet-bg); font-weight: 500; }
.nav a:hover, .nav button:hover { background: var(--quiet-bg); }
.nav form { margin: 0; }
.who-am-i { font-size: 13px; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.form { display: grid; gap: 14px; max-width: 420px; }
.form label, .field { display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.form input, .field input, .field select, .field textarea { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.error { background: var(--over-bg); color: var(--over-ink); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.success { background: var(--ok-bg); color: var(--ok-ink); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.center { min-height: 60vh; display: grid; place-items: center; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.people { display: grid; gap: 18px; }
.person-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.person-row.off .meta b { color: var(--muted); }
.person-row .meta { display: grid; gap: 2px; min-width: 0; }
.person-row .meta b { color: var(--ink); font-weight: 600; }
.person-row .meta small { color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.site-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.site-picks label { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); }
.site-picks .region { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.linkbox { display: grid; gap: 8px; background: var(--accent-bg); border-radius: 12px; padding: 14px; }
.linkbox code { font-size: 13px; word-break: break-all; color: var(--ink); background: var(--surface); padding: 8px 10px; border-radius: 8px; }
.linkbox textarea { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-height: 92px; background: var(--surface); color: var(--ink); }
.region-title { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.stack { display: grid; gap: 22px; }
.practice-list { display: grid; gap: 10px; }
.practice-list a { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 560px) {
  .person-row { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
}

body.narrow .wrap { max-width: 780px; }
.hidden { display: none !important; }
.auth-card { width: 100%; max-width: 440px; }
.title-sm { font-size: 32px; margin: 6px 0 14px; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
/* Grid tracks never grow past the page: wide tables scroll inside their .scroll box instead. */
.wrap, .stack { grid-template-columns: minmax(0, 1fr); }
.wrap > *, .stack > *, .card { min-width: 0; }
.top { gap: 12px 20px; }
.login-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.field legend { font-size: 14px; color: var(--ink); margin-bottom: 6px; padding: 0; }
.form.wide { max-width: 640px; }
.inline-form { display: grid; gap: 10px; }
/* People: details on top, their buttons on a line underneath (reads better with five buttons). */
.person-row { grid-template-columns: minmax(0, 1fr); }
.person-row .actions { justify-content: flex-start; }

/* ---------- readability and touch (29 Sep 2026 review) ---------- */
/* Controls get an edge you can see (3:1); cards and table rules keep the quiet --line. */
.decide select, .decide input, .form input, .field input, .field select, .field textarea, .linkbox textarea, .btn.ghost, .tabs button { border-color: var(--control-line); }
/* iPhone Safari zooms into any field under 16px; keep them at 16px on touch screens. */
@media (pointer: coarse) {
  .decide select, .decide input, .form input, .field input, .field select, .field textarea, .linkbox textarea { font-size: 16px; }
}
/* The one-time link box: its secondary button needs a shape, its warning needs full-strength text. */
.linkbox .btn:not(.primary) { background: var(--surface); border: 1px solid var(--ink); }
.linkbox .note { color: var(--body); }
/* Text buttons are small; give them a finger-sized target without moving the layout. */
.more, .link { padding-block: 10px; margin-block: -6px; }
/* Sign-off history: filled = signed off, outlined = missed, faint = closed or no record. */
.boxes span.yes, .streak span.box.yes { background: var(--ok-ink); color: var(--surface); }
.boxes span.no, .streak span.box.no { background: transparent; box-shadow: inset 0 0 0 1.5px var(--over-ink); color: var(--over-ink); }
.boxes span.closed, .streak span.box.closed { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.key { font-size: 12px; color: var(--muted); }
/* One person on the Team page: their row, then whatever is open for them, close together. */
.person-block { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.person-block > * { min-width: 0; }
.person-block > :empty { display: none; }
.card-stack { display: grid; gap: 14px; }
.card-stack > :empty { display: none; }
.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; }
