/* Calm and clear: one teal accent on a very light background (spec 4.1). */
:root {
  --bg: #eef2f3;
  --surface: #ffffff;
  --surface-2: #f4f7f7;
  --text: #17262b;
  --muted: #5b6b70;
  --line: #dde4e6;
  --accent: #0f6b73;
  --accent-ink: #ffffff;
  --accent-soft: #dcefef;
  --red: #b3261e;
  --red-soft: #fbe9e7;
  --amber: #8a5a00;
  --amber-soft: #fdf1d8;
  --green-soft: #e3f3ea;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1719;
    --surface: #172225;
    --surface-2: #1d2a2e;
    --text: #e6eeef;
    --muted: #9fb0b4;
    --line: #2a3a3e;
    --accent: #4fb3b9;
    --accent-ink: #0b1a1c;
    --accent-soft: #1d3a3d;
    --red: #ff8a80;
    --red-soft: #3a1d1b;
    --amber: #f2c46b;
    --amber-soft: #3a2f17;
    --green-soft: #1b3326;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Header and tabs */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand__logo { flex: none; width: 36px; height: 36px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-weight: 700; font-size: 1.05rem; }
.brand__trust { color: var(--muted); font-size: 0.85rem; }
.header-links { display: flex; align-items: center; gap: 16px; font-size: 0.95rem; }
.header-links form { margin: 0; }
.header-links__who { color: var(--muted); }
.tabs { border-top: 1px solid var(--line); }
.tabs__inner { max-width: 1200px; margin: 0 auto; padding: 0 12px; display: flex; gap: 4px; overflow-x: auto; }
.tab {
  padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 600;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab--active { color: var(--accent); border-bottom-color: var(--accent); }

.main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }
.page-title { font-size: 1.9rem; margin: 4px 0 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crumbs { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.card--narrow { max-width: 440px; margin: 32px auto; }
.card--flush { padding: 0; overflow: hidden; }
.card__title { padding: 16px 20px 0; }
.card h2 { font-size: 1.1rem; }

/* Messages and banners */
.messages { margin-bottom: 16px; }
.message { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); }
.message--error { background: var(--red-soft); color: var(--red); }
.message--success { background: var(--green-soft); }
.banner { padding: 14px 18px; border-radius: 12px; margin: 0 0 18px; }
.banner--warn { background: var(--amber-soft); color: var(--amber); border: 1px solid currentColor; }

/* Forms */
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input[type=text], .field input[type=email], .field input[type=password], .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--text);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field--check label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.field--check input, .radio input { width: 20px; height: 20px; accent-color: var(--accent); }
.radio { display: flex; align-items: center; gap: 10px; font-weight: 500 !important; padding: 8px 0; }
.help { color: var(--muted); font-size: 0.88rem; margin: 6px 0 0; }
.error { color: var(--red); font-size: 0.92rem; margin: 6px 0 0; }
.field--error input { border-color: var(--red); }
.form-errors { background: var(--red-soft); color: var(--red); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.form-errors p { margin: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--surface);
  color: var(--accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button--primary { background: var(--accent); color: var(--accent-ink); }
.button--danger { background: var(--red); border-color: var(--red); color: #fff; }
.button--wide { width: 100%; margin-top: 4px; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer;
}

/* Tables */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.row--inactive td { color: var(--muted); }
.actions { min-width: 140px; }
.actions > * { display: inline-block; margin: 0 12px 4px 0; white-space: nowrap; }
.actions form { display: inline; }

.banner--error { background: var(--red-soft); color: var(--red); border: 1px solid currentColor; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; }
.inline-form input[type=date], .field input[type=date], .field input[type=file] { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.warnings { max-height: 420px; overflow-y: auto; }
.field select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.nowrap { white-space: nowrap; }
.text-red { color: var(--red); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; }
.former__summary { padding: 16px 20px; font-weight: 600; cursor: pointer; }
.former__note { padding: 0 20px; margin: 0 0 8px; }
.tag { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.plain-list { padding-left: 1.2em; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { font-weight: 600; font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  /* Phones: each label above its value, so long email addresses fit. */
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 10px; }
}
.qr { background: #fff; display: inline-block; padding: 8px; border-radius: 8px; }
.secret { word-break: break-all; }

/* Phone: bottom bar within thumb reach (spec 4.1). */
.bottom-bar { display: none; }
@media (max-width: 760px) {
  .site-header__inner { padding: 10px 16px; }
  .brand__trust, .header-links__who { display: none; }
  .header-links { gap: 12px; white-space: nowrap; }
  .tabs { display: none; }
  .main { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .page-title { font-size: 1.6rem; }
  .bottom-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-bar__item, .bottom-bar__more > summary {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--muted); text-decoration: none; font-size: 0.75rem; padding: 6px 0; min-height: 52px;
    list-style: none; cursor: pointer;
  }
  .bottom-bar__more { flex: 1; display: flex; }
  .bottom-bar__more > summary::-webkit-details-marker { display: none; }
  .bottom-bar__item--active { color: var(--accent); font-weight: 600; }
  .more-menu {
    position: fixed; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom));
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); min-width: 200px; overflow: hidden;
  }
  .more-menu__item { display: block; padding: 14px 18px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
  .more-menu__item:last-child { border-bottom: 0; }
  .more-menu__item--active { color: var(--accent); font-weight: 600; }
  .table th, .table td { padding: 10px 12px; }
  body.auth .main { padding-bottom: 32px; }
}

@media print {
  .site-header, .bottom-bar, .messages { display: none; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}

/* Today and rota screens */
.eyebrow { color: var(--muted); margin: 0; font-size: 0.95rem; }
.section-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 22px 4px 8px; font-weight: 600; }
.oncall { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 8px; }
.oncall__label { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }
.oncall__name { margin: 4px 0; font-size: 2rem; font-weight: 700; line-height: 1.15; }
.oncall__you { font-size: 1rem; font-weight: 400; }
.oncall__until { margin: 0; font-size: 1.05rem; }
.oncall__gap { background: #fff; color: #b3261e; padding: 0 8px; border-radius: 8px; }
.card--list { padding: 4px 18px; }
.list-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row__name { margin: 0; font-weight: 700; font-size: 1.05rem; }
.list-row__detail { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.list-row__right { margin: 0; color: var(--muted); font-size: 0.92rem; text-align: right; white-space: nowrap; }
.name--gap { color: var(--red); font-weight: 700; }
.name--later { color: var(--muted); font-style: italic; }
.tag--locum { font-size: 0.7rem; padding: 1px 6px; }
.tag--you { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.shift-day { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shift-day:last-child { border-bottom: 0; }
.date-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; padding: 6px 4px; background: var(--surface-2); border-radius: 10px; }
.date-chip__day { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.date-chip__dow { font-size: 0.75rem; color: var(--muted); }
.shift-line { margin: 2px 0; }
.duty-icon { display: inline-block; width: 1.4em; }

/* The rota */
.rota-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rota-head .page-title { margin-bottom: 12px; }
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.segmented__item { padding: 8px 18px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.segmented__item--on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.segmented--small .segmented__item { padding: 6px 14px; font-size: 0.88rem; }
.rota-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.stepper a[aria-label] { text-decoration: none; font-size: 1.6rem; line-height: 1; padding: 0 6px; }
.person-filter select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admit-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.admit-card { margin: 0; padding: 12px 16px; }
.admit-card__label { margin: 0; color: var(--muted); font-size: 0.85rem; }
.admit-card__name { margin: 2px 0; font-weight: 700; font-size: 1.1rem; }
.admit-card__rest { margin: 0; color: var(--muted); font-size: 0.88rem; }
.week-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.week-grid th, .week-grid td { border: 1px solid var(--line); padding: 8px 8px; vertical-align: top; text-align: left; }
.week-grid thead th { background: var(--surface-2); text-align: center; font-weight: 600; }
.week-grid tbody th { width: 90px; background: var(--surface-2); font-weight: 600; }
.week-grid .is-today { background: var(--accent-soft); }
.week-grid .is-off { background: var(--surface-2); }
.week-grid td.off { text-align: center; vertical-align: middle; color: var(--muted); background: var(--surface-2); }
.week-grid .hol { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.cell-line { line-height: 1.3; margin: 1px 0; }
.times { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.phone-only { display: none; }
.day-card__head { margin: 0; padding: 10px 16px; font-size: 1rem; background: var(--surface-2); display: flex; justify-content: space-between; }
.day-card__head--today { background: var(--accent); color: var(--accent-ink); }
.day-card__row { display: flex; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); }
.day-card__duty { min-width: 74px; color: var(--muted); }
.day-card__who { font-weight: 600; }
.day-card .times { font-weight: 400; }
.card__sub { padding: 0 20px; margin: 4px 0 10px; }
.month-table th { text-align: center; }
.month-table td { text-align: center; }
.month-table td:first-child { text-align: left; }
.month-table .th-sub { font-weight: 400; text-transform: none; letter-spacing: 0; }
.month-table tr.is-off td { background: var(--surface-2); }
.month-table td.off { color: var(--muted); font-style: italic; }
.month-table tr.week-start td { border-top: 2px solid var(--text); }
.month-table tr.is-today td { background: var(--accent-soft); }
@media (max-width: 760px) {
  .week-grid-card { display: none; }
  .phone-only { display: block; }
  .phone-only .segmented { margin-bottom: 12px; }
  .admit-cards { gap: 8px; }
  .admit-card { padding: 10px 12px; }
  .admit-card__name { font-size: 1rem; }
  .rota-head .segmented { width: 100%; }
  .rota-head .segmented__item { flex: 1; text-align: center; }
  .month-table th, .month-table td { padding: 8px 6px; font-size: 0.9rem; }
}
@media print {
  .rota-bar, .rota-head .segmented, .phone-only .segmented { display: none; }
}
.stepper__off { color: var(--line); font-size: 1.6rem; padding: 0 6px; }
/* List pages (Today, My shifts) keep a comfortable reading width on large screens. */
body.narrow .main { max-width: 760px; }
/* Large enough to tap (spec 4.1). */
.stepper a[aria-label], .stepper__off { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.segmented--small .segmented__item { min-height: 44px; display: inline-flex; align-items: center; }
.button--small { min-height: 40px; padding: 6px 14px; }
.person-filter { display: flex; gap: 8px; align-items: center; }
.hol--today { color: var(--accent); font-weight: 700; }
.week-grid td { overflow-wrap: anywhere; }
.covering { display: flex; gap: 14px; align-items: baseline; margin-top: 8px; }
.covering__duty { min-width: 52px; font-weight: 700; font-size: 1rem; opacity: 0.9; }
.covering__name { margin: 0; font-size: 1.7rem; font-weight: 700; line-height: 1.15; }
.covering + .covering { border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding-top: 8px; }
.month-table tr.is-now td { background: var(--accent-soft); }
.cell-line--now .name { font-weight: 700; color: var(--accent); }
.unfilled { max-height: 420px; overflow-y: auto; }

/* My shifts calendar */
.segmented--wide { display: flex; margin-bottom: 12px; }
.segmented--wide .segmented__item { flex: 1; text-align: center; }
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: 0.8rem; color: var(--muted); font-weight: 600; padding: 2px 0; }
.cal td { height: 64px; padding: 0; vertical-align: top; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.cal td.cal__out { background: transparent; border-color: transparent; }
.cal td.cal__past { opacity: 0.55; }
.cal td.cal__hol { background: var(--surface-2); }
.cal td.cal__today { border: 2px solid var(--accent); }
.cal td.cal__chosen { background: var(--accent-soft); }
.cal__cell { display: flex; flex-direction: column; height: 100%; min-height: 60px; padding: 4px 5px; color: var(--text); text-decoration: none; }
.cal__num { font-size: 0.85rem; font-weight: 600; }
.cal__ph { font-size: 0.62rem; font-weight: 700; color: var(--muted); }
.cal__duties { display: flex; flex-wrap: wrap; gap: 1px 2px; align-items: center; margin-top: auto; }
.cal-duty { display: inline-flex; align-items: center; font-size: 0.85rem; white-space: nowrap; }
.cal-duty .duty-icon { width: auto; }
.cal-duty__letter { font-size: 0.6rem; font-weight: 700; color: var(--muted); margin-left: 3px; }
.cal__part { font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.cal-legend { margin: 6px 4px 0; line-height: 1.9; }
.shift-line--detail { padding: 10px 0; border-bottom: 1px solid var(--line); }
.shift-line--detail:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .cal { border-spacing: 2px; }
  .cal td { height: 56px; border-radius: 8px; }
  .cal__cell { min-height: 52px; padding: 3px; }
}
.copy-link { display: flex; gap: 8px; margin: 8px 0 12px; }
.copy-link input { flex: 1; min-width: 0; font: inherit; font-size: 0.85rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); }
/* Calendar legibility (stage 5 review) */
.cal td.cal__past { opacity: 0.72; }
.cal td.cal__chosen { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -4px; }
.cal td.cal__chosen .cal__num { text-decoration: underline; }
.cal-duty__letter { font-size: 0.7rem; color: var(--text); }
#day-detail { scroll-margin-top: 12px; }
@media (min-width: 761px) {
  .cal td { height: 76px; }
  .cal-duty { font-size: 1.15rem; }
  .cal-duty__letter { font-size: 0.78rem; }
}
.check-list li { padding: 6px 0; }
.check-list input { width: 18px; height: 18px; accent-color: var(--accent); }

.badge { display: inline-block; min-width: 1.4em; padding: 0 0.4em; border-radius: 999px; background: #c0141c; color: #fff; font-size: 0.75em; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: middle; }

/* Leave (spec 7): approved solid, pending light with a dashed edge, so neither depends on colour. */
.leave-cal { border-collapse: separate; border-spacing: 0; font-size: 0.8rem; }
.leave-cal th, .leave-cal td { min-width: 30px; height: 34px; padding: 2px; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.leave-cal thead th { font-weight: 600; color: var(--muted); line-height: 1.1; }
.leave-cal__dow { display: block; font-size: 0.65rem; }
.leave-cal__ph { display: block; font-size: 0.6rem; font-weight: 700; }
.leave-cal__name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left !important; white-space: nowrap; padding: 2px 10px !important; }
.leave-cal__off { background: var(--surface-2); }
.leave-cal__today { box-shadow: inset 0 -3px 0 var(--accent); color: var(--text) !important; }
.leave-cal__leave { font-weight: 700; }
.leave-cal__approved { background: var(--accent); color: var(--accent-ink); }
.leave-cal__pending { background: var(--accent-soft); color: var(--text); outline: 2px dashed var(--accent); outline-offset: -3px; font-style: italic; }
.leave-cal__half { display: block; font-size: 0.6rem; }
.leave-key { display: inline-block; min-width: 1.6em; padding: 0 4px; text-align: center; font-weight: 700; border-radius: 4px; }
.leave-warn { color: var(--red); }
.leave-clash { color: var(--red); }
.leave-oncall { color: var(--amber); }
.leave-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.leave-row:last-child { border-bottom: 0; }
.leave-preview { margin: 12px 0; padding: 12px; background: var(--surface-2); border-radius: 12px; }
.tag--clash { background: var(--red-soft); color: var(--red); border-color: currentColor; }
.tag--oncall-leave { background: var(--amber-soft); color: var(--amber); border-color: currentColor; }
.tag--leave { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.tag--pending { border: 1px dashed var(--accent); font-style: italic; }
.cal td.cal__leave { background: var(--accent-soft); }
.cal td.cal__leave--pending { background: var(--surface); outline: 2px dashed var(--accent); outline-offset: -4px; }
.cal td.cal__clash { border: 2px solid var(--red); }
.cal__lv { font-size: 0.65rem; font-weight: 700; color: var(--accent); margin-left: 2px; }
.cal__clash-mark { font-size: 0.75rem; font-weight: 800; color: var(--red); margin-left: 2px; }
.leave-cal__entry { display: block; line-height: 1.1; }
.totals td, .totals th { white-space: nowrap; }
.totals--all th, .totals--all td { padding: 8px 10px; text-align: center; }
.totals--all tbody th { text-align: left; }
.totals tbody th { text-transform: none; letter-spacing: normal; font-size: inherit; color: var(--text); font-weight: 600; }
@media print {
  .crumbs, .stepper a, .rota-bar .button { display: none; }
  .totals--all th, .totals--all td { padding: 3px 6px; font-size: 9pt; }
}
/* Collapsed cards (admin dashboard): the summary is a full-width tap target. */
.collapsible > .collapsible__summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style-position: inside; }
.collapsible[open] > .collapsible__summary .muted { display: none; }
.consultant-picks { padding: 0 20px 20px; }
.consultant-picks__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 16px; margin-bottom: 12px; }

/* Clinics grid: told or still to tell is a mark as well as a colour. */
.clinic-entry { display: block; font-weight: 700; line-height: 1.15; }
.clinic-entry--told { color: var(--accent); }
.clinic-entry--todo { color: var(--red); }
.clinic-entry--past { color: var(--muted); font-weight: 500; }
.clinic-cell { background: var(--surface-2); }

/* Banner on phones: room for the logo and the name on two lines. */
@media (max-width: 480px) {
  .site-header__inner { gap: 10px; padding: 10px 16px; }
  .brand { gap: 8px; }
  .brand__logo { width: 30px; height: 30px; }
  .brand__name { font-size: 0.9rem; line-height: 1.2; }
  .header-links { gap: 10px; font-size: 0.85rem; white-space: nowrap; }
}
