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

/* ===== 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', 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', 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', 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', 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: 0;
  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);
}
.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);
}

/* ===== FORMS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.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;
}

.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));
}
.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);
}
.badge-purple {
  background: rgba(163, 113, 247, 0.15);
  color: var(--purple);
}
.badge-red {
  background: rgba(248, 81, 73, 0.15);
  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. */
.badge-danger {
  background: rgba(255, 59, 59, 0.15);
  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: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.game-week {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  min-width: 60px;
}
.game-type-badge {
}
.game-teams {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.game-team {
  text-align: center;
  flex: 1;
}
.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;
  display: flex;
  gap: 8px;
  align-items: center;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  justify-content: center;
}
.score-win {
  color: var(--win);
}
.score-loss {
  color: var(--loss);
}
.score-sep {
  color: var(--text-muted);
  font-size: 1rem;
}
.game-actions {
  margin-left: auto;
}

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

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

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

.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 {
    flex-direction: column;
    align-items: flex-start;
  }
  .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;
  }
}

/* ===== 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);
}
.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-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: 1fr 1fr;
  gap: 14px;
  padding: 14px;
}
.cfp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.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: 1.2fr 1fr 0.8fr;
  gap: 10px;
}
.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-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-path-list {
  margin-left: 16px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.cfp-bubble-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.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);
}
/* 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;
}
@media (max-width: 480px) {
  .ingest-form-grid,
  .ingest-confirm-fields {
    grid-template-columns: 1fr;
  }
  .ingest-history-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* ===== 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-slot-row {
  transition: border-color 0.15s ease;
}
.depth-chart-slot-row:hover {
  border-color: var(--gold-dark);
}
.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', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.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', 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);
}
.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.5rem;
}
.tl-badge--sm::after {
  height: 3px;
}
.tl-badge--xs {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.tl-badge--xs.is-mono {
  font-size: 0.4rem;
}
.tl-badge--xs::after {
  height: 2px;
}

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