/* 2026-11-03: neutral dark tables. Preserve columns, team identity and interactions. */
html body:not(.viewer-body):has(#master-sidebar) main#app table,html body:not(.viewer-body):has(#master-sidebar) #dialog table,html body:not(.viewer-body) #app table,html body:not(.viewer-body) .result-dialog table,html body:not(.viewer-body) .viewer-shell table,html body:not(.viewer-body) #checkPublicRoot table,html body:not(.viewer-body) [data-schedule-list] table,html body:not(.viewer-body):has(#master-sidebar) dialog table{--table-paper:#272727;--table-row:#1D1D1D;--table-ink:#EFEFEF;color:var(--table-ink)!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table thead th,html body:not(.viewer-body):has(#master-sidebar) #dialog table thead th,html body:not(.viewer-body) #app table thead th,html body:not(.viewer-body) .result-dialog table thead th,html body:not(.viewer-body) .viewer-shell table thead th,html body:not(.viewer-body) #checkPublicRoot table thead th,html body:not(.viewer-body) [data-schedule-list] table thead th,html body:not(.viewer-body):has(#master-sidebar) dialog table thead th{background:#272727!important;color:#EFEFEF!important;border-color:#3B3B3B!important;font-weight:700!important;box-shadow:none!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table thead th *,html body:not(.viewer-body):has(#master-sidebar) #dialog table thead th *,html body:not(.viewer-body) #app table thead th *,html body:not(.viewer-body) .result-dialog table thead th *,html body:not(.viewer-body) .viewer-shell table thead th *,html body:not(.viewer-body) #checkPublicRoot table thead th *,html body:not(.viewer-body) [data-schedule-list] table thead th *,html body:not(.viewer-body):has(#master-sidebar) dialog table thead th *{color:inherit!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table tbody tr,html body:not(.viewer-body):has(#master-sidebar) #dialog table tbody tr,html body:not(.viewer-body) #app table tbody tr,html body:not(.viewer-body) .result-dialog table tbody tr,html body:not(.viewer-body) .viewer-shell table tbody tr,html body:not(.viewer-body) #checkPublicRoot table tbody tr,html body:not(.viewer-body) [data-schedule-list] table tbody tr,html body:not(.viewer-body):has(#master-sidebar) dialog table tbody tr{background:#1D1D1D!important;background-image:none!important;color:#EFEFEF!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table tbody td,html body:not(.viewer-body):has(#master-sidebar) #dialog table tbody td,html body:not(.viewer-body) #app table tbody td,html body:not(.viewer-body) .result-dialog table tbody td,html body:not(.viewer-body) .viewer-shell table tbody td,html body:not(.viewer-body) #checkPublicRoot table tbody td,html body:not(.viewer-body) [data-schedule-list] table tbody td,html body:not(.viewer-body):has(#master-sidebar) dialog table tbody td{background:transparent!important;color:inherit!important;border-bottom-color:#3B3B3B!important;font-weight:650!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table tbody td :is(span,strong,small,time,b,a,h2,.help,.muted,.match-name-window,.match-result-value,.dt-team-button),html body:not(.viewer-body):has(#master-sidebar) #dialog table tbody td :is(span,strong,small,time,b,a,h2,.help,.muted,.match-name-window,.match-result-value,.dt-team-button),html body:not(.viewer-body) #app table tbody td :is(span,strong,small,time,b,a,h2,.help,.muted,.match-name-window,.match-result-value,.dt-team-button),html body:not(.viewer-body) .result-dialog table tbody td :is(span,strong,small,time,b,a,h2,.help,.muted,.match-name-window,.match-result-value,.dt-team-button),html body:not(.viewer-body) .viewer-shell table tbody td :is(span,strong,small,time,b,a,h2,.help,.muted,.match-name-window,.match-result-value,.dt-team-button),html body:not(.viewer-body) #checkPublicRoot table tbody td :is(span,strong,small,time,b,a,h2,.help,.muted,.match-name-window,.match-result-value,.dt-team-button),html body:not(.viewer-body) [data-schedule-list] table tbody td :is(span,strong,small,time,b,a,h2,.help,.muted,.match-name-window,.match-result-value,.dt-team-button),html body:not(.viewer-body):has(#master-sidebar) dialog table tbody td :is(span,strong,small,time,b,a,h2,.help,.muted,.match-name-window,.match-result-value,.dt-team-button){color:inherit!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table tbody tr:is(:hover,.selected,.is-current,.dt-live,.dt-leader),html body:not(.viewer-body):has(#master-sidebar) #dialog table tbody tr:is(:hover,.selected,.is-current,.dt-live,.dt-leader),html body:not(.viewer-body) #app table tbody tr:is(:hover,.selected,.is-current,.dt-live,.dt-leader),html body:not(.viewer-body) .result-dialog table tbody tr:is(:hover,.selected,.is-current,.dt-live,.dt-leader),html body:not(.viewer-body) .viewer-shell table tbody tr:is(:hover,.selected,.is-current,.dt-live,.dt-leader),html body:not(.viewer-body) #checkPublicRoot table tbody tr:is(:hover,.selected,.is-current,.dt-live,.dt-leader),html body:not(.viewer-body) [data-schedule-list] table tbody tr:is(:hover,.selected,.is-current,.dt-live,.dt-leader),html body:not(.viewer-body):has(#master-sidebar) dialog table tbody tr:is(:hover,.selected,.is-current,.dt-live,.dt-leader){background:#272727!important;color:#EFEFEF!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table tbody tr.selected,html body:not(.viewer-body):has(#master-sidebar) #dialog table tbody tr.selected,html body:not(.viewer-body) #app table tbody tr.selected,html body:not(.viewer-body) .result-dialog table tbody tr.selected,html body:not(.viewer-body) .viewer-shell table tbody tr.selected,html body:not(.viewer-body) #checkPublicRoot table tbody tr.selected,html body:not(.viewer-body) [data-schedule-list] table tbody tr.selected,html body:not(.viewer-body):has(#master-sidebar) dialog table tbody tr.selected{box-shadow:inset 3px 0 #00E5BE!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table tbody tr:is(.match-batch-row,.plan-preview-block-head) :is(td,th),html body:not(.viewer-body):has(#master-sidebar) #dialog table tbody tr:is(.match-batch-row,.plan-preview-block-head) :is(td,th),html body:not(.viewer-body) #app table tbody tr:is(.match-batch-row,.plan-preview-block-head) :is(td,th),html body:not(.viewer-body) .result-dialog table tbody tr:is(.match-batch-row,.plan-preview-block-head) :is(td,th),html body:not(.viewer-body) .viewer-shell table tbody tr:is(.match-batch-row,.plan-preview-block-head) :is(td,th),html body:not(.viewer-body) #checkPublicRoot table tbody tr:is(.match-batch-row,.plan-preview-block-head) :is(td,th),html body:not(.viewer-body) [data-schedule-list] table tbody tr:is(.match-batch-row,.plan-preview-block-head) :is(td,th),html body:not(.viewer-body):has(#master-sidebar) dialog table tbody tr:is(.match-batch-row,.plan-preview-block-head) :is(td,th){background:#1D1D1D!important;color:#EFEFEF!important;box-shadow:none!important;border-color:#3B3B3B!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table :is(.red,.match-red,.team-red,.plan-time-side.red) :is(.match-name-window,.side-label),html body:not(.viewer-body):has(#master-sidebar) #dialog table :is(.red,.match-red,.team-red,.plan-time-side.red) :is(.match-name-window,.side-label),html body:not(.viewer-body) #app table :is(.red,.match-red,.team-red,.plan-time-side.red) :is(.match-name-window,.side-label),html body:not(.viewer-body) .result-dialog table :is(.red,.match-red,.team-red,.plan-time-side.red) :is(.match-name-window,.side-label),html body:not(.viewer-body) .viewer-shell table :is(.red,.match-red,.team-red,.plan-time-side.red) :is(.match-name-window,.side-label),html body:not(.viewer-body) #checkPublicRoot table :is(.red,.match-red,.team-red,.plan-time-side.red) :is(.match-name-window,.side-label),html body:not(.viewer-body) [data-schedule-list] table :is(.red,.match-red,.team-red,.plan-time-side.red) :is(.match-name-window,.side-label),html body:not(.viewer-body):has(#master-sidebar) dialog table :is(.red,.match-red,.team-red,.plan-time-side.red) :is(.match-name-window,.side-label){color:#FF9198!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table :is(.blue,.match-blue,.team-blue,.plan-time-side.blue) :is(.match-name-window,.side-label),html body:not(.viewer-body):has(#master-sidebar) #dialog table :is(.blue,.match-blue,.team-blue,.plan-time-side.blue) :is(.match-name-window,.side-label),html body:not(.viewer-body) #app table :is(.blue,.match-blue,.team-blue,.plan-time-side.blue) :is(.match-name-window,.side-label),html body:not(.viewer-body) .result-dialog table :is(.blue,.match-blue,.team-blue,.plan-time-side.blue) :is(.match-name-window,.side-label),html body:not(.viewer-body) .viewer-shell table :is(.blue,.match-blue,.team-blue,.plan-time-side.blue) :is(.match-name-window,.side-label),html body:not(.viewer-body) #checkPublicRoot table :is(.blue,.match-blue,.team-blue,.plan-time-side.blue) :is(.match-name-window,.side-label),html body:not(.viewer-body) [data-schedule-list] table :is(.blue,.match-blue,.team-blue,.plan-time-side.blue) :is(.match-name-window,.side-label),html body:not(.viewer-body):has(#master-sidebar) dialog table :is(.blue,.match-blue,.team-blue,.plan-time-side.blue) :is(.match-name-window,.side-label){color:#8EBAFF!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table :is(.match-red,.team-red,.plan-time-side.red),html body:not(.viewer-body):has(#master-sidebar) #dialog table :is(.match-red,.team-red,.plan-time-side.red),html body:not(.viewer-body) #app table :is(.match-red,.team-red,.plan-time-side.red),html body:not(.viewer-body) .result-dialog table :is(.match-red,.team-red,.plan-time-side.red),html body:not(.viewer-body) .viewer-shell table :is(.match-red,.team-red,.plan-time-side.red),html body:not(.viewer-body) #checkPublicRoot table :is(.match-red,.team-red,.plan-time-side.red),html body:not(.viewer-body) [data-schedule-list] table :is(.match-red,.team-red,.plan-time-side.red),html body:not(.viewer-body):has(#master-sidebar) dialog table :is(.match-red,.team-red,.plan-time-side.red){color:#FF9198!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table :is(.match-blue,.team-blue,.plan-time-side.blue),html body:not(.viewer-body):has(#master-sidebar) #dialog table :is(.match-blue,.team-blue,.plan-time-side.blue),html body:not(.viewer-body) #app table :is(.match-blue,.team-blue,.plan-time-side.blue),html body:not(.viewer-body) .result-dialog table :is(.match-blue,.team-blue,.plan-time-side.blue),html body:not(.viewer-body) .viewer-shell table :is(.match-blue,.team-blue,.plan-time-side.blue),html body:not(.viewer-body) #checkPublicRoot table :is(.match-blue,.team-blue,.plan-time-side.blue),html body:not(.viewer-body) [data-schedule-list] table :is(.match-blue,.team-blue,.plan-time-side.blue),html body:not(.viewer-body):has(#master-sidebar) dialog table :is(.match-blue,.team-blue,.plan-time-side.blue){color:#8EBAFF!important}
html body:not(.viewer-body):has(#master-sidebar) main#app table :is(.match-side-grid,.match-batch-line,.dt-meta-line,.dt-card-footer,.dt-fixture-line),html body:not(.viewer-body):has(#master-sidebar) #dialog table :is(.match-side-grid,.match-batch-line,.dt-meta-line,.dt-card-footer,.dt-fixture-line),html body:not(.viewer-body) #app table :is(.match-side-grid,.match-batch-line,.dt-meta-line,.dt-card-footer,.dt-fixture-line),html body:not(.viewer-body) .result-dialog table :is(.match-side-grid,.match-batch-line,.dt-meta-line,.dt-card-footer,.dt-fixture-line),html body:not(.viewer-body) .viewer-shell table :is(.match-side-grid,.match-batch-line,.dt-meta-line,.dt-card-footer,.dt-fixture-line),html body:not(.viewer-body) #checkPublicRoot table :is(.match-side-grid,.match-batch-line,.dt-meta-line,.dt-card-footer,.dt-fixture-line),html body:not(.viewer-body) [data-schedule-list] table :is(.match-side-grid,.match-batch-line,.dt-meta-line,.dt-card-footer,.dt-fixture-line),html body:not(.viewer-body):has(#master-sidebar) dialog table :is(.match-side-grid,.match-batch-line,.dt-meta-line,.dt-card-footer,.dt-fixture-line){background:transparent!important;color:inherit!important}
html body:not(.viewer-body) #viewer-match-list table.design-data-table tr[data-status] :is(td,button,span,strong,time,b),html body:not(.viewer-body) #app table.design-data-table tr[data-status] :is(td,button,span,strong,time,b){color:#EFEFEF!important}
html body:not(.viewer-body) #viewer-match-list table.design-data-table tr[data-status] :is(.dt-meta-line,.dt-card-footer,time),html body:not(.viewer-body) #app table.design-data-table tr[data-status] :is(.dt-meta-line,.dt-card-footer,time){background:transparent!important;background-image:none!important}
html body:not(.viewer-body) :is(.standings-bracket-match,.design-bracket-match){background:#1D1D1D!important;color:#EFEFEF!important;border-color:#3B3B3B!important}
html body:not(.viewer-body) :is(.standings-bracket-match,.design-bracket-match) :is(summary,span,strong,b,small,.team-text){color:#EFEFEF!important}
html body:not(.viewer-body) :is(.standings-bracket-match,.design-bracket-match) :is(.red,.blue){background:transparent!important}
html body:not(.viewer-body) :is(.standings-bracket-match,.design-bracket-match) .red{color:#FF9198!important}
html body:not(.viewer-body) :is(.standings-bracket-match,.design-bracket-match) .blue{color:#8EBAFF!important}
/* Viewer cards carry historical state paint with higher specificity; normalize every state at its actual entry. */
html body:not(.viewer-body) #viewer-match-list table.design-data-table.design-schedule.design-schedule-cards tbody tr,html body:not(.viewer-body) #results-pane table.design-data-table.design-ranking tbody tr{background:#1D1D1D!important;background-image:none!important;color:#EFEFEF!important}
html body:not(.viewer-body) #viewer-match-list table.design-data-table.design-schedule.design-schedule-cards tbody td,html body:not(.viewer-body) #results-pane table.design-data-table.design-ranking tbody td{background:transparent!important;color:#EFEFEF!important;border-color:#3B3B3B!important}
html body:not(.viewer-body) #viewer-match-list table.design-data-table thead tr,html body:not(.viewer-body) #results-pane table.design-data-table thead tr{background:#272727!important;color:#EFEFEF!important}

/* 2026-10-30: screenshot-scoped schedule preview typography. */
html body:not(.viewer-body):has(#master-sidebar) main#app #schedule-planner .plan-preview table,
html body:not(.viewer-body):has(#master-sidebar) main#app #schedule-planner .plan-preview table :is(th,td,span,strong,small,time,b,a,h2,div,p){color:#EFEFEF!important;font-weight:700!important}

/* Member names retain their full text and scroll within an 18-ideograph window. */
.team-members-heading,.team-members-cell{width:18em;min-width:18em}
.team-members-window{display:block;inline-size:18em;max-inline-size:18em;overflow-x:auto;white-space:nowrap;overscroll-behavior-x:contain;scrollbar-width:thin}
.team-members-window:focus-visible{outline:2px solid #00E5BE;outline-offset:2px}

html body:not(.viewer-body):has(#master-sidebar) main#app #schedule-planner .plan-preview table :is(.red,.team-red,.plan-time-side.red),html body:not(.viewer-body):has(#master-sidebar) main#app #schedule-planner .plan-preview table :is(.red,.team-red,.plan-time-side.red) *{color:#FF9198!important}
html body:not(.viewer-body):has(#master-sidebar) main#app #schedule-planner .plan-preview table :is(.blue,.team-blue,.plan-time-side.blue),html body:not(.viewer-body):has(#master-sidebar) main#app #schedule-planner .plan-preview table :is(.blue,.team-blue,.plan-time-side.blue) *{color:#8EBAFF!important}

/* Compact roster entry: initial empty event is open; existing rosters use the title action. */
#team-add-panel[hidden]{display:none}
body:has(#master-sidebar) main#app .page-title:has(#toggle-team-add){display:flex;align-items:center;justify-content:space-between;gap:12px}
body:has(#master-sidebar) main#app #toggle-team-add{flex:none;min-height:30px;padding:5px 10px;font-size:13px;white-space:nowrap}
