/* Shared theme controls and header score. Geometry stays independent of theme. */
.theme-icon-button{appearance:none;width:34px;height:34px;min-width:34px;flex:0 0 34px;padding:0;border:2px solid #899d95;border-radius:50%;display:grid;place-items:center;background:#fff;color:#5b6b65;cursor:pointer;box-shadow:0 1px 4px rgba(15,64,48,.08)}
.theme-icon-button span,.theme-icon-button svg{display:block;width:18px;height:18px}
.theme-icon-button:hover{border-color:#0b4a36}
.theme-icon-button:focus-visible{outline:3px solid #739d86;outline-offset:2px}
.top-actions>.theme-icon-button{position:relative;z-index:2}
.relay-top-score{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:1px;flex:0 0 auto;line-height:1.15;white-space:nowrap;margin-right:6px;color:var(--text)}
.relay-top-score[hidden]{display:none!important}
.relay-top-score-label{font-size:11px;font-weight:700;color:var(--muted)}
.relay-top-score-value{font-size:15px;font-weight:900;font-variant-numeric:tabular-nums;color:var(--accent)}
.top-actions.top-actions-with-score{max-width:none;min-width:0}
@media(max-width:620px){
  .topbar:has(.top-actions-with-score){gap:7px}
  .top-actions.top-actions-with-score{flex:1 1 auto;justify-content:flex-end;gap:5px}
  .top-actions-with-score .top-actions-scroll{flex:0 1 auto}
  .relay-top-score{margin-right:0;gap:1px}
  .relay-top-score-label{font-size:9px}
  .relay-top-score-value{font-size:13px}
}
@media(max-width:420px){
  .topbar:has(.top-actions-with-score){gap:5px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
  .topbar:has(.top-actions-with-score) .brand{gap:4px;flex:0 0 auto}
  .topbar:has(.top-actions-with-score) .brand-mark{width:24px;height:28px}
  .topbar:has(.top-actions-with-score) .brand-name{font-size:13px}
  .top-actions.top-actions-with-score{gap:4px}
  .top-actions-with-score .top-actions-scroll>.btn,.home-conversion-landing .top-actions-with-score .home-conversion-header-play{padding:7px 6px;font-size:11px}
  .relay-top-score-label{font-size:8.5px}
  .relay-top-score-value{font-size:12px}
}
@media(max-width:350px){
  .top-actions.top-actions-with-score{gap:3px}
  .topbar:has(.top-actions-with-score) .brand-mark{width:22px;height:26px}
  .topbar:has(.top-actions-with-score) .brand-name{font-size:12px}
  .top-actions-with-score .top-actions-scroll>.btn,.home-conversion-landing .top-actions-with-score .home-conversion-header-play{font-size:10px;padding-inline:5px}
  .relay-top-score-label{font-size:8px}
}

/* v0.4.98 — dark surfaces retain WordLap's green/yellow/gray feedback language.
   These are palette overrides only: board sizes, reveal timing and hit areas are unchanged. */
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#101915;--panel:#18231e;--surface:#18231e;--panel-soft:#202e27;
  --text:#edf4ef;--muted:#adbbb3;--border:#415349;--line:#415349;
  --green:#7bd59a;--yellow:#f0c760;--red:#f2988e;
  --accent:#a1e0b6;--soft:#25362c;--shadow:0 14px 36px rgba(0,0,0,.22);
  --tile-green:#428054;--tile-yellow:#d5a62c;--tile-gray:#50575b;
  --theme-ink:#abd6ee;--theme-success-bg:#183f2d;--theme-warning-bg:#3e331b;--theme-error-bg:#462924;
}
[data-theme="dark"] body,[data-theme="dark"] body.home-conversion-landing{background:linear-gradient(180deg,#111c16,#101915);color:var(--text)}
[data-theme="dark"] .topbar{background:rgba(19,30,24,.96);border-color:var(--border);box-shadow:0 6px 20px rgba(0,0,0,.18)}
[data-theme="dark"] .brand .brand-name{color:var(--accent)!important}
[data-theme="dark"] .theme-icon-button,[data-theme="dark"] .sound-icon-button.off{background:#24382b;border-color:#789780;color:#e8f4db}
[data-theme="dark"] .sound-icon-button.on{background:#39734d;border-color:#7bc694;color:#fff}
[data-theme="dark"] .theme-icon-button:hover,[data-theme="dark"] .sound-icon-button:hover{border-color:#b0dfbc}
[data-theme="dark"] :is(button,a,input,select,textarea,summary):focus-visible{outline-color:#a0dabc}
[data-theme="dark"] :is(input,select,textarea){color:var(--text);background:var(--panel);border-color:var(--border);accent-color:#69bb87}
[data-theme="dark"] :is(input,textarea)::placeholder{color:#9eafa4;opacity:1}
[data-theme="dark"] :is(.field input,.field select,.host-word-textarea,.feedback-textarea,.word-preview-search input,.qp-difficulty-table input,.qp-difficulty-table select,.sound-volume-select,.admin-player-notes textarea,.analytics-inline-control select,.acquisition-spend-form input,.admin-home-preview select,.admin-home-preview button,.admin-reveal-preview select){background:var(--panel);color:var(--text);border-color:var(--border)}

/* Shared surfaces, dialogs, and destination pages. */
[data-theme="dark"] :is(.panel,.room-card,.leaderboard-shell,.join-share,.total-round,.total-summary-card,.marketing-score-card,.marketing-word-tile,.marketing-feature-strip,.joined-roster,.home-mode-card,.completed-games-disclosure,.daily-more-stats,.daily-more-stats-grid>div,.daily-review-round,.daily-result-round,.daily-total-round,.daily-stats-strip>div,.solo-stats-grid>div,.rounds-result-insights>div,.rounds-inline-review,.relay-stats-dialog,.relay-stats-dialog-actions,.relay-power-helper,.relay-tutorial-card,.home-conversion-hero,.home-conversion-section,.home-conversion-final,.home-conversion-play-dialog,.google-measurement-consent,.observability-item,.host-word-option-card,.admin-round-row,.qp-difficulty-table,.analytics-card,.analytics-disclosure,.analytics-breakdowns>details,.acquisition-breakdowns>details,.upgrade-daily-callout){background:var(--panel);color:var(--text);border-color:var(--border)}
[data-theme="dark"] :is(.score-dialog,.admin-player-history-dialog,dialog){background:var(--panel);color:var(--text);border-color:var(--border)}
[data-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.65)}
[data-theme="dark"] :is(.hero,.marketing-hero,.play-your-way-solo-card,.relay-admin-preview-card){background:linear-gradient(135deg,#1b3024,#1b2721);border-color:var(--border)}
[data-theme="dark"] :is(.home-relay-section .home-mode-card.completed,.home-mode-card.daily.completed,.home-relay-section .relay-daily){background:var(--panel);color:var(--text);border-color:var(--border)}
[data-theme="dark"] :is(.home-mode-card.daily,.home-relay-section .home-mode-card.featured){background:linear-gradient(135deg,#1b5037,#1d3e2d);border-color:#527a60;color:#fff}
[data-theme="dark"] :is(.room-card-title-row h3,.marketing-copy h1,.marketing-brand-wordmark,.marketing-feature strong,.marketing-score-value,.marketing-score-round,.join-intro-heading,.completed-games-disclosure summary,.daily-kicker,.home-streak-line,.home-last-game-stats strong,.relay-title-mode,.relay-how-to summary,.relay-power-helper strong,.relay-tutorial-title,.relay-countdown-number span,.rounds-solo-countdown-number,.preplay-score-explainer h2,.admin-paused-time,.admin-pause-game strong,.admin-qa-solution,.analytics-stat strong,.analytics-word-title strong,.analytics-word-history summary,.analytics-disclosure>summary strong,.analytics-activity-summary b,.site-footer-brand,.legal-page h2,.legal-kicker){color:var(--accent)}
[data-theme="dark"] .relay-play-header h1{color:var(--text)}
[data-theme="dark"] :is(.relay-play-header p,.relay-phone-stats,.relay-phone-stats>span,.relay-desktop-personal-stats,.relay-desktop-run-meta,.relay-phone-run-meta,.relay-home-history,.relay-baton-reminder,.home-mode-card p,.home-relay-section .relay-daily p,.home-relay-section .home-mode-card.completed p,.home-mode-card.daily.completed .home-daily-complete span,.home-card-action-row>span,.marketing-copy p,.marketing-feature span,.quick-score-copy,.play-your-way-solo-card span:not(.play-your-way-arrow),.daily-subhead,.daily-streak-mini,.daily-result-score span,.legal-page p,.legal-page li,.legal-consent-note,.privacy-choice-row p,.confirm-dialog-message,.end-round-warning,.site-footer,.site-utility-links a,.google-measurement-consent-copy span,.home-conversion-rule-copy,.home-conversion-play-dialog p,.home-conversion-video-label,.home-conversion-your-turn,.rounds-power-status-label,.rounds-power-unlock,.admin-pause-reminder-list,.admin-qa-label){color:var(--muted)}
[data-theme="dark"] :is(.instructions-link,.home-card-inline-link,.home-browse-link,.home-create-link,.other-ways-toggle-row .home-browse-link,.other-ways-toggle-row .relay-how-to-link,.relay-inline-legal a,.relay-stat-link,.relay-phone-stats .relay-stat-link,.relay-desktop-personal-stats .relay-stat-link,.daily-review-text-link,.relay-copy-result-link,.site-footer a,.legal-consent-note a,.google-measurement-consent-copy a,.home-conversion-eyebrow,.home-conversion-kicker,.home-conversion-dialog-kicker,.home-conversion-keep-watching){color:var(--accent)}
[data-theme="dark"] :is(.relay-phone-stats .relay-stat-link:disabled,.relay-desktop-personal-stats .relay-stat-link:disabled){color:var(--muted)}
[data-theme="dark"] .home-card-inline-link:hover{color:#d0f5dc}
[data-theme="dark"] :is(.instructions-link:hover,.completed-games-disclosure summary:hover){background:var(--soft)}

/* Buttons use a darker fill so their white labels remain readable. */
[data-theme="dark"] :is(.btn,.btn.good,.tab.active,.activity-range-btn.active){background:linear-gradient(135deg,#326d48,#28593b);color:#fff;border-color:#649674;box-shadow:none}
[data-theme="dark"] :is(.btn.secondary,.top-actions .btn.secondary.small,.tab,.dialog-close,.cookie-choice-close,.host-game-close,.rounds-inline-review-close,.relay-stats-dialog .dialog-close,.home-conversion-dialog-close){background:var(--soft);color:var(--text);border-color:var(--border)}
[data-theme="dark"] .tab.active{background:#326d48;color:#fff}
[data-theme="dark"] .btn.danger{background:#914b40;color:#fff}
[data-theme="dark"] :is(.rounds-play-again-solo,.daily-result-jump.btn.secondary){background:var(--soft)!important;color:var(--accent)!important;border-color:#79a98a!important}
[data-theme="dark"] :is(.rounds-play-again-solo:hover,.daily-result-jump.btn.secondary:hover){background:#304937!important}
[data-theme="dark"] .home-relay-section .home-mode-card.featured :is(.btn.good,.btn.secondary){background:#dcf0df;color:#183f2a;border-color:#dcf0df}

/* Game grid, score banks, keyboard and reveal fronts. Evaluated colors are explicit
   so the empty-tile rule can never paint over an accepted answer. */
[data-theme="dark"] :is(.tile,.daily-review-mini-tile){background:#1b2821;border-color:#55685b;color:var(--text)}
[data-theme="dark"] .tile.filled{border-color:#9fb8a6}
[data-theme="dark"] .key{background:#98a69c;border-color:#bcc8c0;color:#101915;box-shadow:0 2px 0 rgba(0,0,0,.25)}
[data-theme="dark"] :is(.key.action.clear,.key.action.back){background:#293b30;color:var(--text);border-color:#63776a}
[data-theme="dark"] .key.action.enter{background:linear-gradient(135deg,#326d48,#28593b);color:#fff;border-color:#6c9b7c}
[data-theme="dark"] body.active-game-layout .phone-edit-split{background:#293b30;border-color:#63776a}
[data-theme="dark"] body.active-game-layout .phone-edit-split>.key.action{background:transparent;color:var(--text);border-color:#63776a}
[data-theme="dark"] :is(.tile,.key,.daily-review-mini-tile).correct{background:var(--tile-green);border-color:var(--tile-green);color:#fff}
[data-theme="dark"] :is(.tile,.key,.daily-review-mini-tile).present{background:var(--tile-yellow);border-color:var(--tile-yellow);color:#17201c}
[data-theme="dark"] :is(.tile,.key,.daily-review-mini-tile).absent{background:var(--tile-gray);border-color:#78867e;color:#fff}
/* Unused keys stay light; tried absent letters recede without fading their labels.
   Keep board grays unchanged so keyboard contrast never changes puzzle feedback. */
[data-theme="dark"] .key.absent{background:#1f2a23;border-color:#415048;color:#b9c6be;box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
[data-theme="dark"] .tile.guess-reveal-pending{background:#1b2821!important;color:var(--text)!important;border-color:#9fb8a6!important}
[data-theme="dark"] :is(.next-guess-draft,.round-score-label,.round-score-note,.phone-round-line span){color:var(--muted)}
[data-theme="dark"] :is(.next-guess-draft strong,.round-score-value,.relay-desktop-personal-stats strong){color:var(--text)}
[data-theme="dark"] .round-score-bank{background:#23392b;border-color:#5b7864}
[data-theme="dark"] .round-score-bank.score-tone-black{background:#222e27;border-color:#5a6b60}
[data-theme="dark"] .round-score-bank.score-tone-red{background:var(--theme-error-bg);border-color:#90645b}
[data-theme="dark"] .round-score-bank.score-tone-yellow{background:var(--theme-warning-bg);border-color:#8d7b41}
[data-theme="dark"] .round-score-bank.score-tone-green{background:var(--theme-success-bg);border-color:#648f70}
[data-theme="dark"] :is(.score-tone-black,.score-tone-black.round-score-bank .round-score-value){color:var(--text)!important;text-decoration-color:currentColor}
[data-theme="dark"] :is(.score-tone-red,.score-tone-red.round-score-bank .round-score-value,.timer.round-timer-red,.relay-timer-red){color:var(--red)!important;text-decoration-color:currentColor}
[data-theme="dark"] :is(.score-tone-yellow,.score-tone-yellow.round-score-bank .round-score-value,.timer.round-timer-yellow,.relay-timer-yellow){color:var(--yellow)!important;text-decoration-color:currentColor}
[data-theme="dark"] :is(.score-tone-green,.score-tone-green.round-score-bank .round-score-value,.timer.round-timer-green,.relay-timer-green){color:var(--green)!important;text-decoration-color:currentColor}
[data-theme="dark"] .current-guess-row .tile.power-reveal-guide.power-reveal-overridden::after,[data-theme="dark"] .current-guess-row .tile.power-lock-guide::after,[data-theme="dark"] .current-guess-row .tile.power-lock-guide::before{color:#b2eac4}
[data-theme="dark"] :is(.key.relay-sliced-key,.key.relay-key-sliced)::after{background:#516057}
[data-theme="dark"] :is(.key.relay-sliced-key,.key.relay-key-sliced)::before{background:#a4b1a8}
[data-theme="dark"] .relay-power-icon-button{background:#25382c;border-color:#688470}
[data-theme="dark"] .relay-power-icon-button.free-green,[data-theme="dark"] .relay-power-icon-button.lock-in{background:#214530;border-color:#79af8e}
[data-theme="dark"] .relay-power-icon-button.key-slice{background:#45351f;border-color:#c69865}
[data-theme="dark"] .relay-power-icon-button.skip-word{background:#20394a;border-color:#77a9cc}
[data-theme="dark"] .relay-power-art.key-slice i{border-color:#8ac4ed;background:repeating-linear-gradient(90deg,transparent 0 4px,#8ac4ed 4px 5px),repeating-linear-gradient(0deg,transparent 0 4px,#8ac4ed 4px 5px)}
[data-theme="dark"] .relay-power-art.key-slice b{color:#ffc07f;text-shadow:1px 0 #45351f,-1px 0 #45351f}
[data-theme="dark"] .relay-power-art.skip-word{color:#a1d4f6}
[data-theme="dark"] .relay-power-art.free-green b{text-shadow:0 1px 0 #214530}
[data-theme="dark"] :is(.relay-power-icon-button.used,.relay-power-icon-button.locked,.relay-power-icon-button.unavailable){opacity:.5}
[data-theme="dark"] .key.relay-revealed-key{color:#102b1a!important}
[data-theme="dark"] .current-guess-row .tile.power-reveal-guide.power-reveal-active{color:#102b1a!important}
[data-theme="dark"] .current-guess-row .tile.power-reveal-guide.power-reveal-active::after{color:#102b1a}
[data-theme="dark"] .relay-powerup.used{background:var(--soft);color:var(--muted);border-color:var(--border)}
[data-theme="dark"] :is(.tile-score-pop.correct,.tile-score-pop.guess,.tile-score-pop.speed,.tile-score-pop.solve){color:#a4ebbd}
[data-theme="dark"] .tile-score-pop.present{color:#f6d676}
[data-theme="dark"] .score-flyer{filter:none}

/* C's handwritten ink and curved connectors switch together. The invitation
   still occupies row six, with no reserved height and no pointer interception. */
[data-theme="dark"] .relay-guide.relay-guide,[data-theme="dark"] .relay-guide-copy{color:var(--theme-ink)}
[data-theme="dark"] .relay-guide-bubble{background:rgba(28,43,39,.98);box-shadow:0 5px 15px rgba(0,0,0,.3)}
[data-theme="dark"] :is(.relay-guide-actions,.relay-guide-example){color:#bed0d5}
[data-theme="dark"] .relay-guide-actions button{color:#caeaff}
[data-theme="dark"] .home-guided-landing .relay-guide-start{background:rgba(24,37,30,.96);color:var(--theme-ink)}
[data-theme="dark"] .relay-guide-example-tile[data-example-state=present]{color:#17201c}
[data-theme="dark"] .relay-novice-tutorial{background:rgba(16,25,21,.96)}
[data-theme="dark"] .relay-tutorial-copy{color:var(--text)}
[data-theme="dark"] :is(.relay-countdown-powers,.relay-tutorial-strip>div,.relay-how-to>div,.rounds-power-help,.relay-below-game-help){background:var(--panel);border-color:var(--border)!important}
[data-theme="dark"] .relay-countdown-powers>div{background:transparent;border-color:var(--border)}
[data-theme="dark"] .relay-tutorial-strip>div.focus{background:#284d34;border-color:#92cda5}

/* Soft sections and secondary statistics. */
[data-theme="dark"] :is(.quick-score-card,.quick-score-formula span,.daily-flow-card,.daily-new-player-flow,.total-score-summary,.total-summary-final-row th,.total-summary-final-row td,.total-round-line.average-line,.setting-toggle-row,.host-scoring-settings,.host-auto-start-settings,.daily-rules span,.solo-rules span,.solo-config-mini,.daily-review-word span,.daily-result-round-compare span,.daily-total-compare span,.daily-transition-card,.daily-round-countdown,.daily-round-points,.daily-round-complete-label,.relay-rules,.relay-scoring-card,.relay-result-stats>div,.relay-recap-primary>div,.relay-recap-secondary,.home-last-game-stats span,.home-relay-daily-result,.home-relay-compact-result,.home-hydration-note,.home-conversion-feature-grid article,.home-conversion-chips span,.home-conversion-media,.admin-pause-row,.admin-qa-status,.admin-qa-solution.show,.observability-item.reviewed,.analytics-stat,.analytics-period-pills span,.analytics-kpi-grid>div,.analytics-word-detail,.analytics-word-stats span,.analytics-guess-dist span,.analytics-activity-summary span,.analytics-activity-detail,.traffic-funnel span,.acquisition-about,.acquisition-spend-form,.acquisition-kpi-grid .acquisition-stat.primary,.acquisition-success-grid .acquisition-stat.primary,.admin-runtime-status,.recent-player-guesses span,.relay-admin-sequence span,.upgrade-archive-bottom-cta){background:var(--soft);color:var(--text);border-color:var(--border)}
[data-theme="dark"] :is(.daily-intro,.solo-intro) .preplay-score-explainer{background:var(--soft);border-color:var(--border)}
[data-theme="dark"] :is(.relay-recap-primary strong,.relay-recap-secondary strong,.daily-flow-card>strong,.daily-round-countdown strong,.daily-round-points strong,.daily-round-complete-label,.daily-transition-copy strong,.daily-transition-ring span,.daily-review-word span,.daily-result-round-title,.daily-result-round-outcome,.daily-result-round-meta b,.daily-result-summary-compact>div:first-child strong,.daily-result-total-compare span:first-child,.rounds-result-insights strong,.daily-score-comparison>span:first-child){color:var(--text)}
[data-theme="dark"] :is(.relay-result-stats span,.relay-recap-primary span,.daily-flow-card figcaption,.relay-recap-secondary span,.relay-review .daily-review-round-head span,.daily-result-round-meta span,.daily-result-summary-lines,.daily-result-summary-compact>div:first-child span,.daily-result-compact-stats>div>span,.daily-result-round-compare,.daily-total-compare,.daily-review-round-meta,.daily-result-percentile,.daily-stats-strip span,.daily-more-stats-grid span,.daily-more-stats summary,.daily-round-countdown span,.daily-round-points span,.daily-transition-copy span,.rounds-result-insights span,.daily-total-round-detail,.daily-score-comparison,.analytics-stat span,.analytics-word-title span,.analytics-table th,.analytics-activity-scale,.analytics-activity-xlabel,.analytics-test-toggle,.analytics-line-legend span,.acquisition-spend-form label){color:var(--muted)}
[data-theme="dark"] .daily-result-average{color:var(--muted)!important}
[data-theme="dark"] .daily-transition-ring::after{background:var(--panel)}
[data-theme="dark"] .daily-transition-ring{background:conic-gradient(#80c799 var(--daily-transition-progress),#3a4f40 0)}
[data-theme="dark"] .daily-pause-btn.paused:disabled{background:var(--soft);color:var(--text);border-color:var(--border)}
[data-theme="dark"] :is(.badge,.completed-games-count){background:var(--soft);color:var(--text)}
[data-theme="dark"] :is(.badge.green,.success,.daily-round-chip.solved,.daily-result-round.solved,.daily-streak-note,.host-word-default-callout,.daily-round-ended.solved .daily-round-complete-label){background:var(--theme-success-bg);color:#c3f0d2;border-color:#6b9679}
[data-theme="dark"] :is(.badge.yellow,.daily-flow-card.final,.notice,.password-warning,.connection-status,.daily-streak-risk,.daily-final-callout,.daily-final-multiplier,.daily-total-bonus,.quick-score-final,.how-to-play-final,.rounds-result-perfect,.admin-game-paused-banner,.version-mismatch-banner){background:var(--theme-warning-bg);color:#ffe1a0;border-color:#9b8548}
[data-theme="dark"] :is(.badge.red,.error,.guess-error-flash,.daily-round-chip.missed,.daily-result-round.missed,.daily-review-round.missed,.daily-failed-answer,.danger-zone,.admin-runtime-status.unhealthy,.daily-round-ended.missed .daily-round-complete-label){background:var(--theme-error-bg);color:#ffd1c9;border-color:#94665b}
[data-theme="dark"] :is(.daily-failed-answer span,.daily-failed-answer strong,.solo-round-answer,.solo-round-answer b,.danger-zone h3,.round-failure-meta,.round-failure-overlay h2,.round-failure-reason){color:#ffc0b6}
[data-theme="dark"] .round-failure-overlay{background:rgba(49,31,27,.98);border-color:#94665b}
[data-theme="dark"] :is(.host-word-default-callout strong,.daily-result-round-score,.daily-flow-card.final>b){color:var(--yellow)}

/* Analytics tables/charts and legal views keep the same readable hierarchy. */
[data-theme="dark"] :is(.table-simple th,.analytics-table th,.system-word-preview-table thead th,.total-summary-table thead th,.leaderboard th,.leaderboard th.sticky-player,.analytics-disclosure[open]>summary,.upgrade-archive-columns){background:var(--soft);color:var(--muted)}
[data-theme="dark"] :is(.leaderboard td,.upgrade-archive-player){background:var(--panel);color:var(--text);border-color:var(--border)}
[data-theme="dark"] .leaderboard tbody tr:hover td{background:var(--soft)}
[data-theme="dark"] :is(.analytics-section,.analytics-table-wrap,.analytics-disclosure[open]>summary,.traffic-rank>div,.privacy-choice-row,.daily-next,.daily-result-summary-compact,.daily-result-compact-stats,.daily-result-percentile,.daily-result-round-compare,.daily-total-compare,.daily-review-round-meta,.daily-result-round-meta,.score-breakdown-list>div,.total-summary-card-title,.relay-stats-dialog-head,.relay-stats-dialog-actions,.relay-review .relay-result-actions-bottom,.home-conversion-action-area,.home-conversion-rules details,.relay-rules span+span,.home-experiment-extra){border-color:var(--border)}
[data-theme="dark"] :is(.analytics-line-chart-wrap,.analytics-activity-chart-scroll){background:var(--panel);border-color:var(--border)}
[data-theme="dark"] .analytics-line-grid line{stroke:var(--border)}
[data-theme="dark"] :is(.analytics-line-grid text,.analytics-line-xlabels text){fill:var(--muted)}
[data-theme="dark"] :is(.analytics-line-series.games,.analytics-line-point.games){stroke:#83cba0;fill:#83cba0}
[data-theme="dark"] :is(.analytics-line-series.humans,.analytics-line-point.humans){stroke:#e3c578;fill:#e3c578}
[data-theme="dark"] .analytics-line-legend .games i{background:#83cba0}
[data-theme="dark"] .analytics-line-legend .humans i{background:#e3c578}
[data-theme="dark"] .analytics-activity-bars{background:repeating-linear-gradient(to bottom,transparent 0,transparent 58px,#35483c 59px,#35483c 60px)}
[data-theme="dark"] .analytics-activity-completion{background:#e3c578}
[data-theme="dark"] .admin-help-info,[data-theme="dark"] .acquisition-info{background:var(--soft);color:var(--text);border-color:var(--border)}
[data-theme="dark"] .admin-relay-qa-section{background:linear-gradient(180deg,rgba(43,69,50,.45),rgba(43,69,50,0))}
[data-theme="dark"] .leaderboard tbody tr.podium-first td,[data-theme="dark"] .upgrade-archive-player:nth-child(1){background:#3a341e}
[data-theme="dark"] .leaderboard tbody tr.podium-second td,[data-theme="dark"] .upgrade-archive-player:nth-child(2){background:#2c3535}
[data-theme="dark"] .leaderboard tbody tr.podium-third td,[data-theme="dark"] .upgrade-archive-player:nth-child(3){background:#3c2f23}
[data-theme="dark"] .leaderboard tr.current-player-row td,[data-theme="dark"] .leaderboard tr.current-player-row .sticky-player{background:#21432d!important}
[data-theme="dark"] :is(.leaderboard tbody tr.podium-first .player-place,.leaderboard tbody tr.podium-second .player-place,.leaderboard tbody tr.podium-third .player-place,.upgrade-player-place){color:var(--muted)}
@media(prefers-reduced-motion:reduce){.theme-icon-button{transition:none}}
