/* Vectors v46 game day refinements. Loaded after v45. */
:root {
  --v46-card-radius: 18px;
  --v46-purple: #e5484d;
  --v46-purple-deep: #952d31;
}
/* Apply capitalization to elements whose actual primary font is Sora. */
html[data-theme] .v46-sora-caps { text-transform: uppercase !important; }

/* Calm page background and keep page gutters 30% tighter than v46-r38. */
html[data-theme] body,
html[data-theme="light"] body { background: var(--bg) !important; }
html[data-theme] .page-wrap {
  max-width: 1776px;
  padding-left: clamp(3.733px, .7vw, 9.333px) !important;
  padding-right: clamp(3.733px, .7vw, 9.333px) !important;
}
@media (max-width: 760px) {
  html[data-theme] .page-wrap { padding-left: 3.733px !important; padding-right: 3.733px !important; }
}

/* Apply a single radius to card surfaces, including feature-specific cards.
   Headers, circular portraits, and position chips retain their own geometry. */
html[data-theme] :is(.card, [class$="-card"], [class*="-card "],
  .hero, .v10-team-hero, .v30-history-hero, .position-column,
  .v28-league-tile, .team-overview, .trade-side, .balance-suggestion,
  .trade-context-bar, .analytics-kpi, .profile-shell, .public-profile-shell,
  .member-search-results, .notification-panel, .modal, .v08-score-strip-shell,
  .v08-score-game, .v42-player-panel, .v24-outlook-section,
  .v46-points-left-item, .slot-row, .market-row, .asset-row,
  .v10-trade-roster-player, .grounded-insight, .advanced, .advanced-metric,
  .career-stat, .v10-team-overview, .v19-balance-option, .v14-balance-option,
  .v09-outlook-item, .v09-waiver-move, .bio-stat, .recent-stat-grid > div,
  .social-inbox, .social-thread, .draft-room-panel, .draft-public-profile) {
  border-radius: var(--v46-card-radius) !important;
}

/* Both weekly views keep their switcher above the tagline and title. */
html[data-theme] .v46-current-week-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 0 0 22px;
}
html[data-theme] .v46-current-week-controls :is(.v42-view-switcher, .week-control) {
  margin: 0 !important;
  flex-shrink: 0;
}
html[data-theme] .v42-view-switcher {
  background: var(--v45-surface-2) !important;
  border: 1px solid var(--v45-line) !important;
}
html[data-theme] .v42-view-switcher button.active {
  background: linear-gradient(135deg, var(--v46-purple), var(--v46-purple-deep)) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -12px rgba(149, 45, 49, .6) !important;
}
html[data-theme] .v42-view-switcher button:not(.active) { color: var(--text) !important; }
html[data-theme] :is(.v42-view-switcher button, .v41-week-nav):focus-visible {
  outline: 2px solid var(--v46-purple);
  outline-offset: 3px;
}

/* Historical weekly hero: preserve field lines over green fading to yellow. */
html[data-theme] .hero.v46-prev-week-card {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 76px),
    linear-gradient(115deg, #145b42 0%, #476735 55%, #a39735 100%) !important;
}
html[data-theme] .card.v46-prev-week-card {
  background: linear-gradient(115deg, rgba(26,209,121,.2), rgba(233,235,103,.16)) !important;
}
html[data-theme] :is(.v46-strengths-card, .v24-outlook-section.strengths) {
  background: rgba(26,209,121,.17) !important;
  border-color: rgba(26,209,121,.4) !important;
}
html[data-theme] :is(.v46-weaknesses-card, .v24-outlook-section.weaknesses) {
  background: rgba(243, 207, 79,.17) !important;
  border-color: rgba(243, 207, 79,.4) !important;
}
html[data-theme] .v46-strengths-card .card-title { color: #8bf0ba !important; }
html[data-theme] .v46-weaknesses-card .card-title { color: #f7e08c !important; }
html[data-theme="light"] .v46-strengths-card .card-title { color: #116f42 !important; }
html[data-theme="light"] .v46-weaknesses-card .card-title { color: #967d20 !important; }

/* Stack a compact matchup result above the selected week's bench scores. */
html[data-theme] .v46-result-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}
html[data-theme] .v46-matchup-result-card {
  min-height: 0 !important;
  height: auto !important;
  align-self: start;
}
html[data-theme] .v46-matchup-result-card .card-body { padding: 14px 18px !important; }
html[data-theme] .v46-matchup-result-card .matchup-team-card {
  min-height: 0 !important;
  padding: 10px 12px !important;
}
html[data-theme] .v46-matchup-result-card .matchup-team-avatar { width: 36px; height: 36px; }
html[data-theme] .v46-points-left-list { display: grid; gap: 8px; }
html[data-theme] .v46-points-left-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--v45-surface-2);
  border: 1px solid var(--v45-line);
}
html[data-theme] .v46-points-left-player { min-width: 0; }
html[data-theme] .v46-points-left-player .profile-link-button {
  width: auto;
  font: 600 14px/1.4 Sora, sans-serif;
  text-align: left;
  color: var(--text);
}
html[data-theme] .v46-points-left-player .profile-link-button:hover { color: var(--v46-purple); }
html[data-theme] .v46-points-left-player > span { display: block; color: var(--muted); font-size: 12px; }
html[data-theme] .v46-points-left-score {
  flex-shrink: 0;
  font: italic 800 25px/1 var(--v45-display);
  color: var(--text);
}
html[data-theme] .v46-points-left-score small { font: 500 11px/1 Sora, sans-serif; color: var(--muted); }
html[data-theme] .v46-points-left-empty { color: var(--muted); font-size: 13px; }
html[data-theme] .v46-slot-position-hidden { display: none !important; }

/* v41 already supplies accessible arrows and defaults to the newest week.
   Hide only its numbered strip; other pages' navigation remains available. */
#page-player-profile .v41-week-track,
.player-profile-page .v41-week-track { display: none !important; }

@media (max-width: 760px) {
  html[data-theme] .v46-current-week-controls { gap: 14px; margin-bottom: 18px; }
  html[data-theme] .v46-current-week-controls .v42-view-switcher { width: 100%; }
}

/* My Players Live: compact, team-colored field surfaces. */
html[data-theme] .v42-live-page { grid-template-columns: minmax(0,1fr); min-width: 0; }
html[data-theme] .v42-live-page > *,
html[data-theme] .v42-live-heading > div:first-child { min-width: 0; }
html[data-theme] .v42-live-heading h1 {
  font-family: var(--v45-display) !important;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(46px, 5.6vw, 88px);
  line-height: .9;
  letter-spacing: -.005em;
  margin: 14px 0 10px;
  white-space: normal;
  overflow-wrap: break-word;
}
html[data-theme] .v42-player-board { gap: 10px; }
html[data-theme] .v42-player-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, .55fr) minmax(0, 1fr);
  border: 0;
  outline: 0;
  border-radius: var(--v46-card-radius);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 76px),
    linear-gradient(115deg,
      color-mix(in srgb, var(--team-primary) 48%, var(--panel)),
      color-mix(in srgb, var(--team-secondary) 26%, var(--panel)) 65%,
      color-mix(in srgb, var(--team-primary) 20%, var(--panel)));
  box-shadow: none;
}
html[data-theme="light"] .v42-player-row {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 2px, transparent 2px 76px),
    linear-gradient(115deg,
      color-mix(in srgb, var(--team-primary) 15%, var(--panel)),
      color-mix(in srgb, var(--team-secondary) 10%, var(--panel)) 65%,
      var(--panel));
}
html[data-theme] .v42-player-row::before { display: none; }
html[data-theme] .v42-player-row :is(.v42-player-main, .v42-league-scores, .v42-pbp-card) {
  padding: 12px;
  border: 0;
  background: transparent;
}
html[data-theme] .v42-player-top { grid-template-columns: 88px minmax(0,1fr) auto; gap: 10px; }
html[data-theme] .v42-player-photo {
  width: 88px;
  height: 88px;
  border: 0;
  background: transparent;
  object-fit: contain;
  border-radius: 12px;
}
html[data-theme] .v42-photo-fallback { background: rgba(127,127,127,.14); }
html[data-theme] .v42-player-photo,
html[data-theme] .v42-game-status.upcoming {
  background: rgba(0,0,0,.10);
  border: 0;
  border-radius: 10px;
}
html[data-theme] .v42-player-photo { padding: 0; box-sizing: border-box; object-fit: cover; object-position: top center; }
html[data-theme] .v42-name-line { flex-wrap: wrap; gap: 5px 8px; }
html[data-theme] .v42-name-line h3 {
  font: 700 16px/1.25 var(--v45-sans);
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-theme] .v42-standard-score strong { font: italic 800 32px/1 var(--v45-display); }
html[data-theme] .v42-game-status { margin-top: 8px; padding: 6px 8px; border: 0; }
html[data-theme] .v42-activity-row { margin-top: 6px; gap: 4px; }
html[data-theme] .v42-activity-chip { padding: 3px 6px; border: 0; background: rgba(127,127,127,.1); }
html[data-theme] .v42-league-scores { gap: 5px; max-height: 172px; }
html[data-theme] .v42-league-score {
  padding: 5px 8px;
  gap: 8px;
  border: 0;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
}
html[data-theme] .v42-league-score.starter { background: color-mix(in srgb, var(--panel) 55%, rgba(26,209,121,.16)); }
html[data-theme] .v42-league-score strong { font: 600 12px/1.3 var(--v45-sans) !important; }
html[data-theme] .v42-league-score small { font: 600 11px/1.3 var(--v45-sans) !important; letter-spacing: .03em; }
html[data-theme] .v42-league-score b { font: italic 800 24px/1 var(--v45-display); }
html[data-theme] .v42-league-score b span { font: 500 11px/1 var(--v45-sans); }
html[data-theme] .v42-pbp-card { min-height: 0; max-height: 172px; }
html[data-theme] .v42-pbp-head { margin-bottom: 5px; }
html[data-theme] .v42-play-empty { padding: 10px; }
html[data-theme] .v42-panel-label { font: 700 11px/1.3 var(--v45-sans); letter-spacing: .06em; }
html[data-theme] .v42-pbp-head strong { font: 700 18px/1.2 var(--v45-display); }
html[data-theme] .v42-summary-card { padding: 10px 14px; }
html[data-theme] .v42-summary-card span { font-family: var(--v45-sans); }
html[data-theme] .v42-summary-card strong { font: italic 800 30px/1.1 var(--v45-display); }

@media (max-width: 1180px) {
  html[data-theme] .v42-player-row { grid-template-columns: minmax(0,1fr) minmax(160px,.6fr); }
  html[data-theme] .v42-player-row .v42-pbp-card { padding-top: 0; max-height: 140px; }
}
@media (max-width: 820px) {
  html[data-theme] .v42-player-row { grid-template-columns: minmax(0,1fr); }
  html[data-theme] .v42-player-row .v42-league-scores { padding-top: 0; }
}
@media (max-width: 760px) {
  html[data-theme] .v42-live-heading h1 { font-size: clamp(42px,13vw,60px); }
}
@media (max-width: 560px) {
  html[data-theme] .v42-player-top { grid-template-columns: 72px minmax(0,1fr); gap: 8px; }
  html[data-theme] .v42-player-photo { width: 72px; height: 72px; }
  html[data-theme] .v42-standard-score { margin-top: 0; }
  html[data-theme] .v42-game-status { margin-top: 6px; }
}

/* Keep team color on the identity side; scoring and feeds share neutral grey. */
html[data-theme] .v42-summary-card::after { display: none; }
html[data-theme] .v42-game-pill.upcoming {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
html[data-theme] .v42-game-status.upcoming :is(.v42-game-pill, strong) {
  font: 600 12px/1.4 var(--v45-sans) !important;
  color: var(--text);
  letter-spacing: 0;
}
/* Use the app's established body and display families throughout the live view. */
html[data-theme] .v42-live-page :is(p, small, .eyebrow, .v42-connection,
  .v42-game-status, .v42-game-pill, .v42-activity-chip, .v42-team-line,
  .v42-play-meta, .v42-play-empty, .v42-attribution) { font-family: var(--v45-sans); }
html[data-theme] .v42-live-page {
  --v46-live-grey: #1b1d26;
  --v46-league-score: #292633;
  font-family: var(--v45-sans);
}
html[data-theme="light"] .v42-live-page {
  --v46-live-grey: #eeedf1;
  --v46-league-score: #eae0e1;
}
html[data-theme] .v42-player-row,
html[data-theme="light"] .v42-player-row { background: var(--v46-live-grey); }
html[data-theme] .v42-player-row .v42-player-main {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  padding: 0;
}
html[data-theme] .v42-player-top { display: contents; }
html[data-theme] .v46-live-identity {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  align-content: start;
  align-items: center;
  gap: 0 10px;
  min-width: 0;
  padding: 12px 20px 12px 12px;
  border-right: 1px solid #535766;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 76px),
    linear-gradient(90deg, var(--team-primary),
      color-mix(in srgb, var(--team-primary) 55%, var(--v46-live-grey)) 50%,
      var(--v46-live-grey));
}
html[data-theme="light"] .v46-live-identity {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 2px, transparent 2px 76px),
    linear-gradient(90deg,
      color-mix(in srgb, var(--team-primary) 25%, var(--v46-live-grey)),
      var(--v46-live-grey));
}
html[data-theme] .v46-live-identity :is(.v42-game-status, .v42-activity-row) { grid-column: 1 / -1; }
html[data-theme] .v42-standard-score {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 12px 12px 20px;
  background: var(--v46-live-grey);
}
html[data-theme] .v42-league-score,
html[data-theme] .v42-league-score.starter { background: var(--v46-league-score); }
html[data-theme] .v42-live-page :is(button, input, select, textarea),
html[data-theme] .v42-standard-score :is(span, small),
html[data-theme] .v42-league-score b span { font-family: var(--v45-sans); }
html[data-theme] .v42-standard-score :is(span, small),
html[data-theme] .v42-panel-label {
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: .04em;
}

/* Uniform slim scrollbars with yellow thumbs across the app. */
html[data-theme] { --v46-scroll-thumb: #f4d35e; --v46-scroll-hover: #ffe48a; --v46-scroll-track: #171a23; }
html[data-theme="light"] { --v46-scroll-track: #eeedf1; }
html[data-theme], html[data-theme] * {
  scrollbar-width: thin;
  scrollbar-color: var(--v46-scroll-thumb) var(--v46-scroll-track);
}
html[data-theme]::-webkit-scrollbar, html[data-theme] ::-webkit-scrollbar { width: 6px; height: 6px; }
html[data-theme]::-webkit-scrollbar-track, html[data-theme] ::-webkit-scrollbar-track { background: var(--v46-scroll-track); }
html[data-theme]::-webkit-scrollbar-thumb, html[data-theme] ::-webkit-scrollbar-thumb { background: var(--v46-scroll-thumb); border-radius: 999px; }
html[data-theme]::-webkit-scrollbar-thumb:hover, html[data-theme] ::-webkit-scrollbar-thumb:hover { background: var(--v46-scroll-hover); }
html[data-theme]::-webkit-scrollbar-button, html[data-theme] ::-webkit-scrollbar-button { display: none; }
html[data-theme] .nav::-webkit-scrollbar { display: block; }
@media (max-width: 560px) {
  html[data-theme] .v42-player-row .v42-player-main { grid-template-columns: minmax(0,1fr); }
  html[data-theme] .v46-live-identity {
    grid-template-columns: 72px minmax(0,1fr);
    gap: 0 8px;
    border-right: 0;
    border-bottom: 1px solid #535766;
    padding: 12px 12px 16px;
  }
  html[data-theme] .v42-standard-score { flex-direction: row; align-items: baseline; justify-content: flex-end; padding: 16px 12px 12px; }
}

/* League details use a popout instead of an independently scrolling column. */
html[data-theme] .v42-player-row .v42-league-scores { max-height: none; overflow: visible; }
html[data-theme] .v46-league-overflow { display: none; }
html[data-theme] .v46-league-more {
  align-self: flex-start;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #f4d35e;
  font: 700 11px/1.4 var(--v45-sans);
  cursor: pointer;
}
html[data-theme="light"] .v46-league-more { color: #806000; }
html[data-theme] .v46-league-more:hover { text-decoration: underline; }
html[data-theme] .v46-league-dialog {
  --v46-live-grey: #1b1d26;
  --v46-league-score: #292633;
  width: min(520px, calc(100vw - 32px));
  max-height: min(80dvh, 720px);
  padding: 22px;
  border: 1px solid #535766;
  border-radius: 18px;
  background: var(--v45-surface);
  color: var(--text);
  font-family: var(--v45-sans);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
html[data-theme="light"] .v46-league-dialog { --v46-league-score: #eae0e1; }
html[data-theme] .v46-league-dialog[open] { display: flex; flex-direction: column; gap: 14px; }
.v46-league-dialog::backdrop { background: rgba(0,0,0,.65); }
.v46-league-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.v46-league-dialog h2 { margin: 0; font: italic 800 30px/1.1 var(--v45-display); text-transform: uppercase; }
.v46-league-dialog-close { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--v45-surface-2); color: var(--text); font-size: 24px; cursor: pointer; }
.v46-league-dialog-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.v46-league-dialog-list { overflow-y: auto; min-height: 0; display: grid; gap: 10px; }
html[data-theme] .v46-league-dialog .v42-league-score { padding: 12px; border-radius: 12px; }
html[data-theme] .v46-league-dialog .v42-league-score strong { white-space: normal; overflow-wrap: anywhere; }
.v46-league-comparison { margin-top: 5px; font: 500 11px/1.4 var(--v45-sans); color: var(--muted); }
html[data-theme] :is(.v46-league-more, .v46-league-dialog-close):focus-visible { outline: 2px solid #f4d35e; outline-offset: 3px; }

/* Inter for supporting copy and dropdown choices; retain display/name fonts. */
:root { --v46-subtext: "InterVariable", "Inter", sans-serif; }
html[data-theme] :is(p, .card-subtitle, .muted, .player-meta,
  .v42-attribution, .v41-no-week-data, .v46-league-dialog-copy) {
  font-family: var(--v46-subtext) !important;
  font-weight: 400;
  text-transform: none !important;
}
html[data-theme] :is(select, option, optgroup, [role="option"],
  .menu button, .v11-participant-option),
html[data-theme] :is(.menu, .v11-participant-menu, [role="listbox"]) * {
  font-family: var(--v46-subtext) !important;
  text-transform: none !important;
}

/* Page titles keep a deliberate purple underline as their single accent. */
html[data-theme] :is(.page-header, .v42-live-heading, .player-profile-identity) .eyebrow {
  display: none !important;
}
html[data-theme] :is(.page, .player-profile-page) h1::after {
  content: '';
  display: block;
  width: clamp(72px, 12vw, 160px);
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: #e5484d;
}
html[data-theme] .v42-player-row .v42-pbp-card {
  margin: 10px 10px 10px 0;
  padding: 12px;
  background: #101219;
  border-radius: 14px !important;
}
html[data-theme="light"] .v42-player-row .v42-pbp-card { background: #dedee5; }
@media (max-width: 1180px) {
  html[data-theme] .v42-player-row .v42-pbp-card { margin: 0 12px 12px; padding: 12px; }
}

/* League context belongs on the pages that operate on a selected league. */
html[data-theme] :is(#page-matchups, #page-dashboard, #page-analytics, #page-trades) .global-league-banner {
  display: flex !important;
  margin-bottom: 18px;
}
html[data-theme] .topbar { justify-content: flex-end; }
html[data-theme] #page-friends .member-search-wrap { width: 100%; max-width: none; min-width: 0; }
html[data-theme] #page-friends .member-search-control::after { display: none; }
html[data-theme] #page-friends .member-search-input { padding-right: 40px; }
html[data-theme] .v46-member-search-card :is(.social-search, #socialSearchResults) { display: none; }

/* Draft actions stay flat in every interaction state. */
html[data-theme] #page-drafts :is(button, .btn, [role="button"]),
html[data-theme] #page-drafts :is(button, .btn, [role="button"])::before,
html[data-theme] #page-drafts :is(button, .btn, [role="button"])::after {
  box-shadow: none !important;
  filter: none !important;
}

/* Scoreboard title follows the live week, with matching red typography. */
html[data-theme] #page-home .v08-score-strip-title { flex-wrap: wrap; column-gap: 8px !important; row-gap: 6px; }
html[data-theme] #page-home .v08-score-strip-title > :is(strong, .eyebrow) {
  font: 800 15px/1.2 var(--v45-sans) !important;
  color: #e5484d !important;
  margin: 0 !important;
  flex: 0 0 auto;
  white-space: nowrap;
  letter-spacing: .03em !important;
  text-transform: uppercase;
}
html[data-theme] .v08-score-network {
  font-family: var(--v46-subtext) !important;
  font-size: 12px !important;
  font-weight: 500;
  text-transform: none !important;
}

/* Every position badge consumes the same palette as player profiles. */
html[data-theme] :is(.position-chip, .v42-position, .draft-room-position, .v09-lineup-slot-badge) {
  color: var(--pos-color, var(--text)) !important;
  background: var(--pos-bg, var(--panel-soft)) !important;
}

/* League selection uses supporting typography, a red outline, and a yellow arrow. */
html[data-theme] .global-league-banner select {
  appearance: none;
  font: 500 13px/1.4 var(--v46-subtext) !important;
  text-transform: none !important;
  color: var(--text);
  background: var(--panel-raised);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23f4d35e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  border: 1px solid #e5484d !important;
  border-radius: 12px;
  padding: 10px 38px 10px 14px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
html[data-theme] .global-league-banner select:is(:hover, :focus-visible) {
  border-color: #e5484d !important;
  outline: 2px solid rgba(229,72,77,.35);
  outline-offset: 2px;
  box-shadow: none;
}
html[data-theme] .global-league-banner select option {
  background: var(--panel-raised);
  color: var(--text);
  font-family: var(--v46-subtext);
  text-transform: none;
}
html[data-theme] #page-analytics .info-tip:is(:hover, :focus)::after { display: none !important; }
.v46-analytics-tooltip {
  position: fixed;
  inset: auto;
  margin: 0;
  z-index: 2147483647;
  width: min(370px, calc(100vw - 16px));
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(244,211,94,.55);
  border-radius: 12px;
  background: var(--panel-raised, #20232c);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  color: var(--text-soft, #e4e6ec);
  font: 500 12px/1.55 var(--v46-subtext) !important;
  text-align: left;
  text-transform: none !important;
  pointer-events: none;
}
.v46-analytics-tooltip[hidden] { display: none; }

/* Flat interactions retain focus outlines without glow. */
html[data-theme] body :is(#appPage, #authPage) :hover,
html[data-theme] body :is(#appPage, #authPage) :hover::before,
html[data-theme] body :is(#appPage, #authPage) :hover::after {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
html[data-theme] .btn.primary, html[data-theme] #authButton {
  box-shadow: none !important;
  filter: none !important;
}
html[data-theme="light"] {
  --v45-surface-2: #f2f3f5;
  --panel-soft: #f2f3f5;
  --panel-hover: #e9ebef;
}
html[data-theme] { --v46-league-score: #24272f; }
html[data-theme="light"] { --v46-league-score: #e5e7eb; }
html[data-theme] .v42-league-scores { background: var(--v46-league-score) !important; }
html[data-theme] .analytics-kpi { background: var(--panel) !important; }

html[data-theme] #page-analytics .info-tip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.v46-analytics-extra { margin: 14px 0; }
.v46-weekly-scoring { margin-bottom: 16px; }
.v46-weekly-scoring .card-body { overflow-x: auto; }
.v46-weekly-scoring table { width: 100%; border-collapse: collapse; font-family: var(--v46-subtext); font-size: 13px; }
.v46-weekly-scoring th, .v46-weekly-scoring td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: right; }
.v46-weekly-scoring th:first-child { text-align: left; }
/* A compact picker sits on the title row, with supporting copy below. */
html[data-theme] :is(#page-dashboard, #page-matchups, #page-analytics) .page-header.v46-header-with-league {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 6px;
}
.v46-header-with-league > .v46-header-copy { display: contents; }
.v46-header-with-league > .v46-header-copy > h1 { grid-column: 1; grid-row: 1; }
.v46-header-with-league > .v46-header-copy > p { grid-column: 1; grid-row: 2; }
html[data-theme] .v46-header-with-league > .global-league-banner {
  display: flex !important;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  width: auto;
  transform: none !important;
  overflow: visible !important;
}
.v46-header-with-league > .global-league-banner > :is(svg, .league-banner-copy),
.v46-header-with-league > .global-league-banner::before { display: none !important; }
html[data-theme] .v46-header-with-league .global-league-banner select {
  width: clamp(145px, 19vw, 220px);
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 5px 30px 5px 10px;
  border-radius: 8px;
  font-size: 12px !important;
  background-position: right 8px center !important;
}
.v46-header-with-league > :not(.v46-header-copy, .global-league-banner, .v23-weekly-context) { grid-column: 2; grid-row: 2; }
html[data-theme] #page-dashboard .v46-header-with-league > .v23-weekly-context {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  max-width: 100%;
  margin-top: 10px;
}
@media (max-width: 600px) {
  html[data-theme] :is(#page-dashboard, #page-matchups, #page-analytics) .page-header.v46-header-with-league { column-gap: 10px; }
  html[data-theme] .v46-header-with-league .global-league-banner select { width: 138px; }
  html[data-theme] :is(#page-dashboard, #page-matchups, #page-analytics) .v46-header-with-league h1 { font-size: clamp(34px, 8vw, 46px) !important; }
  .v46-header-with-league > .v46-header-copy > p { grid-column: 1 / -1; }
  .v46-header-with-league > :not(.v46-header-copy, .global-league-banner, .v23-weekly-context) { grid-column: 1 / -1; grid-row: 3; }
}

/* Navigation uses color alone to identify the active page. */
html[data-theme] .sidebar .nav-button,
html[data-theme] .sidebar .nav-button:is(.active, :hover, :focus-visible) {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
html[data-theme] .sidebar .nav-button { color: #8b93a7 !important; }
html[data-theme] .sidebar .nav-button.active { color: var(--text) !important; }
html[data-theme] .sidebar .nav-button .nav-label { color: #8b93a7 !important; }
html[data-theme] .sidebar .nav-button.active .nav-label { color: var(--text) !important; }
html[data-theme] .sidebar .nav-button svg { color: #e5484d !important; }
html[data-theme] .sidebar .nav-button.active svg { color: #f4d35e !important; }
html[data-theme] body #appPage .sidebar .nav-button:hover svg {
  filter: drop-shadow(0 0 4px rgba(229,72,77,.38)) !important;
}
.sidebar .nav-button::before, .sidebar .nav-button::after { display: none !important; }
html[data-theme] .sidebar-logo { justify-content: center !important; width: 100%; padding: 4px 0 18px; }
html[data-theme] .sidebar-logo::after { content: none !important; display: none !important; }
html[data-theme] .sidebar-logo .brand-mark,
html[data-theme] .sidebar-logo:hover .brand-mark {
  width: 100px !important;
  height: 88px !important;
  filter: none !important;
  transform: none !important;
  object-fit: contain;
}
html[data-theme] .sidebar-logo,
html[data-theme] .sidebar-logo:hover,
html[data-theme] .sidebar-logo .brand-mark,
html[data-theme] .sidebar-logo:hover .brand-mark {
  transform: none !important; translate: none !important; rotate: none !important; scale: none !important;
  animation: none !important; transition: none !important;
}
html[data-nav="rail"] .sidebar-logo .brand-mark,
html[data-nav="rail"] .sidebar-logo:hover .brand-mark { width: 54px !important; height: 48px !important; }
.vectors-loading-screen { background: #0d1015 !important; }
.vectors-loading-mark, .vectors-loading-line { filter: none !important; box-shadow: none !important; }
.vectors-loading-line { background: #f4d35e !important; }
.loading::before { background: url('/assets/vectors-loader.svg?v=20261008-v46-r42') center / 94px 94px no-repeat, #11131a !important; }

/* Match the main app's near-black photographic overlay. */
html[data-theme] .auth-page {
  background: linear-gradient(rgba(8,9,13,.98), rgba(8,9,13,.98)),
    url('/assets/nfl-login-collage-v46.png?v=20261008-v46-r42') center / cover no-repeat;
  color: #f5f6fa;
}
html[data-theme] .auth-brand, html[data-theme] .auth-panel { background: transparent !important; }
.auth-brand::before, .auth-brand::after { display: none !important; }
html[data-theme] .auth-brand { justify-content: center; align-items: center; gap: 24px; padding: clamp(28px, 5vw, 72px); text-align: center; }
html[data-theme] .auth-brand-mark { width: 210px; height: 185px; object-fit: contain; filter: none; }
.auth-copy .eyebrow { display: none; }
.auth-copy { width: 100%; }
.auth-copy h1 { color: #fff; }
.auth-copy p { margin-inline: auto; font-family: var(--v46-subtext); color: #c9cedb; }
html[data-theme] .auth-card {
  width: min(100%, 560px);
  padding: clamp(34px, 3vw, 48px);
  background: rgba(16,19,26,.96) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #f5f6fa;
  box-shadow: 0 20px 50px rgba(0,0,0,.25) !important;
  --text: #f5f6fa; --muted: #a0a7b7; --bg-soft: #171a23; --border: rgba(255,255,255,.14);
}
.auth-card .muted { color: #a0a7b7; }
html[data-theme] .auth-card h2 { font-size: 34px; }
html[data-theme] .auth-tabs .auth-tab { min-height: 44px; }
html[data-theme] .auth-mobile-logo { width: 112px; height: 98px; object-fit: contain; filter: none; margin-bottom: 18px; }
html[data-theme] #authButton, html[data-theme] .auth-tab.active { background: #e5484d !important; color: #fff !important; }
html[data-theme] #authButton:hover, html[data-theme] .auth-tab.active:hover { background: #c7353d !important; }
html[data-theme] #appPage:is(.hidden, [hidden]) { display: none !important; }
@media (min-width: 901px) { .auth-mobile-logo { display: none; } }
@media (max-width: 900px) {
  html[data-theme] .auth-page { grid-template-columns: 1fr; background-position: center; }
  html[data-theme] .auth-brand { display: flex; min-height: 0; gap: 12px; padding: 34px 20px 0; }
  html[data-theme] .auth-brand-mark { width: 116px; height: 102px; }
  html[data-theme] .auth-copy h1 { margin: 0 0 9px; font-size: clamp(33px, 8vw, 54px); text-wrap: balance; }
  html[data-theme] .auth-copy p { max-width: 480px; font-size: 13px; line-height: 1.5; }
  html[data-theme] .auth-panel { min-height: 0; padding: 24px 16px 40px; }
  html[data-theme] .auth-card { padding: clamp(24px, 6vw, 36px); }
  html[data-theme] .auth-card h2 { font-size: clamp(24px, 6vw, 30px); }
  html[data-theme] .auth-mobile-logo { display: none; }
}
.auth-forgot-button, .auth-reset-back { display: block; margin: 0 0 17px auto; padding: 0; border: 0; background: none; color: #e5484d; cursor: pointer; font: 700 12px/1.4 Inter, sans-serif; }
.auth-forgot-button:hover, .auth-reset-back:hover { color: #ff777d; }
.auth-card.is-reset > :is(.auth-tabs, #registerFields, .field, #authButton, #authForgotButton) { display: none !important; }
.password-reset-panel { margin-top: 22px; }
.password-reset-panel .field { margin-bottom: 17px; }
.password-reset-panel .btn.primary { min-height: 44px; }
html[data-theme] #authPage .password-reset-panel .btn.primary { background: #e5484d !important; color: #fff !important; }
html[data-theme] #authPage .password-reset-panel .btn.primary:hover { background: #c7353d !important; }
#passwordResetFeedback { min-height: 20px; margin: 16px 0; color: #d5d8e0; font: 500 13px/1.5 Inter, sans-serif; }
.auth-reset-back { margin: 18px 0 0; }

/* League Pulse: red scoreboard cues and a quiet football playbook backdrop. */
html[data-theme] #page-home .v08-score-game[data-v08-focus="1"]::after {
  background: linear-gradient(90deg, #e5484d, #a32630) !important;
}
html[data-theme] #page-home .v08-score-status.live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #e5484d !important;
  box-shadow: none !important;
  animation: none !important;
}
html[data-theme] #page-home .v08-score-strip-controls button {
  width: 28px !important; height: 28px !important; min-width: 28px; min-height: 28px;
  background: #e5484d !important;
  color: #fff !important;
  border-color: #e5484d !important;
  box-shadow: none !important;
}
html[data-theme] #page-home .v08-score-strip-controls button:hover { background: #c7353d !important; }
html[data-theme] #page-home .v08-score-strip-controls svg { color: #fff !important; stroke: currentColor; stroke-width: 2.6 !important; width: 14px; height: 14px; }
html[data-theme] #page-home .v46-waiver-card .card-title { display: flex; align-items: center; gap: 9px; }
html[data-theme] #page-home .v46-waiver-tagline {
  display: block;
  margin-bottom: 5px;
  color: #e5484d;
  font: 700 10px/1.2 var(--v45-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
html[data-theme] #page-home .v46-waiver-card .v46-view-all { font-size: 11px !important; padding: 6px 10px !important; min-height: 30px; }
.v46-trend-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.v46-trend-icon.up { color: #55d78f; }
.v46-trend-icon.down { color: #e5484d; }
/* Login photography beneath the near-black overlay at 98 percent opacity. */
html[data-theme] #appPage { position: relative; isolation: isolate; }
html[data-theme] #appPage::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(8,9,13,.98), rgba(8,9,13,.98)),
    url('/assets/nfl-login-collage-v46.png?v=20261008-v46-r42') center / cover no-repeat;
  filter: none;
}
html[data-theme] #appPage::after { content: none !important; }
html[data-theme] #page-home::before { content: none !important; }
html[data-theme] .news-source { font-weight: 700 !important; color: #e5484d !important; }
html[data-theme] .news-card h3 { font-size: 18px !important; line-height: 1.3 !important; }
html[data-theme] #notificationBadge { background: #e5484d !important; color: #fff !important; }
html[data-theme] .v42-live-heading > .v42-view-switcher { flex: 0 0 auto; margin: 0 !important; align-self: center; }
@media(max-width: 760px) {
  html[data-theme] .v42-live-heading { flex-wrap: wrap; gap: 14px; }
  html[data-theme] .v42-live-heading > .v42-view-switcher { max-width: 100%; }
}

/* Player profile identity uses the Live Scores team gradient and neutral panels. */
html[data-theme] .v41-player-profile-hero {
  --v46-live-grey: #1b1d26;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: center;
  min-height: 0;
  padding: clamp(16px, 2vw, 26px);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 76px),
    linear-gradient(90deg, var(--team-primary),
      color-mix(in srgb, var(--team-primary) 55%, var(--v46-live-grey)) 50%,
      var(--v46-live-grey)) !important;
}
html[data-theme="light"] .v41-player-profile-hero {
  --v46-live-grey: #eeedf1;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 2px, transparent 2px 76px),
    linear-gradient(90deg,
      color-mix(in srgb, var(--team-primary) 25%, var(--v46-live-grey)),
      var(--v46-live-grey)) !important;
}
html[data-theme] .v41-player-profile-hero::after { content: none !important; }
html[data-theme] .v41-player-profile-hero .player-profile-photo-column {
  display: grid; place-items: center; align-self: center;
  width: 100%; max-width: 250px; min-height: 238px;
  margin-inline: auto;
  overflow: hidden; border-radius: 16px;
  background: rgba(27,29,38,.58);
}
html[data-theme] .v41-player-profile-hero .player-profile-photo {
  display: block; width: 100%; height: 238px; max-height: none;
  margin-inline: auto; border-radius: 0; background: transparent;
  object-fit: contain; object-position: center center;
  filter: none;
}
html[data-theme] .v41-player-profile-identity {
  min-width: 0; padding: clamp(16px, 2vw, 22px);
  border-radius: 16px; background: rgba(27,29,38,.58);
  color: #f5f6fa;
}
html[data-theme] .v41-player-profile-identity h1 {
  margin: 0 0 16px; color: inherit; overflow-wrap: anywhere;
}
html[data-theme] .v41-player-profile-hero .player-profile-badges.v46-profile-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch; gap: 8px;
}
html[data-theme] .v46-profile-meta-item {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; min-height: 54px; padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  background: rgba(10,12,17,.27); backdrop-filter: none;
}
html[data-theme] .v46-profile-meta-label {
  color: #bac0cc; font: 700 10px/1.25 var(--v46-subtext);
  letter-spacing: .04em; text-transform: uppercase;
}
html[data-theme] .v46-profile-meta-value {
  display: flex; align-items: center; min-height: 22px;
  color: #fff; font: 700 14px/1.3 var(--v46-subtext);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-theme] .v46-profile-meta-value .position-chip { margin: 0; }
html[data-theme] .v41-player-profile-hero .v41-profile-info-grid { margin-top: 12px; }
html[data-theme] .v41-player-profile-hero .v41-profile-info { background: rgba(10,12,17,.27); backdrop-filter: none; }
html[data-theme="light"] .v41-player-profile-hero :is(.player-profile-photo-column, .v41-player-profile-identity) { background: rgba(27,29,38,.64); }
@media (max-width: 900px) {
  html[data-theme] .v41-player-profile-hero { grid-template-columns: minmax(140px, 190px) minmax(0, 1fr); }
}
@media (max-width: 680px) {
  html[data-theme] .v41-player-profile-hero { grid-template-columns: 1fr; }
  html[data-theme] .v41-player-profile-hero .player-profile-photo-column { max-width: 220px; min-height: 195px; }
  html[data-theme] .v41-player-profile-hero .player-profile-photo { height: 195px; }
}
@media (max-width: 430px) {
  html[data-theme] .v41-player-profile-hero .player-profile-badges.v46-profile-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme] .v46-profile-meta-item:first-child { grid-column: 1 / -1; }
}

/* NFL team banners share the Live Scores identity gradient and field markings. */
html[data-theme] #page-nfl-team .v10-team-hero {
  --v46-live-grey: #1b1d26;
  display: block;
  padding: 20px;
  min-height: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 76px),
    linear-gradient(90deg, var(--team-primary),
      color-mix(in srgb, var(--team-primary) 55%, var(--v46-live-grey)) 50%,
      var(--v46-live-grey)) !important;
}
html[data-theme="light"] #page-nfl-team .v10-team-hero {
  --v46-live-grey: #eeedf1;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 2px, transparent 2px 76px),
    linear-gradient(90deg,
      color-mix(in srgb, var(--team-primary) 25%, var(--v46-live-grey)),
      var(--v46-live-grey)) !important;
}
html[data-theme] #page-nfl-team .v10-team-hero::after { display: none !important; }
html[data-theme] .v46-team-banner-content {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(27,29,38,.52);
  color: #f5f6fa;
  min-width: 0;
}
html[data-theme] .v46-team-banner-content .v10-team-hero-copy h1 { color: inherit; overflow-wrap: anywhere; }
html[data-theme] .v46-team-banner-content :is(.eyebrow, p, small) { color: #d6d9e1; }
html[data-theme] .v46-team-banner-content .v10-team-record-block { grid-column: auto; color: inherit; }
html[data-theme] .v46-team-banner-content .v10-team-record-block strong { color: inherit; }
html[data-theme="light"] .v46-team-banner-content { background: rgba(255,255,255,.62); color: #17141c; }
html[data-theme="light"] .v46-team-banner-content :is(.eyebrow, p, small) { color: #464a54; }
@media (max-width: 900px) {
  html[data-theme] .v46-team-banner-content { grid-template-columns: 92px minmax(0,1fr); gap: 14px; }
  html[data-theme] .v46-team-banner-content .v10-team-record-block { grid-column: 2; }
}
@media (max-width: 700px) {
  html[data-theme] #page-nfl-team .v10-team-hero { padding: 12px; }
  html[data-theme] .v46-team-banner-content { padding: 14px; grid-template-columns: 68px minmax(0,1fr); gap: 12px; }
}
#page-feed .page-header { align-items: center; }
.nav-button[data-page="feed"] { order: 23; }
#page-feed .page-header h1 { font-family: 'Sora', sans-serif; text-transform: uppercase; }
.feed-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.feed-filter { cursor: pointer; border: 1px solid #363941; border-radius: 999px; background: #1c1e25; color: #c8cbd3; padding: 9px 17px; font: 700 12px Inter, sans-serif; }
.feed-filter:is(:hover,:focus-visible), .feed-filter.active { border-color: #e5484d; color: #fff; background: #423a1d; }
.feed-status { min-height: 18px; color: #f4d35e; font: 500 12px Inter, sans-serif; }
.feed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.feed-card, .feed-empty { min-width: 0; border: 1px solid #343740; border-radius: 18px; background: #1b1e25; padding: 20px; color: #e6e7ec; }
.feed-card { display: flex; flex-direction: column; gap: 15px; transition: border-color .2s, transform .2s; }
.feed-card:hover { border-color: #834347; transform: translateY(-2px); }
.feed-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.feed-kind, .feed-reason, .feed-source, .feed-impact strong { font: 800 11px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.feed-kind, .feed-source, .feed-impact strong { color: #e5484d; }
.feed-reason { color: #aab0bc; text-align: right; }
.feed-author, .feed-player-main { display: flex; align-items: center; gap: 13px; }
.feed-author > div, .feed-player-main > div { min-width: 0; }
.feed-author small { display: block; color: #9da3b0; font: 500 12px Inter, sans-serif; margin-top: 3px; }
.feed-name, .feed-player-name { padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left; font: 800 16px Sora, sans-serif; text-transform: uppercase; }
.feed-name:hover, .feed-player-name:hover, .feed-card h2 a:hover { color: #f4d35e; }
.feed-post-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: 500 15px/1.6 Inter, sans-serif; }
.feed-player-main img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #13151b; }
.feed-player-main p, .feed-card > p { margin: 4px 0 0; color: #afb4bf; font: 500 13px/1.5 Inter, sans-serif; }
.feed-movement { width: fit-content; padding: 7px 10px; border-radius: 8px; font: 800 12px Inter, sans-serif; }
.feed-movement.is-add { color: #b8ebca; background: #20362b; }
.feed-movement.is-drop { color: #ffc3c5; background: #312c1c; }
.feed-card h2 { margin: 0; font: 800 18px/1.35 Sora, sans-serif; text-transform: uppercase; }
.feed-card h2 a { color: #fff; text-decoration: none; }
.feed-impact { padding: 11px 13px; border-left: 2px solid #e5484d; background: #15171d; color: #cdd0d9; font: 500 13px/1.5 Inter, sans-serif; }
.feed-impact strong { display: block; margin-bottom: 5px; }
.feed-link { width: fit-content; margin-top: auto; padding: 0; border: 0; background: none; color: #f4d35e; cursor: pointer; text-decoration: none; font: 800 12px Inter, sans-serif; text-transform: uppercase; }
.feed-empty { grid-column: 1 / -1; color: #b6bac5; font: 500 14px/1.5 Inter, sans-serif; }
html[data-theme="light"] .feed-card, html[data-theme="light"] .feed-empty { background: #fff; color: #25262b; border-color: #d6d6dc; }
html[data-theme="light"] :is(.feed-name,.feed-player-name,.feed-card h2 a) { color: #25262b; }
html[data-theme="light"] .feed-filter { background: #f4f4f6; color: #292a30; }
html[data-theme="light"] .feed-filter.active { background: #e5484d; color: #fff; }
@media (max-width: 760px) { .feed-grid { grid-template-columns: 1fr; } .feed-card { padding: 16px; } }
