/* ===== ROOT VARIABLES =====
   Generated from docs/design/themes/broadcast-dark.md — do not hand-edit here.
   Regenerate with `node scripts/build-theme.js` (see #2190, #2375). */
@import url('/css/theme.generated.css');

/* ===== BREAKPOINT SCALE =====
   Shared responsive breakpoint vocabulary (#4421 child 4 / Issue #4840).
   See docs/frontend/breakpoints.md and lib/breakpoints.js.
   sm:  480px  — Compact mobile phones (forms, narrow badges, ingest triage)
   md:  640px  — Standard mobile / phablet (page wrappers, navigation, home summary, cards)
   lg:  768px  — Tablets / portrait split (hero gotw, draft setups, depth chart chips, pool pickers)
   xl: 1024px  — Small desktop / landscape tablets (conferences panel, portal filters, bracket grid)
   xxl: 1440px — Large desktop / wide displays (reserved for child 3 #4841 wide-grid treatment)
*/

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* #4829: tell the browser the page is dark so native scrollbars,
     <select> popups, checkboxes/radios and date pickers pick their dark
     UA variants in every engine. scrollbar-color/-width are inherited,
     so declaring them once here covers every scroll container. */
  color-scheme: dark;
  scrollbar-color: var(--border) transparent;
}
/* #4829: WebKit fallback (Safari, Chromium < 121 — ignored once
   scrollbar-color is non-auto on Chromium >= 121, which is expected;
   both paths render the same look). */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--rounded-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-dim);
}
::-webkit-scrollbar-corner {
  background: transparent;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  font-family: inherit;
}
input,
select,
textarea {
  font-family: inherit;
}

/* Metric-matched fallback font declaration for Barlow Condensed (#3490).
   Normalizes advance width when Google Fonts CDN is slow or unreachable so
   4-char monograms don't overflow or clip. */
@font-face {
  font-family: 'Barlow Condensed Fallback';
  src:
    local('Arial Narrow'), local('Liberation Sans Narrow'), local('DejaVu Sans Condensed'),
    local('Nimbus Sans Narrow'), local('Impact'), local('Trebuchet MS'), local('Arial'),
    local('Liberation Sans'), local('DejaVu Sans'), local('FreeSans'), local('Ubuntu'),
    local('Helvetica');
  ascent-override: 90%;
  descent-override: 20%;
  line-gap-override: 0%;
  size-adjust: 72%;
}

/* ===== BROADCAST TYPOGRAPHY (#2376) =====
   Barlow Condensed is the Broadcast "voice" for names, scores, and eyebrow
   labels per docs/design/themes/broadcast-dark.md's `typography` block —
   applied here via the `--typography-*` custom properties #2375 generates
   from that source (public/css/theme.generated.css), never hardcoded.
   Body copy (`body-md`/`body-sm`) is untouched and stays Inter via the
   `body` rule above.

   Scope: this pass covers the app's broadcast-content surfaces — the
   navbar brand, team/player/league names, scores, and section/card eyebrow
   labels — not generic app chrome (modals, wizards, settings forms, admin
   tooling), which stays Inter here and is left to the #2376-sibling
   component-restyle ticket (Broadcast theme 3/3) to evaluate
   surface-by-surface.

   IMPORTANT: do not reintroduce a bare `h1, h2, h3` tag selector here.
   Plain, unclassed <h1>/<h2>/<h3> tags are used throughout the app for
   modal titles, wizard steps, settings sections, and admin panels (none of
   which declare their own font-family), so a tag-level rule would win the
   cascade on those excluded surfaces too and re-skin them in Barlow
   Condensed — the regression flagged in UX review on PR #2405. Target the
   specific broadcast-content classes below instead. */

.navbar-brand {
  font-family:
    var(--typography-headline-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    'Arial Narrow', sans-serif;
  font-weight: var(--typography-headline-font-weight);
  letter-spacing: var(--typography-headline-letter-spacing);
  text-transform: uppercase;
}

/* Names — team, player, league, and roster identities rendered in the
   broadcast condensed headline treatment. */
.game-school,
.all-american-name,
.league-card-name,
.league-header-name,
.member-name,
.recruit-name,
.team-draft-name,
.team-profile-band-name {
  font-family:
    var(--typography-headline-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    'Arial Narrow', sans-serif;
  font-weight: var(--typography-headline-font-weight);
  letter-spacing: var(--typography-headline-letter-spacing);
  text-transform: uppercase;
}

/* Scores — scoreboard-style numerals get the display treatment plus
   tabular-nums so digits don't jitter (broadcast-dark.md, "Typography"). */
.game-score,
.hgr-score,
.matchup-score,
.my-game-score,
.ticker-score,
.top-perf-score {
  font-family:
    var(--typography-display-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    'Arial Narrow', sans-serif;
  font-weight: var(--typography-display-font-weight);
  line-height: var(--typography-display-line-height);
  letter-spacing: var(--typography-display-letter-spacing);
  font-variant-numeric: tabular-nums;
}

/* Eyebrow labels — section headers and card-header captions. */
.section-title,
.home-section-title,
.home-season-label,
.home-week-label,
.home-standings-conf-label,
.my-game-label,
.top-perf-label,
.stat-card-label,
.powerboard-label,
.comp-card-header,
.newsroom-card-title,
.game-week {
  font-family:
    var(--typography-eyebrow-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    'Arial Narrow', sans-serif;
  font-weight: var(--typography-eyebrow-font-weight);
  letter-spacing: var(--typography-eyebrow-letter-spacing);
  text-transform: uppercase;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
  color: var(--text-secondary);
}
.loading-logo {
  font-size: 48px;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ===== NAVBAR =====
   Lower-third header treatment (#2377, broadcast-dark.md "Layout" §1): the
   app chrome closes on a 2px amber rule instead of a hairline border, same
   wayfinding accent used for active tabs/CTAs below. */
.navbar {
  position: sticky;
  top: var(--incident-banner-height, 0px);
  z-index: 100;
  background: var(--surface-deep);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.navbar-brand-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.navbar-brand .emoji {
  font-size: 1.4rem;
}
.navbar-brand .brand-accent {
  color: var(--gold);
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-username {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.nav-username strong {
  color: var(--text-primary);
}
.nav-username-link,
.account-profile-link {
  color: inherit;
  text-decoration: none;
}
.nav-username-link:hover,
.account-profile-link:hover {
  text-decoration: underline;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: all 0.15s ease;
  line-height: 1;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* button-primary / button-primary-hover (#2377, broadcast-dark.md
   "Components"): amber fill, on-primary ink (never white-on-amber per the
   theme's Do's/Don'ts), eyebrow condensed voice for the CTA label. */
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--typography-eyebrow-font-family), 'Barlow Condensed', sans-serif;
  font-weight: var(--typography-eyebrow-font-weight);
  letter-spacing: var(--typography-eyebrow-letter-spacing);
  text-transform: uppercase;
  border-radius: var(--rounded-md);
  padding: 10px;
}
.btn-primary:hover:not(:disabled) {
  background: #ffbf52;
  color: var(--on-primary);
}
/* button-secondary — raised surface, hairline border, lighter weight;
   pairs beside a primary action. */
.btn-secondary {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  padding: 10px 14px;
}
.btn-secondary:hover:not(:disabled) {
  background: #2d3748;
  border-color: #4a5568;
}
.btn-success {
  background: var(--green-dark);
  color: #fff;
}
.btn-success:hover:not(:disabled) {
  background: var(--green-dark);
}
.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red-dark);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(248, 81, 73, 0.1);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 10px;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
}
.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}
.btn-icon {
  padding: 6px;
  border-radius: var(--radius-sm);
}

/* Navbar page destinations reuse the section-navigation current-page language:
   transparent surface, gold text, and a gold underline. The underline remains
   separate from notification badges (including the Help release dot). */
.navbar-route-btn {
  border-bottom: 3px solid transparent;
}
.navbar-route-btn.active,
.navbar-route-btn.active:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: transparent;
  font-weight: 700;
}

/* ===== FORMS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
/* #1153: `.input` and `.form-select` are generic utility class names used
   across public/js/features/* for text inputs, textareas, and selects.
   Canonical approach: alias them directly onto `.form-control`'s selector
   list (rather than a separate rule body) so there is a single source of
   truth for the themed form-control treatment. Extend `.form-control`
   itself for future form-control styling changes; do not add competing
   rule bodies for `.input` / `.form-select` elsewhere. */
.form-control,
.input,
.form-select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.15s;
}
.form-control:focus,
.input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.15);
}
.form-control::placeholder,
.input::placeholder {
  color: var(--text-muted);
}
/* #2725 / #4829: the native ::-webkit-calendar-picker-indicator glyph used
   to render dark by default, invisible against our dark form-control
   background (e.g. Sportsbook -> This Week's Board -> Configure Deadline),
   so this rule inverted it. Now that `html` declares `color-scheme: dark`
   (#4829), the UA already renders the glyph light to match the color
   scheme, so the invert(1) would flip it back to dark/invisible. Removed —
   re-verify on Configure Deadline if the glyph ever looks wrong again. */
.input-group-password {
  position: relative;
  display: flex;
}
.input-group-password .form-control {
  padding-right: 40px;
}
.btn-password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1;
}
.btn-password-toggle:hover {
  color: var(--text-primary);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
/* #1642: label+select row for Discord channel routing. `.form-group`
   defaults to flex-direction:column, so a row needs its own class rather
   than an inline override to lay the label and select out horizontally. */
.discord-routing-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.discord-routing-row .discord-routing-label {
  flex: 0 0 240px;
}
.discord-routing-row .discord-purpose-select {
  flex: 1 1 200px;
  min-width: 160px;
}
.form-error {
  font-size: 0.82rem;
  color: var(--red);
  margin-top: 4px;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-base);
}
.auth-page-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
  max-width: 980px;
  flex-wrap: wrap;
}
.landing-hero {
  flex: 1 1 420px;
  max-width: 520px;
  color: var(--text-primary);
}
.landing-hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.landing-hero-logo .trophy {
  font-size: 40px;
}
.landing-hero-logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
}
.landing-hero-logo h1 span {
  color: var(--gold);
}
.landing-hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.landing-hero-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.landing-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.landing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.landing-feature-icon {
  font-size: 1.3rem;
  line-height: 1.4;
}
.landing-feature-list li strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.landing-feature-list li p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
@media (max-width: 768px) {
  .auth-page-inner {
    gap: 24px;
  }
  .landing-hero {
    text-align: center;
  }
  .landing-hero-logo {
    justify-content: center;
  }
  .landing-feature-list li {
    text-align: left;
  }
}
.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  flex: 0 1 420px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .trophy {
  font-size: 52px;
  display: block;
  margin-bottom: 8px;
}
.auth-logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
}
.auth-logo h1 span {
  color: var(--gold);
}
.auth-logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-divider {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.auth-divider a {
  color: var(--gold);
  font-weight: 600;
}
.auth-divider a:hover {
  color: var(--gold-light);
}

/* ===== DASHBOARD ===== */
/* #1624, #4422: fluid, device-responsive width instead of a fixed 1500px cap —
   fills wide and ultrawide desktops without stopping at a fixed column,
   while staying full-width on mobile. Shared by .page-wrapper,
   .league-header-top, .nav-sections-inner, .tabs-inner, and .tab-content
   so the whole shell scales together. */
:root {
  --page-shell-width: 94%;
}

.page-wrapper {
  width: var(--page-shell-width, 94%);
  max-width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ====================================================
   Page Wrapper Modifiers: Narrow-on-Purpose (#4839)
   ----------------------------------------------------
   Default .page-wrapper is fluid at var(--page-shell-width, 94%)
   to fill wide and ultrawide viewports (#1624, #4422).
   Deliberately narrow surfaces (forms, wizards, reading views)
   express their constraint with first-class modifier classes
   instead of inline max-width overrides.

   Modifier vocabulary (rationale per size):
   - .page-wrapper--compact (720px): Single-field focused inputs and
     join-league invite cards (createLeague/render.js).
   - .page-wrapper--narrow (760px): Single-step upload dropzones and
     compact screenshot ingest forms (ingest/render.js).
   - .page-wrapper--wizard (820px): Multi-step creation wizards and
     CSV import configuration views (createLeague/render.js, csvImport/render-mode-b.js).
   - .page-wrapper--reading (900px): Admin incident logs, announcement
     controls, and text-heavy management views (adminIncidents/index.js).
   - .page-wrapper--triage (1680px): Wide-table screenshot preview and
     reconcile triage decks (ingest/render.js).
   ==================================================== */
.page-wrapper--compact {
  max-width: 720px;
}
.page-wrapper--narrow {
  max-width: 760px;
}
.page-wrapper--wizard {
  max-width: 820px;
}
.page-wrapper--reading {
  max-width: 900px;
}
.page-wrapper--triage {
  max-width: 1680px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 800;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 2px;
  max-width: 75ch;
}

/* ====================================================
   Responsive Page Shell & Reading Measure (#4422)
   ==================================================== */
/* Prose-like content maintains a comfortable reading measure (65-75ch)
   instead of stretching across ultrawide viewports, while wide data grids
   and card layouts use the full page width. */
.prose,
.reading-measure,
.text-measure,
.page-description,
.section-subtitle,
.section-desc,
.settings-desc,
#help-content,
.page-wrapper p:not(td p, th p),
.tab-content p:not(td p, th p) {
  max-width: 75ch;
}

/* Layout Utilities (#3494) */
.grid {
  display: grid;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  }
}
.game-logger-grid {
  gap: 20px;
}
@media (max-width: 640px) {
  .game-logger-grid {
    grid-template-columns: 1fr;
  }
}
.inline-group {
  display: flex;
  align-items: center;
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.league-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.league-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}
/* Incident Banner (#3140) */
#incident-banner-container.incident-banner-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.incident-banner {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.88rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.incident-banner-inner {
  max-width: var(--page-shell-width, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.incident-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
  flex-wrap: wrap;
}

.incident-banner-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.incident-banner-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.incident-banner-message {
  color: var(--text-primary);
  flex: 1;
}

.incident-banner-timestamp {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.incident-banner-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.incident-banner-dismiss:hover,
.incident-banner-dismiss:focus {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.incident-banner-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}

/* Severity themes */
.incident-banner-info {
  background: rgba(88, 166, 255, 0.12);
  border-bottom: 1px solid rgba(88, 166, 255, 0.3);
}
.incident-banner-info .incident-banner-label {
  background: rgba(88, 166, 255, 0.25);
  color: var(--blue, #58a6ff);
}

.incident-banner-degraded {
  background: rgba(240, 128, 41, 0.12);
  border-bottom: 1px solid rgba(240, 128, 41, 0.3);
}
.incident-banner-degraded .incident-banner-label {
  background: rgba(240, 128, 41, 0.25);
  color: var(--orange, #f08029);
}

.incident-banner-critical {
  background: rgba(248, 81, 73, 0.16);
  border-top: 2px solid var(--red, #f85149);
  border-bottom: 2px solid var(--red, #f85149);
}
.incident-banner-critical .incident-banner-label {
  background: rgba(248, 81, 73, 0.3);
  color: var(--red, #f85149);
}
.incident-banner-critical .incident-banner-message {
  font-weight: 700;
}

.severity-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.severity-chip-info {
  background: rgba(88, 166, 255, 0.2);
  color: var(--blue, #58a6ff);
}
.severity-chip-degraded {
  background: rgba(240, 128, 41, 0.2);
  color: var(--orange, #f08029);
}
.severity-chip-critical {
  background: rgba(248, 81, 73, 0.2);
  color: var(--red, #f85149);
}

.league-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.league-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.league-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.league-card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.league-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 10px 0;
  min-height: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-gold {
  background: rgba(240, 180, 41, 0.15);
  color: var(--gold);
}
.badge-blue {
  background: rgba(88, 166, 255, 0.15);
  color: var(--blue);
}
/* #3795: tint alphas lowered so both clear the 4.5:1 AA floor the new guard
   (tests/badge-contrast-collapsed-pair-3795.test.js) enforces. Neither was in the
   ticket's original sweep -- the guard found them, which is the point of having one.
   Same minimal nudge as .badge-danger: lower the tint, leave the foreground token
   alone. purple 0.15 -> 0.12 (4.42 -> 4.62). red 0.15 -> 0.10 (4.31 -> 4.59; 0.12
   only reached 4.49, still under the floor). */
.badge-purple {
  background: rgba(163, 113, 247, 0.12);
  color: var(--purple);
}
.badge-red {
  background: rgba(248, 81, 73, 0.1);
  color: var(--red);
}
/* badge-live (#2377, broadcast-dark.md "Components"): the sole use of the
   live/red token, reserved for an in-progress game/advance indicator. Eyebrow condensed
   voice, red on a soft red-tinted chip so it never competes with amber. */
/* #3795: tint alpha lowered 0.15 -> 0.12. At 0.15 this measured 4.39:1 against
   --surface-raised, a real AA failure on a user-facing badge, and it would have
   landed the new 4.5:1 guard red on day one. Lowering the tint (rather than
   lightening the text) keeps `color: var(--live)` pointing at the theme's reserved
   emphasis token instead of desynchronising this badge from it. Now 4.58:1 worst
   case. 0.13 was too small a step (4.49:1). */
.badge-danger {
  background: rgba(255, 59, 59, 0.12);
  color: var(--live);
  font-family: var(--typography-eyebrow-font-family), 'Barlow Condensed', sans-serif;
  font-weight: var(--typography-eyebrow-font-weight);
  letter-spacing: var(--typography-eyebrow-letter-spacing);
  text-transform: uppercase;
}
.hgr-rivalry-badge {
  font-size: 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-game-row .hgr-rivalry-badge {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}
.my-game-label .hgr-rivalry-badge {
  font-size: 0.6rem;
  vertical-align: middle;
}
/* CPU game classification badges */
.cpu-badge {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.65rem;
}
.cpu-badge-cvc {
  background: rgba(251, 143, 68, 0.12);
  color: var(--orange);
  border-color: rgba(251, 143, 68, 0.3);
}
.badge-orange {
  background: rgba(251, 143, 68, 0.15);
  color: var(--orange);
}

/* GameDay Panel Persona Chips */
.gameday-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  margin-right: 4px;
  cursor: help;
  user-select: none;
  vertical-align: middle;
}
.gameday-chip-chalk {
  background-color: #3b82f6;
}
.gameday-chip-upset_merchant {
  background-color: #a855f7;
}
.gameday-chip-homer {
  background-color: #ec4899;
}
.gameday-chip-coin_flipper {
  background-color: #10b981;
}
.hgr-picks-chips {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
}
.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 0.9rem;
}
.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* ===== LEAGUE PAGE ===== */
.league-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.league-header-top {
  width: var(--page-shell-width, 94%);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.back-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}
.back-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}
/* #2438: .league-header-info is the flex row that places the advance-status
   panel inline to the right of the name+meta block, instead of the panel
   stacking full-width below it. .league-header-titles groups the unmodified
   .league-header-name + .league-header-meta on the left (both unchanged
   internally); #league-advance-status-header sits as the right-hand flex
   sibling, vertically centered against the whole two-line block. See
   docs/design/mockups/2438-weekly-advance-model-placement (rev 3). */
.league-header-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.league-header-titles {
  flex: 1 1 auto;
  min-width: 200px;
}
.league-header-name {
  font-size: 1.4rem;
  font-weight: 800;
}
.league-header-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  margin-top: 4px;
}
.league-header-info #league-advance-status-header {
  flex: 0 1 auto;
  min-width: 260px;
}
.league-header-info #league-advance-status-header .advance-status-panel {
  margin: 0;
}

/* Narrow/mobile collapse (#2438 AC3): the titles block stays on its own
   line(s) at the top, the panel drops cleanly below it, full width — same
   behavior for every alert/empty state since the collapse is driven by the
   shared .league-header-info layout, not by any per-state class. */
@media (max-width: 768px) {
  .league-header-info {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .league-header-info #league-advance-status-header {
    min-width: 0;
  }
}

/* ===== ADVANCE WINDOW BANNER ===== */
.advance-window-banner {
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-size: 0.82rem;
}
.advance-window-past {
  background: rgba(248, 81, 73, 0.12);
  border-color: rgba(248, 81, 73, 0.35);
  color: var(--red);
}

/* ===== PRIMARY NAV SECTIONS ===== */
.nav-sections-bar {
  background: var(--bg-base);
  border-bottom: 2px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-sections-inner {
  width: var(--page-shell-width, 94%);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 0;
}
.nav-section-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  padding: 14px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}
.nav-section-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.nav-section-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 700;
}

/* ===== SUB-TABS ===== */
.tabs-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabs-inner {
  width: var(--page-shell-width, 94%);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 4px;
}
/* tab-active / tab-inactive (#2377, broadcast-dark.md "Components"):
   condensed headline voice for every section/sub-tab, amber underline for
   the active tab, muted text + transparent underline for inactive ones. */
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-weight: var(--typography-headline-font-weight);
  letter-spacing: var(--typography-headline-letter-spacing);
  text-transform: uppercase;
  padding: 11px 14px;
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-content {
  width: var(--page-shell-width, 94%);
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ===== TABLES ===== */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

/* ====================================================
   Issue #4841 — Shared Wide-Grid Treatment & Column Priority
   ----------------------------------------------------
   Responsive wide-grid treatment for data tables across the app
   (recruiting board, transfer portal, roster, schedule).
   Columns define readability floors via min-width; tables fill 100%
   of the page container. On screens <= 768px (lg) and <= 640px (md),
   lower-priority columns collapse first to preserve readability.
   ==================================================== */
.wide-grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

@media (max-width: 768px) {
  th[data-priority='3'],
  td[data-priority='3'],
  .col-priority-3,
  .col-priority-low {
    display: none !important;
  }
}

@media (max-width: 640px) {
  th[data-priority='2'],
  td[data-priority='2'],
  .col-priority-2,
  .col-priority-medium {
    display: none !important;
  }
}
thead tr {
  background: var(--bg-surface);
}
th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--bg-hover);
}
.tbody-mine {
  background: rgba(240, 180, 41, 0.05);
}
tbody tr.tbody-mine:hover {
  background: rgba(240, 180, 41, 0.1);
}
.data-table {
  width: 100%;
}
.data-table-fixed {
  table-layout: fixed;
}
.data-table-fixed th,
.data-table-fixed td {
  overflow: hidden;
}
.data-table th,
.data-table td {
  text-align: center;
}
.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}
.data-table .season-cell {
  display: block;
}

.rank-cell {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  width: 32px;
}
.team-cell {
  min-width: 140px;
}
.standings-link {
  font: inherit;
  color: inherit;
  line-height: inherit;
  vertical-align: baseline;
  text-align: left;
  min-height: 0;
  background: transparent;
  border: 0;
  padding: 0;
  display: inline;
  cursor: pointer;
}
.team-school .standings-link {
  color: var(--text-primary);
}
.team-user .standings-link {
  color: var(--text-secondary);
}
.team-school {
  font-weight: 700;
  color: var(--text-primary);
}
.team-user {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.sportsbook-team-user .standings-link {
  color: var(--text-primary);
}
.sportsbook-team-school .standings-link {
  color: var(--text-secondary);
}
.sportsbook-team-user {
  font-weight: 700;
  color: var(--text-primary);
}
.sportsbook-team-school {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.record-strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.win {
  color: var(--win);
}
.loss {
  color: var(--loss);
}
.neutral {
  color: var(--text-secondary);
}
.ranking-cell {
  font-weight: 700;
}
.ranking-top5 {
  color: var(--gold);
}
.ranking-top25 {
  color: var(--blue);
}

/* prestige stars */
.stars {
  color: var(--gold);
  letter-spacing: -1px;
  font-size: 0.85rem;
}
/* Empty stars use --text-dim (~4:1 on --surface, 3.9:1 on --surface-raised);
   --border was ~1.3:1 so a low rating read as missing stars (#5973). */
.stars .empty-star {
  color: var(--text-dim);
}
.stars .star-half {
  background: linear-gradient(90deg, var(--gold) 50%, var(--text-dim) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* prestige picker widget */
.prestige-picker {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  user-select: none;
}
.ps-star {
  position: relative;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.ps-star.ps-full .ps-glyph {
  color: var(--gold);
}
.ps-star.ps-empty .ps-glyph {
  color: var(--border);
}
.ps-star.ps-half .ps-glyph {
  background: linear-gradient(90deg, var(--gold) 50%, var(--border) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ps-glyph {
  pointer-events: none;
}
.ps-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
}
.ps-left {
  left: 0;
}
.ps-right {
  right: 0;
}
.ps-zero {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-left: 6px;
}
.ps-zero:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.ps-display {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 6px;
}

/* bowl result pill */
.bowl-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.bowl-win {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}
.bowl-loss {
  background: rgba(248, 81, 73, 0.15);
  color: var(--red);
}
.bowl-none {
  color: var(--text-muted);
}
.bowl-badge {
  width: 1.25em;
  height: 1.25em;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.trophy-icon {
  width: 1.4em;
  height: 1.4em;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ===== GAMES ===== */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.game-week {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.game-week-line {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  flex-wrap: wrap;
}
.game-week-dates {
  text-transform: none;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--text-secondary);
  white-space: normal;
  line-height: 1.3;
}
.game-week-dates.is-future-ungenerated {
  font-style: italic;
  color: var(--text-dim);
  font-weight: 400;
}
.game-week-dates.is-held {
  color: var(--orange);
}
.game-week-dates.is-expired {
  color: var(--red);
}
.game-type-badge {
}
.game-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.game-team {
  text-align: center;
  min-width: 0;
}
.game-team .tl-full {
  display: flex;
  width: 100%;
}
.game-school {
  font-weight: 700;
  font-size: 0.9rem;
}
.game-user {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.game-score {
  font-size: 1.4rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}
.score-win {
  color: var(--win);
}
.score-loss {
  color: var(--loss);
}
.score-sep {
  color: var(--text-muted);
  font-size: 1rem;
}
.game-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.game-card.is-viewer-game {
  position: relative;
  border-color: var(--gold-dark);
  overflow: hidden;
}
.game-card.is-viewer-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.week-window-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
}
.week-window-badge.is-active {
  border-color: var(--gold-dark);
  color: var(--gold);
  background: rgba(240, 180, 41, 0.08);
}
.week-window-badge.is-warning {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(251, 143, 68, 0.08);
}
.week-window-badge.is-expired {
  border-color: var(--red);
  color: var(--red);
  background: rgba(248, 81, 73, 0.08);
}
.week-window-badge.is-held {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 165, 0, 0.1);
}
.week-window-badge.is-future {
  opacity: 0.75;
}
.week-window-badge.is-none {
  opacity: 0.55;
  font-style: italic;
}
.week-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.week-group-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.upcoming-uvv-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.upcoming-uvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}
.upcoming-uvv-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.upcoming-uvv-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.upcoming-uvv-row:first-of-type {
  border-top: none;
  padding-top: 0;
}
.upcoming-uvv-matchup {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}
.upcoming-uvv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 150px;
  text-align: right;
}
.upcoming-uvv-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== ACHIEVEMENTS ===== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.achievement-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.achievement-body {
  flex: 1;
}
.achievement-type {
  font-weight: 700;
  font-size: 0.9rem;
}
.achievement-team {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.achievement-season {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.achievement-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* ===== ACHIEVEMENTS OVERVIEW ===== */
.achievements-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.achievements-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.achievements-overview-card:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.achievements-overview-icon {
  font-size: 2rem;
}
.achievements-overview-body {
  flex: 1;
}
.achievements-overview-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.achievements-overview-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.achievements-overview-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

/* ===== HISTORY ===== */
.season-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.season-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
}
.season-btn.active {
  background: var(--gold);
  color: #0d1117;
  border-color: var(--gold);
  font-weight: 700;
}
.season-btn:hover:not(.active) {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ===== CONFERENCE STANDINGS PICKER (Issue #1246) ===== */
.conf-standings-picker {
  margin-bottom: 12px;
}
.conf-race-badge {
  white-space: nowrap;
}

/* ===== CONFERENCES TAB: commissioner sub-tabs + setup panel (Issue #1247) ===== */
.conf-main-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.conf-settings-select-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}
/* Shared checkbox+label row: fixes the align-items:flex-end wrap bug where a
   checkbox and a multi-line label lost baseline alignment inside a grid cell. */
.rule-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.div-toggle-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.champ-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.tiebreaker-editor {
  margin-top: 10px;
}
.tiebreaker-editor-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.tiebreaker-editor-summary {
  margin-top: 8px;
}
.tb-priority-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.tb-rule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--bg-surface);
}
.tb-rule-actions {
  display: flex;
  gap: 4px;
}
.tb-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px;
}
.tb-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

/* ===== ALL-TIME STATS ===== */
.alltime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.stat-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.stat-card-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  margin: 4px 0;
}
.stat-card-value.long-text {
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== DYNASTY SETTINGS SUB-NAV (Issue #1361) ===== */
.dynasty-settings-subnav {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-surface);
}
.dynasty-settings-group-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.dynasty-settings-group-btn + .dynasty-settings-group-btn {
  border-left: 1px solid var(--border);
}
.dynasty-settings-group-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.dynasty-settings-group-btn.active {
  background: var(--gold);
  color: #1a1a1a;
  font-weight: 700;
}

/* ===== SETTINGS TAB ===== */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.settings-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.settings-inline-form {
  display: grid;
  gap: 14px;
}
.invite-code-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.invite-code-text {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--gold);
  flex: 1;
}

/* ===== MODALS ===== */
#modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
}
#modal-root {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
  pointer-events: none;
}
#modal-root:not(.hidden) {
  pointer-events: auto;
}
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  /* Divider so a tall modal's body doesn't run into the sticky header when it scrolls under it (#5963). */
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-surface);
}
.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.shared-dialog {
  border-top: 3px solid var(--primary);
}
.shared-dialog--danger {
  border-color: var(--red-dark);
  box-shadow:
    0 0 0 1px rgba(248, 81, 73, 0.2),
    var(--shadow);
}
.shared-dialog--danger .modal-title {
  color: var(--red);
}
.shared-dialog-message {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tp-placeholder-entry {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.tp-placeholder-input {
  flex: 1 1 180px;
  min-width: 0;
}

.tp-placeholder-add-btn {
  flex: 0 0 auto;
  min-height: 42px;
  white-space: nowrap;
}

.poll-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 18px;
  align-items: start;
}

.poll-entry-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

@media (max-width: 640px) {
  .poll-entry-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-placeholder-entry {
    flex-direction: column;
  }

  .tp-placeholder-input,
  .tp-placeholder-add-btn {
    width: 100%;
    flex-basis: auto;
  }
}

/* Phantom-class A-B audit (#4089).
 * These are the visual members of the former shrink-only baseline. Selector-
 * only event hooks are documented in tests/phantom-class-guard.test.js. */
.activity-feed-empty {
  padding: 12px;
}

.activity-feed-filters {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.activity-feed-section {
  margin-top: 16px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 2%);
}

.add-leg,
.btn-toggle-legs {
  white-space: nowrap;
}

.advanced-settings-disclosure {
  margin: 14px 0;
}

.agreements-timeline {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.alert,
.banner {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
}

.alert-danger {
  border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
  border-inline-start: 4px solid var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, var(--bg-surface));
  color: var(--text-primary);
}

.alert-info,
.banner-info {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--border));
  border-inline-start: 4px solid var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, var(--bg-surface));
  color: var(--text-primary);
}

.alert-warning {
  border-color: color-mix(in srgb, var(--warning) 55%, var(--border));
  border-inline-start: 4px solid var(--warning);
  background: color-mix(in srgb, var(--warning) 12%, var(--bg-surface));
  color: var(--text-primary);
}

.bg-warning {
  border-color: color-mix(in srgb, var(--warning) 45%, transparent);
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--warning);
}

.alert-success {
  border-color: color-mix(in srgb, var(--positive) 55%, var(--border));
  border-inline-start: 4px solid var(--positive);
  background: color-mix(in srgb, var(--positive) 12%, var(--bg-surface));
  color: var(--text-primary);
}

.align-items-center {
  align-items: center;
}

.alloc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.alloc-row {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

@keyframes phantom-a-b-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: phantom-a-b-fade-in 180ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in {
    animation: none;
  }
}

.atmosphere-fields,
.autodraft-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.auth-shell {
  width: min(650px, calc(100% - 32px));
  margin: 2rem auto;
}

.auth-sso-divider {
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.awards-history-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.awards-optional-section {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.awards-redirect-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
}

.awards-required-section {
  padding: 16px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: rgb(240 180 41 / 3%);
}

.badge-amber,
.badge-primary {
  border: 1px solid rgb(240 180 41 / 45%);
  background: rgba(240, 180, 41, 0.14);
  color: var(--primary);
}

.badge-info {
  border: 1px solid rgb(88 166 255 / 40%);
  background: rgba(88, 166, 255, 0.12);
  color: #a8d1ff;
}

.badge-secondary {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text-secondary);
}

.ballot-pool-empty {
  padding: 16px;
  text-align: center;
}

.ballot-ranked-col {
  min-width: 0;
}

.box-score-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.box-score-tab-btn {
  white-space: nowrap;
}

.btn-block {
  width: 100%;
}

.btn-link {
  border-color: transparent;
  background: transparent;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-outline {
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--text);
}

.btn-warning {
  border: 1px solid var(--primary);
  background: rgb(240 180 41 / 16%);
  color: var(--primary);
}

.btn-warning:hover:not(:disabled) {
  background: rgb(240 180 41 / 24%);
}

#modal-root:focus-visible,
.modal :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== TOASTS ===== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  max-width: 360px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.toast.success {
  border-left: 3px solid var(--green);
}
.toast.error {
  border-left: 3px solid var(--red);
}
.toast.info {
  border-left: 3px solid var(--blue);
}

/* =====================================================================
   SUPPORT VIEW-AS (#3178) — persistent session banner + consent modal
   Matches the approved mockup (design/3178-support-view-as branch,
   docs/design/mockups/3178-support-view-as/index.html) verbatim. Sits
   directly under the sticky navbar (position: sticky; top: 56px, the
   navbar's own height) so it survives client-side navigation and stays
   pinned on scroll. Two variants: the TARGET being viewed (danger-tinted
   — something is actively happening to *their* account) and the ACTING
   super_admin (amber/primary-tinted — an expected, self-initiated working
   session, not an alarm).
   ===================================================================== */
.support-banner {
  position: sticky;
  top: 56px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.support-banner-icon {
  font-size: 1.1rem;
  flex: none;
}
.support-banner-text {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
}
.support-banner-text b {
  font-variant-numeric: tabular-nums;
}
.support-banner-action {
  flex: none;
}
.support-banner--target {
  background: rgba(255, 59, 59, 0.14);
  color: var(--red);
}
.support-banner--target .support-banner-action {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red-dark);
}
.support-banner--admin {
  background: rgba(255, 176, 46, 0.14);
  color: var(--primary);
}
.support-banner--admin .support-banner-action {
  background: var(--primary);
  color: var(--on-primary, #08090d);
  font-weight: 700;
}

.support-request-meta {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.support-request-meta strong {
  color: var(--text-primary);
}
.support-readonly-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.support-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* #3292: support view-as console (actor side) -- grant-row list + the
   target/league picker's suggestion dropdown. The approved mockup's own
   CSS comments claimed these "mirror" existing shells, but no such
   generically-named classes existed in this file yet -- added here to
   match the mockup 1:1 (see this feature's implementation notes). */
.grant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.grant-row:last-child {
  border-bottom: none;
}
.grant-row--new {
  background: rgba(240, 180, 41, 0.08);
  margin: 0 -12px;
  padding: 14px 12px;
  border-radius: var(--radius);
  border-bottom: none;
}
.grant-row-name {
  font-weight: 600;
}
.grant-row-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.picker-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  z-index: 20;
}
.picker-suggestion-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.picker-suggestion-item:last-child {
  border-bottom: none;
}
.picker-suggestion-item:hover {
  background: var(--bg-hover);
}
.picker-suggestion-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.picker-suggestion-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== INLINE HELPERS ===== */
.hidden {
  display: none !important;
}
.flex {
  display: flex;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.mt-4 {
  margin-top: 4px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.text-sm {
  font-size: 0.85rem;
}
.text-muted {
  color: var(--text-secondary);
}
.text-gold {
  color: var(--gold);
}
.text-center {
  text-align: center;
}
.fw-700 {
  font-weight: 700;
}
.danger-zone {
  background: rgba(248, 81, 73, 0.05);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: var(--radius);
  padding: 20px;
}
.danger-zone h3 {
  color: var(--red);
  margin-bottom: 12px;
  font-size: 1rem;
}

/* ===== MEMBER LIST ===== */
.member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #0d1117;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-info {
  flex: 1;
}
.member-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.member-school {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ===== SOCIAL LINKS ===== */
.social-icons {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  transition:
    opacity 0.15s,
    transform 0.15s;
  opacity: 0.75;
  vertical-align: middle;
}
.social-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}
.twitch-icon {
  color: #9146ff;
}
.youtube-icon {
  color: #ff0000;
}

.social-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.social-input-icon {
  position: absolute;
  left: 10px;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.social-input-wrap .social-input {
  padding-left: 34px;
}

.vod-link {
  color: var(--blue);
  font-weight: 600;
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: var(--radius-sm);
}
.vod-link:hover {
  background: rgba(88, 166, 255, 0.1);
  color: var(--blue);
}

/* ===== ELO TAB ===== */
.elo-rating {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.elo-pos {
  color: var(--green);
  font-weight: 700;
}
.elo-neg {
  color: var(--red);
  font-weight: 700;
}

.elo-predictor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.neutral-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text-secondary);
}
.neutral-toggle input {
  cursor: pointer;
  accent-color: var(--gold);
}

/* prediction result */
.prediction-result {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  animation: modal-in 0.2s ease;
}
.pred-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.pred-team-col {
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.pred-team-col.pred-favored {
  border-color: var(--gold-dark);
  background: rgba(240, 180, 41, 0.06);
}
.pred-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pred-favored .pred-badge {
  color: var(--gold);
}
.pred-school {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.pred-username {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.pred-elo-badge {
  display: inline-block;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.pred-vs-col {
  text-align: center;
}
.pred-vs-label {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pred-elo-gap {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}

/* probability bar */
.prob-bar-wrap {
  margin: 0 0 20px;
}
.prob-bar {
  height: 10px;
  background: rgba(248, 81, 73, 0.25);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.prob-bar-home {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
}

/* lines grid */
.pred-lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.pred-line-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.pred-line-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pred-line-value {
  font-size: 0.88rem;
  line-height: 1.6;
}

.pred-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

/* ===== ADVANCE STATUS PANEL ===== */
.advance-status-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 0 0 16px 0;
  transition:
    border-color 0.2s,
    background 0.2s;
}
/* #2438: replaces the old "12px 0 0 0" top-margin rule — the panel no longer
   stacks below .league-header-meta, it sits inline beside .league-header-titles
   (see .league-header-info #league-advance-status-header .advance-status-panel
   above, which zeroes the margin for the relocated layout). */
.advance-status-panel.advance-status-warning {
  border-color: var(--orange);
  background: rgba(251, 143, 68, 0.08);
}
.advance-status-panel.advance-status-expired {
  border-color: var(--red);
  background: rgba(248, 81, 73, 0.08);
}
.advance-status-panel.advance-status-held {
  border-color: var(--orange);
  background: rgba(255, 165, 0, 0.1);
}
.advance-status-panel.advance-status-none {
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.advance-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 4px;
}
.advance-status-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.advance-status-countdown {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.advance-status-warning .advance-status-countdown {
  color: var(--orange);
}
.advance-status-expired .advance-status-countdown {
  color: var(--red);
}
.advance-status-held .advance-status-countdown {
  color: var(--orange);
  font-weight: 700;
}
.advance-status-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.advance-next {
  color: var(--text-secondary);
}
.advance-unplayed-section {
  margin-top: 8px;
}
.advance-unplayed-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
/* Collapse-toggle variant of the title (rendered as a <button> when there are
   unplayed games). Resets button chrome so it reads like the plain header. */
button.advance-unplayed-title {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
button.advance-unplayed-title:hover {
  color: var(--text-primary);
}
.advance-unplayed-caret {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}
.advance-unplayed-section.collapsed .advance-unplayed-caret {
  transform: rotate(-90deg);
}
.advance-unplayed-section.collapsed .advance-unplayed-list {
  display: none;
}
.advance-unplayed-section.collapsed .advance-unplayed-title {
  margin-bottom: 0;
}
.advance-unplayed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.83rem;
  /* Cap the list so a large window (e.g. 82 unplayed games in a full league)
     scrolls inside the panel instead of running down the whole home page. */
  max-height: 220px;
  overflow-y: auto;
}
.advance-unplayed-list li {
  padding: 2px 0;
}
.advance-unplayed-none {
  font-size: 0.83rem;
  color: var(--green);
  font-weight: 600;
}

/* ===== ADVANCE DAYS PICKER ===== */
.advance-days-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.advance-day-label {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  user-select: none;
}
.advance-day-label.selected {
  border-color: var(--gold);
  background: rgba(240, 180, 41, 0.1);
  color: var(--gold);
  font-weight: 600;
}
.advance-day-label input {
  cursor: pointer;
  accent-color: var(--gold);
}
.advance-window-table {
  width: 100%;
}

.advance-validator {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.advance-validator-ok {
  background: rgba(63, 185, 80, 0.12);
  border-color: rgba(63, 185, 80, 0.35);
  color: var(--green);
}
.advance-validator-error {
  background: rgba(248, 81, 73, 0.12);
  border-color: rgba(248, 81, 73, 0.35);
  color: var(--red);
}
.advance-calendar-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--bg-surface);
}
.advance-calendar-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.advance-calendar-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.advance-cal-item {
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--bg-card);
}
.advance-cal-item.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.12);
}
.advance-cal-week {
  font-weight: 700;
  font-size: 0.82rem;
}
.advance-cal-dates {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.advance-row-active {
  background: rgba(240, 180, 41, 0.08);
}

/* Week rules toggle labels */
.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.toggle-label input[type='checkbox'] {
  cursor: pointer;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}
.text-danger {
  color: var(--red);
}

/* ===== WEEK ADVANCE (Task 42) ===== */

.wa-timeline {
  display: flex;
  gap: 2px;
  padding: 12px 0;
  overflow-x: auto;
  margin-bottom: 8px;
}
.wa-tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  max-width: 72px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.wa-tl-item:hover {
  background: var(--bg-hover);
}
.wa-tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
  margin-bottom: 4px;
  border: 2px solid var(--border);
}
.wa-tl-done .wa-tl-dot {
  background: var(--green);
  border-color: var(--green-dark);
}
.wa-tl-active .wa-tl-dot {
  background: var(--gold);
  border-color: var(--gold-dark);
  animation: pulse 1.5s infinite;
}
.wa-tl-current .wa-tl-dot {
  background: var(--blue);
  border-color: var(--blue);
}
.wa-tl-upcoming .wa-tl-dot {
  background: var(--bg-surface);
  border-color: var(--border);
}
.wa-tl-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-tl-done .wa-tl-label {
  color: var(--green);
}
.wa-tl-active .wa-tl-label {
  color: var(--gold);
  font-weight: 600;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(240, 180, 41, 0);
  }
}

.wa-stats-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.wa-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  text-align: center;
  min-width: 80px;
}
.wa-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.wa-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.wa-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wa-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: background 0.2s;
}
.wa-step-active {
  border-color: var(--gold);
  background: rgba(240, 180, 41, 0.05);
}
.wa-step-done {
  border-color: var(--green-dark);
  background: rgba(63, 185, 80, 0.05);
}
.wa-step-skip {
  opacity: 0.6;
}
.wa-step-icon {
  font-size: 1.1rem;
}
.wa-step-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.wa-row-done {
  opacity: 0.6;
}

/* Commissioner Checklist (Issue #1062): a pending prompt whose trigger
   condition has fired for the current week gets subtle accent emphasis —
   mirrors .wa-step-active's gold-accent treatment for the Week Advance
   tab's current step, using the same custom-property tokens so it reads
   correctly in the dark theme. */
.cc-prompt-row-due {
  border-left: 3px solid var(--gold);
  background: rgba(240, 180, 41, 0.05);
  padding-left: 8px;
  border-radius: var(--radius-sm);
}

.btn-xs {
  padding: 2px 8px;
  font-size: 0.7rem;
  border-radius: 4px;
}

.badge-green {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}
.badge-yellow {
  background: rgba(240, 180, 41, 0.15);
  color: var(--gold);
  border: 1px solid rgba(240, 180, 41, 0.3);
}
.badge-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.protected-slot-field-locked .protected-slot {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}

.protected-slot-lock-badge {
  margin-left: 6px;
  font-size: 0.68rem;
  vertical-align: middle;
}

.protected-slot-lock-note {
  margin-top: 4px;
}

.csv-wizard-breadcrumb {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.csv-wizard-step-current {
  font-weight: bold;
  color: var(--primary, #3b82f6);
}
.csv-wizard-step-done {
  color: var(--text-muted);
}
.csv-wizard-step-upcoming {
  color: var(--text-muted);
  opacity: 0.7;
}
.csv-wizard-step-sep {
  color: var(--border);
}

.text-success {
  color: var(--green);
}
.text-warning {
  color: var(--gold);
}
.text-error {
  color: var(--red);
}

.form-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 4px;
}
.form-error.hidden {
  display: none;
}

/* Issue #3705: token-driven, replacing the hardcoded light-theme
   #fff3cd/#856404/#ffeeba strip these warning surfaces previously inlined. */
.form-warning {
  background: color-mix(in srgb, var(--orange) 10%, transparent);
  color: var(--gold);
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.wa-award-row:last-child {
  border-bottom: none;
}

.form-control-sm,
.form-select-sm {
  padding: 4px 8px;
  font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .page-wrapper {
    padding: 20px 16px;
  }
  .league-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .tab-content {
    padding: 20px 16px;
  }
  .game-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  /* #5289: give Schedule team names the full card width on phones. */
  .game-card.schedule-game-card .game-teams {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .game-card.schedule-game-card .game-team .tl-full {
    height: auto;
    min-height: 46px;
  }
  .game-card.schedule-game-card .game-team .tl-full .tl-plate {
    width: 44px;
  }
  .game-card.schedule-game-card .game-team .tl-full .tl-div {
    width: 4px;
  }
  .game-card.schedule-game-card .game-team .tl-full .tl-body {
    flex: 1;
    padding: 6px 10px;
  }
  .game-card.schedule-game-card .game-team .tl-full .tl-name {
    font-size: 1.15rem;
  }
  .game-card.schedule-game-card .game-team .tl-full .tl-ctrl {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
  .game-card.schedule-game-card .game-score {
    min-width: 0;
  }
  .game-card.schedule-game-card .game-actions {
    flex-wrap: wrap;
  }
  .game-card.schedule-game-card .game-actions > * {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  /* #941: at ≤640px "Signed in as <user>" wraps into the icon row and
     overlaps the bell/profile icons — hide it and let the icons/Sign Out
     button stand alone. */
  .navbar {
    padding: 0 12px;
  }
  .navbar-right {
    gap: 8px;
  }
  .nav-username {
    display: none;
  }
  /* #2970: keep every section and sub-tab discoverable on narrow screens.
     The old unconditional edge mask looked the same whether or not more
     content existed. Wrapping removes that ambiguous hidden-content state,
     keeps keyboard-focused tabs visible, and leaves the desktop layout alone. */
  .nav-sections-bar,
  .tabs-bar {
    overflow-x: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .nav-sections-inner,
  .tabs-inner {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* #4404: the brand plus seven navbar actions cannot share one row on the
   narrowest phones. Keep every action visible by giving the phone navbar a
   dedicated brand row and a compact 4 + 3 action grid. The fixed height keeps
   the sticky support banner's offset deterministic. */
@media (max-width: 640px) {
  .navbar {
    height: 104px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 4px 12px;
  }
  .navbar-right {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: center;
    justify-items: center;
    gap: 2px 8px;
    width: 100%;
  }
  .support-banner {
    top: 104px;
  }
}

/* ===== HOME / WEEKLY DASHBOARD (Task 7) ===== */

.home-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Active advance banner */
.home-advance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  flex-wrap: wrap;
}

/* Dashboard alert banners (missing schedule, no games, etc.) */
.home-alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--blue);
  margin-bottom: 8px;
}

/* Top bar (title + week selector) */
.home-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.home-season-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.home-week-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-week-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.home-week-select {
  padding: 5px 10px;
  font-size: 0.82rem;
}
/* Offseason chip in the home header (#1183) */
.home-offseason-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.35);
  color: var(--gold, #f0a500);
}
/* Compact single-line collapse for empty home sections (#1183) */
.home-empty-compact {
  padding: 8px 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* My Game card */
.my-game-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}
.my-game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}
.my-game-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  margin-bottom: 10px;
}
.my-game-matchup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.my-game-team {
  flex: 1;
}
.my-game-team:last-child {
  text-align: right;
}
.my-game-score {
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.my-game-win {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}
.my-game-loss {
  background: rgba(248, 81, 73, 0.15);
  color: var(--red);
}
.my-game-upcoming {
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.my-game-score .hgr-odds {
  display: block;
  margin-top: 4px;
  text-align: center;
}

/* Main 2-column grid */
.home-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.home-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Generic section card */
.home-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.home-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
}
.marquee-top-band {
  display: flex;
  height: 4px;
  width: 100%;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  overflow: hidden;
}
.home-gotw-card {
  border-color: rgba(240, 180, 41, 0.35);
  margin-bottom: 14px;
}
.home-gotw-card .home-section-header {
  background: rgba(240, 180, 41, 0.08);
}
.home-gotw-header {
  gap: 8px;
  flex-wrap: wrap;
}
.home-gotw-body {
  padding: 14px;
}
.home-gotw-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.home-gotw-team {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-gotw-home-team {
  align-items: flex-start;
}
.home-gotw-away-team {
  align-items: flex-end;
  text-align: right;
}
.home-gotw-vs {
  font-weight: bold;
  color: var(--text-muted);
  margin: 0 4px;
  font-size: 1.05rem;
  flex-shrink: 0;
  text-align: center;
}
@media (max-width: 768px) {
  .home-gotw-matchup {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  .home-gotw-home-team,
  .home-gotw-away-team {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .home-gotw-home-team .hgr-picks-chips,
  .home-gotw-away-team .hgr-picks-chips {
    justify-content: center;
  }
  .home-gotw-vs {
    margin: 2px 0;
  }
}
.home-gotw-points-badge {
  white-space: nowrap;
}
.gotw-featured {
  border: 2px solid rgba(240, 180, 41, 0.45);
}
.records-watch-list {
  display: flex;
  flex-direction: column;
}
.records-watch-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.records-watch-row:last-child {
  border-bottom: none;
}
.records-watch-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.3;
}
.records-watch-message {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.records-watch-meta {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.home-empty {
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Home game rows */
.home-games-list {
  display: flex;
  flex-direction: column;
}
.home-game-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}
.home-game-row:last-child {
  border-bottom: none;
}
.hgr-team {
  flex: 1;
  min-width: 0;
}
.hgr-away {
  text-align: right;
}
.hgr-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.hgr-score-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hgr-win {
  color: var(--green);
}
.hgr-loss {
  color: var(--red);
}
.hgr-sep {
  color: var(--text-muted);
}
.hgr-upcoming {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
}
.hgr-score-col {
  align-items: center;
  gap: 2px;
}
.hgr-score .hgr-rivalry-badge {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.hgr-score .badge-purple {
  white-space: normal;
  text-align: center;
}
/* chip (#2377, broadcast-dark.md "Components"): border-fill pill for
   inline stats — the spec's own example is a spread readout like this
   one ("NEB −3 · 62%"). */
.hgr-odds {
  display: inline-flex;
  background: var(--border);
  color: var(--text);
  border-radius: var(--rounded-sm);
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
}

/* Top performers */
.top-performers-list {
  display: flex;
  flex-direction: column;
}
.top-perf-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}
.top-perf-item:last-child {
  border-bottom: none;
}
.top-perf-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.top-perf-matchup {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.top-perf-winner {
  font-weight: 700;
  color: var(--text-primary);
}
.top-perf-score {
  background: var(--bg-hover);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Latest articles preview (#1192) */
.home-article-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}
.home-article-item:last-child {
  border-bottom: none;
}
.home-article-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

/* Mini standings */
.mini-standings {
  display: flex;
  flex-direction: column;
}
.mini-stand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.mini-stand-row:last-child {
  border-bottom: none;
}
.mini-stand-mine {
  background: rgba(240, 180, 41, 0.07);
}
.mini-stand-rank {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.mini-stand-school {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-stand-record {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Home hub standings module */
.home-hub-standings .home-standings-conf {
  margin-bottom: 10px;
}
.home-hub-standings .home-standings-conf-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 4px 0;
  margin-bottom: 2px;
}
.home-hub-standings .home-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.home-hub-standings .home-standings-table th {
  text-align: left;
  padding: 4px 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.home-hub-standings .home-standings-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border-light);
}
.home-hub-standings .home-standings-table tr.mini-stand-mine {
  background: rgba(240, 180, 41, 0.07);
}

/* Home hub schedule module */
.home-schedule-overview {
  padding: 6px 0 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.home-schedule-progress {
  font-weight: 600;
}
.home-schedule-week-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.home-schedule-week-strip .week-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
.home-schedule-week-strip .week-dot.done {
  background: var(--green-dark);
  color: #fff;
}
.home-schedule-week-strip .week-dot.current {
  background: var(--gold);
  color: #000;
}
.home-schedule-week-strip .week-dot.upcoming {
  background: var(--bg-hover);
  color: var(--text-muted);
}

/* Recent results ticker */
.home-ticker {
  display: flex;
  flex-direction: column;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
}
.ticker-item:last-child {
  border-bottom: none;
}
.ticker-week {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-secondary);
}
.ticker-winner {
  font-weight: 700;
  color: var(--text-primary);
}
.ticker-score {
  background: var(--bg-hover);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* ===== RESPONSIVE — HOME DASHBOARD ===== */
@media (max-width: 768px) {
  .home-main-grid {
    grid-template-columns: 1fr;
  }
  .home-side-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .home-side-col {
    grid-template-columns: 1fr;
  }
  .my-game-matchup {
    gap: 8px;
  }
  .home-advance-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== CFP Projection Center (Task 32.5) ===== */
.cfp-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
}
.cfp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  min-width: 0;
  align-self: start;
}
.cfp-card h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}
.cfp-card-span-2 {
  grid-column: span 2;
}
.cfp-card-subtitle {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-bottom: 6px;
}

.cfp-bracket-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(220px, 1.15fr);
  gap: 10px;
  padding-bottom: 4px;
}

/* CFP commissioner bracket setup (#1894) */
.cfp-bracket-setup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cfp-setup-heading,
.cfp-setup-toolbar,
.cfp-setup-grid section > header,
.cfp-setup-team-row {
  display: flex;
  align-items: center;
}
.cfp-setup-heading {
  justify-content: space-between;
  gap: 16px;
  border-left: 4px solid var(--primary);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.cfp-setup-heading h2,
.cfp-setup-heading p {
  margin: 0;
}
.cfp-setup-heading p,
.cfp-setup-toolbar span,
.cfp-setup-save-status {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.cfp-setup-eyebrow {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cfp-setup-toolbar {
  gap: 10px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 12px 14px;
}
.cfp-setup-toolbar > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 220px;
}
.cfp-setup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.cfp-setup-grid section {
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.cfp-setup-grid section > header {
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 9px 12px;
  text-transform: uppercase;
}
.cfp-setup-grid section > header span {
  color: var(--text-muted);
  font-size: 0.66rem;
}
.cfp-setup-grid section > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
.cfp-setup-team-row {
  gap: 8px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 6px;
}
.cfp-setup-team-row .tl {
  min-width: 0;
}
.cfp-setup-seed-control {
  width: 58px;
  flex: none;
}
.cfp-setup-seed-control select {
  padding: 5px;
  font-weight: 800;
}
.cfp-bracket-seed-select {
  width: 100%;
}
.cfp-setup-tbd {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
}
@media (max-width: 768px) {
  .cfp-setup-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .cfp-setup-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(82vw, 1fr);
    grid-template-columns: none;
    scroll-snap-type: x mandatory;
  }
  .cfp-setup-grid section {
    scroll-snap-align: start;
  }
}

/* Read-only CFP bracket (#1897) */
.cfp-live-bracket {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.cfp-live-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  padding: 14px 18px;
}
.cfp-live-heading h2,
.cfp-live-heading p {
  margin: 0;
}
.cfp-live-heading p {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.cfp-live-state {
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.cfp-live-state.is-draft {
  border-color: var(--primary);
  color: var(--primary);
}
.cfp-live-state.is-live {
  border-color: var(--text-danger);
  color: var(--text-danger);
}
.cfp-live-state.is-done {
  border-color: var(--success);
  color: var(--success);
}
.cfp-live-rounds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.cfp-live-bracket.is-size-4 .cfp-live-rounds {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cfp-live-round {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.cfp-live-round:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -15px;
  width: 15px;
  border-top: 1px solid var(--border-light);
  content: '';
}
.cfp-live-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 9px 10px;
  text-transform: uppercase;
}
.cfp-live-round-head strong {
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.4px;
}
.cfp-live-round-head span {
  color: var(--text-muted);
  font-size: 0.58rem;
  white-space: nowrap;
}
.cfp-live-games {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-around;
  gap: 10px;
  padding: 9px;
}
.cfp-live-game {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.cfp-live-game.is-live {
  border-color: var(--text-danger);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-danger) 28%, transparent);
}
.cfp-live-game > header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: var(--bg-surface);
  padding: 3px 7px;
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}
.cfp-live-game.is-live .cfp-live-game-state {
  color: var(--text-danger);
}
.cfp-live-team {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 6px;
}
.cfp-live-team + .cfp-live-team {
  border-top: 1px solid var(--border);
}
.cfp-live-team .tl {
  min-width: 0;
  flex: 1;
}
.cfp-live-team .tl-name,
.cfp-live-team .tl-ctrl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cfp-live-seed {
  width: 16px;
  flex: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}
.cfp-live-score {
  margin-left: auto;
  flex: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 800;
}
.cfp-live-team.is-winner .cfp-live-seed,
.cfp-live-team.is-winner .cfp-live-score {
  color: var(--primary);
}
.cfp-live-team.is-tbd {
  color: var(--text-muted);
}
.cfp-live-tbd-mark {
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px dashed var(--border);
  border-radius: 6px;
}
.cfp-live-team-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.cfp-live-team-copy strong,
.cfp-live-team-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cfp-live-team-copy small {
  color: var(--text-muted);
  font-size: 0.62rem;
}
.cfp-champion-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(
      circle at 50% 0,
      color-mix(in srgb, var(--tc) 28%, transparent),
      transparent 62%
    ),
    var(--bg-card);
  padding: 18px;
  text-align: center;
}
.cfp-champion-trophy {
  font-size: 1.8rem;
}
.cfp-champion-card > strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 1.25rem;
}
.cfp-champion-card > span:not(.cfp-champion-trophy):not(.tl-badge) {
  color: var(--text-muted);
  font-size: 0.68rem;
}
.cfp-champion-card > b {
  margin: 8px 0 3px;
  color: var(--primary);
  font-size: 1.8rem;
}
.cfp-champion-card > small {
  color: var(--text-muted);
}
.cfp-live-pager,
.cfp-live-dots {
  display: none;
}

/* #5234: junctions use the existing bowl art and full TeamLabel cards. */
.cfp-live-junction {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.65rem;
  text-align: center;
}
.cfp-live-junction .bowl-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
}
.cfp-live-venue {
  display: flex;
  flex-direction: column;
  padding: 12px;
  text-align: center;
}
.cfp-live-venue span {
  color: var(--text-muted);
}
.cfp-bracket-details {
  margin-top: 20px;
}
.cfp-bracket-details fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
}

@media not all and (max-width: 768px) {
  .cfp-live-rounds {
    overflow-x: auto;
    gap: 76px;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    padding-right: 16px;
  }
  .cfp-live-bracket.is-size-4 .cfp-live-rounds {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
  .cfp-live-round::after {
    display: none;
  }
  .cfp-live-games {
    position: relative;
    flex: none;
    height: 660px;
    padding: 0 9px;
  }
  .cfp-live-game {
    position: absolute;
    top: var(--matchup-top, 0px);
    left: 9px;
    right: 9px;
    height: var(--matchup-height, 124px);
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .cfp-live-game > header {
    position: absolute;
    top: -14px;
    right: 0;
    background: transparent;
  }
  .cfp-live-game > header > span:first-child {
    display: none;
  }
  .cfp-live-game > .cfp-live-team {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 58px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
  }
  .cfp-live-game > .cfp-live-team + .cfp-live-team {
    top: auto;
    bottom: 0;
  }
  .cfp-live-round:not(:last-child) .cfp-live-game::after {
    content: '';
    position: absolute;
    top: 29px;
    bottom: 29px;
    left: 100%;
    width: 47px;
    border: 1px solid var(--border-light);
    border-left: 0;
  }
  .cfp-live-round:not(:last-child) .cfp-live-connector {
    position: absolute;
    top: 50%;
    left: calc(100% + 47px);
    width: 47px;
    border-top: 1px solid var(--border-light);
  }
  .cfp-live-junction {
    position: absolute;
    z-index: 1;
    left: calc(100% + 15px);
    top: calc(50% - 20px);
    width: 64px;
  }
  .cfp-live-junction span {
    background: var(--bg-surface);
  }
  .cfp-live-game:nth-child(2) {
    --matchup-top: 164px;
  }
  .cfp-live-game:nth-child(3) {
    --matchup-top: 328px;
  }
  .cfp-live-game:nth-child(4) {
    --matchup-top: 492px;
  }
  .is-size-12 [data-round-index='1'] .cfp-live-game {
    margin-top: 33px;
  }
  .is-size-12 [data-round-index='2'] .cfp-live-game {
    --matchup-height: 222px;
    --matchup-top: 66px;
  }
  .is-size-12 [data-round-index='2'] .cfp-live-game:nth-child(2) {
    --matchup-top: 394px;
  }
  .is-size-12 [data-round-index='3'] .cfp-live-game {
    --matchup-top: 148px;
    --matchup-height: 386px;
  }
  .is-size-4 [data-round-index='1'] .cfp-live-game {
    --matchup-top: 33px;
    --matchup-height: 222px;
  }
}

@media (max-width: 768px) {
  .cfp-live-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .cfp-live-rounds {
    display: block;
  }
  .cfp-live-round {
    display: none;
  }
  .cfp-live-round.is-active {
    display: flex;
  }
  .cfp-live-round::after {
    display: none;
  }
  .cfp-live-pager {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .cfp-live-pager-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
  }
  .cfp-live-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
  }
  .cfp-live-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-light);
  }
  .cfp-live-dots span.is-active {
    background: var(--primary);
  }
}
.cfp-matchup,
.cfp-bye-path {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}
.cfp-matchup-vs {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.74rem;
  margin: 2px 0 4px;
}

.cfp-team-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px;
  margin-bottom: 6px;
}
.cfp-team-chip:last-child {
  margin-bottom: 0;
}
.cfp-team-meta {
  min-width: 0;
  flex: 1;
}
.cfp-team-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.cfp-team-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.cfp-team-line {
  font-size: 0.78rem;
}
.cfp-team-line-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cfp-team-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* Bye badge — seeds 1-4 (text label conveys state) */
.cfp-team-badge--bye {
  background: rgba(88, 166, 255, 0.15);
  border: 1px solid rgba(88, 166, 255, 0.5);
  color: #58a6ff;
}
.cfp-lock-lock {
  border-color: rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.08);
}
.cfp-lock-bubble {
  border-color: rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.09);
}
.cfp-lock-out {
  border-color: rgba(248, 81, 73, 0.45);
  background: rgba(248, 81, 73, 0.09);
}

.cfp-bubble-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
@media (min-width: 1440px) {
  .cfp-bubble-row {
    grid-template-columns: minmax(140px, 165px) 1fr;
    gap: 12px;
  }
}
.cfp-bubble-note {
  border-left: 2px solid var(--border);
  padding-left: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.cfp-change-list {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.cfp-timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cfp-time-item {
  min-width: 180px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--bg-card);
}
.cfp-time-item.active {
  border-color: var(--gold-dark);
  box-shadow: inset 0 0 0 1px rgba(240, 180, 41, 0.35);
}

.cfp-poll-disagree td {
  background: rgba(251, 143, 68, 0.12);
}

.cfp-resume-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.cfp-resume-team-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px;
  background: var(--bg-card);
}
.cfp-resume-team-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.cfp-resume-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}
.cfp-resume-grid div {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
}
.cfp-resume-grid strong {
  font-size: 0.84rem;
}
.cfp-resume-subline {
  font-size: 0.74rem;
  margin-top: 2px;
}

/* Scenario Simulator (Task #1212) */
.scenario-active-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-light);
}
.scenario-active-banner .btn-reset {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}
.scenario-active-banner .btn-reset:hover {
  background: var(--border-light);
}
.scenario-movement-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.scenario-movement-badge--up {
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.5);
  color: #3fb950;
}
.scenario-movement-badge--down {
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid rgba(248, 81, 73, 0.5);
  color: #f85149;
}
.scenario-movement-badge--in {
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.5);
  color: #3fb950;
}
.scenario-movement-badge--out {
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid rgba(248, 81, 73, 0.5);
  color: #f85149;
}
.scenario-stale-badge {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  color: #f85149;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

@media (max-width: 1024px) {
  .cfp-grid,
  .cfp-bracket-grid {
    grid-template-columns: 1fr;
  }
  .cfp-card-span-2 {
    grid-column: span 1;
  }
  .cfp-resume-grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }
}

/* ===== GAME EDIT SYSTEM (Task 43) ===== */

/* Impact level indicator strip on game cards that have been edited */
.game-card.game-edited {
  border-left: 3px solid #f59e0b;
}

/* Edit log table rows */
.edit-log-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  transition: background 0.15s;
}
.edit-log-row:hover {
  background: var(--bg-surface);
}
.edit-log-row.reverted {
  opacity: 0.6;
}

/* Diff preview table */
.diff-table {
  width: 100%;
  font-size: 0.83rem;
  border-collapse: collapse;
}
.diff-table th {
  text-align: left;
  padding: 4px 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.diff-table td {
  padding: 6px 8px;
  border-top: 1px solid var(--border);
}
.diff-table .diff-after-positive {
  color: #22c55e;
  font-weight: 600;
}
.diff-table .diff-after-negative {
  color: #ef4444;
  font-weight: 600;
}

/* Impact scope indicator */
.impact-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}
.impact-indicator.minor {
  background: #22c55e15;
  border: 1px solid #22c55e40;
}
.impact-indicator.moderate {
  background: #f59e0b15;
  border: 1px solid #f59e0b40;
}
.impact-indicator.major {
  background: #ef444415;
  border: 1px solid #ef444440;
}

/* Recalculation lock banner */
.recalc-lock-banner {
  background: #f59e0b15;
  border: 1px solid #f59e0b40;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

#slider-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.settings-subsection {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.settings-subsection h4 {
  margin-bottom: 10px;
}
.slider-row {
  margin-bottom: 8px;
}
.slider-row label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.slider-row input[type='range'] {
  width: 100%;
}

/* ===== AD EXPECTATIONS MODAL (Issue #1324) ===== */
.expectation-quick-pick-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.expectation-quick-pick-chip:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ===== DYNASTY SETTINGS HUB ===== */
.dynasty-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.dynasty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.dynasty-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.dynasty-callout {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--bg-surface);
}
.dynasty-callout-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}
.dynasty-rule-group {
  margin-bottom: 12px;
}
.dynasty-rule-group h4 {
  margin: 0 0 8px;
}
.dynasty-rule-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  background: var(--bg-surface);
}
.dynasty-rule-enforced {
  border-left: 3px solid var(--red);
}
.dynasty-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dynasty-timeline-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--bg-surface);
}
.dynasty-timeline-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Issue #1055: Coaching History timeline — season-grouped divider + move
   icon + filter chips/school dropdown, reusing the dynasty-timeline pattern
   above. Tokens match the approved design mockup (docs/design/mockups/
   1055-coaching-records-views), translated to the app's real CSS vars. */
.season-divider {
  font-family: var(--typography-eyebrow-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--primary, var(--gold));
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.season-divider:first-child {
  margin-top: 0;
}
.move-icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 4px;
}
.chipbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rounded-pill, 999px);
  padding: 5px 12px;
  cursor: pointer;
}
.chip.active {
  color: var(--on-primary, #08090d);
  background: var(--primary, var(--gold));
  border-color: var(--primary, var(--gold));
}
.chip.chip-group-partial {
  color: var(--primary, var(--gold));
  background: transparent;
  border-color: var(--primary, var(--gold));
}
.select-control {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.8rem;
  /* Overrides .form-control's width:100% (added alongside .select-control
     for the phantom-class-guard's themed-control check) — this dropdown
     sits inline in the .chipbar filter row, not a full-width form field. */
  width: auto;
}
.callout {
  background: rgba(255, 176, 46, 0.08);
  border: 1px solid var(--primary, var(--gold));
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.callout b {
  color: var(--primary, var(--gold));
}

/* Division management */
.division-dnd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.division-dropzone {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
  min-height: 90px;
  background: var(--bg-surface);
}
.division-team-chip {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  cursor: grab;
}

.onboarding-coach-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.onboarding-list-item {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}

.onboarding-school-card {
  display: grid;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--bg-card);
}

.onboarding-school-card.is-taken {
  opacity: 0.7;
  background: var(--bg-surface);
}

.wizard-conf-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--bg-card);
}
.wizard-dropzone {
  min-height: 48px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wizard-school-pill {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  cursor: grab;
  user-select: none;
}
.wizard-conf-tabs-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.wizard-conf-tab {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 6px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
}
.wizard-conf-tab.is-active {
  border-color: var(--accent);
  background: var(--bg-card);
}
.wizard-div-badge {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
}
.wizard-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.wizard-subtab-panel.is-hidden,
.wizard-division-config.is-hidden,
.wizard-champ-location.is-hidden {
  display: none;
}
.wizard-teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}
.wizard-teams-grid-divisions {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
.wizard-column-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.wizard-team-search {
  margin-bottom: 6px;
}
.wizard-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.ratings-inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}
.ratings-inline-form label {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ratings-diff-improved {
  color: #1f9d55;
}
.ratings-diff-declined {
  color: #d64545;
}
.ratings-diff-unchanged {
  color: #8a8f98;
}

/* ===== USER AVAILABILITY MANAGER ===== */
.availability-grid-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-top: 10px;
}
.availability-grid-head,
.availability-row {
  display: grid;
  grid-template-columns: 64px repeat(24, minmax(22px, 1fr));
  gap: 4px;
  align-items: center;
}
.availability-grid-head {
  margin-bottom: 6px;
}
.availability-col-head {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}
.availability-col-head:first-child {
  grid-column-start: 2;
}
.availability-day-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.availability-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 4px;
  padding: 0;
}
.availability-cell:hover {
  border-color: var(--blue);
}
.availability-cell.active {
  background: rgba(63, 185, 80, 0.8);
  border-color: rgba(63, 185, 80, 0.9);
}
.active-preset {
  border-color: var(--gold);
  color: var(--gold-light);
}
.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.mini-cal-cell {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 4px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.mini-cal-cell.blocked {
  background: rgba(248, 81, 73, 0.22);
  border-color: rgba(248, 81, 73, 0.7);
  color: #ffd9d6;
}
.matchup-availability-card {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--bg-surface);
}
.matchup-best {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.matchup-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.matchup-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.matchup-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  aspect-ratio: 1/1;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.matchup-heatmap {
  display: grid;
  gap: 4px;
}
.matchup-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.matchup-day {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.matchup-cells {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
}
.matchup-cell {
  display: inline-block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}
.matchup-legend-swatch-mutual,
.matchup-cell-mutual {
  background: rgba(34, 197, 94, 0.85);
}
.matchup-legend-swatch-single,
.matchup-cell-single {
  background: rgba(250, 204, 21, 0.9);
}
.matchup-legend-swatch-none,
.matchup-cell-none {
  background: rgba(239, 68, 68, 0.85);
}

@media (max-width: 640px) {
  .matchup-availability-card {
    padding: 8px;
  }
  .matchup-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 4px;
  }
  .matchup-day {
    font-size: 0.68rem;
  }
  .matchup-cells {
    gap: 1px;
  }
}

/* ===== LEAGUE AVAILABILITY HUB ===== */
.league-calendar-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.league-calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.league-calendar-toolbar h3,
.league-calendar-window h4 {
  margin: 0;
}
.league-calendar-window {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-surface) 72%, transparent);
  padding: 12px;
}
.league-calendar-window-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.league-calendar-window-meta,
.league-calendar-matchups {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.league-calendar-matchups {
  max-width: 44%;
  text-align: right;
}
.league-cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.cal-day {
  appearance: none;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}
.cal-day:hover {
  border-color: var(--blue);
}
.cal-day-empty {
  background: color-mix(in srgb, var(--bg-surface) 82%, var(--bg-page));
}
.cal-day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cal-availability-pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.cal-availability-pill.strong {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
}
.cal-availability-pill.steady {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}
.cal-availability-pill.neutral {
  background: color-mix(in srgb, var(--text-muted) 14%, transparent);
  color: var(--text-muted);
}
.cal-bar {
  margin-top: 6px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 14%, transparent);
  overflow: hidden;
}
.cal-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f9d55, #5fd18b);
}
@media (max-width: 768px) {
  .league-calendar-window-header {
    flex-direction: column;
  }
  .league-calendar-matchups {
    max-width: none;
    text-align: left;
  }
}
.season-cell {
  display: inline-block;
  min-width: 48px;
  text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  background: color-mix(in srgb, #1f9d55 calc(var(--ratio) * 1%), #7f1d1d);
}

.all-american-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.all-american-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.award-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.award-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.award-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.award-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 4px 0 6px 0;
}
.award-card-view {
  display: block;
}
.award-card-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.award-edit-name,
.award-edit-scope,
.award-edit-description {
  width: 100%;
}
.all-american-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--bg-surface);
  color: var(--gold);
  border: 1px solid var(--border);
}
.all-american-name {
  font-weight: 700;
}
.all-american-ballot-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.career-progress-bar {
  height: 12px;
  background: var(--bg-surface);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.career-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
}
.career-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.career-badge {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--bg-card);
}
.career-badge.unlocked {
  border-color: #22c55e;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}
.career-badge.locked {
  opacity: 0.72;
}

/* ====================================================
   Issue #2503: All-American / All-Conference commissioner entry redesign —
   grouped slot-card grid + Team -> Player dropdown cascade (replaces the
   old free-text/typeahead honor-slot-input pattern), shared by
   renderAllAmericanTab / renderAllConferenceTab via
   public/js/features/achievements/honorSlots.js. `hs-` = "honor slot".
   ==================================================== */
.hs-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.hs-intro {
  margin: 4px 0 16px;
  max-width: 720px;
}

.hs-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.hs-progress-track {
  flex: 1;
}
.hs-progress-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.hs-progress-count .hs-progress-frac {
  color: var(--text-muted);
  font-weight: 500;
}

.hs-group {
  margin-bottom: 16px;
}
.hs-group:last-child {
  margin-bottom: 0;
}
.hs-group-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.hs-group-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.hs-group-count {
  font-size: 0.78rem;
  color: var(--text-dim, var(--text-muted));
}

.hs-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 8px;
}

.hs-slot-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  position: relative;
}
.hs-slot-card.is-filled {
  border-color: rgba(46, 168, 101, 0.4);
}

.hs-slot-slotlabel {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dim, var(--text-muted));
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Denser filled-slot chip reusing the real .all-american-avatar class,
   scoped smaller inside the compact slot card (owner: "entry fields are
   too big", #2503 revision 1). */
.hs-slot-filled-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hs-slot-filled-row .all-american-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.68rem;
}
.hs-slot-filled-info {
  flex: 1;
  min-width: 0;
}
.hs-slot-filled-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-slot-check {
  color: var(--green);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.hs-slot-empty-btn {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
}
.hs-slot-empty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hs-cascade {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Denser cascade selects — the actual "entry fields" the owner flagged as
   too big. Scoped to the cascade only; the shared .input class used for the
   filter/search boxes elsewhere on these pages is untouched. */
.hs-cascade select.input {
  padding: 5px 7px;
  font-size: 0.78rem;
}
.hs-cascade-hint {
  font-size: 0.66rem;
  color: var(--text-dim, var(--text-muted));
  margin-top: 1px;
}

.hs-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hs-backfill-note {
  font-size: 0.78rem;
  color: var(--text-dim, var(--text-muted));
}

.hs-success-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(46, 168, 101, 0.12);
  border: 1px solid rgba(46, 168, 101, 0.35);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* All-Conference two-column layout: conference quick-jump list (left) +
   active conference's honor-set switcher/slot grid (right). */
.ac-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .ac-layout {
    grid-template-columns: 1fr;
  }
}
.ac-conf-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.ac-conf-search {
  margin-bottom: 10px;
}
.ac-conf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.ac-conf-row:hover {
  background: var(--bg-hover);
}
.ac-conf-row.active {
  background: var(--bg-hover);
  border-left-color: var(--gold);
}
.ac-conf-row-name {
  font-size: 0.88rem;
  font-weight: 600;
}
.ac-conf-row-pct {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.ac-pct-full {
  background: rgba(46, 168, 101, 0.15);
  color: var(--green);
}
.ac-pct-partial {
  background: rgba(255, 176, 46, 0.15);
  color: var(--gold);
}
.ac-pct-empty {
  background: rgba(139, 148, 158, 0.15);
  color: var(--text-muted);
}

/* Common cards */
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  overflow: hidden;
}

/* card-header (#2377, broadcast-dark.md "Components"): raised surface bar
   carrying an amber eyebrow label, bled to the card's edges (negative
   margin matches .comp-card's own 12px padding) so it reads as a real
   header strip rather than inline text. */
.comp-card-header {
  background: var(--surface-raised);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: -12px -12px 8px -12px;
  padding: 9px 16px;
  border-radius: var(--rounded-md) var(--rounded-md) 0 0;
}

/* Standings */
.companion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.companion-table th,
.companion-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.companion-table th {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Recruiting Board */
.recruit-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recruit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.recruit-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-light);
}

.recruit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.recruit-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recruit-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.recruit-cost {
  font-weight: 700;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.recruit-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
  gap: 8px;
}

.recruit-card-notes {
  background: var(--bg-surface);
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px dashed var(--border);
  width: 100%;
}

.recruit-signed {
  border-left: 3px solid var(--green);
}

.recruit-committed {
  border-left: 3px solid var(--gold);
}

/* Recruiting Board — shared-recruit typeahead (Issue #1022) */
.recruit-typeahead-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}

.recruit-typeahead-item {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-primary);
}

.recruit-typeahead-item:hover {
  border-color: var(--blue);
}

.recruiting-board-scroll-area {
  padding: 0;
}

.matchup-score {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.matchup-score.winner {
  color: var(--text-primary);
  font-weight: 800;
}

/* ===== NOTIFICATION BELL (Issue #619) ===== */
.notif-bell-btn {
  position: relative;
  font-size: 1rem;
  padding: 6px 8px;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.notif-dropdown {
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 16px);
  max-height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.notif-dropdown-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.notif-mark-all-btn {
  font-size: 0.75rem;
  color: var(--blue);
  padding: 2px 6px;
}
.notif-list {
  overflow-y: auto;
  flex: 1;
}
.notif-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.notif-error {
  padding: 20px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.notif-retry-btn {
  font-size: 0.8125rem;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.12s;
  background: var(--bg-surface);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover,
.notif-item:focus {
  background: var(--bg-hover);
  outline: none;
}
.notif-item--read {
  background: var(--bg-card);
  opacity: 0.75;
}
.notif-item--read:hover,
.notif-item--read:focus {
  background: var(--bg-hover);
  opacity: 1;
}
.notif-item-body {
  flex: 1;
  min-width: 0;
}
.notif-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item-message {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.notif-item-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ===== TEAM DRAFT LOBBY ===== */
.draft-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fade-in 0.25s ease-out;
}
.draft-header-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.draft-status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
.draft-status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: pulse-border 2s infinite;
}
.draft-status-badge.paused {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.draft-status-badge.completed {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.draft-timer-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.draft-timer-clock {
  font-size: 1.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.draft-timer-clock.warning {
  color: var(--red);
  animation: pulse-opacity 1s infinite alternate;
}
.draft-main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.draft-main-layout.completed {
  grid-template-columns: 1fr;
}
.draft-feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}
.draft-feed-item:last-child {
  border-bottom: none;
}
.draft-feed-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.feed-pick-num {
  font-weight: 800;
  color: var(--gold);
  margin-right: 6px;
}
.feed-pick-user {
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 4px;
}
.feed-pick-selects {
  color: var(--text-muted);
  margin-right: 4px;
}
.feed-pick-team {
  font-weight: 700;
  color: var(--gold);
}
.feed-pick-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.highlight-recent-pick {
  background: rgba(212, 175, 55, 0.08) !important;
  border-left: 3px solid var(--gold);
  animation: pulse-recent-pick 2s infinite alternate;
}
@keyframes pulse-recent-pick {
  0% {
    background-color: rgba(212, 175, 55, 0.06);
  }
  100% {
    background-color: rgba(212, 175, 55, 0.16);
  }
}
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.01);
  font-size: 0.85rem;
  gap: 8px;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.queue-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.02);
}
.draft-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) {
  .draft-main-layout,
  .draft-setup-grid {
    grid-template-columns: 1fr;
  }
}
.draft-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.draft-summary-item,
.draft-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.draft-summary-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.draft-summary-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.draft-preview-card.compact {
  padding: 16px;
}
.draft-order-preview-list {
  max-height: 320px;
}
.draft-participant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.draft-participant-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.draft-participant-row.mine {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}
.draft-waiting-room {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.setup-pool-grid {
  max-height: 420px;
}
.draft-board {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.draft-board-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.draft-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 450px;
  overflow-y: auto;
}
.draft-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.draft-order-item.active {
  border-color: var(--gold);
  background: rgba(240, 180, 41, 0.05);
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.15);
  transform: translateX(4px);
}
.draft-order-item.completed {
  opacity: 0.65;
  background: var(--bg-card);
}
.draft-pick-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
}
.draft-pick-user {
  font-weight: 600;
  flex: 1;
}
.draft-pick-team {
  font-weight: 700;
  color: var(--gold);
}
.draft-pick-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 10px;
}
.pool-browser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.pool-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pool-search {
  flex: 1;
  min-width: 200px;
}
.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-height: 550px;
  overflow-y: auto;
  padding-right: 4px;
}
.team-draft-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.team-draft-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 180, 41, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.team-draft-card.drafted {
  opacity: 0.5;
  background: var(--bg-card);
}
.team-draft-name {
  font-size: 1rem;
  font-weight: 700;
}
.team-draft-conf {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.team-draft-stars {
  color: var(--gold);
  font-size: 0.85rem;
}
.commissioner-controls-panel {
  background: rgba(240, 180, 41, 0.03);
  border: 1px dashed rgba(240, 180, 41, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

@keyframes pulse-border {
  0% {
    border-color: rgba(16, 185, 129, 0.3);
  }
  50% {
    border-color: rgba(16, 185, 129, 0.8);
  }
  100% {
    border-color: rgba(16, 185, 129, 0.3);
  }
}
@keyframes pulse-opacity {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* ===== GENERIC UTILITY CLASSES (#1153) =====
   `.card` and `.list-item` are generic container classes referenced by
   ~26 feature modules under public/js/features/*. They match the de-facto
   dark-theme look already established by the codebase's many specific
   `*-card` selectors (e.g. .achievement-card, .comp-card, .cfp-card):
   var(--bg-card) background, 1px var(--border) border, var(--radius)
   corners. Feature modules commonly override padding/layout via inline
   style attributes on top of this base — that is expected and fine. */
/* card (#2377, broadcast-dark.md "Components"): scoreboard-panel body —
   plain surface (not the raised header tone), xl broadcast radius, roomier
   20px padding. */
.card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--rounded-xl);
  padding: 20px;
}
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
}
.list-item:last-child {
  margin-bottom: 0;
}

/* ===== SCREENSHOT IMPORT PAGE (#1020) =====
   Global "Import Screenshot" page (public/js/features/ingest/render.js).
   Page-scoped layout only — reuses .page-wrapper, .settings-section,
   .form-group, .form-control, .list-item, and .badge from elsewhere in
   this file. Mobile-first: the two-column form grid collapses to a single
   column under 480px so the page works at the 390px mobile-web width
   called out in the issue's acceptance criteria. */
.ingest-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.ingest-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
}
.ingest-preview-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
}
.ingest-preview-field {
  font-size: 0.85rem;
}
.ingest-confirm-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.ingest-history-row {
  gap: 12px;
}

/* Issue #4785: capture week input and older-capture warning banner styles */
.ingest-capture-week-group {
  margin-bottom: 0;
}
.ingest-confirm-capture-week-input {
  max-width: 140px;
}
.ingest-older-capture-banner {
  margin-bottom: 12px;
}
.ingest-differing-fields-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0 0;
}
.ingest-force-field-checkbox {
  cursor: pointer;
}

/* Issue #3117 (UX review): a preview row whose OCR-read position failed the
   canonical vocabulary needs a visual treatment as strong as the app's
   existing "this row needs attention" pattern (.conflict-row below), not
   just the badge text. Amber, not red — the row is correctable in place,
   nothing has failed yet. The badge carries the wording and the raw misread
   value, so this is never a color-only signal. */
.ingest-preview-row-flagged {
  background: rgba(251, 143, 68, 0.08);
  border-left: 3px solid var(--orange);
}
/* Issue #3327: a row with an unresolved REQUIRED-field gap (reason
   'missing') is not just "needs a look" like a flagged-but-optional field —
   it cannot be committed at all until filled in. Red, stacked on top of the
   amber flagged treatment above, mirrors the app's existing
   error/blocked-state red. */
.ingest-preview-row-blocked {
  border-left: 3px solid var(--red);
}
.ingest-preview-field-flagged {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
/* Issue #4409: an UNFLAGGED field is correctable too now, but must read as
   "editable if you want" rather than "needs your attention" -- the opposite
   intent of .ingest-preview-field-flagged above. The control looks like
   plain text until hovered/focused (transparent border/background), so a
   scan of the row still reads like the old read-only rendering. */
.ingest-preview-field-editable {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.ingest-preview-field-editable-control {
  display: inline-block;
  width: auto;
  min-width: 3ch;
  max-width: 220px;
  padding: 1px 4px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}
.ingest-preview-field-editable-control:hover,
.ingest-preview-field-editable-control:focus {
  border-color: var(--border-color, #ccc);
  background: var(--bg-color, #fff);
}
/* Issue #4409 (UX review round 1): inside the triage deck's "What we read"
   pane the same unflagged editor sits as the VALUE child of a two-child
   `.ingest-triage-field-row` (caption label left, value right -- see
   editableFieldRowChildrenHtml in fieldEditor.js). `font-size: inherit`
   above is right for the chip-row preview list, but here the pane's
   disputed rows render their editor at `.form-control-sm` size, so match
   that rather than the row's base size to keep every row's value column
   visually uniform. Width comes from the pane's own `.ingest-triage-field-row
   .form-control` rule. */
.ingest-triage-field-row > .ingest-preview-field-editable-control {
  font-size: 0.8rem;
  max-width: none;
}
.badge-warning {
  background: rgba(251, 143, 68, 0.15);
  color: var(--orange);
  border: 1px solid rgba(251, 143, 68, 0.3);
}
/* Issue #3712: the recruit_profile Top Schools identity panel — one row per
   interested school, each showing the CROPPED LOGO from the screenshot beside
   a picker, because that logo is the only school identity the screen renders.
   The logo box is fixed at the crop's own natural size (43x43, see
   lib/ocr/interestedTeams.js's LOGO_RECT_* constants) so a row's height does
   not jump when a crop fails to load. */
.ingest-top-schools-panel {
  width: 100%;
  margin-top: 10px;
}
.ingest-top-schools-heading {
  margin-bottom: 4px;
}
.ingest-top-school-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.ingest-top-school-rank {
  min-width: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ingest-top-school-logo-wrap {
  position: relative;
  display: inline-flex;
  width: 43px;
  height: 43px;
  flex: none;
}
.ingest-top-school-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
  background: var(--logo-plate);
  border-radius: 4px;
}
/* #3712 UX review (PR #3883 round 3, revised round 4): shown in place of the
   logo `<img>` on a crop failure (e.g. a JPEG-source upload) instead of the
   image silently vanishing — see topSchools.js's attachTopSchoolLogoFallbacks.
   Sized to fill the same 43x43 box so the row doesn't jump when the fallback
   appears. Round 4: a full explanatory sentence does not fit a 43x43 box at
   any legible size (round 3's attempt overflowed ~4x past it and, when two
   adjacent rows both failed, one row's spilled text overlapped and obscured
   the row below). This swatch now holds only a short glyph — `overflow:
   hidden` keeps it strictly contained even if a translation or future glyph
   runs long — with the full reason in its `title` tooltip AND in the
   block-level `.ingest-top-school-logo-note` below, which is not
   width/height-constrained and participates in normal document flow. */
.ingest-top-school-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  overflow: hidden;
  background: var(--logo-plate);
  border: 1px dashed var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}
.ingest-top-school-picker {
  max-width: 260px;
}
.ingest-top-school-meta {
  white-space: nowrap;
}
/* #3712 UX review round 4: the full crop-failure reason, in normal flow (not
   clipped, not width/height-constrained) directly below the row it applies
   to — see .ingest-top-school-logo-fallback's comment above. */
.ingest-top-school-logo-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: -2px 0 4px 33px;
}
/* Issue #4712: Scouting sub-tab panel */
.ingest-scouting-panel {
  width: 100%;
  margin-top: 10px;
}
.ingest-scouting-attributes {
  margin-bottom: 12px;
}
.ingest-scouting-abilities {
  margin-bottom: 12px;
}
.ingest-scouting-mentals {
  margin-bottom: 12px;
}
.ingest-scouting-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}
/* The "needs correction" affordance on a pending_review upload in the
   history list (the resume path for a batch whose live preview is gone). */
.ingest-history-row-needs-correction {
  border-left: 3px solid var(--orange);
}
.ingest-history-needs-correction-note {
  font-size: 0.7rem;
  color: var(--orange);
  margin-top: 2px;
}

/* Issue #4267 — the manual-entry escape's inline form (Upload history's
   "Enter manually" affordance on a `failed` upload). Mirrors
   .ingest-confirm-fields' grid pattern above rather than inventing a new
   layout primitive. */
.ingest-manual-entry-form {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ingest-manual-entry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.ingest-manual-entry-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}
.ingest-manual-entry-input {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
}
.ingest-manual-entry-toggle-btn,
.ingest-manual-entry-cancel-btn,
.ingest-manual-entry-submit-btn {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .ingest-form-grid,
  .ingest-confirm-fields,
  .ingest-manual-entry-fields {
    grid-template-columns: 1fr;
  }
  .ingest-history-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Issue #3231 (async ingest live-status board) — rooted in the
   design/3231-async-ocr-ingest mockup: reuses .list-item/.badge/
   .ingest-preview-list's scrollable pattern rather than inventing new
   layout primitives, token-driven (--gold/--green/--red) like the rest of
   this section. */
.ingest-async-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text);
}
.ingest-async-banner.is-success {
  background: rgba(63, 185, 80, 0.1);
  border-color: rgba(63, 185, 80, 0.35);
}
.ingest-async-banner .icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ingest-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ingest-progress-bar {
  flex: 1;
  min-width: 160px;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.ingest-progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.ingest-progress-label {
  font-size: 0.8rem;
  color: var(--text-secondary, var(--text));
  white-space: nowrap;
}
.ingest-live-status-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
}
.ingest-live-status-row {
  padding: 10px 12px;
}
.ingest-live-status-row--processing {
  border-left: 3px solid var(--gold);
  background: rgba(255, 176, 46, 0.06);
}
.ingest-live-status-row--failed {
  border-left: 3px solid var(--red);
  background: rgba(248, 81, 73, 0.06);
}
.ingest-live-status-row--ready {
  border-left: 3px solid var(--green);
}
.ingest-live-status-row--queued {
  opacity: 0.7;
}
.ingest-live-status-name {
  font-weight: 600;
  font-size: 0.88rem;
}
.ingest-live-status-sub {
  font-size: 0.75rem;
  color: var(--text-secondary, var(--text));
  margin-top: 2px;
}
.ingest-live-status-spin {
  display: inline-block;
  animation: ingest-live-status-spin 1s linear infinite;
}
@keyframes ingest-live-status-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ingest-failed-callout {
  background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
/* Matches .ingest-history-row's existing 480px stacking rule above — the
   live-status row's badge clips off the right edge at the 353px width
   called out in #3230/#3231 without it. */
@media (max-width: 480px) {
  .ingest-live-status-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ingest-live-status-row .badge {
    margin-top: 4px;
  }
}

/* ==== Sportsbook Power Board (#1204) ==== */
.powerboard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 20px;
}
.powerboard-toggle {
  display: inline-flex;
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  overflow: hidden;
}
.powerboard-toggle-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.powerboard-toggle-btn + .powerboard-toggle-btn {
  border-left: 1px solid var(--border, #333);
}
.powerboard-toggle-btn.active {
  opacity: 1;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}
.powerboard-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.powerboard-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #888);
  font-weight: 600;
}
.elo-sparkline {
  display: block;
}
.form-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  margin-right: 2px;
}
.form-dot-w {
  background: rgba(52, 199, 89, 0.2);
  color: #34c759;
}
.form-dot-l {
  background: rgba(255, 69, 58, 0.2);
  color: #ff453a;
}
.form-dot-t {
  background: rgba(255, 214, 10, 0.2);
  color: #ffd60a;
}

/* Issue #1231: Highlights portal video embeds — click-to-load, no autoplay
   iframes on tab open. */
.highlight-video-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.highlight-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.highlight-link-card {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
}

/* ==== Sportsbook Trajectory (#1207) ==== */
.trajectory-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.trajectory-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border, #333);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  font-size: 0.8rem;
  cursor: pointer;
  color: inherit;
  max-width: 180px;
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease;
}
.trajectory-legend-label {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trajectory-legend-item:focus-visible {
  outline: 2px solid var(--trajectory-swatch, #4f8ef7);
  outline-offset: 2px;
}
.trajectory-legend-item.trajectory-legend-hover,
.trajectory-legend-item:hover {
  border-color: var(--trajectory-swatch, #4f8ef7);
}
.trajectory-legend-item.trajectory-legend-dim {
  opacity: 0.4;
}
.trajectory-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--trajectory-swatch, #4f8ef7);
  flex-shrink: 0;
}
.trajectory-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.trajectory-chart-svg {
  display: block;
  min-width: 100%;
}
.trajectory-gridline {
  stroke: var(--border, #333);
  stroke-width: 1;
  opacity: 0.35;
}
.trajectory-axis-label {
  fill: currentColor;
  opacity: 0.6;
  font-size: 10px;
}
.trajectory-annotation-label {
  fill: currentColor;
  font-size: 10px;
  font-weight: 600;
}
.trajectory-series {
  cursor: pointer;
}
.trajectory-series:focus-visible {
  outline: none;
}
.trajectory-line {
  transition:
    opacity 0.15s ease,
    stroke-width 0.15s ease;
}
.trajectory-line-hit {
  stroke: transparent;
  stroke-width: 14px;
  pointer-events: stroke;
}
.trajectory-line-dim .trajectory-line {
  opacity: 0.22;
}
.trajectory-line-hover .trajectory-line {
  opacity: 1;
  stroke-width: 3.5px;
}
.trajectory-dot-peak {
  fill: #34c759;
  stroke: var(--bg, #111);
  stroke-width: 1.5;
}
.trajectory-dot-low {
  fill: #ff453a;
  stroke: var(--bg, #111);
  stroke-width: 1.5;
}
.trajectory-season-divider {
  stroke: var(--border, #333);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  opacity: 0.35;
}
.trajectory-season-boundary-label {
  fill: currentColor;
  opacity: 0.6;
  font-size: 9px;
  font-weight: 600;
}

/* ===== TEAM PROFILE SPECIFIC ACCENT THEMING (Issue #740) ===== */
.tab-content[style*='--team-accent'] h4 {
  color: var(--team-accent);
}

/* Team Profile Achievements chip (#5031). The original #740 rule filled the chip
   with an 80%-toward-white pastel and colored the text with the dark-page-tuned
   --team-accent, failing WCAG AA for effectively every team. Now: faint team-secondary
   tint fill + team-secondary border + the standard light text token. The vars are
   scoped to #team-profile-root, so the rule is too. Contrast is asserted per team in
   tests/team-profile-achievement-chip-contrast-5031.test.js. */
#team-profile-root .team-profile-achievement-chip {
  background-color: var(--team-secondary-tint, transparent);
  border: 1px solid var(--team-secondary, var(--border));
  color: var(--text-primary);
}

.tab-content[style*='--team-accent'] .form-control:focus {
  border-color: var(--team-accent);
  box-shadow: 0 0 0 2px var(--team-accent-light);
}

.tab-content[style*='--team-accent'] a:hover {
  color: var(--team-accent-hover);
}

.tab-content[style*='--team-accent'] .btn-primary {
  background-color: var(--team-accent);
  border-color: var(--team-accent-border);
}

.tab-content[style*='--team-accent'] .btn-primary:hover {
  background-color: var(--team-accent-hover);
  border-color: var(--team-accent-hover);
}

/* ---- Team Profile header band + accent system (Issue #1625) ----
   Replaces the old diagonal `linear-gradient(... --team-accent-2-light ...)`
   wash on .settings-section with a team-site-style layout: a solid
   primary-color header band (real logo/monogram + wordmark + inline key
   stats), a neutral content area, and secondary-color accents only (stat
   values, card left-borders, zebra tint). --team-primary/--team-secondary/
   --team-header-text/--team-secondary-tint are scoped to #team-profile-root
   (see profiles/render.js) and pre-computed server-side through
   lib/colors.js's getContrastRatio/ensureContrast/pickContrastingText
   helpers, so header text always reads legibly against the primary band
   regardless of team palette (light or dark). */
#team-profile-root .team-profile-band {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--team-primary, var(--bg-card));
  color: var(--team-header-text, var(--text-primary));
}

#team-profile-root .team-profile-logo-plate {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

#team-profile-root .team-profile-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#team-profile-root .team-profile-monogram {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}

#team-profile-root .team-profile-band-text {
  min-width: 0;
}

#team-profile-root .team-profile-band-name {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--team-header-text, var(--text-primary));
}

#team-profile-root .team-profile-band-abbr {
  font-size: 0.85rem;
  font-weight: 500;
}

#team-profile-root .team-profile-band-stats {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

#team-profile-root .team-profile-band-links {
  margin: 6px 0 14px;
}

/* Neutral content area — secondary color is an accent only, never a
   background wash. */
#team-profile-root .settings-section {
  border-left: 3px solid var(--team-secondary, var(--border));
}

#team-profile-root h4 {
  border-bottom: 2px solid var(--team-primary, var(--border));
  padding-bottom: 6px;
}

#team-profile-root .stat-card {
  border-left: 3px solid var(--team-secondary, var(--border));
}

#team-profile-root .stat-card-value {
  color: var(--team-secondary, var(--gold));
}

#team-profile-root .team-profile-next-game-link,
#team-profile-root .team-profile-tile-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: inherit;
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
  display: inline;
  cursor: pointer;
  font-family: inherit;
}

/* Issue #2440: Roster Size / Coach / Conference Record header tiles are
   click-through — hover + focus cues signal the affordance, matching the
   pre-existing Next Game (Schedule) tile hotlink above. */
#team-profile-root .team-profile-next-game-link:hover,
#team-profile-root .team-profile-tile-link:hover {
  text-decoration: underline;
}

#team-profile-root .team-profile-next-game-link:focus-visible,
#team-profile-root .team-profile-tile-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  text-decoration: underline;
}

.tab-content[style*='--team-accent'] #team-profile-root .team-profile-next-game-link:hover,
.tab-content[style*='--team-accent'] #team-profile-root .team-profile-tile-link:hover {
  color: var(--team-accent-hover);
}

#team-profile-root table thead th {
  background: var(--team-primary, var(--bg-surface));
  color: var(--team-header-text, var(--text-primary));
  border-bottom: 2px solid var(--team-primary, var(--border));
}

#team-profile-root table tbody tr:nth-child(even) td {
  background: var(--team-secondary-tint, transparent);
}

/* Week Advance CPU Games Details section */
.wa-cpu-games-details {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--bg-surface);
}
.wa-cpu-games-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== PICK'EM (#1179) =====
   Themes the Community Predictions matchup rows and pick controls, which
   previously rendered as plain native white radio buttons. `.pickem-option`
   turns each radio + label into a themed toggle chip; the `.selected` class
   (applied on initial render for saved picks, and live via a change
   listener) highlights the chosen team. `.pickem-week-select`
   and `.pickem-deadline-input` constrain the width of the Week `<select>`
   and the deadline `datetime-local` input, which previously had no size
   cap and stretched to the full card width. `.pickem-admin-card` visually
   separates the commissioner-only deadline config from the member picks
   flow (Picks -> Submit -> Leaderboard). */
.pickem-picks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pickem-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.85rem;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.pickem-option:hover {
  border-color: var(--gold);
}
.pickem-option.selected {
  border-color: var(--gold);
  background: rgba(240, 180, 41, 0.12);
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.35);
}
.pickem-option-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.pickem-option input[type='radio'] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}
.pickem-option input[type='radio']:disabled {
  cursor: not-allowed;
}
.pickem-week-select {
  max-width: 140px;
}
.pickem-deadline-input {
  max-width: 240px;
}
.pickem-admin-card {
  border-left: 3px solid var(--gold);
}

.schedule-grid-cell {
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.schedule-grid-cell-empty {
  background: rgba(217, 119, 6, 0.1);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.35);
}

.schedule-grid-cell-conflict {
  background: rgba(220, 38, 38, 0.1);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.45);
}

.schedule-grid-cell-status {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.schedule-grid-cell-conflict .schedule-grid-cell-status {
  color: #dc2626;
}

/* ===== Newsroom Feed-First Articles Styles ===== */
.newsroom-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.newsroom-card {
  position: relative;
  border-left: 4px solid var(--border);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.newsroom-card:hover {
  transform: translateY(-2px);
}
.newsroom-card.type-preview {
  border-left-color: var(--blue);
}
.newsroom-card.type-recap {
  border-left-color: var(--success);
}
.newsroom-card.type-article {
  border-left-color: var(--gold);
}
.newsroom-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.newsroom-badge.badge-preview {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.newsroom-badge.badge-recap {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.newsroom-badge.badge-article {
  background: rgba(234, 179, 8, 0.15);
  color: var(--gold);
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.newsroom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.newsroom-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
}
.read-more-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.read-more-btn:hover {
  color: #ffd60a;
}
.recap-mesh-jump-btn {
  margin-left: 0;
  margin-top: 4px;
}
.newsroom-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.newsroom-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== Newsroom recap mesh (#3432) =====
   Weekly recap/precap rendered as a mesh of data modules instead of prose.
   Tokens reused from the app's existing Broadcast-Dark theme (public/css/
   theme.generated.css, imported at the top of this file) via the same
   --gold/--success/--danger/--border/--surface aliases the rest of this
   file already uses -- not new hex literals. */
.recap-mesh {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recap-mesh-precap {
  gap: 12px;
}
.recap-mesh-header {
  display: flex;
  gap: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.recap-mesh-header-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.recap-mesh-header-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-primary);
}
.recap-mesh-header-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.recap-mesh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.recap-mesh-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recap-mesh-section-full {
  grid-column: 1 / -1;
}
.recap-mesh-section-precap {
  border-top: 2px solid var(--gold);
  padding-top: 14px;
}
.recap-mesh-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.recap-mesh-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.recap-mesh-section-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.recap-mesh-positive {
  color: var(--success);
  font-weight: 700;
}
.recap-mesh-negative {
  color: var(--danger);
  font-weight: 700;
}

/* -- tiles (recap + precap) -- */
.recap-mesh-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.recap-mesh-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recap-mesh-tile-chips {
  display: flex;
  gap: 6px;
  min-height: 18px;
}
.recap-mesh-chip {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}
.recap-mesh-chip-upset {
  background: rgba(255, 59, 59, 0.14);
  color: var(--danger);
}
.recap-mesh-chip-nail-biter {
  background: rgba(88, 166, 255, 0.14);
  color: var(--blue);
}
.recap-mesh-tile-sides {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recap-mesh-side {
  display: flex;
  align-items: center;
  gap: 8px;
}
.recap-mesh-side-mark {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: transparent;
}
.recap-mesh-side-win .recap-mesh-side-mark {
  background: var(--success);
}
.recap-mesh-side-favorite .recap-mesh-side-mark {
  background: var(--gold);
}
.recap-mesh-side-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.recap-mesh-side-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recap-mesh-side-name > span:not(.recap-mesh-home-tag) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.recap-mesh-side-handle,
.recap-mesh-side-elo {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recap-mesh-elo-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}
.recap-mesh-side-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  flex: none;
}
.recap-mesh-home-tag {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  margin-left: 4px;
}
.recap-mesh-home-tag-compact {
  padding: 0 3px;
}

/* -- strip rows (games 4-10) -- */
.recap-mesh-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 6px 12px;
}
.recap-mesh-strip-row {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
}
.recap-mesh-strip-side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.recap-mesh-strip-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.recap-mesh-strip-team > span:not(.recap-mesh-home-tag) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.recap-mesh-strip-team-loser {
  color: var(--text-muted);
}
.recap-mesh-strip-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: var(--text-primary);
}
.recap-mesh-strip-score-loser {
  color: var(--text-muted);
}
.recap-mesh-strip-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.recap-mesh-strip-tail {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}
.recap-mesh-strip-chip {
  font-size: 0.6rem;
  padding: 1px 6px;
}

/* -- Elo power board / sportsbook / Heisman watch -- */
.recap-mesh-elo-row,
.recap-mesh-book-row,
.recap-mesh-heisman-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.recap-mesh-elo-row:first-of-type,
.recap-mesh-book-row:first-of-type,
.recap-mesh-heisman-row:first-of-type {
  border-top: none;
}
.recap-mesh-elo-rank,
.recap-mesh-book-rank,
.recap-mesh-heisman-rank {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: var(--gold);
  width: 18px;
  flex: none;
}
.recap-mesh-elo-who,
.recap-mesh-heisman-who {
  flex: 1;
  min-width: 0;
}
.recap-mesh-elo-handle,
.recap-mesh-book-handle,
.recap-mesh-heisman-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recap-mesh-book-handle {
  flex: 1;
  min-width: 0;
}
.recap-mesh-elo-school {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.recap-mesh-elo-school > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.recap-mesh-heisman-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recap-mesh-elo-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
}
.recap-mesh-elo-current {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: var(--text-primary);
}
.recap-mesh-book-correct,
.recap-mesh-book-points {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex: none;
}
.recap-mesh-heisman-move {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(201, 209, 217, 0.1);
  color: var(--text-muted);
  flex: none;
}
.recap-mesh-heisman-move-new {
  background: rgba(46, 168, 101, 0.16);
  color: var(--positive-soft, var(--success));
}

/* -- CFP bracket -- */
.recap-mesh-cfp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.recap-mesh-cfp-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.recap-mesh-cfp-col-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.recap-mesh-cfp-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.recap-mesh-cfp-team {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-left: 3px solid var(--border);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.85rem;
}
.recap-mesh-cfp-bye {
  border-left-color: var(--gold);
  margin-bottom: 6px;
}
.recap-mesh-cfp-bubble {
  border-left-color: transparent;
}
.recap-mesh-cfp-seed {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: var(--text-muted);
  width: 18px;
  flex: none;
}
.recap-mesh-cfp-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recap-mesh-cfp-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.recap-mesh-cfp-record {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: none;
}

/* -- precap panel picks -- */
.recap-mesh-gameday-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
}
.recap-mesh-panel-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.recap-mesh-panel-member {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
  font-weight: 600;
}
.recap-mesh-panel-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}
.recap-mesh-panel-record {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.recap-mesh-panel-note {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.newsroom-share-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 520px;
}

.newsroom-share-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.recap-share-graphic-btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .newsroom-share-actions {
    justify-content: flex-start;
    width: 100%;
  }
}
.recap-mesh-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  gap: 8px;
}
.recap-mesh-panel-consensus {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.recap-mesh-picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.recap-mesh-pick {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}
.recap-mesh-pick-majority {
  background: rgba(255, 176, 46, 0.09);
  border-color: rgba(255, 176, 46, 0.45);
  color: var(--gold);
}

@media (max-width: 640px) {
  .recap-mesh-grid,
  .recap-mesh-tiles-grid,
  .recap-mesh-cfp-grid,
  .recap-mesh-strip-grid {
    grid-template-columns: 1fr;
  }
  .recap-mesh-strip-row {
    grid-template-columns: 1fr auto;
    row-gap: 4px;
  }
  .recap-mesh-strip-sep {
    display: none;
  }
}

/* ===== HOUSE RULES RESTRIBUTE ===== */
.rulebook-category {
  margin-bottom: 24px;
}
.rulebook-category-header {
  margin-top: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.rulebook-rules-list {
  display: grid;
  gap: 16px;
}
.rulebook-rule {
  margin-bottom: 8px;
}
.rulebook-rule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rulebook-rule-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rulebook-rule-desc {
  margin: 6px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== SEASON SETUP CARD ===== */
.home-season-setup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.setup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.setup-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.setup-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.setup-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.setup-progress-container {
  background: #2d3748;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}
.setup-progress-bar {
  background: var(--gold);
  height: 100%;
  transition: width 0.3s ease;
}
.setup-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.setup-step-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.setup-step-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.setup-step-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.setup-step-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.setup-step-label.completed {
  color: var(--text-muted);
}
.setup-step-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.setup-step-timing-options {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}
.setup-step-timing-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  margin: 0;
  cursor: pointer;
}
.setup-step-timing-options input[type='radio'] {
  margin: 0;
  width: auto;
  accent-color: var(--gold);
}
.setup-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.setup-footer-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Feedback form screenshot attachment (Issue #1826) */
.feedback-attachment-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feedback-attachment-warning {
  font-size: 0.78rem;
  color: var(--orange);
  background: rgba(251, 143, 68, 0.1);
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  line-height: 1.35;
}
.feedback-attachment-error {
  font-size: 0.78rem;
  color: var(--red);
}
.feedback-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.feedback-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.feedback-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feedback-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.feedback-preview-remove:hover {
  background: var(--red, #ef4444);
}

/* "My reports" full-page view (Issue #3180) — the 💬 Feedback nav button
   opens a full page (navbar + .page-wrapper + .page-header + .settings-section,
   the same shell as the Profile/Game Logger/Import Screenshot pages) instead
   of a modal, per the owner's rev-2 mockup feedback. #3298 wired this into
   the real app.js/router.js `state.page` dispatch (mounted directly into
   #app like every other routed page), retiring the standalone
   `.feedback-page-root` overlay rules that used to live here. */

/* Won't fix — mirrors .cpu-badge's muted-gray treatment (a closed-without-
   action state should read as calm, not alarming, i.e. neither the win-green
   of Fixed nor a --red dismissal). */
.badge-muted {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* "My reports" unread indicator, reusing the notification bell's own dot
   convention (.notif-unread-dot) at chip scale. */
.chip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-left: 4px;
  vertical-align: middle;
}

.fb-report-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.fb-report-main {
  min-width: 0;
  flex: 1;
}
.fb-report-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
}
.fb-report-desc {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin: 2px 0;
}
.fb-report-status-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.fb-report-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 150px;
}
.fb-report-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.fb-unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 5px;
  vertical-align: middle;
}

/* Roster Depth Chart sub-tab (Issue #1337) */
.depth-chart-group {
  padding: 14px;
}
.depth-chart-position {
  min-width: 220px;
  flex: 1;
}
.depth-chart-slot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  transition: border-color 0.15s ease;
}
.depth-chart-slot-row:hover {
  border-color: var(--gold-dark);
}
.depth-chart-slot-player {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.depth-chart-slot-meta {
  min-width: 0;
  font-size: 0.8rem;
}
.depth-chart-slot-controls {
  display: flex;
  gap: 2px;
  max-width: 100%;
  margin-left: auto;
}
.depth-chart-move-up:disabled,
.depth-chart-move-down:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Multi-Year Depth Chart Projections & Formation View (#4096) */
.depth-chart-formation-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
}
.depth-chart-formation-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  min-width: 1200px;
}
.depth-chart-card {
  border-radius: var(--rounded-md, 8px);
  overflow: hidden;
  padding: 0;
}
.depth-chart-card-header {
  width: 100%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--border, #23262f);
  background: var(--surface-deep, #08090d);
}
.depth-chart-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.8px;
  color: var(--primary, #ffb02e);
}
.depth-chart-slot-starter {
  border-left: 3px solid var(--primary, #ffb02e);
  background: rgba(255, 176, 46, 0.045);
}
.depth-chart-slot-ovr {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text, #e6edf3);
}
.depth-chart-slot-delta {
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.depth-chart-dev-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.depth-chart-needs-signee {
  border: 1px dashed rgba(230, 237, 243, 0.2);
  color: var(--text-dim, #6e7681);
}
.depth-chart-room-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 8, 0.72);
}
.depth-chart-room-modal-dialog {
  width: 620px;
  max-width: 90vw;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #23262f);
  border-radius: var(--rounded-xl, 14px);
  background: var(--surface-raised, #14161f);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.depth-chart-list-table {
  border: 1px solid var(--border, #23262f);
  border-radius: var(--rounded-md, 8px);
  overflow: hidden;
  background: var(--surface, #0f1118);
}
.depth-chart-list-header {
  display: grid;
  grid-template-columns: 92px 40px minmax(0, 1fr) 88px 118px 74px 62px 52px;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  background: var(--surface-deep, #08090d);
  border-bottom: 1px solid var(--border, #23262f);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-dim, #6e7681);
}
.depth-chart-list-row {
  display: grid;
  grid-template-columns: 92px 40px minmax(0, 1fr) 88px 118px 74px 62px 52px;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(35, 38, 47, 0.4);
}
.depth-chart-drag-handle {
  cursor: grab;
  font-size: 13px;
  color: var(--text-muted, #8b949e);
  user-select: none;
}
.depth-chart-drag-handle:active {
  cursor: grabbing;
}
.depth-chart-scope-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.depth-chart-confidence-pip {
  width: 16px;
  height: 5px;
  border-radius: 3px;
}
.depth-chart-projected-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 15px;
  border-radius: var(--rounded-md, 8px);
}
.depth-chart-rollup {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 11px 15px;
  border-radius: var(--rounded-md, 8px);
}
.depth-chart-hub-link {
  color: var(--link, #58a6ff);
  text-decoration: none;
}
.depth-chart-view-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 7px;
}
.depth-chart-los {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.depth-chart-card-body {
  display: flex;
  flex-direction: column;
}
.depth-chart-more-btn {
  width: 100%;
  text-align: left;
}

/* Companion Mobile Canvas Flow (#4096 - 4096 Depth Chart - Mobile.dc.html)
   Open decision: bottom sheet expands via grab handle (.depth-chart-grab-handle);
   List view remains accessible via toggle. */
.depth-chart-mobile-flow {
  display: none;
}

@media (max-width: 768px) {
  .depth-chart-formation-wrap {
    display: none;
  }
  .depth-chart-mobile-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .depth-chart-chip-map {
    margin: 10px 0 0;
    padding: 12px 9px;
    border-radius: 10px;
    background: var(--surface, #0f1118);
    border: 1px solid var(--border, #23262f);
  }
  .depth-chart-chip-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 4px;
    align-items: start;
  }
  .depth-chart-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 5px 1px 4px;
    cursor: pointer;
    border-radius: 7px;
    border: 1px solid var(--border, #23262f);
    background: var(--surface-deep, #08090d);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.15s ease;
  }
  .depth-chart-chip:hover {
    border-color: rgba(255, 176, 46, 0.4);
  }
  .depth-chart-chip.active {
    border-color: var(--primary, #ffb02e);
    background: rgba(255, 176, 46, 0.12);
  }
  .depth-chart-chip-abbr {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 9.5px;
    letter-spacing: 0.2px;
    color: var(--primary, #ffb02e);
    line-height: 1;
  }
  .depth-chart-chip-ovr {
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text, #e6edf3);
    line-height: 1.1;
  }
  .depth-chart-bottom-sheet {
    margin-top: 8px;
    border: 1px solid var(--border, #23262f);
    border-radius: 14px 14px 0 0;
    background: var(--surface-raised, #14161f);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 280px;
    transition: max-height 0.25s ease;
    overflow: hidden;
  }
  .depth-chart-bottom-sheet.expanded {
    max-height: 65vh;
  }
  .depth-chart-grab-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 0 5px;
    flex: none;
  }
  .depth-chart-grab-pill {
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: rgba(230, 237, 243, 0.18);
  }
  .depth-chart-bottom-sheet-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
  }
}

/* Player Profile page (Issue #1338) */
.player-profile-link {
  transition: color 0.15s ease;
}
.player-profile-link:hover {
  color: var(--gold-dark) !important;
}

/* ============================================================
   TeamLabel — reusable Broadcast team component (#2504)
   One component, four forms (full / one-line / badge / badge·ribbon),
   shared DNA. See public/js/ui/teamLabel.js and the design reference
   docs/design/components/team-label/. Fully token-driven; --logo-plate
   is a soft neutral plate safe for PNG/transparent + white-bg logos.
   Team color is carried per-instance via the inline `--tc` custom
   property; amber (--primary) stays reserved for controller/your-team.
   ============================================================ */
:root {
  --logo-plate: #e7e9ec;
}

/* Shared plate/monogram treatment (full plate, badges, ribbon logo). */
.tl-plate img,
.tl-badge img,
.tl-ribbon-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Full — plate · team-color divider · name / controller (stacked) ── */
.tl-full {
  display: inline-flex;
  align-items: stretch;
  height: 58px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  overflow: hidden;
  max-width: 100%;
}
.tl-full .tl-plate {
  width: 54px;
  flex: none;
  background: var(--logo-plate);
  display: grid;
  place-items: center;
  padding: 8px;
}
.tl-full .tl-plate.is-mono {
  background: linear-gradient(140deg, var(--tc), color-mix(in srgb, var(--tc) 46%, #000));
  color: #fff;
  font-family:
    var(--typography-display-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    'Arial Narrow', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  display: block;
  align-content: center;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding: 0 2px;
}
.tl-full .tl-div {
  width: 5px;
  flex: none;
  background: var(--tc);
}
/* Mono fix: hairline divider, avoid team-color-on-team-color. */
.tl-full .tl-plate.is-mono + .tl-div {
  width: 1px;
  background: var(--surface-deep);
}
.tl-full .tl-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 14px;
  gap: 1px;
  min-width: 0;
}
.tl-full .tl-name {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 0.9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-full .tl-ctrl {
  font-family: var(--typography-eyebrow-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--primary);
}
.tl-full .tl-ctrl.is-cpu {
  color: var(--text-dim);
}
.tl-full.tl-full--sm {
  height: 46px;
}
.tl-full.tl-full--sm .tl-plate {
  width: 44px;
}
.tl-full.tl-full--sm .tl-name {
  font-size: 1.15rem;
}
.tl-full.tl-full--sm .tl-div {
  width: 4px;
}
/* Your-team + winner accents (row contexts). */
.tl-full.is-you {
  box-shadow: inset 0 0 0 1px var(--primary);
}
.tl-full.is-win .tl-name {
  color: var(--primary);
}

/* ── One-line — logo · NAME · @handle (single line) ── */
.tl-oneline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}
.tl-oneline .tl-badge {
  width: 26px;
  height: 26px;
}
.tl-oneline .tl-badge.is-mono {
  font-size: 0.5rem;
}
.tl-oneline .tl-name {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.tl-oneline .tl-sep {
  color: var(--text-dim);
  font-size: 0.7rem;
  margin: 0 -2px;
  flex: none;
}
.tl-oneline .tl-ctrl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.tl-oneline .tl-ctrl.is-cpu {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
}
.tl-oneline.is-you .tl-name {
  color: var(--text-strong);
}
.tl-oneline.is-you .tl-ctrl {
  color: var(--primary);
  font-weight: 700;
}
.tl-oneline.tl-oneline--lg .tl-badge {
  width: 32px;
  height: 32px;
}
.tl-oneline.tl-oneline--lg .tl-name {
  font-size: 1.3rem;
}
.tl-oneline.tl-oneline--lg .tl-ctrl {
  font-size: 0.85rem;
}
.tl-oneline.tl-oneline--sm .tl-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.tl-oneline.tl-oneline--sm .tl-name {
  font-size: 0.92rem;
}
.tl-oneline.tl-oneline--sm .tl-ctrl {
  font-size: 0.7rem;
}

/* ── Badge — logo + team-color bar (LG 54 / MD 38 / SM 28 / XS 20) ── */
.tl-badge {
  position: relative;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  background: var(--logo-plate);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
  display: grid;
  place-items: center;
}
.tl-badge img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 72%;
  max-height: 72%;
}
/* Team-color bar along the bottom edge (logo variant only). */
.tl-badge::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--tc);
}
/* Monogram fill replaces the plate + bar with a team-color gradient. */
.tl-badge.is-mono {
  color: #fff;
  font-family:
    var(--typography-display-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    'Arial Narrow', sans-serif;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
  background: linear-gradient(140deg, var(--tc), color-mix(in srgb, var(--tc) 46%, #000));
  border: 1px solid color-mix(in srgb, var(--tc) 60%, #000);
  display: block;
  align-content: center;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  padding: 0 1px;
}
.tl-plate.is-mono > span,
.tl-badge.is-mono > span,
.tl-ribbon-logo.is-mono > span,
.tl-mono-text {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.tl-badge.is-mono::after {
  display: none;
}
.tl-badge.is-you {
  box-shadow:
    0 0 0 2px var(--primary),
    0 1px 3px rgba(0, 0, 0, 0.42);
}
/* Sizes. */
.tl-badge--lg {
  width: 54px;
  height: 54px;
}
.tl-badge--lg.is-mono {
  font-size: 0.9rem;
}
.tl-badge--md {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}
.tl-badge--md.is-mono {
  font-size: 0.62rem;
}
.tl-badge--sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.tl-badge--sm.is-mono {
  font-size: 0.46rem;
  letter-spacing: 0px;
}
.tl-badge--sm::after {
  height: 3px;
}
.tl-badge--xs {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.tl-badge--xs.is-mono {
  font-size: 0.34rem;
  letter-spacing: 0px;
}
.tl-badge--xs::after {
  height: 2px;
}

/* Users Poll voter × rank grid (#3845). The scroll boundary belongs to the
   grid, never the page; rows remain full-height with no nested vertical pane. */
.cp-ballots {
  min-width: 0;
}
.cp-ballots-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cp-view-toggle {
  display: inline-flex;
  gap: 4px;
  flex: none;
}
.cp-view-toggle .is-active {
  border-color: var(--primary);
  color: var(--text-strong);
  box-shadow: inset 0 -2px 0 var(--primary);
}
.cp-grid-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  background: var(--surface-deep);
}
.cp-grid {
  min-width: max-content;
}
.cp-grid-header,
.cp-grid-row {
  display: grid;
  grid-template-columns: 112px repeat(var(--cp-rank-count), minmax(38px, 1fr)) minmax(86px, auto);
  align-items: stretch;
}
.cp-grid-header {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.cp-grid-row + .cp-grid-row {
  border-top: 1px solid var(--border-subtle, var(--border));
}
.cp-grid-voter,
.cp-grid-rank,
.cp-grid-omitted,
.cp-grid-cell {
  min-width: 0;
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-grid-voter {
  justify-content: flex-start;
  padding-inline: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-grid-cell {
  position: relative;
  flex-direction: column;
  gap: 3px;
  border-inline-start: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}
.cp-grid-cell--empty {
  color: var(--text-dim);
}
.cp-grid-cell.is-self-rank {
  box-shadow: inset 0 0 0 2px var(--primary);
}
.cp-grid-cell.is-outlier-high {
  background: color-mix(in srgb, var(--success, #2fbf71) 13%, transparent);
}
.cp-grid-cell.is-outlier-low {
  background: color-mix(in srgb, var(--danger, #e05a5a) 13%, transparent);
}
.cp-grid-self-marker {
  position: absolute;
  inset: 2px auto auto 3px;
  color: var(--primary);
  font-size: 0.7rem;
  line-height: 1;
  z-index: 1;
}
.cp-grid-delta {
  min-width: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 4px;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.cp-grid-delta--high {
  color: var(--success, #2fbf71);
}
.cp-grid-delta--low {
  color: var(--danger, #e05a5a);
}
.cp-grid-abbr {
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
}
.cp-grid-omitted {
  gap: 3px;
  flex-wrap: wrap;
  border-inline-start: 1px solid var(--border);
}
.cp-grid-omitted-team {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 4px;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
}
.cp-ballot-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-ballot-cards[hidden] {
  display: none;
}
.cp-ballot-card,
.cp-ballots-empty {
  padding: 12px;
}
.cp-ballot-card-ranks {
  margin-top: 6px;
}
.cp-graphics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-bottom: 20px;
  align-items: start;
}
.cp-graphic-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  background: var(--surface-deep);
  min-width: 0;
}
.cp-graphic-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.cp-graphic-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rounded-md);
}
.cp-graphic-image [hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .cp-grid-header,
  .cp-grid-row {
    grid-template-columns: 124px repeat(var(--cp-rank-count), minmax(60px, 1fr)) minmax(96px, auto);
  }
}

@media (max-width: 480px) {
  .cp-ballots-heading {
    align-items: flex-end;
  }
  .cp-grid-header,
  .cp-grid-row {
    grid-template-columns: 94px repeat(var(--cp-rank-count), 32px) 72px;
  }
  .cp-grid-cell {
    padding-inline: 2px;
  }
  .cp-grid-delta {
    position: absolute;
    inset: auto 1px 1px auto;
    min-width: 0;
    border: 0;
    padding: 0;
    font-size: 0.56rem;
  }
  .cp-grid-abbr,
  .cp-grid-omitted {
    display: none;
  }
  .cp-grid-header,
  .cp-grid-row {
    grid-template-columns: 94px repeat(var(--cp-rank-count), 32px);
  }
  .cp-graphic-card .btn {
    width: 100%;
  }
}

/* ── Badge · ribbon — logo + @handle ribbon ── */
.tl-ribbon {
  display: inline-flex;
  flex-direction: column;
  width: 58px;
  flex: none;
  border-radius: 9px;
  overflow: hidden;
  background: var(--logo-plate);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
}
.tl-ribbon .tl-ribbon-logo {
  height: 58px;
  display: grid;
  place-items: center;
  padding: 8px;
}
.tl-ribbon .tl-ribbon-logo img {
  max-width: 78%;
  max-height: 78%;
}
.tl-ribbon .tl-ribbon-logo.is-mono {
  background: linear-gradient(140deg, var(--tc), color-mix(in srgb, var(--tc) 46%, #000));
  color: #fff;
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
}
.tl-ribbon .tl-ribbon-band {
  height: 19px;
  background: var(--surface-deep);
  border-top: 2px solid var(--tc);
  display: grid;
  place-items: center;
  padding: 0 3px;
}
.tl-ribbon .tl-ribbon-band span {
  font-family: var(--typography-eyebrow-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: 0.3px;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tl-ribbon .tl-ribbon-band.is-cpu span {
  color: var(--text-dim);
  letter-spacing: 1px;
}
.tl-ribbon.is-you {
  box-shadow:
    0 0 0 2px var(--primary),
    0 1px 3px rgba(0, 0, 0, 0.42);
}
.tl-ribbon.is-you .tl-ribbon-band {
  background: var(--primary);
  border-top-color: rgba(255, 255, 255, 0.13);
}
.tl-ribbon.is-you .tl-ribbon-band span {
  color: var(--on-primary);
  font-weight: 800;
}

/* ============================================================
   UserAvatar — small identity element (#2535)
   Circle carrying initials, tinted by the team color (--tc); amber ring
   for the "you" state. Sizes lg/md/sm. See public/js/ui/userAvatar.js.
   ============================================================ */
.ua {
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1;
  background: linear-gradient(140deg, var(--tc), color-mix(in srgb, var(--tc) 44%, #000));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.ua--lg {
  width: 46px;
  height: 46px;
  font-size: 1rem;
}
.ua--md {
  width: 36px;
  height: 36px;
  font-size: 0.82rem;
}
.ua--sm {
  width: 26px;
  height: 26px;
  font-size: 0.6rem;
}
.ua.is-you {
  box-shadow:
    0 0 0 2px var(--primary),
    0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   TeamLabel — user-first orientation (#2535)
   The person leads, the team (and coach, when present) is context. See
   public/js/ui/teamLabel.js `userFull` / `userOneLine` / `userBadge` and
   the `orientation: 'user'` option on `render()`. The reused `.tl-badge`
   (team badge) sits inline here as compact context — trim its own box
   shadow/radius so it doesn't compete visually with the lead avatar.
   ============================================================ */
.tl-uf-team .tl-badge,
.tl-uo-team .tl-badge {
  box-shadow: none;
  border-radius: 4px;
}

/* ── User-first · Full ── */
.tl-ufull {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  max-width: 100%;
}
.tl-uf-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
  gap: 3px;
}
.tl-uf-name {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  color: var(--text-strong);
  line-height: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-uf-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.tl-uf-coach {
  color: var(--text-secondary);
  font-weight: 600;
}
.tl-uf-lvl {
  color: var(--primary);
  font-weight: 700;
}
.tl-uf-teamname {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-ufull.is-you .tl-uf-name {
  color: var(--text-strong);
}

/* ── User-first · One-line ── */
.tl-uoneline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}
.tl-uo-name {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.tl-uo-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}
.tl-uo-coach {
  color: var(--text-secondary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.tl-uo-teamname {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.tl-uoneline.is-you .tl-uo-name {
  color: var(--primary);
}

/* ── User-first · Badge — avatar with a team badge tucked in the corner ── */
.tl-ubadge {
  position: relative;
  flex: none;
  display: inline-flex;
}
.tl-ubadge-corner {
  position: absolute;
  bottom: -3px;
  right: -3px;
  border: 2px solid var(--page, var(--surface-deep));
  border-radius: 6px;
  line-height: 0;
}
.tl-ubadge-corner .tl-badge {
  box-shadow: none;
}

/* ── Team-first sub-line coach growth (#2563) — coach · @handle · Lv N ── */
.tl-full-coach,
.tl-oneline-coach {
  color: var(--text-secondary);
  font-weight: 700;
}
.tl-full-lvl,
.tl-oneline-lvl {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   CoachAvatar — the coach identity element (#2563)
   Circle carrying initials (same tinted treatment as UserAvatar) plus a
   level badge — the visual delta from a plain user avatar. Sizes lg/md/sm;
   amber ring for the "you" state. System rule: square badge = team, circle
   = user, circle + level badge = coach. See public/js/ui/teamLabel.js
   `coachAvatar`.
   ============================================================ */
.cav {
  position: relative;
  flex: none;
  display: inline-flex;
}
.cav-circ {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1;
  background: linear-gradient(140deg, var(--tc), color-mix(in srgb, var(--tc) 44%, #000));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.cav--lg {
  width: 46px;
  height: 46px;
}
.cav--lg .cav-circ {
  font-size: 1rem;
}
.cav--md {
  width: 36px;
  height: 36px;
}
.cav--md .cav-circ {
  font-size: 0.82rem;
}
.cav--sm {
  width: 26px;
  height: 26px;
}
.cav--sm .cav-circ {
  font-size: 0.6rem;
}
.cav.is-you .cav-circ {
  box-shadow:
    0 0 0 2px var(--primary),
    0 1px 3px rgba(0, 0, 0, 0.45);
}
.cav-lvl {
  position: absolute;
  bottom: -4px;
  right: -5px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  line-height: 1;
  border-radius: 999px;
  padding: 2px 5px;
  border: 2px solid var(--page, var(--surface-deep));
  min-width: 20px;
  text-align: center;
}
.cav--sm .cav-lvl {
  font-size: 0.5rem;
  padding: 1px 4px;
  bottom: -3px;
  right: -4px;
  min-width: 16px;
}

/* ============================================================
   TeamLabel — coach-first orientation (#2563)
   The coach persona leads (name + level), @user + team + record as
   context. See public/js/ui/teamLabel.js `coachFull` / `coachOneLine` and
   the `orientation: 'coach'` option on `render()`. Reuses the shared
   `.tl-badge` team badge, trimmed the same way the user-first orientation
   trims it.
   ============================================================ */
.tl-cf-team .tl-badge,
.tl-co-team .tl-badge {
  box-shadow: none;
  border-radius: 4px;
}

/* ── Coach-first · Full ── */
.tl-cfull {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  max-width: 100%;
}
.tl-cf-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.18;
  gap: 4px;
}
.tl-cf-lead {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.tl-cf-name {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.3px;
  color: var(--text-strong);
  line-height: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-cf-role {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.tl-cf-prestige {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 0.6rem;
  color: var(--primary);
  background: rgba(255, 176, 46, 0.12);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
}
.tl-cf-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-wrap: wrap;
}
.tl-cf-user {
  color: var(--text-secondary);
  font-weight: 600;
}
.tl-cf-record {
  color: var(--text-secondary);
}
.tl-cf-lvl {
  color: var(--primary);
  font-weight: 700;
}
.tl-cf-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tl-cf-teamname {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-cfull.is-you .tl-cf-name {
  color: var(--text-strong);
}

/* ── Coach-first · One-line ── */
.tl-coneline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}
.tl-co-name {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.3px;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.tl-co-user {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.tl-co-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}
.tl-co-teamname {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}
.tl-coneline.is-you .tl-co-name {
  color: var(--primary);
}

/* =====================================================================
   NEW — recruiting entry-surface components (#2380 design). */

.recruiting-view-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--rounded-pill);
  padding: 3px;
  gap: 2px;
}
.recruiting-view-toggle button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--rounded-pill);
  transition: all 0.15s;
}
.recruiting-view-toggle button.active {
  background: var(--primary);
  color: var(--on-primary);
}

/* Grid entry (spreadsheet) */
.entry-grid-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.entry-grid-section {
  margin-bottom: 26px;
}
.entry-grid-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.entry-grid-section-title {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
table.entry-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.entry-grid thead tr {
  background: var(--bg-surface);
}
.entry-grid th {
  padding: 8px 8px;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border-light);
}
.entry-grid th:last-child {
  border-right: none;
}
.entry-grid td {
  padding: 3px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.entry-grid td:last-child {
  border-right: none;
}
.entry-grid tbody tr:last-child td {
  border-bottom: none;
}
.entry-grid input,
.entry-grid select {
  width: 100%;
  min-width: 88px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary);
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
}
.entry-grid input:focus,
.entry-grid select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-surface);
  box-shadow: 0 0 0 2px rgba(255, 176, 46, 0.12);
}
.entry-grid input[readonly] {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}
.entry-grid .col-remove {
  width: 32px;
  text-align: center;
}
.row-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 4px;
}
.row-remove-btn:hover {
  color: var(--red);
  background: rgba(255, 59, 59, 0.1);
}
.grid-empty-row td {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-right: none;
}

.conflict-row td {
  background: rgba(255, 59, 59, 0.06);
}
.conflict-flag {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.7rem;
}
.conflict-row .conflict-flag {
  display: flex;
}
.conflict-flag .icon {
  color: var(--red);
}
.conflict-flag .msg {
  color: var(--red);
}
.conflict-flag button {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.conflict-flag button:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.conflict-flag button.primary {
  border-color: var(--gold);
  color: var(--gold);
}

.autofill-note {
  font-size: 0.68rem;
  color: var(--positive-soft);
  margin-top: 4px;
  display: none;
}
.autofill-row .autofill-note {
  display: block;
}

.grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.grid-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Weekly Awards log — new content (#2311, revision 3) ===== */
.wal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.wal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wal-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.wal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wal-controls select#wal-scope-select {
  padding: 4px 8px;
}
.wal-deep-link-note {
  margin: 10px 0 16px;
  padding: 9px 14px;
  background: rgba(255, 176, 46, 0.08);
  border: 1px solid rgba(255, 176, 46, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wal-deep-link-note button {
  flex-shrink: 0;
}

/* --- Week pager (replaces the old stacked accordion) --- */
.wal-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
}
.wal-pager-btn {
  min-width: 150px;
  text-align: center;
  white-space: nowrap;
}
.wal-pager-center {
  text-align: center;
  flex: 1;
}
.wal-pager-week {
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}
.wal-pager-date {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.78rem;
}
.wal-pager-progress {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Scope banner (season table view, specific conference/national) --- */
.wal-scope-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

/* --- The grid itself: 2 award columns, one row per scope (paginated view) or one row per week (season-table view). Dense on purpose. --- */
.wal-grid-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  background: var(--surface);
}
table.wal-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.wal-grid th {
  background: var(--surface-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: var(--typography-headline-font-weight);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.wal-grid-scope-col {
  width: 150px;
}
.wal-grid td {
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  padding: 0;
  vertical-align: top;
}
.wal-grid td:last-child {
  border-right: none;
}
.wal-grid tbody tr:last-child td {
  border-bottom: none;
}
.wal-grid tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.012);
}

.wal-scope-cell {
  padding: 7px 10px;
  white-space: nowrap;
}
.wal-scope-cell-inner {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.78rem;
}
.wal-scope-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  flex-shrink: 0;
}
.wal-scope-dot-national {
  background: var(--gold);
}
.wal-scope-dot-conf {
  background: var(--blue);
}
.wal-week-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wal-week-num {
  font-weight: 700;
  font-size: 0.78rem;
}
.wal-week-date-sm {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.wal-award-cell {
  min-width: 360px;
}
.wal-cell {
  padding: 6px 8px;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

/* Recorded (read) state: compact one-and-a-bit lines. */
.wal-cell-recorded {
  background: rgba(255, 255, 255, 0.015);
}
.wal-cell-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.wal-cell-who {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.wal-cell-player {
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wal-cell-tag {
  color: var(--text-muted);
  font-size: 0.68rem;
  white-space: nowrap;
}
.wal-cell-edit {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.75;
}
.wal-cell-edit:hover {
  opacity: 1;
  color: var(--text-primary);
  background: var(--bg-hover);
}
.wal-cell-stat {
  color: var(--text-secondary);
  font-size: 0.68rem;
}

/* Skipped state: dim, one line, quick undo. */
.wal-cell-skipped {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-style: italic;
}

/* Unrecorded / default-entry state */
.wal-cell-entry {
  background: rgba(255, 176, 46, 0.045);
  border: 1px dashed rgba(255, 176, 46, 0.3);
  border-radius: var(--radius-sm);
}
.wal-cell-entry-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wal-mini-select,
.wal-mini-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
  font-size: 0.68rem;
  padding: 3px 5px;
  height: 24px;
}
.wal-mini-select:focus,
.wal-mini-input:focus {
  outline: none;
  border-color: var(--gold);
}
.wal-mini-select.wal-team {
  width: 88px;
  flex-shrink: 0;
}
.wal-mini-select.wal-pos {
  width: 44px;
  flex-shrink: 0;
}
.wal-player-wrap {
  position: relative;
  flex: 1 1 68px;
  min-width: 0;
}
.wal-mini-input.wal-player {
  width: 100%;
}
.wal-mini-input.wal-stat {
  flex: 1 1 78px;
  min-width: 0;
}
.wal-mini-icon-btn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 0;
}
.wal-mini-icon-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.wal-mini-icon-btn.wal-mini-save {
  border-color: rgba(46, 168, 101, 0.5);
  color: var(--positive);
}
.wal-mini-icon-btn.wal-mini-save:hover {
  background: rgba(46, 168, 101, 0.12);
}

/* Player autocomplete dropdown */
.wal-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 2px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wal-suggest-item {
  padding: 6px 8px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}
.wal-suggest-item:hover {
  background: rgba(255, 176, 46, 0.12);
}
.wal-suggest-item-meta {
  color: var(--text-muted);
  font-size: 0.64rem;
  flex-shrink: 0;
}
.wal-suggest-empty {
  padding: 6px 8px;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-style: italic;
}
.wal-suggest-create {
  color: var(--primary);
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.wal-empty-state {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--rounded-lg);
}
.wal-empty-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.wal-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.wal-empty-body {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 48ch;
  margin: 0 auto 18px;
}

.wal-flash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--positive);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== PROTECTED RIVALS SETTINGS PANEL ===== */
.new-feature {
  border-left: 4px solid var(--primary);
}
.editor-card {
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  margin-bottom: 16px;
}
.editor-card.hidden {
  display: none !important;
}
.editor-card h4 {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.week-col {
  width: 150px;
}
.annual-col {
  width: 90px;
  text-align: center;
}
.remove-col {
  width: 70px;
  text-align: right;
}
.empty-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.actions-col {
  width: 130px;
  text-align: right;
  white-space: nowrap;
}
.actions-col .btn + .btn {
  margin-left: 4px;
}
tr.editing-row {
  background: rgba(255, 176, 46, 0.08);
}

/* --- Recruiting Board overwrites/additions (Issue #2303) --- */

/* Board cap meter */
.board-cap-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.board-cap-figure {
  font-family: var(--typography-display-font-family), sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1;
}
.board-cap-figure small {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}
.board-cap-bar-track {
  flex: 1;
  min-width: 180px;
  height: 10px;
  border-radius: var(--rounded-pill);
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--border);
}
.board-cap-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: var(--rounded-pill);
}
.board-cap-bar-fill.full {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

/* Recruit tables — records-table overrides for board */
.recruit-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  max-height: max(360px, calc(100vh - 280px));
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.board-recruit-table {
  width: 100%;
}
.board-recruit-table thead tr {
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.board-recruit-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-surface);
  box-shadow: inset 0 -1px 0 var(--border);
  padding: 8px 10px;
  white-space: nowrap;
}
.board-sortable-hdr {
  cursor: pointer;
  user-select: none;
}
.board-recruit-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  vertical-align: top;
  white-space: nowrap;
}
.board-recruit-table tbody tr:last-child td {
  border-bottom: none;
}
.board-recruit-table tbody tr:hover {
  background: var(--bg-hover);
}
.board-recruit-table th.recruit-name-cell {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 3;
  background: var(--bg-surface);
  box-shadow:
    inset -1px 0 0 var(--border),
    inset 0 -1px 0 var(--border);
  min-width: 160px;
  max-width: 240px;
}
.board-recruit-table td.recruit-name-cell {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  text-transform: none;
  min-width: 160px;
  max-width: 240px;
  white-space: normal;
}
.board-recruit-table.has-sticky-col td.recruit-name-cell,
.board-recruit-table:has(th.recruit-name-cell) td.recruit-name-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-base);
  box-shadow: inset -1px 0 0 var(--border);
}
.board-recruit-table tbody tr:hover td.recruit-name-cell {
  background: var(--bg-hover);
}
.board-recruit-table tbody tr.row-editing td.recruit-name-cell {
  background: linear-gradient(rgba(255, 176, 46, 0.07), rgba(255, 176, 46, 0.07)) var(--bg-base);
  box-shadow:
    inset 3px 0 0 var(--gold),
    inset -1px 0 0 var(--border);
}
.board-recruit-table tbody tr.row-editing:hover td.recruit-name-cell {
  background: linear-gradient(rgba(255, 176, 46, 0.07), rgba(255, 176, 46, 0.07)) var(--bg-hover);
  box-shadow:
    inset 3px 0 0 var(--gold),
    inset -1px 0 0 var(--border);
}
.recruit-pool-chip {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}
.recruit-name-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.pool-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.pool-row-actions .btn-xs {
  line-height: 1.3;
}
.pool-status-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
}
.pool-row-tracked {
  background: rgba(59, 130, 246, 0.04);
}
.pool-row-on-board {
  background: rgba(16, 185, 129, 0.04);
}
.nil-private-cell {
  color: var(--text-secondary);
}
.nil-private-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nil-lock {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Row inline editing */
.rowedit-edit {
  display: none;
}
.row-editing .rowedit-view {
  display: none;
}
.row-editing .rowedit-edit {
  display: inline-flex;
  align-items: center;
}
.row-actions-edit {
  display: none;
}
.row-editing .row-actions-view {
  display: none;
}
.row-editing .row-actions-edit {
  display: inline-flex;
}
.row-editing {
  background: rgba(255, 176, 46, 0.07);
  box-shadow: inset 3px 0 0 var(--gold);
}
.row-editing td {
  white-space: normal;
}
.rowedit-edit .form-control,
.row-actions-edit .form-control {
  padding: 4px 6px;
  font-size: 0.78rem;
}
.row-editing .recruit-name-edit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 190px;
}
.input-edit-player-name,
.select-edit-recruit-type,
.select-edit-pool,
.select-edit-class-year,
.select-edit-redshirt,
.input-edit-previous-school {
  max-width: 100%;
}
.row-editing .recruit-edit-overflow {
  width: 100%;
  font-family: var(--typography-body-font-family), sans-serif;
  font-weight: 400;
  letter-spacing: normal;
}
.recruit-edit-overflow summary {
  color: var(--gold);
  cursor: pointer;
  font-size: 0.75rem;
}
.recruit-edit-overflow-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.recruit-edit-overflow-panel label {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  gap: 3px;
}
.recruit-edit-overflow-panel [hidden] {
  display: none;
}
.row-editing .select-edit-stars,
.row-editing .select-edit-position,
.row-editing .select-edit-state {
  min-width: 62px;
}
.row-editing .input-edit-national-rank,
.row-editing .input-edit-state-rank,
.row-editing .input-edit-position-rank,
.row-editing .input-edit-weight {
  width: 72px;
}
.row-editing .input-edit-height,
.row-editing .input-edit-state {
  width: 62px;
}
.row-editing .input-edit-hometown,
.row-editing .select-edit-archetype,
.row-editing .select-edit-dealbreaker {
  min-width: 120px;
}
@media (max-width: 480px) {
  .recruit-edit-overflow-panel {
    grid-template-columns: minmax(150px, 1fr);
  }
}
.row-edit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px;
  border-radius: 4px;
}
.row-edit-btn:hover {
  color: var(--gold);
  background: rgba(255, 176, 46, 0.1);
}

.scholarship-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--positive);
  cursor: pointer;
  vertical-align: middle;
}
.scholarship-checkbox:disabled {
  cursor: default;
  opacity: 0.65;
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin: 22px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label .count {
  color: var(--text-primary);
  background: var(--surface-raised);
  border-radius: var(--rounded-pill);
  padding: 1px 8px;
  font-size: 0.68rem;
}

/* Collapsible Tracked section */
.section-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-toggle-btn:hover {
  color: var(--text-primary);
}
.section-toggle-btn .chevron {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.15s;
}
.section-toggle-btn.expanded .chevron {
  transform: rotate(90deg);
}
.section-collapsed-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.section-collapsed-hint:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Generic blocked-at-cap banner */
.board-full-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--red);
  background: rgba(255, 59, 59, 0.08);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Phantom Class Guard hooks */
.select-edit-dev-trait {
}
.select-edit-scouting {
}
.input-edit-scholarship {
}
.input-edit-visit-week {
}
.input-edit-exp-nil {
}
.input-edit-offered-nil {
}
.input-edit-hours-allocated {
}
.input-edit-hours-cap {
}
.leg-season-input {
}
.leg-host-select {
}

/* --- Flexible Scheduling Agreements (Issue #2434) --- */
.segmented {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  overflow: hidden;
}
.seg-btn {
  flex: 1;
  background: var(--surface-raised, #232326);
  color: var(--text-muted, #8e8e93);
  border: none;
  padding: 10px 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid var(--border);
}
.seg-btn:last-child {
  border-right: none;
}
.seg-btn .seg-sub {
  display: block;
  font-size: 0.64rem;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 1px;
  text-transform: none;
  letter-spacing: 0;
}
.seg-btn.active {
  background: rgba(255, 176, 46, 0.14);
  color: var(--primary, #f0b429);
}

.pattern-block {
  margin-top: 12px;
}
.pattern-block.hidden {
  display: none;
}

.legs {
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  padding: 12px;
  background: var(--surface-raised, #232326);
}
.leg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.leg-index {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--primary, #f0b429);
  width: 48px;
  flex: none;
}
.leg-row .form-control {
  flex: 0 0 90px;
}
.leg-row .form-select {
  flex: 1;
}
.gap-indicator {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2px 0 8px 52px;
  letter-spacing: 0.3px;
  font-weight: 500;
}
.agreement-legs-panel {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg-hover, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  font-size: 0.82rem;
}

/* ====================================================
   Budget planner — support staff section (Issue #1356)
   Class names + tokens per the approved design mockup
   (docs/design/mockups/1356-budget-staff-planner).
   ==================================================== */
.planner-section-title {
  font-family: var(--typography-eyebrow-font-family, inherit), sans-serif;
  font-weight: var(--typography-eyebrow-font-weight, 700);
  letter-spacing: var(--typography-eyebrow-letter-spacing, 1px);
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 22px 0 10px;
}
.planner-section-title:first-child {
  margin-top: 0;
}
.category-row-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: -2px 0 2px;
}

/* Slot-cap meter: prestige-derived cap, filled proportionally, red at cap. */
.staff-cap-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-surface, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.staff-cap-meter {
  flex: 1 1 220px;
  min-width: 160px;
  height: 8px;
  border-radius: var(--rounded-pill, 999px);
  background: var(--border);
  overflow: hidden;
}
.staff-cap-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--rounded-pill, 999px);
}
.staff-cap-fill.at-cap {
  background: var(--red);
}
.staff-cap-label {
  font-size: 0.82rem;
  color: var(--text-secondary, var(--text-muted));
  white-space: nowrap;
}
.staff-cap-label strong {
  color: var(--text-primary, var(--text));
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.staff-card {
  background: var(--bg-surface, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.staff-card.is-hired {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 176, 46, 0.25) inset;
}
.staff-card.is-locked {
  opacity: 0.55;
}
.staff-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.staff-card-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.staff-card-benefit,
.staff-card-locked-note {
  font-size: 0.78rem;
  color: var(--text-secondary, var(--text-muted));
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.staff-card-locked-note {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.tier-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary, var(--text-muted));
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
}
.tier-btn .tier-cost {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  opacity: 0.85;
  margin-top: 2px;
}
.tier-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-primary, #08090d);
}
.tier-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--rounded-pill, 999px);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tier-chip.bronze {
  background: rgba(205, 127, 50, 0.18);
  color: #cd7f32;
}
.tier-chip.silver {
  background: rgba(192, 192, 192, 0.18);
  color: #c0c0c0;
}
.tier-chip.gold {
  background: rgba(240, 180, 41, 0.18);
  color: var(--gold);
}
.tier-chip.platinum {
  background: rgba(88, 166, 255, 0.18);
  color: var(--blue, var(--link));
}
.tier-chip.absent {
  background: transparent;
  border: 1px solid var(--border, #23262f);
  color: var(--text-dim, #6e7681);
  text-decoration: line-through;
}
.tier-chip.unknown {
  background: transparent;
  border: 1px dashed var(--border, #23262f);
  color: var(--text-dim, #6e7681);
}

/* ===== COACH LEVEL & SKILLS (#2226) ===== */
.coach-level-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  margin-bottom: 18px;
}
.coach-level-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  color: var(--gold);
}
.coach-level-badge .lvl-num {
  font-family: var(--typography-display-font-family), sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}
.coach-level-badge .lvl-label {
  font-size: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.coach-level-xp {
  flex: 1;
  min-width: 240px;
}
.coach-level-xp-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.coach-level-xp-label strong {
  color: var(--text-primary);
}
.coach-level-xp-track {
  height: 10px;
  border-radius: var(--rounded-pill, 999px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.coach-level-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange, #f08029));
  border-radius: var(--rounded-pill, 999px);
}
.coach-level-points-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  padding: 10px 18px;
  text-align: center;
  flex-shrink: 0;
}
.coach-level-points-chip .pts-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.coach-level-points-chip .pts-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.coach-level-report-section {
  flex: 1;
  min-width: 240px;
}
.coach-level-report-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.coach-level-input {
  width: 80px;
}
.btn-report-level {
  padding: 6px 12px;
}
.coach-level-attribution {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.coach-skill-tier {
  margin-bottom: 18px;
}
.coach-skill-tier:last-child {
  margin-bottom: 0;
}
.coach-skill-tier-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.coach-skill-tier-label .tier-count {
  font-weight: 500;
  color: var(--text-dim, #8b949e);
  text-transform: none;
  letter-spacing: 0;
}
.coach-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.coach-skill-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coach-skill-card.allocated {
  border-color: var(--positive);
  box-shadow: inset 0 0 0 1px rgba(46, 168, 101, 0.2);
}
.coach-skill-card.locked {
  opacity: 0.72;
}
.skill-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}
.skill-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.skill-archetype {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.skill-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex: 1;
}
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.skill-status-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--rounded-pill, 999px);
  white-space: nowrap;
}
.skill-status-badge.allocated {
  background: rgba(46, 168, 101, 0.16);
  color: var(--positive-soft, #2ea865);
}
.skill-status-badge.eligible {
  background: rgba(255, 176, 46, 0.15);
  color: var(--gold);
}
.skill-status-badge.locked {
  background: rgba(139, 148, 158, 0.15);
  color: var(--text-muted);
}
.skill-prereq-note {
  font-size: 0.72rem;
  color: var(--text-dim, #8b949e);
  font-style: italic;
}
.coach-empty-note {
  margin: 0 0 12px;
}

/* ===== ARTICLE DEEP-LINKS & SHARE (#2692) ===== */
.article-share-btn {
  margin-left: 4px;
}
.article-highlighted {
  outline: 2px solid var(--gold, #f0b429);
  outline-offset: 2px;
  animation: articlePulse 2s ease-in-out;
}
@keyframes articlePulse {
  0% {
    box-shadow: 0 0 0 2px var(--gold, #f0b429);
  }
  50% {
    box-shadow: 0 0 12px 4px var(--gold, #f0b429);
  }
  100% {
    box-shadow: none;
  }
}

/* ===== SEARCHABLE COMBOBOX (#2794) ===== */
.combobox-wrapper {
  position: relative;
  width: 100%;
}
.combobox-input {
  width: 100%;
}
.combobox-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  text-align: left;
  cursor: pointer;
}
.combobox-trigger-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.combobox-trigger-label .tl {
  max-width: 100%;
}
.combobox-chevron {
  flex: 0 0 auto;
  color: var(--text-muted);
}
.combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.combobox-item {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light, #334155);
  color: var(--text-primary, #f8fafc);
  background: transparent;
  transition: background 0.1s ease;
}
.combobox-dropdown-rich {
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.combobox-search {
  width: calc(100% - 16px);
  margin: 8px;
}
.combobox-options {
  flex: 1;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
}
.coaches-ballot-rank-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.coaches-ballot-rank {
  width: 30px;
  flex: 0 0 30px;
}
.combobox-item:hover,
.combobox-item.combobox-item-active {
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
}
.combobox-empty {
  padding: 8px 10px;
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .combobox-trigger {
    min-height: 38px;
    padding: 5px 8px;
  }
  .combobox-trigger-label .tl-user-avatar,
  .combobox-trigger-label .tl-badge {
    transform: scale(0.9);
  }
}

/* ====================================================
   Conference Labels & Logos (#2795)
   ==================================================== */
.conf-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.conf-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  background: var(--logo-plate);
  border-radius: 4px;
  padding: 2px;
  box-sizing: border-box;
}

.conf-label--icon-only .conf-logo {
  margin-right: 0;
}

/* ====================================================
   Two-Column Ballot Builder & Drag Reorder (#3325)
   ==================================================== */
.ballot-picker-two-column {
  margin-bottom: 16px;
}
.ballot-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 768px) {
  .ballot-picker-grid {
    grid-template-columns: 1fr;
  }
}
.ballot-col-header {
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border, #334155);
}
.ballot-pool-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ballot-pool-controls > input {
  flex: 1 1 140px;
  min-width: 0;
}
.ballot-pool-controls > label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ballot-ranked-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ballot-slot-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-surface, #0f172a);
  border: 1px solid var(--border-light, #1e293b);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.ballot-slot-row.drag-over,
.ballot-pool-col.drag-over {
  border-color: var(--primary, #3b82f6);
  background: rgba(59, 130, 246, 0.1);
}
.ballot-slot-box {
  flex: 1;
  min-width: 0;
}
.ballot-item-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border, #334155);
  cursor: grab;
}
.ballot-item-content:active {
  cursor: grabbing;
}
.ballot-drag-grip {
  cursor: grab;
  color: var(--text-muted, #94a3b8);
  font-weight: bold;
  font-size: 1rem;
  user-select: none;
}
.ballot-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ballot-item-controls {
  display: flex;
  gap: 2px;
}
.btn-ballot-action {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #94a3b8);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  cursor: pointer;
  line-height: 1;
}
.btn-ballot-action:hover:not(:disabled) {
  background: var(--bg-hover, rgba(255, 255, 255, 0.1));
  color: var(--text-primary, #f8fafc);
}
.btn-unrank:hover:not(:disabled) {
  color: var(--red, #ef4444);
}
.btn-ballot-action:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ballot-pool-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}
.ballot-pool-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border, #334155);
  cursor: grab;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.ballot-pool-card:hover {
  border-color: var(--primary, #3b82f6);
  background: var(--bg-hover, rgba(255, 255, 255, 0.05));
}
.ballot-pool-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-rank-add {
  background: var(--bg-surface, #0f172a);
  border: 1px solid var(--border, #334155);
  color: var(--primary, #3b82f6);
  font-weight: 600;
}
.btn-rank-add:hover {
  background: var(--primary, #3b82f6);
  color: #fff;
}

.ballot-slot-placeholder {
  padding: 6px 10px;
  border: 1px dashed var(--border, #334155);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
}

.ballot-touch-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.85;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
}

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ballot-drag-grip {
  touch-action: none;
}
.ballot-slot-row.is-filled,
.ballot-pool-card {
  touch-action: pan-y;
}

/* ===== OCR SOURCE SCREENSHOT PANEL ===== */
.ingest-preview-container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ingest-source-panel {
  flex: 0 0 auto;
  max-width: 320px;
  width: 100%;
}

.ingest-source-thumb {
  max-height: 250px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  object-fit: contain;
  background: var(--bg-card, #1a1a1a);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.ingest-source-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ===== Stat Leaders (Issue #3512 / #3194) ===== */
.season-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scope-line {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.scope-line strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.player-stats-sortable-hdr {
  cursor: pointer;
  user-select: none;
}

th.is-sorted,
td.is-sorted {
  color: var(--primary, #f59e0b);
}

td.is-sorted {
  font-weight: 700;
}

.table-footnote {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Stat Leaders Rate Columns (Issue #3514) */
th.rate-col-header,
td.rate-col-cell {
  font-style: italic;
}

th.rate-col-divider,
td.rate-col-divider {
  border-left: 1px solid var(--border);
}

/* Content Panel Container & Shared Utility Classes (Issues #3616, #2719) */
.content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  padding: 20px;
  margin-bottom: 16px;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.line-through {
  text-decoration: line-through;
}

/* #3795: was `background: var(--green-dark, #1b4d2e); color: var(--green, #3fb950)`,
   which rendered invisible (1.00:1). Both fallbacks were dead — theme.generated.css
   aliases --green AND --green-dark to --positive, so the rule resolved to #2ea865 on
   #2ea865. `var(--x, fallback)` only uses the fallback when --x is UNDEFINED, not when
   it is defined to something unsuitable. Fixed by adopting the sibling badges' pattern
   (literal tinted background + tokenised foreground, as .badge-danger/.badge-warning),
   which structurally cannot collapse because the background is not a token. */
.badge-success {
  background: rgba(46, 168, 101, 0.15);
  color: var(--positive);
}

.typeahead-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.h2h-user-choice,
.ut-user-choice {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* =======================================================================
   Multi-league Calendar Deadlines Component (#3475)
   ======================================================================= */
.deadline-cal {
  --cal-user: var(--positive);
  --cal-user-bg: rgba(46, 168, 101, 0.12);
  --cal-cpu: var(--link);
  --cal-cpu-bg: rgba(88, 166, 255, 0.1);
  --cal-none-rail: #3f444d;
  --cal-none-bg: rgba(110, 118, 129, 0.08);
  --cal-cell: var(--surface);
  --cal-cell-line: #1b1e26;
  margin-bottom: 24px;
}

.deadline-cal-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 16px;
}
.deadline-cal-head h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.deadline-cal-views {
  display: flex;
  gap: 6px;
}
.deadline-cal-view {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--rounded-pill);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
}
.deadline-cal-view.is-active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.deadline-cal-pager {
  display: flex;
  align-items: center;
  gap: 4px;
}
.deadline-cal-step {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rounded-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.deadline-cal-range {
  min-width: 140px;
  text-align: center;
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-weight: var(--typography-headline-font-weight);
  letter-spacing: var(--typography-headline-letter-spacing);
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--text);
}
.deadline-cal-today {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--rounded-pill);
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  cursor: pointer;
}
.deadline-cal-scope {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- week strip --- */
.deadline-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.deadline-day {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 172px;
  padding: 11px;
  border-radius: var(--rounded-lg);
  background: var(--cal-cell);
  border: 1px solid var(--cal-cell-line);
}
.deadline-day.is-today {
  background: var(--surface-raised);
  border-color: var(--primary);
}
.deadline-day.has-overflow {
  border-color: var(--text-dim);
}
.deadline-day-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.deadline-day-dow {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.deadline-day-dom {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: var(--typography-display-font-weight);
  letter-spacing: var(--typography-display-letter-spacing);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
}
.deadline-day.is-today .deadline-day-dow,
.deadline-day.is-today .deadline-day-dom {
  color: var(--primary);
}
.deadline-day-count {
  margin-left: auto;
  font-size: 0.56rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--rounded-pill);
  background: var(--border);
  color: var(--text-muted);
}
.deadline-day-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* --- the chip --- */
.deadline-chip {
  padding: 7px 9px;
  border-radius: var(--rounded-sm);
  border-left: 3px solid var(--cal-none-rail);
  background: var(--cal-none-bg);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.deadline-chip:hover {
  transform: translateY(-1px);
}
.deadline-chip.m-user {
  border-left-color: var(--cal-user);
  background: var(--cal-user-bg);
}
.deadline-chip.m-cpu {
  border-left-color: var(--cal-cpu);
  background: var(--cal-cpu-bg);
}
.deadline-chip-top {
  display: flex;
  align-items: center;
  gap: 5px;
}
.deadline-chip-league {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-weight: var(--typography-headline-font-weight);
  letter-spacing: var(--typography-headline-letter-spacing);
  text-transform: uppercase;
  font-size: 0.94rem;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deadline-chip-tag {
  margin-left: auto;
  flex: none;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--cal-none-rail);
  color: var(--surface-deep);
}
.deadline-chip.m-user .deadline-chip-tag {
  background: var(--cal-user);
}
.deadline-chip.m-cpu .deadline-chip-tag {
  background: var(--cal-cpu);
}
.deadline-chip-opp {
  font-size: 0.63rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deadline-chip-what {
  font-size: 0.63rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deadline-chip-left {
  margin-top: 2px;
  font-size: 0.63rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}
.deadline-chip-left.u-today {
  color: var(--primary);
}
.deadline-chip-left.u-soon {
  color: var(--text-muted);
}
.deadline-chip-left.u-overdue {
  color: var(--live);
}

.deadline-chip.is-logged .deadline-chip-result,
.deadline-mchip.is-logged .deadline-chip-result {
  font-weight: 700;
  color: var(--text-strong);
}
.deadline-chip.is-logged .deadline-chip-left,
.deadline-mchip.is-logged .deadline-chip-left {
  color: var(--text-muted);
  font-weight: 400;
}
.deadline-mchip.is-logged {
  white-space: normal;
}

.deadline-more {
  padding: 7px 9px;
  border-radius: var(--rounded-sm);
  border: 1px dashed var(--text-dim);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
}

/* --- month grid --- */
.deadline-month-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.deadline-month-dow {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 3px;
}
.deadline-month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.deadline-mcell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  padding: 8px;
  border-radius: var(--rounded-sm);
  background: var(--cal-cell);
  border: 1px solid var(--cal-cell-line);
}
.deadline-mcell.is-today {
  background: var(--surface-raised);
  border-color: var(--primary);
}
.deadline-mcell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deadline-mcell-dom {
  font-family: var(--typography-display-font-family), 'Barlow Condensed', sans-serif;
  font-weight: var(--typography-display-font-weight);
  font-size: 1.06rem;
  line-height: 1;
  color: var(--text);
}
.deadline-mcell-count {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 5px;
  background: var(--surface-raised);
  color: var(--text-muted);
}
.deadline-mcell.out .deadline-mcell-dom {
  color: var(--cal-none-rail);
}
.deadline-mcell.is-today .deadline-mcell-dom {
  color: var(--primary);
}
.deadline-mchip {
  padding: 3px 5px;
  border-radius: 3px;
  border-left: 2px solid var(--cal-none-rail);
  background: var(--cal-none-bg);
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-weight: var(--typography-headline-font-weight);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.deadline-mchip.m-user {
  border-left-color: var(--cal-user);
  background: var(--cal-user-bg);
}
.deadline-mchip.m-cpu {
  border-left-color: var(--cal-cpu);
  background: var(--cal-cpu-bg);
}
.deadline-mmore {
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
}

/* --- legend + footer --- */
.deadline-cal-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.deadline-key {
  display: flex;
  align-items: center;
  gap: 7px;
}
.deadline-key-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.deadline-key-label {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.deadline-cal-note {
  margin-left: auto;
  font-size: 0.69rem;
  color: var(--text-dim);
}
.deadline-cal-beyond {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}
.deadline-cal-beyond strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.deadline-cal-emptyrange {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 172px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}
.deadline-cal-emptyrange .er-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.deadline-cal-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text-secondary);
}
.deadline-cal-empty .deadline-empty-icon {
  font-size: 1.4rem;
}
.deadline-cal-empty .deadline-empty-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.deadline-cal-error {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.deadline-cal-error .deadline-error-msg {
  flex: 1;
  min-width: 200px;
}

.deadline-mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.deadline-mgroup {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--cal-cell);
  border: 1px solid var(--cal-cell-line);
}
.deadline-mgroup.is-today {
  background: var(--surface-raised);
  border-color: var(--primary);
}
.deadline-mgroup-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 38px;
  flex: none;
}
.deadline-mgroup-chips {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.deadline-mgroup-chips .deadline-chip {
  min-height: 44px;
}
.deadline-viewfull {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
}

@media (max-width: 640px) {
  .deadline-week,
  .deadline-month-dows,
  .deadline-month {
    display: none;
  }
  .deadline-mobile {
    display: flex;
  }
  .deadline-cal-scope {
    margin-left: 0;
    width: 100%;
  }
  .deadline-cal-range {
    min-width: 0;
    font-size: 0.95rem;
  }
}

/* Inline Contextual Help (Issue #3185) */
.inline-help-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}

.inline-help-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.75;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  border-radius: 50%;
}

.inline-help-btn:hover,
.inline-help-btn:focus-visible {
  opacity: 1;
  transform: scale(1.15);
  outline: none;
}

.inline-help-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: 290px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: var(--radius, 8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 12px;
  z-index: 1000;
  font-size: 0.85rem;
  color: var(--text, #e2e8f0);
  text-align: left;
}

.inline-help-popover.active {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

.inline-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #334155);
}

.inline-help-title {
  font-weight: 600;
  color: var(--text-strong, #f8fafc);
  font-size: 0.9rem;
}

.inline-help-close {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.inline-help-close:hover {
  color: var(--text-strong, #f8fafc);
}

.inline-help-body {
  line-height: 1.45;
  color: var(--text-muted, #cbd5e1);
  font-weight: normal;
}

/* ===== PUBLIC HOME PAGE (#3811) ===== */
:root {
  --pub-body: var(--text-secondary, #c9d1d9);
  --pub-gutter: max(4%, calc((100% - 1300px) / 2));
}

.pub-body-page {
  margin: 0;
  padding: 0;
  background: var(--bg-base, #0a0c10);
  color: var(--text-primary, #e6edf3);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

.pub-wrap {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Chrome: Top Navbar */
.pub-navbar {
  height: 56px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-deep, #0f1118);
  border-bottom: 1px solid var(--border, #23262f);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pub-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family:
    var(--typography-headline-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}
.pub-brand:hover {
  text-decoration: none;
}
.pub-brand-amber {
  color: var(--primary, #ffb02e);
}
.pub-brand-tracker {
  display: inline;
}

.pub-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pub-login {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--pub-body);
  text-decoration: none;
}
.pub-login:hover {
  color: var(--text-primary, #ffffff);
  text-decoration: underline;
}
.pub-signup {
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 6px);
  background: var(--primary, #ffb02e);
  color: #12151c;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  display: inline-block;
}
.pub-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 176, 46, 0.28);
  text-decoration: none;
}

/* Sections Bar (Desktop / Tablet) */
.pub-sections {
  height: 52px;
  padding: 0 32px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: var(--bg-base, #0a0c10);
  border-bottom: 2px solid var(--border, #23262f);
}
.pub-sec-btn {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--pub-body);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.pub-sec-btn:hover {
  color: var(--text-primary, #ffffff);
  border-bottom-color: var(--border, #3a3f4b);
  text-decoration: none;
}
.pub-sec-divider {
  width: 1px;
  background: var(--border, #23262f);
  margin: 12px 14px;
  flex: none;
}
.pub-sec-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary, #6e7681);
  white-space: nowrap;
  cursor: default;
}

/* Mobile Drawer */
.pub-burger {
  display: none;
  width: 32px;
  height: 40px;
  margin-left: -6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.pub-burger span {
  width: 18px;
  height: 2px;
  background: var(--text-primary, #ffffff);
  display: block;
}
.pub-drawer {
  display: none;
  background: var(--surface-deep, #0f1118);
  padding: 8px 0 22px;
  flex-direction: column;
  border-bottom: 1px solid var(--border, #23262f);
}
.pub-drawer.pub-drawer-open {
  display: flex;
}
.pub-drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border, #23262f);
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  text-decoration: none;
  box-sizing: border-box;
}
.pub-drawer-row:hover {
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.pub-drawer-row .chev {
  color: var(--text-secondary, #6e7681);
}
.pub-drawer-heading {
  padding: 20px 20px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary, #6e7681);
}
.pub-drawer-locked {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border, #23262f);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary, #6e7681);
  cursor: default;
}

/* Accessibility Focus Ring (#3810 Q4) */
.pub-body-page a:focus-visible,
.pub-body-page button:focus-visible {
  outline: 2px solid var(--primary, #ffb02e);
  outline-offset: 2px;
  border-radius: var(--radius-sm, 4px);
}
.pub-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary, #ffb02e);
  color: #12151c;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
}
.pub-skip:focus {
  left: 8px;
  top: 8px;
}

/* Section 1: Hero */
.pub-hero {
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pub-eyebrow {
  font-family:
    var(--typography-eyebrow-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary, #ffb02e);
  margin-bottom: 14px;
}
.pub-h1 {
  font-family:
    var(--typography-display-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 800;
  font-size: 58px;
  line-height: 0.96;
  color: var(--text-primary, #ffffff);
  margin: 0 0 18px 0;
}
.pub-lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--pub-body);
  max-width: 480px;
  margin: 0;
}
.pub-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.pub-btn {
  font-family:
    var(--typography-headline-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.pub-btn-primary {
  background: var(--primary, #ffb02e);
  color: #17181c;
}
.pub-btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.pub-btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #3a3f4b;
}
.pub-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.pub-hero-sub {
  font-size: 12px;
  color: var(--text-secondary, #6e7681);
  margin-top: 14px;
}

/* Hero Dashboard Card */
.pub-dash {
  border: 1px solid #262b36;
  border-radius: 10px;
  background: #101825;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.pub-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #1e2532;
  background: #121c2c;
}
.pub-dash-title {
  font-family:
    var(--typography-headline-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
}
.pub-dash-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.pub-dash-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #17181c;
  background: var(--primary, #ffb02e);
  padding: 6px 10px;
  border-radius: 20px;
  flex: none;
}
.pub-dash-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pub-block-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8b949e;
  margin-bottom: 8px;
}
.pub-game {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid #232a37;
  border-radius: 8px;
  padding: 14px 16px;
  background: #0d1420;
}
.pub-game-side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pub-game-side.away {
  justify-content: flex-end;
  text-align: right;
}
.pub-team-name {
  font-family:
    var(--typography-headline-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
}
.pub-team-meta {
  font-size: 11px;
  color: var(--text-secondary);
}
.pub-kick {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}
.pub-standrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 4px;
}
.pub-standrow.is-you {
  background: #16202e;
}
.pub-rk {
  font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', sans-serif;
  font-weight: 800;
  width: 14px;
  color: var(--text-secondary);
}
.pub-rk.lead {
  color: var(--primary, #ffb02e);
}
.pub-you-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary, #ffb02e);
  background: rgba(255, 176, 46, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}
.pub-next {
  border: 1px solid #232a37;
  border-radius: 8px;
  padding: 10px 14px;
  background: #0d1420;
}
.pub-wkchip {
  font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #17181c;
  background: var(--primary, #ffb02e);
  padding: 4px 8px;
  border-radius: 4px;
  flex: none;
}

/* Section 2: Discord */
.pub-discord {
  margin: 48px 0 64px;
  background: linear-gradient(120deg, #0d0f1c, #0f1118);
  border: 1px solid #2c2f45;
  border-radius: 12px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 48px;
  align-items: center;
}
.pub-discord-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--typography-eyebrow-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9cdfb;
}
.pub-discord-mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #5865f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}
.pub-h2 {
  font-family:
    var(--typography-display-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--text-primary, #ffffff);
  margin: 14px 0 16px 0;
}
.pub-cmds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  max-width: 440px;
}
.pub-cmd {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.pub-cmd code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  background: #181b24;
  border: 1px solid #282c3c;
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--pub-body);
  flex: none;
}
.pub-cmd code .slash {
  color: var(--primary, #ffb02e);
}
.pub-cmd-desc {
  font-size: 13px;
  color: var(--pub-body);
}

/* Simulated Discord Chat */
.pub-chat {
  background: #313338;
  border: 1px solid #1e1f22;
  border-radius: 10px;
  overflow: hidden;
}
.pub-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #2b2d31;
  border-bottom: 1px solid #1e1f22;
  font-size: 13px;
  font-weight: 700;
  color: #dbdee1;
}
.pub-chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pub-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pub-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  flex: none;
}
.pub-msg-content {
  flex: 1;
  min-width: 0;
}
.pub-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.pub-msg-author {
  font-size: 14px;
  font-weight: 600;
  color: #f2f3f5;
}
.pub-bot-badge {
  background: #5865f2;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.pub-msg-time {
  font-size: 11px;
  color: #949ba4;
}
.pub-msg-text {
  font-size: 13px;
  line-height: 1.45;
  color: #dbdee1;
}

/* Section 3: Advance Loop & Commissioner Controls */
.pub-loop {
  padding: 48px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-top: 1px solid #1a1d26;
}
.pub-loop-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
.pub-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pub-step {
  border: 1px solid #23262f;
  border-radius: 10px;
  background: #10121a;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pub-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary, #ffb02e);
  color: #17181c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', sans-serif;
  font-weight: 800;
  font-size: 15px;
  flex: none;
}
.pub-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.pub-step p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--pub-body);
  margin: 0;
}
.pub-comm {
  border: 1px solid #23262f;
  border-radius: 10px;
  background: #0d0f16;
  padding: 24px;
  display: grid;
  grid-template-columns: 0.9fr repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.pub-comm-grid {
  display: contents;
}
.pub-comm-grid > div {
  font-size: 13px;
  line-height: 1.5;
  color: var(--pub-body);
}

/* Section 4: Live Standings */
.pub-standings {
  padding: 44px 0 56px;
  background: #0d0f15;
  border-top: 1px solid #1a1d26;
  border-bottom: 1px solid #1a1d26;
}
.pub-tbl-wrap {
  width: 100%;
}
.pub-tbl-cols {
  display: grid;
  grid-template-columns: 56px minmax(240px, 1.5fr) 170px 110px 110px 120px 1.2fr;
  align-items: center;
  padding: 14px 32px;
  box-sizing: border-box;
}
.pub-tbl-head {
  font-family:
    var(--typography-headline-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #8b949e;
  border-bottom: 1px solid #1a1d26;
  padding-bottom: 10px;
}
.pub-tbl-row {
  border-bottom: 1px solid #14171f;
  font-size: 13px;
  cursor: default;
}
.pub-tbl-row.is-you {
  background: #16202e;
}
.pub-tbl-rk {
  font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-secondary);
}
.pub-tbl-rk.lead {
  color: var(--primary, #ffb02e);
}
.pub-tbl-school {
  font-family:
    var(--typography-headline-font-family), 'Barlow Condensed', 'Barlow Condensed Fallback',
    sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}
.pub-tbl-handle {
  font-size: 12px;
  color: #8b949e;
}
.pub-tbl-cards {
  display: none;
}
.pub-card {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #16181f;
}
.pub-card.is-you {
  background: #16202e;
  border-radius: 6px;
  padding: 14px 10px;
  box-shadow: inset 3px 0 0 var(--primary, #ffb02e);
}
.pub-card-rk {
  font-family: 'Barlow Condensed', 'Barlow Condensed Fallback', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-secondary);
}
.pub-card-rk.lead {
  color: var(--primary, #ffb02e);
}
.pub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pub-card-meta .k {
  color: #8b949e;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 4px;
}
.pub-card-next {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.pub-card-next .k {
  color: #8b949e;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 4px;
}

/* Section 5: Closing CTA */
.pub-final {
  margin: 56px 0;
  border: 1px solid #4a3a12;
  border-radius: 12px;
  background: linear-gradient(120deg, #241c08 0%, #14161d 70%);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* Footer */
.pub-foot {
  padding: 0 32px 32px;
  font-size: 12px;
  color: #8b949e;
  text-align: center;
}
.pub-foot a {
  /* Override the legacy inline dim token so footer links meet AA contrast. */
  color: #8b949e !important;
}

/* ==================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================== */
@media (max-width: 1024px) {
  .pub-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }
  .pub-h1 {
    font-size: 48px;
  }
  .pub-discord {
    grid-template-columns: 1fr;
    padding: 36px 32px;
    gap: 32px;
  }
  .pub-loop-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pub-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pub-comm {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pub-comm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  /* Q3: Tablet drops Streak and Next (5-column layout) */
  .pub-tbl-cols {
    grid-template-columns: 48px minmax(180px, 1fr) 140px 90px 90px;
    padding: 12px 24px;
  }
  .col-streak,
  .col-next {
    display: none;
  }
}

@media (max-width: 768px) {
  .pub-sections {
    display: none;
  }
  .pub-burger {
    display: flex;
  }
  .pub-brand-tracker {
    display: none;
  }
  .pub-navbar {
    padding: 0 20px;
  }
  .pub-final {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .pub-h1 {
    font-size: 38px;
  }
  .pub-step-grid {
    grid-template-columns: 1fr;
  }
  .pub-comm-grid {
    grid-template-columns: 1fr;
  }
  .pub-cta-row {
    flex-direction: column;
    width: 100%;
  }
  .pub-cta-row .pub-btn {
    width: 100%;
    box-sizing: border-box;
  }
  /* Q5: Body switches to card format below 640px */
  .pub-tbl-wrap {
    display: none;
  }
  .pub-tbl-cards {
    display: block;
    padding: 0 20px;
  }
  .pub-game {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pub-game-side {
    justify-content: center;
  }
  .pub-game-side.away {
    justify-content: center;
    text-align: center;
  }
}

/* ===========================================================================
   Issue #4236 — 🔁 Transfer Portal browse + compare table.

   Reuses Recruit Pool's table vocabulary (.recruit-table-wrap /
   .board-recruit-table / .pool-controls / .chipbar / .callout) and adds only
   what that surface has no equivalent for: the Compare column picker, the
   rating tiers, the pager, and the scouting card. Every colour is an existing
   theme token — the rating tiers deliberately reuse --primary / --text-strong /
   --text-secondary / --text-dim rather than introducing a palette.
   =========================================================================== */

/* --- Rating values, tiered ------------------------------------------------ */
.portal-rating {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.portal-rating.is-elite {
  color: var(--primary, var(--gold));
  font-weight: 800;
}
.portal-rating.is-high {
  color: var(--text-strong);
  font-weight: 800;
}
.portal-rating.is-mid {
  color: var(--text-secondary);
}
.portal-rating.is-low {
  color: var(--text-dim, var(--text-muted));
}
.portal-rating.is-none {
  color: var(--text-dim, var(--text-muted));
  font-weight: 600;
}

/* --- Transfer Portal position groups & member chips (#4380) -------------- */
.portal-member-chips {
  display: flex;
  gap: 12px;
  padding-left: 2px;
  border-left: 2px solid var(--primary, var(--gold));
  margin: -6px 0 14px 4px;
}
.portal-member-chips-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 14px;
}

/* --- Compare (rating-column) bar ----------------------------------------- */
.portal-compare-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  position: relative;
}
.portal-compare-label {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--text-muted);
}
.portal-compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.portal-compare-remove {
  background: none;
  border: none;
  padding: 0 2px;
  line-height: 1;
  font-size: 0.85rem;
  color: var(--text-dim, var(--text-muted));
  cursor: pointer;
}
.portal-compare-remove:hover {
  color: var(--red);
}
.portal-compare-hint {
  font-size: 0.75rem;
  color: var(--text-dim, var(--text-muted));
}
.portal-compare-picker {
  position: absolute;
  top: 32px;
  left: 0;
  z-index: 50;
  width: min(560px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.portal-compare-picker-title {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.portal-compare-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.portal-attr-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.portal-compare-max {
  font-size: 0.75rem;
  color: var(--primary, var(--gold));
  margin-top: 10px;
}

/* --- Transfer Portal Filters (#4379) -------------------------------------- */
.portal-filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.portal-filter-label {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
}
.portal-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--primary, #ffb02e);
  border-radius: 999px;
  background: rgba(255, 176, 46, 0.12);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #ffb02e);
  cursor: pointer;
  line-height: 1.2;
}
.portal-filter-pill-remove {
  cursor: pointer;
  color: rgba(255, 176, 46, 0.7);
  font-size: 11px;
  font-weight: 800;
}
.portal-filter-pill-remove:hover {
  color: var(--primary, #ffb02e);
}
.portal-add-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px dashed var(--border-subtle, #3a3f4b);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary, #c9d1d9);
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
}
.portal-add-filter-btn:hover {
  border-color: var(--text-muted, #8b949e);
  color: var(--text-strong, #fff);
}
.portal-filter-clear {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--link, #58a6ff);
  cursor: pointer;
  padding: 0 4px;
}
.portal-filter-clear:hover {
  text-decoration: underline;
}

/* Panel */
.portal-filter-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--primary, #ffb02e);
  border-radius: 8px;
  background: var(--surface, #0f1118);
  overflow: hidden;
  margin-bottom: 16px;
}
.portal-filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border, #23262f);
  background: rgba(255, 176, 46, 0.06);
}
.portal-filter-panel-title {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.portal-filter-panel-active-count {
  font-size: 12px;
  color: var(--text-muted, #8b949e);
}
.portal-filter-panel-close {
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted, #8b949e);
  background: none;
  border: none;
  padding: 2px 6px;
}
.portal-filter-panel-close:hover {
  color: var(--text-strong, #fff);
}
.portal-filter-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0;
}
.portal-filter-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px;
  border-right: 1px solid var(--border, #23262f);
}
.portal-filter-col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.portal-filter-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
}
.portal-filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.portal-chip-toggle {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border, #23262f);
  background: #14161f;
  color: var(--text-secondary, #c9d1d9);
  line-height: 1.2;
}
.portal-chip-toggle:hover {
  border-color: var(--text-muted, #8b949e);
}
.portal-chip-toggle.active {
  border-color: var(--primary, #ffb02e);
  background: var(--primary, #ffb02e);
  color: #08090d;
  font-weight: 800;
}

/* Dev-trait chips with dot */
.portal-dev-chip .portal-dev-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 5px;
  background: currentColor;
}
.portal-dev-chip.for-elite {
  color: var(--purple, #a371f7);
}
.portal-dev-chip.for-star {
  color: var(--primary, #ffb02e);
}
.portal-dev-chip.for-impact {
  color: var(--blue, #58a6ff);
}
.portal-dev-chip.for-normal {
  color: var(--text-secondary, #c9d1d9);
}
.portal-dev-chip.active {
  color: #08090d;
}
.portal-dev-chip.active .portal-dev-dot {
  background: #08090d;
}

/* Ratings rows in panel */
.portal-attr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border, #23262f);
  border-radius: 7px;
  background: var(--surface-deep, #0a0c10);
}
.portal-attr-row-key {
  min-width: 44px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text, #e6edf3);
}
.portal-attr-row-name {
  flex: 1;
  font-size: 11px;
  color: var(--text-muted, #6e7681);
}
.portal-attr-row-op {
  font-size: 12px;
  color: var(--text-muted, #8b949e);
  font-weight: 700;
}
.portal-attr-row-input {
  width: 56px;
  padding: 5px 0;
  border: 1px solid var(--border, #23262f);
  border-radius: 6px;
  background: var(--surface, #0f1118);
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #e6edf3);
  text-align: center;
}
.portal-attr-row-remove {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted, #8b949e);
  background: none;
  border: none;
  padding: 0 4px;
}
.portal-attr-row-remove:hover {
  color: var(--text-strong, #fff);
}

.portal-add-rating-btn {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 14px;
  border: 1px dashed var(--border-subtle, #3a3f4b);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary, #c9d1d9);
  background: transparent;
  cursor: pointer;
}
.portal-add-rating-btn:hover {
  border-color: var(--text-muted, #8b949e);
  color: var(--text-strong, #fff);
}

/* Picker */
.portal-attr-picker-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--link, #58a6ff);
  border-radius: 8px;
  background: var(--surface-deep, #0a0c10);
}
.portal-attr-picker-search {
  padding: 8px 12px;
  border: 1px solid var(--border, #23262f);
  border-radius: 6px;
  background: var(--surface, #0f1118);
  font-size: 12px;
  color: var(--text, #e6edf3);
  width: 100%;
}
.portal-attr-picker-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 240px;
  overflow-y: auto;
}
.portal-attr-picker-item {
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 120px 44px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--surface, #0f1118);
  border: none;
  width: 100%;
  text-align: left;
}
.portal-attr-picker-item:hover {
  background: var(--surface-raised, #14161f);
}
.portal-attr-bar-track {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #23262f;
  overflow: hidden;
}
.portal-attr-bar-fill {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: var(--primary, #ffb02e);
}

.portal-filter-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--border, #23262f);
  background: var(--surface-deep, #0a0c10);
}

/* Hidden notice banner */
.portal-hidden-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-left: 3px solid var(--link, #58a6ff);
  border-radius: 6px;
  background: rgba(88, 166, 255, 0.07);
  font-size: 13px;
  color: var(--text-secondary, #c9d1d9);
  margin-bottom: 12px;
}
.portal-hidden-note-action {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--link, #58a6ff);
  background: none;
  border: none;
  padding: 0;
}
.portal-hidden-note-action:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .portal-filter-panel-grid {
    grid-template-columns: 1fr;
  }
  .portal-filter-col-left {
    border-right: none;
    border-bottom: 1px solid var(--border, #23262f);
  }
}

/* --- Table ---------------------------------------------------------------- */
.portal-table tbody tr {
  cursor: pointer;
}
.portal-table .portal-ovr {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.portal-rating-hdr .portal-compare-remove {
  margin-left: 4px;
}
.portal-archetype {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.portal-elig {
  color: var(--text-muted);
}
.portal-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.portal-star-btn {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-dim, var(--text-muted));
  cursor: pointer;
}
.portal-star-btn.is-on {
  color: var(--primary, var(--gold));
}
.portal-dev-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
}
.portal-dev-elite {
  background: rgba(163, 113, 247, 0.14);
  color: var(--purple);
}
.portal-dev-star {
  background: rgba(240, 180, 41, 0.14);
  color: var(--primary, var(--gold));
}
.portal-dev-impact {
  background: rgba(88, 166, 255, 0.14);
  color: var(--blue);
}
.portal-dev-normal {
  background: var(--bg-card);
  color: var(--text-secondary);
}
.portal-stage {
  font-size: 0.68rem;
  padding: 1px 6px;
}
.portal-stage.is-open {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}
.portal-stage.is-battle {
  background: rgba(255, 59, 59, 0.12);
  color: var(--red);
}
.portal-stage.is-funnel {
  background: var(--bg-card);
  color: var(--text-secondary);
}
.portal-stage.is-commit {
  background: rgba(163, 113, 247, 0.12);
  color: var(--purple);
}
.portal-stage.is-mine {
  background: rgba(240, 180, 41, 0.14);
  color: var(--primary, var(--gold));
}

/* --- Resolved rows (#4245) ---------------------------------------------- */
.portal-row-resolved {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.02);
}
.portal-row-resolved:hover {
  opacity: 0.95;
}
.portal-outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}
.portal-outcome-transferred {
  display: inline-flex;
}
.portal-outcome-prefix {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.portal-stage.portal-stage-stayed {
  background: rgba(240, 180, 41, 0.14);
  color: var(--primary, var(--gold));
}

/* --- Pager ---------------------------------------------------------------- */
.portal-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.portal-pager-count {
  font-size: 0.78rem;
  color: var(--text-dim, var(--text-muted));
}
.portal-pager-pages {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.portal-page {
  min-width: 30px;
  padding: 4px 8px;
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
}
.portal-page.is-current {
  background: var(--primary, var(--gold));
  border-color: var(--primary, var(--gold));
  color: var(--on-primary, #08090d);
  font-weight: 700;
}
.portal-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.portal-page-gap {
  padding: 0 4px;
  color: var(--text-dim, var(--text-muted));
}

/* --- Scouting card -------------------------------------------------------- */
.portal-card .modal-header {
  align-items: flex-start;
  gap: 12px;
}
.portal-card-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}
.portal-card-ovr {
  text-align: right;
  margin-left: auto;
  padding-right: 12px;
}
.portal-card-ovr-value {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--primary, var(--gold));
  font-variant-numeric: tabular-nums;
}
.portal-card-ovr-label {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--text-muted);
}
.portal-card-heading {
  display: block;
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.portal-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.portal-card-section {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}
.portal-card-bio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
}
.portal-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.portal-tile {
  text-align: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 65px;
}
.portal-tile-key {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-chasers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.portal-card-abilities {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portal-abilities-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portal-abilities-subheading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.portal-abilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-ability-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.8rem;
}
.portal-ability-name {
  font-weight: 500;
}
.portal-ability-tier {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}
.portal-ability-tier-bronze {
  background: rgba(205, 127, 50, 0.2);
  color: #cd7f32;
  border: 1px solid rgba(205, 127, 50, 0.4);
}
.portal-ability-tier-silver {
  background: rgba(192, 192, 192, 0.2);
  color: #c0c0c0;
  border: 1px solid rgba(192, 192, 192, 0.4);
}
.portal-ability-tier-gold {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.4);
}
.portal-ability-tier-platinum {
  background: rgba(229, 228, 226, 0.25);
  color: #e5e4e2;
  border: 1px solid rgba(229, 228, 226, 0.5);
}

/* ── #4237 · Transfer Portal "Add a player" flow ──────────────────────────
   Roster search first, quick-add second, free text last. Reuses the portal
   tab's own vocabulary (.portal-rating, .portal-tile, .portal-card-*) and the
   shared modal/form primitives; only the search-result row and the two-column
   manual form need markup this codebase does not already have. */
.portal-add .modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portal-add-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}
.portal-add-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}
.portal-add-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  cursor: pointer;
}
.portal-add-result:hover,
.portal-add-result:focus-visible {
  border-color: var(--primary);
  background: var(--surface-raised);
}
.portal-add-kind {
  flex: none;
}
.portal-add-kind.is-portal {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}
.portal-add-kind.is-roster {
  background: rgba(88, 166, 255, 0.15);
  color: var(--link);
  border: 1px solid rgba(88, 166, 255, 0.3);
}
.portal-add-result-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-add-result-meta {
  flex: none;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.portal-add-result-team {
  flex: none;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.portal-add-result-action {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}
.portal-add-empty {
  text-align: center;
  padding: 24px 20px;
}
.portal-add-empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}
.portal-add-empty .btn {
  margin-top: 14px;
}
.portal-add-back {
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 0;
}
.portal-add-pick {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.portal-add-pick-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.portal-add-pick-team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.portal-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.portal-add-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.portal-add-warning {
  border-color: var(--border);
  background: var(--surface-raised);
  color: var(--text-muted);
}
.portal-add-done {
  text-align: center;
  padding: 12px 8px 4px;
}
.portal-add-done-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ===== TOURNAMENTS FULL-PAGE (#3719) ===== */

/* Hub card grid */
.tp-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
.tp-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rounded-xl, var(--radius));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.tp-hub-card:hover {
  border-color: var(--primary, var(--gold));
}
.tp-hub-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.tp-hub-name {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--text-strong, var(--text-primary));
}
.tp-hub-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.tp-hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.tp-hub-foot code {
  background: var(--surface-deep, var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  color: var(--text-secondary);
  font-size: 0.72rem;
}
/* Entrant-fill meter */
.tp-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-deep, var(--bg-surface));
  overflow: hidden;
  border: 1px solid var(--border);
}
.tp-meter-fill {
  height: 100%;
  background: var(--primary, var(--gold));
}
.tp-meter-fill.is-full {
  background: var(--positive, var(--green));
}
.tp-hub-status {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===========================================================================
   Companion Transfer Portal (Issue #4242)
   Capture-first second-screen browse & quick-add surface for Transfer Portal.
   =========================================================================== */

.companion-portal-search-wrap {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
}

.companion-search-hint {
  font-size: 0.72rem;
  color: var(--text-dim, var(--text-muted));
  margin-top: 6px;
}

.companion-roster-hits {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.companion-roster-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--primary, var(--gold));
  border-radius: var(--radius-md);
  background: rgba(255, 176, 46, 0.06);
}

.companion-roster-hit-info {
  flex: 1;
  min-width: 0;
}

.companion-roster-hit-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.companion-roster-hit-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.companion-roster-hit-ovr {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
  flex: none;
}

.companion-add-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  flex: none;
}

.companion-portal-header {
  padding: 12px 16px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.companion-portal-eyebrow {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.companion-portal-count {
  font-size: 0.75rem;
  color: var(--text-dim, var(--text-muted));
}

.companion-portal-controls {
  padding: 10px 16px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.companion-portal-ctrl-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 12px;
}

.portal-sort-arrow {
  color: var(--primary, var(--gold));
  font-weight: 800;
}

.portal-caret {
  color: var(--text-dim, var(--text-muted));
  font-size: 0.75rem;
}

.companion-portal-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
}

.companion-portal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  min-height: 56px;
  cursor: pointer;
}

.companion-portal-row:hover {
  background: var(--bg-hover, var(--surface-raised));
}

.companion-portal-info {
  flex: 1;
  min-width: 0;
}

.companion-portal-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.companion-player-name {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.1rem;
  line-height: 1.05;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.companion-portal-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.companion-portal-ratings {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  margin-top: 3px;
}

.companion-portal-ratings .is-sorted {
  color: var(--text-primary);
  font-weight: 700;
}

.companion-portal-stats {
  text-align: right;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.companion-portal-ovr {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}

.companion-portal-ovr.is-elite {
  color: var(--primary, var(--gold));
}

.companion-portal-status {
  font-size: 0.7rem;
}

.companion-portal-tap {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.15rem;
  flex: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.companion-portal-tap:hover {
  background: var(--bg-hover, var(--surface-raised));
  border-color: var(--primary, var(--gold));
}

.companion-portal-tap.is-on {
  border: 1px solid var(--primary, var(--gold));
  background: rgba(240, 180, 41, 0.16);
  color: var(--primary, var(--gold));
  font-size: 1rem;
}

/* --- Sort Sheet Modal (Issue #4242) ---------------------------------------- */
.portal-sort-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.portal-sort-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-sort-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  min-height: 48px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease;
}

.portal-sort-opt:hover {
  background: var(--bg-hover, var(--surface-raised));
}

.portal-sort-opt.is-active {
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.45);
  color: var(--primary, var(--gold));
}

.portal-sort-key {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  width: 38px;
  flex: none;
  color: var(--text-dim, var(--text-muted));
}

.portal-sort-opt.is-active .portal-sort-key {
  color: var(--primary, var(--gold));
}

.portal-sort-label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.portal-sort-opt.is-active .portal-sort-label {
  color: var(--primary, var(--gold));
  font-weight: 600;
}

.portal-sort-dir-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--primary, var(--gold));
  font-weight: 700;
}

.portal-sort-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 6px;
}

.portal-sort-eyebrow {
  font-family: var(--typography-headline-font-family), sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.portal-sort-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.portal-sort-hint {
  padding: 12px 14px 0;
  font-size: 0.72rem;
  color: var(--text-dim, var(--text-muted));
}

/* --- Compare Sheet Modal (Issue #4242) ------------------------------------- */
.portal-compare-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.portal-compare-sheet-section {
  display: flex;
  flex-direction: column;
}

.portal-compare-chips-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* --- Phone Transfer Portal (Issue #5215) --------------------------------- */
.companion-portal-select-wrap {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  flex: none;
}
.companion-portal-select-wrap input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .companion-portal-controls .btn,
  .companion-portal-controls .chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  [data-portal-bulk-bar] {
    flex-direction: column;
    align-items: stretch !important;
  }

  [data-portal-bulk-bar] > div {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
  }

  [data-portal-bulk-bar] select,
  [data-portal-bulk-bar] button {
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #portal-bulk-dest-select {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .portal-page {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Full-bleed bracket region */
.tp-bracket {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 4px 24px 20px;
  overflow-x: auto;
  overflow-y: visible;
  box-sizing: border-box;
}
.tp-bracket-rounds {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  align-items: stretch;
  min-width: min-content;
}
.tp-round-title {
  font-family: var(--typography-eyebrow-font-family), 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tp-round-title .tp-round-count {
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-dim, var(--text-muted));
}
.tp-round-col {
  display: flex;
  flex-direction: column;
}
.tp-round-body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 8px;
  flex: 1;
}
.tp-match {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.02);
}
.tp-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tp-match-no {
  font-size: 0.68rem;
  letter-spacing: 0.6px;
  color: var(--text-dim, var(--text-muted));
  font-weight: 700;
}
.tp-match.is-live {
  border-color: rgba(255, 176, 46, 0.45);
}
.tp-badge-complete {
  background: rgba(46, 168, 101, 0.14);
  color: var(--positive-soft, var(--green));
  font-size: 0.62rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 800;
}
.tp-badge-ready {
  background: rgba(255, 176, 46, 0.14);
  color: var(--primary, var(--gold));
  font-size: 0.62rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 800;
}
.tp-badge-waiting {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim, var(--text-muted));
  font-size: 0.62rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 800;
}
.tp-seat-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.tp-seat-name .cfp-team-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-seed-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-dim, var(--text-muted));
  margin-right: 5px;
}
.tp-score {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  min-width: 22px;
  text-align: right;
}
.tp-seat-win .tp-score,
.tp-seat-win .tp-seat-name {
  color: var(--positive-soft, var(--green));
}
.tp-seat-win {
  border-color: rgba(46, 168, 101, 0.4);
}
.tp-seat-lose {
  opacity: 0.55;
}
.tp-seat-tbd {
  border-style: dashed;
  opacity: 0.5;
}
.tp-score-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.tp-score-entry .form-control {
  width: 52px;
  text-align: center;
}

/* Draft page */
.tp-draft-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
.tp-draft-rail {
  position: sticky;
  top: 72px;
}
@media (max-width: 1024px) {
  .tp-draft-layout {
    grid-template-columns: 1fr;
  }
  .tp-draft-rail {
    position: static;
  }
}
.tp-seed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 6px;
  cursor: grab;
}
.tp-seed-row:hover {
  border-color: var(--text-dim, var(--text-muted));
}
.tp-seed-row .tp-seed-ord {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary, var(--gold));
  width: 26px;
  flex-shrink: 0;
}
.tp-seed-grip {
  color: var(--text-dim, var(--text-muted));
  font-size: 0.9rem;
  cursor: grab;
}
.tp-seed-open {
  flex: 1;
  color: var(--text-dim, var(--text-muted));
  font-style: italic;
  font-size: 0.82rem;
}
.tp-seed-row.is-open {
  border-style: dashed;
  background: transparent;
}

/* Organizer tools */
.tp-organizer-tools {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface, var(--bg-card));
  margin-top: 24px;
}
.tp-organizer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.tp-organizer-body {
  border-top: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Empty / not-found */
.tp-blank {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--rounded-xl, var(--radius));
  background: var(--surface, var(--bg-card));
}
.tp-blank-glyph {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
}
.tp-blank h3 {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.4rem;
  color: var(--text-strong, var(--text-primary));
  margin-bottom: 6px;
}
.tp-blank p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 46ch;
  margin: 0 auto 18px;
}
.tp-blank-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Read-only spectator strip */
.tp-spectator-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Dashboard tournament cards */
.tournament-card {
  cursor: pointer;
}
.tournament-hub-card {
  border-style: dashed;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* #3947 / #5060 — approved OCR triage deck (design 5060-ocr-triage-linked-captures).
   One compact recruit bar, one correction bar, then the source screenshot beside
   (desktop) or above (iPad portrait / phone) the read values. */
.ingest-triage-deck {
  overflow: visible;
  outline: none;
}
.ingest-triage-deck:focus-visible {
  box-shadow: 0 0 0 2px var(--primary);
}
.ingest-triage-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.ingest-triage-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}
.ingest-triage-headline h3 {
  margin: 0;
  font-size: 1.1rem;
}
.ingest-triage-headline > span:not(.ingest-triage-pills),
.ingest-triage-muted,
.ingest-triage-keyboard-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.ingest-triage-pills {
  display: inline-flex;
  gap: 8px;
}
.ingest-triage-confirmbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.ingest-triage-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ingest-triage-progress {
  display: flex;
  flex-basis: 100%;
  gap: 4px;
}
.ingest-triage-progress-segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.ingest-triage-progress-segment.is-done {
  background: var(--positive, var(--green));
}
.ingest-triage-progress-segment.is-active {
  background: var(--primary, var(--gold));
}
.ingest-triage-pill {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.ingest-triage-pill.is-red {
  color: var(--red, #f85149);
}
.ingest-triage-pill.is-blue {
  color: var(--link, #58a6ff);
}
.ingest-triage-pill.is-green {
  color: var(--green, #3fb950);
}
.ingest-triage-pill.is-grey {
  color: var(--text-dim, var(--text-muted));
}
.ingest-triage-deck .is-red {
  color: var(--red, #f85149);
}
.ingest-triage-deck .is-blue {
  color: var(--link, #58a6ff);
}
.ingest-triage-deck .is-green {
  color: var(--green, #3fb950);
}
.ingest-triage-deck .is-amber {
  color: var(--primary, #ffb02e);
}
.ingest-triage-deck .is-dim {
  color: var(--text-dim, var(--text-muted));
}

/* Recruit bar (replaces the old queue rail). */
.ingest-triage-recruit-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ingest-triage-recruit-id {
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.ingest-triage-recruit-id strong {
  font-size: 1rem;
}
.ingest-triage-matchnote {
  flex-basis: 100%;
  padding-left: 18px;
  color: var(--text-dim, var(--text-muted));
  font-size: 0.75rem;
}
.ingest-triage-recruit-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.ingest-triage-dots {
  display: flex;
  gap: 5px;
}
.ingest-triage-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text-dim, #6e7681);
}
button.ingest-triage-dot {
  cursor: pointer;
  opacity: 0.55;
  transition: width 0.15s;
}
button.ingest-triage-dot.is-active {
  width: 22px;
  border-radius: 999px;
  opacity: 1;
}
.ingest-triage-dot.is-red {
  background: var(--red, #f85149);
}
.ingest-triage-dot.is-blue {
  background: var(--link, #58a6ff);
}
.ingest-triage-dot.is-green {
  background: var(--green, #3fb950);
}
.ingest-triage-dot.is-grey {
  background: var(--text-dim, #6e7681);
}

/* Correction bar: badge + message, one field per disputed value, Skip / Apply. */
.ingest-triage-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ingest-triage-correction-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  align-items: start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ingest-triage-correction-bar.is-red {
  border-color: var(--red, #f85149);
  background: rgba(248, 81, 73, 0.06);
}
.ingest-triage-correction-bar.is-blue {
  border-color: var(--link, #58a6ff);
  background: rgba(88, 166, 255, 0.06);
}
.ingest-triage-correction-bar.is-green {
  border-color: var(--green, #3fb950);
  background: rgba(63, 185, 80, 0.06);
}
.ingest-triage-correction-head {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
}
.ingest-triage-correction-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ingest-triage-correction-msg {
  font-size: 0.95rem;
}
.ingest-triage-correction {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ingest-triage-correction-label,
.ingest-triage-card-title,
.ingest-triage-section-title,
.ingest-triage-pane-title {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ingest-triage-correction .form-control {
  width: 100%;
  min-height: 36px;
}
.ingest-triage-correction .is-red {
  border-color: var(--red, #f85149);
}
.ingest-triage-reads {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ingest-triage-read {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.ingest-triage-read.is-off {
  color: var(--red, #f85149);
}
.ingest-triage-bar-actions {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ingest-triage-actions-pos {
  display: none;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.ingest-triage-resolved {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ingest-triage-resolved.is-applied {
  border-color: var(--green, #3fb950);
}
.ingest-triage-resolved-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Body: source screenshot beside the read values (desktop). */
.ingest-triage-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.ingest-triage-source {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface, var(--bg-card));
  position: sticky;
  top: calc(var(--incident-banner-height, 0px) + 72px);
}
.ingest-triage-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: var(--surface, var(--bg-card));
}
.ingest-triage-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 44px;
  padding: 9px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary, var(--text));
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.ingest-triage-tab small {
  font-size: 0.7rem;
  font-weight: 500;
}
.ingest-triage-tab.is-active {
  border-bottom-color: var(--primary, var(--gold));
  color: var(--text-strong, #fff);
}
.ingest-triage-tab.is-missing {
  opacity: 0.6;
  cursor: default;
}
.ingest-triage-tabs-note {
  align-self: center;
  margin-left: auto;
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 0.7rem;
}
.ingest-triage-image-link {
  display: block;
  aspect-ratio: 1400 / 862;
  overflow: hidden;
  background: var(--surface-deep, var(--page));
}
.ingest-triage-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.ingest-triage-image-missing {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin: 14px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  text-align: center;
}
.ingest-triage-values {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ingest-triage-card-title,
.ingest-triage-section-title,
.ingest-triage-pane-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.ingest-triage-section-title {
  border-top: 1px solid var(--border);
}
.ingest-triage-card-title small,
.ingest-triage-section-title small,
.ingest-triage-pane-title span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.ingest-triage-diff .ingest-triage-card-title {
  background: rgba(88, 166, 255, 0.06);
  color: var(--link, #58a6ff);
}
.ingest-triage-grid,
.ingest-triage-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 1px;
  background: var(--border);
}
.ingest-triage-rows--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ingest-triage-rows {
  grid-template-columns: minmax(0, 1fr);
}
.ingest-triage-cell,
.ingest-triage-row {
  background: var(--surface, var(--bg-card));
}
.ingest-triage-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
}
.ingest-triage-cell-row,
.ingest-triage-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ingest-triage-row {
  padding: 9px 14px;
  font-size: 0.8rem;
}
.ingest-triage-row-edit,
.ingest-triage-row-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.ingest-triage-cell-row > span:first-child {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ingest-triage-cell small {
  font-size: 0.7rem;
  text-align: right;
}
.ingest-triage-value {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 60%;
  min-height: 32px;
  font-weight: 700;
  text-align: right;
}
.ingest-triage-row .ingest-triage-value {
  flex: none;
  width: 110px;
}
.ingest-triage-note {
  margin: 0;
  padding: 10px 14px;
}

/* Finish + imported screens. */
.ingest-triage-finish {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 960px;
}
.ingest-triage-finish h3,
.ingest-triage-imported h3 {
  margin: 0 0 4px;
}
.ingest-triage-finish-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ingest-triage-finish-row {
  display: grid;
  grid-template-columns: 220px 130px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.ingest-triage-finish-row:last-child {
  border-bottom: 0;
}
.ingest-triage-finish-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.ingest-triage-finish-meta,
.ingest-triage-finish-changes {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
}
.ingest-triage-finish-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Legacy (non-recruit) item body: detail pane. */
.ingest-triage-detail,
.ingest-triage-fields,
.ingest-triage-reason {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface, var(--bg-card));
}
.ingest-triage-fields {
  overflow: hidden;
}
.ingest-triage-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}
.ingest-triage-reason {
  padding: 14px;
}
.ingest-triage-reason small {
  margin-left: 8px;
  color: var(--text-dim, var(--text-muted));
}
.ingest-triage-reason p {
  margin: 10px 0 0;
  line-height: 1.5;
}
.ingest-triage-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.ingest-triage-field-row:last-child {
  border-bottom: 0;
}
.ingest-triage-field-row > span,
.ingest-triage-field-row > label {
  color: var(--text-dim, var(--text-muted));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.ingest-triage-field-row.is-disputed {
  background: rgba(255, 176, 46, 0.07);
}
.ingest-triage-field-row .form-control {
  width: min(190px, 62%);
}
.ingest-triage-detail > .ingest-triage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.ingest-triage-detail > .ingest-triage-actions .btn:first-child {
  flex: 1;
}
.ingest-triage-detail > .ingest-triage-actions .btn:last-child {
  flex: 2;
}
.ingest-triage-keyboard-hint {
  text-align: right;
}

/* iPad portrait and phone: screenshot stacked above the values, never sticky. */
@media (max-width: 1024px) {
  .ingest-triage-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .ingest-triage-source {
    position: static;
  }
  .ingest-triage-keyboard-hint {
    display: none;
  }
  .ingest-triage-detail > .ingest-triage-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 0;
    background: var(--surface, var(--bg-card));
  }
}

/* Phone: single column, equal-width tabs, Skip / Apply pinned to the bottom, 44px targets. */
@media (max-width: 480px) {
  .ingest-triage-deck {
    margin-inline: -8px;
    padding-inline: 10px;
    padding-bottom: 84px;
  }
  .ingest-triage-dots {
    display: none;
  }
  .ingest-triage-tab {
    flex: 1 1 0;
    padding: 9px 12px;
  }
  .ingest-triage-tabs-note {
    display: none;
  }
  .ingest-triage-bar-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface, var(--bg-card));
  }
  .ingest-triage-actions-pos {
    display: inline;
  }
  .ingest-triage-deck .btn,
  .ingest-triage-deck .form-control,
  .ingest-triage-tab,
  button.ingest-triage-dot {
    min-height: 44px;
  }
  .ingest-triage-nav {
    min-width: 44px;
  }
  .ingest-triage-rows--two {
    grid-template-columns: minmax(0, 1fr);
  }
  .ingest-triage-finish-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }
  .ingest-triage-finish-changes {
    grid-column: 1 / -1;
  }
  .ingest-triage-counts .badge {
    font-size: 0.65rem;
  }
  .ingest-triage-field-row {
    align-items: stretch;
    flex-direction: column;
  }
  .ingest-triage-field-row .form-control {
    width: 100%;
  }
}

/* Bowl slate */
.bowls-shell,
.bowls-week {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bowls-week {
  gap: 8px;
}
.bowls-hero {
  border-left: 3px solid var(--primary);
  padding: 20px;
}
.bowls-hero-top,
.bowls-toolbar,
.bowls-week-head,
.bowls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.bowls-toolbar {
  padding: 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}
.bowls-progress {
  height: 6px;
  min-width: 150px;
  flex: 1;
  max-width: 260px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}
.bowls-progress > span {
  display: block;
  height: 100%;
  background: var(--positive);
}
.bowls-week-head {
  padding: 10px 13px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
}
.bowls-row {
  padding: 10px 14px;
  min-height: 54px;
}
.bowls-row.is-unfilled {
  border-style: dashed;
  background: var(--surface-deep);
}
.bowls-bowl-name,
.bowls-team {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bowls-bowl-name {
  width: 220px;
  font-weight: 700;
  flex-shrink: 0;
}
.bowls-bowl-name .bowl-badge {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.bowls-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  flex: 1;
}
.bowls-team {
  gap: 7px;
  min-width: 0;
}
.bowls-team--winner .bowls-score {
  color: var(--positive);
}
.bowls-score {
  margin-left: auto;
  font-size: 15px;
}
.bowls-vs {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
}
.bowls-unfilled-copy {
  flex: 1;
  color: var(--text-dim);
}
.bowls-edit {
  flex-shrink: 0;
}
.bowls-note,
.bowls-error {
  font-size: 12px;
}
.bowls-note {
  color: var(--text-muted);
  line-height: 1.6;
}
.bowls-playoff-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.bowls-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bowls-modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bowls-error {
  color: var(--danger);
  margin-top: 10px;
}

@media (max-width: 640px) {
  .bowls-hero-top,
  .bowls-row {
    align-items: stretch;
    flex-direction: column;
  }
  .bowls-bowl-name {
    width: auto;
  }
  .bowls-matchup {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .bowls-vs {
    display: none;
  }
  .bowls-edit,
  .bowls-toolbar .btn {
    width: 100%;
  }
  .bowls-modal-grid {
    grid-template-columns: 1fr;
  }
  .bowls-team {
    min-height: 32px;
  }
}
/* ====================================================
   Account profile — cross-league public view (#3780)
   ==================================================== */
.account-profile-page {
  max-width: 1240px;
  display: grid;
  gap: 20px;
}

.account-profile-loading,
.account-profile-private {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-muted);
}

.account-profile-private h1,
.account-profile-header h1,
.account-profile-section-heading h2,
.account-profile-section-title h2,
.account-profile-karma-copy h2 {
  margin: 0;
}

.account-profile-private p,
.account-profile-header p,
.account-profile-karma-copy p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.account-profile-preview-banner {
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.account-profile-preview-banner .btn {
  margin-left: 14px;
}

.account-profile-ownerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid #4a3a12;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: #1a1508;
}

.account-profile-ownerbar > div:first-child {
  display: grid;
  gap: 4px;
}

.account-profile-ownerbar strong {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-profile-ownerbar span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.account-profile-owner-actions,
.account-profile-header,
.account-profile-karma,
.account-profile-section-heading,
.account-profile-section-title {
  display: flex;
  align-items: center;
}

.account-profile-owner-actions {
  gap: 8px;
  flex: none;
}

.account-profile-header {
  gap: 16px;
  padding: 4px 0;
}

.account-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent);
  color: #17181c;
  font-family: var(--typography-display-font-family);
  font-size: 1.35rem;
  font-weight: 800;
}

.account-profile-header h1,
.account-profile-private h1 {
  font-family: var(--typography-display-font-family);
  font-size: 2rem;
}

.account-profile-karma {
  gap: 28px;
  padding: 22px 24px;
}

.account-profile-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.account-profile-empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 1.5rem;
}

.account-profile-empty h2,
.account-profile-empty p {
  margin: 0;
}

.account-profile-empty p {
  margin-top: 5px;
  color: var(--text-muted);
}

.account-profile-karma-ring {
  width: 108px;
  height: 108px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  flex: none;
}

.account-profile-karma-ring strong,
.account-profile-source-count strong,
.account-profile-stats strong {
  color: var(--accent);
  font-family: var(--typography-display-font-family);
  font-weight: 800;
}

.account-profile-karma-ring strong {
  font-size: 1.8rem;
  line-height: 1;
}

.account-profile-karma-ring span,
.account-profile-source-count span,
.account-profile-stats span {
  color: var(--text-muted);
  font-family: var(--typography-display-font-family);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-profile-karma-copy {
  flex: 1;
}

.account-profile-karma-copy h2 {
  font-family: var(--typography-display-font-family);
}

.account-profile-karma-delta {
  display: block;
  margin-top: 6px;
  color: var(--success);
  font-family: var(--typography-display-font-family);
  font-size: 1.15rem;
}

.account-profile-source-count {
  display: grid;
  gap: 3px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.account-profile-source-count strong {
  font-size: 1.7rem;
}

.account-profile-section {
  padding: 0;
  overflow: hidden;
}

.account-profile-section-title,
.account-profile-section-heading {
  justify-content: space-between;
  gap: 16px;
}

.account-profile-section-title {
  padding: 17px 22px;
}

.account-profile-section-title h2,
.account-profile-section-heading h2 {
  font-size: 1rem;
}

.account-profile-section-title span,
.account-profile-section-heading span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.account-profile-sources {
  border-top: 1px solid var(--border);
}

.account-profile-source {
  display: grid;
  grid-template-columns: minmax(210px, 260px) 1fr 80px;
  align-items: center;
  gap: 20px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
}

.account-profile-source:last-child {
  border-bottom: 0;
}

.account-profile-source > div:first-child {
  display: grid;
  gap: 3px;
}

.account-profile-source strong {
  font-size: 0.83rem;
}

.account-profile-source small {
  color: var(--text-muted);
  line-height: 1.35;
}

.account-profile-source > b {
  color: var(--accent);
  font-family: var(--typography-display-font-family);
  text-align: right;
}

.account-profile-source.is-excluded > b {
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
}

.account-profile-source-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-base);
}

.account-profile-source-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ff8f3c);
}

.account-profile-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}

.account-profile-table-wrap table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.account-profile-table-wrap th,
.account-profile-table-wrap td {
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.82rem;
}

.account-profile-table-wrap th {
  color: var(--text-muted);
  background: var(--bg-base);
  font-family: var(--typography-display-font-family);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-profile-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.account-profile-positive {
  color: var(--success);
  font-weight: 700;
}

.account-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.account-profile-stats > div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.account-profile-stats strong {
  font-size: 2rem;
  line-height: 1;
}

.account-profile-stats small {
  color: var(--text-muted);
}

.account-profile-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 22px 20px;
}

.account-profile-teams span {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-base);
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .account-profile-ownerbar,
  .account-profile-karma,
  .account-profile-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-profile-owner-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .account-profile-owner-actions .btn {
    flex: 1;
  }

  .account-profile-karma-ring {
    width: 92px;
    height: 92px;
  }

  .account-profile-source-count {
    width: 100%;
  }

  .account-profile-source {
    grid-template-columns: 1fr 64px;
    gap: 10px;
  }

  .account-profile-source-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .account-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .account-profile-header h1 {
    font-size: 1.65rem;
  }

  .account-profile-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-profile-stats {
    grid-template-columns: 1fr;
  }
}
/* CFP bracket pick'em (#4143) */
.bracket-pickem {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bracket-pickem-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-left: 4px solid var(--primary);
  background: var(--surface);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
}
.bracket-pickem-heading h2 {
  margin: 3px 0 5px;
}
.bracket-pickem-heading p {
  margin: 0 0 7px;
  color: var(--text-muted);
}
.bracket-pickem-heading small {
  color: var(--text-muted);
}
.bracket-pickem-toggle {
  display: flex;
  gap: 8px;
}
.bracket-pickem-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.bracket-pickem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(290px, 1fr));
  min-width: 1180px;
}
.bracket-pickem-grid.is-size-4 {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  min-width: 680px;
}
.bracket-pickem-round {
  padding: 16px;
  border-right: 1px solid var(--border);
}
.bracket-pickem-round:last-child {
  border-right: 0;
}
.bracket-pickem-round-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.bracket-pickem-round-head strong {
  margin-right: auto;
  color: var(--primary);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bracket-pickem-games {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 18px;
  height: calc(100% - 32px);
}
.bracket-pickem-matchup {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-deep);
}
.bracket-pickem-matchup > header {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bracket-pickem-team {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-top: 1px solid var(--border);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.bracket-pickem-team:hover:not(:disabled),
.bracket-pickem-team:focus-visible {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.bracket-pickem-team.is-selected {
  box-shadow: inset 3px 0 0 var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.bracket-pickem-team:disabled {
  cursor: default;
  opacity: 1;
}
.bracket-pickem-team .tl {
  flex: 1;
  min-width: 0;
}
.bracket-pickem-team.is-tbd {
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-muted);
}
.bracket-pickem-team.is-tbd small {
  font-size: 11px;
}
.bracket-pickem-seed {
  width: 18px;
  flex: none;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}
.bracket-pickem-check {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-weight: 800;
}
.is-selected .bracket-pickem-check {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--surface-deep);
}
.bracket-pickem-save {
  position: sticky;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.bracket-pickem-save span {
  color: var(--text-muted);
}
.bracket-pickem-pager {
  display: none;
}
.bracket-pickem-leaderboard details {
  margin-top: 4px;
  max-width: 560px;
}
.bracket-pickem-leaderboard summary {
  cursor: pointer;
  color: var(--primary);
}
.bracket-pickem-champion-mark {
  margin-left: 6px;
  font-weight: 800;
}
.bracket-pickem-champion-mark.is-hit {
  color: var(--green);
}
.bracket-pickem-champion-mark.is-miss {
  color: var(--text-muted);
}
.bracket-pickem-footnote {
  color: var(--text-muted);
}
.bracket-pickem-footnote {
  margin: 12px 0 0;
  font-size: 12px;
}
@media (max-width: 768px) {
  .bracket-pickem-heading {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .bracket-pickem-pager {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }
  .bracket-pickem-pager span {
    font-size: 11px;
    color: var(--text-muted);
  }
  .bracket-pickem-scroll {
    overflow: visible;
    border: 0;
  }
  .bracket-pickem-grid,
  .bracket-pickem-grid.is-size-4 {
    display: block;
    min-width: 0;
  }
  .bracket-pickem-round {
    display: none;
    padding: 8px 0;
    border: 0;
  }
  .bracket-pickem-round.is-active {
    display: block;
  }
  .bracket-pickem-round-head strong {
    display: none;
  }
  .bracket-pickem-save {
    bottom: 4px;
    flex-direction: column;
    gap: 2px;
  }
}

/* #4090: audited C-F visual classes. Feature rules replace their former
   inline declarations; generic utilities fill missing shared treatment. */
.carousel-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.cc-add-prompt-form {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.cc-advanced-setup-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.cfp-dropped-out-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.champion-banner {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.changeover-commissioner-task-grid {
  margin-top: 14px;
}
.changeover-steps-done {
  margin: 0 0 12px 0;
}
.changeover-wrapup-section {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.coach-goals-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.coaching-activity {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.coaching-moves-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comp-card-notes {
  margin-bottom: 12px;
}
.conf-alignment-group {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
.conf-champ-chip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.conf-champs-section {
  margin-bottom: 16px;
}
.conference-group {
  margin-bottom: 16px;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  background: #0d1117;
}
.conference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #161b22;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: #e6edf3;
}
.container {
  margin-inline: auto;
}
.d-flex {
  display: flex;
}
.delta-neg {
  color: #f85149;
  font-size: 0.8rem;
}
.delta-neutral {
  color: #8b949e;
  font-size: 0.8rem;
}
.delta-pos {
  color: #3fb950;
  font-size: 0.8rem;
}
.depth-chart-slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dev-trait-container {
  position: relative;
}
.discovery-header {
  margin-bottom: 20px;
}
.dispute-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.error-state {
  text-align: center;
  color: var(--text-danger);
}
.expectation-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.expectations-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feed-section {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px 16px;
  align-items: center;
}
.finalist-card {
  text-align: left;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.finalist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.finalists-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.flex-1 {
  flex: 1;
}
.flex-wrap {
  flex-wrap: wrap;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.font-semibold {
  font-weight: 600;
}
.font-weight-bold {
  font-weight: 700;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.form-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* G–M phantom-class audit (#4091): presentation extracted from render sites. */
.gameplay-subsection {
  margin-top: 12px;
  margin-bottom: 16px;
}
.goals-section {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.goals-tab-toggle {
  display: flex;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.historical-backfill-banner {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.home-changeover-checklist-card {
  margin-bottom: 14px;
}
.home-changeover-checklist-done {
  margin-bottom: 14px;
}
.home-member-prep-card {
  margin-bottom: 14px;
}
.home-season-setup-done {
  margin-bottom: 14px;
}
.hot-seat-ranking-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.ingest-preview-content {
  flex: 1;
  min-width: 300px;
}
.ingest-reclassify-section {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
}
.initial-alignment-content {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.initial-alignment-details {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.initial-alignment-summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  user-select: none;
  cursor: pointer;
}
.league-recruiting-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lookup-toggle {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.my-recruiting-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Compact flex utilities used by recruiting, coaching, and companion controls. */
.gap-4 {
  gap: 4px;
}
.items-center {
  align-items: center;
}
.justify-between,
.justify-content-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.home-title-block {
  min-width: 0;
}
.inline-help-icon {
  line-height: 1;
}
.md-image {
  max-width: 100%;
  height: auto;
}

/* Public roster highlights and view selection. */
.highlight-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  text-align: center;
}
.hl-val {
  font-size: 1.4rem;
  font-weight: 700;
}
.hl-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.mode-toggle-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mode-toggle-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
}
.mode-toggle-btn:hover,
.mode-toggle-btn.active {
  background: var(--primary);
  color: var(--on-primary);
}

/* Standalone overlays and shared modal shells also used outside #modal-root. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal-card,
.modal-content {
  width: 100%;
  max-width: 720px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}
.modal-card {
  position: relative;
}
.modal.modal-lg {
  max-width: 960px;
}

/* Dashboard live indicator, moved out of the conditional render template. */
@keyframes live-pulse {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}
.live-pulse {
  animation: live-pulse 1.8s infinite ease-in-out;
}

/* Keep the current-week title and schedule action inside narrow home cards. */
.home-hub-schedule .home-section-header {
  flex-wrap: wrap;
  gap: 8px;
}

/* Issue #4191: Prospect drilldown page and recruit profile navigation links */
.prospect-drilldown-page {
  padding: 16px;
}

.prospect-back-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}

.prospect-back-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.recruit-profile-link {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.recruit-profile-link:hover {
  text-decoration: underline;
}

/* Coach Profile archetype hub (#3988): approved radial desktop + mobile canvas. */
.archetype-builder {
  margin-bottom: 28px;
  color: var(--text-primary);
}
.archetype-detail {
  min-width: 0;
}
.archetype-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.archetype-detail-title {
  flex: 1;
  margin: 0;
  font-size: 28px;
  min-width: 0;
}
.archetype-coin-balance {
  color: var(--accent, #ffb02e);
  white-space: nowrap;
  font-size: 22px;
}
.archetype-coin-balance small {
  font-size: 12px;
  text-transform: uppercase;
}
.archetype-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.archetype-tree-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.archetype-tree-section,
.archetype-skill-detail {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card, #0d1014);
  padding: 22px;
  min-width: 0;
}
.archetype-skill-detail {
  position: sticky;
  top: 80px;
}
.archetype-tree-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.archetype-tree-heading h5 {
  flex: 1;
  margin: 0;
  font-size: 26px;
  overflow-wrap: anywhere;
}
.archetype-tree-heading > span {
  font-size: 11px;
  color: var(--text-muted);
}
.archetype-perk {
  margin-bottom: 20px;
}
.archetype-unlock-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.archetype-achievement {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.archetype-achievement.is-met p {
  color: #3fb950;
}
.archetype-perk h6 {
  font-size: 20px;
  margin: 6px 0;
}
.archetype-skill-tier > h6,
.archetype-unlock-requirements > h6 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 12px;
}
.archetype-skill-cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.archetype-skill-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 112px;
  padding: 10px 6px;
  color: var(--text-primary);
  background: linear-gradient(165deg, #1e232b, #0e1115);
  border: 2px solid #c9463c;
  border-radius: 12px;
  cursor: pointer;
}
.archetype-cell-name {
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.archetype-skill-cell strong {
  font-size: 20px;
}
.archetype-skill-cell small {
  font-size: 10px;
  color: var(--text-muted);
}
.archetype-skill-cell[aria-pressed='true'] {
  border-color: #ffb02e;
  box-shadow: 0 0 0 2px rgb(255 176 46 / 20%);
}
.archetype-tree-section.is-locked .archetype-skill-cell {
  background: #11151a;
  border-color: #6b4a22;
  color: #a3aab5;
}
.archetype-tree-section.is-locked .archetype-skill-cell[aria-pressed='true'] {
  border-color: #ffb02e;
}
.archetype-unlock-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.archetype-unlock-requirements > h6,
.archetype-unlock-requirements > p {
  grid-column: 1 / -1;
}
.archetype-unlock-requirements .archetype-meter span {
  background: repeating-linear-gradient(45deg, #ffb02e 0 4px, #8a621e 4px 8px);
}
.archetype-unlock-requirements .is-met .archetype-meter span {
  background: #3fb950;
}
.archetype-rank-heading {
  display: flex;
  gap: 14px;
  align-items: start;
}
.archetype-rank-heading h5 {
  font-size: 26px;
  margin: 4px 0 8px;
}
.archetype-rank-count {
  border: 1px solid #ffb02e;
  border-radius: 8px;
  padding: 8px;
  color: #ffb02e;
  font-size: 22px;
  white-space: nowrap;
}
.archetype-rank-list {
  padding: 0;
  margin: 22px 0 14px;
  list-style: none;
}
.archetype-rank-list li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--border);
}
.archetype-rank-list li > div {
  flex: 1;
  min-width: 0;
}
.archetype-rank-list li > div > strong {
  display: block;
  margin-bottom: 6px;
}
.archetype-rank-list .is-next {
  background: rgb(255 255 255 / 4%);
  border-radius: 10px;
}
.archetype-rank-list .is-owned > span {
  color: #3fb950;
}
.archetype-rank-list .is-future {
  color: var(--text-muted);
}
.archetype-rank-cost {
  font-size: 12px;
  white-space: nowrap;
  color: #c49b42;
}
.archetype-rank-list button {
  min-height: 44px;
  white-space: nowrap;
}
.archetype-rank-list button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.archetype-purchase-note {
  padding-top: 10px;
}
.archetype-rank-list li p {
  margin: 4px 0 0;
}
.archetype-role-value {
  font-size: 12px;
  color: #c49b42;
}
@media (max-width: 640px) {
  /* The detail header replaces the three navigation bars on the approved mobile view. */
  body:has(.archetype-detail) .navbar,
  body:has(.archetype-detail) .nav-sections-bar,
  body:has(.archetype-detail) .tabs-bar {
    display: none;
  }
  .archetype-detail-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg-card, #0d1014);
    padding: 8px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
  }
  .archetype-detail-header > button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }
  .archetype-detail-header > button span {
    display: none;
  }
  .archetype-detail-title {
    font-size: 21px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .archetype-coin-balance {
    font-size: 18px;
  }
  .archetype-coin-balance small {
    font-size: 10px;
  }
  .archetype-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .archetype-tree-section,
  .archetype-skill-detail {
    padding: 14px;
  }
  .archetype-skill-detail {
    position: static;
  }
  .archetype-tree-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .archetype-tree-heading h5 {
    flex-basis: calc(100% - 64px);
  }
  .archetype-tree-heading > .archetype-unlock-button,
  .archetype-tree-heading > span {
    margin-left: 64px;
  }
  .archetype-tree-heading img {
    width: 56px;
    height: 56px;
  }
  .archetype-tree-heading h5 {
    font-size: 23px;
  }
  .archetype-skill-cells {
    gap: 8px;
  }
  .archetype-skill-cell {
    min-height: 100px;
    padding: 8px 4px;
  }
  .archetype-cell-name {
    font-size: 11px;
  }
  .archetype-skill-cell small {
    font-size: 9px;
  }
  .archetype-unlock-requirements {
    grid-template-columns: minmax(0, 1fr);
  }
  .archetype-rank-list li {
    flex-wrap: wrap;
  }
  .archetype-rank-list button {
    flex-basis: 100%;
    min-height: 46px;
  }
}
.archetype-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.archetype-header h4 {
  margin: 0;
  font-size: 24px;
}
.archetype-builder p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.archetype-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 20px;
  align-items: start;
}
.archetype-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #0d1014;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.archetype-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.archetype-grid {
  stroke: #303641;
  stroke-width: 1.2;
  fill: none;
}
.archetype-edge {
  fill: none;
  stroke-width: 2.5;
  opacity: 0.85;
}
.edge-recruiter {
  stroke: #c96a63;
}
.edge-tactician {
  stroke: #5b8cf5;
  stroke-dasharray: 7 5;
}
.edge-motivator {
  stroke: #d9a441;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
}
.archetype-center {
  position: absolute;
  left: 50%;
  top: 62.5%;
  transform: translate(-50%, -50%);
  width: 18.75%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  clip-path: polygon(50% 0%, 96% 27%, 96% 73%, 50% 100%, 4% 73%, 4% 27%);
  background: radial-gradient(circle at 50% 35%, #3a3018 0%, #14161b 78%);
  box-shadow: inset 0 0 0 3px var(--gold);
}
.archetype-center strong {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  font-size: clamp(26px, 3.5vw, 62px);
  color: var(--gold);
  line-height: 1;
}
.archetype-center span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
}
.archetype-center small {
  font-size: 10px;
  color: var(--text-muted);
}
.archetype-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 11.8%;
  aspect-ratio: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  color: var(--text-primary);
}
.archetype-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px #0009);
}
.archetype-badge.is-locked img {
  filter: grayscale(0.65) brightness(0.5) drop-shadow(0 4px 6px #0009);
}
.archetype-badge-chip {
  position: absolute;
  right: 0;
  bottom: 2px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0d1014;
  border: 1.5px solid #596370;
  font-size: 13px;
  font-weight: 800;
}
.badge-recruiter {
  left: 24.107%;
  top: 62.5%;
}
.badge-tactician {
  left: 62.946%;
  top: 84.911%;
}
.badge-motivator {
  left: 62.946%;
  top: 40.089%;
}
.badge-talent {
  left: 37.054%;
  top: 40.089%;
}
.badge-strategist {
  left: 37.054%;
  top: 84.911%;
}
.badge-architect {
  left: 75.893%;
  top: 62.5%;
}
.badge-program {
  left: 50%;
  top: 26.786%;
}
.badge-ceo {
  left: 50%;
  top: 13.393%;
}
.archetype-badge[aria-pressed='true'],
.archetype-badge.is-selected-tree {
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 22px #ffb02e44;
}
.archetype-builder button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.archetype-wheel-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
}
.archetype-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.archetype-selected,
.archetype-list {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
}
.archetype-selected {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-color: var(--gold);
}
.archetype-selected.requirements-unavailable {
  border: 2px dotted var(--gold);
}
.archetype-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: var(--text-muted);
  margin: 0;
}
.archetype-selected h5 {
  font-family: var(--typography-headline-font-family), 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}
.archetype-requirement {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.archetype-meter-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}
.archetype-meter-label strong {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.archetype-meter {
  height: 7px;
  border-radius: 4px;
  background: #252a33;
  overflow: hidden;
}
.archetype-meter > span {
  height: 100%;
  display: block;
  background: repeating-linear-gradient(45deg, var(--gold) 0 4px, #ffb02e40 4px 8px);
}
.archetype-requirement.is-met .archetype-meter > span {
  background: #3fb950;
}
.archetype-breakdown {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.archetype-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.archetype-breakdown dd {
  margin: 0;
  white-space: nowrap;
}
.archetype-breakdown .is-counted {
  color: var(--text-primary);
  font-weight: 700;
}
.archetype-list-row {
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 2px;
  cursor: pointer;
}
.archetype-list-row[aria-pressed='true'] {
  color: var(--gold);
  background: #ffb02e10;
  box-shadow: inset 3px 0 var(--gold);
  padding-left: 8px;
}
.archetype-list-name {
  font-size: 13px;
}
.archetype-list-state {
  font-size: 11px;
  color: var(--text-muted);
}
.archetype-builder .archetype-legend {
  margin-top: 12px;
  font-size: 11px;
}
.legend-recruiter {
  color: #c96a63;
}
.legend-tactician {
  color: #6c9bff;
}
.legend-motivator {
  color: #d9a441;
}
.archetype-wheel .mobile-map,
.archetype-wheel .mobile-caption,
.archetype-mobile-summary {
  display: none;
}
@media (min-width: 640px) and (max-width: 1024px) {
  .archetype-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .archetype-wheel {
    max-width: 700px;
    margin-inline: auto;
  }
  .archetype-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 640px) {
  .archetype-header {
    display: block;
  }
  .archetype-header h4 {
    font-size: 23px;
    margin-bottom: 4px;
  }
  .archetype-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .archetype-rail {
    display: flex;
    flex-direction: column;
  }
  .archetype-mobile-summary {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-surface);
    margin-bottom: 16px;
    font-size: 12px;
  }
  .archetype-mobile-summary strong {
    color: var(--gold);
    font-size: 30px;
    line-height: 1;
    text-align: center;
  }
  .archetype-mobile-summary small {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    margin-top: 4px;
  }
  .archetype-wheel .desktop-map,
  .archetype-wheel .desktop-caption,
  .badge-ceo,
  .badge-program {
    display: none;
  }
  .archetype-wheel .mobile-map,
  .archetype-wheel .mobile-caption {
    display: block;
  }
  .archetype-center {
    top: 50%;
    width: 23.76%;
  }
  .archetype-center strong {
    font-size: 30px;
  }
  .archetype-center span {
    font-size: 8px;
  }
  .archetype-center small {
    display: none;
  }
  .archetype-badge {
    width: 17.68%;
  }
  .badge-recruiter {
    left: 14.09%;
    top: 50%;
  }
  .badge-tactician {
    left: 67.96%;
    top: 81.215%;
  }
  .badge-motivator {
    left: 67.96%;
    top: 18.785%;
  }
  .badge-talent {
    left: 32.04%;
    top: 18.785%;
  }
  .badge-strategist {
    left: 32.04%;
    top: 81.215%;
  }
  .badge-architect {
    left: 85.91%;
    top: 50%;
  }
  .archetype-badge-chip {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .archetype-builder .archetype-wheel-caption {
    bottom: 6px;
    font-size: 10px;
  }
  .archetype-selected,
  .archetype-list {
    padding: 13px;
  }
}

/* #4092: N-R phantom-class audit. Shared declarations extracted from renderers. */
.pickem-consensus {
  margin-top: 6px;
}
.players-leaving-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.poll-leader-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
}
.poll-leaders-strip {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.proposal-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-card);
}
.proposal-thread {
  background: var(--bg-hover);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}
.realignment-chip {
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.realignment-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.recap-browser {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.recruiting-activity {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.recruiting-class-rankings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rivalries-section {
  margin-top: 16px;
}
.rivalry-activity {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.rivalry-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.ovr-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.p-0 {
  padding: 0;
}
.p-3 {
  padding: 12px;
}
.player-link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.protected-slot-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rating-bar-bg {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
}
.records-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.roster-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.roster-select-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.roster-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.roster-table-wrapper {
  overflow-x: auto;
}
/* Public roster tables retain readable cells while the wrapper scrolls on phones. */
.roster-table th,
.roster-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.roster-table th[data-sort] {
  cursor: pointer;
}

/* Agreement slot variants retain their semantic markers and own their appearance. */
.timeline-slot-card.open {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  text-align: center;
}
.timeline-slot-card.rivalry {
  border: 1px solid var(--border-rivalry, #6a1b9a);
  border-radius: 8px;
  padding: 12px;
  background: rgba(106, 27, 154, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Formation and mobile names get the full row; list and modal layouts stay intact. */
.depth-chart-card-slot-row .depth-chart-slot-player {
  flex: 0 0 100%;
  order: -1;
  overflow-wrap: break-word;
  word-break: normal;
  min-height: 2.6em;
  line-height: 1.3;
}
.depth-chart-card-slot-row .depth-chart-slot-meta {
  flex-basis: 100%;
}
.depth-chart-projected-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.depth-chart-assign-control {
  padding: 8px;
}

/* S-Z phantom-class cleanup (#4093): presentation belongs in the stylesheet. */
.sa-row-title,
.team-name {
  font-weight: 600;
}
.se-add-player-row,
.se-player-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.se-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.se-field-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.se-player-fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.se-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.se-team-column {
  flex: 1;
  min-width: 260px;
}
.draft-status-badge.setup {
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.spinner,
.spinner-border {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: phantom-loading-spin 0.8s linear infinite;
}
@keyframes phantom-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner,
  .spinner-border {
    animation: none;
  }
}
.stream-card-hover {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.stream-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table-sm th,
.table-sm td {
  padding: 6px 8px;
}
.tb-rule-label {
  flex: 1;
  min-width: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  padding: 12px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
}
.team-card:hover {
  background: var(--bg-hover);
}
.team-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.team-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.text-blue {
  color: var(--blue);
}
.text-dark {
  color: #111827;
}
.text-ellipsis {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-primary {
  color: var(--accent);
}
.text-red {
  color: var(--danger);
}
.text-secondary,
.tie {
  color: var(--text-secondary);
}
.xp-slider-card {
  background: var(--bg-surface);
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.xp-slider-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.xp-slider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.xp-slider-row {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* ====================================================
   Issue #4530 — Stage Pass Grid (core desktop matrix)
   Built from design/stage-pass-grid's approved canvas. All colors use
   existing theme tokens (no new hex) per CLAUDE.md.
   ==================================================== */
.stage-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg, 11px);
  overflow: hidden;
}
.stage-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stage-grid-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stage-grid-cap-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.stage-grid-cap-bar {
  width: 90px;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.stage-grid-cap-fill {
  height: 100%;
  background: var(--primary);
}
.stage-grid-chip {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.stage-grid-chip--lockout {
  background: rgba(255, 59, 59, 0.12);
  border: 1px solid var(--red);
  color: var(--red);
}
.stage-grid-last-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-grid-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}
.stage-grid-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.stage-grid-filter-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stage-grid-pill {
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.stage-grid-pill.active {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}
.stage-grid-pill.chip-group-partial {
  color: var(--primary, var(--gold));
  border-color: var(--primary, var(--gold));
  background: transparent;
}
.stage-grid-filters .portal-member-chips {
  flex-basis: 100%;
  width: 100%;
  margin: 2px 0 6px 4px;
}

.stage-grid-crowded-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 176, 46, 0.08);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.stage-grid-scroll {
  max-height: 640px;
  overflow: auto;
}
.stage-grid-header-row,
.stage-grid-row {
  display: grid;
  align-items: stretch;
}
.stage-grid-header-row {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.stage-grid-row-label-head {
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--surface);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0 10px;
}
.stage-grid-col-head {
  font-family: var(--typography-headline-font-family, inherit);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-primary);
}
.stage-grid-row {
  border-bottom: 1px solid var(--border);
}
.stage-grid-row-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  padding: 8px 10px;
  border-left: 3px solid transparent;
}
.stage-grid-row-label-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.stage-grid-row-label-count {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.stage-grid-cell {
  min-height: 60px;
  padding: 6px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stage-grid-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px;
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stage-grid-card--locked {
  background: rgba(255, 59, 59, 0.1);
  border-color: var(--red);
}
.stage-grid-card--risk {
  border-color: var(--warning, #d97706);
}
.stage-grid-card--changed {
  border-color: var(--primary);
}
.stage-grid-card-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stage-grid-name-link {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-grid-name-link:hover {
  text-decoration: underline;
}
.stage-grid-nat {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-dim);
}
.stage-grid-remove {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.stage-grid-remove:hover {
  color: var(--red);
}
.stage-grid-meta {
  font-size: 0.65rem;
  color: var(--text-secondary);
}
.stage-grid-flag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  align-self: flex-start;
}
.stage-grid-flag--locked {
  color: var(--red);
  background: rgba(255, 59, 59, 0.14);
}
.stage-grid-flag--risk {
  color: var(--warning, #d97706);
  background: rgba(217, 119, 6, 0.14);
}
.stage-grid-flag--noschool {
  color: var(--warning, #d97706);
  background: rgba(217, 119, 6, 0.14);
  border: none;
  cursor: pointer;
  text-align: left;
}
.stage-grid-flag--noschool:hover {
  background: rgba(217, 119, 6, 0.25);
}
.stage-grid-flag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.stage-grid-flag-dot.stage-grid-flag--locked {
  background: var(--red);
}
.stage-grid-flag-dot.stage-grid-flag--risk {
  background: var(--warning, #d97706);
}
.stage-grid-flag-dot.stage-grid-flag--noschool {
  background: var(--warning, #d97706);
  border: none;
  padding: 0;
  cursor: pointer;
}
.stage-grid-flag-dot.stage-grid-flag--error {
  background: var(--red);
}
.stage-grid-card--error {
  border-color: var(--red);
}
.stage-grid-error {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--red);
}
.stage-grid-commit-chip {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(46, 168, 101, 0.15);
  color: var(--positive);
}
.stage-grid-change-note {
  font-size: 0.62rem;
  color: var(--primary);
}
.stage-grid-offboard {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
}
.stage-grid-offboard-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.stage-grid-offboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.stage-grid-offboard-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.stage-grid-spot-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ====================================================
   Issue #4814 — Stage grid: visit-week management (#4530 child 1/5)
   Built from design/stage-pass-grid's "Visits" handoff section.
   ==================================================== */
.stage-grid-visit {
  margin-top: 4px;
}
.stage-grid-visit-select {
  width: 100%;
  font-size: 0.68rem;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}
.stage-grid-visit--none {
  font-size: 0.6rem;
  color: var(--text-dim);
}
.stage-grid-visit-breakdown {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.stage-grid-visit-breakdown-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.stage-grid-visit-breakdown-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.stage-grid-visit-breakdown-weeks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.stage-grid-visit-week {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
}
.stage-grid-visit-week--full {
  border-color: var(--red);
}
.stage-grid-visit-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  margin-bottom: 6px;
}
.stage-grid-visit-week-label {
  font-weight: 700;
  color: var(--text-secondary);
}
.stage-grid-visit-week-count {
  font-size: 0.65rem;
  color: var(--text-dim);
}
.stage-grid-visit-week-booked {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stage-grid-visit-booked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.stage-grid-visit-booked-spot {
  color: var(--text-dim);
}
.stage-grid-visit-clear {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0 2px;
}
.stage-grid-visit-clear:hover {
  color: var(--red);
}
.stage-grid-visit-week-empty {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* ====================================================
   Issue #4815 — Stage grid: league activity and conflict detection on
   shared prospects (#4530 child 2/5). Built from design/stage-pass-grid's
   "League activity on shared prospects" handoff section. Colours are the
   approved literal values, not var(--*) tokens, exactly like the mockup
   specifies (#6f42c1 border, #1b1526 ground) -- a distinct hue from the
   red/amber lockout treatment above and the primary-blue "changed" note.
   ==================================================== */
.stage-grid-chip--conflict {
  background: rgba(111, 66, 193, 0.14);
  border: 1px solid #6f42c1;
  color: #6f42c1;
}
.stage-grid-card--conflict {
  background: #1b1526;
  border-color: #6f42c1;
}
.stage-grid-conflict-btn {
  width: 100%;
  border: 1px solid #6f42c1;
  border-radius: 5px;
  background: #2a1f42;
  color: #c4a6fd;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 4px 6px;
  cursor: pointer;
  text-align: center;
}
.stage-grid-conflict-btn:hover {
  background: #352654;
}
.stage-grid-conflict-btn--compact {
  width: auto;
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.62rem;
}
.stage-grid-notice {
  font-size: 0.62rem;
  color: var(--text-dim);
}

/* ====================================================
   Issue #4816 — Stage grid: stale rows -- untouched-since marker and
   filter (#4530 child 3/5). Built from design/stage-pass-grid's "Stale
   rows -- untouched since Wk N" handoff section. Deliberately neutral
   slate -- distinct from the red/amber lockout treatment, the purple
   #4815 conflict treatment, and the primary-blue "changed" note -- since
   this flags inattention, not a decision the user needs to make. Two
   literal slate tones (not var(--*) tokens; no slate token exists in
   theme.generated.css), the brighter one used at 4+ weeks per the AC.
   The mild tone #7b8aa3 clears WCAG AA for the 0.62rem bold line (5.16:1
   on --surface-raised #14161f; #64748b was 3.79:1 -- PR #4881 UX round 1);
   the bright tone #94a3b8 is 7.03:1.
   ==================================================== */
.stage-grid-stale {
  font-size: 0.62rem;
  font-weight: 700;
  color: #7b8aa3;
}
.stage-grid-stale--bright {
  color: #94a3b8;
}
.stage-grid-flag-dot.stage-grid-flag--stale-mild {
  background: #7b8aa3;
}
.stage-grid-flag-dot.stage-grid-flag--stale-bright {
  background: #94a3b8;
}
.stage-grid-chip--stale {
  background: rgba(123, 138, 163, 0.14);
  border: 1px solid #7b8aa3;
  color: #cbd5e1;
  cursor: pointer;
  font-family: inherit;
}
.stage-grid-chip--stale.active {
  background: rgba(123, 138, 163, 0.28);
  border-color: #94a3b8;
}

/* ====================================================
   Issue #4818 — Stage grid: fold transfer-portal prospects into the board
   (#4530 child 5/5). The source marker is TEXT ("Portal"/"HS"), not colour
   alone (accessibility) -- the tint is an additional cue, never the only
   one. .stage-grid-source-marker is shared verbatim by the mobile row
   (./mobile.js) so both layouts stay visually consistent.
   ==================================================== */
.stage-grid-source-marker {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.stage-grid-source-marker--hs {
  background: rgba(88, 166, 255, 0.14);
  border: 1px solid var(--primary);
  color: var(--primary);
}
.stage-grid-source-marker--portal {
  background: rgba(163, 113, 247, 0.14);
  border: 1px solid #a371f7;
  color: #d2c0fb;
}
.stage-grid-portal-fold {
  position: relative;
}
.stage-grid-portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stage-grid-portal-pill-remove {
  cursor: pointer;
  opacity: 0.7;
}
.stage-grid-portal-fold-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 260px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.stage-grid-portal-fold-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.stage-grid-portal-fold-attr-remove {
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.stage-grid-portal-fold-attr-remove:hover {
  color: var(--red);
}
.stage-grid-portal-fold-ovr,
.stage-grid-portal-fold-attr-input {
  width: 60px;
}
.stage-grid-portal-fold-attr-add {
  min-width: 200px;
}

/* ====================================================
   Issue #4817 — Stage grid: mobile stage-swipe layout (#4530 child 4/5)
   Built from design/stage-pass-grid's approved canvas "4530 Mobile - Stage
   Swipe.dc.html" and the "Mobile (<=640px) — approved direction: stage
   swipe" handoff section. This layout only ever exists in the DOM at
   <=640px (index.js's isMobileViewport() branch never builds the desktop
   matrix markup at that width), so it is not itself wrapped in a
   `@media (max-width: 640px)` block -- the two layouts are mutually
   exclusive by construction, not by CSS cascade. Every interactive target
   is >=44x44px (AC) via min-width/min-height, never padding alone, so a
   long label can never shrink the tap target below the floor.
   ==================================================== */
.stage-grid-mobile {
  display: flex;
  flex-direction: column;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg, 11px);
  overflow: hidden;
  max-width: 100%;
}
.stage-grid-mobile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 0;
}
.stage-grid-mobile-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
}
.stage-grid-mobile-boardlabel {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.stage-grid-mobile-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 10px 0;
}
.stage-grid-mobile-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 6px;
}
.stage-grid-mobile-rail-item.active {
  background: rgba(255, 176, 46, 0.08);
}
.stage-grid-mobile-rail-name {
  font-weight: 700;
  font-size: 0.62rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}
.stage-grid-mobile-rail-item.active .stage-grid-mobile-rail-name {
  color: var(--text-primary);
}
.stage-grid-mobile-rail-count {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-dim);
}
.stage-grid-mobile-rail-item.active .stage-grid-mobile-rail-count {
  color: var(--primary);
}
.stage-grid-mobile-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stage-grid-mobile-summary-text {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stage-grid-mobile-summary-chips {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
.stage-grid-mobile-body {
  min-height: 120px;
  max-height: 60vh;
  overflow-y: auto;
}
.stage-grid-mobile-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.stage-grid-mobile-rows {
  display: flex;
  flex-direction: column;
}
.stage-grid-mobile-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-grid-mobile-row--locked {
  background: rgba(255, 59, 59, 0.08);
}
.stage-grid-mobile-row--conflict {
  background: #1b1526;
}
.stage-grid-mobile-row-main {
  display: flex;
  gap: 10px;
  align-items: center;
}
.stage-grid-mobile-spot {
  width: 50px;
  min-width: 44px;
  min-height: 44px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.stage-grid-mobile-spot-value {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-primary);
}
.stage-grid-mobile-spot-sub {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stage-grid-mobile-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}
.stage-grid-mobile-row-name-line {
  display: flex;
  flex-wrap: wrap; /* #5761: chips drop to a second line instead of squeezing the name to zero */
  align-items: baseline;
  gap: 2px 6px;
}
.stage-grid-mobile-name-link {
  flex: 1 1 9ch;
  min-width: min(9ch, 100%);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-grid-mobile-name-link:hover {
  text-decoration: underline;
}
.stage-grid-mobile-row-actions {
  display: flex;
  gap: 5px;
  flex: none;
}
.stage-grid-mobile-arrow {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 7px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.stage-grid-mobile-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.stage-grid-mobile-arrow--fwd {
  border-color: var(--primary);
  color: var(--primary);
}
/* #4883 UX round 1 (non-blocking): a locked-out row's -> control renders
   the ⚑ glyph but kept --fwd's amber treatment; the canvas calls for the
   same red used by the row's own .stage-grid-flag--locked chip and its
   .stage-grid-mobile-row--locked tint. */
.stage-grid-mobile-arrow--locked {
  border-color: var(--red);
  color: var(--red);
}
.stage-grid-mobile-conflict-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  min-height: 44px;
  border-radius: 6px;
  background: #2a1f42;
  border: 1px solid #6f42c1;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.stage-grid-mobile-conflict-flag {
  font-size: 0.7rem;
  color: #c4a6fd;
}
.stage-grid-mobile-conflict-text {
  flex: 1;
  min-width: 0;
}
.stage-grid-mobile-conflict-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #c4a6fd;
}
.stage-grid-mobile-conflict-cta {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8b6fd4;
}
.stage-grid-mobile-visits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
}
.stage-grid-mobile-visit-week {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
}
.stage-grid-mobile-visit-week--full {
  border-color: var(--red);
}
.stage-grid-mobile-visit-week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  margin-bottom: 6px;
}
.stage-grid-mobile-visit-week-label {
  font-weight: 700;
  color: var(--text-secondary);
}
.stage-grid-mobile-visit-week-count {
  font-size: 0.65rem;
  color: var(--text-dim);
}
.stage-grid-mobile-visit-week-booked {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stage-grid-mobile-visit-booked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.stage-grid-mobile-visit-clear {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
}
.stage-grid-mobile-visit-clear:hover {
  color: var(--red);
}
.stage-grid-mobile-visits-footer {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.stage-grid-mobile-off {
  display: flex;
  flex-direction: column;
}
.stage-grid-mobile-off-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--border);
}
.stage-grid-mobile-off-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-secondary);
}
.stage-grid-mobile-put-back {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.stage-grid-mobile-undo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.stage-grid-mobile-undo-label {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-grid-mobile-undo-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}
.stage-grid-mobile-undo-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.stage-grid-mobile-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.stage-grid-mobile-tab {
  min-height: 48px;
  border: none;
  background: transparent;
  border-top: 2px solid transparent;
  color: var(--text-dim);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.stage-grid-mobile-tab.active {
  color: var(--primary);
  border-top-color: var(--primary);
}
.stage-grid-mobile-tab-glyph {
  font-size: 0.85rem;
  line-height: 1;
}
.stage-grid-mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 11, 0.82);
  display: flex;
  align-items: flex-end;
  /* #4883 UX round 1: was z-index 60, which sat BELOW .navbar's z-index 100
     (see NAVBAR above), leaving the persistent top navbar (Help/Feedback/
     notifications/Sign Out/section nav) live and clickable over the dimmed
     sheet. Reuse the same z-index the app's shared modal system already
     uses for this exact "sit above all chrome" job -- #modal-backdrop /
     .modal-backdrop (public/js/ui/modal.js) are both z-index 200/201. */
  z-index: 200;
}
.stage-grid-mobile-sheet {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface-deep);
  border-top: 2px solid var(--primary);
  border-radius: 16px 16px 0 0;
  padding: 8px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stage-grid-mobile-sheet-grabber {
  align-self: center;
  width: 42px;
  height: 4px;
  border-radius: 3px;
  background: var(--border);
}
.stage-grid-mobile-sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.stage-grid-mobile-sheet-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stage-grid-mobile-sheet-profile {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  flex: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.stage-grid-mobile-sheet-title {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.stage-grid-mobile-sheet-body {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.stage-grid-mobile-sheet-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stage-grid-mobile-sheet-section-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stage-grid-mobile-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.stage-grid-mobile-sheet-option {
  min-height: 44px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}
.stage-grid-mobile-sheet-visit-select {
  min-height: 46px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 10px;
  width: 100%;
}
.stage-grid-mobile-sheet-schools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.stage-grid-mobile-sheet-school {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.stage-grid-mobile-sheet-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-grid-mobile-sheet-btn {
  min-height: 48px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── #3191 Public playbook browser (public/playbooks.html) ───────────────── */
.pb-root {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 24px 16px 64px;
  box-sizing: border-box;
}
.pb-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.pb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pb-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pb-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.75rem, 6vw, 2.125rem);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-strong, #fff);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.pb-h2 {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--text-primary, #e6edf3);
}
.pb-muted {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted, #8b949e);
}
.pb-chip {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary, #c9d1d9);
}
/* #6166: concept page "In these playbooks" chips */
.pb-concept-books {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
.pb-concept-books-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary, #ffb02e);
}
.pb-concept-book-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pb-concept-book {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  background: #12141c;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #e6edf3);
  text-decoration: none;
}
.pb-concept-book:hover {
  border-color: #ffb02e;
}
.pb-concept-book .pb-badge {
  width: 28px;
  height: 28px;
  font-size: 0.625rem;
}
.pb-concept-book > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pb-concept-books-empty {
  margin: 0;
}
.pb-seg {
  display: inline-flex;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  overflow: hidden;
}
.pb-seg-btn {
  border: 0;
  padding: 9px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-muted, #8b949e);
  font:
    800 0.8125rem 'Inter',
    sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.pb-seg-btn.active {
  background: #1b1e27;
  color: var(--primary, #ffb02e);
}
.pb-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border, #23262f);
  overflow-x: auto;
}
.pb-tab {
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary, #c9d1d9);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.pb-tab.active {
  color: var(--primary, #ffb02e);
  border-bottom-color: var(--primary, #ffb02e);
}
.pb-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.pb-input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  background: #0d1117;
  color: var(--text-primary, #e6edf3);
  border: 1px solid var(--border, #30363d);
  border-radius: 8px;
  font:
    500 0.875rem 'Inter',
    sans-serif;
}
.pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.pb-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: var(--surface, #12151c);
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  color: var(--text-primary, #e6edf3);
  text-decoration: none;
}
.pb-card:hover,
.pb-card:focus-visible {
  border-color: var(--primary, #ffb02e);
  text-decoration: none;
}
.pb-card-split {
  justify-content: space-between;
}
.pb-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.pb-book-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pb-book-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pb-badge {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.pb-badge-logo {
  object-fit: contain;
  background: var(--logo-plate);
  padding: 4px;
  text-shadow: none;
}
.pb-mix {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: #1b1e27;
}
.pb-mix-seg {
  display: block;
  height: 100%;
}
.pb-mix-seg + .pb-mix-seg {
  box-shadow: inset 1px 0 0 var(--surface, #12151c);
}
.pb-card-breakdown > summary,
.pb-legend-more summary {
  min-height: 44px;
  padding: 10px 6px;
  line-height: 24px;
  cursor: pointer;
  color: var(--text-primary, #e6edf3);
  font-size: 0.8125rem;
}
.pb-card-breakdown > summary:focus-visible,
.pb-legend-more summary:focus-visible {
  outline: 2px solid var(--primary, #ffb02e);
  outline-offset: 2px;
}
.pb-breakdown-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  font-size: 0.8125rem;
}
.pb-breakdown-list > li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 8px;
  overflow-wrap: anywhere;
}
.pb-legend.pb-legend-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-left: 0;
  list-style: none;
}
.pb-legend-wrap > li {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pb-legend-more {
  flex-basis: 100%;
}
.pb-legend-wrap .pb-dot {
  margin-right: 4px;
}
.pb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.8125rem;
  color: var(--text-muted, #8b949e);
}
.pb-stats b {
  color: var(--text-strong, #fff);
  font-size: 1rem;
}
.pb-lead {
  text-align: right;
}
.pb-tag {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.pb-empty {
  padding: 24px;
  border: 1px dashed var(--border, #30363d);
  border-radius: 10px;
  text-align: center;
}
.pb-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted, #8b949e);
}
.pb-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  overflow: hidden;
}
.pb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #23262f);
  color: var(--text-primary, #e6edf3);
  text-decoration: none;
}
.pb-row:hover {
  background: rgba(88, 166, 255, 0.08);
  text-decoration: none;
}
.pb-row-name {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pb-row-thumb {
  flex: 0 0 84px;
  width: 84px;
  aspect-ratio: 16 / 9;
}
.pb-row {
  /* Off-screen rows skip layout/paint so a full page of SVG thumbnails scrolls smoothly. */
  content-visibility: auto;
  contain-intrinsic-size: auto 72px;
}
.pb-filter-row {
  align-items: center;
}
.pb-filter-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-dim, #6e7681);
}
.pb-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pb-chip-btn {
  padding: 8px 12px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border, #23262f);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary, #c9d1d9);
  font:
    700 0.8125rem 'Inter',
    sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.pb-member-books > details {
  margin-top: 8px;
}
.pb-member-books > details[open] > summary {
  margin-bottom: 8px;
}
.pb-chip-btn.active {
  border-color: rgba(255, 176, 46, 0.6);
  background: rgba(255, 176, 46, 0.1);
  color: var(--primary, #ffb02e);
}
/* #6167: book page GROUP BY multi-toggle chips and nested group headings */
.pb-group-by-row {
  gap: 10px;
}
.pb-group-chip {
  padding: 6px 12px 6px 8px;
  gap: 7px;
}
.pb-group-chip-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65625rem;
  font-weight: 800;
  border: 1px solid var(--border, #23262f);
  color: var(--text-muted, #8b949e);
}
.pb-group-chip.active .pb-group-chip-num {
  background: var(--primary, #ffb02e);
  border-color: rgba(255, 176, 46, 0.6);
  color: #0a0c10;
}
.pb-group-helper {
  font-size: 0.71875rem;
  color: var(--text-dim, #6e7681);
}
.pb-group-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pb-group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  border-bottom: 1px solid var(--border, #23262f);
  padding-bottom: 8px;
}
.pb-group-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-strong, #fff);
}
.pb-group-meta {
  font-size: 0.75rem;
  color: var(--text-muted, #8b949e);
}
.pb-subgroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pb-subgroup-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.pb-subgroup-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary, #ffb02e);
}
.pb-subgroup-meta {
  font-size: 0.71875rem;
  color: var(--text-dim, #6e7681);
}
/* ====================================================
   Playbook Browser: Game-Style Play Art Tokens & Classes (#5321)
   ----------------------------------------------------
   Game-fidelity color tokens matching in-game play art:
   - Routes: Bright yellow with arrowheads, primary/concept routes stand out
   - Carrier: Red path (Counter, RPO Peek)
   - Pitch / Toss: Light blue path
   - Blocks / Linemen: White T-bar stubs and white linemen row
   - Defense: Red rush/blitz, distinct zone drops and man coverage
   - Field: Dark panel (#0c0f15) with faint hash/line markings and blue LOS
   All foreground tokens hold WCAG AA contrast against the dark field background.
   ==================================================== */
:root {
  --pb-art-bg: #0c0f15;
  --pb-art-line: #1a1f2b;
  --pb-art-hash: #262c3a;
  --pb-art-los: #58a6ff;
  --pb-art-route: #ffe838;
  --pb-art-route-pri: #ffe600;
  --pb-art-motion: #2ee6d6;
  --pb-art-carrier: #ff3b3b;
  --pb-art-pitch: #58a6ff;
  --pb-art-block: #ffffff;
  --pb-art-lineman: #ffffff;
  --pb-art-lineman-ghost: rgba(255, 255, 255, 0.4);
  --pb-art-qb: #ffffff;
  --pb-art-rush: #ff3b3b;
  --pb-art-zone-deep: #58a6ff;
  --pb-art-zone-hook: #ffb02e;
  --pb-art-zone-flat: #d2a8ff;
  --pb-art-man: #7fdca4;
}

[data-theme='light'],
.theme-light {
  /* Art background remains dark stadium field for game fidelity and contrast */
  --pb-art-bg: #0c0f15;
  --pb-art-line: #1a1f2b;
  --pb-art-hash: #262c3a;
  --pb-art-los: #58a6ff;
  --pb-art-route: #ffe838;
  --pb-art-route-pri: #ffe600;
  --pb-art-motion: #2ee6d6;
  --pb-art-carrier: #ff3b3b;
  --pb-art-pitch: #58a6ff;
  --pb-art-block: #ffffff;
  --pb-art-lineman: #ffffff;
  --pb-art-lineman-ghost: rgba(255, 255, 255, 0.4);
  --pb-art-qb: #ffffff;
  --pb-art-rush: #ff3b3b;
  --pb-art-zone-deep: #58a6ff;
  --pb-art-zone-hook: #ffb02e;
  --pb-art-zone-flat: #d2a8ff;
  --pb-art-man: #7fdca4;
}

.pb-art-svg .pb-art-bg {
  fill: var(--pb-art-bg, #0c0f15);
}
.pb-art-svg .pb-art-line {
  stroke: var(--pb-art-line, #1a1f2b);
}
.pb-art-svg .pb-art-hash {
  stroke: var(--pb-art-hash, #262c3a);
}
.pb-art-svg .pb-art-los {
  stroke: var(--pb-art-los, #58a6ff);
}
.pb-art-svg .pb-art-route {
  stroke: var(--pb-art-route, #ffe838);
}
.pb-art-svg polygon.pb-art-route {
  fill: var(--pb-art-route, #ffe838);
}
.pb-art-svg circle.pb-art-route {
  fill: var(--pb-art-route, #ffe838);
  stroke: none;
}
.pb-art-svg .pb-art-route.pb-art-route-pri {
  stroke: var(--pb-art-route-pri, #ffe600);
}
.pb-art-svg polygon.pb-art-route.pb-art-route-pri {
  fill: var(--pb-art-route-pri, #ffe600);
}
.pb-art-svg circle.pb-art-route.pb-art-route-pri {
  fill: var(--pb-art-route-pri, #ffe600);
  stroke: none;
}
/* #5746: a receiver in motion -- the motion and the route after it share one color */
.pb-art-svg .pb-art-route.pb-art-route-motion {
  stroke: var(--pb-art-motion, #2ee6d6);
}
.pb-art-svg polygon.pb-art-route.pb-art-route-motion {
  fill: var(--pb-art-motion, #2ee6d6);
}
.pb-art-svg circle.pb-art-route.pb-art-route-motion {
  fill: var(--pb-art-motion, #2ee6d6);
  stroke: none;
}
.pb-art-svg .pb-art-carrier {
  stroke: var(--pb-art-carrier, #ff3b3b);
}
.pb-art-svg polygon.pb-art-carrier {
  fill: var(--pb-art-carrier, #ff3b3b);
}
.pb-art-svg circle.pb-art-carrier {
  fill: var(--pb-art-carrier, #ff3b3b);
  stroke: none;
}
.pb-art-svg .pb-art-pitch {
  stroke: var(--pb-art-pitch, #58a6ff);
}
.pb-art-svg polygon.pb-art-pitch {
  fill: var(--pb-art-pitch, #58a6ff);
}
.pb-art-svg circle.pb-art-pitch {
  fill: var(--pb-art-pitch, #58a6ff);
  stroke: none;
}
.pb-art-svg .pb-art-block {
  stroke: var(--pb-art-block, #ffffff);
}
.pb-art-svg circle.pb-art-block {
  fill: var(--pb-art-block, #ffffff);
  stroke: none;
}
.pb-art-svg .pb-art-lineman {
  fill: var(--pb-art-lineman, #ffffff);
}
.pb-art-svg .pb-art-lineman.pb-art-lineman-ghost {
  fill: #8b949e;
  fill-opacity: 0.55;
  opacity: 0.55;
}
.pb-art-svg .pb-art-rush {
  stroke: var(--pb-art-rush, #ff3b3b);
}
.pb-art-svg polygon.pb-art-rush {
  fill: var(--pb-art-rush, #ff3b3b);
}
.pb-art-svg circle.pb-art-rush {
  fill: var(--pb-art-bg, #0c0f15);
}
.pb-art-svg :not(text).pb-art-man,
.pb-art-svg .pb-art-man-line {
  stroke: var(--pb-art-man, #7fdca4);
}
.pb-art-svg circle.pb-art-man {
  fill: var(--pb-art-bg, #0c0f15);
}
.pb-art-svg text.pb-art-man,
.pb-art-svg .pb-art-man-label {
  fill: var(--pb-art-man, #7fdca4);
  stroke: none;
}
.pb-art-svg .pb-art-zone,
.pb-art-svg .pb-art-zone-region,
.pb-art-svg .pb-art-zone-line {
  stroke-opacity: 0.85;
}
.pb-art-svg text.pb-art-zone-label {
  font-weight: 700;
}
.pb-art-svg circle.pb-art-zone {
  fill: var(--pb-art-bg, #0c0f15);
}
.pb-art-svg
  circle.pb-art-player:not(.pb-art-rush):not(.pb-art-man):not(.pb-art-zone):not(
    .pb-art-player-dashed
  ) {
  stroke: none;
}
.pb-art-svg .pb-art-qb {
  fill: var(--pb-art-qb, #ffffff);
  stroke: none;
}
.pb-art-svg .pb-art-other {
  stroke: #8b949e;
}
.pb-art-svg .pb-art-arrow {
  stroke-linejoin: round;
}
.pb-art-svg .pb-art-slot,
.pb-art-svg .pb-art-slot-group {
  pointer-events: all;
}
.pb-art-svg .pb-art-slot-numbered {
  cursor: pointer;
}
.pb-art-svg .pb-art-slot-fallback {
  cursor: default;
}
.pb-art-svg circle.pb-art-player-selected-ring {
  fill: none;
  stroke: #ffffff;
  pointer-events: none;
}
.pb-art-svg circle.pb-art-player-numbered {
  stroke: none;
}
.pb-art-svg circle.pb-art-player-dashed {
  stroke: #ffffff;
}
.pb-art-svg text.pb-art-player-label,
.pb-art-svg text.pb-art-player-num,
.pb-art-svg text.pb-art-player-number,
.pb-art-svg text.pb-art-player-pos,
.pb-art-svg text.pb-art-player-pos-fallback {
  font-weight: 800;
  fill: var(--pb-art-bg, #0c0f15);
  pointer-events: none;
  user-select: none;
}

.pb-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #0c0f15;
}
.pb-thumb .pb-art-svg {
  width: 100%;
  height: 100%;
}
.pb-desc {
  font-size: 0.8125rem;
  color: var(--text-muted, #8b949e);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pb-concept-hero {
  margin-bottom: 20px;
  max-width: 520px;
}
.pb-sit-edited {
  color: var(--primary, #ffb02e);
  font-weight: 700;
}
.pb-sheet-sit-panel {
  flex: 1 1 100%;
  padding: 6px 0 4px;
}
.pb-sheet-sit-note {
  margin: 0 0 6px;
  color: var(--text-muted, #8b949e);
  font-size: 12px;
}
.pb-sheet-sit-panel .pb-sit-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.pb-sheet-sit-panel .pb-sit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 8px;
}
@media (max-width: 480px) {
  .pb-sheet-sit-panel .pb-sit-row {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: end;
  }
  .pb-sheet-sit-panel .pb-sit-label {
    grid-row: span 2;
    justify-self: start;
    overflow-wrap: normal;
  }
}
.pb-sheet-sit-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  font-size: 12px;
}
.pb-sheet-sit-select {
  width: auto;
  min-height: 44px;
}
.pb-sheet-sit-toggle {
  min-height: 44px;
  font-size: 12px;
}
.pb-sheet-sit-hint {
  color: var(--text-muted, #8b949e);
  font-size: 12px;
}
.pb-art {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  overflow: hidden;
}
.pb-art-svg {
  display: block;
  width: 100%;
  height: auto;
}
.pb-legend {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: var(--text-muted, #8b949e);
}
.pb-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pb-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pb-social-btn {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary, #c9d1d9);
  font:
    700 0.8125rem 'Inter',
    sans-serif;
  cursor: pointer;
}
.pb-social-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a.pb-social-btn:hover {
  text-decoration: none;
}
.pb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.75);
}
.pb-modal {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-sizing: border-box;
}
.pb-modal-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  color: var(--text-strong, #fff);
}
.pb-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pb-title:focus {
  outline: none;
}
/* Keep the public auth buttons on one line at 337 px (#3191 legibility AC). */
.pub-login,
.pub-signup {
  white-space: nowrap;
}
.pb-book {
  min-height: 150px;
}
.pb-set,
.pb-play {
  align-content: start;
}

/* Playbooks table view (#5124): scrolls sideways inside its own container so the
   page itself never overflows at 337 px. */
.pb-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border, #23262f);
  border-radius: 12px;
  background: var(--surface, #0f1118);
}
.pb-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.pb-table th,
.pb-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #23262f);
  text-align: left;
  vertical-align: middle;
  font-size: 0.8125rem;
  color: var(--text-secondary, #c9d1d9);
}
.pb-table tbody tr:last-child > * {
  border-bottom: 0;
}
.pb-table thead th {
  background: #12141c;
  padding: 0 14px;
}
.pb-table tbody tr:hover {
  background: #141722;
}
.pb-table .pb-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pb-table td.pb-num {
  font:
    800 1.0625rem 'Barlow Condensed',
    sans-serif;
  color: var(--text-strong, #fff);
}
.pb-th-btn {
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  font:
    800 0.625rem 'Inter',
    sans-serif;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim, #8b949e);
}
.pb-th-btn.active {
  color: var(--primary, #ffb02e);
}
.pb-td-name {
  font-weight: 400;
}
.pb-table-book {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.pb-table-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pb-table-name strong {
  color: var(--text-strong, #fff);
  font-size: 0.84375rem;
  white-space: nowrap;
}

.ingest-triage-row select.ingest-triage-value {
  width: min(190px, 60%);
}

.ingest-triage-edit {
  min-width: 0;
}
.ingest-triage-card {
  min-width: 0;
}

/* Issue #5054: Prospect Drilldown source screenshots thumbnail strip */
.prospect-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.prospect-source-shot {
  margin: 0;
  width: 140px;
}
.prospect-source-shot-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-deep, var(--page));
}
.prospect-source-shot-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prospect-source-shot figcaption,
.prospect-source-expired {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.prospect-source-shot figcaption {
  margin-top: 4px;
}
.prospect-source-screenshots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface, #0f1118);
}
.prospect-source-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.prospect-source-title {
  color: var(--text-strong, #fff);
  font-size: 17px;
  font-weight: 700;
}
.prospect-source-badge {
  white-space: nowrap;
}

/* ===== MULTI-SELECT DROPDOWN (#5161) ===== */
.multi-select-dropdown {
  position: relative;
  width: 100%;
}
.multi-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  cursor: pointer;
  text-align: left;
}
.multi-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.multi-select-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-select-chevron {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 11px;
}
.multi-select-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card, #1a1e29);
  border: 1px solid var(--border, #2d3748);
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
}
.multi-select-actions {
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border, #2d3748);
  margin-bottom: 4px;
}
.multi-select-action-btn {
  background: var(--bg-surface, #232936);
  border: 1px solid var(--border, #2d3748);
  color: var(--text-secondary, #a0aec0);
  border-radius: var(--radius-sm, 4px);
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  line-height: 1.2;
}
.multi-select-action-btn:hover:not(:disabled) {
  background: var(--bg-hover, #2d3748);
  color: var(--text-primary, #ffffff);
}
.multi-select-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.multi-select-select-all,
.multi-select-clear {
  /* Action buttons in multi-select dropdown header */
}
.multi-select-options {
  display: flex;
  flex-direction: column;
}
.multi-select-group {
  padding: 4px 0;
}
.multi-select-group-title {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #718096);
}
.multi-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text-primary, #ffffff);
  margin: 0;
}
.multi-select-item:hover {
  background: var(--bg-surface, #232936);
}
.multi-select-checkbox {
  cursor: pointer;
  margin: 0;
  flex: 0 0 auto;
}
.multi-select-checkbox:disabled {
  cursor: not-allowed;
}
.multi-select-label {
  cursor: pointer;
  flex: 1;
}

/* #5229: the This Week shell embeds the owning feature's complete action. */
.this-week {
  min-width: 0;
  max-width: 100%;
}
.this-week-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.this-week-heading h2 {
  margin-bottom: 4px;
}
.this-week-heading p {
  margin: 0;
}
.this-week-card {
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.this-week-tabs {
  display: flex;
  gap: 2px;
  padding: 0 10px;
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}
.this-week-tab {
  flex: 0 0 auto;
  padding: 14px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.this-week-tab[aria-selected='true'] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.this-week-action-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px 12px;
}
.this-week-action-heading h3 {
  margin: 0;
}
.this-week-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-block: 1px solid var(--border);
}
.this-week-body {
  padding: 20px 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.this-week-scope {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.this-week-error {
  padding: 12px 24px;
}
.this-week-checklist {
  list-style: none;
  padding: 0;
}
.this-week-checklist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.this-week-body .modal {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: none;
  border: 0;
}
.this-week-body .modal-header,
.this-week-body .modal-footer {
  display: none;
}
.this-week-body .modal-body {
  padding: 0;
}
.this-week [data-tw-mount] > .card {
  padding: 0;
  border: 0;
  box-shadow: none;
}
.this-week .ballot-pool-col,
.this-week .ballot-ranked-slots,
.this-week .ballot-pool-list {
  max-height: none;
  overflow: visible;
}
.this-week-empty {
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .this-week-action-heading,
  .this-week-controls,
  .this-week-body,
  .this-week-error {
    padding-inline: 12px;
  }
  .this-week .form-row,
  .this-week .ballot-picker-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .this-week .ballot-slot-row {
    height: 40px;
    min-width: 0;
  }
  .this-week .ballot-item-content {
    flex-wrap: nowrap;
    min-width: 0;
    gap: 4px;
    padding-inline: 4px;
  }
  .this-week .ballot-drag-grip,
  .this-week .ballot-item-label .tl-ctrl,
  .this-week .ballot-pool-label .tl-ctrl,
  .this-week .ballot-item-label .tl-sep,
  .this-week .ballot-pool-label .tl-sep {
    display: none;
  }
  .this-week .ballot-item-label .tl-oneline,
  .this-week .ballot-pool-label .tl-oneline {
    display: flex;
    gap: 4px;
    max-width: 100%;
  }
  .this-week .ballot-item-label .tl-name,
  .this-week .ballot-pool-label .tl-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .this-week .ballot-item-controls {
    flex-shrink: 0;
  }
  .this-week .stage-grid-scroll {
    overflow: visible;
    max-height: none;
  }
  .this-week-body input,
  .this-week-body select {
    max-width: 100%;
    min-width: 0;
  }
  .this-week-checklist li {
    font-size: 0.85rem;
  }
}

.this-week [hidden] {
  display: none !important;
}

/* Playbook Browser social layer (#5043). Wraps cleanly at 337 px. */
.pb-count {
  margin-left: 6px;
  font-weight: 600;
  color: var(--text-muted, #8b949e);
}
.pb-count:empty {
  display: none;
}
.pb-social-btn[aria-pressed='true'] {
  border-color: #f778ba;
  color: #f778ba;
}
.pb-social-panel {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #23262f);
}
.pb-social-block {
  margin-bottom: 16px;
}
.pb-h3 {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  color: var(--text-strong, #fff);
}
.pb-rating {
  display: flex;
  gap: 2px;
}
.pb-star {
  min-width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-muted, #8b949e);
  font-size: 1.5rem;
  cursor: pointer;
}
.pb-star.on {
  color: #f5ec5b;
}
.pb-link-btn {
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--accent, #58a6ff);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
}
.pb-tag-list,
.pb-comments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.pb-comments {
  flex-direction: column;
}
.pb-comment {
  padding: 10px 12px;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.pb-comment-head,
.pb-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.pb-comment-body {
  margin: 6px 0;
  white-space: pre-wrap;
}
.pb-vote {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary, #c9d1d9);
  cursor: pointer;
}
.pb-vote.on {
  border-color: var(--accent, #58a6ff);
  color: var(--accent, #58a6ff);
}
.pb-inline-form,
.pb-comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.pb-comment-form {
  flex-direction: column;
  align-items: stretch;
}
.pb-label {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: var(--text-muted, #8b949e);
}
.pb-input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  background: #0d1117;
  color: var(--text-secondary, #c9d1d9);
  font: inherit;
  box-sizing: border-box;
}

/* ── #1297 Playbook Builder (Level 3) ────────────────────────────────── */
.pb-l3-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.pb-l3-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.pb-mobile-sec-nav {
  display: none;
}
.pb-library {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pb-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pb-library-actions {
  display: flex;
  gap: 8px;
}
.pb-new-mobile {
  display: none;
}
.pb-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.pb-library-card {
  width: 100%;
  min-width: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pb-library-card:focus-visible {
  outline: 2px solid var(--primary, #ffb02e);
  outline-offset: 3px;
}
.pb-library-card-head,
.pb-library-card-identity {
  display: flex;
  gap: 10px;
}
.pb-library-card-head {
  align-items: flex-start;
  justify-content: space-between;
}
.pb-library-card-identity {
  align-items: center;
  min-width: 0;
}
.pb-library-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
  overflow-wrap: anywhere;
}
.pb-library-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong, #fff);
}
.pb-library-card-meta {
  font-size: 12px;
  color: var(--text-muted, #8b949e);
}
.pb-library-card-stats {
  display: block;
  margin-top: 6px;
}
.pb-library-inline-separator {
  display: none;
}
.pb-library-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.pb-library-visibility {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border, #23262f);
  color: var(--text-dim, #6e7681);
  flex-shrink: 0;
}
.pb-library-visibility.is-public {
  color: var(--success, #3fb950);
  border-color: rgba(63, 185, 80, 0.4);
}
.pb-library-card-footer {
  display: block;
  font-size: 11px;
  color: var(--text-dim, #6e7681);
  border-top: 1px solid var(--border, #23262f);
  padding-top: 8px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .pb-library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .pb-library-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .pb-library-actions .btn {
    min-height: 44px;
  }
  .pb-new-desktop {
    display: none;
  }
  .pb-new-mobile {
    display: inline;
  }
  .pb-library-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pb-library-community .pb-library-card-stats,
  .pb-library-community .pb-library-inline-separator {
    display: inline;
  }
}
.pb-section-card {
  border: 1.5px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface, #0f1118);
  overflow: hidden;
}
.pb-sec-add-panel {
  margin-top: 10px;
  padding: 12px;
  background: #0c0e14;
  border: 1px dashed var(--border, #23262f);
  border-radius: 8px;
}
.pb-section-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  max-height: min(65vh, 640px);
  overflow-y: auto;
}
.pb-section-picker-card {
  min-width: 0;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  background: #12141c;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pb-section-picker-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #080a0f;
  overflow: hidden;
  border-bottom: 1px solid var(--border, #23262f);
}
.pb-section-picker-art .pb-art-svg {
  width: 100%;
  height: 100%;
}
.pb-section-picker-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  overflow-wrap: anywhere;
}
.pb-section-picker-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary, #ffb02e);
}
.pb-section-picker-name {
  font-size: 12px;
  color: var(--text-strong, #fff);
}
.pb-section-picker-meta {
  font-size: 10.5px;
  color: var(--text-muted, #8b949e);
}
.pb-section-picker-add,
.pb-section-picker-added {
  margin-top: auto;
  align-self: flex-end;
  min-height: 44px;
  min-width: 44px;
  width: auto;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border, #23262f);
  font-size: 11px;
  font-weight: 700;
}
.pb-section-picker-label,
.pb-section-picker-remove-label {
  grid-area: 1 / 1;
}
.pb-section-picker-remove-label {
  visibility: hidden;
}
.pb-section-picker-added:hover .pb-section-picker-label,
.pb-section-picker-added:focus .pb-section-picker-label {
  visibility: hidden;
}
.pb-section-picker-added:hover .pb-section-picker-remove-label,
.pb-section-picker-added:focus .pb-section-picker-remove-label {
  visibility: visible;
}
.pb-section-picker-added {
  color: var(--primary, #ffb02e);
}
@media (max-width: 640px) {
  .pb-section-picker-add,
  .pb-section-picker-added {
    width: 100%;
  }
  .pb-section-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pb-section-picker-art {
    aspect-ratio: 16 / 11;
  }
}
.pb-playsheet-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080a0f;
  border-bottom: 1px solid var(--border, #23262f);
  overflow: hidden;
}
.pb-playsheet-art .pb-art-svg {
  width: 100%;
  height: 100%;
}
.pb-set-play-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 56px;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  overflow: hidden;
  background: #080a0f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pb-set-play-thumb .pb-art-svg {
  width: 100%;
  height: 100%;
}
.pb-no-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 56px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dim, #6e7681);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}
.pb-playsheet-art .pb-no-art {
  min-height: 90px;
}

@media (max-width: 640px) {
  .pb-mobile-sec-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border, #23262f);
    border-radius: 12px;
    background: #0c0e14;
  }
  .pb-section-card {
    border-radius: 8px;
  }
  .pb-l3-wrap {
    gap: 12px;
  }
  .pb-playsheet-art {
    aspect-ratio: 16 / 9;
  }
  .pb-playsheet-art .pb-no-art {
    min-height: 80px;
  }
}

/* ── #4928 In-Page OCR Import Modal ──────────────────────────────────── */
.inpage-import-modal {
  max-width: 820px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border, #2f3541);
  border-radius: 10px;
  background: var(--bg-surface, #14161f);
}
.inpage-import-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #23262f);
}
.inpage-import-context {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border, #23262f);
  background: #0f1118;
}
.inpage-import-lock-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #2f3541;
  color: var(--text-strong, #fff);
  white-space: nowrap;
}
.inpage-import-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border, #23262f);
  background: #14161f;
}
.inpage-import-step {
  text-align: center;
  padding: 8px 0;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.inpage-import-body {
  flex: 1;
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  box-sizing: border-box;
}
.inpage-import-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border, #23262f);
  background: var(--bg-surface, #14161f);
  flex: none;
}
.inpage-import-dropzone {
  border: 2px dashed var(--border, #2f3541);
  border-radius: 10px;
  background: #0f1118;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.inpage-import-dropzone:hover {
  border-color: var(--primary, #ffb02e);
}
.inpage-import-rail {
  width: 160px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border, #23262f);
  padding-right: 10px;
  overflow-y: auto;
  max-height: 380px;
}
.inpage-import-capture-item {
  padding: 6px 8px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  cursor: pointer;
  transition: background 0.15s;
}
.inpage-import-capture-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.inpage-import-review-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 380px;
  padding-left: 8px;
}
.inpage-import-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #1c1f27;
  font-size: 11.5px;
}
.inpage-import-progress-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border, #23262f);
  background: #0f1118;
}
.inpage-ocr-error-text {
  color: #ff8177;
  font-size: 12px;
}
.inpage-import-summary-banner {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text, #e6edf3);
}
.inpage-import-summary--success {
  border: 1px solid #23633f;
  background: #0f1f16;
}
.inpage-import-summary--warning {
  border: 1px solid #8c6a15;
  background: #241d0f;
}
.inpage-ocr-replace-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 176, 46, 0.12);
  border: 1px solid #d29922;
  border-radius: 6px;
  color: #ffb02e;
  font-size: 12.5px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .inpage-import-modal {
    max-height: 95vh;
  }
  .inpage-import-body {
    flex-direction: column !important;
  }
  .inpage-import-rail {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border, #23262f);
    padding-bottom: 8px;
    padding-right: 0;
    max-height: none;
  }
  .inpage-import-review-pane {
    padding-left: 0;
    max-height: none;
  }
}

/* Playbook comment discussion details (#5301). */
.pb-reported {
  color: var(--text-muted);
  font-style: italic;
}
.pb-signin-strip {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
}
.pb-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border, #30363d);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.pb-you {
  font-size: 0.6875rem;
  color: var(--accent, #58a6ff);
}
.pb-comment-head [aria-pressed='true'] {
  color: var(--text-strong, #fff);
  font-weight: 700;
}
@media (max-width: 640px) {
  .pb-modal-backdrop:has(.pb-signin-modal) {
    align-items: flex-end;
    padding: 0;
  }
  .pb-signin-modal {
    max-width: none;
    border-radius: 16px 16px 0 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .pb-signin-modal .pb-modal-actions {
    flex-direction: column;
  }
  .pb-signin-modal .pb-modal-actions > * {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.pb-community-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.pb-community-tags .pb-chips,
.pb-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pb-community-tags .pb-input {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 240px;
}
.pb-community-tags .pb-chip-btn,
.pb-tag-suggestions .pb-chip-btn {
  min-height: 34px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pb-tag-suggestions .pb-chip-btn {
  border-style: dashed;
}

/* Browse social controls (#5296): links and actions are separate focus targets. */
.pb-browse-social,
[data-pb-browse-social] {
  position: relative;
}
.pb-social-compact {
  align-items: center;
  gap: 4px;
}
.pb-social-compact .pb-social-btn {
  padding: 6px 8px;
  min-height: 40px;
}
.pb-card-comments {
  font-size: 0.8125rem;
  color: var(--text-secondary, #c9d1d9);
}
.pb-card-status {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: var(--text-secondary, #c9d1d9);
}
.pb-card-status:empty {
  display: none;
}
.pb-row-social {
  border-bottom: 1px solid var(--border, #23262f);
}
.pb-row-social .pb-row {
  border-bottom: 0;
}
.pb-row-social > .pb-social-compact {
  padding: 0 14px 10px;
}
/* Keep the badge above the art rather than obscuring receivers and routes. */
.pb-play-card {
  padding-top: 56px;
}
.pb-play-card > .pb-social-compact > [data-pb-social='favorite'] {
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--surface, #12151c);
}
.pb-quick-rate {
  position: fixed;
  z-index: 1001;
  width: 244px;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface, #12151c);
  color: var(--text-primary, #e6edf3);
  box-shadow: 0 8px 30px #0006;
}
.pb-quick-rate .pb-rating {
  display: flex;
  gap: 2px;
  margin: 8px 0;
}
.pb-quick-rate .pb-star {
  min-width: 40px;
  min-height: 40px;
  padding: 4px;
}
.pb-quick-rate [role='status'] {
  display: block;
}

/* #5304 Playbooks category filters: each matching play satisfies every selection. */
.pb-book-filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface, #0f1118);
}
.pb-book-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.pb-book-filter > span {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
}
.pb-book-filter .pb-input {
  flex: none;
  width: 100%;
}
.pb-book-filter-panel > button {
  justify-self: start;
  min-height: 40px;
}
.pb-match-lead {
  color: var(--primary, #ffb02e);
  font-weight: 700;
}

/* Playbook comments: one level of replies and linked catalog content (#5298). */
.pb-comment-reply {
  margin-left: 42px;
}
.pb-comment-quote {
  margin: 8px 0;
  padding: 10px;
  border-left: 3px solid var(--border-color, #657080);
  background: rgba(128, 128, 128, 0.08);
}
.pb-comment-quote p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pb-comment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.pb-comment-links .pb-chip-btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.pb-comment-actions {
  flex-wrap: wrap;
}
.pb-composer-banner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  background: rgba(128, 128, 128, 0.08);
}
.pb-composer-banner span {
  min-width: 0;
}
.pb-composer-banner small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-link-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.pb-link-result:hover,
.pb-link-result:focus-visible {
  background: rgba(128, 128, 128, 0.15);
}
.pb-link-result span {
  display: block;
  font-size: 0.85em;
  opacity: 0.7;
}
.pb-comment-form > .pb-link-btn {
  white-space: normal;
}
@media (max-width: 640px) {
  .pb-comment-reply {
    margin-left: 20px;
  }
}

/* #5013 Quick add recruit popover & needs details badge */
.badge-needs-details {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--orange, #fb8f44);
  border: 1px solid rgba(251, 143, 68, 0.55);
  background: rgba(251, 143, 68, 0.1);
  border-radius: var(--rounded-pill, 999px);
  padding: 1px 8px;
  line-height: 1.3;
  vertical-align: middle;
}

.stage-grid-needs-details {
  align-self: flex-start;
  margin-top: 3px;
  margin-bottom: 3px;
}

.quick-add-mount-point {
  position: relative;
}
.quick-add-component {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.quick-add-trigger-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.quick-add-backdrop {
  display: none;
}
.quick-add-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  width: 340px;
  background: var(--surface-deep, #14161f);
  border: 1px solid var(--border, #2f3541);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}
.quick-add-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quick-add-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-strong, #fff);
}
.quick-add-close-btn {
  border: none;
  background: transparent;
  color: var(--text-muted, #6e7681);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.quick-add-close-btn:hover {
  color: var(--text-primary, #fff);
}
.quick-add-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quick-add-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-add-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
}
.quick-add-type-chips {
  display: flex;
  gap: 6px;
}
.quick-add-type-chip {
  flex: 1;
  padding: 7px 0;
  border-radius: 6px;
  border: 1px solid var(--border, #2f3541);
  background: var(--surface-raised, #151922);
  color: var(--text-secondary, #c9d1d9);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.quick-add-type-chip.active {
  background: var(--primary, #ffb02e);
  border-color: var(--primary, #ffb02e);
  color: #0a0c10;
}
.quick-add-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.quick-add-helper-text {
  font-size: 11.5px;
  color: var(--text-muted, #8b949e);
  line-height: 1.4;
}
.quick-add-optional-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #23262f);
}
.quick-add-optional-heading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
}
.quick-add-stars-row {
  display: flex;
  gap: 6px;
}
.quick-add-star-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 6px;
  border: 1px solid var(--border, #2f3541);
  background: var(--surface-raised, #151922);
  color: var(--text-muted, #8b949e);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.quick-add-star-btn.active {
  color: #0a0c10;
  background: var(--primary, #ffb02e);
  border-color: var(--primary, #ffb02e);
}
.quick-add-conflict-panel,
.quick-add-matched-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-deep, #132030);
  border: 1px solid #1f4a73;
}
.quick-add-conflict-panel {
  border-color: rgba(251, 143, 68, 0.55);
  background: rgba(251, 143, 68, 0.09);
}
.quick-add-panel-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary, #ffb02e);
}
.quick-add-matched-panel .quick-add-panel-heading {
  color: #58a6ff;
}
.quick-add-panel-body {
  font-size: 13px;
  color: var(--text-primary, #e6edf3);
  line-height: 1.4;
}
.quick-add-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-add-error-msg {
  color: var(--danger, #f85149);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
}
.quick-add-header-actions {
  display: inline-flex;
  align-items: center;
}
.stage-grid-actions-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.quick-add-submit-btn {
  width: 100%;
  font-weight: 700;
}
.quick-add-conflict-accept,
.quick-add-name-conflict-accept,
.quick-add-conflict-fix {
  font-size: 0.8rem;
}
.quick-add-btn-done {
  width: 100%;
  margin-top: 8px;
}
.quick-add-panel-note {
  font-size: 0.75rem;
  color: var(--text-muted, #8b949e);
  margin-top: 4px;
}

/* Mobile responsive / bottom sheet per Q7 */
@media (max-width: 640px) {
  .quick-add-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
  }
  .quick-add-popover {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    overflow-y: auto;
    z-index: 1000;
    padding: 18px 16px 28px;
  }
  .quick-add-trigger-btn {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }
  .quick-add-type-chip {
    padding: 11px 0;
    min-height: 44px;
  }
  .quick-add-popover .form-control {
    min-height: 44px;
  }
  .quick-add-popover .btn {
    min-height: 44px;
  }
}

/* Signed-in public header (#5293): "Signed in as <name>" + avatar replaces Log in / Sign up. */
.pub-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pub-user-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary, #ffb02e);
  color: #12151c;
  font-size: 12px;
  font-weight: 800;
}
.pub-user-label {
  font-size: 13px;
  color: var(--pub-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 28ch;
}
.pub-user-label strong {
  color: var(--text-primary, #fff);
}
.pub-signout {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--pub-body);
  text-decoration: underline;
  white-space: nowrap;
}
.pub-signout-row {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
@media (max-width: 480px) {
  .pub-auth {
    gap: 8px;
    min-width: 0;
  }
  .pub-user-label {
    display: none;
  }
}

/* ==========================================================
   Issue #4138: Real admin view (Site Admin section)
   ========================================================== */
.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.admin-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.admin-tool-card .admin-tool-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.admin-tool-card .admin-tool-name {
  font-family: var(--typography-headline-font-family, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.admin-tool-card .admin-tool-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
}
.admin-tool-card .admin-tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-tool-card-danger {
  border-color: rgba(255, 59, 59, 0.45);
}
.admin-group-label {
  font-family: var(--typography-eyebrow-font-family, 'Barlow Condensed', sans-serif);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 26px 0 12px;
}
.admin-group-label:first-of-type {
  margin-top: 0;
}

.metric-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: start;
}
.metric-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  padding: 20px;
}
.metric-panel-gate {
  border-color: rgba(255, 176, 46, 0.35);
}
.metric-panel-excluded {
  background: var(--bg-surface);
  border-style: dashed;
}
.metric-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.metric-panel-title {
  font-family: var(--typography-headline-font-family, 'Barlow Condensed', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  font-size: 1.2rem;
}
.metric-panel-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.metric-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}
.metric-hero-value {
  font-family: var(--typography-headline-font-family, 'Barlow Condensed', sans-serif);
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--text-strong, #ffffff);
}
.metric-hero-unit {
  font-size: 1rem;
  color: var(--text-muted);
}
.metric-hero-label {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 14px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.metric-cell-label {
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
}
.metric-cell-value {
  font-family: var(--typography-headline-font-family, 'Barlow Condensed', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
}
.gate-scale {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.gate-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: visible;
  background: linear-gradient(
    90deg,
    rgba(46, 168, 101, 0.55) 0 45%,
    rgba(217, 119, 6, 0.6) 45% 72%,
    rgba(255, 59, 59, 0.55) 72% 100%
  );
}
.gate-marker {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 20px;
  background: var(--text-strong, #ffffff);
  border-radius: 2px;
}
.gate-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.metric-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.metric-window-bar .metric-window-facts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.danger-note {
  border: 1px solid rgba(255, 59, 59, 0.45);
  background: rgba(255, 59, 59, 0.07);
  border-radius: var(--radius, 8px);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
pre.sql-result {
  font-size: 0.85rem;
  margin-top: 10px;
  white-space: pre-wrap;
  max-height: 300px;
  overflow: auto;
  background: var(--bg-soft, #0f1118);
  padding: 10px;
  border-radius: 8px;
  color: var(--text-muted);
}
.dash-admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary, #ffb02e);
  border-radius: var(--radius, 8px);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.dash-admin-link .dash-admin-link-text {
  flex: 1;
}
.admin-container {
  width: 100%;
}
.admin-overview {
  display: flex;
  flex-direction: column;
}

/* Input Scout modal attribute grid (#5313): slots 1-5 down the left column,
   6-10 down the right, like the in-game scouting screen. DOM order is slot
   order, so tab order matches the visual order. */
.scout-attr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 10px 14px;
}
.scout-attr-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.scout-attr-label {
  font-size: 0.72rem;
  width: 34px;
  flex: none;
}
.scout-attr-pctl {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Favorites and sort controls remain readable on narrow public browser screens. */
.pb-favorites {
  white-space: nowrap;
  min-height: 36px;
}
@media (max-width: 480px) {
  .pb-filters > .pb-input {
    max-width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }
}

/* Public playbook comparison (#5305). */
.pb-similar {
  margin: 16px 0;
}
.pb-pick {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.pb-pick.active {
  color: #111;
  background: var(--primary, #ffb02e);
}
.pb-pick[aria-disabled='true'] {
  opacity: 0.55;
}
.pb-compare-tray {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px;
  margin-top: 20px;
  border: 1px solid var(--primary, #ffb02e);
  border-radius: 10px;
  background: var(--surface, #0f1118);
  box-shadow: 0 4px 18px #0008;
}
.pb-compare-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.pb-compare-badges button,
.pb-similar-item {
  overflow-wrap: anywhere;
}
.pb-similar-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.pb-compare-columns {
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  overflow-x: auto;
  gap: 12px;
}
.pb-compare-book {
  min-width: 0;
  align-content: start;
}
.pb-compare-book dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.pb-compare-book dt {
  overflow-wrap: anywhere;
}
.pb-compare-book dd {
  margin: 0;
  flex: none;
}
.pb-compare-high {
  color: var(--primary, #ffb02e);
}
.pb-overlap {
  padding: 8px 0;
}
.pb-overlap summary {
  cursor: pointer;
  color: var(--link, #58a6ff);
}
.pb-overlap-set {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.pb-overlap-set .pb-chip-btn {
  white-space: normal;
  overflow-wrap: anywhere;
}
.pb-compare-book .pb-book-top {
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .pb-compare-matrix {
    display: none;
  }
  .pb-compare-columns {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
  }
  .pb-compare-tray {
    bottom: 4px;
    padding: 10px;
  }
  .pb-compare-tray .pb-compare-badges {
    flex-basis: 100%;
  }
  .pb-filters label {
    min-width: 0;
    max-width: 100%;
  }
  .pb-filters label select {
    max-width: 100%;
  }
}

/* Public playbook detail navigation and information. */
.pb-detail-nav,
.pb-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  align-items: center;
}
.pb-detail-nav .pb-chip-btn {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  flex: 1;
}
.pb-set-mix {
  width: 180px;
  max-width: 100%;
}
.pb-mix-text {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.pb-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.pb-info dt {
  color: var(--text-muted, #8b949e);
  font-size: 12px;
  text-transform: uppercase;
}
.pb-info dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
/* #5319: per-situation gameplan ratings on the browser play page */
.pb-situations {
  margin-top: 16px;
}
.pb-sit-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 8px;
  color: var(--text-muted, #8b949e);
  font-size: 13px;
}
.pb-sit-book select {
  width: auto;
  max-width: 100%;
  min-height: 44px;
}
.pb-sit-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 2px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-sit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  min-height: 32px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border, #23262f);
}
.pb-sit-label {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.pb-sit-stars {
  font-size: 1rem;
  white-space: nowrap;
}
.pb-art {
  position: relative;
}
.pb-flipped {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #1a1f2b;
  color: #fff;
  border: 1px solid #8b949e;
  border-radius: 6px;
  padding: 4px 8px;
}
.pb-swatch {
  display: inline-block;
  width: 24px;
  border-top: 3px solid var(--swatch);
  vertical-align: middle;
  margin-right: 6px;
}
.pb-swatch-dash {
  border-top-style: dashed;
}

/* Concepts share the approved L2 type border, pill and compact metadata. */
.pb-concept-card {
  padding: 0;
  overflow: hidden;
  min-width: 0;
}
.pb-concept-card > .pb-thumb {
  margin: 0;
}
.pb-concept-body {
  padding: 12px 14px;
  border-top: 2px solid var(--pb-concept-color);
}
.pb-concept-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pb-concept-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pb-concept-type {
  flex: none;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  background: var(--pb-concept-color);
  color: #0a0c10;
}
.pb-concept-meta {
  font-size: 12px;
  margin: 6px 0;
}

.pb-browse-body {
  display: contents;
}
.pb-tab-short {
  display: none;
}
@media (max-width: 640px) {
  .pb-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
  }
  .pb-tab {
    padding: 12px 0;
    text-align: center;
    font-size: 10px;
    min-height: 44px;
    box-sizing: border-box;
  }
  .pb-tab:last-child {
    grid-column: 1 / -1;
  }
  .pb-tab-long {
    display: none;
  }
  .pb-tab-short {
    display: inline;
  }
  .pb-browse-body > .pb-input {
    flex: none;
    height: 44px;
    width: 100%;
    box-sizing: border-box;
  }
  .pb-mobile-actions {
    display: flex;
    gap: 6px;
    margin: 10px 0 14px;
  }
  .pb-mobile-actions > * {
    flex: 1 1 0;
    min-width: 0;
  }
  .pb-mobile-actions .pb-chip-btn {
    padding: 6px 4px;
    font-size: 11px;
    white-space: nowrap;
  }
  .pb-mobile-sort {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    font-size: 11px;
  }
  .pb-mobile-sort > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.1;
  }
  .pb-mobile-sort:focus-within {
    outline: 2px solid var(--primary, #ffb02e);
    outline-offset: 2px;
  }
  .pb-mobile-sort .pb-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }
  .pb-browse-body .pb-input,
  .pb-browse-body button {
    min-height: 44px;
  }
  .pb-filter-sheet {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid var(--border, #30363d);
    border-radius: 16px 16px 0 0;
    background: var(--bg-card, #161b22);
    color: var(--text-primary, #e6edf3);
  }
  .pb-filter-sheet::backdrop {
    background: rgb(0 0 0 / 65%);
  }
  .pb-filter-sheet[open] {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .pb-filter-sheet header,
  .pb-filter-sheet footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
  }
  .pb-filter-sheet h2 {
    margin: 0;
  }
  .pb-filter-sheet footer button {
    flex: 1;
  }
  .pb-sheet-controls {
    overflow-y: auto;
    min-height: 0;
  }
  .pb-sheet-controls > * {
    margin-bottom: 12px;
  }
}

.pb-table [data-pb-book-row] {
  cursor: pointer;
}
.pb-scheme-pill {
  align-self: flex-start;
  max-width: 100%;
  white-space: normal;
}

/* Community play connections (#5307) */
.pb-connections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.pb-connections-grid h4 {
  margin: 0 0 0.5rem;
}
.pb-connection-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pb-connection-list li {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.pb-connection-list a {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pb-connection-list small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.pb-connection-form {
  margin-top: 0.75rem;
}
.pb-connection-form .pb-input {
  max-width: 100%;
}
@media (max-width: 640px) {
  .pb-connections-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==================== Live Game Tracker (#5375) ==================== */
.lg-root {
  color: #f1f5f9;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
}
.lg-root .live-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: #0a0f18;
  border-bottom: 1px solid #1e293b;
  font-size: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
}
.lg-root .live-bar .brand {
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
}
.lg-root .live-bar .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.lg-root .live-bar .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}
.lg-root .live-bar .who {
  margin-left: auto;
  color: #94a3b8;
  font-weight: 600;
}

.lg-root .start-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 4px 40px;
}
.lg-root .start-sheet {
  padding: 16px 18px;
  background: #0f1724;
  border: 1px solid #1e293b;
  border-radius: 12px;
  margin-bottom: 14px;
}
.lg-root .start-sheet .eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.lg-root .start-sheet h1 {
  margin: 4px 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lg-root .start-sheet .sub {
  font-size: 13px;
  color: #94a3b8;
}

.lg-root .resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 12px;
  margin-bottom: 14px;
}
.lg-root .resume-info .eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lg-root .resume-info .main {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}
.lg-root .resume-info .sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.lg-root .resume-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  border: 0;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.lg-root .start-card {
  padding: 18px;
  background: #0f1724;
  border: 1px solid #1e293b;
  border-radius: 12px;
}
.lg-root .start-card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}
.lg-root .field-row {
  margin-bottom: 16px;
}
.lg-root .field-row > label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.lg-root .text-in {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #f1f5f9;
  font-size: 15px;
}

.lg-root .seg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lg-root .seg-btn {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.lg-root .seg-btn.active {
  background: #182336;
  color: #f1f5f9;
  border-color: #22c55e;
  box-shadow: inset 0 0 0 1px #22c55e;
}

.lg-root .spot-picker {
  background: #141e2e;
  border: 1px solid #263449;
  border-radius: 10px;
  padding: 12px;
}
.lg-root .spot-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lg-root .tb-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #0f1724;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lg-root .tb-btn.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}
.lg-root .spot-step {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.lg-root .spot-step button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #0f1724;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lg-root .spot-val {
  min-width: 82px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.lg-root .zone-strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}
.lg-root .zone-btn {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid #1e293b;
  background: #0f1724;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
}
.lg-root .zone-btn.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.18);
  color: #f8fafc;
}
.lg-root .zone-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lg-root .start-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.lg-root .start-foot .sub {
  font-size: 12px;
  color: #64748b;
}
.lg-root .primary-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.lg-root .live-wrap {
  container-type: inline-size;
  margin: 0 auto;
  padding: 4px 0 32px;
}
.lg-root .sit-bar {
  background: #0f1724;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.lg-root .sit-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lg-root .sit-game {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}
.lg-root .sit-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 7px;
  background: #141e2e;
  border: 1px solid #1e293b;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lg-root .sit-score .us {
  color: #4ade80;
}
.lg-root .sit-score .them {
  color: #cbd5e1;
}
.lg-root .sit-dd {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}
.lg-root .sit-spot {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.lg-root .sit-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.lg-root .sit-btn {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lg-root .sit-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.lg-root .field-strip {
  position: relative;
  height: 16px;
  margin-top: 8px;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.22) 0%,
    rgba(20, 83, 45, 0.45) 10%,
    rgba(20, 83, 45, 0.45) 90%,
    rgba(239, 68, 68, 0.25) 100%
  );
  border: 1px solid #1e293b;
  overflow: hidden;
}
.lg-root .field-mid {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(248, 250, 252, 0.35);
}
.lg-root .field-fd {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f59e0b;
}
.lg-root .field-ball {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid #052e16;
  transform: translate(-50%, -50%);
}
.lg-root .field-ez {
  position: absolute;
  top: 1px;
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
}
.lg-root .field-ez.own {
  left: 4px;
}
.lg-root .field-ez.opp {
  right: 4px;
}

.lg-root .mob-tabs {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.lg-root .mob-tab {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #0f1724;
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lg-root .mob-tab.active {
  background: #182336;
  color: #f8fafc;
  border-color: #22c55e;
}

.lg-root .side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  padding: 10px 10px 0;
  align-items: center;
}
.lg-root .side-tab {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #141e2e;
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lg-root .side-tab.active {
  background: #182336;
  color: #f8fafc;
  border-color: #22c55e;
}
.lg-root .side-close-btn {
  display: none;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #94a3b8;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.lg-root .live-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 300px;
  gap: 12px;
  align-items: stretch;
  flex: 1 1 0;
  min-height: 0;
}
.lg-root .live-grid.has-call {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 300px;
}
.lg-root .live-grid.no-call {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.lg-root .live-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
.lg-root .lg-col1-spacer {
  display: none;
}
.lg-root .lg-col1-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  background: var(--bg-base, #0a0c10);
  flex-shrink: 0;
}
.lg-root .lg-col1-footer .next-preview {
  margin-bottom: 0;
  padding: 6px 12px;
}
.lg-root .log-btn {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.lg-root .live-who-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
.lg-root .live-who-col.who-col-hide {
  display: none;
}
.lg-root .live-side-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.lg-root #lg-sheet-panel,
.lg-root #lg-log-panel {
  display: none;
  flex-direction: column;
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.lg-root #lg-sheet-panel.side-show,
.lg-root #lg-log-panel.side-show {
  display: flex;
}
.lg-root .side-panel .panel-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

.lg-root .call-card {
  background: #0f1724;
  border: 1px solid #263449;
  border-left: 4px solid #22c55e;
  border-radius: 12px;
  padding: 14px 16px;
}
.lg-root .call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.lg-root .call-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4ade80;
}
.lg-root .call-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.lg-root .src-script {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.lg-root .src-auto {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.lg-root .src-pick {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.lg-root .src-audible {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.lg-root .call-card.aud-active {
  border-left-color: #38bdf8;
}
.lg-root .call-formation {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.01em;
}
.lg-root .call-name {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 2px 0 8px;
  color: #f8fafc;
}
.lg-root .call-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #94a3b8;
}
.lg-root .meta-chip {
  padding: 2px 8px;
  border-radius: 6px;
  background: #141e2e;
  border: 1px solid #1e293b;
  font-weight: 700;
  color: #cbd5e1;
}
.lg-root .meta-chip.type {
  color: #93c5fd;
}
.lg-root .call-pos {
  font-variant-numeric: tabular-nums;
}
.lg-root .call-card-top.has-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: center;
}
.lg-root .call-card-info {
  min-width: 0;
}
.lg-root .call-art-wrap,
.lg-root .lg-call-art-wrap {
  position: relative;
  border-radius: 8px;
  border: 1px solid #23262f;
  background: #0a0d13;
  aspect-ratio: 53.4 / 30;
  width: 100%;
}
.lg-root .call-art-wrap svg,
.lg-root .lg-call-art-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 7px;
}
.lg-root .pb-art-slot-numbered {
  cursor: pointer;
}
.lg-root .art-tooltip,
.lg-root .lg-call-art-tooltip {
  position: absolute;
  z-index: 5;
  background: #1a2232;
  border: 1px solid #33405a;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  margin-top: -10px;
}
.lg-root .art-tooltip .tt-name,
.lg-root .lg-call-art-tooltip .tt-name {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}
.lg-root .art-tooltip .tt-sub,
.lg-root .lg-call-art-tooltip .tt-sub {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.lg-root .art-tooltip .tt-caret,
.lg-root .lg-call-art-tooltip .tt-caret {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #1a2232;
  border-right: 1px solid #33405a;
  border-bottom: 1px solid #33405a;
  transform: translateX(-50%) rotate(45deg);
}
.lg-root .call-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1e293b;
  flex-wrap: wrap;
}
.lg-root .call-link {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lg-root .call-link.active {
  border-color: #38bdf8;
  color: #7dd3fc;
}

.lg-root .aud-drawer {
  margin-top: 10px;
  padding: 10px;
  background: #0a0f18;
  border: 1px solid #1e293b;
  border-radius: 9px;
}
.lg-root .aud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  margin-bottom: 8px;
}
.lg-root .aud-head-sub {
  color: #64748b;
  font-weight: 700;
}
.lg-root .aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.lg-root .aud-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}
.lg-root .aud-opt.suggested {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}
.lg-root .aud-opt.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
}
.lg-root .aud-opt.already-called,
.lg-root .aud-opt:disabled {
  opacity: 0.55;
  cursor: default;
}
.lg-root .aud-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.lg-root .aud-slot {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}
.lg-root .aud-reason {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  padding: 2px 6px;
  border-radius: 999px;
}
.lg-root .aud-called-tag {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}
.lg-root .aud-name {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.lg-root .alt-drawer {
  margin-top: 10px;
  padding: 10px;
  background: #0a0f18;
  border: 1px solid #1e293b;
  border-radius: 9px;
}
.lg-root .alt-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lg-root .alt-tab {
  min-height: 40px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid #1e293b;
  background: #141e2e;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.lg-root .alt-tab.active {
  border-color: #22c55e;
  color: #f8fafc;
}

.lg-root .res-card {
  background: #0f1724;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px 16px;
}
.lg-root .res-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}
.lg-root .res-toggles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lg-root .res-tog {
  flex: 1 1 110px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lg-root .res-tog.active.inc {
  border-color: #94a3b8;
  background: #1e293b;
  color: #f8fafc;
}
.lg-root .res-tog.active.td {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
.lg-root .res-tog.active.to {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
.lg-root .res-tog.active.pen {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
}

.lg-root .pen-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  background: #0a0f18;
  border: 1px solid #1e293b;
  border-radius: 9px;
  margin-bottom: 10px;
}
.lg-root .pen-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-root .pen-group-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.lg-root .pen-group-label.def {
  color: #4ade80;
}
.lg-root .pen-group-label.off {
  color: #f87171;
}
.lg-root .pen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.lg-root .pen-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lg-root .pen-opt-name {
  font-weight: 700;
}
.lg-root .pen-opt-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.lg-root .pen-opt.def .pen-opt-tag {
  color: #4ade80;
}
.lg-root .pen-opt.off .pen-opt-tag {
  color: #f87171;
}
.lg-root .pen-opt.active {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.22);
  color: #fff7ed;
}
.lg-root .pen-opt.active .pen-opt-tag {
  color: #fed7aa;
}
.lg-root .pen-summary {
  font-size: 12px;
  color: #94a3b8;
  padding-top: 4px;
  border-top: 1px solid #1e293b;
}
.lg-root .pen-summary.active {
  color: #f8fafc;
  font-weight: 600;
}
.lg-root .primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lg-root .yds-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.lg-root .yds-step {
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}
.lg-root .yds-display {
  min-height: 52px;
  border-radius: 10px;
  background: #0a0f18;
  border: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}
.lg-root .yds-val {
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.lg-root .yds-val.neg {
  color: #f87171;
}
.lg-root .yds-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-top: 2px;
}
.lg-root .yds-sub.neg {
  color: #f87171;
}

.lg-root .quick-yds {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lg-root .q-chip {
  flex: 1 1 46px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.lg-root .q-chip.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}
.lg-root .q-chip.big {
  border-style: dashed;
  color: #93c5fd;
}
.lg-root .big-panel {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  background: #0a0f18;
  border: 1px solid #1e293b;
  border-radius: 8px;
  margin-bottom: 10px;
}

.lg-root .sub-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  background: #0a0f18;
  border: 1px solid #1e293b;
  border-radius: 9px;
  margin-bottom: 10px;
}
.lg-root .sub-opt {
  flex: 1 1 120px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lg-root .sub-opt.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.lg-root .next-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 8px;
  background: #0a0f18;
  border: 1px solid #1e293b;
  font-size: 13px;
  margin-bottom: 10px;
}
.lg-root .next-preview strong {
  color: #f8fafc;
}
.lg-root .next-preview .sub {
  color: #94a3b8;
  font-size: 12px;
}

.lg-root .fourth-card,
.lg-root .drive-card,
.lg-root .nosec-card,
.lg-root .final-card {
  background: #0f1724;
  border: 1px solid #263449;
  border-radius: 12px;
  padding: 16px;
}
.lg-root .fourth-card {
  border-left: 4px solid #f59e0b;
}
.lg-root .drive-card {
  border-left: 4px solid #3b82f6;
}
.lg-root .nosec-card {
  border-left: 4px solid #f59e0b;
}
.lg-root .final-card {
  border-left: 4px solid #22c55e;
}
.lg-root .fourth-card h3,
.lg-root .drive-card h3,
.lg-root .nosec-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}
.lg-root .fourth-card .sub,
.lg-root .drive-card .sub,
.lg-root .nosec-card .sub {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.lg-root .fourth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.lg-root .fourth-btn {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.lg-root .nosec-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.lg-root .nosec-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #f1f5f9;
  text-align: left;
  cursor: pointer;
}
.lg-root .nosec-btn .nm {
  font-weight: 700;
  font-size: 14px;
}
.lg-root .nosec-btn .nxt {
  font-size: 12px;
  color: #94a3b8;
}
.lg-root .rem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}
.lg-root .drive-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #1e293b;
}
.lg-root .link-btn {
  min-height: 44px;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}
.lg-root .final-card .eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.08em;
}
.lg-root .final-card .score {
  font-size: 28px;
  font-weight: 900;
  margin: 4px 0 12px;
  font-variant-numeric: tabular-nums;
}
.lg-root .final-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.lg-root .stat-tile {
  padding: 10px;
  border-radius: 8px;
  background: #141e2e;
  border: 1px solid #1e293b;
}
.lg-root .stat-tile .v {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lg-root .stat-tile .k {
  font-size: 11px;
  color: #94a3b8;
}

.lg-root .side-panel {
  background: #0f1724;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
}
.lg-root .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #1e293b;
}
.lg-root .panel-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}
.lg-root .panel-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.lg-root .panel-body {
  padding: 8px 10px;
}

.lg-root .legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #64748b;
  padding: 6px 14px;
  border-bottom: 1px solid #1e293b;
  background: #0a0f18;
}
.lg-root .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.lg-root .dot.ok {
  background: #22c55e;
}
.lg-root .dot.no {
  background: #f59e0b;
}

.lg-root .sec-card {
  border: 1px solid #1e293b;
  border-radius: 9px;
  margin-bottom: 8px;
  background: #0c1320;
  overflow: hidden;
}
.lg-root .sec-card.active-sec {
  border-color: rgba(34, 197, 94, 0.55);
}
.lg-root .sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: #141e2e;
  font-size: 12px;
}
.lg-root .sec-name {
  font-weight: 800;
  color: #f1f5f9;
}
.lg-root .sec-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: #0f1724;
  color: #94a3b8;
  border: 1px solid #1e293b;
}
.lg-root .sec-tag.auto-tag {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}
.lg-root .sec-plays {
  divide-y: 1px solid #1e293b;
}
.lg-root .play-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  font-size: 12px;
  cursor: pointer;
}
.lg-root .play-row.current {
  background: rgba(34, 197, 94, 0.12);
}
.lg-root .play-row.script-done {
  opacity: 0.45;
}
.lg-root .p-num {
  width: 18px;
  color: #64748b;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lg-root .p-form {
  color: #94a3b8;
  font-size: 11px;
}
.lg-root .p-name {
  font-weight: 700;
  color: #f1f5f9;
}
.lg-root .p-dots {
  margin-left: auto;
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.lg-root .p-next {
  font-size: 10px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.lg-root .log-empty {
  padding: 18px 10px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
.lg-root .log-row {
  padding: 8px 10px;
  border-radius: 8px;
  background: #0c1320;
  border: 1px solid #1e293b;
  border-left: 3px solid #64748b;
  margin-bottom: 6px;
  font-size: 12px;
}
.lg-root .log-row.ok {
  border-left-color: #16a34a;
}
.lg-root .log-row.no {
  border-left-color: #d97706;
}
.lg-root .log-row.penalty {
  border-left-color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}
.lg-root .log-row.td {
  border-left-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}
.lg-root .log-row.to {
  border-left-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.lg-root .log-row.drive-sep {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}
.lg-root .log-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.lg-root .log-call {
  font-weight: 700;
  color: #f1f5f9;
  margin: 2px 0;
}
.lg-root .log-res {
  font-weight: 800;
}
.lg-root .log-after {
  font-size: 11px;
  color: #94a3b8;
}

.lg-root .modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}
.lg-root .modal-bg.open {
  display: flex;
}
.lg-root .modal-card {
  width: 100%;
  max-width: 440px;
  background: #0f1724;
  border: 1px solid #263449;
  border-radius: 12px;
  padding: 16px;
}
.lg-root .modal-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}
.lg-root .modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.lg-root .m-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.lg-root .m-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141e2e;
  border: 1px solid #263449;
  border-radius: 8px;
  padding: 2px;
}
.lg-root .m-step button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: #0f1724;
  color: #f1f5f9;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.lg-root .m-step .v {
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.lg-root .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.lg-root .btn-sec {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #cbd5e1;
  font-weight: 700;
  cursor: pointer;
}
.lg-root .btn-pri {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  cursor: pointer;
}

.lg-root .lg-save-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ef4444;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
}
.lg-root .lg-save-error-msg {
  flex: 1 1 auto;
}
.lg-root .lg-save-retry-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #ef4444;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lg-root .pat-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-root .pat-kick-card {
  border-left-color: #22c55e;
}
.lg-root .pat-kick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lg-root .pat-kick-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #4ade80;
}
.lg-root .pat-skip-btn {
  text-decoration: none;
  color: #94a3b8;
}
.lg-root .pat-kick-grid {
  grid-template-columns: 1fr 1fr;
}
.lg-root .pat-xp-good-btn {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  font-weight: 800;
}
.lg-root .pat-xp-miss-btn {
  color: #cbd5e1;
}
.lg-root .pat-ret-btn {
  margin-top: 6px;
  color: #f87171;
  text-decoration: none;
}
.lg-root .pat-or-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  padding: 0 2px;
}
.lg-root .pat-call-card {
  border-color: rgba(245, 158, 11, 0.45);
}
.lg-root .pat-call-label {
  color: #fbbf24;
}
.lg-root .pat-call-formation {
  font-size: 13px;
}
.lg-root .pat-call-name {
  font-size: clamp(22px, 4.2vw, 30px);
}
.lg-root .call-type,
.lg-root .pat-call-type {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 8px;
}
.lg-root .pat-call-meta {
  border-top: 0;
  padding-top: 0;
}
.lg-root .pat-sec-chip {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}
.lg-root .pat-alts-head {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.lg-root .pat-alts-list {
  margin-bottom: 4px;
}
.lg-root .pat-alt-btn {
  width: 100%;
}
.lg-root .pat-alt-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lg-root .pat-alt-form {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}
.lg-root .pat-alt-name {
  color: #f1f5f9;
}
.lg-root .pat-alt-type {
  color: #94a3b8;
}
.lg-root .pat-two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.lg-root .pat-two-good-btn {
  margin: 0;
}
.lg-root .pat-two-fail-btn {
  min-height: 52px;
  font-size: 14px;
}

.lg-root .secondary-btn,
.lg-root .final-recap-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #3b82f6;
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.lg-root .past-games-section {
  margin-top: 20px;
}
.lg-root .past-games-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
}
.lg-root .past-games-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-root .past-game-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #0f1724;
  border: 1px solid #1e293b;
  border-radius: 10px;
  text-align: left;
  color: #f1f5f9;
  cursor: pointer;
}
.lg-root .past-game-opp {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}
.lg-root .past-game-meta {
  font-size: 11px;
  color: #94a3b8;
}
.lg-root .past-game-score {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}
.lg-root .past-game-score.win {
  color: #4ade80;
}
.lg-root .past-game-cta {
  font-size: 12px;
  font-weight: 700;
  color: #93c5fd;
}

.lg-root .recap-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.lg-root .recap-back-btn {
  background: transparent;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 6px 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  cursor: pointer;
}
.lg-root .recap-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lg-root .recap-meta-line {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}
.lg-root .recap-opp-line {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
  color: #f8fafc;
}
.lg-root .recap-head-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.lg-root .recap-wl {
  font-size: 13px;
  font-weight: 800;
}
.lg-root .recap-score {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}
.lg-root .recap-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.lg-root .recap-tile {
  background: #0f1724;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px 14px;
}
.lg-root .recap-tile-k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.lg-root .recap-tile-v {
  font-size: 26px;
  font-weight: 800;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
}
.lg-root .recap-tile-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.lg-root .recap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.lg-root .recap-card {
  background: #0f1724;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 16px;
}
.lg-root .recap-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.lg-root .recap-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.lg-root .recap-card-sub {
  font-size: 11px;
  color: #64748b;
}
.lg-root .recap-bar-list,
.lg-root .recap-calls-list,
.lg-root .recap-drives-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-root .recap-bar-row {
  display: grid;
  grid-template-columns: 1fr 110px 64px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.lg-root .recap-bar-label {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f1f5f9;
}
.lg-root .recap-bar-track {
  height: 7px;
  background: #0a0f18;
  border-radius: 999px;
  overflow: hidden;
}
.lg-root .recap-bar-fill {
  height: 100%;
  border-radius: 999px;
}
.lg-root .recap-bar-stat {
  font-size: 11px;
  text-align: right;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.lg-root .recap-call-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 8px;
  background: #0a0f18;
  border-radius: 6px;
}
.lg-root .recap-call-form {
  color: #94a3b8;
  font-size: 11px;
}
.lg-root .recap-call-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8fafc;
}
.lg-root .recap-call-avg {
  font-size: 11px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.lg-root .recap-drive-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 8px;
  background: #0a0f18;
  border-radius: 6px;
}
.lg-root .recap-drive-num {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}
.lg-root .recap-drive-meta {
  color: #94a3b8;
  font-size: 11px;
}
.lg-root .recap-drive-end {
  font-size: 11px;
  font-weight: 700;
}
.lg-root .recap-empty {
  font-size: 12px;
  color: #64748b;
}
.lg-root .recap-log-card {
  margin-top: 14px;
}
.lg-root .recap-log-head {
  margin-bottom: 0;
}
.lg-root .recap-log-toggle-btn {
  background: #141e2e;
  border: 1px solid #263449;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
}
.lg-root .recap-log-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lg-root .recap-log-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  background: #0a0f18;
  border-radius: 4px;
  font-size: 12px;
}
.lg-root .recap-log-sit {
  font-size: 11px;
  color: #94a3b8;
}
.lg-root .recap-log-main {
  min-width: 0;
}
.lg-root .recap-log-call {
  font-weight: 700;
  color: #f8fafc;
}
.lg-root .recap-log-sec {
  color: #94a3b8;
  font-size: 11px;
}
.lg-root .recap-log-res {
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lg-root .recap-log-mark {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.lg-root .lg-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lg-root .lg-link-action {
  background: transparent;
  border: none;
  padding: 0;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.lg-root .lg-link-action:hover {
  color: #93c5fd;
}
.lg-root .lg-league-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.lg-root .lg-linked-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
}
.lg-root .lg-linked-pill-label {
  color: #dbeafe;
}
.lg-root .lg-linked-pill-meta {
  color: #93c5fd;
  font-weight: 500;
}
.lg-root .lg-link-conflict {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fde68a;
  font-size: 12px;
}
.lg-root .lg-link-conflict.resolved {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
}
.lg-root .lg-conflict-msg {
  line-height: 1.45;
  margin-bottom: 6px;
}
.lg-root .lg-edit-link-field {
  margin-bottom: 10px;
}
.lg-root .lg-conflict-text {
  line-height: 1.45;
  margin-bottom: 8px;
}
.lg-root .lg-conflict-confirm {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}
.lg-root .lg-conflict-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.lg-root .lg-final-linked {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
}
.lg-root .lg-edit-link-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1e293b;
}
.lg-root .lg-edit-link-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lg-root .lg-edit-link-select {
  flex: 1 1 200px;
  min-width: 180px;
}

.lg-root .lg-source-pill,
.lg-root .recap-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.lg-root .how-playbook-card {
  background: #0c1320;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.lg-root .how-playbook-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}
.lg-root .how-playbook-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.lg-root .how-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}
.lg-root .how-num {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lg-root .pick-card {
  border-left: 4px solid #38bdf8;
}
.lg-root .pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.lg-root .pick-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.lg-root .pick-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
}
.lg-root .search-trigger-btn {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed #38bdf8;
  background: rgba(14, 22, 36, 0.9);
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.lg-root .search-trigger-btn:hover {
  border-style: solid;
  background: rgba(56, 189, 248, 0.1);
}
.lg-root .search-trigger-icon {
  font-size: 18px;
  color: #7dd3fc;
}
.lg-root .search-trigger-text {
  flex: 1 1 auto;
}
.lg-root .search-trigger-kbd {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 6px;
  background: #0a0f18;
  border: 1px solid #1e293b;
}

.lg-root .recent-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #1e293b;
}
.lg-root .recent-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}
.lg-root .recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lg-root .recent-chip {
  min-height: 40px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #263449;
  background: #141e2e;
  color: #f1f5f9;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  text-align: left;
}
.lg-root .recent-chip:hover {
  border-color: #38bdf8;
}
.lg-root .recent-chip-name {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}
.lg-root .recent-chip-meta {
  font-size: 10px;
  color: #94a3b8;
}

.lg-root .search-card,
.lg-root .search-drawer {
  border: 1px solid var(--border, #23262f);
  border-left: 4px solid var(--positive, #2ea865);
  border-radius: 14px;
  background: var(--surface, #0f1118);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lg-root .search-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lg-root .search-book-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--link, #58a6ff);
  background: rgba(88, 166, 255, 0.1);
  color: var(--link, #58a6ff);
  white-space: nowrap;
}
.lg-root .search-sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.lg-root .search-bucket-chip {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border, #23262f);
  background: var(--surface-raised, #14161f);
  color: var(--link, #58a6ff);
  white-space: nowrap;
}
.lg-root .search-note {
  font-size: 13px;
  color: var(--text-muted, #8b949e);
}
.lg-root .search-sub-row .link-btn {
  margin-left: auto;
  min-height: 32px;
}
.lg-root .search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 12px;
  border: 2px solid var(--positive, #2ea865);
  background: var(--surface-deep, #08090d);
}
.lg-root .search-ico {
  font-size: 18px;
  color: var(--positive-soft, #7fdca4);
}
.lg-root .search-in {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-strong, #fff);
  font-size: 19px;
  font-weight: 600;
  padding: 12px 0;
  box-shadow: none;
}
.lg-root .search-in:focus {
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
}
.lg-root .lg-search-mark,
.lg-root .search-row mark {
  background: rgba(255, 176, 46, 0.22);
  color: var(--primary, #ffb02e);
  font-weight: 800;
  border-radius: 3px;
  padding: 0 2px;
}
.lg-root .search-clear {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--text-muted, #8b949e);
  font-size: 20px;
  cursor: pointer;
}
.lg-root .search-sec-head,
.lg-root .search-count {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted, #8b949e);
}
.lg-root #lg-search-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-root .search-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lg-root .search-row {
  width: 100%;
  min-height: 60px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #23262f);
  background: var(--surface-raised, #14161f);
  color: var(--text-strong, #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}
.lg-root .search-row:hover,
.lg-root .search-row.active {
  border-color: var(--positive, #2ea865);
  background: rgba(46, 168, 101, 0.12);
}
.lg-root .s-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lg-root .s-form {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #8b949e);
}
.lg-root .s-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-strong, #fff);
}
.lg-root .s-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lg-root .s-cnt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #8b949e);
  white-space: nowrap;
}
.lg-root .s-type {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border, #23262f);
  background: var(--surface-deep, #08090d);
  color: var(--text-strong, #fff);
  white-space: nowrap;
}
.lg-root .search-nothing-yet {
  border: 1px dashed var(--border, #23262f);
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted, #8b949e);
  text-align: center;
}
.lg-root .search-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted, #8b949e);
}
.lg-root .search-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border, #23262f);
  padding-top: 10px;
  font-size: 13px;
  color: var(--text-muted, #8b949e);
}
.lg-root .search-result-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lg-root .called-plays-list {
  display: flex;
  flex-direction: column;
}
.lg-root .pat-pick-card {
  border-left: 4px solid var(--positive, #2ea865);
}
.lg-root .pick-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--positive-soft, #7fdca4);
}
.lg-root .nosec-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lg-root .search-keycaps {
  display: inline-flex;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary, #c9d1d9);
}
.lg-root .search-keycaps kbd {
  padding: 2px 6px;
  border: 1px solid var(--border, #23262f);
  border-radius: 4px;
  font-family: inherit;
}
.lg-root .change-play-btn {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--positive, #2ea865);
  background: transparent;
  color: var(--positive-soft, #7fdca4);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.lg-root .called-row {
  min-height: 52px;
  padding: 6px;
  border: 0;
  border-bottom: 1px solid #171a22;
  background: transparent;
  color: var(--text, #e6edf3);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
}
.lg-root .called-row .p-cnt {
  width: 26px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #8b949e);
}
.lg-root .called-row .p-form {
  font-size: 13px;
  color: var(--text-muted, #8b949e);
}
.lg-root .called-row .p-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong, #fff);
  flex: 1;
}
.lg-root .called-foot {
  padding: 10px 16px 16px;
  font-size: 13px;
  color: var(--text-muted, #8b949e);
  text-align: center;
}
.lg-root .recap-footnote {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #1e293b;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
}

.lg-root .lg-log-drawer-btn {
  display: none;
}

@container (max-width: 1199px) {
  .lg-root .mob-tabs {
    display: none;
  }
  .lg-root .lg-log-drawer-btn {
    display: inline-flex;
    align-items: center;
  }
  .lg-root .live-grid,
  .lg-root .live-grid.has-call {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .lg-root .live-grid.no-call {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .lg-root .live-side-col {
    display: none;
  }
  .lg-root .live-side-col.drawer-open {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100%;
    z-index: 20;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.55);
  }
  .lg-root .side-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .lg-root .lg-log-drawer-btn {
    display: none !important;
  }
  .lg-root .mob-tabs {
    display: grid;
  }
  .lg-root .side-close-btn {
    display: none !important;
  }
  .lg-root .live-grid,
  .lg-root .live-grid.has-call,
  .lg-root .live-grid.no-call {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lg-root .live-main,
  .lg-root .live-who-col,
  .lg-root .live-side-col,
  .lg-root .live-side-col.drawer-open {
    display: none;
    position: static;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    overflow: visible;
    box-shadow: none;
  }
  .lg-root .live-main.mob-show {
    display: flex;
  }
  .lg-root .live-who-col.mob-show:not(.who-col-hide) {
    display: flex;
  }
  .lg-root .live-side-col.mob-show {
    display: flex;
  }
  .lg-root .lg-col1-spacer,
  .lg-root .lg-col1-footer {
    display: none;
  }
  .lg-root .panel-body {
    max-height: none;
    overflow: visible;
  }
  .lg-root .call-card-top.has-art {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* Playbook Builder create dialog (approved L3 desktop and mobile). */
.pb-create-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 5, 8, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pb-create-modal {
  width: 560px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  border: 1px solid #3a3f4b;
  border-radius: 14px;
  background: #11141c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: var(--text-strong, #fff);
}
.pb-create-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #23262f);
}
.pb-create-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.pb-create-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
  min-height: 0;
}
.pb-create-fields fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.pb-create-fields label,
.pb-create-fields legend {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-dim, #6e7681);
}
.pb-create-fields small {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--text-muted, #8b949e);
}
.pb-create-fields .pb-start-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #3a3f4b;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text-strong, #fff);
}
.pb-start-card:has(input:checked) {
  border-color: #ffb02e;
  background: rgba(255, 176, 46, 0.08);
}
.pb-create-fields input[type='radio'] {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: #ffb02e;
}
.pb-create-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pb-logo-upload {
  flex: none;
  width: 48px;
  height: 48px;
  border: 1.5px dashed #3a3f4b;
  border-radius: 10px;
  background: transparent;
  font-size: 11px;
  padding: 0;
}
.pb-create-logo img {
  object-fit: contain;
}
.pb-create-visibility > div {
  display: inline-flex;
  gap: 18px;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  padding: 8px 16px;
}
.pb-create-visibility > div label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--text-strong, #fff);
  cursor: pointer;
}
.pb-create-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border, #23262f);
}
@media (max-width: 640px) {
  .pb-create-backdrop {
    padding: 0;
  }
  .pb-create-modal {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .pb-create-header {
    min-height: 52px;
    padding: 0 8px 0 16px;
    flex: none;
  }
  .pb-create-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
  }
  .pb-create-header button {
    min-height: 44px;
    min-width: 64px;
  }
  .pb-create-fields {
    padding: 16px;
    flex: 1;
  }
  .pb-create-name {
    order: 0;
  }
  .pb-create-logo {
    order: 1;
    flex-wrap: wrap;
  }
  .pb-create-scheme {
    order: 2;
  }
  .pb-create-start {
    order: 3;
  }
  .pb-create-source {
    order: 4;
  }
  .pb-create-visibility {
    order: 5;
  }
  .pb-create-fields .form-control:not([type='radio']),
  .pb-create-fields select {
    min-height: 44px;
  }
  .pb-create-fields .pb-start-card {
    min-height: 56px;
  }
  .pb-create-fields small {
    font-size: 12px;
  }
  .pb-create-visibility > div {
    display: flex;
    justify-content: space-around;
  }
  .pb-create-footer {
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  }
  .pb-create-footer #btn-cancel-modal {
    display: none;
  }
  .pb-create-footer #btn-submit-modal {
    width: 100%;
    min-height: 48px;
    font-size: 14px;
  }
}

.pb-create-close-icon {
  font-size: 20px;
}
.pb-create-close-label {
  display: none;
}
@media (max-width: 640px) {
  .pb-create-close-icon {
    display: none;
  }
  .pb-create-close-label {
    display: inline;
  }
}

/* Shared Playbook Builder item header. */
.pb-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.pb-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pb-item-kind {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim, #6e7681);
}
.pb-item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pb-item-title-row img {
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}
.pb-item-title {
  margin: 0;
  min-width: 0;
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--text-strong, #fff);
  overflow-wrap: anywhere;
}
.pb-item-title input {
  width: 100%;
  max-width: 520px;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--border, #3a3f4b);
  border-radius: 0;
  padding: 2px 0;
  font: inherit;
  color: inherit;
}
.pb-item-title input:focus-visible {
  outline: 2px solid var(--primary, #ffb02e);
  outline-offset: 3px;
}
.pb-item-byline {
  font-size: 12.5px;
  color: var(--text-muted, #8b949e);
  overflow-wrap: anywhere;
}
.pb-item-edit-details {
  align-self: flex-start;
  padding: 0;
  font-size: 12px;
}
.pb-item-actions,
.pb-sheet-view-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pb-item-visibility {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
}
.pb-item-visibility .btn {
  border: 0;
  border-radius: 0;
  flex: 1;
}
.pb-item-delete {
  color: #ff7b72;
}
.pb-item-favorite.is-favorited {
  color: #ff7b72;
  border-color: #ff7b72;
  background: rgba(255, 123, 114, 0.08);
}
@media (max-width: 640px) {
  .pb-item-header {
    flex-direction: column;
    gap: 10px;
  }
  .pb-item-info {
    width: 100%;
  }
  .pb-item-title {
    font-size: 28px;
  }
  .pb-item-actions {
    display: grid;
    width: 100%;
  }
  .pb-item-actions--owner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .pb-item-actions--owner .btn {
    min-height: 40px;
    white-space: nowrap;
  }
  .pb-item-visibility .btn {
    padding-inline: 10px;
  }
  .pb-item-actions--reader {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .pb-item-actions--reader .btn {
    min-height: 44px;
  }
  .pb-item-copy,
  .pb-item-actions--reader .pb-item-done {
    grid-column: 1 / -1;
  }
}

.pb-item-name-crumb {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* A save error must not move a header control while it is pressed. */
.pb-item-name-error {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 1100;
  max-width: calc(100vw - 48px);
  padding: 10px 16px;
  border: 1px solid var(--red, #ff7b72);
  border-radius: 8px;
  background: var(--surface, #0f1118);
  color: var(--text-strong, #fff);
  font-size: 13px;
  font-weight: 600;
}

/* Set-centric Playbook Builder editor (#5711). */
.pb-book-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.pb-add-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.pb-add-panel h2,
.pb-add-panel h3 {
  margin: 0;
  font-size: 15px;
}
.pb-matching-sets {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
}
.pb-match-set {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 4px;
  text-align: left;
  white-space: normal;
  padding: 10px;
}
.pb-match-set.is-selected {
  background: rgba(255, 176, 46, 0.08);
  border-left: 3px solid var(--primary);
}
.pb-selected-set {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.pb-set-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pb-set-actions [aria-pressed='true'] {
  border-color: var(--primary);
  color: var(--primary);
}
.pb-picker-plays {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 10px;
}
.pb-picker-play {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  white-space: normal;
  padding: 8px;
  border: 1px solid var(--border);
  min-width: 0;
}
.pb-picker-play.is-added {
  border-color: var(--primary);
}
.pb-picker-play.is-unmatched {
  opacity: 0.5;
}
.pb-picker-art {
  display: block;
  width: 100%;
  position: relative;
}
.pb-picker-art svg {
  width: 100%;
  height: auto;
}
.pb-picker-mark {
  position: absolute;
  right: 4px;
  top: 4px;
  background: var(--surface);
  border-radius: 4px;
  padding: 3px 6px;
}
.pb-picker-play small,
.pb-match-set small {
  color: var(--text-muted);
}
@media (max-width: 1024px) {
  .pb-book-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pb-picker-play {
  background: #0c0e14;
  color: var(--text-strong);
  align-items: flex-start;
  line-height: 1.3;
}
.pb-picker-play:not(:disabled):hover {
  border-color: var(--primary);
}
.pb-picker-badge {
  display: inline-block;
  width: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
}

/* Shared public book / sheet rating control. */
.pb-item-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
}
.pb-item-stars {
  display: flex;
}
.pb-item-star.form-control {
  width: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3a3f4b;
  font-size: 20px;
  cursor: pointer;
}
.pb-item-star.is-filled {
  color: #b08a3e;
}
.pb-item-rating--mine .pb-item-star.is-filled {
  color: #f2b84b;
}
.pb-item-star:focus-visible {
  outline: 2px solid var(--link, #58a6ff);
  outline-offset: 1px;
}
.pb-item-rating-detail {
  color: var(--text-muted, #8b949e);
  font-size: 12px;
}
@media (max-width: 640px) {
  .pb-item-rating {
    grid-column: 1 / -1;
    padding: 0 8px 8px;
  }
  .pb-item-star.form-control {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .pb-item-rating-detail {
    flex-basis: 100%;
  }
}

/* Book limits, related sheets and collapsible outline (#5713). */
.pb-cap-meters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pb-cap-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
}
.pb-cap-meter > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.pb-cap-meter strong {
  font-size: 18px;
  color: var(--text-strong);
}
.pb-cap-meter small {
  font-size: 11px;
}
.pb-cap-meter progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #1b1e27;
  accent-color: var(--primary, #ffb02e);
}
.pb-cap-meter progress::-webkit-progress-bar {
  background: #1b1e27;
}
.pb-cap-meter progress::-webkit-progress-value {
  background: var(--primary, #ffb02e);
}
.pb-cap-meter progress::-moz-progress-bar {
  background: var(--primary, #ffb02e);
}
.pb-cap-meter.is-warning {
  border-color: #e3b341;
}
.pb-cap-meter.is-warning progress {
  accent-color: #e3b341;
}
.pb-cap-meter.is-warning progress::-webkit-progress-value {
  background: #e3b341;
}
.pb-cap-meter.is-warning progress::-moz-progress-bar {
  background: #e3b341;
}
.pb-cap-meter.is-full {
  border-color: #ff7b72;
}
.pb-cap-meter.is-full strong {
  color: #ff7b72;
}
.pb-cap-meter.is-full progress {
  accent-color: #ff7b72;
}
.pb-cap-meter.is-full progress::-webkit-progress-value {
  background: #ff7b72;
}
.pb-cap-meter.is-full progress::-moz-progress-bar {
  background: #ff7b72;
}
.pb-book-sheets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pb-book-sheets > h2,
.pb-book-sheets > p,
.pb-book-sheets > #btn-sheet-from-book {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .pb-book-sheets {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pb-book-sheets h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}
.pb-book-sheet {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 48px;
  text-align: left;
}
.pb-book-sheet small {
  color: var(--text-muted);
}
.pb-outline-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.pb-outline-tools [aria-pressed='true'] {
  color: var(--primary, #ffb02e);
  border-color: var(--primary, #ffb02e);
}
.pb-audible-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}
.pb-formation-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-width: 0;
  min-height: 44px;
}
.pb-outline-plays {
  display: grid;
  gap: 8px;
}
.pb-outline-plays.is-art {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.pb-outline-plays.is-names {
  grid-template-columns: 1fr;
}
.pb-outline-plays button:disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
}
@media (max-width: 640px) {
  .pb-cap-meters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pb-formation-toggle {
    flex-wrap: wrap;
    gap: 4px;
  }
  .pb-outline-tools > div {
    display: flex;
    width: 100%;
  }
  .pb-outline-tools > div > button {
    flex: 1;
    min-height: 40px;
  }
}

/* Playsheet editing: persistent source picker and the same section grid in both modes. */
.pb-sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}
.pb-sheet-layout.is-editing {
  grid-template-columns: 460px minmax(0, 1fr);
  align-items: start;
}
.pb-sheet-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 14px;
  min-width: 0;
  align-items: start;
}
.pb-sheet-picker {
  position: sticky;
  top: 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface, #0f1118);
}
.pb-sheet-picker h3 {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.pb-sheet-picker .pb-section-picker-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.pb-sheet-picker label,
.pb-sheet-picker select,
.pb-sheet-picker input {
  max-width: 100%;
  min-width: 0;
}
.pb-sheet-personnel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.pb-sheet-personnel-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pb-sheet-personnel-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.pb-new-section-help {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 8px;
  white-space: normal;
}
.pb-play-move {
  border: 0;
  background: transparent;
  color: var(--text-muted, #8b949e);
  cursor: pointer;
  min-width: 28px;
  min-height: 32px;
}
.pb-play-move:disabled {
  opacity: 0.3;
  cursor: default;
}
.pb-play-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border, #23262f);
  color: var(--text-muted, #8b949e);
  cursor: grab;
}
.pb-play-drag:active {
  cursor: grabbing;
}
[data-sheet-play]:focus-visible,
.pb-play-drag:focus-visible {
  outline: 2px solid var(--primary, #ffb02e);
  outline-offset: 2px;
}
.pb-drop-before {
  box-shadow: inset 0 4px var(--primary, #ffb02e);
}
.pb-drop-after,
.pb-drop-end {
  box-shadow: inset 0 -4px var(--primary, #ffb02e);
}
@media (pointer: coarse) {
  .pb-play-drag {
    display: none;
  }
}
.pb-picker-empty {
  grid-column: 1 / -1;
}
.pb-section-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
  .pb-sheet-layout.is-editing {
    grid-template-columns: minmax(0, 1fr);
  }
  .pb-sheet-picker {
    position: static;
  }
}

/* Shared add panels become full-screen sheets on phones. */
.pb-mobile-only {
  display: none;
}
.pb-mobile-sec-nav[hidden] {
  display: none;
}
.pb-mobile-sec-nav button:disabled {
  opacity: 0.3;
}
@media (max-width: 640px) {
  .pb-mobile-only {
    display: block;
  }
  .pb-desktop-only {
    display: none;
  }
  .pb-mobile-sheet {
    display: none;
  }
  .pb-mobile-sheet.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1100;
    box-sizing: border-box;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px max(24px, env(safe-area-inset-bottom));
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #0c0e14;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body:has(.pb-mobile-sheet.is-open) {
    overflow: hidden;
  }
  .pb-add-heading.pb-mobile-only {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border, #23262f);
    padding-bottom: 8px;
  }
  .pb-add-heading h2 {
    margin: 0;
    font-size: 20px;
  }
  .pb-mobile-sheet button,
  .pb-mobile-sheet input,
  .pb-mobile-sheet select,
  .pb-mobile-sheet summary,
  .pb-mobile-sec-nav button {
    min-height: 44px;
  }
  .pb-mobile-filters:not(.is-open) {
    display: none;
  }
  .pb-mobile-sheet .pb-cap-meters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pb-mobile-sheet .pb-cap-meter {
    padding: 4px;
    min-width: 0;
  }
  .pb-mobile-sheet .pb-cap-meter small {
    display: none;
  }
  .pb-mobile-sheet .pb-cap-meter > span {
    font-size: 9px;
  }
  .pb-mobile-sheet .pb-cap-meter strong {
    font-size: 12px;
  }
  .pb-add-panel:not(.is-drilled) .pb-selected-set,
  .pb-add-panel.is-drilled .pb-matching-sets,
  .pb-add-panel.is-drilled .pb-sets-count {
    display: none;
  }
  .pb-add-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
  .pb-add-targets button {
    border-radius: 999px;
  }
  .pb-mobile-sheet .pb-picker-plays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================
   Issue #5874: Live Game Tracker Box Score & Who Player Credit
   ========================================================== */
.lg-root .who-block {
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface-deep, #08090d);
  padding: 10px 12px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lg-root .who-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lg-root .who-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.lg-root .who-collapse-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted, #94a3b8);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}

.lg-root .who-collapsed {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #23262f);
  background: var(--surface-deep, #08090d);
  color: var(--text-primary);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
}

.lg-root .who-collapsed .k {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary, #ffb02e);
}

.lg-root .who-collapsed .v {
  flex: 1;
  font-weight: 700;
  color: var(--text-strong, #fff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lg-root .who-collapsed .chg {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

.lg-root .who-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-root .who-lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}

.lg-root .who-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.lg-root .who-chip {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-raised, #151922);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lg-root .who-chip.sm {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 11.5px;
}

.lg-root .who-chip.on {
  border-color: var(--primary, #ffb02e);
  background: rgba(255, 176, 46, 0.16);
  color: var(--primary, #ffb02e);
}

.lg-root .who-chip.other {
  border-style: dashed;
  color: var(--text-muted, #94a3b8);
}

.lg-root .who-art-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0a1410;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-root .who-art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.lg-root .who-art-lbl {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

.lg-root .who-art-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-muted, #94a3b8);
}

.lg-root .who-art-badge.on {
  background: rgba(255, 176, 46, 0.2);
  color: var(--primary, #ffb02e);
}

.lg-root .who-art-wrap .lg-call-art-wrap {
  width: 100%;
  max-width: 100%;
  height: 170px;
  aspect-ratio: auto;
  overflow: hidden;
}

.lg-root .who-art-wrap .lg-call-art-wrap svg,
.lg-root .who-art-svg {
  display: block;
  width: 100%;
  height: 170px;
  max-height: 170px;
}

.lg-root .who-route-g,
.lg-root .who-qb-g {
  cursor: pointer;
}

.lg-root .who-qb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lg-root .who-qb-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

.lg-root .who-rec-nondefault-ring {
  pointer-events: none;
}

.lg-root .who-hint {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  padding-top: 2px;
}

.lg-root .who-other-pop {
  margin-top: 4px;
  padding: 8px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface, #0f1118);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-root .who-other-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lg-root .who-other-search {
  flex: 1;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-raised, #151922);
  color: var(--text-primary);
  font-size: 12px;
}

.lg-root .who-other-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.lg-root .who-other-list {
  max-height: 165px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lg-root .who-other-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

.lg-root .who-other-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lg-root .who-other-item .num {
  font-weight: 800;
  color: var(--primary, #ffb02e);
  min-width: 28px;
}

.lg-root .who-other-item .nm {
  flex: 1;
  font-weight: 600;
}

.lg-root .who-other-item .pos {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

.lg-root .lg-punt-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.lg-root .lg-punt-yds-input {
  width: 58px;
  min-height: 36px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface, #0f1118);
  color: var(--text-strong, #fff);
  font-weight: 800;
  font-size: 13px;
}

.lg-root .lg-punt-unit {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
}

.lg-root .lg-pat-kicker-row {
  margin-bottom: 10px;
}

.lg-root .log-who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

.lg-root .log-edit-who-btn {
  border: 0;
  background: transparent;
  color: var(--primary, #ffb02e);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

.lg-root .bs-recap-card {
  background: var(--surface-raised, #151922);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lg-root .bs-recap-sub {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.lg-root .bs-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 176, 46, 0.35);
  background: rgba(255, 176, 46, 0.08);
}

.lg-root .bs-save-bar.saved {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.lg-root .bs-save-bar.unlinked {
  border-color: var(--border);
  background: var(--surface, #0f1118);
}

.lg-root .bs-save-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--text-strong, #fff);
}

.lg-root .bs-save-sub {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.lg-root .bs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.lg-root .bs-tab {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface, #0f1118);
  color: var(--text-muted, #94a3b8);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lg-root .bs-tab.active {
  border-color: var(--primary, #ffb02e);
  background: rgba(255, 176, 46, 0.16);
  color: var(--primary, #ffb02e);
}

.lg-root .bs-table-wrap {
  overflow-x: auto;
}

.lg-root .bs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.lg-root .bs-table th {
  text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.lg-root .bs-table th:first-child,
.lg-root .bs-table td:first-child {
  text-align: left;
}

.lg-root .bs-table td {
  text-align: right;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lg-root .bs-total-row td {
  font-weight: 800;
  border-top: 1px solid var(--border);
  color: var(--text-strong, #fff);
}

.lg-root .bs-player {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lg-root .bs-num {
  font-weight: 800;
  color: var(--primary, #ffb02e);
}

.lg-root .bs-pos {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

.lg-root .bs-uncred-note {
  font-size: 12px;
  color: #facc15;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.08);
}

.lg-root .log-who-txt {
  color: var(--text-muted, #94a3b8);
}

.lg-root .log-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: #22c55e;
  color: #08090d;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.lg-root .who-other-empty {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  padding: 6px 4px;
}

.lg-root .who-ol-row,
.lg-root .who-route-hit,
.lg-root .who-route-line,
.lg-root .who-rec-dot,
.lg-root .who-rec-num,
.lg-root .who-route-tag,
.lg-root .who-qb-dot {
  pointer-events: auto;
}

.lg-root .lg-kick-unit-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lg-root .fourth-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-root .fourth-btn.good {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.lg-root .fourth-btn.warn {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.lg-root .yds-num {
  text-align: center;
}

.lg-root .lg-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.lg-root .lg-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lg-root .bs-player.uncred {
  opacity: 0.65;
  font-style: italic;
}

.lg-root .bs-name {
  font-weight: 700;
  color: var(--text-primary);
}

.lg-root .bs-strong {
  font-weight: 800;
  color: var(--text-primary);
}

.lg-root .bs-empty {
  text-align: center;
  color: var(--text-muted, #94a3b8);
  padding: 12px 8px;
}

.lg-root .bs-save-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lg-root .bs-save-bar.dirty {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.08);
}

.lg-root .lg-box-diff-modal-card {
  max-width: 620px;
}

.lg-root .lg-diff-bulk-btns {
  display: flex;
  gap: 6px;
}

.lg-root .lg-diff-sub {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.lg-root .lg-diff-player {
  font-weight: 800;
  font-size: 13px;
  color: var(--text-primary);
}

.lg-root .lg-diff-single {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.lg-root .lg-diff-tag {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  margin-left: 6px;
}

.lg-root .lg-diff-row.conflict {
  border-color: rgba(250, 204, 21, 0.45);
}

.lg-root .recap-sec {
  display: flex;
  flex-direction: column;
}

.lg-root .bs-recap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lg-root .bs-tab .cnt {
  opacity: 0.75;
  margin-left: 3px;
}

.lg-root .lg-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 8, 15, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lg-root .lg-modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface-raised, #151922);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 90vh;
  overflow-y: auto;
}

.lg-root .lg-modal-head,
.lg-root .lg-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lg-root .lg-edit-who-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}

.lg-root .lg-edit-who-field select,
.lg-root .lg-edit-who-field input {
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface, #0f1118);
  color: var(--text-primary);
}

.lg-root .lg-diff-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.lg-root .lg-diff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lg-root .lg-diff-row {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface, #0f1118);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-root .lg-diff-radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lg-root .lg-diff-opt {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  font-size: 12px;
}

.lg-root .lg-diff-opt.active {
  border-color: var(--primary, #ffb02e);
  background: rgba(255, 176, 46, 0.12);
}

.lg-root .lg-log-drawer {
  display: none;
}

.lg-root .lg-mob-log-bar {
  display: none;
}

.lg-root .lg-mob-preview,
.lg-root .lg-mob-prev-head {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  body:has(.lg-root[data-lg-view='live']) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
  }
  body:has(.lg-root[data-lg-view='live']) .pub-navbar,
  body:has(.lg-root[data-lg-view='live']) .pub-sections,
  body:has(.lg-root[data-lg-view='live']) .pub-foot,
  body:has(.lg-root[data-lg-view='live']) > footer,
  body:has(.lg-root[data-lg-view='live']) .pb-head,
  body:has(.lg-root[data-lg-view='live']) .pb-tabs {
    display: none !important;
  }
  body:has(.lg-root[data-lg-view='live']) #main-content,
  body:has(.lg-root[data-lg-view='live']) #app,
  body:has(.lg-root[data-lg-view='live']) .pub-wrap,
  body:has(.lg-root[data-lg-view='live']) .pb-page,
  body:has(.lg-root[data-lg-view='live']) .pb-l3-container,
  body:has(.lg-root[data-lg-view='live']) .pb-l3-wrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body:has(.lg-root[data-lg-view='live']) .pub-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  body:has(.lg-root[data-lg-view='live']) .pb-root {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 6px 0;
  }
  .lg-root[data-lg-view='live'] {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .lg-root[data-lg-view='live'] .live-bar {
    margin-bottom: 6px;
    padding: 4px 12px;
  }
  .lg-root[data-lg-view='live'] .live-wrap {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    padding: 0 0 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .lg-root[data-lg-view='live'] .sit-bar {
    padding: 6px 12px;
    margin-bottom: 6px;
  }
  .lg-root[data-lg-view='live'] .sit-btn {
    min-height: 32px;
    padding: 0 10px;
  }
  .lg-root[data-lg-view='live'] .field-strip {
    height: 10px;
    margin-top: 5px;
  }
  .lg-root[data-lg-view='live'] .call-card,
  .lg-root[data-lg-view='live'] .res-card {
    padding: 10px 14px;
  }
  .lg-root[data-lg-view='live'] .call-name {
    font-size: clamp(19px, 2.4vw, 24px);
    margin: 2px 0 5px;
  }
  .lg-root[data-lg-view='live'] .call-controls {
    margin-top: 6px;
    padding-top: 6px;
  }
  .lg-root[data-lg-view='live'] .call-link {
    min-height: 36px;
    padding: 0 10px;
  }
  .lg-root[data-lg-view='live'] .res-head {
    margin-bottom: 6px;
  }
  .lg-root[data-lg-view='live'] .lg-early-kick-btn {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }
  .lg-root[data-lg-view='live'] .res-toggles {
    flex-wrap: nowrap;
    margin-bottom: 8px;
  }
  .lg-root[data-lg-view='live'] .res-tog {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .lg-root[data-lg-view='live'] .yds-row {
    margin-bottom: 8px;
  }
  .lg-root[data-lg-view='live'] .yds-step,
  .lg-root[data-lg-view='live'] .yds-display {
    min-height: 44px;
  }
  .lg-root[data-lg-view='live'] .yds-val {
    font-size: clamp(24px, 3.8vw, 32px);
  }
  .lg-root[data-lg-view='live'] .quick-yds {
    flex-wrap: nowrap;
    margin-bottom: 0;
  }
  .lg-root[data-lg-view='live'] .q-chip {
    flex: 1 1 0;
    min-width: 34px;
    min-height: 36px;
    padding: 0 4px;
    font-size: 12px;
    white-space: nowrap;
  }
  .lg-root[data-lg-view='live'] .who-block {
    padding: 8px 12px;
    gap: 6px;
  }
  .lg-root[data-lg-view='live'] .who-art-wrap {
    padding: 6px 8px;
    gap: 4px;
  }
  .lg-root[data-lg-view='live'] .who-chip {
    min-height: 32px;
    padding: 4px 9px;
  }
  .lg-root[data-lg-view='live'] .lg-col1-footer .primary-btn {
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .lg-root .lg-mob-log-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    bottom: 0;
    z-index: 900;
    padding: 8px 12px;
    margin-top: 8px;
    background: rgba(10, 15, 24, 0.96);
    border-top: 1px solid #1e293b;
  }
}

/* ==========================================================
   Issue #5871: Opponent Play ("They ran") Tracker & Recap
   ========================================================== */
.lg-root .who-block.who-auto-collapsed {
  display: none !important;
}

.lg-root .live-they-block,
.lg-root .live-they-card {
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface-deep, #08090d);
  display: flex;
  flex-direction: column;
}

.lg-root .live-they-block.has-selection,
.lg-root .live-they-card.has-pick {
  border-color: var(--primary, #ffb02e);
}

.lg-root .live-they-header,
.lg-root .live-they-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.lg-root .live-they-header.is-modal,
.lg-root .live-they-head-static {
  cursor: default;
}

.lg-root .live-they-header-left,
.lg-root .live-they-head-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lg-root .live-they-eyebrow,
.lg-root .live-they-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-secondary, #c9d1d9);
}

.lg-root .live-they-optional,
.lg-root .live-they-opt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim, #6e7681);
}

.lg-root .live-they-header-right,
.lg-root .live-they-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lg-root .live-they-summary {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim, #6e7681);
}

.lg-root .live-they-summary.is-picked {
  color: var(--primary, #ffb02e);
}

.lg-root .live-they-caret {
  font-size: 12px;
  color: var(--text-muted, #8b949e);
}

.lg-root .live-they-body {
  border-top: 1px solid var(--border, #23262f);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lg-root .live-they-note {
  font-size: 12px;
  color: var(--text-dim, #6e7681);
  text-wrap: pretty;
}

.lg-root .live-they-picked-card,
.lg-root .live-they-picked {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--primary, #ffb02e);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 176, 46, 0.1);
}

.lg-root .live-they-picked-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lg-root .live-they-picked-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-strong, #fff);
}

.lg-root .live-they-picked-sub {
  font-size: 12px;
  color: var(--primary, #ffb02e);
}

.lg-root .live-they-clear-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted, #8b949e);
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px;
  min-height: 36px;
  white-space: nowrap;
  cursor: pointer;
}

.lg-root .live-they-seen,
.lg-root .live-they-grid-sec,
.lg-root .live-they-search-sec,
.lg-root .live-they-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-root .live-they-sec-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.lg-root .live-they-sub-label,
.lg-root .live-they-sec-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
}

.lg-root .live-they-sec-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim, #6e7681);
}

.lg-root .live-they-seen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lg-root .live-they-seen-chip {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.lg-root .live-they-seen-cnt {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim, #6e7681);
}

.lg-root .live-they-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-root .live-they-grid-box {
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  overflow: hidden;
  background: #08090d;
  padding: 3px;
}

.lg-root .live-they-grid {
  display: grid;
  gap: 3px;
}

.lg-root .live-they-corner-btn,
.lg-root .live-they-grid-corner {
  min-width: 0;
  min-height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--link, #58a6ff);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.lg-root .live-they-col-head,
.lg-root .live-they-grid-col-head {
  min-width: 0;
  min-height: 30px;
  padding: 2px 1px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary, #c9d1d9);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
}

.lg-root .live-they-col-head.is-active,
.lg-root .live-they-row-head.is-active {
  background: var(--primary, #ffb02e);
  color: var(--on-primary, #08090d);
}

.lg-root .live-they-row-head,
.lg-root .live-they-grid-row-head {
  min-width: 0;
  min-height: 36px;
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary, #c9d1d9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-wrap: balance;
  cursor: pointer;
}

.lg-root .live-they-cell,
.lg-root .live-they-grid-cell {
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--border, #23262f);
  border-radius: 4px;
  background: var(--surface, #0f1118);
  color: var(--text-muted, #8b949e);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lg-root .live-they-cell.is-line {
  background: rgba(255, 176, 46, 0.08);
}

.lg-root .live-they-cell.is-active {
  background: var(--primary, #ffb02e);
  border-color: var(--primary, #ffb02e);
  color: var(--on-primary, #08090d);
}

.lg-root .live-they-more-shells-btn,
.lg-root .live-they-grid-more {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px dashed var(--border, #23262f);
  border-radius: 4px;
  background: transparent;
  color: var(--link, #58a6ff);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .lg-root .live-they-row-head,
  .lg-root .live-they-cell,
  .lg-root .live-they-grid-row-head,
  .lg-root .live-they-grid-cell {
    min-height: 44px;
  }
}

.lg-root .live-they-search-input {
  min-height: 42px;
  box-sizing: border-box;
  background: var(--surface, #0f1118);
  border: 1px solid var(--border, #23262f);
  color: var(--text-strong, #fff);
  font-size: 16px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: Inter, sans-serif;
}

.lg-root .live-they-search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lg-root .live-they-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface-raised, #14161f);
  color: var(--text-strong, #fff);
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.lg-root .live-they-search-row-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.lg-root .live-they-search-row-name,
.lg-root .live-they-search-name {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-root .live-they-search-row-form,
.lg-root .live-they-search-form {
  font-size: 11px;
  color: var(--text-muted, #8b949e);
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-root .live-they-search-row-meta,
.lg-root .live-they-search-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #ffb02e);
  white-space: nowrap;
}

.lg-root .live-they-no-match,
.lg-root .live-they-search-empty {
  font-size: 13px;
  color: var(--text-muted, #8b949e);
}

.lg-root .log-who-lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.lg-root .log-they-txt,
.lg-root .recap-log-they {
  font-size: 11.5px;
  font-weight: 700;
}

.lg-root .recap-their-card {
  display: flex;
  flex-direction: column;
}

.lg-root .recap-their-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.lg-root .recap-their-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lg-root .recap-their-toggle,
.lg-root .recap-their-opts {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.lg-root .recap-their-tab,
.lg-root .recap-their-opt {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface-raised, #14161f);
  color: var(--text-secondary, #c9d1d9);
  border: 1px solid var(--border, #23262f);
  cursor: pointer;
}

.lg-root .recap-their-tab.active,
.lg-root .recap-their-opt.active {
  background: var(--primary, #ffb02e);
  color: var(--on-primary, #08090d);
  border-color: var(--primary, #ffb02e);
}

.lg-root .recap-their-table {
  display: flex;
  flex-direction: column;
}

.lg-root .recap-their-head-row,
.lg-root .recap-their-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 64px 56px;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
  margin-bottom: 6px;
}

.lg-root .recap-their-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 64px 56px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 6px;
}

.lg-root .recap-their-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lg-root .recap-their-label {
  font-weight: 700;
  color: var(--text-strong, #fff);
  white-space: nowrap;
}

.lg-root .recap-their-plays {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lg-root .recap-their-rate {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lg-root .recap-their-ypp {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .lg-root[data-lg-view='live'] .live-who-col {
    gap: 6px;
  }
  .lg-root[data-lg-view='live'] .who-block {
    padding: 6px 10px;
    gap: 4px;
  }
  .lg-root[data-lg-view='live'] .who-art-wrap {
    padding: 4px 8px;
    gap: 3px;
  }
  .lg-root[data-lg-view='live'] .who-art-wrap .lg-call-art-wrap,
  .lg-root[data-lg-view='live'] .who-art-wrap .lg-call-art-wrap svg,
  .lg-root[data-lg-view='live'] .who-art-svg {
    height: 145px;
    max-height: 145px;
  }
  .lg-root[data-lg-view='live'] .live-they-header,
  .lg-root[data-lg-view='live'] .live-they-head {
    min-height: 34px;
    padding: 0 12px;
  }
}

/* Defensive Tracker v2 (#5875) */
.lg-root .def-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.16);
  color: #79b8ff;
  border: 1px solid #3b82f6;
}

.lg-root .recap-def-card {
  border-color: rgba(59, 130, 246, 0.35);
}

.lg-root .recap-def-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.lg-root .def-presnap-card,
.lg-root .def-who-block {
  border-color: rgba(59, 130, 246, 0.35);
}

.lg-root .who-collapsed-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface, #0f1118);
  font-size: 13px;
}

.lg-root .who-clear,
.lg-root .tr-picked-clear {
  border: 0;
  background: transparent;
  color: var(--text-muted, #8b949e);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.lg-root .play-art-wrap {
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  background: var(--surface-deep, #08090d);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lg-root .play-art-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted, #8b949e);
}

.lg-root .play-art-svg,
.lg-root .def-art-svg {
  width: 100%;
  height: 155px;
  display: block;
}

.lg-root .art-def-node {
  cursor: pointer;
}

.lg-root .tr-block {
  border: 1px solid var(--border, #23262f);
  border-radius: 10px;
  background: var(--surface, #0f1118);
  display: flex;
  flex-direction: column;
}

.lg-root .tr-block .opt {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim, #6e7681);
}

.lg-root .tr-body {
  border-top: 1px solid var(--border, #23262f);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lg-root .tr-sec,
.lg-root .tr-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lg-root .tr-sub-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
}

.lg-root .tr-picked {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--primary, #ffb02e);
  background: rgba(255, 176, 46, 0.1);
}

.lg-root .tr-picked-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lg-root .tr-picked-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-strong, #fff);
}

.lg-root .tr-picked-sub {
  font-size: 12px;
  color: var(--primary, #ffb02e);
}

.lg-root .tr-search-in {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #23262f);
  background: var(--surface-deep, #08090d);
  color: var(--text-strong, #fff);
  font-size: 14px;
}

.lg-root .tr-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lg-root .tr-res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #23262f);
  background: var(--surface-raised, #14161f);
  color: var(--text-strong, #fff);
  text-align: left;
  cursor: pointer;
}

.lg-root .tr-res-name {
  font-size: 13px;
  font-weight: 700;
}

.lg-root .tr-res-form {
  font-size: 11px;
  color: var(--text-muted, #8b949e);
}

.lg-root .tr-res-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #ffb02e);
  white-space: nowrap;
}

.lg-root .tr-grid-wrap {
  border: 1px solid var(--border, #23262f);
  border-radius: 8px;
  background: var(--surface-deep, #08090d);
  padding: 4px;
  overflow-x: auto;
}

.lg-root .tr-grid {
  display: grid;
  gap: 3px;
}

.lg-root .tr-corner {
  min-height: 28px;
}

.lg-root .tr-more-sh {
  grid-column: 1 / -1;
  min-height: 36px;
  border: 1px dashed var(--border, #23262f);
  border-radius: 6px;
  background: transparent;
  color: var(--link, #58a6ff);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
