/* Ballclub HQ's club app, in the Ballclub HQ brand (DEC-083) and the redesign's look (docs/mockups/README.md, go-live
   plan Stage 2): Field Green, Clay and Cream, Big Shoulders Display for headings, scoreboard numbers and big buttons,
   and Barlow for everything else, served from the app (fonts/README.md). Light or dark is each person's choice (Light,
   Dark, or Match my phone, the default): data-theme on the page, or the phone's setting without one. A club's own
   colors replace the brand's (HQ21, club-theme.js) as --club-* properties for each theme, each kept readable: --brand
   with --on-brand text on it, --brand-text for links and outlined buttons on the page, --brand-accent for marks and
   focus rings, and --ink for body text. Every control is at least 44px tall for thumbs; main buttons 52px. */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/big-shoulders-display/big-shoulders-display-latin-900.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow/barlow-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow/barlow-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow/barlow-latin-600.woff2") format("woff2");
}

/* The theme tokens (docs/mockups/README.md). The light ones; .theme-preview takes them too, so Settings' preview of
   a club's colors works out its own. */
:root, .theme-preview {
  --paper: #f3eee4;
  --card: #ffffff;
  --ink: var(--club-ink, #14261d);
  --muted: #4a5a51;
  --rule: #d9d1c2;
  --board: var(--club-brand, #1e4634);
  --on-board: var(--club-on-brand, #f3eee4);
  --score: #10221a;
  --on-score: #f3eee4;
  --brand: var(--club-brand, #1e4634);
  --on-brand: var(--club-on-brand, #f3eee4);
  --brand-text: var(--club-brand-text, #1e4634);
  --brand-accent: var(--club-accent, #a4531f);
  --on-brand-accent: #ffffff;
  --on-accent: #ffffff;
  --nav-active: var(--club-nav, #a4531f);
  --chip-on: var(--brand);
  --on-chip-on: var(--on-brand);
  --chip-off: #e8e1d3;
  --warning: #8a5a00;
  --warn-bg: #fbe7d6;
  --warn-text: #5a2a0b;
  --error: #a4311f;
  --error-bg: #fbe9e5;
  --support-bg: #fff4d6;
  --info-bg: #dde8e0;
  --shadow: rgb(30 70 52 / 18%);
  --team-0: #1e4634;
  --team-1: #b8612f;
  --team-2: #2f5d8a;
  --team-3: #6b4c8a;
  --team-4: #a07a12;
  --team-5: #1f7a72;
  --heading: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* The dark ones: chosen, or the phone's setting under Match my phone. The two blocks are the same. */
:root[data-theme="dark"], :root[data-theme="dark"] .theme-preview {
  --paper: #0d1411;
  --card: #17211c;
  --ink: #f3eee4;
  --muted: #b5bfb9;
  --rule: #2c3a33;
  --board: #0a0f0d;
  --on-board: #f3eee4;
  --score: #050807;
  --brand: var(--club-brand-dark, #2f6b4e);
  --on-brand: var(--club-on-brand-dark, #ffffff);
  --brand-text: var(--club-brand-text-dark, #e8b48f);
  --brand-accent: var(--club-accent-dark, #e08a4e);
  --on-brand-accent: #111111;
  --on-accent: #111111;
  --nav-active: var(--club-nav-dark, #e08a4e);
  --chip-on: var(--nav-active);
  --on-chip-on: #111111;
  --chip-off: #24302a;
  --warning: #f2c46b;
  --warn-bg: #3a2618;
  --warn-text: #f6cfae;
  --error: #f29a88;
  --error-bg: #3a1d17;
  --support-bg: #3a3218;
  --info-bg: #1d3328;
  --shadow: rgb(0 0 0 / 50%);
  --team-0: #9fb8aa;
  --team-1: #e08a4e;
  --team-2: #8fb3d9;
  --team-3: #c2a6e0;
  --team-4: #e8c27a;
  --team-5: #7fd1c7;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]), :root:not([data-theme="light"]) .theme-preview {
    --paper: #0d1411;
    --card: #17211c;
    --ink: #f3eee4;
    --muted: #b5bfb9;
    --rule: #2c3a33;
    --board: #0a0f0d;
    --on-board: #f3eee4;
    --score: #050807;
    --brand: var(--club-brand-dark, #2f6b4e);
    --on-brand: var(--club-on-brand-dark, #ffffff);
    --brand-text: var(--club-brand-text-dark, #e8b48f);
    --brand-accent: var(--club-accent-dark, #e08a4e);
    --on-brand-accent: #111111;
    --on-accent: #111111;
    --nav-active: var(--club-nav-dark, #e08a4e);
    --chip-on: var(--nav-active);
    --on-chip-on: #111111;
    --chip-off: #24302a;
    --warning: #f2c46b;
    --warn-bg: #3a2618;
    --warn-text: #f6cfae;
    --error: #f29a88;
    --error-bg: #3a1d17;
    --support-bg: #3a3218;
    --info-bg: #1d3328;
    --shadow: rgb(0 0 0 / 50%);
    --team-0: #9fb8aa;
    --team-1: #e08a4e;
    --team-2: #8fb3d9;
    --team-3: #c2a6e0;
    --team-4: #e8c27a;
    --team-5: #7fd1c7;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
}

/* Big condensed headings, in capitals like a scoreboard (the words stay as written for screen readers). */
h1, h2, h3 { font-family: var(--heading); font-weight: 900; line-height: 1.1; letter-spacing: 0.02em; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 1.75rem 0 0.5rem; }
h3 { font-size: 1.25rem; }
label, dt, th, legend { font-weight: 600; }
a { color: var(--brand-text); }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }

/* The header bar: the club's color (dark in the dark theme), with the logo; a club's own logo sits on a cream tile so
   any logo reads on it. */
.shell-header { background: var(--board); color: var(--on-board); }
.shell-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; padding: 0.75rem 1rem; }
.shell-app { font-family: var(--heading); font-weight: 900; font-size: 1.4rem; letter-spacing: 0.04em; text-transform: uppercase; margin-right: auto; display: flex; align-items: center; }
.shell-logo { display: block; height: 44px; width: auto; max-width: 12rem; object-fit: contain; }
.shell-logo-tile { padding: 4px 8px; border-radius: 8px; background: #f3eee4; }
.shell-waiting { color: var(--on-board); font-weight: 600; }
.shell-bar .button { border-color: color-mix(in srgb, var(--on-board) 55%, transparent); background: transparent; color: var(--on-board); }
.shell-bar .switcher { color: var(--on-board); }
.shell-main { padding: 1rem; max-width: 48rem; margin: 0 auto; }

.banner { padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.banner p { margin: 0; }
/* Backroad's kill switch banners (SUP06c2): Backroad's words, under the header, in the card colors of either theme. */
.kill-switches { display: grid; gap: 8px; padding: 10px 16px 0; }
.kill-switches:empty { display: none; }
.kill-switch-banner { background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-left: 4px solid var(--warning); border-radius: 8px; padding: 0.75rem 1rem; overflow-wrap: anywhere; }
.kill-switch-banner p { margin: 0; }
.banner-support { background: var(--support-bg); color: var(--ink); }
.banner-warning { background: var(--warn-bg); color: var(--warn-text); }
.banner-error { background: var(--error-bg); color: var(--error); }

.button { min-height: 48px; padding: 0 1rem; border: 2px solid var(--brand-text); border-radius: 10px; background: var(--card); color: var(--brand-text); font: 600 1rem/1 var(--body); cursor: pointer; }
.button-primary { min-height: 52px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* The router focuses each page's heading for screen readers; it isn't something to click, so no ring. */
h1[tabindex="-1"]:focus { outline: none; }

.switcher { display: flex; gap: 0.5rem; align-items: center; font-weight: 600; }
.switcher select { min-height: 48px; max-width: 12rem; font: inherit; font-weight: 400; color: var(--ink); }

/* The menu: a plain disclosure, so it works before any script and with a keyboard. */
.shell-menu { position: relative; }
.shell-menu summary { display: inline-flex; align-items: center; list-style: none; }
.shell-menu summary::-webkit-details-marker { display: none; }
.shell-menu nav { position: absolute; right: 0; top: calc(100% + 0.25rem); z-index: 10; min-width: 14rem; padding: 0.25rem 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); box-shadow: 0 6px 18px var(--shadow); }
.shell-menu ul { list-style: none; margin: 0; padding: 0; }
.shell-menu a, .shell-menu nav button { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 1rem; border: 0; border-radius: 0; background: none; color: var(--ink); font: 500 1rem/1 var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.shell-menu a:hover, .shell-menu nav button:hover { background: var(--paper); }

/* The header menu's button (DEC-121): the person's initials in a circle; the menu names them, and holds the club
   switcher and the theme choices. */
.shell-account { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid color-mix(in srgb, var(--on-board) 55%, transparent); border-radius: 50%; color: var(--on-board); font: 600 1rem/1 var(--body); letter-spacing: 0.05em; cursor: pointer; }
.shell-menu nav { color: var(--ink); }
.shell-menu nav .button { border: 0; background: none; color: var(--ink); }
.shell-menu-who { margin: 0; padding: 0.75rem 1rem 0.25rem; font-weight: 600; color: var(--muted); }
.shell-menu .switcher { padding: 0.25rem 1rem 0.5rem; color: var(--ink); }
.shell-menu-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; }
.shell-menu-choices > span { width: 100%; font-weight: 600; }
.shell-menu nav .shell-menu-choices .choice { width: auto; min-height: 44px; padding: 0 0.75rem; border: 2px solid var(--rule); border-radius: 22px; font-weight: 600; }
.shell-menu nav .shell-menu-choices .choice[aria-pressed="true"] { background: var(--chip-on); border-color: var(--chip-on); color: var(--on-chip-on); }

/* Bottom tabs (DEC-121): four at most, along the bottom of the phone; pages leave room for them. */
.shell-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--rule); background: var(--card); }
.shell-tabs a { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.shell-tabs a[aria-current="page"] { color: var(--nav-active); }
body.has-tabs .shell-main { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
body.has-tabs .toasts { bottom: calc(4.75rem + env(safe-area-inset-bottom)); }

/* A section's tabs (Money, Forms, Messages), across the top under the header: one row that scrolls sideways. */
/* A section's tabs fit one row on a phone (DEC-128): the words and padding shrink with the screen, down to a floor;
   only a very narrow screen still swipes sideways. */
/* One line that scrolls sideways when the tabs don't fit (MK05i), with the page's own tab scrolled into view. */
.section-tabs { position: relative; display: flex; flex-wrap: nowrap; gap: 0.375rem; max-width: 48rem; margin: 0 auto; padding: 0.75rem 0.75rem 0.25rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 clamp(0.45rem, 2vw, 1rem); border: 2px solid var(--rule); border-radius: 22px; background: var(--card); color: var(--ink); font-size: clamp(0.8125rem, 3.5vw, 1rem); font-weight: 600; white-space: nowrap; text-decoration: none; }
.section-tabs a[aria-current="page"] { background: var(--chip-on); border-color: var(--chip-on); color: var(--on-chip-on); }

/* Settings' Features: each switch with what it does beneath. */
.features { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.features li { padding: 0.5rem 0.75rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.features p { margin: 0; }
.feature-name { display: flex; align-items: center; min-height: 48px; font-weight: 600; }

/* The coach home (go-live plan 2.5, the Main mockup): greeting, NEXT UP, quick buttons and this week. */
.home-greeting { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.home-greeting h1 { margin: 0; }
.home-greeting span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.scoreboard { margin: 1rem 0; border-radius: 12px; overflow: hidden; background: var(--score); color: #f3eee4; }
.scoreboard-bar { display: flex; align-items: stretch; margin: 0; font-family: var(--heading); font-weight: 900; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.scoreboard-bar > span { padding: 0.5rem 0.75rem; }
.scoreboard-tag { background: #a4531f; color: #fff; }
.scoreboard-what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* The time sits on the card's own color, set off by a thin rule, so it matches the card in both themes (MK05e: a cream
   cell glared in dark and ran into the cream page in light, leaving a stray corner). */
.scoreboard-when { border-left: 1px solid rgba(243, 238, 228, 0.25); color: var(--on-score); white-space: nowrap; }
.scoreboard-body { display: grid; gap: 0.625rem; padding: 0.625rem 0.75rem 0.75rem; }
.scoreboard-body p { margin: 0; }
.scoreboard-actions { display: flex; gap: 0.5rem; }
.scoreboard-actions .button { flex: 1; min-height: 44px; justify-content: center; border: 1px solid rgba(243, 238, 228, 0.6); background: transparent; color: #f3eee4; font-weight: 700; }
.quick-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; margin: 1rem 0; }
.quick { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 64px; border: 2px solid var(--rule); border-radius: 12px; background: var(--card); color: var(--ink); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.quick-main { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.quick[aria-expanded="true"] { outline: 3px solid var(--nav-active); outline-offset: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin: 1.75rem 0 0.5rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; color: var(--brand-text); }
.week-chip { display: inline-flex; align-items: center; gap: 0.5rem; }
.choice.week-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--card); color: var(--ink); }
.choice.week-chip[aria-pressed="false"] { border-style: dashed; background: var(--chip-off); color: var(--muted); text-decoration: line-through; }
.team-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.team-dot-0 { background: var(--team-0); }
.team-dot-1 { background: var(--team-1); }
.team-dot-2 { background: var(--team-2); }
.team-dot-3 { background: var(--team-3); }
.team-dot-4 { background: var(--team-4); }
.team-dot-5 { background: var(--team-5); }
.week-day { margin: 1rem 0 0.375rem; font-family: var(--heading); font-weight: 700; font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.week-rows { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.week-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); }
.week-time { min-width: 4.5rem; font-family: var(--heading); font-weight: 900; font-size: 1.1rem; }
.week-what { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.week-title { font-weight: 700; }
.week-place { font-size: 0.875rem; color: var(--muted); }
.week-cancelled .week-title { text-decoration: line-through; }
.week-tag { padding: 0.25rem 0.5rem; border: 2px solid var(--rule); border-radius: 6px; color: var(--ink); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.team-tag-0 { border-color: var(--team-0); }
.team-tag-1 { border-color: var(--team-1); }
.team-tag-2 { border-color: var(--team-2); }
.team-tag-3 { border-color: var(--team-3); }
.team-tag-4 { border-color: var(--team-4); }
.team-tag-5 { border-color: var(--team-5); }

/* A parent's home (go-live plan 2.11, the ParentHome mockup): the RSVP picked fills in, small date-block cards, YOU OWE
   edged in clay, and COMING UP rows with a tournament's hotel day. */
.scoreboard-actions .button[aria-pressed="true"] { border-color: var(--on-score); background: var(--on-score); color: var(--score); }
.scoreboard .rsvp-kid { font-weight: 700; }
.scoreboard .rsvp-waiting { font-size: 0.875rem; }
.day-cards { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.day-card { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.date-block { display: grid; justify-items: center; gap: 2px; min-width: 3.5rem; padding: 0.5rem; border-radius: 8px; background: var(--score); color: var(--on-score); font-family: var(--heading); line-height: 1; text-transform: uppercase; }
.date-block span { font-size: 0.875rem; font-weight: 700; letter-spacing: 1px; }
.date-block strong { font-size: 1.75rem; font-weight: 900; }
.day-card-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day-card-title { font-weight: 700; }
.day-card-place { color: var(--muted); font-size: 0.9375rem; }
.day-card-cancelled .day-card-title, .coming-cancelled .coming-title { text-decoration: line-through; }
.owe-card { margin: 1rem 0; padding: 1rem; border: 2px solid var(--brand-accent); border-radius: 12px; background: var(--card); }
.owe-card p { margin: 0.5rem 0; }
.owe-card .owe-summary { font-weight: 600; }
.owe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.owe-head h2 { margin: 0; }
.owe-total { font-family: var(--heading); font-weight: 900; font-size: 2rem; color: var(--brand-accent); }
.owe-card .owe-now { margin: 0; text-align: right; }
.owe-when { font-weight: 700; white-space: nowrap; }
.owe-none { font-weight: 700; }
.owe-card .owe-later, .balance-later { margin-top: 0; color: var(--muted); font-weight: 600; }
.owe-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.owe-actions .button { justify-content: center; min-height: 48px; }
.coming-rows { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.coming-row { padding: 0.75rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.coming-row p { margin: 0; }
.coming-title { font-weight: 700; }
.coming-row .tag-warn { display: inline-block; margin-top: 0.375rem; padding: 0.25rem 0.5rem; border-radius: 6px; background: var(--warn-bg); color: var(--warn-text); font-size: 0.875rem; font-weight: 700; }
/* A person's full schedule (go-live plan 2.12, the ParentSchedule mockup): chips with Sync on the right, weeks Monday
   to Sunday, and each event a row with a date block (games and tournaments in the brand green) opening to its card. */
.schedule-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.schedule-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.schedule-top .choices { margin: 0; }
.sync-button { flex-shrink: 0; min-height: 44px; }
.sync-panel { margin: 0.75rem 0 0; padding: 0.25rem 1rem 0.75rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.sync-panel h2 { font-size: 1.125rem; }
.schedule-week h2 { margin: 1.25rem 0 0.5rem; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.event-rows { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.event-row { border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.event-row summary { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem; cursor: pointer; list-style: none; }
.event-row summary::-webkit-details-marker { display: none; }
.event-row-what { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.event-row-title { font-weight: 700; }
.event-row-place { color: var(--muted); font-size: 0.9375rem; }
.event-row-tag { flex-shrink: 0; padding: 0.25rem 0.625rem; border-radius: 6px; background: var(--chip-off); color: var(--ink); font-weight: 700; font-size: 0.9375rem; }
.event-row-body { padding: 0 0.75rem 0.75rem; border-top: 1px solid var(--rule); }
.event-row.event-cancelled .event-row-title { text-decoration: line-through; }
.date-block-big { background: var(--brand); color: var(--on-brand); }
.schedule-pages { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin: 1rem 0; }
/* The owner's home (go-live plan 2.13, the OwnerHome mockup): the ask bar with its clay mic, NEEDS YOU cards with a
   clay badge, the four big buttons, and the places on a dark scoreboard with the open balance in clay. Help's search
   uses the same bar. */
.ask-bar { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 1rem; padding: 0.375rem 0.375rem 0.375rem 1.25rem; border: 2px solid var(--rule); border-radius: 999px; background: var(--card); }
.ask-bar input[type="search"] { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.0625rem; }
.ask-bar .button { border-radius: 999px; }
.ask-mic { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--brand-accent); color: var(--on-brand-accent); cursor: pointer; }
.ask-mic:disabled { opacity: 0.6; cursor: default; }
/* Ask Ballclub (BC22c, the AskAI mockup): the question on the right in the club's green, each answer a card with its
   page's button and thumbs, suggestion chips, and the text box with its clay button. */
.ask-thread { display: flex; flex-direction: column; gap: 0.875rem; margin: 0 0 1rem; }
.ask-question { align-self: flex-end; max-width: 80%; margin: 0; padding: 0.625rem 0.75rem; border-radius: 14px 14px 4px 14px; background: var(--brand); color: var(--on-brand); font-weight: 600; overflow-wrap: anywhere; }
.ask-answer { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); color: var(--ink); }
.ask-words { margin: 0; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.ask-waiting { color: var(--muted); }
.ask-problem { border-color: var(--error); background: var(--error-bg); }
.ask-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ask-thumbs { display: flex; gap: 0.5rem; }
.ask-again { align-self: flex-start; min-height: 44px; }
.ask-thumb { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; }
.ask-thumb[aria-pressed="true"] { border-color: var(--chip-on); background: var(--chip-on); color: var(--on-chip-on); }
.ask-chips { display: flex; gap: 0.5rem; margin: 0 0 0.5rem; overflow-x: auto; }
.ask-chip { flex-shrink: 0; min-height: 44px; padding: 0 0.875rem; border: 1px solid var(--rule); border-radius: 22px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ask-chip:disabled { opacity: 0.6; cursor: default; }
/* A command's confirm card (BC24a): what would change, a pick when two fit, then Confirm or Cancel. */
.ask-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; border: 2px solid var(--brand); border-radius: 12px; background: var(--paper); color: var(--ink); }
.ask-card-title { margin: 0; font-family: var(--heading); font-weight: 800; font-size: 1.0625rem; overflow-wrap: anywhere; }
.ask-card-lines { margin: 0; padding: 0 0 0 1.125rem; overflow-wrap: anywhere; }
.ask-card-question { margin: 0; width: 100%; font-weight: 600; }
.ask-card-choose { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ask-card-choose .ask-chip { flex-shrink: 1; max-width: 100%; padding: 0.5rem 0.875rem; white-space: normal; text-align: left; }
.ask-chip[aria-pressed="true"] { border-color: var(--chip-on); background: var(--chip-on); color: var(--on-chip-on); }
.ask-card-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ask-card-result { margin: 0; padding: 0.5rem 0.625rem; border: 1px solid transparent; border-radius: 8px; font-weight: 600; }
/* The mic beside the text box (BC25b): an outlined circle, filled in the club's green while it listens. */
.ask-listen { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 52px; height: 52px; border: 2px solid var(--brand); border-radius: 50%; background: var(--card); color: var(--brand); cursor: pointer; }
.ask-listen[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.ask-listen:disabled { opacity: 0.6; cursor: default; }
.ask-heard { margin: -0.5rem 0 1rem; padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--muted); font-weight: 600; }
.ask-mic-problem { border: 1px solid var(--error); background: var(--error-bg); color: var(--ink); }
/* Every home's mic (BC25b) for anyone without the owner's ask bar: Ask Ballclub, opened listening. */
.home-ask { display: flex; align-items: center; gap: 0.75rem; min-height: 52px; margin: 0.5rem 0 1rem; padding: 0.375rem 1.25rem 0.375rem 0.375rem; border: 2px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; }
.home-ask .ask-mic { width: 44px; height: 44px; }
.ask-box input[type="text"] { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.0625rem; }
.needs-list { display: grid; gap: 0.625rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.needs-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.needs-badge { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-accent); color: var(--on-brand-accent); font-family: var(--heading); font-weight: 900; font-size: 1.125rem; }
.needs-what { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.needs-what span { color: var(--muted); }
.needs-side { flex-shrink: 0; color: var(--muted); text-align: right; }
.owner-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0 0 1.25rem; }
.owner-buttons .button { justify-content: center; min-height: 60px; font-size: 1.0625rem; }
.place-board { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; background: var(--score); color: var(--on-score); }
.place-board th, .place-board td { padding: 0.75rem 0.5rem; text-align: left; }
.place-board th:first-child, .place-board td:first-child { padding-left: 0.75rem; }
.place-board th:last-child, .place-board td:last-child { padding-right: 0.75rem; }
.place-board .place-pct { display: block; font-family: var(--body); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.5px; opacity: 0.85; }
/* A coach-parent's NEXT UP when they're needed in two places at once (DEC-120). */
.clash-warning { margin: 0.5rem 0 1rem; padding: 0.625rem 0.875rem; border-left: 4px solid var(--error); border-radius: 6px; background: var(--error-bg); color: var(--ink); }
.place-board thead th { white-space: nowrap; font-size: 0.8125rem; letter-spacing: 1px; text-transform: uppercase; color: var(--on-score); opacity: 0.85; }
.place-board tbody tr { border-top: 1px solid rgba(243, 238, 228, 0.18); }
.place-board tbody th, .place-board td { font-family: var(--heading); font-weight: 900; font-size: 1.375rem; text-transform: uppercase; }
.place-board tbody th a { color: var(--on-score); }
/* A region's or age group's row taps down to the level below it (DEC-128). */
.place-board tbody th .place-down { padding: 0; border: 0; background: none; color: var(--on-score); font: inherit; text-transform: inherit; text-decoration: underline; cursor: pointer; }
.place-board .place-open, .place-board thead th:last-child { text-align: right; }
.place-board .place-open { color: #e08a4e; }
/* Payments (go-live plan 2.14, the TreasurerPayments mockup): the scoreboard of collected, to confirm and open; each
   report with its amount, Not received and Confirm side by side; STILL OPEN as one list of families. */
.money-board { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); margin: 0.5rem 0 1.25rem; border-radius: 12px; overflow: hidden; background: var(--score); color: var(--on-score); text-align: center; }
.money-board > div { padding: 0.75rem 0.25rem; }
.money-board > div + div { border-left: 1px solid rgba(243, 238, 228, 0.18); }
.money-board dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.money-board dd { margin: 0.25rem 0 0; font-family: var(--heading); font-weight: 900; font-size: 1.75rem; }
.money-board .money-board-confirm { color: #e08a4e; }
/* Collected's Year | Season switch (DEC-128), small, under its label. */
.board-switch { display: flex; width: max-content; margin: 0.35rem auto 0; border: 1px solid rgba(243, 238, 228, 0.35); border-radius: 999px; overflow: hidden; }
.board-switch button { min-height: 28px; padding: 0 0.5rem; border: 0; background: none; color: var(--on-score); font: 700 0.75rem/1 var(--body); letter-spacing: 0; text-transform: none; cursor: pointer; }
.board-switch button[aria-pressed="true"] { background: var(--chip-on); color: var(--on-chip-on); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.report-cards { display: grid; gap: 0.75rem; }
.report-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.report-amount { font-family: var(--heading); font-weight: 900; font-size: 1.75rem; }
/* A To confirm card (MK05i): Confirm first and full width, Change how or how much under it, Not received last and quiet. */
.report-form .report-confirm { justify-content: center; width: 100%; min-height: 52px; }
.report-form .report-not-received { justify-self: start; }
.open-families { margin: 0 0 1rem; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--card); }
.open-families > li + li { border-top: 1px solid var(--rule); }
.open-family > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.875rem 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.open-family > summary::-webkit-details-marker { display: none; }
.open-family[open] { padding: 0 1rem 0.75rem; }
.open-family[open] > summary { margin: 0 -1rem; }
.open-family .tag-warn { margin-left: 0.375rem; padding: 0.125rem 0.375rem; border-radius: 6px; background: var(--warn-bg); color: var(--warn-text); font-size: 0.8125rem; }
.remind-all { width: 100%; justify-content: center; min-height: 52px; }
.paid-ways label.choice { display: inline-flex; align-items: center; gap: 0.375rem; }
.paid-ways label.choice:has(input:checked) { border-color: var(--chip-on); background: var(--chip-on); color: var(--on-chip-on); }

/* Add a practice (go-live plan 2.6, the CoachPractice mockup). */
.info-note { margin: 0; padding: 0.625rem 0.75rem; border-radius: 10px; background: var(--info-bg); color: var(--ink); }
.day-row { display: flex; align-items: flex-end; gap: 0.5rem; }
.day-row label { flex: 1; }
.day-row .button { min-height: 48px; }
.field-name { margin: 0; font-weight: 600; }
.start-part { min-width: 0; }
.time-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scroll-snap-type: x proximity; }
.time-chips .choice { flex-shrink: 0; min-height: 48px; border-radius: 10px; white-space: nowrap; scroll-snap-align: start; }
.length-line { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin: 0.5rem 0 0; font-weight: 700; }
.switch { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 0 0.75rem; border: 2px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--ink); font: 700 1rem/1.2 var(--body); cursor: pointer; }
.switch-track { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--chip-off); border: 2px solid var(--rule); }
.switch-track span { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); }
.switch[aria-checked="true"] .switch-track { background: var(--chip-on); border-color: var(--chip-on); }
.switch[aria-checked="true"] .switch-track span { left: 22px; background: var(--on-chip-on); }
.button-big { width: 100%; min-height: 56px; font-family: var(--heading); font-weight: 900; font-size: 1.25rem; letter-spacing: 1px; text-transform: uppercase; }

/* Book a lesson (go-live plan 2.8, the CoachLesson mockup): a booked time stays in its place, dashed, and can't be picked. */
.warn-note { margin: 0; padding: 0.625rem 0.75rem; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); }
.time-chips .choice[disabled] { border-style: dashed; background: var(--chip-off); color: var(--muted); cursor: not-allowed; }
.day-chips { flex-wrap: wrap; }
.book-lesson .scoreboard { margin: 0; }
.lesson-when { margin: 0.25rem 0 0; font-family: var(--heading); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }

/* A team event's form shows only its kind's fields (go-live plan 2.7); a kind without its own list shows them all. */
form[data-kind="practice"] [data-for]:not([data-for~="practice"]),
form[data-kind="game"] [data-for]:not([data-for~="game"]),
form[data-kind="tournament"] [data-for]:not([data-for~="tournament"]),
form[data-kind="other"] [data-for]:not([data-for~="other"]) { display: none; }

/* Settings' parts few clubs change: folded under their heading until opened. */
details.expert > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 48px; cursor: pointer; list-style: none; }
details.expert > summary::-webkit-details-marker { display: none; }
details.expert > summary > :is(h2, h3) { margin: 0; }
details.expert > summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--muted); }
details.expert[open] > summary::after { content: '−'; }

/* Club setup's pages and Home's "Your pages": one big row each. */
.page-links { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.page-links a { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 600; text-decoration: none; }

/* Home: what someone manages, My teams, My family. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.card { padding: 0.75rem 1rem; border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: 10px; background: var(--card); }
.card p { margin: 0; }
.card-title { font-weight: 600; font-size: 1.1rem; }
.card-note { color: var(--muted); }
.recent-form { margin: 0.25rem 0 0.5rem; padding: 0.5rem 0.75rem; border-left: 3px solid var(--brand-accent); background: var(--card); overflow-wrap: anywhere; }
.recruiting-now { color: var(--muted); font-weight: 400; }
.recruiting-club { border-top: 1px solid var(--rule); padding-top: 0.5rem; overflow-wrap: anywhere; }
.recruiting-club h4 { margin: 0 0 0.25rem; }
.recruiting-club ul { margin: 0 0 0.5rem; padding-left: 1.25rem; }
.recruiting-club-head { font-weight: 600; margin: 0.5rem 0 0.25rem; }
.recruiting-quote { margin: 0 0 0.5rem; padding-left: 0.75rem; border-left: 3px solid var(--brand-accent); }
.recruiting-quote p { margin: 0; }
/* The share link (BC44): its part of the fold, and the public page. */
.recruiting-share { border-top: 1px solid var(--rule); margin-top: 0.75rem; padding-top: 0.5rem; overflow-wrap: anywhere; }
.recruiting-share h4 { margin: 0 0 0.25rem; }
.recruiting-share-link { font-family: ui-monospace, monospace; font-size: 0.875rem; background: var(--card, transparent); border: 1px solid var(--rule); border-radius: 6px; padding: 0.5rem; }
.recruiting-public-list { margin: 0 0 0.5rem; padding-left: 1.25rem; }
.recruiting-pending { border: 1px solid var(--brand-accent); border-radius: 6px; padding: 0.5rem 0.75rem; margin: 0.5rem 0; overflow-wrap: anywhere; }
.recruiting-pending h4 { margin: 0 0 0.25rem; }
.recruiting-changes { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.recruiting-changes li { margin-bottom: 0.5rem; }
.recruiting-change { display: block; }
.recruiting-public { overflow-wrap: anywhere; }
.recruiting-public-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.5rem; }
.recruiting-public-head h1 { margin: 0; }
.recruiting-public-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--brand-accent); }
.recruiting-public-facts { font-weight: 600; }
.recruiting-public-foot { margin-top: 1.5rem; }
.card-action { margin-bottom: 1rem; border-left-color: var(--brand-accent); }
.card-action h2 { margin-top: 0; }

/* People and access: each person's roles, one at a time, and what can be changed. */
.roles { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.roles li { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; }
.inline-form, .person-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; margin-top: 0.75rem; }
.inline-form label, .stack-form label { display: grid; gap: 0.25rem; }
.stack-form { display: grid; gap: 0.75rem; max-width: 28rem; }
.stack-form input, .stack-form select { width: 100%; }
/* The activity log's filters (BC35a): two to a row on a phone, all on one row when there's room. */
.activity-filters { margin-bottom: 1rem; }
.activity-filters label { flex: 1 1 9rem; min-width: 0; }
.activity-filters input, .activity-filters select { width: 100%; min-width: 0; }
.person-more summary { display: inline-flex; align-items: center; margin-top: 0.75rem; list-style: none; }
.person-more summary::-webkit-details-marker { display: none; }
.person-more[open] summary { border-color: var(--brand); }
input[type="email"], input[type="tel"], input[type="text"], input[type="search"], input[type="url"], select { min-height: 48px; padding: 0 0.75rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-weight: 400; }
/* File pickers (BC63): the browser's own button drawn as the app's outlined button, light and dark, with the
   chosen file's name (or "No file chosen") beside it in the page's ink. It wraps under the button on a phone. */
input[type="file"] { max-width: 100%; color: var(--ink); font: inherit; font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
input[type="file"]::file-selector-button { min-height: 48px; margin-right: 0.75rem; padding: 0 1rem; border: 2px solid var(--brand-text); border-radius: 10px; background: var(--card); color: var(--brand-text); font: 600 1rem/1 var(--body); cursor: pointer; }
input[type="file"]:hover::file-selector-button { background: var(--paper); }
.check { display: inline-flex; gap: 0.5rem; align-items: center; min-height: 48px; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); }

/* My profile's Two-step sign-in (BC01c): the shared authenticator panel (core/web/shared/authenticator.js) and the note to
   sign in again before changing it. The QR code keeps its white tile in dark too, so a phone can read it. */
.two-step { margin-top: 1.5rem; }
.two-step .stack { display: grid; gap: 0.75rem; }
.two-step .stack label { display: grid; gap: 0.25rem; max-width: 28rem; }
.two-step input[name="code"] { min-height: 48px; padding: 0 0.75rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; letter-spacing: 0.15em; }
.two-step .muted { color: var(--muted); }
.two-step [data-authenticator-key] { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.pay-online { margin-bottom: 1rem; border-left: 4px solid var(--brand-accent); }
.pay-online fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.25rem; min-width: 0; }
.pay-online legend { font-weight: 600; padding: 0; margin-bottom: 0.25rem; }
.pay-online .pay-way { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.pay-online .check { min-height: 44px; display: flex; align-items: center; gap: 0.5rem; overflow-wrap: anywhere; }
.authenticator-qr { display: block; width: min(15rem, 100%); height: auto; }
.authenticator-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 1rem; }
.authenticator-codes code { font-size: 1.05rem; }
[data-fresh-note] { margin-bottom: 1rem; border-left-color: var(--brand-accent); }
[data-fresh-note] p { margin-bottom: 0.75rem; }

/* The activity log. */
.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.log p { margin: 0; }
.log-when { color: var(--muted); font-size: 0.9rem; }

/* "Add to Home Screen": the one-time prompt above every page, and the same help on demand. */
.install-prompt { margin: 1rem 0; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-left: 4px solid var(--brand-accent); border-radius: 6px; background: var(--card); }
[data-slot="install"] .install-prompt { margin: 1rem; }
.install-prompt p { margin: 0 0 0.75rem; }
.install-prompt .button { margin: 0 0.5rem 0.25rem 0; }
.button-quiet { border-color: var(--rule); }
/* Delete our club (BC34b): the one button that can't be taken back after its days, in the error color. */
.button-danger { border-color: var(--error); color: var(--error); }
[data-club-deletion] { margin-top: 2rem; }
.club-deletion-warning { padding: 0.75rem 0.875rem; border-left: 4px solid var(--error); border-radius: 6px; background: var(--error-bg); color: var(--ink); }
.club-deletion-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }

dialog { max-width: min(28rem, calc(100vw - 2rem)); border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / 40%); }

.toasts { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; display: grid; gap: 0.5rem; }
.toast { padding: 0.75rem 1rem; border-radius: 6px; background: var(--brand); color: var(--on-brand); }
.toast p { margin: 0; }
.toast-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); }

.facts { display: grid; grid-template-columns: fit-content(45%) 1fr; gap: 0.25rem 1rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dt { color: var(--muted); }

/* The club's own domain in Settings (BC21c): each DNS record to copy, its long values wrapping inside the phone. */
.domain-host { overflow-wrap: anywhere; }
.domain-steps { padding-left: 1.25rem; overflow-wrap: anywhere; }
.domain-steps li + li { margin-top: 0.4rem; }
.dns-records { margin-bottom: 0.75rem; }
.dns-value { font-family: ui-monospace, monospace; }

/* Join links: the QR code big enough to scan from across a table, and printing only the chosen one. */
.join-qr { display: block; width: min(16rem, 100%); height: auto; margin: 0.75rem 0; image-rendering: pixelated; }
.join-address { margin: 0; font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.join-link-off { opacity: 0.75; }
.cards + .stack-form { margin-top: 1.25rem; }

@media print {
  body { background: #fff; }
  body:has(.join-link-printing) .shell-header,
  body:has(.join-link-printing) [data-slot="install"],
  body:has(.join-link-printing) main > :not(section),
  body:has(.join-link-printing) section > :not(.cards),
  body:has(.join-link-printing) .cards > :not(.join-link-printing),
  body:has(.join-link-printing) .person-actions { display: none !important; }
  .join-link-printing { border: 0; text-align: center; }
  .join-link-printing .card-title { font-family: var(--heading); font-weight: 900; font-size: 2.5rem; }
  .join-link-printing .join-qr { width: 12cm; margin: 1cm auto; }
  .join-link-printing .card-note { display: none; }
  /* An order's summary (BC53) prints alone, in black on white even from dark mode. */
  body:has(.order-summary) .shell-header,
  body:has(.order-summary) .shell-tabs,
  body:has(.order-summary) [data-slot="install"],
  body:has(.order-summary) [data-slot="kill-switches"],
  body:has(.order-summary) [data-slot="section"],
  .order-summary-controls { display: none !important; }
  .order-summary, .order-summary * { color: #000 !important; background: none !important; }
  .order-summary .card { break-inside: avoid; }
}

/* Settings (HQ21): the logo with its colors, a live preview in the colors being chosen, and the watermark. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
label.button, .stack-form label.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; }
/* A checkbox or radio sits beside its words, in a form too. */
.stack-form label.check { display: flex; align-items: center; gap: 0.5rem; }
.stack-form .check input { flex: none; width: 1.25rem; }
.logo-choice { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.logo-current { display: block; max-width: 10rem; max-height: 6rem; object-fit: contain; }
.sponsor-list { display: grid; gap: 1rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.sponsor-logo { max-width: 6rem; max-height: 3.5rem; padding: 0.25rem; border-radius: 6px; background: #fff; object-fit: contain; }
.sponsor-words { display: grid; flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.color-pair { display: flex; flex-wrap: wrap; gap: 1rem; }
.color-pair label { display: grid; gap: 0.25rem; }
input[type="color"] { width: 6rem; min-height: 48px; padding: 0.25rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
fieldset { margin: 0; padding: 0.5rem 0.75rem; border: 1px solid var(--rule); border-radius: 6px; }
legend { padding: 0 0.25rem; }
fieldset.plain { display: grid; gap: 0.75rem; min-width: 0; padding: 0; border: 0; }

/* A partner host's offer on its tournament (D1): always labeled. */
.partner-offer { margin: 1rem 0; display: grid; gap: 0.25rem; border-left-color: var(--brand-accent); }
.partner-label { display: inline-block; padding: 0 0.4rem; border: 1px solid var(--rule); border-radius: 4px; font-size: 0.8rem; font-weight: 600; vertical-align: middle; }
.check input[type="radio"] { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); }
.theme-preview { padding: 0 1rem 1rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); }
.theme-preview-bar { margin: 0 -1rem 0.75rem; padding: 0.75rem 1rem; border-radius: 6px 6px 0 0; background: var(--brand); color: var(--on-brand); font-family: var(--heading); font-weight: 900; font-size: 1.3rem; border-bottom: 4px solid var(--brand-accent); }
.theme-preview .button { display: inline-flex; align-items: center; margin-right: 0.5rem; }
.watermark { position: fixed; inset: 0; z-index: -1; margin: auto; width: min(70vw, 28rem); max-height: 70vh; height: auto; object-fit: contain; opacity: 0.05; pointer-events: none; }

/* Choices as chips (go-live plan Stage 2): one row of big pills, the chosen one filled. */
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.choice { min-height: 44px; padding: 0 1rem; border: 2px solid var(--rule); border-radius: 22px; background: var(--card); color: var(--ink); font: 600 1rem/1 var(--body); cursor: pointer; }
.choice[aria-pressed="true"], .choice[aria-current="page"] { background: var(--chip-on); border-color: var(--chip-on); color: var(--on-chip-on); }
a.choice { display: inline-flex; align-items: center; text-decoration: none; }

/* Structure (HQ22): each season's age groups as small chips, each with a remove button for those who manage them. */
.chips { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2rem; padding: 0 0.75rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
/* A lineup's batting order (HQ65): rows drag into place, and Up and Down do the same. */
.lineup-row[draggable="true"] { cursor: grab; }
/* A public form's problems (HQ62), shown above it while what was typed stays. */
.form-problems:empty { display: none; }
.form-problems { margin: 0.75rem 0; padding: 0.75rem; border-left: 4px solid var(--error); background: var(--error-bg); color: var(--ink); }
/* Release forms (HQ61): the club's text, kept as typed and scrolling inside its own box when it's long. */
/* A registration form's deposit (BC11d2): hidden while making a tryout form, which .stack-form's grid would undo. */
.deposit-fields[hidden] { display: none; }
/* Orders (BC51b): an item's sizes as checkboxes, two or three across on a phone; only the picked list's show. */
.size-list[hidden] { display: none; }
/* A club store (BC56) has no registration form, and .stack-form label's grid would undo hiding the box. */
[data-registration][hidden] { display: none; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0 0.75rem; }
.order-items { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.75rem; }
.order-items > li { padding-top: 0.5rem; border-top: 1px solid var(--rule); }
.order-items p { margin: 0; }
/* Cancelling a tryout session (BC12f8): who's told and each fee going back, before going ahead. */
.session-cancel { margin-top: 0.5rem; padding: 0.75rem; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); display: grid; gap: 0.5rem; }
.session-refunds { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.25rem; }
.order-player { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
.order-player h3 { margin: 0; }
.order-picks, .order-lines { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.5rem; }
.order-pick-details { display: grid; gap: 0.5rem; padding-left: 1.75rem; }
.order-pick-details[hidden] { display: none; }
.order-total { margin: 0; font-weight: 700; }
/* The dues on a registration form (BC11d2): each way to pay is a big choice with its words under it. */
.pay-choice { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.5rem; align-items: start; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.pay-choice input { width: auto; margin-top: 0.2rem; }
.pay-choice .card-note { grid-column: 2; margin: 0; }
/* Tryout sessions (BC12d): the same big choice on the public form; a full session's radio is greyed by the browser. */
.session-choice { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.5rem; align-items: start; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.session-choice input { width: auto; margin-top: 0.2rem; }
.session-choice .card-note { grid-column: 2; margin: 0; }
.session-pick { display: grid; gap: 0.25rem; }
.session-map { display: inline-flex; align-items: center; min-height: 44px; }
.session-place[hidden] { display: none; }
.session-closed { font-weight: 600; }
.session-add { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
/* A camp on its public form (BC14g): what it is, set off from the boxes to fill in below it. */
.camp-facts { display: grid; gap: 0.25rem; margin-block: 0.75rem; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.camp-facts p { margin: 0; }
/* Joining the cage membership (BC60f2): Join under the plan, and the member's link after joining, at their own width. */
.member-offer .button, .member-link { justify-self: start; margin-block: 0.5rem; }
.camp-days { margin: 0; padding: 0; list-style: none; }
.camp-spots { font-weight: 600; }
/* A camp day at the field (BC14h): an unsigned waiver stands out by weight, and a note someone has to act on is set off. */
.camp-unsigned { font-weight: 600; }
.camp-said { margin: 0.5rem 0; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.camp-said[hidden] { display: none; }
.camp-waiting-title { margin: 1rem 0 0.5rem; font-size: 1.125rem; }
.camp-message { margin-top: 1rem; }
.camp-day-links { display: grid; gap: 0.5rem; margin-block: 0.5rem; }
/* A camp's days (BC14f): each row set off from the next, since there can be many. */
.camp-day { display: grid; gap: 0.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
/* Tryout check-in at the field (BC12e): the number large enough to read out in the sun, and a full-width button to tap. */
.tryout-count { margin: 0.5rem 0; font-weight: 600; }
.tryout-list { margin-top: 0.75rem; }
.tryout-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.tryout-who { min-width: 0; overflow-wrap: anywhere; }
.tryout-who p { margin: 0; }
.tryout-number { flex: none; margin: 0; color: var(--ink); font: 700 2.25rem/1 var(--body); }
.tryout-actions { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.tryout-actions > .button { width: 100%; }
.tryout-fee-due { color: var(--ink); font-weight: 600; }
.tryout-fee-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
/* Scoring a tryout (BC13g): a player's row opens into the rubric. Five numbers across, so a 4 sits in the same place in every category. */
.score-fold > summary { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; list-style: none; cursor: pointer; scroll-margin: 5rem 0; }
.score-fold > summary::-webkit-details-marker { display: none; }
.score-fold .tryout-who > span { display: block; }
.score-category { margin-top: 0.75rem; }
.score-category .card-title { margin: 0; }
.score-numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.375rem; margin-top: 0.25rem; }
.score-number { padding: 0; }
/* Who scores a tryout: its own rule for [hidden], since .stack-form label.check's flex would undo hiding a row. */
/* Rankings and teams (BC13h). */
.rank-top { display: flex; align-items: center; gap: 0.5rem; }
.rank-top .tryout-number { font-size: 1.5rem; }
.rank-top .tryout-who > span { display: block; }
.rank-tick { flex: none; }
.rank-tick input { width: 24px; height: 24px; }
.rank-detail { margin: 0.5rem 0 0; padding-left: 1.25rem; overflow-wrap: anywhere; }
.rank-offer { margin-top: 0.5rem; font-weight: 600; }
.rank-actions { display: grid; gap: 0.5rem; margin: 0.75rem 0; }
.rank-actions > .button { width: 100%; }
/* A tryout's measurables (BC13i): its own rule for [hidden], since .stack-form label's grid would undo hiding the pitch. */
.stack-form label.measure-pitch[hidden], [data-measuring][hidden] { display: none; }
.measure-player .stack-form { margin-top: 0.5rem; }
.measure-entries { margin: 0; padding: 0; list-style: none; }
.measure-entries li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.measure-entries .tryout-who > span { display: block; }
.evaluator-list { display: grid; gap: 0.25rem; }
.stack-form label.evaluator-pick[hidden] { display: none; }
/* A background check's Completed box and the copy field (BC31): their own rule for [hidden], since .stack-form's display would undo it. */
.stack-form .background-only[hidden], .stack-form label.copy-field[hidden] { display: none; }
.dues-parts { margin: 0; padding-left: 1.25rem; }
.nothing-until { font-weight: 600; }
/* Saving a way to pay on the registration form (BC11d3): two buttons side by side that wrap on a narrow phone. */
.pay-way { display: grid; gap: 0.5rem; }
.pay-way p { margin: 0; }
.way-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.way-buttons .button { flex: 1 1 10rem; min-height: 44px; }
.way-fee { font-weight: 600; }
/* The renter's cancel page (BC59b2): past the cancel-by time in the error color, and the ask before cancelling set off. */
.rental-cancel-late { font-weight: 600; color: var(--error); }
.rental-cancel-go { width: 100%; min-height: 44px; }
.rental-cancel-confirm { display: grid; gap: 0.5rem; margin-block: 0.75rem; padding: 0.75rem 0.875rem; border-left: 4px solid var(--error); border-radius: 6px; background: var(--error-bg); color: var(--ink); }
.form-pays { font-weight: 600; }
.release-text { max-height: 20rem; overflow-y: auto; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); white-space: pre-wrap; }
/* The drawing pad on a registration form's release form (BC11b): white paper with dark ink in light and dark alike,
   since the drawing goes into the signed PDF as drawn. touch-action keeps a finger from scrolling the page. */
.signature-pad { display: block; width: 100%; height: 10rem; border: 1px solid var(--rule); border-radius: 6px; background: #ffffff; touch-action: none; cursor: crosshair; }
.signature-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.chip-remove { min-width: 2rem; min-height: 2rem; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
input[type="number"], input[type="date"] { min-height: 48px; padding: 0 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; }

/* Facilities (HQ23): each field or cage with its hours and status, and the one-tap Open/Closed toggle beside it. */
.resources { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.resource { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; border: 1px solid var(--rule); border-radius: 6px; }
.resource p { margin: 0; }
.resource-name { font-weight: 600; }
.resource-status { font-weight: 600; color: var(--brand-text); }
.resource-closed { border-color: var(--error); background: var(--error-bg); }
.resource-closed .resource-status { color: var(--error); }
.resource > div { min-width: 0; }
.rentals { margin-top: 0.5rem; }
.rental-list { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.rental { padding: 0.5rem 0 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.rental p + p { margin-top: 0.125rem; }
/* The club's cage memberships on Facilities (BC60f1): the plan, then each member, on hold in the warning colors. */
.memberships { margin-block: 1rem; }
.member-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.member { padding: 0.5rem 0 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.member p + p { margin-top: 0.125rem; }
.member-ended { color: var(--muted); }
.member-hold { padding: 0.25rem 0.5rem; border-left: 4px solid var(--warning); background: var(--warn-bg); color: var(--warn-text); }
/* The member's manage page (BC60f3): its actions spaced off what's above, one under the other at phone width. */
.member-actions { margin-top: 1rem; }
.member-actions .button { flex-basis: 100%; }
.member-pay { margin-top: 1rem; }
.end-early { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; margin-top: 0.5rem; }
.end-early label { display: grid; gap: 0.25rem; font-size: 0.875rem; }
.end-early input { min-height: 2.75rem; max-width: 100%; }
.end-early .button { min-height: 2.75rem; }
.rental-page a { overflow-wrap: anywhere; }
.staff-note { padding: 0.5rem 0.75rem; border-left: 4px solid var(--warning); background: var(--warn-bg); color: var(--warn-text); }
.map-button { min-height: 2.5rem; margin-left: 0.25rem; }
.hours-row { display: grid; grid-template-columns: 3rem 1fr 1fr; gap: 0.5rem; align-items: center; margin-bottom: 0.25rem; }
.hours-day { font-weight: 600; }
input[type="time"], textarea { min-height: 48px; padding: 0.5rem 0.75rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; width: 100%; }

/* Teams (HQ24): the picker down the club's levels, and each team season's status. */
.picker { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.picker label { display: grid; gap: 0.25rem; }
.status { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; background: var(--paper); border: 1px solid var(--rule); }
.status-active { border-color: var(--brand-text); color: var(--brand-text); }
.status-inactive, .status-archived { color: var(--muted); }

/* Rosters (HQ27): each player's number before their name, and a guest's mark. */
.roster-number { display: inline-block; min-width: 2.5rem; font-family: var(--heading); font-weight: 900; font-size: 1.3rem; }
/* A player's card (BC41): the photo, or their initials, beside the number, name and facts. */
.player-card { display: flex; gap: 0.75rem; align-items: flex-start; min-width: 0; }
.player-card-words { min-width: 0; flex: 1; }
.player-card-words .card-title { margin-top: 0; }
.player-photo { flex: none; width: 4rem; height: 4rem; border-radius: 8px; object-fit: cover; background: var(--chip-off); }
.player-photo-none { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--heading); font-weight: 900; font-size: 1.3rem; }
.player-facts { overflow-wrap: anywhere; }
.news-pin { color: var(--muted); font-family: var(--heading); font-weight: 900; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.news-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.news-preview { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.news-photo { display: block; width: 100%; max-height: 24rem; border-radius: 8px; object-fit: cover; background: var(--chip-off); }
.photo-actions { margin-top: 0.5rem; }
/* A team's GroupMe thread (BC67). */
.groupme-thread { margin-top: 1rem; }
.groupme-message { overflow-wrap: anywhere; }
.groupme-text { white-space: pre-wrap; margin: 0.25rem 0; }
.groupme-system { opacity: 0.8; font-style: italic; }
.groupme-photo { display: block; max-width: 100%; max-height: 20rem; margin-top: 0.4rem; border-radius: 8px; object-fit: contain; background: var(--chip-off); }
.guest-mark { margin-left: 0.5rem; padding: 0 0.4rem; border: 1px solid var(--brand-accent); border-radius: 999px; font-size: 0.85rem; font-weight: 600; }

/* Schedule (HQ28): the view switch with earlier and later, each day's events with their times and marks (overlapping,
   cancelled), the outside-place fields shown only for "Somewhere else", and each team's color on a person's own
   schedule. */
.schedule-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; margin: 1rem 0 0.5rem; }
.segmented { display: inline-flex; }
.segmented .button { border-radius: 0; }
.segmented .button:first-child { border-radius: 6px 0 0 6px; }
.segmented .button:last-child { border-radius: 0 6px 6px 0; }
.segmented .button + .button { margin-left: -2px; }
.schedule-move { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.schedule-label { min-width: 8rem; font-weight: 600; text-align: center; }
.schedule-day { margin: 1rem 0 0.5rem; font-size: 1.2rem; }
.schedule-empty { color: var(--muted); }
.event-when { font-weight: 600; }
.event-team { color: var(--muted); }
.event-overlap { color: var(--warning); font-weight: 600; }
/* Final scores and records (go-live plan 2.18): the score on an event, the team's record a tap from its lines. */
.event-score { font-weight: 700; }
.team-record { margin: 0 0 1rem; }
.team-record summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.team-record p { margin: 0; color: var(--muted); }
.score-form input[type="number"] { width: 5.5rem; }
.score-form .check { display: flex; align-items: center; gap: 0.5rem; flex-basis: 100%; }
/* Pitch counts on a coach's home (BC30): the counts in, then pitcher, pitches and Save on one wrapping row. */
.pitch-entered { margin: 0.25rem 0 0.5rem; padding-left: 1.25rem; overflow-wrap: anywhere; }
/* Volunteers on an event (BC32b): each job a block with its counts, its people and its buttons. */
.volunteer-jobs { display: grid; gap: 0.75rem; margin: 0.5rem 0; padding: 0; list-style: none; }
.volunteer-job { padding-top: 0.5rem; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.volunteer-job:first-child { padding-top: 0; border-top: 0; }
/* Polls (BC33b): a family's choices in a plain box, and the results as one row a choice with the names under it. */
.poll-answer fieldset { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 0.25rem; }
.poll-answer legend { padding: 0; margin-bottom: 0.25rem; font-weight: 600; }
.poll-results { display: grid; gap: 0.5rem; margin: 0.5rem 0; padding: 0; list-style: none; overflow-wrap: anywhere; }
.poll-results p { margin: 0; }
.pitch-quick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; }
.pitch-quick label { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.pitch-quick select { max-width: 12rem; min-height: 44px; }
.pitch-quick input[type="number"] { width: 5.5rem; min-height: 44px; }
.event-not-confirmed { color: var(--warning); font-weight: 600; }
.rsvp { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.25rem 0; }
.needs-attention .attention-past_due strong { color: var(--error); }
.event-cancelled { border-left-color: var(--error); }
.event-cancelled .card-title { text-decoration: line-through; }
.event-cancelled-note, .event-field-closed { color: var(--error); font-weight: 600; }
.outside-place[data-shown="false"] { display: none; }
.team-links { display: flex; gap: 1.5rem; }
/* A team schedule's staff tools (MK05g): one Add button that opens its three kinds, and one compact row that wraps,
   an opened tool taking the whole width under it, so the week shows on a phone's first screen. */
.team-add { margin: 0.75rem 0 0.5rem; }
.team-add > summary { display: inline-flex; align-items: center; justify-content: center; min-width: 8rem; list-style: none; }
.team-add > summary::-webkit-details-marker, .team-tool > summary::-webkit-details-marker { display: none; }
.team-add[open] > summary { outline: 3px solid var(--nav-active); outline-offset: 2px; }
.team-add-menu { display: grid; gap: 0.25rem; margin-top: 0.5rem; }
.team-add-menu > a.button { justify-self: start; margin-top: 0.75rem; }
.team-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.team-tools > .button, .team-tool > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; font-size: 0.9375rem; list-style: none; }
.team-tool[open] { flex-basis: 100%; order: 1; }
.team-tool[open] > summary { border-color: var(--brand); }
.team-filter { display: grid; gap: 0.25rem; margin: 0.5rem 0; }
.quick-add { margin: 0.75rem 0; }
.team-color-0 { border-left-color: var(--team-0); }
.team-color-1 { border-left-color: var(--team-1); }
.team-color-2 { border-left-color: var(--team-2); }
.team-color-3 { border-left-color: var(--team-3); }
.team-color-4 { border-left-color: var(--team-4); }
.team-color-5 { border-left-color: var(--team-5); }

/* Links (HQ32): each with its type's icon, opening in a new tab; staff-only ones marked. */
.links { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.25rem; }
.links li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.links a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; font-weight: 600; }
.link-icon { font-size: 1.1rem; }
.link-form { margin-top: 0.5rem; }

/* A failed request's ID: it stays until closed, so it can be read out (DEC-254). */
/* Over the pinned bars, or they would cover it and take its Close tap. Only this one: a passing toast must not block the bar under it. */
.toasts:has(.toast-request-id) { z-index: 10; }
.toast-request-id { display: flex; align-items: center; gap: 0.75rem; }
.toast-request-id p { flex: 1; overflow-wrap: anywhere; }
.toast-request-id button { flex: none; width: auto; min-height: 44px; padding: 0 0.75rem; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; font: inherit; }
