/* Shared dark palette. Gold identifies navigation and selection; teal/coral carry outcomes. */
:root{color-scheme:dark;--bg:#171b23;--paper:#202631;--soft:#282f3c;--ink:#e8edf4;--muted:#adb8c8;--line:#3a4555;--orange:#f0ca72;--green:#70d5b2}
body{background:var(--bg);color:var(--ink)}
button,input,select,textarea{color:inherit}a{color:var(--orange)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline-color:var(--orange)}
input::placeholder{color:#a3afc1!important}input,select,textarea{accent-color:var(--orange)}
.sidebar{background:#1c212b;border-color:var(--line)}
.brand,.footer-brand,.breadcrumb b,.player-name,.social-search-grid b{color:var(--ink)}
.brand-ball,.scope.active,.star-button.active{color:var(--orange)}
.brand-sub,.nav-caption,.sidebar-bottom p,.sidebar-bottom .independent,.nav,.breadcrumb,.connection,.icon-button,.text-button,.eyebrow,.section-label,.section-label>span:last-child,.feed-status,.page-heading p,.league-page-heading p,.metric-label,.table-footer,footer,.scope,#scope-note,.player-meta,.evidence-label,.value-cell small,.minutes-cell small,.game-card-top,.game-card-bottom,.dialog-intro,.method-body p,dialog>p{color:var(--muted)}
.nav:hover,.icon-button:hover,.scope:hover{background:var(--soft);color:var(--ink)}
.nav.active{background:#373327;color:var(--orange);box-shadow:inset 3px 0 var(--orange)}
.nav-count,.team-tag,.board-heading h2>span,.workspace-readonly{background:var(--soft);color:var(--muted)}
.button,.today-button,.scoring-switch button,.preset-row button,.model-detail-button{background:var(--soft);color:var(--ink);border-color:var(--line)}
.button:hover,.preset-row button:hover{background:#353e4e}
.button-dark,.social-save .button,.skip-link{background:var(--orange);color:#1b2029;border-color:var(--orange)}
.button-dark:hover{background:#ffda86}
.date-control,.search-box,.board-toolbar select,.yahoo-toolbar select,.roto-focus select,.rec-controls select,.rec-model-controls select,.rec-weights select,.model-lab select,.model-lab input:not([type=file]),.review-toolbar select,.review-table select,.social-save input,#team-picker,textarea{background:var(--bg);color:var(--ink);border-color:var(--line)}
.date-control input,.search-box input,.today-button{color:var(--ink)}
.search-box:focus-within{outline-color:var(--orange)}
.scoring-switch,.preset-row,.scope-row{border-color:var(--line)}
.scoring-switch button.active,.preset-row button.active{background:var(--orange);color:#1b2029}
.game-card,.summary-grid,.summary-grid article,.player-board,.workspace-guide,dialog,#player-detail,.player-detail,.yahoo-workspace .yahoo-toolbar,.yahoo-workspace [data-league-panel],.yahoo-workspace .yahoo-connect-card,.yahoo-workspace #yahoo-league-body>p[role=status],.yahoo-workspace #yahoo-content>p[role=status]{background:var(--paper);color:var(--ink);border-color:var(--line)}
.game-card.selected{background:#333127;border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange)}
.summary-grid article.strategy-card{background:var(--soft);color:var(--ink)}
.strategy-card select,.strategy-card button{color:var(--ink)}
.player-board th,.player-board th:nth-child(2),.roto-standings .yahoo-table th,.roto-standings .yahoo-table th:nth-child(2),.yahoo-roster-table th,.yahoo-table th,.review-table th{background:#2b3341;color:#c7d0de;border-color:var(--line)}
.player-board td,.yahoo-table td,.review-table td{border-color:#343e4d}
.player-board tbody tr:nth-child(even),.player-board tr:nth-child(even) td:nth-child(2){background:#242b36}
.player-board td:nth-child(2),.roto-standings .yahoo-table td:nth-child(2){background:var(--paper);border-color:var(--line)}
.player-board tbody tr:hover,.player-board tbody tr.selected,.player-board tr:hover td:nth-child(2),.player-board tr.selected td:nth-child(2),.yahoo-table tbody tr:hover{background:#303b49}
.roto-standings .roto-selected-team td:nth-child(2),.roto-selected-team,.yahoo-own-team{background:#343329}
.value-cell,.detail-value b,.yahoo-portfolio-metrics b{color:var(--ink)}
.value-cell.negative,.review-value.negative{color:#f7aaa3}
.badge.start,.yahoo-lineup-pill.started,.yahoo-live-pill.active,.review-outcome.used{background:#233f38;color:#80dfbd!important}
.badge.monitor,.yahoo-lineup-pill.bench,.yahoo-live-pill.fallback{background:#403728;color:#f0ca82!important}
.badge.sit,.yahoo-lineup-pill.inactive,.review-outcome.below{background:#472e34;color:#ffc0b7}
.badge.locked,.badge.nogame,.badge.nodata,.yahoo-lineup-pill.unknown,.review-outcome{background:var(--soft);color:var(--muted)}
.yahoo-workspace,.roto-standings{color:var(--ink)}
.yahoo-dialog>.dialog-head{background:var(--paper);border-color:var(--line)}
.yahoo-toolbar .button,.roto-focus>button,.roto-you{background:var(--soft);color:var(--orange)}
.yahoo-league-heading p,.yahoo-rules small,.yahoo-notice span,.yahoo-footnote,.yahoo-dialog h3 small,.yahoo-portfolio-head>span,.yahoo-section-heading>span,.yahoo-portfolio-metrics small,.yahoo-share-list em,.yahoo-roster-table td:first-child small,.yahoo-roster-table td:nth-child(4) small,.yahoo-section-heading p,.yahoo-sort-hint,.yahoo-sort-button span,.roto-heading p,.roto-table-heading p,.roto-summary small,.roto-summary em,.roto-summary article>span,.roto-points,.roto-gap,.roto-race-intro p,.roto-race-callout small,.roto-race-callout span,.roto-note,.category-explorer summary span,.recommendation-start span,.rec-status,.rec-weights p,.rec-model-controls p,.rec-method p,.rec-card-heading small,.rec-card-heading p,.rec-versus,.rec-evidence,.rec-gain,.rec-card details p{color:var(--muted)}
summary,.league-rules-disclosure summary{color:var(--ink)}
.yahoo-rules>div,.yahoo-portfolio,.yahoo-portfolio-metrics article,.category-explorer,.roto-summary,.roto-summary article,.roto-category,.roto-race-panel,.roto-table-wrap,.rec-weights,.rec-method,.rec-card,.rec-card details{border-color:var(--line)}
.yahoo-notice,.yahoo-verified,.league-rules-disclosure .yahoo-rules,.yahoo-portfolio,.yahoo-share-list>span,.roto-summary article,.roto-race-panel,.rec-method,.rec-tradeoffs,.social-save,.review-method,.model-banner,.review-entry{background:var(--soft);color:var(--ink);border-color:var(--line)}
.yahoo-portfolio-metrics article,.roto-category,.rec-card,.review-summary article,.social-search-grid a,.social-embed{background:var(--paper);color:var(--ink);border-color:var(--line)}
.roto-card-top>span,.roto-segment{background:var(--soft);color:var(--muted);border-color:var(--line)}
.roto-category:hover,.roto-race-row:hover,.social-search-grid a:hover{background:#303947;border-color:#8897ad}
.roto-category.selected{background:#333127;border-color:var(--orange)}
.roto-race-row{color:var(--muted)}.roto-race-row.selected{background:#3a3428;color:var(--ink)}
.roto-meter,.roto-bar{background:#3b4555}.roto-meter i,.roto-bar i{background:#8c9bad}.roto-race-row.selected .roto-bar i{background:var(--orange)}
.roto-segment button{color:var(--muted)}.roto-segment button[aria-pressed=true]{background:#47412e;color:#ffe0a1}
.roto-heat.strong{background:#25433b;color:#9ee7c9}.roto-heat.weak{background:#433728;color:#f2cc8b}.roto-heat.middle{background:#2c3441;color:#c8d1dd}
.roto-team-name small,.yahoo-sort-button:hover,.yahoo-table th[aria-sort=ascending],.yahoo-table th[aria-sort=descending],.yahoo-table th[aria-sort=ascending] span,.yahoo-table th[aria-sort=descending] span,.recommendations-panel .roto-note a{color:var(--orange)}
.rec-gain.positive,.yahoo-points-change.up{color:#80dfbd}.rec-gain.negative,.yahoo-points-change.down{color:#ffb0a7}
.yahoo-empty-callout,.social-empty{background:var(--bg);color:var(--muted);border-color:var(--line)}
.yahoo-error,.yahoo-feedback,#review-status.review-error{background:#422d32;color:#ffc3b9}
.yahoo-lineup-bench{background:#2e2c27}.yahoo-low-grid article,.review-summary article.missed,.review-summary article.below,#board-message:not(:empty){background:#372f27;border-color:#63513a;color:#f4d4a7}
.yahoo-low-grid span,.yahoo-low-grid small,.yahoo-low-grid strong{color:#f4d4a7}
dialog::backdrop,#player-detail::backdrop{background:#080c14bf;backdrop-filter:blur(4px)}
.detail-profile .avatar,.avatar{background:#303a48}.detail-value small,.detail-value em,.detail-source,.empty-detail,.detail-profile p,.detail-section-title,.reason p,.assumption-box p,.chart-note,.note-label,.assumption-label,.social-research>p,.social-save small,.social-empty,.social-embed-head{color:var(--muted)}
#player-detail .detail-profile p,#player-detail .detail-section-title,#player-detail .assumption-label,#player-detail .note-label,#player-detail .chart-note,#player-detail .assumption-box p,#player-detail .detail-source{color:var(--muted)}
.social-search-grid a,.social-embed-head{color:var(--muted);border-color:var(--line)}
.social-embed iframe{color-scheme:dark}
.workspace-guide .insight-band p,.workspace-guide .lower-grid p,.model-banner b,.model-banner span,.model-banner button,.model-lab p,.model-lab .lab-small,.review-entry>div>span:last-child,.review-header p,.review-controls>span,.review-game small,.review-game i,.review-summary article>span,.review-summary p,.review-toolbar>label:not(.search-box),#review-status,.review-player>span,.review-player>small,.review-player a,.review-value small,.review-margin small,.review-timing,.review-empty p,.review-method p,.review-footer{color:var(--muted)}
.review-controls .date-control{background:var(--bg)}.review-game:hover{background:var(--soft)}.review-game.active{background:#383328;border-color:var(--orange);color:var(--orange)}
.review-outcome.missed{background:#47352a;color:#fbd1a1}
#toast{background:#354253;color:var(--ink);border:1px solid #596b83}
.scoring-switch,.evidence-box,.game-choice-card{background:var(--soft);border-color:var(--line)}
.refresh-button,.player-modal-close,.player-modal-close:hover,.assumption-box>.apply-minutes{background:var(--soft);color:var(--ink);border-color:var(--line)}
.game-choice-card select,.assumption-label input{background:var(--bg);color:var(--ink);border-color:var(--line)}
.minutes-cell,.stat-grid b,.sidebar-bottom p b,.evidence-top b{color:var(--ink)}
.evidence-top,.evidence-box>small,.game-choice-card p,.decision-line>span:last-child,.stat-grid small,.yahoo-toolbar label{color:var(--muted)}
.yahoo-connection.connected{color:#80dfbd}
.evidence-bars i,.evidence-track{background:#465264}.evidence-bars i.on,.evidence-track span{background:#70c6a9}.evidence-bars.uncertain i.on{background:var(--orange)}
.impact-tag{background:#284238;color:#ade4c8}.impact-tag.negative{background:#443239;color:#f4bdb6}
#player-detail .stat-grid b{font-size:16px}#player-detail .stat-grid small{font-size:10px}#player-detail .evidence-box>small{font-size:10px}#player-detail .impact-tag{font-size:10px}
@media(max-width:800px){.sidebar{background:#1c212b}.yahoo-workspace{width:100%}}

/* Supporting content follows the same dark palette as the main workspace. */
.insight-band,.principle-card,.data-card,.reference-table,.lab-caveat{background:var(--paper);color:var(--ink);border-color:var(--line)}
.insight-symbol{background:var(--soft);color:var(--orange);border-color:var(--line)}
.insight-band h2,.principle-card h3,.data-card h3,.dialog-head h2,.privacy-page h1,.privacy-page h2{color:var(--ink)}
.insight-band p,.insight-band button,.principle-card p,.data-card p,.data-source,.privacy-page p,.reference-table td{color:var(--muted)}
.review-outcome.used{background:#25433b;color:#9ee7c9}.review-outcome.below{background:#443239;color:#f4bdb6}
.social-embed iframe{background:var(--paper);color-scheme:dark}.privacy-page article{color:var(--ink)}
