/* ds.css -- myRecruitingBoard design system, Release 3a (Nov 2026).
   Source of truth: Notion "Design rules reference (Nov 10, 2026)".
   Loads LAST. Scoped to the signed-in app (#shell) only. The landing page and sign-in live in #gate and are deliberately NOT touched.
   Covers: tokens, buttons, chip roles, card, field, empty state, app frame (sidebar, avatar menu, phone bottom bar + More).
   Not covered here (later releases): page header, content width (3b); date picker, dropdown, validation (form controls). */

:root {
  /* type scale: 12, 14, 16, 20, 28, 36 (nothing under 12) */
  --fs-1: 12px; --fs-2: 14px; --fs-3: 16px; --fs-4: 20px; --fs-5: 28px; --fs-6: 36px;
  /* 8 px spacing grid */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 16px; --sp-4: 24px; --sp-5: 32px; --sp-6: 48px;
  /* three radii */
  --r-sm: 6px; --r-md: 10px; --r-pill: 999px;
  --card-pad: 24px;
  /* status chip roles */
  --st-live-bg: #DDF3E8;  --st-live-ink: #1F7A5A;
  --st-soon-bg: #FBEFD3;  --st-soon-ink: #9A6B00;  --st-soon-line: #EBD39A;
  --st-off-bg:  #EBEEF3;  --st-off-ink:  #51607F;
  --menu-shadow: 0 8px 24px rgba(6, 11, 22, 0.16);
}
@media (max-width: 799px) {
  :root { --card-pad: 16px; --nav-h: 64px; }
}

/* ---------- buttons: primary, secondary, quiet, danger; two sizes ---------- */
#shell .btn {
  font-family: var(--sans);
  font-size: var(--fs-2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--navy-2);
  background: transparent;
  color: var(--navy-2);
  text-decoration: none;
  transform: none;
  opacity: 1;
}
#shell .btn:hover { background: var(--accent-soft); transform: none; opacity: 1; }
#shell .btn:focus-visible,
#shell .linkish:focus-visible,
#shell .nav button:focus-visible,
#shell .ds-avatar:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
#shell .btn.primary,
#shell button.btn.primary,
#shell a.btn.primary {
  background: var(--o) !important;
  color: var(--navy) !important;
  border-color: var(--o) !important;
}
#shell .btn.primary:hover { background: #FF8A4C !important; border-color: #FF8A4C !important; }
#shell .btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  padding-left: 8px;
  padding-right: 8px;
}
#shell .btn.ghost:hover { background: var(--accent-soft); }
#shell .btn.ghost-outline,
#shell button.btn.ghost-outline {
  background: transparent;
  border: 1px solid var(--navy-2) !important;
  color: var(--navy-2) !important;
}
#shell .btn.warn {
  background: var(--alert-bg);
  border-color: transparent;
  color: #B42318;
}
#shell .btn.warn:hover { background: #F9D2CC; }
#shell .btn.small { min-height: 32px; padding: 4px 12px; font-size: var(--fs-2); }
#shell .btn[disabled], #shell .btn.disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 799px) {
  #shell .btn { min-height: 44px; }
}

/* ---------- chips: one pill style for status roles; plain .chip text stays as is ---------- */
#shell .chip.st-live, #shell .chip.st-soon, #shell .chip.st-off {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 2px 10px;
  font-size: var(--fs-1);
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}
#shell .chip.st-live { background: var(--st-live-bg); color: var(--st-live-ink); }
#shell .chip.st-soon { background: var(--st-soon-bg); color: var(--st-soon-ink); border-color: var(--st-soon-line); }
#shell .chip.st-off  { background: var(--st-off-bg);  color: var(--st-off-ink); }

/* ---------- card: one style ---------- */
:where(#shell) .card { padding: var(--card-pad); }
#shell .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: none;
}

/* ---------- field: one style, boxed. Widths stay with each page's own label rules. ---------- */
#shell label.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
#shell label.field select,
#shell label.field textarea {
  font-family: var(--sans);
  font-size: var(--fs-2);
  color: var(--ink);
  background-color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  min-height: 40px;
  box-sizing: border-box;
}
#shell label.field select { padding-right: 30px; }
#shell label.field textarea { min-height: 72px; }
#shell label.field input:focus,
#shell label.field select:focus,
#shell label.field textarea:focus {
  outline: 2px solid var(--o);
  outline-offset: 0;
  border-color: var(--o);
}
#shell label.field > span:first-child {
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
@media (max-width: 799px) {
  #shell label.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  #shell label.field select,
  #shell label.field textarea { font-size: var(--fs-3); min-height: 44px; }
}

/* Bare selects outside label.field (position slots, Overview measurable pick-lists) get the same field look,
   so none of them show the browser's default dark border. */
#shell .position-select select,
#shell label.rA-row-edit select {
  font-family: var(--sans);
  font-size: var(--fs-2);
  color: var(--ink);
  background-color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 8px 30px 8px 12px;
  min-height: 40px;
  box-sizing: border-box;
  width: 100%;
}
#shell .position-select select:focus,
#shell label.rA-row-edit select:focus { outline: 2px solid var(--o); outline-offset: 0; border-color: var(--o); }
#shell .position-select select:disabled { background-color: var(--bg); color: var(--muted); cursor: not-allowed; }
@media (max-width: 799px) {
  #shell .position-select select, #shell label.rA-row-edit select { font-size: var(--fs-3); min-height: 44px; }
}

/* ---------- empty state: one sentence plus one button ---------- */
#shell .empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-2);
  text-align: center;
  padding: var(--sp-4) var(--sp-3);
}
#shell .empty .btn { margin-top: var(--sp-3); }

/* ---------- links in the app frame ---------- */
#shell .app-top .linkish { color: #fff; }

/* =====================================================================
   APP FRAME
   ===================================================================== */

/* Navigation text: Inter Tight, sentence case, everywhere */
#shell .nav button {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #A9BAD8;
  background: transparent;
}
#shell .nav button:hover { color: #fff; }
#shell .nav button.on { color: #fff; background: transparent; }
#shell .nav button.on .ico { color: var(--o); }

/* Top bar: avatar menu */
.ds-avatar-wrap { position: relative; display: flex; align-items: center; }
.ds-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--navy-2);
  color: #fff;
  font-family: var(--sans);
  font-size: var(--fs-2);
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.ds-avatar:hover, .ds-avatar[aria-expanded="true"] { border-color: var(--o); }
.ds-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 232px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--menu-shadow);
  padding: var(--sp-2);
  z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
}
.ds-menu.hidden { display: none; }
.ds-menu-label { display: none; font-size: var(--fs-1); font-weight: 600; color: var(--muted); padding: 6px 12px 2px; }
.ds-menu:has(.board-switch:not(.hidden)) .ds-menu-label { display: block; }
#shell .ds-menu .board-switch {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 6px;
  background-color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: var(--fs-2);
  min-height: 40px;
  padding: 8px 30px 8px 12px;
}
#shell .ds-menu .board-switch.hidden { display: none; }
#shell .ds-menu .linkish {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: var(--fs-2);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
#shell .ds-menu .linkish:hover { background: var(--accent-soft); color: var(--ink); }
.ds-menu-sep { height: 1px; background: var(--line); margin: 4px 0; }

/* Desktop sidebar (>= 800 px): light-navy active fill with an orange bar at the left edge */
@media (min-width: 800px) {
  #shell .nav button { font-size: var(--fs-3); }
  #shell .nav button.on { background: rgba(255, 255, 255, 0.09); }
  #shell .nav button.on::before {
    top: 8px; bottom: 8px; left: -16px; right: auto;
    width: 3px; height: auto;
    border-radius: 0 3px 3px 0;
  }
  #shell .nav .nav-more, .ds-sheet, .ds-sheet-back { display: none !important; }
}

/* Phone (< 800 px): bottom bar = Today, Schools, Outreach, Film room, More */
@media (max-width: 799px) {
  #shell .nav, #shell .nav.has-admin { grid-template-columns: repeat(5, 1fr); }
  #shell .nav button { font-size: var(--fs-1); gap: 2px; min-height: 44px; }
  #shell .nav button .ico, #shell .nav button .ico svg { width: 22px; height: 22px; }
  #shell .nav button.ds-overflow { display: none; }
  #shell .nav-more.on { color: #fff; }
  #shell .nav-more.on::before {
    content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px;
    background: var(--o); border-radius: 0 0 2px 2px;
  }
  #shell .nav-more.on .ico { color: var(--o); }
  /* Top bar never overlaps the logo: brand shrinks and truncates, actions keep their size */
  #shell .app-top { gap: 8px; }
  #shell .app-top .brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  #shell .app-top .brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #shell .app-top .top-actions { flex: 0 0 auto; gap: 8px; }
}
.nav-more { display: none; }
@media (max-width: 799px) { .nav-more { display: flex; } }

/* More sheet */
.ds-sheet-back {
  position: fixed; inset: 0;
  background: rgba(6, 11, 22, 0.45);
  z-index: 40;
}
.ds-sheet-back.hidden, .ds-sheet.hidden { display: none; }
.ds-sheet {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  z-index: 41;
  display: flex; flex-direction: column; gap: 2px;
}
.ds-sheet-title { font-size: var(--fs-1); font-weight: 600; color: var(--muted); padding: var(--sp-2) var(--sp-2) 4px; }
.ds-sheet button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 0; border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-3); font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.ds-sheet button:hover { background: var(--accent-soft); }
.ds-sheet button.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--o); }
.ds-sheet button .ico { width: 22px; height: 22px; display: inline-flex; color: var(--navy-2); }
.ds-sheet button .ico svg { width: 22px; height: 22px; }


/* ---- Release 3b: one content width + shared page header ---- */
:root { --content-w: 1120px; }
@media (min-width: 800px) {
  #shell .screen { max-width: var(--content-w); }
}
#shell .screen > .ds-label {
  margin: 0 0 var(--sp-1, 4px); font-size: var(--fs-1); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #E8741E);
}
#shell .screen > h1.ds-title {
  margin: 0 0 var(--sp-1, 4px); font-size: var(--fs-5) !important; line-height: 1.2;
  font-weight: 600 !important; letter-spacing: -.01em;
}
#shell .screen > .ds-sub {
  margin: 0 0 var(--sp-3, 16px); font-size: var(--fs-3); line-height: 1.5; color: var(--muted);
}

/* Release 3b: Schools rows (lettermark + grid) and page titles, moved here from mock-ia-board-fix.css */
#shell #view-list .roster-mark.mono {
  display: flex; align-items: center; justify-content: center; flex: 0 0 40px;
  width: 40px; height: 40px; border-radius: 8px; color: #fff;
  font-size: var(--fs-1); font-weight: 600; letter-spacing: .04em; line-height: 1;
}
#shell #view-list .list .roster-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px 16px; align-items: center;
}
#shell #view-list .list .roster-row strong { overflow: visible; text-overflow: unset; white-space: normal; }
#shell #view-today .today-head h1,
#shell #view-list h1, #shell #view-log h1, #shell #view-film h1,
#shell #view-competitions h1, #shell #view-profile h1,
#shell #view-overview h1.ov-page-title {
  font-family: var(--display) !important; font-size: 34px !important; font-weight: 400 !important;
  line-height: 1.15 !important; margin: 0 0 8px !important;
}

/* Form controls, stage 1 (Nov 11, 2026): field widths by data type (Design rules, form control 1).
   Widths are in characters so they scale with text size; 28px covers the field's padding.
   Fields are sized to their data, not stretched to the card. */
#shell {
  --fw-xs: calc(12ch + 28px);    /* ZIP, class year, GPA, class rank, SAT, ACT (labels set the minimum) */
  --fw-meas: calc(12ch + 28px);  /* measurables: times, weights, heights */
  --fw-phone: calc(16ch + 28px);
  --fw-date: calc(14ch + 28px);
  --fw-sm: calc(18ch + 28px);    /* dropdowns, IDs */
  --fw-name: calc(24ch + 28px);  /* names, city */
  --fw-lg: calc(32ch + 28px);    /* school, majors */
  --fw-email: calc(36ch + 28px);
}
#shell .pf-grid > label.field, #shell .pf-grid > .field { width: var(--pf-w, var(--fw-name)); }
#shell .pf-xs, #shell .pf-yr, #shell .pf-gpa { --pf-w: var(--fw-xs); }
#shell .pf-meas { --pf-w: var(--fw-meas); }
#shell .pf-phone { --pf-w: var(--fw-phone); }
#shell .pf-date { --pf-w: var(--fw-date); }
#shell .pf-sm { --pf-w: var(--fw-sm); }
#shell .pf-md, #shell .pf-name { --pf-w: var(--fw-name); }
#shell .pf-lg { --pf-w: var(--fw-lg); }
#shell .pf-email { --pf-w: var(--fw-email); }
#shell .pf-grid > .pf-full { flex: 1 1 100%; width: 100%; --pf-w: 100%; }

/* Profile Athlete card: same sizing, wrapping like the other Profile cards instead of two fixed columns. */
@media (min-width: 721px) {
  #shell #view-profile .card.pf-grid.pf-two { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
  #shell #view-profile .pf-two > label.field, #shell #view-profile .pf-two > .pf-pair { flex: 0 1 auto; width: var(--pf-w, var(--fw-name)); max-width: 100%; }
  #shell #view-profile .pf-two > .pf-pair { width: var(--fw-lg); }
  #shell #view-profile .pf-two > .pf-gender { width: var(--fw-name); }
  #shell #view-profile .pf-two > label.field.pf-xs { width: var(--fw-xs); }
}

/* Phones: fields at 16px so the browser does not zoom in when typing (Design rules). */
@media (max-width: 799px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { font-size: 16px !important; }
}

/* ---------- Form controls stage 2: dropdown (controls.js) ---------- */
.dd { position: relative; display: block; width: 100%; }
.dd-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; left: 0; bottom: 0; }
.dd-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left;
  font-family: "Inter Tight", system-ui, sans-serif; font-size: 14px; font-weight: 400; color: #0B1426;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2351607F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #C4CBD9; border-radius: 6px; padding: 8px 34px 8px 12px; min-height: 40px; box-sizing: border-box; cursor: pointer;
}
.dd-btn:focus-visible, .dd-btn[aria-expanded="true"] { outline: 2px solid #FF6A1F; outline-offset: 0; border-color: #FF6A1F; }
.dd-btn:disabled { background-color: #F5F6F8; color: #51607F; cursor: not-allowed; }
.dd-btn.dd-placeholder .dd-label { color: #51607F; }
.dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-pop {
  position: fixed; z-index: 1000; background: #fff; border: 1px solid #C4CBD9; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(11, 20, 38, 0.14); display: flex; flex-direction: column; overflow: hidden;
  font-family: "Inter Tight", system-ui, sans-serif; font-size: 14px; color: #0B1426;
}
.dd-search { margin: 8px; padding: 8px 12px; border: 1px solid #C4CBD9; border-radius: 6px; font: inherit; min-height: 36px; box-sizing: border-box; }
.dd-search:focus { outline: 2px solid #FF6A1F; outline-offset: 0; border-color: #FF6A1F; }
.dd-list { overflow-y: auto; padding: 4px; }
.dd-group { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: #51607F; }
.dd-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.dd-row.dd-active, .dd-row:hover { background: #E4E9F3; }
.dd-row.dd-sel { font-weight: 600; }
.dd-row.dd-dis { color: #51607F; opacity: 0.55; cursor: not-allowed; }
.dd-check { width: 16px; color: #B83200; flex: none; text-align: center; }
.dd-empty { padding: 12px; color: #51607F; }
.dd-tag { margin-left: auto; flex: none; font: 500 11px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.dd-tag-live { background: #E3F4E8; color: #1B6B3A; }
.dd-tag-soon { background: #F1EDE4; color: #6B5A36; }
.dd-btn .dd-tag { margin-left: 8px; }
.dd-backdrop { position: fixed; inset: 0; background: rgba(11, 20, 38, 0.4); z-index: 999; }
.dd-pop.dd-sheet { left: 0; right: 0; bottom: 0; top: auto; max-height: 70vh; border-radius: 16px 16px 0 0; border-width: 1px 0 0; z-index: 1000; padding-bottom: env(safe-area-inset-bottom); }
.dd-sheet .dd-row { min-height: 44px; font-size: 16px; }
.dd-sheet .dd-search { font-size: 16px; min-height: 44px; }
@media (max-width: 799px) { .dd-btn { min-height: 44px; font-size: 16px; } }

/* Nov 12, 2026: setup steps. Fields in one row line up on their boxes, so a field with a group heading above it
   (Positions) and a plain field (Dominant hand) sit on the same line. */
#shell #view-setup .card.pf-grid { align-items: flex-end; }
/* Nov 12, 2026: setup is a focused flow. The app menu (sidebar on wide screens, bottom bar on phones) is hidden
   while a setup step is on screen; Back / Skip for now / Continue are the only ways to move. */
#shell:has(#view-setup.on) #nav { display: none !important; }
#shell:has(#view-setup.on) { grid-template-columns: 0 1fr; }
/* Each row of setup fields stretches to the card edge; fields keep their relative sizes. */
#shell #view-setup .card.pf-grid > .field, #shell #view-setup .card.pf-grid > label.field { flex-grow: 1; }
/* ---------- Onboarding panel (Nov 12, 2026) ----------
   Every onboarding screen (sign-up, waiting for approval, setup steps) sits in ONE raised white panel on a slightly
   darker page. The small cards inside are flattened into sections split by thin lines. Stops when setup ends. */
#shell:has(#view-setup.on) .wrap, body:has(#post-auth-onboarding:not(.hidden)) { background: #e9ecf2; }
#shell #view-setup.on, #post-auth-onboarding.post-auth {
  --pp: 36px;
  background: #fff; border: 1px solid rgba(11, 20, 38, 0.06); border-radius: 18px;
  box-shadow: 0 2px 4px rgba(11, 20, 38, 0.06), 0 18px 36px rgba(11, 20, 38, 0.12), 0 48px 80px -24px rgba(11, 20, 38, 0.30);
}
#shell #view-setup.on { max-width: 760px; margin: 0 auto 56px; padding: 28px var(--pp) 0; }
#post-auth-onboarding.post-auth { max-width: 640px; margin: 32px auto; padding: 32px var(--pp); height: auto; max-height: calc(100dvh - 64px); overflow-y: auto; }
#shell #view-setup .card, #post-auth-onboarding .card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
#shell #view-setup .section-label { font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #0b1426; margin: 0 0 12px; }
#shell #view-setup > .section-label { margin: 24px calc(-1 * var(--pp)) 14px; padding: 22px var(--pp) 0; border-top: 1px solid #e6e9f0; }
#shell #view-setup .pref-group { margin-top: 22px; }
#shell #view-setup .kicker, #shell #view-setup .proto-kicker, #post-auth-onboarding > .section-label {
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #55607c; margin: 0 0 6px;
}
#shell #view-setup .hint, #post-auth-onboarding .hint, #post-auth-onboarding .field small {
  font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; color: #55607c;
}
#shell #view-setup .setup-nav { margin: 26px calc(-1 * var(--pp)) 0; padding: 18px var(--pp); border-top: 1px solid #e6e9f0; background: #fafbfc; border-radius: 0 0 18px 18px; }
@media (max-width: 799px) {
  #shell #view-setup.on, #post-auth-onboarding.post-auth { --pp: 18px; border-radius: 16px; }
  #shell #view-setup.on { padding-top: 20px; margin-bottom: 24px; }
  #shell:has(#view-setup.on) .wrap { padding: 12px 10px 32px; }
  #post-auth-onboarding.post-auth { margin: 12px 10px 32px; padding: 22px var(--pp); max-height: none; }
}
html:has(#post-auth-onboarding:not(.hidden)) { background: #e9ecf2; }
#post-auth-onboarding .grid-2 { border: 0; padding: 0; background: transparent; box-shadow: none; }
#post-auth-onboarding .field > span { font-family: inherit; text-transform: none; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #3c4763; }
#shell #view-setup .card:not(.pf-grid) > .field + .field { margin-top: 14px; }

/* ---------- One focus style for every text field and dropdown (Nov 12, 2026) ----------
   Apple-style soft ring: the border turns orange and a 3px orange halo at 30% sits around the field. Same on the
   app screens, the sign-up / approval screens and the dropdown component. A transparent outline stays so the
   field is still outlined in Windows high-contrast mode, where box-shadows are dropped. */
#shell label.field input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,
#shell label.field select:focus,
#shell label.field textarea:focus,
#shell .position-select select:focus,
#shell label.rA-row-edit select:focus,
#post-auth-onboarding input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,
#post-auth-onboarding select:focus,
#post-auth-onboarding textarea:focus,
#gate input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,
#gate select:focus,
#gate textarea:focus,
.dd-btn:focus-visible, .dd-btn[aria-expanded="true"],
.dd-search:focus {
  outline: 2px solid transparent;
  outline-offset: 0;
  border-color: #FF6A1F;
  box-shadow: 0 0 0 3px rgba(255, 106, 31, 0.30);
}

/* ---------- Schools filters use the same dropdown and focus ring (Nov 12, 2026) ---------- */
#view-list .filters .dd { width: auto; flex: 0 1 auto; min-width: 150px; }
#view-list .filters .dd-btn { box-shadow: var(--shadow); font-size: 14px; border-color: var(--line); background-color: var(--paper); min-height: 42px; border-radius: var(--radius); }
#view-list .filters input:focus {
  outline: 2px solid transparent; outline-offset: 0; border-color: #FF6A1F; box-shadow: 0 0 0 3px rgba(255, 106, 31, 0.30);
}

/* ---------- Onboarding spacing and text size (Nov 12, 2026) ----------
   Rows breathe (20px between rows, 8px between a label and its field, 8px above helper text) and nothing in the
   onboarding screens is smaller than 14px. */
#post-auth-onboarding .card.grid-2 { row-gap: 22px; }
#post-auth-onboarding label.field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
#post-auth-onboarding label.field > span:first-child, #post-auth-onboarding .field > span:first-child { font-size: 14px; margin: 0; }
#post-auth-onboarding .hint, #post-auth-onboarding label.field .hint { font-size: 14px; font-weight: 400; line-height: 1.45; margin: 0; color: #55607c; }
#post-auth-onboarding label.field .hint { margin-top: 0; }
#post-auth-onboarding .btn.block { margin-top: 6px; }
#post-auth-onboarding .next-note { font-size: 14px; margin: 4px 0 0; }
#post-auth-onboarding .lede { font-size: 16px; margin-bottom: 20px; }
#post-auth-onboarding .form-state:empty, #shell #view-setup .form-state:empty { display: none; }
#post-auth-onboarding .identity-toggle { margin-bottom: 4px; }
#shell #view-setup .card.pf-grid { row-gap: 22px; }
#shell #view-setup .card:not(.pf-grid):not(.ready-card) > .field + .field { margin-top: 22px; }
#shell #view-setup label.field { display: flex; flex-direction: column; gap: 8px; }
#shell #view-setup label.field > span:first-child { font-size: 14px; margin: 0; }
#shell #view-setup label.field .hint { display: block; font-size: 14px; line-height: 1.45; margin: 0; }
#shell #view-setup .hint { font-size: 14px; }
#shell #view-setup .setup-stepper li { font-size: 14px; }
#shell #view-setup .setup-stepper .dot { width: 24px; height: 24px; font-size: 12px; }
#shell #view-setup .ready-card .ready-row { padding: 14px 0; }
#shell #view-setup .ready-k { font-size: 14px; }
#shell #view-setup .next-note { font-size: 14px; margin: 18px 0 0; }
#shell #view-setup .next-note + .next-note { margin-top: 10px; }
#shell #view-setup .kicker, #shell #view-setup .proto-kicker, #post-auth-onboarding > .section-label { font-size: 13px; }
#shell #view-setup .section-label { font-size: 16px; }
#shell #view-setup .meta, #shell #view-setup .lede + .meta { font-size: 14px; }

/* Schools filter buttons: the base look above must not hide the focus ring (it has higher specificity than the
   shared ring rule), so the ring is restated here for this one place. */
#view-list .filters .dd-btn:focus-visible, #view-list .filters .dd-btn[aria-expanded="true"] {
  outline: 2px solid transparent; outline-offset: 0; border-color: #FF6A1F; box-shadow: 0 0 0 3px rgba(255, 106, 31, 0.30);
}

/* "Waiting for approval" status on the request-access screen: more room above it, and an orange-tinted pill with a
   slow pulsing dot so it reads as live status and is not missed. */
#post-auth-onboarding .covenant p + p { margin-top: 12px; }
#post-auth-onboarding #access-wait-status {
  display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 106, 31, 0.12); color: #8A3200; border: 1px solid rgba(255, 106, 31, 0.35);
  font-size: 15px; font-weight: 700;
}
#post-auth-onboarding #access-wait-status::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #FF6A1F; animation: wait-pulse 1.6s ease-in-out infinite;
}
@keyframes wait-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { #post-auth-onboarding #access-wait-status::before { animation: none; } }
#post-auth-onboarding .covenant p { font-size: 16px; line-height: 1.55; }

/* Nov 12, 2026: messages in the onboarding panel (missing name, year, date of birth, sign-up errors) use the same
   orange pill as "Waiting for approval", so every notice on these screens looks the same. */
#post-auth-onboarding .form-state:not(:empty), #shell #view-setup .form-state:not(:empty) {
  display: block; margin: 4px 0 0; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,106,31,.12); color: #8A3200; border: 1px solid rgba(255,106,31,.35);
  font-size: 15px; font-weight: 700; line-height: 1.4;
}

/* ---------- Form controls stage 3: date picker (controls.js) ----------
   Text field with a calendar button inside (about 14 characters wide), a hidden native date input that stays the stored value,
   and a calendar with month and year dropdowns and a Today shortcut. Bottom sheet on phones. */
.dp { position: relative; display: block; width: 100%; max-width: 200px; }
.dp-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; left: 0; bottom: 0; }
.dp-text { width: 100%; box-sizing: border-box; padding-right: 44px; font-variant-numeric: tabular-nums; }
.dp-btn { position: absolute; right: 2px; top: 0; height: 40px; width: 40px; display: grid; place-items: center; border: 0; background: none; color: #51607F; cursor: pointer; border-radius: 6px; padding: 0; }
.dp-btn:hover { color: #0B1426; }
.dp-btn:focus-visible { outline: 2px solid #FF6A1F; outline-offset: -2px; }
.dp-btn:disabled { opacity: .5; cursor: not-allowed; }
.dp-text:focus { outline: 2px solid transparent; border-color: #FF6A1F; box-shadow: 0 0 0 3px rgba(255, 106, 31, .30); }
.dp-text[aria-invalid="true"] { border-color: #D92D20; box-shadow: none; }
.dp-text[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(217, 45, 32, .22); }
.dp-err { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.35; color: #D92D20; width: max-content; max-width: min(340px, 90vw); }
.dp-err[hidden] { display: none; }
.dp-err svg { flex: none; margin-top: 1px; }
.fact .dp { max-width: none; }
.fact .dp-text { border: 0; background: transparent; padding: 2px 44px 0 0; font-size: 13px; color: var(--muted); }
.fact .dp-btn { height: 28px; top: -2px; }
#view-competitions .dp { max-width: 200px; }
.dp-pop { padding: 16px; font-family: "Inter Tight", system-ui, sans-serif; overflow: visible; }
.dp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dp-nav { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: #0B1426; cursor: pointer; padding: 0; }
.dp-nav:hover { background: #E4E9F3; }
.dp-pick { flex: 1 1 0; min-width: 0; height: 36px; border: 1px solid #C4CBD9; border-radius: 6px; background: #fff; color: #0B1426; font: inherit; font-size: 14px; padding: 0 8px; }
.dp-pick:focus-visible, .dp-nav:focus-visible, .dp-link:focus-visible, .dp-day:focus-visible { outline: 2px solid #FF6A1F; outline-offset: 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: 12px; font-weight: 600; color: #51607F; padding: 6px 0; }
.dp-day { height: 36px; border: 0; border-radius: 6px; background: none; color: #0B1426; font: inherit; font-size: 14px; cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.dp-day:hover:not(:disabled) { background: #E4E9F3; }
.dp-day.dp-today { box-shadow: inset 0 0 0 1.5px #FF6A1F; }
.dp-day.dp-sel { background: #0B1426; color: #fff; font-weight: 600; }
.dp-day:disabled { opacity: .35; cursor: not-allowed; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid #E1E5EC; }
.dp-link { border: 0; background: none; color: #B83200; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px; border-radius: 6px; min-height: 36px; }
.dp-link:hover:not(:disabled) { background: #E4E9F3; }
.dp-link:disabled { color: #51607F; opacity: .5; cursor: not-allowed; }
.dd-sheet.dp-pop { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; }
@media (max-width: 799px) {
  .dp-text { font-size: 16px; min-height: 44px; padding-right: 48px; }
  .dp-btn { width: 44px; height: 44px; }
  .dp-nav { width: 44px; height: 44px; }
  .dp-pick { height: 44px; font-size: 16px; }
  .dp-day { height: 44px; font-size: 16px; }
  .dp-link { min-height: 44px; font-size: 16px; }
}

/* ---------- Form controls stage 4: positions multi-select (chips + one Add list) ---------- */
#shell .pos-multi { flex-direction: column; align-items: stretch; gap: 8px; }
#shell .pos-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#shell .pos-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 6px 4px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-2);
}
#shell .pos-chip.is-main { background: var(--navy-2, #0F1A2E); border-color: var(--navy-2, #0F1A2E); color: #fff; }
#shell .pos-tag { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--o); }
#shell .pos-name { font-weight: 600; }
#shell .pos-btn, #shell .pos-x {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border: 0; background: transparent; color: var(--muted);
  min-height: 28px; padding: 0 8px; border-radius: 999px;
}
#shell .pos-x { font-size: 18px; line-height: 1; min-width: 28px; padding: 0; }
#shell .pos-chip.is-main .pos-x { color: #C9D1E3; }
#shell .pos-btn:hover, #shell .pos-x:hover { background: var(--accent-soft); color: var(--ink); }
#shell .pos-chip.is-main .pos-x:hover { background: #1B2943; color: #fff; }
#shell .pos-btn:focus-visible, #shell .pos-x:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
#shell .pos-multi .pos-add { flex: 0 1 auto; max-width: 320px; }
#shell .pos-hint { margin: 0; }
@media (max-width: 799px) {
  #shell .pos-chip { min-height: 44px; }
  #shell .pos-btn, #shell .pos-x { min-height: 44px; min-width: 44px; }
  #shell .pos-multi .pos-add { max-width: none; }
}

/* Positions label looks like every other field label, and the first row of controls lines up with neighbouring inputs. */
#shell .field.pos-field > span:first-child {
  display: block; font-size: var(--fs-1); font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; margin: 0 0 4px 0;
}
#shell .field.pos-field > .position-select-group { margin-top: 0; }
#shell .field.pos-field .position-select > small { font-size: 12px; }

/* ---------- Form controls stage 5: field validation messages ---------- */
.fv-msg {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 4px 8px; border-radius: 6px;
  background: #FDE7E4; color: #D92D20; font-size: 12px; font-weight: 600; line-height: 1.4;
}
.fv-msg svg { flex: 0 0 auto; margin-top: 2px; }
.fv-msg.is-hint { background: #FFF3CC; color: #9A6B00; }
.fv-fix { font: inherit; font-weight: 600; border: 0; background: none; color: #B83200; text-decoration: underline; cursor: pointer; padding: 0 0 0 4px; min-height: 24px; }
input[aria-invalid="true"] { border-color: #D92D20 !important; }
@media (max-width: 799px) { .fv-fix { min-height: 44px; } }

/* Release 4: small autosave note ("Saved") shown beside the thing being edited */
.saved-note { font-size: 12px; font-weight: 600; color: #1F7A5A; min-height: 16px; }
.saved-note.err { color: #D92D20; }

/* Release 4 (fix 29): quiet row menu and Undo bar */
.rowmenu { position: relative; display: inline-block; }
.rowmenu-btn { font: inherit; font-size: 18px; line-height: 1; font-weight: 600; letter-spacing: 1px; border: 0; background: none; color: #51607F; cursor: pointer; min-width: 32px; min-height: 32px; border-radius: 6px; }
.rowmenu-btn:hover { background: #E4E9F3; }
.rowmenu-list { position: absolute; right: 0; top: 100%; z-index: 30; min-width: 140px; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E1E5EC; border-radius: 6px; box-shadow: 0 6px 18px rgba(11, 20, 38, 0.12); padding: 4px; }
.rowmenu-list[hidden] { display: none; }
.rowmenu-item { font: inherit; font-size: 14px; text-align: left; border: 0; background: none; padding: 8px 12px; min-height: 36px; border-radius: 6px; color: #0B1426; cursor: pointer; }
.rowmenu-item:hover { background: #E4E9F3; }
.undo-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: none; align-items: center; gap: 16px; background: #0F1A2E; color: #FFFFFF; padding: 4px 8px 4px 16px; border-radius: 10px; font-size: 14px; z-index: 60; max-width: calc(100% - 24px); }
.undo-toast.on { display: flex; }
.undo-toast button { font: inherit; font-weight: 600; background: none; border: 0; color: #FF6A1F; cursor: pointer; min-height: 44px; padding: 0 12px; }
@media (max-width: 799px) {
  .rowmenu-btn { min-width: 44px; min-height: 44px; }
  .rowmenu-item { min-height: 44px; }
  .undo-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Release 4 (fix 30): one stage chip everywhere */
.stage-badge { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 2px 10px; border-radius: 980px; background: #EBEEF3; color: #51607F; white-space: nowrap; }
.stage-badge.sb-win { background: #FFF3CC; color: #9A6B00; }
.stage-badge.sb-done { background: #E3F2EC; color: #1F7A5A; }
.stage-badge.sb-ended { background: #EBEEF3; color: #7A869F; }

/* Release 4 (fix 32): phones get 44 px tap targets and 16 px fields (smaller text makes iPhones zoom when you type) */
@media (max-width: 799px) {
  #shell .btn.small { min-height: 44px; }
  #shell .heart-toggle, #shell .locate-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  #shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  #shell select, #shell textarea { font-size: 16px; }
  #shell .stage-chip { min-height: 44px; display: inline-flex; align-items: center; }
  #shell .row .linkish, #shell .spread .linkish, #shell .log-item .linkish { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Release 4 follow-up: Overview hero on phones. Photo and name sit side by side; the share controls drop below, full width,
   so nothing overlaps (fix 4 / 37 of the design review). */
@media (max-width: 639px) {
  #view-overview .rA-head { flex-wrap: wrap; padding: 20px 16px; gap: 16px; }
  #view-overview .rA-head .rA-photo-col { flex: 0 0 auto; }
  #view-overview .rA-head .rA-head-info { flex: 1 1 0; min-width: 0; }
  #view-overview .rA-head h1 { font-size: 28px; overflow-wrap: anywhere; }
  #view-overview .rA-head .sub { letter-spacing: 0.06em; overflow-wrap: anywhere; }
  #view-overview .rA-head .rA-contact { flex-direction: column; align-items: flex-start; gap: 4px; }
  #view-overview .rA-head .rA-contact a, #view-overview .rA-head .rA-contact span { overflow-wrap: anywhere; white-space: normal; }
  #view-overview .rA-head .rA-share-col { flex: 1 1 100%; width: 100%; max-width: none; }
  #view-overview .rA-head .ov-share-pill { min-height: 44px; }
}

/* ---------- Release 5 (Nov 13, 2026): Today, Option C (coach's whiteboard) ----------
   Dark header with readiness ring, gold "Coach replied" banner, up to three Do next cards, side column. */
#shell #view-today .td-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--navy-2); color: #fff; border-radius: var(--r-md); padding: 32px; margin: 0 0 var(--sp-4);
}
#shell #view-today .td-head .kicker { color: #C9D1E3; margin: 0; }
#shell #view-today .td-head h1 { color: #fff !important; margin: 8px 0 0 !important; }
#shell #view-today .td-head .td-sub { margin: 8px 0 0; font-size: var(--fs-3); color: #C9D1E3; }
#shell #view-today .td-head-text { min-width: 0; }
#shell #view-today .td-ring { display: flex; align-items: center; gap: var(--sp-3); }
#shell #view-today .td-ring svg { flex: 0 0 auto; font-family: var(--sans); }
#shell #view-today .td-ring-text { max-width: 240px; }
#shell #view-today .td-ring-text strong { display: block; font-size: var(--fs-3); font-weight: 600; }
#shell #view-today .td-ring-text span { display: block; margin-top: 4px; font-size: var(--fs-2); color: #C9D1E3; }

#shell #view-today .td-grid {
  display: grid; gap: var(--sp-4); align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-template-areas: "main side" "schools side";
}
#shell #view-today .td-main { grid-area: main; display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
#shell #view-today .td-side { grid-area: side; display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
#shell #view-today .td-schools { grid-area: schools; min-width: 0; }
#shell #view-today .td-grid .card { margin: 0; }
#shell #view-today .td-below { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-4); }
#shell #view-today .td-below .card { margin: 0; }
#shell #view-today .td-main > #td-gmail-slot:empty { display: none; }

#shell #view-today .td-reply {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  background: #FFF3CC; border: 1px solid #FFC83D; border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); color: var(--ink);
}
#shell #view-today .td-reply-ico { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #FFC83D; display: grid; place-items: center; }
#shell #view-today .td-reply-text { flex: 1 1 200px; min-width: 0; }
#shell #view-today .td-reply-text strong { display: block; font-size: var(--fs-3); font-weight: 600; }
#shell #view-today .td-reply-text span { display: block; margin-top: 2px; font-size: var(--fs-2); color: var(--muted); }
#shell #view-today .td-reply .btn { min-height: 44px; }

#shell #view-today .td-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
#shell #view-today .td-sec-head h2 { margin: 0; font-size: var(--fs-4); font-weight: 600; }
#shell #view-today .td-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-3); }
#shell #view-today .td-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--card-pad);
  display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0;
}
#shell #view-today .td-kind { align-self: flex-start; font-size: var(--fs-1); font-weight: 600; padding: 4px 8px; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); }
#shell #view-today .td-card-body { flex: 1; }
#shell #view-today .td-card-body h3 { margin: 0; font-size: var(--fs-3); font-weight: 600; line-height: 1.3; font-family: var(--sans); }
#shell #view-today .td-card-body p { margin: var(--sp-2) 0 0; font-size: var(--fs-2); color: var(--muted); line-height: 1.45; }
#shell #view-today .td-card-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
#shell #view-today .td-card-actions .btn { min-height: 44px; width: 100%; justify-content: center; }
#shell #view-today .td-empty { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
#shell #view-today .td-empty p { margin: 0; flex: 1 1 200px; color: var(--muted); }

#shell #view-today .td-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
#shell #view-today .td-counts strong { display: block; font-size: var(--fs-5); font-weight: 600; line-height: 1.1; }
#shell #view-today .td-counts span { display: block; margin-top: 2px; font-size: var(--fs-1); color: var(--muted); }
#shell #view-today .td-meters-side { grid-template-columns: 1fr; margin: 0; }

@media (max-width: 1023px) {
  #shell #view-today .td-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "schools"; }
}
@media (max-width: 639px) {
  #shell #view-today .td-head { padding: 16px; gap: 16px; }
  #shell #view-today .td-head h1 { font-size: 28px !important; overflow-wrap: anywhere; }
  #shell #view-today .td-head .td-sub { font-size: var(--fs-2); }
  #shell #view-today .td-ring svg { width: 72px; height: 72px; }
  #shell #view-today .td-ring-text { max-width: none; }
  #shell #view-today .td-reply { padding: var(--sp-3); }
  #shell #view-today .td-reply .btn { width: 100%; }
  #shell #view-today .td-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Nov 16, 2026: Today sport tabs, All sports cards, Getting started checklist ---------- */
#shell #view-today .td-tabs { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid #2A3957; margin: 0 0 -20px; }
#shell #view-today .td-tab {
  min-height: 44px; padding: 0 4px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 0;
  background: none; color: #C9D1E3; font: inherit; font-size: var(--fs-3); font-weight: 600; cursor: pointer; box-shadow: none;
}
#shell #view-today .td-tab:hover { color: #fff; }
#shell #view-today .td-tab.on { color: #fff; border-bottom-color: #FF6A1F; }
#shell #view-today .td-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-4); }
#shell #view-today .td-board-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-radius: var(--r-md); padding: var(--sp-4); }
#shell #view-today .td-board-card .td-board-name { margin: 8px 0 0; font-size: 20px; font-weight: 600; }
#shell #view-today .td-board-card .td-board-stat { margin: 0; font-size: var(--fs-2); color: var(--muted); }
#shell #view-today .td-board-card .td-board-next { margin: 0 0 8px; font-size: var(--fs-2); }
#shell #view-today .td-board-card .btn { min-height: 44px; }
#shell #view-today .td-start .td-start-count { font-size: var(--fs-2); font-weight: 600; }
#shell #view-today .td-start-bar { display: flex; gap: 4px; margin: 0 0 var(--sp-3); }
#shell #view-today .td-start-bar span { flex: 1; height: 6px; border-radius: 999px; background: var(--line, #E1E5EC); }
#shell #view-today .td-start-bar span.on { background: var(--navy-2); }
#shell #view-today .td-start-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
#shell #view-today .td-start-steps li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
#shell #view-today .td-start-steps strong { display: block; font-size: var(--fs-2); font-weight: 600; }
#shell #view-today .td-start-sub { display: block; margin-top: 4px; font-size: var(--fs-1); color: var(--muted); }
#shell #view-today .td-start-check { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; display: grid; place-items: center; color: #fff; }
#shell #view-today .td-start-steps li.done .td-start-check { background: var(--navy-2); border-color: var(--navy-2); }
#shell #view-today .td-start-foot { margin: var(--sp-3) 0 0; font-size: var(--fs-1); color: var(--muted); }
#shell #view-today .td-setup .btn { min-height: 44px; }
@media (max-width: 639px) {
  #shell #view-today .td-tabs { gap: 0 16px; margin-bottom: -8px; }
  #shell #view-today .td-tab { font-size: var(--fs-2); }
  #shell #view-today .td-start-steps { grid-template-columns: minmax(0, 1fr); }
  #shell #view-today .td-board-card .btn { width: 100%; }
}
#shell #view-today .td-ai-note { font-size: var(--fs-1); color: var(--muted); margin-right: auto; margin-left: var(--sp-2); }

/* Overview as a true preview (design Release 6, Option A): slim share bar above the resume,
   read-only values, empty sections left out. */
#view-overview .rA-share-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3, 12px) 20px;
  padding: 10px 14px; margin: 0 0 14px;
  background: var(--paper, #fff); border: 1px solid var(--line, #dde1e8); border-radius: 12px;
}
#view-overview .rA-share-bar .btn.small { width: auto; }
#view-overview .rA-share-bar .ov-link-row { margin: 0; width: auto; }
#view-overview .rA-share-bar .ov-link-row.hidden { display: none; }
#view-overview .rA-share-bar .ov-share-pill { min-height: 36px; }
#view-overview .rA-text { margin: 8px 0 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
#view-overview .rA-section.ov-empty { display: none; }
@media (max-width: 640px) {
  #view-overview .rA-share-bar { flex-direction: column; align-items: stretch; }
  #view-overview .rA-share-bar .btn.small { width: 100%; min-height: 44px; }
  #view-overview .rA-share-bar .ov-share-pill { min-height: 44px; }
}

/* Film on the Overview: thumbnails on screen (open the video on its site), the plain link list for the PDF. */
#view-overview .rA-filmthumbs { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
@media (min-width: 560px) { #view-overview .rA-filmthumbs { grid-template-columns: 1fr 1fr; } }
#view-overview .rA-filmthumbs .ft { display: block; text-decoration: none; color: inherit; }
#view-overview .ft-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0B1A33; }
#view-overview .ft-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#view-overview .ft-plain { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #A9BAD8; font-size: 13px; }
#view-overview .ft-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(6,11,22,.72); }
#view-overview .ft-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
#view-overview .ft-first { position: absolute; left: 8px; top: 8px; background: #FF6A1F; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
#view-overview .ft-title { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
#view-overview .rA-filmlist-print { display: none; }
body.ov-print-mode #view-overview .rA-filmthumbs { display: none; }
body.ov-print-mode #view-overview .rA-filmlist-print { display: grid; }

/* Run for this sport (Nov 20, 2026): the step ticks next to the sport picker */
.tool-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.tool-chk input { margin: 0; }
