/* User-selected dark appearance. Loaded last so feature surfaces inherit it. */
html[data-estel-theme="dark"]{
  --paper:#171b1e;--bg:#0e1113;--muted:#aeb5b9;--line:#333a3e;--card:#171b1e;--surface:#202529;
  --estel-cream:#0e1113;--estel-paper:#171b1e;--estel-line:#333a3e;--estel-soft:#252b2f;
  --estel-shadow:0 12px 32px rgba(0,0,0,.34);
  background:#0e1113;color-scheme:dark;
}
html[data-estel-theme="dark"] body.estel-v2150{background:radial-gradient(circle at 92% 4%,rgba(255,229,0,.08),transparent 20rem),#0e1113;color:#f4f5f5}
html[data-estel-theme="dark"] .main,html[data-estel-theme="dark"] .public-main{color:#f4f5f5}
html[data-estel-theme="dark"] :is(.card,.team-card,.quick button,.att-head,.attendance-list,.attendance-row,.table,.table th,.table td,.sheet,.list-row,.schedule-row,.v2140-panel,.v2140-day-columns>section,.v2140-callup-row,.v2140-access-person,.v2140-access-summary,.v2140-access-history,.v2150-account-panel,.v2150-account-tabs,.v2186-navigation-editor,.v2186-nav-row,.injury-protocol-card,.injury-player-card,.injury-centres,.injury-centre){background-color:#171b1e;color:#f4f5f5;border-color:#343b3f}
html[data-estel-theme="dark"] :is(.btn-white,.btn-ghost,.admin-tabs button,.roster-sort button,.att-choice,.markall){background:#22282c;color:#f2f4f4;border-color:#3a4247}
html[data-estel-theme="dark"] .tabs button{color:#c8d0d3}
html[data-estel-theme="dark"] .tabs button:hover{color:#fff}
html[data-estel-theme="dark"] .tabs button.active{color:#fff;border-color:#ffe500}
html[data-estel-theme="dark"] :is(input,select,textarea,.field input,.field select,.field textarea,.v2150-settings-list select){background:#111517!important;color:#f4f5f5!important;border-color:#3b4449!important}
html[data-estel-theme="dark"] :is(input,select,textarea)::placeholder{color:#848d92}
html[data-estel-theme="dark"] :is(.page-head,.card-title,.roster-row,.attendance-row,.schedule-row,.list-row,.v2150-settings-list>label,.v2150-account-footer){border-color:#30373b}
html[data-estel-theme="dark"] :is(.eyebrow,.muted,.card-title small,.team-meta,.roster-sub,.list-sub,.v2150-settings-list small,.v2150-group-title,.v2150-account-meta){color:#a7afb3}
html[data-estel-theme="dark"] :is(.pill){background:#293034;color:#dce1e3}
html[data-estel-theme="dark"] .pill.green{background:#153c29;color:#8ee0ac}
html[data-estel-theme="dark"] .pill.red{background:#482326;color:#ffafb2}
html[data-estel-theme="dark"] .pill.blue{background:#17384b;color:#9bd7f2}
html[data-estel-theme="dark"] .pill.yellow{background:#4a4310;color:#fff18a}
html[data-estel-theme="dark"] .v2150-account-sheet{background:#101416!important}
html[data-estel-theme="dark"] .v2150-account-tabs button{color:#b7bec1}
html[data-estel-theme="dark"] .v2150-account-tabs button.active{background:#ffe500;color:#111}
html[data-estel-theme="dark"] .v2150-account-footer{background:rgba(16,20,22,.96)}
html[data-estel-theme="dark"] .v2150-install-link{color:#d5dadd}
html[data-estel-theme="dark"] .v2150-account-footer .v2150-logout{color:#ff9f9f!important}
html[data-estel-theme="dark"] .close{background:#252b2f;color:#fff}
html[data-estel-theme="dark"] .table th{background:#202529;color:#b5bdc1}
html[data-estel-theme="dark"] .table tr:hover td{background:#1d2225}
html[data-estel-theme="dark"] .danger-text{color:#ff9fa4!important}
html[data-estel-theme="dark"] .roster-row.is-goalkeeper{background:linear-gradient(90deg,#25291d 0,#171b1e 28%);color:#f4f5f5;border-left-color:#ffe500}
html[data-estel-theme="dark"] .roster-row.is-goalkeeper :is(.roster-name,.roster-name-line){color:#f4f5f5}
html[data-estel-theme="dark"] .roster-row.is-goalkeeper .player-alias{color:#a7afb3}
html[data-estel-theme="dark"] .attendance-row.is-injured,html[data-estel-theme="dark"] .v2140-callup-row.is-injured,html[data-estel-theme="dark"] .roster-row.is-injured{background:#291b1d}
html[data-estel-theme="dark"] :is(.att-stat,.v2140-mini-stats>div,.v2140-alert-list>button,.v2140-alert-list>.ok,.v2140-quick-actions button){background:#202529;color:#f4f5f5;border-color:#343b3f}
html[data-estel-theme="dark"] .att-stat.ok{background:#173524}html[data-estel-theme="dark"] .att-stat.no{background:#3d2022}html[data-estel-theme="dark"] .att-stat.late{background:#45311c}html[data-estel-theme="dark"] .att-stat.just{background:#443e18}
html[data-estel-theme="dark"] .injury-page{--injury-ink:#f4f5f5;--injury-line:#394146}
html[data-estel-theme="dark"] .injury-documents{background:linear-gradient(145deg,#111518,#20272b);color:#fff;border-color:#394146}
html[data-estel-theme="dark"] :is(.injury-protocol-body aside,.injury-player-card aside){background:#302b12;color:#f3eaa4;border-color:#756900}
html[data-estel-theme="dark"] :is(.injury-protocol-body li,.injury-player-card>div>p,.injury-section-head p,.injury-centre p,.injury-source-note){color:#b9c2c6}
html[data-estel-theme="dark"] .injury-centre h3{color:#f2f4f5}
html[data-estel-theme="dark"] .injury-centre-actions a{background:#293034;color:#edf0f1;border-color:#465157}
html[data-estel-theme="dark"] .injury-centre-actions a:last-child{background:#111518;color:#ffe500;border-color:#465157}
html[data-estel-theme="dark"] :is(.injury-centre-tools,.injury-region,.injury-map-list){background:#202529;color:#f4f5f5;border-color:#394247}
html[data-estel-theme="dark"] :is(.injury-centre-filters button,.injury-centre-views button,.injury-map-list button){background:#171b1e;color:#dce2e5;border-color:#414a4f}
html[data-estel-theme="dark"] :is(.injury-centre-filters button.active,.injury-centre-views button.active){background:#111517;color:#ffe500;border-color:#ffe500}
html[data-estel-theme="dark"] .injury-region>summary b{background:#293034;color:#c5cdd1}
html[data-estel-theme="dark"] .injury-map-list button span,html[data-estel-theme="dark"] :is(.injury-centres-count,.injury-centre-distance){color:#b7c0c4}
html[data-estel-theme="dark"] .injury-map-list button.active{background:#353115;color:#fff;border-color:#8d800e}
html[data-estel-theme="dark"] .injury-map-frame{background:#171b1e;color:#f4f5f5}
html[data-estel-theme="dark"] .injury-map-detail span{color:#b7c0c4}
html[data-estel-theme="dark"] .injury-centres-empty{color:#b7c0c4;border-color:#465157}
/* Role home: preserve Estel's yellow/black hierarchy with dark, readable surfaces. */
html[data-estel-theme="dark"] .v2191-panel{background:#171b1e;color:#f4f5f5;border-color:#343b3f;box-shadow:0 8px 24px rgba(0,0,0,.24)}
html[data-estel-theme="dark"] .v2191-priority{background:linear-gradient(135deg,#27230d,#171b1e 72%);border-color:#756900;box-shadow:0 5px 0 #756900}
html[data-estel-theme="dark"] .v2191-priority h2::before{background:#ffe500}
html[data-estel-theme="dark"] :is(.v2191-event,.v2191-task){background:#22282c;color:#f7f8f8;border-color:#394247}
html[data-estel-theme="dark"] :is(.v2191-event,.v2191-task):hover{background:#302d17;border-color:#cbb900}
html[data-estel-theme="dark"] :is(.v2191-event,.v2191-task) small{color:#bdc5c9}
html[data-estel-theme="dark"] .v2191-event>span:last-child{color:#ffe500}
html[data-estel-theme="dark"] .v2191-event-type.match{background:#e8ecee;border-color:#e8ecee;box-shadow:0 0 0 4px rgba(232,236,238,.13)}
html[data-estel-theme="dark"] .v2191-task{background:#302b12;border-color:#5f5718;border-left-color:#ffe500}
html[data-estel-theme="dark"] :is(.v2191-empty,.v2191-muted){color:#b6bec2}
html[data-estel-theme="dark"] .v2191-selector{color:#e9edef}
html[data-estel-theme="dark"] .v2191-competition{background:#121619;border-color:#384045;box-shadow:0 5px 0 #a89600}
html[data-estel-theme="dark"] .v2191-competition .v2191-event{background:#23292d;border-color:#3b4449}
html[data-estel-theme="dark"] .v2191-competition .v2191-event:hover{background:#302d17;border-color:#ffe500}
html[data-estel-theme="dark"] .v2191-competition .v2191-event-type.match{background:#ffe500;border-color:#ffe500;box-shadow:0 0 0 4px rgba(255,229,0,.16)}

/* Shared secondary surfaces: keep the exact light-mode boxes, with dark tones. */
html[data-estel-theme="dark"] :is(.empty,.devbox,.danger-zone,.team-head,.team-summary-grid>div,.source-help,.overview-chip,.day-tabs button,.cal-nav button,.sync-note,.calendar-readonly,.estel-calendar-display){background:#202529;color:#edf0f1;border-color:#394146}
html[data-estel-theme="dark"] :is(.empty,.source-help,.sync-note,.calendar-readonly){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.overview-chip strong,.team-summary-grid strong){color:#f4f5f5}
html[data-estel-theme="dark"] .overview-chip span{color:#c4cbce}
html[data-estel-theme="dark"] .overview-chip.active{background:#ffe500;border-color:#ffe500}html[data-estel-theme="dark"] .overview-chip.active :is(strong,span){color:#111}
html[data-estel-theme="dark"] .team-card{border-color:#050607;box-shadow:0 0 0 1px #394146}
html[data-estel-theme="dark"] .team-card-data{border-color:#626b70}
html[data-estel-theme="dark"] .team-card-data b{color:#fff}

/* Account, preferences, navigation editor and notices. */
html[data-estel-theme="dark"] :is(.v2150-avatar-editor,.v2150-notice-summary>div,.v2130-notice-list .v2150-notice,.v2150-account-note,.v2150-security-note,.v2150-language-note,.v2150-notice-foot,.v2186-block-head,.v2186-navigation-editor details,.v2186-role-picker,.v2188-role-picker,.v2186-zone,.v2187-undo,.v2187-hidden,.v2187-hidden>div>div,.v2188-agenda-history,.v2188-agenda-day,.v2188-agenda-day summary){background:#202529;color:#edf0f1;border-color:#394146}
html[data-estel-theme="dark"] .v2188-agenda-day[open] summary{background:#302b12;color:#f5efc7;border-color:#6f651d}
html[data-estel-theme="dark"] :is(.v2186-nav-move button,.v2186-drag-handle,.v2187-hide,.v2187-hidden button,.v2187-undo button,.v2186-notice-toolbar button){background:#293034;color:#f2f4f5;border-color:#414a4f}
html[data-estel-theme="dark"] :is(.v2150-account-note,.v2150-security-note){background:#152c36;color:#bdd3dc}
html[data-estel-theme="dark"] .v2150-language-note{background:#302b12;color:#e5dca9;border-left-color:#ffe500}
html[data-estel-theme="dark"] :is(.v2150-language-note b,.v2150-notice-summary span,.v2130-notice-list .v2150-notice>button:first-child){color:#f4f5f5}
html[data-estel-theme="dark"] :is(.v2150-language-note span,.v2130-notice-list .v2150-notice>small,.v2150-notice-foot,.v2186-block-head p,.v2186-help){color:#abb4b8}
html[data-estel-theme="dark"] .v2186-required{color:#f2dc6a}
html[data-estel-theme="dark"] .v2188-role-picker small{color:#b7c0c4}
html[data-estel-theme="dark"] .v2188-role-picker small strong{color:#f4f5f5}
html[data-estel-theme="dark"] :is(.v2186-push-card,.v2186-notice-toggle){background:#202529;color:#f4f5f5;border-color:#394146}
html[data-estel-theme="dark"] :is(.v2186-push-card span,.v2186-push-card small,.v2186-notice-toggle small,.v2186-note){color:#b7c0c4}
html[data-estel-theme="dark"] .v2130-notice-list .v2150-notice.task{background:#302b12;border-left-color:#ffe500}

/* Calendar: retain day cells, agendas, filters and court colour families. */
html[data-estel-theme="dark"] :is(.cal-day,.agenda-row,.sport-cal-sticky,.sport-cal-date,.sport-cal-empty-cell,.sport-cal-activity,.sport-cal-filter-sheet,.period-card,.period-form-section,.period-exception-section,.period-adjustments-v2111,.period-adjust-section-v2111,.period-adjustment-row-v2111,.calendar-break){background:#171b1e;color:#f1f3f4;border-color:#343c41}
html[data-estel-theme="dark"] .sport-cal-next{background:#202529;color:#f1f3f4;border-color:#394247}
html[data-estel-theme="dark"] :is(.sport-cal-next>small,.sport-cal-activity small){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.cal-day.empty,.sport-cal-empty-cell){background:#121618;color:#879196;border-color:#30383c}
html[data-estel-theme="dark"] :is(.sport-cal-navigation button,.sport-cal-filter,.sport-cal-filter-actions button,.sport-cal-views,.sport-cal-week button,.estel-calendar-display,.period-team-tools button,.period-scope-option,.period-team-check-grid label,.period-team-chip,.period-example){background:#22282c;color:#edf0f1;border-color:#3a4348}
html[data-estel-theme="dark"] :is(.sport-cal-views button,.estel-calendar-display button,.v2188-agenda-tools,.v2188-agenda-tools label,.v2188-agenda-summary,.sport-cal-legend){color:#b9c2c6}
html[data-estel-theme="dark"] .sport-cal-views button.active{background:#111;color:#ffe500}
html[data-estel-theme="dark"] .estel-calendar-display button.active{background:#111;color:#ffe500}
html[data-estel-theme="dark"] :is(.sport-cal-dots,.sport-cal-legend) .match{background:#fff}
html[data-estel-theme="dark"] .v2188-agenda-tools label{color:#eef1f2}
html[data-estel-theme="dark"] :is(.month-grid .cal-event.training,.agenda-row[class*="court-"],.ux-cal-event[class*="court-"],.team-full-event[class*="court-"],.attm-cal-event[class*="court-"]){background:#243026!important;color:#e9f2eb!important}
html[data-estel-theme="dark"] :is(.month-grid .cal-event.training.court-grey,.agenda-row.court-grey,.ux-cal-event.court-grey,.team-full-event.court-grey,.attm-cal-event.court-grey){background:#293034!important;color:#e7eaec!important}
html[data-estel-theme="dark"] :is(.month-grid .cal-event.training.court-brossa,.agenda-row.court-brossa,.ux-cal-event.court-brossa,.team-full-event.court-brossa,.attm-cal-event.court-brossa){background:#352817!important;color:#f2ddbd!important}
html[data-estel-theme="dark"] :is(.month-grid .cal-event.training.court-edm,.agenda-row.court-edm,.ux-cal-event.court-edm,.team-full-event.court-edm,.attm-cal-event.court-edm){background:#18283b!important;color:#cedef2!important}
html[data-estel-theme="dark"] :is(.month-grid .cal-event.training.court-other,.ux-cal-event.court-other,.team-full-event.court-other,.attm-cal-event.court-other){background:#353115!important;color:#f3eaa4!important}

/* Attendance and callups. */
html[data-estel-theme="dark"] :is(.attm-metric,.attm-table-wrap,.attm-table,.attm-table thead th,.attm-player-head,.attm-player-cell,.attm-pending-list button,.att-reason,.att-actions,.v2165-att-tabs,.v2165-callup-row,.v2165-callup-empty,.v2166-callup-rate,.v2140-callups,.v2140-callup-summary span,.v2140-callup-time strong){background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] :is(.attm-month-nav,.att-month-nav) button{background:#293034!important;color:#edf0f1!important;border-color:#414a4f!important}
html[data-estel-theme="dark"] :is(.attm-month-nav,.att-month-nav) button:nth-child(2){background:#353c40!important;color:#fff!important}
html[data-estel-theme="dark"] :is(.attm-month-nav,.att-month-nav) button:hover{background:#414a4f!important;border-color:#68747a!important}
html[data-estel-theme="dark"] .v2165-att-tabs button{color:#c4cbce}
html[data-estel-theme="dark"] .v2165-att-tabs button.active{background:#111;color:#ffe500}
html[data-estel-theme="dark"] :is(.attm-metric.highlight,.v2165-callup-metric.highlight,.v2165-callup-row.is-top){background:#302b12;border-color:#6f651d}
html[data-estel-theme="dark"] :is(.attm-table td,.attm-table th){border-color:#343c41}
html[data-estel-theme="dark"] .att-player-summary-counts-v2120 b{color:#fff}
html[data-estel-theme="dark"] :is(.attm-session-head button:hover,.attm-pending-list button:hover){background:#2b3236}
html[data-estel-theme="dark"] :is(.attm-status.pending,.attm-status.future,.attm-status.cancelled,.player-att-state.pending,.player-att-state.future,.player-att-state.cancelled){background:#293034;color:#b7c0c4}
html[data-estel-theme="dark"] :is(.attm-status.absent,.player-att-state.absent){background:#442326;color:#ffb4b8}
html[data-estel-theme="dark"] :is(.attm-status.late,.player-att-state.late){background:#443519;color:#ffe09a}

/* Competition, matches, standings and reports. */
html[data-estel-theme="dark"] :is(.v2130-competition,.v2130-match-card,.fcf-match-row,.fcf-match-cells span,.fcf-table,.estel-standings-wrap,.s254-match,.estel-standing-card,.match-admin-card,.team-match-row,.match-report-state,.match-event,.player-stat-grid>div,.player-match-history>button,.player-season-card,.match-stats-card){background:#202529;color:#f4f5f5;border-color:#3a4348}
html[data-estel-theme="dark"] .match-event:not(.is-opponent){border-color:#ffe500}
html[data-estel-theme="dark"] .match-event.is-opponent{border-color:#566168}
html[data-estel-theme="dark"] :is(.v2130-scorer-toolbar,.v2130-scorer-row){background:#202529;color:#f4f5f5;border-color:#3a4348}
html[data-estel-theme="dark"] :is(.v2130-scorer-toolbar>div>span,.v2130-scorer-row small){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.v2130-tabs button,.competition-tabs-v2120,.competition-tabs-v2120 button){background:#293034;color:#e8ecee;border-color:#414a4f}
html[data-estel-theme="dark"] :is(.v2130-tabs button.active,.competition-tabs-v2120 button.active){background:#ffe500;color:#111;border-color:#ffe500}
html[data-estel-theme="dark"] :is(.v2130-match-main span,.v2130-match-main small,.fcf-match-date span,.fcf-source-row,.team-match-row small,.match-event small,.player-match-history span){color:#b5bec2}
html[data-estel-theme="dark"] :is(.fcf-table td,.estel-standings td,.estel-standings th){background:#1b2023;color:#edf0f1;border-color:#343d42}
html[data-estel-theme="dark"] :is(.fcf-table .estel-row td,.estel-standings tbody tr.is-estel td,.estel-standing-card.is-estel){background:#353115;color:#fff3a6}
html[data-estel-theme="dark"] .estel-standings tbody tr:hover td{background:#30373b;color:#f4f5f5}
html[data-estel-theme="dark"] .estel-standings tbody tr:hover :is(strong,small,.pos,.pts){color:#f4f5f5}
html[data-estel-theme="dark"] :is(.fcf-live-status,.estel-fcf-meta,.s254-roundnav button){background:#293034;color:#dce1e3;border-color:#414a4f}
html[data-estel-theme="dark"] :is(.fcf-table-wrap,.estel-standings-wrap,.match-stats-table){border-color:#050607;box-shadow:0 0 0 1px #394146}
html[data-estel-theme="dark"] :is(.match-stats-table .linkbtn,.fcf-source-row a,.estel-fcf-footer a){color:#fff}
html[data-estel-theme="dark"] :is(.estel-fcf-meta strong,.fcf-table td strong,.match-stats-table td strong){color:#fff}
html[data-estel-theme="dark"] .v2130-info-note{background:#353115;color:#f3eaa4}
html[data-estel-theme="dark"] :is(.v2164-map-action,.match-video-links,.match-video-mode span){background:#202529;color:#f4f5f5;border-color:#505b61}
html[data-estel-theme="dark"] :is(.v2164-map-action small,.match-video-links span){color:#b7c0c4}
html[data-estel-theme="dark"] .match-video-mode input:checked+span{background:#0d0f10;color:#fff;border-color:#ffe500}
html[data-estel-theme="dark"] :is(.v2141-player-stats>div,.player-att-metrics>div){background:#202529;color:#f4f5f5;border-color:#394247}
html[data-estel-theme="dark"] :is(.v2141-player-stats strong,.player-att-metrics strong){color:#f4f5f5}
html[data-estel-theme="dark"] :is(.v2141-player-stats span,.player-att-metrics span){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.v2164-player-callups,.v2164-season-callups,.v2164-callup-own,.v2164-called-person,.v2164-callup-empty,.v2164-season-summary span,.v2164-season-row){background:#202529;color:#f4f5f5;border-color:#394247}
html[data-estel-theme="dark"] :is(.v2164-callup-head p,.v2164-callup-empty,.v2164-season-player small,.v2164-season-numbers small){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.v2164-callup-own.is-called,.v2164-called-person.is-me,.v2164-season-row.is-top){background:#353115;color:#fff3a6;border-color:#8d800e}
html[data-estel-theme="dark"] :is(.v2164-callup-own.is-not-called,.v2164-season-row.is-low){background:#1b2023;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] .v2164-season-summary b{color:#f4f5f5}
html[data-estel-theme="dark"] .v2164-season-bar{background:#394247}
html[data-estel-theme="dark"] .v2164-season-bar i{background:#ffe500}

/* Login: the selected appearance also applies before authentication. */
html[data-estel-theme="dark"] .estel-v2150 .login-panel{
  background:linear-gradient(145deg,#121719,#0b0e10);
}
html[data-estel-theme="dark"] .estel-v2150 .login-panel:before{
  background:repeating-linear-gradient(90deg,transparent 0 92px,rgba(255,255,255,.025) 92px 93px),repeating-linear-gradient(0deg,transparent 0 92px,rgba(255,255,255,.018) 92px 93px);
}
html[data-estel-theme="dark"] .estel-v2150 .login-card{
  background:rgba(23,27,30,.97);color:#f4f5f5;border-color:#3a4348;
  box-shadow:10px 10px 0 #756900,0 30px 70px rgba(0,0,0,.38);
}
html[data-estel-theme="dark"] :is(.estel-v2150 .login-card h2,.estel-v2150 .login-card .linkbtn){color:#f4f5f5}
html[data-estel-theme="dark"] :is(.estel-v2150 .login-card .intro,.v2150-login-kicker){color:#b7c0c4}
html[data-estel-theme="dark"] .v2150-login-kicker i{background:#3a4348}

/* BET: all legacy and V2 surfaces keep their contrast in dark appearance. */
html[data-estel-theme="dark"] .bet-page{color:#f4f5f5}
html[data-estel-theme="dark"] :is(.bet-tabs,.bet-subtabs){background:#202529;border-color:#3a4348;box-shadow:none}
html[data-estel-theme="dark"] :is(.bet-tabs button,.bet-subtabs button){color:#bac2c6}
html[data-estel-theme="dark"] :is(.bet-tabs button.active,.bet-subtabs button.active){background:#111517;color:#fff}
html[data-estel-theme="dark"] .bet-subtabs button.active{background:#ffe500;color:#111}
html[data-estel-theme="dark"] :is(.bet-state,.bet-panel,.bet-list-card,.bet-ranking-wrap,.bet-admin-card,.bet-admin-odds,.bet-admin-target,.bet-admin-simulation,.bet-admin-reset,.bet-v2-event,.bet-v2-help,.bet-v2-chart,.bet-v2-tickets article,.bet-v2-admin-form){background:#171b1e;color:#f4f5f5;border-color:#394247;box-shadow:none}
html[data-estel-theme="dark"] :is(.bet-slip-summary,.bet-card-meta,.bet-save-actions,.bet-admin-odds-tabs,.bet-match-markets){background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] .bet-admin-odds-tabs button{background:#252b2f;color:#dce2e5;border-color:#465158}
html[data-estel-theme="dark"] .bet-admin-odds-tabs button.active{background:#111517;color:#ffe500;border-color:#111517}
html[data-estel-theme="dark"] :is(.bet-panel>header,.bet-list-card>header,.bet-market-group,.bet-selection-list li,.bet-match-market-row,.bet-admin-odds>header,.bet-admin-options article,.bet-v2-family,.bet-v2-rankings article,.bet-v2-tickets article,.bet-v2-admin details article){border-color:#394247}
html[data-estel-theme="dark"] :is(.bet-panel>header span,.bet-list-card>header span,.bet-panel>header p,.bet-save-actions p,.bet-list-card>p,.bet-selection-list span,.bet-card-meta,.bet-match-picker span,.bet-match-unavailable p,.bet-admin-card>p,.bet-admin-odds header p,.bet-admin-options article>div span,.bet-admin-options article>small,.bet-admin-target p,.bet-admin-simulation header p,.bet-admin-reset p,.bet-v2-event header span,.bet-v2-event header small,.bet-v2-market-group h4,.bet-v2-market-row>span,.bet-v2-player-controls label,.bet-v2-player-search,.bet-v2-rankings label){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.bet-market-select select,.bet-match-picker button,.bet-option,.bet-player-tabs button,.bet-admin-card input,.bet-admin-reason input,.bet-admin-options input,.bet-admin-odds select,.bet-admin-target select,.bet-score-grid input,.bet-admin-json textarea,.bet-admin-reset input,.bet-v2-player-controls input,.bet-v2-player-controls select,.bet-v2-player-search input,.bet-v2-rankings select){background:#111517;color:#f4f5f5;border-color:#414a4f}
html[data-estel-theme="dark"] :is(.bet-player-recycler,.bet-match-family,.bet-v2-comparison-market,.bet-v2-season-family){background:#1b2023;color:#f4f5f5;border-color:#394247}
html[data-estel-theme="dark"] :is(.bet-player-row,.bet-v2-comparison-row,.bet-v2-market-row){border-color:#343d42}
html[data-estel-theme="dark"] :is(.bet-option b,.bet-result,.bet-ranking-position b,.bet-ranking-hits b){background:#293034;color:#f4f5f5}
html[data-estel-theme="dark"] .bet-option.selected{background:#353115;color:#fff;border-color:#ffe500}
html[data-estel-theme="dark"] :is(.bet-v2-comparison-market>summary,.bet-v2-season-family>summary){background:#252b2f;color:#f4f5f5}
html[data-estel-theme="dark"] .bet-v2-player-count{background:#171b1e;color:#c5cdd1;border-color:#465158}
html[data-estel-theme="dark"] .bet-v2-option{background:#252b2f;color:#f4f5f5;border-color:#414a4f}
html[data-estel-theme="dark"] .bet-v2-option small{color:#b4bdc2}
html[data-estel-theme="dark"] .bet-v2-option.selected{background:#353115;color:#fff;border-color:#ffe500}
html[data-estel-theme="dark"] .bet-v2-option.bet-v2-unavailable{background:#202529;color:#aeb7bc}
html[data-estel-theme="dark"] .bet-v2-metrics div{background:#202529;color:#f4f5f5;border:1px solid #394247}
html[data-estel-theme="dark"] .bet-v2-chart small{color:#b7c0c4}
html[data-estel-theme="dark"] .bet-v2-chart :is(text,tspan){fill:#dfe4e6!important}
html[data-estel-theme="dark"] .bet-v2-chart :is(line,path[stroke]){stroke:#7d878c}
html[data-estel-theme="dark"] .bet-ranking th{background:#111517;color:#f4f5f5}
html[data-estel-theme="dark"] .bet-ranking td{background:#171b1e;color:#f4f5f5;border-color:#394247}
html[data-estel-theme="dark"] .bet-ranking-player span{color:#f4f5f5}
html[data-estel-theme="dark"] .bet-ranking small{color:#b7c0c4}
html[data-estel-theme="dark"] .bet-ranking tbody tr:hover td{background:#252b2f}
html[data-estel-theme="dark"] .bet-ranking tr.current td{background:#353115;color:#fff}

/* Teams, roster, management and club operations. */
html[data-estel-theme="dark"] :is(.goalkeeper-toggle,.roster-sort,.position-check,.admin-control-card,.admin-filterbar,.admin-section-note,.coach-admin-card,.team-check-grid label,.sub-summary-grid>div:not(.empty),.break-card,.access-card,.budget-metrics>div,.schedule-admin-summary-v2130,.schedule-team-group-v2130,.mobile-day-row-v2130,.mobile-day-breaks-v2130,.v2140-alert-list>button,.v2140-alert-list>.ok,.v2140-quick-actions button,.v2140-mini-stats>div,.v2140-day-columns>section,.v2140-team-chip,.v2140-break-chips span){background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] .admin-control-card{background:#171b1e!important;color:#f4f5f5!important;border-color:#394247!important}
html[data-estel-theme="dark"] .admin-tabs-wide{background:#111517!important;border-color:#394247!important}
html[data-estel-theme="dark"] .admin-tabs-wide button{background:#202529!important;color:#dce1e3!important}
html[data-estel-theme="dark"] .admin-tabs-wide button:hover{background:#2b3236!important;color:#fff!important}
html[data-estel-theme="dark"] .admin-tabs-wide button.active{background:#ffe500!important;color:#111!important}
html[data-estel-theme="dark"] .admin-control-card>.admin-tabs.admin-tabs-wide>button:not(.active){background:#22282c!important;color:#edf0f1!important;border-color:#414a4f!important}
html[data-estel-theme="dark"] .admin-control-card>.admin-tabs.admin-tabs-wide>button:not(.active):hover{background:#2b3236!important;color:#fff!important}
html[data-estel-theme="dark"] .admin-group-nav button{background:#22282c;color:#edf0f1;border-color:#414a4f}
html[data-estel-theme="dark"] .admin-group-nav button:hover{background:#2b3236;color:#fff}
html[data-estel-theme="dark"] .admin-group-nav button.active{background:#ffe500;color:#111;border-color:#ffe500}
html[data-estel-theme="dark"] :is(.admin-filter-summary span,.admin-filterbar label>span,.admin-section-note span,.coach-admin-teams em,.team-check-grid small,.sub-summary-grid span,.break-card p,.break-card small,.access-card p,.access-card small,.budget-metrics span){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.v2141-radar-grid>div,.content-studio-toolbar,.content-editor-section,.content-editor-card){background:#202529!important;color:#f4f5f5!important;border-color:#394247!important}
html[data-estel-theme="dark"] .v2141-radar-grid strong{color:#f4f5f5}
html[data-estel-theme="dark"] .v2141-radar-grid span{color:#b7c0c4}
html[data-estel-theme="dark"] .v2141-progress{background:#394247}
html[data-estel-theme="dark"] :is(.content-studio-filters button,.content-studio-result){background:#293034;color:#edf0f1;border-color:#414a4f}
html[data-estel-theme="dark"] .content-studio-filters button:hover{background:#353115;color:#fff3a6}
html[data-estel-theme="dark"] .content-studio-filters button.active{background:#ffe500;color:#111;border-color:#ffe500}
html[data-estel-theme="dark"] :is(.content-editor-section-head p,.content-card-key,.content-editor-field label,.content-editor-meta,.content-studio-search>span,.content-studio-result span){color:#b7c0c4}
html[data-estel-theme="dark"] .content-hub-hero-v2174{background:linear-gradient(135deg,#202529,#171b1e 72%,#302b12);color:#f4f5f5;border-color:#394247}
html[data-estel-theme="dark"] .content-hub-hero-v2174 :is(h2,strong){color:#f4f5f5}
html[data-estel-theme="dark"] .content-hub-hero-v2174 :is(p,.eyebrow){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.club-event-card-v2175,.club-event-card-v2176){background:#202529;color:#f4f5f5;border-color:#394247}
html[data-estel-theme="dark"] :is(.club-event-main-v2175,.club-event-main-v2176) :is(h4,p){color:#f4f5f5}
html[data-estel-theme="dark"] :is(.club-event-meta-v2175,.club-event-meta-v2176){color:#b7c0c4}
html[data-estel-theme="dark"] :is(.club-event-badges-v2175,.club-event-badges-v2176)>span:not(.live):not(.draft){background:#293034;color:#dce1e3}
html[data-estel-theme="dark"] .club-events-filter-v2176{background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] .club-events-filter-v2176 button{background:#293034;color:#edf0f1}
html[data-estel-theme="dark"] .club-events-filter-v2176 button:hover{background:#353b3f;color:#fff}
html[data-estel-theme="dark"] .club-events-filter-v2176 button.active{background:#111;color:#ffe500}
html[data-estel-theme="dark"] .position-check{background:#202529;color:#f4f5f5!important;border-color:#394247}
html[data-estel-theme="dark"] .position-check small{color:#b7c0c4}
html[data-estel-theme="dark"] .position-check:has(input:checked){border-color:#ffe500}
html[data-estel-theme="dark"] .position-check.goalkeeper:has(input:checked){background:#353115}
@media(max-width:1050px){html[data-estel-theme="dark"] #adminBody table.table:has(>:where(thead)) tbody tr{background:#202529!important;color:#edf0f1!important;border-color:#394247!important}html[data-estel-theme="dark"] #adminBody table.table:has(>:where(thead)) tbody td{border-color:#394247!important}html[data-estel-theme="dark"] #adminBody table.table:has(>:where(thead)) tbody td::before{color:#b7c0c4}}
html[data-estel-theme="dark"] :is(.position-badge,.v2140-access-count){background:#293034;color:#dce1e3;border-color:#414a4f}
html[data-estel-theme="dark"] :is(.coach-stats-v2120>div,.coach-mini-team-v2120,.club-mini-team,.team-full-event,.v2141-event-card,.v2141-last-result,.v2141-result-empty,.v2141-team-actions button){background:#202529;color:#f2f4f5;border-color:#394247}
html[data-estel-theme="dark"] .schedule-team-group-v2130>summary:hover{background:#2b3236;color:#fff}
html[data-estel-theme="dark"] .schedule-team-group-v2130>summary:hover :is(strong,.schedule-team-chevron-v2130){color:#fff}
html[data-estel-theme="dark"] .schedule-team-group-v2130>summary:hover small{color:#c5cdd0}

/* Periods and substitutions keep their secondary copy and segmented controls readable. */
html[data-estel-theme="dark"] :is(.period-dates,.period-card p,.period-card small){color:#b7c0c4}
html[data-estel-theme="dark"] .period-dates span{color:#8f9a9f}
html[data-estel-theme="dark"] :is(.period-all,.period-exceptions b){color:#edf0f1}
html[data-estel-theme="dark"] .period-exceptions{border-color:#394247}
html[data-estel-theme="dark"] .period-team-chip{background:#293034;color:#edf0f1;border:1px solid #414a4f}
html[data-estel-theme="dark"] .period-team-chip.more{background:#111;color:#ffe500}
html[data-estel-theme="dark"] .v2149-rate-card{background:linear-gradient(145deg,#202529,#171b1e);color:#f4f5f5;border-color:#394247}
html[data-estel-theme="dark"] .v2149-rate-card :is(h3,strong){color:#f4f5f5}
html[data-estel-theme="dark"] .v2149-rate-card :is(p,.eyebrow,.v2149-rate-fields span){color:#b7c0c4}
html[data-estel-theme="dark"] .v2147-event-toggle{background:#202529;border:1px solid #394247}
html[data-estel-theme="dark"] .v2147-event-toggle button{background:#293034;color:#edf0f1}
html[data-estel-theme="dark"] .v2147-event-toggle button:hover{background:#353b3f;color:#fff}
html[data-estel-theme="dark"] .v2147-event-toggle button.active{background:#111;color:#ffe500}

/* Access registry, permissions and invitations. */
html[data-estel-theme="dark"] :is(.access-v271-card,.access-role-grid label,.access-team-grid label,.access-registry-intro,.access-registry-stats>div,.access-registry-filters button,.access-registry-card,.access-registry-meta>div,.access-registry-loading,.access-activity-list,.access-edit-person,.pending-invite-row,.pending-invite-empty,.bulk-invite-stat,.bulk-import-info,.bulk-import-row,.bulk-import-validation,.password-requirements){background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] :is(.access-registry-card.is-inactive,.access-destructive-warning,.bulk-import-row.invalid){background:#382326;color:#ffc0c3;border-color:#674044}
html[data-estel-theme="dark"] :is(.access-destructive-warning.invite,.bulk-invite-status.running,.bulk-invite-status.queued){background:#353115;color:#f3eaa4;border-color:#6f651d}

/* Content hub, registration and installation guide. */
html[data-estel-theme="dark"] :is(.content-hub-kpis-v2174 button,.content-hub-tabs-v2174,.content-editor-section,.content-editor-card,.content-help-admin-v2174>section,.content-hub-item-v2174,.content-announcement-v2174,.content-help-center-v2174 details,.content-studio-result,.content-history-row,.registration-player-row,.registration-loading,.registration-steps,.registration-panel,.registration-files>div,.registration-footer,.registration-account-row,.estel-install-hero,.estel-install-card,.estel-install-benefits,.estel-install-fallback){background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] :is(.content-hub-tabs-v2174 button,.registration-steps button){color:#c2c9cc}
html[data-estel-theme="dark"] :is(.content-hub-tabs-v2174 button.active,.registration-steps button.active){background:#ffe500;color:#111}
html[data-estel-theme="dark"] :is(.content-announcement-v2174.priority-important,.registration-confirm-note){background:#353115;color:#f3eaa4;border-color:#766b1c}
html[data-estel-theme="dark"] .content-announcement-v2174.priority-urgent{background:#442326;color:#ffc0c3;border-color:#7a4449}

/* BET keeps its cards and controls, translated to the same dark palette. */
html[data-estel-theme="dark"] :is(.bet-tabs,.bet-subtabs,.bet-state,.bet-panel,.bet-list-card,.bet-player-recycler,.bet-option,.bet-match-picker button,.bet-match-markets,.bet-match-family,.bet-player-tabs button,.bet-ranking-wrap,.bet-admin-card,.bet-admin-odds,.bet-admin-target,.bet-admin-simulation,.bet-admin-reset,.bet-admin-reference){background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] :is(.bet-slip-summary,.bet-save-actions,.bet-card-meta,.bet-admin-odds-tabs){background:#181d20;color:#c4cbce;border-color:#343c41}
html[data-estel-theme="dark"] :is(.bet-option b,.bet-ranking-position b,.bet-ranking-hits b,.bet-collapsible>summary:after){background:#2c3337;color:#eef1f2}
html[data-estel-theme="dark"] :is(.bet-option.selected,.bet-ranking tr.current,.bet-admin-target){background:#353115;color:#fff3a6;border-color:#8d800e}
html[data-estel-theme="dark"] :is(.bet-panel>header span,.bet-list-card>header span,.bet-state p,.bet-save-actions p,.bet-match-picker span,.bet-selection-list span,.bet-ranking small,.bet-admin-card>p,.bet-admin-odds header p){color:#b5bec2}
html[data-estel-theme="dark"] .bet-ranking-player span{color:#f1f3f4}

/* Tactics and remaining workflow cards. */
html[data-estel-theme="dark"] :is(.v2145-step-edit button,.v2147-tactics-guide>div,.v2147-tactics-guide>button,.v2145-bank-category,.v2145-bank-copy .btn,.att-workbench-grid>button,.att-pending-v2120,.att-pending-buttons-v2120 button,.att-month-overview-v2120>div,.att-player-summary-card-v2120,.player-next-match-v2120,.access-player-link-v2120,.v2147-sub-kpis>div,.v2147-sub-graph-card,.v2149-finance-rates span){background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] :is(.att-pending-v2120,.player-next-match-v2120){background:#302b12;color:#f4edbf;border-color:#6f651d}
html[data-estel-theme="dark"] .att-pending-v2120>div:first-child span{color:#d8c2af}
html[data-estel-theme="dark"] :is(.att-workbench-grid em,.att-quick-grid button em,.mobile-day-row-v2130>b){color:#fff}
html[data-estel-theme="dark"] a{color:#8fd7f5}
html[data-estel-theme="dark"] .btn-yellow,html[data-estel-theme="dark"] .btn-primary{color:#080a0b}
html[data-estel-theme="dark"] .v2186-notice-toolbar{background:#202529;color:#f4f5f5;border:1px solid #394146}
html[data-estel-theme="dark"] .att-notify-physical{background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] .att-notify-physical strong{color:#f4f5f5}
html[data-estel-theme="dark"] .att-notify-physical small{color:#b7c0c4}
html[data-estel-theme="dark"] .estel-team-logo.has-image{background:#eef1f2;border-color:#050607}
html[data-estel-theme="dark"] .estel-rank-movement.up{background:#173c28;color:#8ee0ac}
html[data-estel-theme="dark"] .estel-rank-movement.down{background:#482326;color:#ffafb2}
html[data-estel-theme="dark"] .estel-form-tooltip{background:#202529;color:#f4f5f5;border-color:#465158;box-shadow:0 16px 40px rgba(0,0,0,.42)}
html[data-estel-theme="dark"] .estel-form-tooltip:before{background:#202529;border-color:#465158}
html[data-estel-theme="dark"] .estel-form-tooltip small{color:#b7c0c4;border-color:#394247}
html[data-estel-theme="dark"] :is(.group-round-toolbar,.group-round-match,.group-report-referees>div,.group-report-event,.group-report-lineups>section,.group-report-loading,.group-report-empty){background:#202529;color:#edf0f1;border-color:#394247}
html[data-estel-theme="dark"] .group-round-match{border-color:#050607;box-shadow:0 0 0 1px #394247}
html[data-estel-theme="dark"] .group-round-crest.has-image{background:#eef1f2;border-color:#050607}
html[data-estel-theme="dark"] .group-report-facts span{background:#293034;color:#dce1e3}
html[data-estel-theme="dark"] :is(.group-round-meta,.group-report-section,.match-officials){border-color:#394247}
@media(max-width:720px){html[data-estel-theme="dark"] .v2150-account-footer{background:rgba(16,20,22,.97)!important;border-color:#30373b}}

html[data-estel-theme="dark"] .period-example b{color:inherit}

.accounts-panel,.accounts-review{margin-top:20px;padding:18px;border:1px solid var(--line,#ddd);border-radius:16px;background:var(--card,#fff);min-width:0}.accounts-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.accounts-head h3{margin:0}.accounts-head p{margin:6px 0}.accounts-filters{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.accounts-filters label,.accounts-review label{display:grid;gap:6px;flex:1;min-width:0}.accounts-filters select,.accounts-review select,.accounts-fee select,.accounts-import-row select{max-width:100%;width:100%;min-width:0;padding:10px;border:1px solid var(--line,#ccc);border-radius:10px;background:var(--card,#fff);color:inherit}.accounts-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}.accounts-metrics div{padding:12px;background:var(--surface,#f5f5f5);border-radius:12px}.accounts-metrics strong,.accounts-metrics span,.accounts-fee small,.accounts-import-row small{display:block;overflow-wrap:anywhere}.accounts-metrics strong{font-size:23px}.accounts-fee,.accounts-import-row{padding:14px 0;border-bottom:1px solid var(--line,#ddd);display:flex;gap:14px;align-items:center;justify-content:space-between;min-width:0}.accounts-fee>div,.accounts-import-row>label{min-width:0;flex:1}.accounts-fee-actions{display:grid;gap:7px;max-width:190px}.accounts-import{min-width:0}.accounts-import-row{display:block}.accounts-import-row label{display:flex;gap:10px;align-items:flex-start}.accounts-import-row input[type=checkbox],.accounts-confirm input{width:18px;min-width:18px;height:18px}.accounts-import-fees,.accounts-import-summary{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.accounts-import-fees .pill{white-space:normal;overflow-wrap:anywhere}.accounts-confirm{display:flex;align-items:flex-start;gap:9px;padding:12px 0}.accounts-file input{max-width:100%;display:block;margin-top:9px}.accounts-review{display:grid;gap:12px}.accounts-import-rows{max-width:100%}@media(max-width:700px){.accounts-panel,.accounts-review{padding:12px}.accounts-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.accounts-metrics strong{font-size:20px}.accounts-fee{align-items:stretch;flex-direction:column;gap:9px}.accounts-fee-actions{max-width:none;grid-template-columns:auto minmax(0,1fr);align-items:center}.accounts-filters{display:grid;grid-template-columns:1fr}.accounts-head .btn{width:100%;white-space:normal}}
.accounts-file{display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:100%;white-space:normal;box-sizing:border-box}.accounts-file input[type=file]{width:100%;min-width:0;box-sizing:border-box;font-size:12px}
/* Keep the added review in the profile's vertical flow, without covering history controls. */
.sheet.player-stats-sheet:has(>.accounts-review){display:block;overflow-y:auto!important}
.player-stats-sheet:has(>.accounts-review)>.player-stats-profile{display:block}

/* Keep the account surfaces and their local tokens coherent in dark appearance. */
html[data-estel-theme="dark"] :is(.accounts-panel,.accounts-review,.accounts-import){--card:#171b1e;--surface:#202529;background:#171b1e;color:#f4f5f5;border-color:#343b3f}

.audit-review{min-width:0;overflow-wrap:anywhere}
.audit-review-entry{margin-block:12px}
.audit-review fieldset{border:0;padding:0;margin-block:12px;min-width:0}
.audit-review fieldset>label:not(.audit-review-check){display:block;margin-block:12px 5px;font-weight:600}
.audit-review input:not([type=checkbox]),.audit-review select{width:100%;min-height:44px;box-sizing:border-box}
.audit-identity,.audit-override-list article{border:1px solid var(--border,#777);padding:14px;margin-block:12px;border-radius:12px}
.audit-review-check{display:flex;align-items:flex-start;gap:10px;margin-block:14px;line-height:1.5}
.audit-review-check input{flex:none;width:20px;height:20px;margin-top:2px}
.audit-review dl{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:6px 12px}
.audit-review dd{margin:0;overflow-wrap:anywhere}
.audit-review dt,.audit-review .muted{color:inherit;opacity:.85}
.audit-review-warning{border-inline-start:4px solid #ffe500;padding:12px;background:#29260a;color:#fff}
.audit-review-history summary{cursor:pointer;min-height:44px;padding-block:12px}
.audit-review-history li{padding-block:8px}
.audit-review :focus-visible,.sheet :focus-visible{outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 0 4px #000}
@media(max-width:420px){.audit-review dl{grid-template-columns:1fr}.audit-review dt{font-weight:600}.audit-review dd{margin-bottom:8px}.audit-review .btn{white-space:normal;min-height:44px}}
.estel-skip-content{position:fixed;inset-block-start:8px;inset-inline-start:8px;transform:translateY(-200%);z-index:100000;background:#fff;color:#000;padding:12px 18px;border:2px solid #000}
.estel-skip-content:focus{transform:translateY(0)}
#app :focus-visible{outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 0 4px #000}
#main .page-head,#main .page-head>div:first-child{min-width:0;max-width:100%}
#main .page-head>div:first-child{overflow-wrap:anywhere}
/* Measured WCAG AA corrections for the light surfaces in the role matrix. */
html:not([data-estel-theme="dark"]) #main :is(.att-workbench-grid>button>span,.att-controls-line label>span,.role-competition>label>span,.att-month-overview-v2120>div>span,.agenda-main>div,.empty,.injury-source-note,.admin-filter-summary>span,.admin-filterbar>label>span,.table th,.schedule-admin-summary-v2130 span,.schedule-admin-summary-v2130 p,.schedule-team-title-v2130>small,.budget-metrics>div>span,.v2141-player-stats>div>span,.v2141-event-card small,.player-att-metrics>div>span,.player-att-day>div>span,.player-att-status.future,.v2147-sub-kpis>div>span,.v2147-sub-graph-card p,.v2147-empty-chart){color:#555}
.sidebar .nav-title{color:#aaa}
#main .v2141-player-id>div>.eyebrow{color:#ffe500}
#main .agenda-row:has(>.agenda-primary){display:flex;align-items:center}
.agenda-primary{display:flex;align-items:center;gap:10px;flex:1;min-width:0;cursor:pointer}
.agenda-primary>.agenda-date{flex:0 0 48px}
.agenda-primary>.agenda-main{min-width:0;flex:1}
html:not([data-estel-theme="dark"]) #main :is(.att-player-summary-counts-v2120>span,.v2141-teaminfo-grid>div>span,.v2141-result-empty,.unified-calendar-controls-v2120 label>span,.estel-calendar-team>span){color:#555}

html:not([data-estel-theme="dark"]) #main .att-summary-head-v2120 .roster-sort button:not(.active){color:#555}
