@import url("./shared/product-crosshair.css");

:root {
  --fs-theme-bg: #fbfbfb;
  --fs-theme-surface: #ffffff;
  --fs-theme-surface-2: #f4f4f4;
  --fs-theme-ink: #111111;
  --fs-theme-muted: #5d6470;
  --fs-theme-line: #d7d7d7;
  --fs-theme-accent: #c92f2f;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --fs-theme-bg: #050505;
  --fs-theme-surface: #101010;
  --fs-theme-surface-2: #181818;
  --fs-theme-ink: #f7f7f7;
  --fs-theme-muted: #b6b6b6;
  --fs-theme-line: #343434;
  --fs-theme-accent: #df3d3d;
  --news-ink: #f7f7f7;
  --news-muted: #b6b6b6;
  --news-paper: #050505;
  --news-rule: #343434;
  --news-green: #f7f7f7;
  --rb: #102840;
  --rb-line: #5aa8eb;
  --wr: #12331c;
  --wr-line: #60c779;
  --qb: #3b1717;
  --qb-line: #e07a7a;
  --te: #36271b;
  --te-line: #c09165;
  --k: #2d2140;
  --k-line: #a68be5;
  --dst: #38320f;
  --dst-line: #d6bb25;
  --idp: #103531;
  --idp-line: #28a69c;
}

:root[data-theme="light"] {
  color-scheme: light;
}

.fs-nav .product-plus {
  --product-plus-size: 12px;
}

.league-plus-kicker .product-plus {
  --product-plus-size: 1.05rem;
  margin-left: 0.18rem;
}

.product-destination-grid .product-plus {
  --product-plus-size: 26px;
}

body:not(.manager-hq-page) {
  background-color: var(--fs-theme-bg);
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] body:not(.manager-hq-page) {
  --ink: var(--fs-theme-ink);
  --muted: var(--fs-theme-muted);
  --line: var(--fs-theme-line);
  --panel: var(--fs-theme-surface);
  --panel-strong: var(--fs-theme-surface-2);
  --bg: var(--fs-theme-bg);
  --soft: var(--fs-theme-surface-2);
  --chip: #242424;
  background-image: none;
}

:root[data-theme="dark"] :is(.site-header, .fs-header) {
  border-color: var(--fs-theme-line);
  background: rgba(7, 7, 7, 0.96);
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.brand-copy strong, .brand-copy em, .fs-brand strong, .account-back, .quick-link, .account-link) {
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.edition-bar, .site-footer) {
  border-color: var(--fs-theme-line);
  color: var(--fs-theme-muted);
}

:root[data-theme="dark"] :is(.product-hero, .daily-lead, .tool-card, .snapshot-card, .home-panel, .fsnews-card, .fsnews-note) {
  border-color: var(--fs-theme-line);
  background: var(--fs-theme-surface);
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.product-hero, .daily-lead, .tool-card, .snapshot-card, .home-panel, .fsnews-card, .fsnews-note) :is(p, small) {
  color: var(--fs-theme-muted);
}

:root[data-theme="dark"] :is(.quick-disabled, .account-link, .product-secondary, .daily-lead, .home-news-list, .headline-list a, .stat-panel, .stat-template > div, .leader-template li, .injury-report-link, .feed-status) {
  border-color: var(--fs-theme-line);
  background: var(--fs-theme-surface);
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.brand-copy em, .edition-bar, .daily-lead p, .headline-list span, .stat-note, .stat-template span, .market-row, .leader-template em) {
  color: var(--fs-theme-muted);
}

:root[data-theme="dark"] :is(.home-news-list, .headline-list a, .stats-heading, .stat-panel, .stat-template > div, .leader-template li, .market-row, .site-footer) {
  border-color: var(--fs-theme-line);
}

:root[data-theme="dark"] :is(.inactive-list li, .inactive-game-header, .inactive-team-block, .global-pulse-links a, .product-destinations, .product-destination-grid, .product-destination-grid a) {
  border-color: var(--fs-theme-line);
}

:root[data-theme="dark"] :is(.inactive-list li strong, .inactive-game-header strong, .inactive-team-header strong, .global-pulse-links strong, .product-destinations > header h2, .product-destination-grid a, .product-destination-grid strong) {
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.inactive-explainer, .inactive-list li em, .inactive-game-header em, .inactive-team-header em, .inactive-team-clear, .global-pulse-links span, .product-destination-grid small) {
  color: var(--fs-theme-muted);
}

:root[data-theme="dark"] :is(.product-destination-grid a, .inactive-list li, .global-pulse-panel) {
  background: var(--fs-theme-surface);
}

:root[data-theme="dark"] .inactive-game-header {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--away-primary, #68717a) 22%, var(--fs-theme-surface)),
    var(--fs-theme-surface) 43%,
    var(--fs-theme-surface) 57%,
    color-mix(in srgb, var(--home-primary, #68717a) 22%, var(--fs-theme-surface)));
}

:root[data-theme="dark"] .inactive-team-header {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--team-primary, #68717a) 20%, var(--fs-theme-surface)),
    color-mix(in srgb, var(--team-secondary, #aeb7c0) 8%, var(--fs-theme-surface)));
}

:root[data-theme="dark"] .inactive-team-header span {
  color: #ffffff;
}

:root[data-theme="light"] .inactive-list {
  --pos-qb: #c92d52;
  --pos-rb: #087db9;
  --pos-wr: #168851;
  --pos-te: #b76613;
  --pos-k: #7b3fc1;
  --pos-edge: #b85e15;
  --pos-dl: #617083;
  --pos-lb: #147f75;
  --pos-db: #bb531c;
  --pos-ol: #187d82;
}

:root[data-theme="dark"] .product-destination-grid a:is(:hover, :focus-visible) {
  color: #ffffff;
  background: #181818;
}

:root[data-theme="dark"] :is(.fsnews-masthead, .fsnews-lead, .fsnews-grid, .fsnews-card, .story-toolbar, .story-mount .byline) {
  border-color: var(--fs-theme-line);
}

:root[data-theme="dark"] :is(.fsnews-masthead h1, .fsnews-note p, .fsnews-card, .fsnews-card h2, .story-mount h1, .story-mount .article-body) {
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.fsnews-masthead p, .fsnews-masthead span, .fsnews-card p, .story-mount .article-deck, .story-mount .byline, .story-loading, .story-error) {
  color: var(--fs-theme-muted);
}

:root[data-theme="dark"] :is(.fsnews-note, .fsnews-card, .story-toolbar) {
  background: var(--fs-theme-surface);
}

:root[data-theme="dark"] .story-toolbar a {
  border-color: var(--fs-theme-line);
  background: var(--fs-theme-surface-2);
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] .desk-tabs { border-color: var(--fs-theme-line); }
:root[data-theme="dark"] .desk-tabs a { border-color: var(--fs-theme-line); background: var(--fs-theme-surface); color: var(--fs-theme-muted); }
:root[data-theme="dark"] .desk-tabs a:is(:hover, :focus-visible, [aria-current="page"]) { border-color: var(--fs-theme-ink); background: var(--fs-theme-ink); color: var(--fs-theme-bg); }
:root[data-theme="dark"] .desk-hero aside { background: var(--fs-theme-surface); color: var(--fs-theme-ink); }
:root[data-theme="dark"] .desk-hero aside p { color: var(--fs-theme-muted); }
:root[data-theme="dark"] .desk-modules { border-color: var(--fs-theme-line); }
:root[data-theme="dark"] .desk-module { border-color: var(--fs-theme-line); background: var(--fs-theme-surface); color: var(--fs-theme-ink); }
:root[data-theme="dark"] .desk-module h2 { color: var(--fs-theme-ink); }
:root[data-theme="dark"] .desk-module p { color: var(--fs-theme-muted); }
:root[data-theme="dark"] .desk-module li { border-color: var(--fs-theme-line); color: var(--fs-theme-ink); }
:root[data-theme="dark"] .desk-module li::after { color: var(--fs-theme-muted); }
:root[data-theme="dark"] .desk-footer-actions a { color: var(--fs-theme-ink); }

:root[data-theme="dark"] body:not(.manager-hq-page) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: #454545;
  background: #090909;
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] body:not(.manager-hq-page) :is(input, textarea)::placeholder {
  color: #858585;
  opacity: 1;
}

:root[data-theme="dark"] body:not(.manager-hq-page) :is(label, .scout-header-context) {
  color: var(--fs-theme-muted);
}

:root[data-theme="dark"] body:not(.manager-hq-page) :is(.fs-nav a, .secondary-action, .text-action) {
  border-color: #454545;
  background: #171717;
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] body:not(.manager-hq-page) .text-action {
  color: #ff6a6a;
}

:root[data-theme="dark"] body.account-page {
  background-color: var(--fs-theme-bg);
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

:root[data-theme="light"] body.account-page {
  background-color: #f5f5f5;
  background-image: linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}

:root[data-theme="light"] .account-page .account-header {
  border-color: #dddddd;
  background: rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .account-page :is(.fs-brand strong, .account-back) { color: #111111; }
:root[data-theme="light"] .account-page .fs-brand em { color: #666666; }
:root[data-theme="light"] .account-page .fs-mark { border-color: #111111; box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 6px var(--accent); }

:root[data-theme="dark"] :is(.account-card, .profile-section, .panel, .upgrade-card, .subscription-options-dialog, .subscription-dialog-plan, .subscription-options-close) {
  border-color: var(--fs-theme-line);
  background: var(--fs-theme-surface);
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.profile-identity-copy h1, .profile-section-head h2, .security-row strong, .subscription-options-row strong, .subscription-options-intro h2, .subscription-dialog-price, .subscription-dialog-plan li, .account-details dd, .account-card-brand h1, .upgrade-card h1) {
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.plan-includes li, .security-row p, .subscription-options-row p, .subscription-catalog-row > span, .profile-identity-copy > p:last-child, .subscription-options-intro > div > p:last-child, .subscription-dialog-plan-body > p:not(.subscription-dialog-price), .league-enrollment-note p, .upgrade-lede) {
  color: var(--fs-theme-muted);
}

:root[data-theme="dark"] :is(.account-card .auth-form label, .upgrade-confirm) { color: #e8e8e8; }
:root[data-theme="dark"] :is(.account-card .auth-form input, .secondary-action, .upgrade-cancel, .upgrade-close, .subscription-dialog-state) {
  border-color: #444444;
  background: #171717;
  color: #f5f5f5;
}

:root[data-theme="dark"] :is(.account-details, .profile-identity, .profile-section, .account-card .profile-details > div, .security-row, .subscription-options-row, .subscription-catalog-row, .profile-signout-row, .subscription-options-grid, .subscription-dialog-plan + .subscription-dialog-plan) {
  border-color: var(--fs-theme-line);
}

:root[data-theme="dark"] .account-details { background: var(--fs-theme-line); }
:root[data-theme="dark"] .account-details > div { background: var(--fs-theme-surface); color: var(--fs-theme-ink); }
:root[data-theme="dark"] .account-details dt { color: var(--fs-theme-muted); }
:root[data-theme="dark"] .identity-email-line,
:root[data-theme="dark"] #accountEmail { color: var(--fs-theme-ink); }
:root[data-theme="dark"] .status-pill { border-color: #7a3434; background: #281313; color: #ff7b7b; }
:root[data-theme="dark"] .status-pill-active,
:root[data-theme="dark"] .verification-badge[data-verified="true"] { border-color: #356d40; background: #102518; color: #74d68a; }
:root[data-theme="dark"] .verification-badge:not([data-verified="true"]) { border-color: #7a3434; background: #281313; color: #ff7b7b; }
:root[data-theme="dark"] .account-card::after { box-shadow: inset 0 0 0 22px var(--fs-theme-surface), inset 0 0 0 23px rgba(201, 47, 47, 0.15); }
:root[data-theme="dark"] .account-scope { border-color: #ffffff; box-shadow: inset 0 0 0 4px var(--fs-theme-surface), inset 0 0 0 7px var(--accent); }
:root[data-theme="dark"] .test-notice { border-color: #6e3030; background: #251111; }
:root[data-theme="dark"] .test-notice p { color: #cccccc; }
:root[data-theme="dark"] .test-notice strong { color: #ff7b7b; }

:root[data-theme="dark"] .subscriptions-launch-shell { color: var(--fs-theme-ink); }
:root[data-theme="dark"] .subscriptions-launch-shell > p:not(.eyebrow) { color: var(--fs-theme-muted); }
:root[data-theme="light"] .subscriptions-launch-shell { color: var(--fs-theme-ink); }
:root[data-theme="light"] .subscriptions-launch-shell > p:not(.eyebrow) { color: var(--fs-theme-muted); }

:root[data-theme="dark"] .subscription-options-grid { background: var(--fs-theme-line); }
:root[data-theme="dark"] .subscription-dialog-plan-body { background: var(--fs-theme-surface); }
:root[data-theme="dark"] .subscription-dialog-state[data-current="true"],
:root[data-theme="dark"] .subscription-dialog-action[aria-disabled="true"] { border-color: #356d40; background: #102518; color: #74d68a; }
:root[data-theme="dark"] .league-enrollment-note { background: #0d2528; }
:root[data-theme="dark"] .league-enrollment-note strong,
:root[data-theme="dark"] .league-enrollment-paths span::before { color: #67cbd8; }
:root[data-theme="dark"] .league-enrollment-paths span { color: var(--fs-theme-muted); }

:root[data-theme="dark"] :is(.scout-page .scout-topbar, .scout-page .panel-head, .target-panel, .pool-controls, .team-card, .league-form, .import-panel, .modal-import, .claimed-team, .league-stat-row span, .team-chip-row span, .icon-close, .file-action, .remove-import, .remove-league, .player-card button, .target-card button) {
  border-color: var(--fs-theme-line);
  background: var(--fs-theme-surface);
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.panel h2, .target-col h3, .team-card h3, .league-stat-row strong, .import-panel strong) {
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] :is(.target-card.empty, .league-form, .modal-import, .team-chip-row span, .file-action) {
  background: var(--fs-theme-surface-2);
}

:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .bye-week-match::after {
  background: rgba(0, 0, 0, 0.42);
  color: var(--fs-theme-ink);
}

:root[data-theme="dark"] {
  --office-paper: #050505;
  --office-panel: #101010;
  --office-panel-2: #181818;
  --office-line: #303030;
  --office-ink: #f7f7f7;
  --office-muted: #b8b8b8;
  --office-green: #f4f4f4;
  --office-red: #d63333;
  --wire-target-background: #ffffff;
  --wire-target-foreground: #111111;
}

:root[data-theme="dark"] body.manager-hq-page { background: #050505; color: #f7f7f7; }
:root[data-theme="dark"] .manager-hq-page .fs-header { border-color: #303030; background: rgba(5, 5, 5, 0.96); }
:root[data-theme="dark"] .manager-hq-page .office-rail { border-color: #303030; background: #0a0a0a; }
:root[data-theme="dark"] .manager-hq-page .fs-mark { border-color: #f3f4f6; box-shadow: inset 0 0 0 3px #050505, inset 0 0 0 6px var(--office-red); }
:root[data-theme="dark"] .manager-hq-page .manager-access-badge { border-color: #8d2828; color: #ff6666; }
:root[data-theme="dark"] .manager-hq-page .base-office-card { border-color: #36463a; background: #101010; color: #f7f7f7; }
:root[data-theme="dark"] .manager-hq-page .base-office-card p { color: #b8b8b8; }
:root[data-theme="dark"] .manager-hq-page .office-team-state { border-color: #333333; color: #f0f0f0; }
:root[data-theme="dark"] .manager-hq-page .facility-menu button { color: #a5b39e; }
:root[data-theme="dark"] .manager-hq-page .facility-menu button:is(:hover, [aria-selected="true"]) { color: #ffffff; }
:root[data-theme="dark"] .manager-hq-page :is(.fs-brand strong, .fs-nav a[aria-current="page"], .active-team-heading h3, .active-league-heading h4, .teams-heading h3) { color: #f7f7f7; }
:root[data-theme="dark"] .manager-hq-page :is(.teams-panel, .scouting-wall, .facility-room-stage, .facility-staff, .facility-dialog) { border-color: #3c3c3c; background: #101010; color: #f7f7f7; }
:root[data-theme="dark"] .manager-hq-page :is(.rail-action, .button, .mini-button, .board-action, .active-team-actions .mini-button, .constitution-file-button) { border-color: #454545; background: #181818; color: #f7f7f7; }
:root[data-theme="dark"] .manager-hq-page .button.primary { border-color: #d63333; background: #d63333; color: #ffffff; }
:root[data-theme="dark"] .manager-hq-page :is(.team-card, .active-league-profile, .rulebook-detail-card, .league-constitution, .rulebook-lineup-slot, .rulebook-scoring-group, .active-roster-group, .active-standing-row, .active-context-empty, .team-source-options button, .method-steps li, .mfl-league-result, .facility-dialog .mfl-team-confirmation, .facility-dialog .manual-format-flags label, .facility-dialog .lineup-count-card, .facility-dialog .roster-count-choice label, .roster-size-equation > span, .room-feature, .facility-staff button) { border-color: #3d3d3d; background: #111111; color: #f2f2f2; }
:root[data-theme="dark"] .manager-hq-page :is(.rulebook-section-heading h4, .rulebook-lineup-slot strong, .rulebook-scoring-group > strong, .active-league-profile strong, .active-roster-players b, .active-standing-row > b, .active-division-heading strong, .active-context-empty strong, .room-feature strong, .facility-staff > div p, .active-team-stats strong, .team-card-stat strong) { color: #ffffff; }
:root[data-theme="dark"] .manager-hq-page :is(.constitution-text, .facility-dialog input, .facility-dialog select, .facility-dialog textarea) { border-color: #3f3f3f; background: #090909; color: #f4f4f4; }
:root[data-theme="dark"] .manager-hq-page .active-standing-row.is-managed { border-color: #d63333; background: rgba(214, 51, 51, 0.12); }
:root[data-theme="dark"] .manager-hq-page .active-roster-group-title { border-color: #383838; background: #1b1010; color: #ff6868; }
:root[data-theme="dark"] .manager-hq-page :is(.team-list-empty, .team-report-empty) { border-color: #474747; color: #b8b8b8; }
:root[data-theme="dark"] .manager-hq-page .team-card:hover { border-color: #b44444; background: #1d1111; }
:root[data-theme="dark"] .manager-hq-page .team-card.is-active { border-color: #d63333; background: #211010; box-shadow: inset 3px 0 0 #d63333, 0 0 0 1px rgba(214, 51, 51, 0.12); }
:root[data-theme="dark"] .manager-hq-page .team-card-source { background: #2a1111; color: #ff7777; }
:root[data-theme="dark"] .manager-hq-page :is(.team-card-identity strong, .team-card-stat strong, .active-team-stats strong) { color: #ffffff; }
:root[data-theme="dark"] .manager-hq-page :is(.rulebook-section-heading, .active-team-stats > div + div, .active-league-profile > div + div, .active-roster-group-title, .active-division-heading) { border-color: #383838; }
:root[data-theme="dark"] .manager-hq-page .method-boundary { border-left-color: #d63333; background: rgba(31, 12, 12, 0.6); color: #d0d0d0 !important; }
:root[data-theme="dark"] .manager-hq-page .method-boundary strong { color: #dce7d3; }
:root[data-theme="dark"] .manager-hq-page .bench-count-card { border-color: #5a5a5a !important; background: #171717 !important; }
:root[data-theme="dark"] .manager-hq-page .roster-size-equation > span:last-child { border-color: #d63333; background: rgba(214, 51, 51, 0.1); }
:root[data-theme="dark"] .manager-hq-page :is(.lineup-count-card output, .roster-size-equation output) { color: #ff6d6d; }
:root[data-theme="dark"] .manager-hq-page .staff-avatar { border-color: #7a3636; background: linear-gradient(140deg, #351717, #151111); color: #ff8888; }
:root[data-theme="dark"] .manager-hq-page .facility-dialog::backdrop { background: rgba(0, 0, 0, 0.76); }
:root[data-theme="dark"] .manager-hq-page .training-player { color: #aebaaa; }
:root[data-theme="dark"] .manager-hq-page .training-fantasy-status[data-fantasy-tone="mine"] b { color: #f3d17c; }
:root[data-theme="dark"] .manager-hq-page .training-fantasy-status[data-fantasy-tone="other"] b { color: #c4cdc1; }
:root[data-theme="dark"] .manager-hq-page .training-fantasy-status[data-fantasy-tone="unrostered"] b { color: #74dbaa; }
:root[data-theme="dark"] .manager-hq-page .training-fantasy-status[data-fantasy-tone="unknown"] b { color: #a4afa1; }
:root[data-theme="dark"] .manager-hq-page .training-player > [data-training-field] { color: #d7ddd4; }
:root[data-theme="dark"] .manager-hq-page .training-player > [data-training-state="empty"] { color: #a7b0a4; }
:root[data-theme="dark"] .manager-hq-page .training-player > [data-training-state="reported"] { color: #f1f3ee; }
:root[data-theme="dark"] .manager-hq-page .training-player > [data-training-state="watch"] { color: #f0c36d; }
:root[data-theme="dark"] .manager-hq-page .training-player > [data-training-state="alert"] { color: #ff8378; }
:root[data-theme="dark"] .manager-hq-page .training-boundary { background: #1a1010; color: #b2bbae; }
:root[data-theme="dark"] .manager-hq-page .training-boundary strong { color: #f1f1f1; }

:root[data-theme="light"] {
  --office-paper: #ffffff;
  --office-panel: #ffffff;
  --office-panel-2: #f4f4f4;
  --office-line: #d5d5d5;
  --office-ink: #111111;
  --office-muted: #5c5c5c;
  --office-green: #111111;
  --office-red: #c82929;
  --wire-target-background: #111111;
  --wire-target-foreground: #ffffff;
}

:root[data-theme="light"] body.manager-hq-page { background: #ffffff; color: #111111; }
:root[data-theme="light"] .manager-hq-page .fs-header { border-color: #d5d5d5; background: rgba(255, 255, 255, 0.96); }
:root[data-theme="light"] .manager-hq-page .office-rail { border-color: #d5d5d5; background: #f7f7f7; }
:root[data-theme="light"] .manager-hq-page :is(.fs-brand strong, .fs-nav a[aria-current="page"], .active-team-heading h3, .active-league-heading h4, .teams-heading h3) { color: #111111; }
:root[data-theme="light"] .manager-hq-page :is(.teams-panel, .scouting-wall, .facility-room-stage, .facility-staff, .facility-dialog) { border-color: #d0d0d0; background: #ffffff; color: #111111; }
:root[data-theme="light"] .manager-hq-page :is(.rail-action, .button, .mini-button, .board-action, .active-team-actions .mini-button, .constitution-file-button) { border-color: #bdbdbd; background: #ffffff; color: #111111; }
:root[data-theme="light"] .manager-hq-page .button.primary { border-color: #c82929; background: #c82929; color: #ffffff; }
:root[data-theme="light"] .manager-hq-page :is(.team-card, .active-league-profile, .rulebook-detail-card, .league-constitution, .rulebook-lineup-slot, .rulebook-scoring-group, .active-roster-group, .active-standing-row, .active-context-empty, .team-source-options button, .method-steps li, .mfl-league-result, .facility-dialog .mfl-team-confirmation, .facility-dialog .manual-format-flags label, .facility-dialog .lineup-count-card, .facility-dialog .roster-count-choice label, .roster-size-equation > span, .room-feature, .facility-staff button) { border-color: #d4d4d4; background: #ffffff; color: #111111; }
:root[data-theme="light"] .manager-hq-page :is(.rulebook-section-heading h4, .rulebook-lineup-slot strong, .rulebook-scoring-group > strong, .active-league-profile strong, .active-roster-players b, .active-standing-row > b, .active-division-heading strong, .active-context-empty strong, .room-feature strong, .facility-staff > div p, .active-team-stats strong, .team-card-stat strong) { color: #111111; }
:root[data-theme="light"] .manager-hq-page :is(.constitution-text, .facility-dialog input, .facility-dialog select, .facility-dialog textarea) { border-color: #bdbdbd; background: #ffffff; color: #111111; }
:root[data-theme="light"] .manager-hq-page .active-standing-row.is-managed { border-color: #c82929; background: #fff0f0; }
:root[data-theme="light"] .manager-hq-page .active-roster-group-title { border-color: #dddddd; background: #fff1f1; color: #b82323; }
:root[data-theme="light"] .manager-hq-page .base-office-card { border-color: #d2d2d2; background: #ffffff; color: #111111; }
:root[data-theme="light"] .manager-hq-page .office-team-state { border-color: #dddddd; color: #222222; }
:root[data-theme="light"] .manager-hq-page :is(.team-list-empty, .team-report-empty) { border-color: #bdbdbd; color: #5c5c5c; }
:root[data-theme="light"] .manager-hq-page .team-card:hover { border-color: #d06a6a; background: #fff5f5; }
:root[data-theme="light"] .manager-hq-page .team-card.is-active { border-color: #c82929; background: #fff1f1; box-shadow: inset 3px 0 0 #c82929, 0 0 0 1px rgba(200, 41, 41, 0.08); }
:root[data-theme="light"] .manager-hq-page .team-card-source { background: #ffe7e7; color: #a91f1f; }
:root[data-theme="light"] .manager-hq-page :is(.team-card-identity strong, .team-card-stat strong, .active-team-stats strong) { color: #111111; }
:root[data-theme="light"] .manager-hq-page :is(.rulebook-section-heading, .active-team-stats > div + div, .active-league-profile > div + div, .active-roster-group-title, .active-division-heading) { border-color: #dddddd; }
:root[data-theme="light"] .manager-hq-page .method-boundary { border-left-color: #c82929; background: #fff2f2; color: #444444 !important; }
:root[data-theme="light"] .manager-hq-page .method-boundary strong { color: #111111; }
:root[data-theme="light"] .manager-hq-page .bench-count-card { border-color: #cccccc !important; background: #f7f7f7 !important; }
:root[data-theme="light"] .manager-hq-page .roster-size-equation > span:last-child { border-color: #c82929; background: #fff0f0; }
:root[data-theme="light"] .manager-hq-page :is(.lineup-count-card output, .roster-size-equation output) { color: #b82323; }
:root[data-theme="light"] .manager-hq-page .staff-avatar { border-color: #d37b7b; background: #fff0f0; color: #a91f1f; }

:root[data-theme="dark"] .manager-hq-page :is(input, textarea)::placeholder { color: #7f7f7f; opacity: 1; }
:root[data-theme="light"] .manager-hq-page :is(input, textarea)::placeholder { color: #777777; opacity: 1; }

:root[data-theme="light"] .manager-hq-page :is(.fs-brand em, .fs-nav a, .field-label, .rail-team-control > span, .context-copy, .rail-note p, .teams-heading p, .teams-status, .team-report-empty, .active-team-identity p, .active-stat-label, .active-league-heading p, .rulebook-section-heading span, .rulebook-lineup-slot span, .rulebook-scoring-rule span, .constitution-heading p, .constitution-entry-actions > span, .constitution-text-label, .constitution-footer > p, .active-roster-group-title span, .active-roster-players small, .active-standing-row > strong, .active-standing-row > small, .active-division-heading span, .active-context-empty span, .team-source-options span, .team-source-options small, .method-steps small, .mfl-result-heading p, .mfl-verification-note, .manual-section-heading p, .manual-form-grid label > small, .manual-format-flags legend, .lineup-count-card > small, .roster-size-equation small, .roster-calculation-note, .facility-dialog p, .facility-dialog label, .room-feature span, .facility-limit, .facility-staff small, .staff-pending, .facility-footnote) {
  color: #5c5c5c !important;
}

:root[data-theme="light"] .manager-hq-page :is(.office-rail > h1, .base-office-card h2, .teams-heading h3, .team-card-name, .active-team-heading h3, .active-team-stats strong, .active-league-heading h4, .rulebook-section-heading h4, .rulebook-lineup-slot strong, .rulebook-scoring-group > strong, .rulebook-scoring-rule strong, .constitution-heading h4, .active-roster-players b, .active-standing-row > b, .active-division-heading strong, .active-context-empty strong, .team-source-options strong, .method-steps strong, .mfl-result-heading h4, .manual-section-heading h4, .lineup-count-card > span, .room-feature strong, .facility-staff > div p) {
  color: #111111;
}

:root[data-theme="light"] .manager-hq-page :is(.team-card-source, .station-number, .eyebrow, .office-status, .rail-note > span:last-child) {
  color: #b82323;
}

.theme-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.theme-setting-copy strong { display: block; color: var(--fs-theme-ink); font-size: 0.76rem; }
.theme-setting-copy p { margin-top: 3px; color: var(--fs-theme-muted); font-size: 0.7rem; line-height: 1.45; }
.theme-toggle {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--fs-theme-ink);
  padding: 2px;
  font-size: 0.58rem;
  font-weight: 900;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border: 1px solid var(--fs-theme-line);
  border-radius: 999px;
  background: #d9d9d9;
  transition: border-color 160ms ease, background 160ms ease;
}

.theme-toggle-track::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease;
}

.theme-toggle[aria-checked="true"] .theme-toggle-track { border-color: var(--fs-theme-accent); background: var(--fs-theme-accent); }
.theme-toggle[aria-checked="true"] .theme-toggle-track::after { transform: translateX(24px); }
.theme-toggle-label { min-width: 31px; color: var(--fs-theme-ink); text-align: left; }
.theme-toggle:hover .theme-toggle-track { border-color: var(--fs-theme-accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--fs-theme-accent); outline-offset: 4px; }
:root[data-theme="dark"] .theme-toggle:not([aria-checked="true"]) .theme-toggle-track { background: #444444; }

@media (max-width: 560px) {
  .theme-setting-row { align-items: flex-start; flex-direction: column; }
}
