/* ===== 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');

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
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,
.companion-league-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);
}

/* ===== 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: the native ::-webkit-calendar-picker-indicator glyph renders dark
   by default, which is invisible against our dark form-control background
   (e.g. Sportsbook -> This Week's Board -> Configure Deadline). App is
   dark-only (no light theme / data-theme toggle exists), so a global
   invert is safe everywhere date/datetime-local inputs appear. */
input[type='date']::-webkit-calendar-picker-indicator,
input[type='datetime-local']::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
.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: 720px) {
  .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: fluid, device-responsive width instead of a hard 1100px cap —
   fills more of a wide desktop, stays 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. */
.page-wrapper {
  width: min(94%, 1500px);
  max-width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}
.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;
}

/* 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: 600px) {
  .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: 600px) {
  .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: min(94%, 1500px);
  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 (see
   companion-layout render.js's "Live" status label). 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;
}
.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: min(94%, 1500px);
  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: 760px) {
  .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: min(94%, 1500px);
  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: min(94%, 1500px);
  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: min(94%, 1500px);
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
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;
}
.stars .empty-star {
  color: var(--border);
}
.stars .star-half {
  background: linear-gradient(90deg, var(--gold) 50%, var(--border) 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;
  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. */
.ac-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.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;
  }
  .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: 560px) {
  .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;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.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 {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
/* 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;
  width: 26px;
  height: 22px;
  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: 860px) {
  .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: 600px) {
  .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: 720px) {
  .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;
}

@media (max-width: 720px) {
  .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 chip badge row (bye / campus-host / AQ reason) */
.cfp-team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.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;
}
/* Campus-host badge — seeds 5-8 (text label conveys state) */
.cfp-team-badge--host {
  background: rgba(240, 180, 41, 0.15);
  border: 1px solid rgba(240, 180, 41, 0.5);
  color: #c09010;
}
/* AQ reason badges — P4 / G5 / Notre Dame auto-bid (CFB 27) */
.cfp-team-badge--aq-p4-champion {
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #3fb950;
}
.cfp-team-badge--aq-g5-champion {
  background: rgba(251, 143, 68, 0.12);
  border: 1px solid rgba(251, 143, 68, 0.4);
  color: #e07030;
}
.cfp-team-badge--aq-notre-dame-top12 {
  background: rgba(188, 143, 60, 0.12);
  border: 1px solid rgba(188, 143, 60, 0.4);
  color: #a07830;
}

.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: 1200px) {
  .cfp-bubble-row {
    grid-template-columns: minmax(180px, auto) 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: 980px) {
  .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));
}
.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-heatmap {
  display: grid;
  gap: 4px;
}
.matchup-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 6px;
  align-items: center;
}
.matchup-day {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.matchup-cells {
  display: grid;
  grid-template-columns: repeat(24, minmax(10px, 1fr));
  gap: 2px;
}
.matchup-cell {
  display: inline-block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.matchup-cell-mutual {
  background: rgba(34, 197, 94, 0.85);
}
.matchup-cell-single {
  background: rgba(250, 204, 21, 0.9);
}
.matchup-cell-none {
  background: rgba(239, 68, 68, 0.85);
}

/* ===== 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: 720px) {
  .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;
}
.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: 900px) {
  .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);
}

/* ===== COMPANION VIEW LAYOUT ===== */
body.companion-layout-active {
  background: var(--bg-base);
}

body.companion-layout-active .navbar,
body.companion-layout-active .league-header,
body.companion-layout-active .nav-sections-bar,
body.companion-layout-active .tabs-bar {
  display: none !important;
}

body.companion-layout-active #app {
  padding: 0;
  max-width: 100%;
}

.companion-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.companion-header {
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.companion-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.companion-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.companion-meta {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.companion-league-name {
  font-weight: 600;
}

.companion-season {
  color: var(--text-muted);
}

.companion-nav {
  margin-top: 8px;
}

.companion-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.companion-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 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;
}

.companion-team-school {
  font-weight: 700;
}

.companion-team-user {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* 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;
}

/* Matchups */
.matchup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matchup-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;
}

.matchup-mine {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.15);
}

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

.matchup-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.matchup-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
}

.matchup-team-row.team-mine {
  background: rgba(240, 180, 41, 0.05);
}

/* Issue #1523: score-entry / result-review actions on a companion matchup
   card (Confirm/Reject/Add Result/Edit) -- mirrors the desktop schedule's
   game action row, just stacked below the score grid on the compact card. */
.matchup-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
  flex-wrap: wrap;
}

.matchup-team-info {
  display: flex;
  flex-direction: column;
}

.matchup-school {
  font-weight: 700;
  font-size: 0.85rem;
}

.matchup-coach {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.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: 992px) {
  .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 #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;
}
.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;
}
/* 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;
}

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

.tab-content[style*='--team-accent'] .badge-blue {
  background-color: var(--team-accent-2-light);
  border: 1px solid var(--team-accent-2);
  color: var(--team-accent);
}

.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 {
  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-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 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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,
.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;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.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: 6px 4px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.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;
}

/* 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-graphic-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  background: var(--surface-deep);
}
.cp-graphic-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.cp-graphic-preview {
  flex-basis: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cp-graphic-preview[hidden] {
  display: none;
}
.cp-graphic-preview img {
  display: block;
  width: min(100%, 960px);
  height: auto;
  margin-inline: auto;
  border-radius: var(--rounded-md);
}

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

@media (max-width: 520px) {
  .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-actions,
  .cp-graphic-actions .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 {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.board-recruit-table thead tr {
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.board-recruit-table th {
  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 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;
}
.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 {
}
.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));
}

/* ===== 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: 767px) {
  .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-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;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.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-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;
}

/* --- 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;
}

/* --- 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));
}

/* --- 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;
}

/* ── #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;
}

/* 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: 900px) {
  .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 — approved OCR triage deck (3593 mobile 1a + desktop 2a). */
.ingest-triage-deck {
  overflow: hidden;
  outline: none;
}
.ingest-triage-deck:focus-visible {
  box-shadow: 0 0 0 2px var(--primary);
}
.ingest-triage-header {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.ingest-triage-header > div:first-child,
.ingest-triage-pane-title,
.ingest-triage-counts,
.ingest-triage-actions {
  display: flex;
  align-items: center;
}
.ingest-triage-header > div:first-child,
.ingest-triage-pane-title {
  justify-content: space-between;
  gap: 12px;
}
.ingest-triage-header h3 {
  margin: 0;
}
.ingest-triage-header > div:first-child > span,
.ingest-triage-pane-title span,
.ingest-triage-keyboard-hint {
  color: var(--text-dim, var(--text-muted));
  font-size: 0.78rem;
}
.ingest-triage-counts {
  flex-wrap: wrap;
  gap: 8px;
}
.ingest-triage-progress {
  display: flex;
  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-workbench {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(300px, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: stretch;
}
.ingest-triage-queue,
.ingest-triage-source,
.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-queue,
.ingest-triage-source,
.ingest-triage-fields {
  overflow: hidden;
}
.ingest-triage-pane-title {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim, var(--text-muted));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.ingest-triage-queue-item {
  width: 100%;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.ingest-triage-queue-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}
.ingest-triage-queue-item.is-active {
  border-left-color: var(--primary, var(--gold));
  background: rgba(255, 176, 46, 0.07);
}
.ingest-triage-queue-item.is-handled {
  opacity: 0.52;
}
.ingest-triage-queue-item strong,
.ingest-triage-queue-item small {
  display: block;
}

/* 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-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ingest-triage-queue-item small {
  margin-top: 3px;
  color: var(--text-dim, var(--text-muted));
}
.ingest-triage-source {
  display: flex;
  flex-direction: column;
}
.ingest-triage-image-link {
  flex: 1;
  min-height: 360px;
  margin: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-deep, var(--page));
}
.ingest-triage-image-link img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  object-position: center;
}
.ingest-triage-image-missing {
  display: grid;
  flex: 1;
  min-height: 360px;
  place-items: center;
  margin: 14px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  text-align: center;
}
.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-actions {
  gap: 10px;
  margin-top: auto;
}
.ingest-triage-actions .btn:first-child {
  flex: 1;
}
.ingest-triage-actions .btn:last-child {
  flex: 2;
}
.ingest-triage-keyboard-hint {
  text-align: right;
}

@media (max-width: 900px) {
  .ingest-triage-workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  .ingest-triage-queue {
    display: none;
  }
  .ingest-triage-source {
    order: 1;
  }
  .ingest-triage-detail {
    order: 2;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .ingest-triage-image-link,
  .ingest-triage-image-link img,
  .ingest-triage-image-missing {
    min-height: 186px;
    max-height: 220px;
  }
  .ingest-triage-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 0;
    background: var(--surface, var(--bg-card));
  }
  .ingest-triage-keyboard-hint {
    display: none;
  }
}

@media (max-width: 380px) {
  .ingest-triage-deck {
    margin-inline: -8px;
    padding-inline: 10px;
  }
  .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%;
  }
}

.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: 700px) {
  .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: 760px) {
  .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: 440px) {
  .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;
  }
}
