/* Light administration surfaces. Layout and the original dark theme stay in their own stylesheets. */
:root[data-theme="light"] .cb-admin-workspace {
  --workspace-border: var(--theme-border);
  --admin-edge: #a5cdb8;
  --admin-muted: var(--theme-muted);
  --tournament-line: var(--theme-border);
  --tournament-muted: var(--theme-muted);
  --setup-line: #dce8e1;
  --setup-muted: var(--theme-muted);
  --setup-text: var(--theme-text);
}

:root[data-theme="light"] .cb-admin-workspace.cb-interface-polish {
  --workspace-border: var(--theme-border);
  --admin-muted: var(--theme-muted);
}

:root[data-theme="light"] .cb-admin-workspace :is(.cb-admin-breadcrumbs, .cb-admin-breadcrumbs a, .cb-edition-description, .cb-edition-tool p, .cb-competition-details dt, .cb-pagination, .cb-filter-status) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace .cb-admin-breadcrumbs > span[aria-hidden] { color: #748c80; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-admin-breadcrumbs a, .cb-account-name, .cb-edition-card h2 a):hover { color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace.cb-interface-polish .cb-admin-tabs {
  border-color: var(--theme-border);
  background: #eaf3ed;
  box-shadow: inset 0 1px #fff, 0 3px 12px #1e4b3210;
}
:root[data-theme="light"] .cb-admin-workspace .cb-admin-tabs { border-color: var(--theme-border); background: #eaf3ed; }
:root[data-theme="light"] .cb-admin-workspace.cb-interface-polish .cb-admin-tabs a { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace.cb-interface-polish .cb-admin-tabs a:hover { color: var(--theme-accent); background: #dceee1; }
:root[data-theme="light"] .cb-admin-workspace.cb-interface-polish .cb-admin-tabs a[aria-current="page"] {
  color: #086c48;
  background: #fff;
  box-shadow: inset 0 0 0 1px #b2d3bf, 0 2px 7px #1b523715;
}

:root[data-theme="light"] .cb-admin-workspace :is(.cb-account-row, .cb-edition-card, .cb-edition-tool, .cb-team-option, .cb-match-tool) {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background: linear-gradient(135deg, #fff, #f8fbf9);
  box-shadow: inset 0 1px #fff, 0 6px 20px #1e4b3209;
}
:root[data-theme="light"] .cb-admin-workspace :is(.cb-account-row, .cb-edition-card, .cb-edition-tool)::before { background: linear-gradient(90deg, transparent, #aecdb9, transparent); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-account-row, .cb-edition-card, .cb-edition-tool, .cb-team-option, .cb-match-tool):is(:hover, :focus-within) {
  border-color: #94bfa6;
  box-shadow: inset 0 1px #fff, 0 8px 24px #1e4b3212;
}
:root[data-theme="light"] .cb-admin-workspace :is(.cb-account-row .cb-account-name, .cb-competition-details dd, .cb-edition-tool > strong, .cb-edition-tool h2, .cb-team-option strong, .cb-fixture-teams strong) { color: var(--theme-text); text-shadow: none; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-account-row .cb-field-help, .cb-team-option .cb-field-help) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-card-actions, .cb-admin-catalog .cb-competition-actions, .cb-competition-details > div, .cb-team-selection) { border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-competition-empty, .cb-player-filters, .cb-competition-actions.cb-management-action) { color: var(--theme-muted); border-color: var(--theme-border); background: #f4f9f5; }
:root[data-theme="light"] .cb-admin-workspace .cb-competition-empty h2 { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-admin-secondary, .cb-pagination a, .cb-account-row > .cb-text-link, .cb-admin-catalog .cb-competition-actions .cb-text-link) {
  border-color: #b5d1bf;
  color: #176343;
  background: linear-gradient(135deg, #f7fcf8, #eaf4ed);
  box-shadow: inset 0 1px #fff;
}
:root[data-theme="light"] .cb-admin-workspace :is(.cb-admin-secondary, .cb-pagination a, .cb-account-row > .cb-text-link, .cb-admin-catalog .cb-competition-actions .cb-text-link):not(:disabled):hover {
  border-color: #82b69a;
  background: #e0f0e6;
  color: #075b3c;
}
:root[data-theme="light"] .cb-admin-workspace :is(.cb-account-state, .cb-status, .cb-season-badges .cb-status) {
  color: var(--chip-fg, #256447);
  border-color: var(--chip-border, #c0d9c9);
  background: var(--chip-bg, #eaf5ed);
  box-shadow: none;
}
:root[data-theme="light"] .cb-admin-workspace .cb-account-disabled { color: var(--theme-danger); border-color: #e6bfba; background: #fff0ed; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-team-logo, .cb-match-tool-icon, .cb-setup-icon) {
  color: #16744f;
  border-color: #bed8c8;
  background: radial-gradient(ellipse at 50% 0%, #fff, transparent 75%), linear-gradient(140deg, #e1f2e7, #edf5f0);
  box-shadow: inset 0 1px #fff, 0 3px 9px #1e4b3209;
}
:root[data-theme="light"] .cb-admin-workspace .cb-player-team-logo:hover .cb-team-logo { border-color: #8ebda2; background: #def0e4; }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-tool { background: linear-gradient(135deg, #f2faf5, #fff); }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-tool-top { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-tool-top > span:last-child { color: var(--theme-accent); border-color: var(--theme-border); background: #e8f4ed; box-shadow: none; }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-tool-action { color: var(--theme-accent); border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace .cb-availability-summary { border-left-color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-team-selection legend, .cb-availability-fields legend) { color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-team-option:has(input:checked) { background: #e8f5ec; border-color: #7ab18e; box-shadow: inset 3px 0 var(--theme-accent), 0 3px 12px #1e4b3208; }
:root[data-theme="light"] .cb-admin-workspace .cb-availability-fields { background: #f6faf7; border-color: var(--theme-border); box-shadow: none; }

/* Edition controls and setup progress. */
:root[data-theme="light"] .cb-admin-workspace .cb-edition-setup { --setup-line: #dce8e1; --setup-muted: var(--theme-muted); --setup-text: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-controls, .cb-edition-setup-list) { border-color: var(--theme-border); background: #fff; box-shadow: 0 4px 18px #1e4b3207; }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-controls-main { background: linear-gradient(120deg, #f0f8f3, #fff); border-radius: 13px 13px 0 0; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-controls-title h2, .cb-edition-setup-title h3, .cb-setup-metric > strong, .cb-setup-description strong, .cb-setup-team-progress strong) { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-controls-copy p, .cb-edition-unpublished-action > span, .cb-setup-metric small, .cb-edition-setup .cb-setup-prerequisite, .cb-setup-team-progress summary, .cb-setup-team-progress summary small, .cb-setup-team-progress li span, .cb-edition-setup-footer > p) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-control-button, .cb-edition-setup .cb-setup-button, .cb-edition-setup .cb-setup-tile-actions .cb-admin-secondary) { color: #175e40; border-color: #b5d1bf; background: #f5faf6; box-shadow: inset 0 1px #fff; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-control-button, .cb-edition-setup .cb-setup-button, .cb-edition-setup .cb-setup-tile-actions .cb-admin-secondary):not(:disabled):hover { color: #085d3c; border-color: #84b69a; background: #e4f2e9; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-control-button.is-primary, .cb-edition-setup .cb-setup-button.is-primary) { color: #fff; border-color: #087b55; background: linear-gradient(125deg, #12865c, #086d4b); box-shadow: inset 0 1px #ffffff26, 0 4px 12px #087b5519; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-control-button.is-primary, .cb-edition-setup .cb-setup-button.is-primary):hover { color: #fff; border-color: #056443; background: #056443; }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-control-button:disabled { color: #718076; border-color: #d4dfd8; background: #edf2ee; box-shadow: none; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-settings-actions, .cb-edition-settings-actions a + a, .cb-edition-setup-badges > span + span) { border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-settings-actions a { color: #385b49; }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-settings-actions a:hover { background: #edf7f0; color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-settings-actions svg, .cb-edition-control-arrow, .cb-edition-setup-icon, .cb-setup-tile-heading .cb-edition-setup-icon) { color: #56806a; }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-setup-state { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-setup-state.is-done, .cb-setup-priced) { color: var(--theme-success); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-edition-setup-state.needs-attention, .cb-edition-setup .cb-setup-attention, .cb-setup-team-progress .cb-setup-team-summary small) { color: var(--theme-warning); }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-setup .cb-setup-link { color: #346e50; }
:root[data-theme="light"] .cb-admin-workspace .cb-edition-setup .cb-setup-link:hover { color: #075b3c; }
:root[data-theme="light"] .cb-admin-workspace .cb-setup-price-meter { background: #d9e9de; }
:root[data-theme="light"] .cb-admin-workspace .cb-setup-price-meter::-webkit-meter-bar { background: #d9e9de; }
:root[data-theme="light"] .cb-admin-workspace .cb-setup-price-meter::-webkit-meter-optimum-value { background: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-setup-price-meter::-moz-meter-bar { background: var(--theme-accent); }

/* Fixtures, lineups, source connections and match operations. */
:root[data-theme="light"] .cb-admin-workspace .cb-fixture-teams { border-color: var(--theme-border); background: #f1f7f3; box-shadow: none; }
:root[data-theme="light"] .cb-admin-workspace .cb-fixture-teams > .cb-field-help { color: #547461; border-color: var(--theme-border); background: #fff; }
:root[data-theme="light"] .cb-admin-workspace .cb-match-tool.is-primary { border-color: #a3cdb4; background: linear-gradient(135deg, #e7f5ec, #f7fcf8); }
:root[data-theme="light"] .cb-admin-workspace .cb-match-tool-copy small { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace .cb-match-tool-arrow { color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-fixture-cancel { color: var(--theme-danger); border-color: #e4bdb6; background: #fff4f1; }
:root[data-theme="light"] .cb-admin-workspace .cb-fixture-cancel:hover { color: #962d2c; border-color: #cc8c81; background: #ffe9e3; }
:root[data-theme="light"] .cb-admin-workspace .cb-fixture-toss-summary { color: #78551e; border-color: #e5d5b0; background: #fff9e9; }
:root[data-theme="light"] .cb-admin-workspace .cb-fixture-toss-summary svg { color: #95701f; }
:root[data-theme="light"] .cb-admin-workspace .cb-lock-notice { color: var(--theme-warning); border-left-color: #ba8a37; background: #fff7e8; }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-player { border-color: #e2ebe5; background: #f6f9f7; }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-player:hover { background: #edf6f0; }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-player:has(input:checked) { background: #e6f3eb; border-color: #89b99b; box-shadow: inset 3px 0 var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-player strong { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-player small { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-count { color: var(--theme-muted); border-color: var(--theme-border); background: #f2f7f4; }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-count.is-ready { color: #086941; border-color: #a2cdb2; background: #e4f5e9; }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-count.is-over { color: var(--theme-danger); border-color: #deb0a9; background: #fff0ed; }
:root[data-theme="light"] .cb-admin-workspace .cb-lineup-import > summary { color: #1a6548; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-lineup-import > summary > span, .cb-lineup-import[open] > .cb-dashboard-grid, .cb-lineup-publish) { border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-toss-automation, .cb-source-preview) { background: linear-gradient(125deg, #f3faf5, #fff); border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace .cb-source-status { color: var(--theme-muted); border-color: #c6d9cd; background: #f0f5f2; }
:root[data-theme="light"] .cb-admin-workspace .cb-source-status:is(.is-awaiting, .is-synced, .is-published) { color: #076b45; border-color: #a8cfb7; background: #e7f5ec; }
:root[data-theme="light"] .cb-admin-workspace .cb-source-status:is(.is-review, .is-partial) { color: var(--theme-warning); border-color: #e4cc9f; background: #fff7e6; }
:root[data-theme="light"] .cb-admin-workspace .cb-source-status.is-error { color: var(--theme-danger); border-color: #e7bdb5; background: #fff0ed; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-source-warning, .cb-xi-map-hint) { color: var(--theme-warning); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-source-times, .cb-source-history, .cb-source-history time, .cb-xi-mapping-team > header p, .cb-xi-source-name small) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace .cb-source-times strong { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-source-history, .cb-source-history li, .cb-xi-sync-note, .cb-xi-mapping-team > header, .cb-xi-mapping-row) { border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace .cb-xi-mapping-team > header { background: #edf6f0; }
:root[data-theme="light"] .cb-admin-workspace .cb-xi-mapping-row:focus-within { background: #f2f9f4; }
:root[data-theme="light"] .cb-admin-workspace .cb-xi-row-number { color: #256a49; border-color: #c0d8ca; background: #eaf5ef; }
:root[data-theme="light"] .cb-admin-workspace .cb-xi-map-arrow { color: #527c63; }
:root[data-theme="light"] .cb-admin-workspace .cb-xi-map-hint.is-saved { color: var(--theme-success); }
:root[data-theme="light"] .cb-admin-workspace .cb-xi-live-dot { background: #11834e; box-shadow: 0 0 0 3px #11834e12; }

/* Import tables and explicit review states. Sticky table cells stay opaque. */
:root[data-theme="light"] .cb-admin-workspace .cb-excel-dropzone { background: radial-gradient(ellipse at top, #e0f3e7, transparent 80%), #f8fcf9; border-color: #9fc7af; }
:root[data-theme="light"] .cb-admin-workspace .cb-excel-dropzone strong { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-excel-dropzone > span, .cb-excel-dropzone small, .cb-excel-selection p) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-excel-upload-icon, .cb-excel-browse) { color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-excel-dropzone:is(:hover, .has-file) { border-color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-excel-dropzone:focus-within { outline-color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-excel-dropzone.is-dragging { background: #e5f4eb; border-color: #23875a; box-shadow: inset 0 0 24px #bddbc719, 0 0 0 4px #087b550e; }
:root[data-theme="light"] .cb-admin-workspace .cb-excel-error { color: var(--theme-danger); }
:root[data-theme="light"] .cb-admin-workspace .cb-import-summary { border-left-color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table-wrap { background: #fff; border-color: var(--theme-border); box-shadow: 0 4px 18px #1e4b3209; scrollbar-color: #a0c2ad #f1f7f3; }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table caption { color: #375b46; background: #e9f3ec; }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table :is(th, td) { border-bottom-color: #dce8e1; }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table thead th { color: #315640; background: #e6f0e9; }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table tbody th { color: #39634b; background: #f0f6f2; }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table tbody tr:nth-child(even) td { background: #f8fbf9; }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table tbody tr:hover td { background: #edf6f0; }
:root[data-theme="light"] .cb-admin-workspace .cb-saved-scorecard tbody th { box-shadow: 1px 0 #cadcd2, 5px 0 12px #1e4b320a; }
:root[data-theme="light"] .cb-admin-workspace .cb-import-review > .cb-accent { color: #136b46; border-color: #b5d7c1; background: #e6f5eb; box-shadow: none; }
:root[data-theme="light"] .cb-admin-workspace .cb-import-table .cb-import-review:has(.cb-import-errors) { background: #fff4ee; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-import-errors, .cb-filter-status.is-error) { color: var(--theme-danger); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-import-review > p, .cb-import-review > .cb-logo-remove) { color: var(--theme-warning); border-color: #e4d1ae; }
:root[data-theme="light"] .cb-admin-workspace .cb-table-scroll-hint > span { color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-history-event { border-color: var(--theme-border); border-left-color: #80b395; background: #f6faf7; box-shadow: none; }
:root[data-theme="light"] .cb-admin-workspace .cb-history-event h3 { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace .cb-history-event :is(.cb-field-help, span) { color: var(--theme-muted); }

/* Scorecards, points and completion review. */
:root[data-theme="light"] .cb-admin-workspace :is(.cb-scorecard-row summary strong, .cb-points-identity strong, .cb-no-play-panel > summary strong) { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-state { color: #176e48; border-color: #b1d4bf; background: #edf7f0; }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-state.has-errors { color: var(--theme-danger); border-color: #dfb5ae; background: #fff0ec; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-scorecard-row[open], .cb-scorecard-actions) { border-color: #9bc4ac; }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-fields fieldset { background: #f3f8f5; border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-fields legend { color: #146c48; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-points-total, .cb-points-group h3 span, .cb-points-group dd, .cb-scoring-leaders strong, .cb-scoring-card dd, .cb-edition-completion-counts strong) { color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-points-toggle, .cb-points-group small, .cb-scoring-leaders span, .cb-scoring-card dd span) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-points-group, .cb-scoring-leaders > div) { background: #f2f8f4; border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-points-group dl > div, .cb-scoring-card dl > div, .cb-scoring-audit, .cb-scoring-audit article, .cb-edition-completion-match) { border-color: #dbe6df; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-scoring-card dt, .cb-scoring-notes, .cb-scoring-audit > summary) { color: #375c48; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-points-card .is-negative, .cb-scoring-card dd.is-negative) { color: var(--theme-danger); }
:root[data-theme="light"] .cb-admin-workspace .cb-scoring-status { color: var(--theme-warning); border-color: #e2ceaa; background: #fff7e7; }
:root[data-theme="light"] .cb-admin-workspace .cb-scoring-status.is-final { color: #096a44; border-color: #a7d0b7; background: #e8f6ed; }
:root[data-theme="light"] .cb-admin-workspace .cb-scoring-checks { color: #6c532b; border-color: #e4d5b7; background: #fffaf0; }
:root[data-theme="light"] .cb-admin-workspace .cb-scoring-confirm { color: #294c38; border-color: var(--theme-border); background: #f4f9f6; }
:root[data-theme="light"] .cb-admin-workspace .cb-scoring-confirm:has(input:checked) { border-color: #9ec6ae; background: #eaf6ef; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-no-play-panel, .cb-season-complete) { border-color: #afd4bc; background: linear-gradient(125deg, #eaf6ed, #f8fcf9); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-no-play-panel > p, .cb-no-play-reopen > summary, .cb-season-complete p) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-no-play-points h2, .cb-season-complete h2) { color: #165c3b; }
:root[data-theme="light"] .cb-admin-workspace .cb-no-play-zero { color: #176c46; border-color: #b2d5c0; background: #e1f3e8; }
:root[data-theme="light"] .cb-admin-workspace .cb-no-play-reopen { border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace .cb-season-complete.is-review { border-color: #e1cca4; background: #fff8e9; }
:root[data-theme="light"] .cb-admin-workspace .cb-season-complete.is-review h2 { color: var(--theme-warning); }
:root[data-theme="light"] .cb-admin-workspace .cb-match-result { background: #eef7f1; border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace .cb-match-result > strong { color: #166540; }
:root[data-theme="light"] .cb-admin-workspace .cb-match-result > p { color: var(--theme-muted); }

/* Cricbuzz scorecard, fixture and squad import previews. */
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview .cb-source-stat { border-color: var(--theme-border); background: linear-gradient(125deg, #eff8f2, #fff); }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview :is(.cb-source-stat > span, .cb-source-stat small, .cb-source-team > h2 > small, .cb-source-comparison thead th, .cb-source-comparison td) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview :is(.cb-source-stat > strong, .cb-source-comparison .is-changed td:nth-child(2), .cb-source-comparison small) { color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview .cb-source-badge { color: #276548; border-color: #bed8c8; background: #edf7f0; }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview .cb-source-badge.is-review { color: var(--theme-warning); border-color: #e5cda2; background: #fff6e1; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-scorecard-preview .cb-source-notice, .cb-source-review-note) { color: var(--theme-warning); border-color: #e6d5b2; background: #fff9ea; }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview .cb-source-avatar { color: #276b4a; background: #e0f0e6; }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-source-player-meta, .cb-source-comparison th, .cb-source-comparison td, .cb-source-review-player) { border-color: #dce8e1; }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview .cb-source-comparison td:nth-child(2) { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview :is(.cb-source-comparison td.is-missing, .cb-source-gap) { color: var(--theme-warning); }
:root[data-theme="light"] .cb-admin-workspace .cb-series-match-choice { border-color: var(--theme-border); background: #f7faf8; }
:root[data-theme="light"] .cb-admin-workspace .cb-series-match-choice:has(input:checked) { border-color: #8cb69e; background: #e9f5ed; }
:root[data-theme="light"] .cb-admin-workspace .cb-scorecard-preview .cb-source-toolbar .cb-fixture-teams { background: none; border: 0; box-shadow: none; }

/* Bulk credit entry: white fields, quiet row separation, a distinct save tray. */
:root[data-theme="light"] .cb-admin-workspace :is(.cb-bulk-credit-summary, .cb-bulk-credit-team header p, .cb-bulk-credit-column, .cb-bulk-credit-identity > span, .cb-bulk-credit-price small, .cb-bulk-credit-price > span, .cb-bulk-credit-complete p:last-child) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-bulk-credit-summary strong, .cb-bulk-credit-price > strong) { color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-summary span { color: #81998a; }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-team { border-color: var(--theme-border); background: #fff; }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-team > header { background: linear-gradient(110deg, #eaf5ee, #f3f9f5); border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-bulk-credit-team h2, .cb-bulk-credit-identity > strong, .cb-bulk-credit-footer strong, .cb-bulk-credit-complete h2) { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-row { border-color: #e1ebe5; }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-row:focus-within { background: #f1f8f4; }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-row.has-error { border-left-color: var(--theme-danger); background: #fff5f0; }
:root[data-theme="light"] .cb-home .cb-admin-workspace.cb-interface-polish .cb-bulk-credit-price.cb-form-field input[aria-invalid="true"] { border-color: var(--theme-danger); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-bulk-credit-row-errors, .cb-bulk-credit-network-error) { color: var(--theme-danger); }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-footer { border-color: #acd1bb; background: #f5fbf7; box-shadow: 0 8px 30px #153b271f; }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-complete { border-color: #aed1b9; background: linear-gradient(110deg, #e5f4ea, #f7fcf8); }
:root[data-theme="light"] .cb-admin-workspace .cb-bulk-credit-batch { color: var(--theme-warning); }

/* Tournament browser. */
:root[data-theme="light"] .cb-tournament-browser { --tournament-line: var(--theme-border); --tournament-muted: var(--theme-muted); }
:root[data-theme="light"] .cb-admin-workspace .cb-tournament-heading { border-color: #b6d2c0; background: radial-gradient(ellipse at 90% 15%, #cfeada80, transparent 60%), linear-gradient(115deg, #fff, #eef7f1); box-shadow: inset 0 1px #fff, 0 10px 30px #1e4b320b; }
:root[data-theme="light"] .cb-tournament-heading::after { background: linear-gradient(90deg, transparent, #a6cbb5, transparent); }
:root[data-theme="light"] .cb-admin-workspace .cb-tournament-heading .cb-eyebrow { color: var(--theme-accent); }
:root[data-theme="light"] .cb-tournament-heading .cb-accent { color: var(--theme-accent); text-shadow: none; }
:root[data-theme="light"] .cb-tournament-browser :is(.cb-tournament-intro > p:not(.cb-eyebrow), .cb-tournament-intro .cb-text-link, .cb-tournament-edition-count, .cb-tournament-edition-hint) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-tournament-mark { color: #267a51; border-color: #bfd8c8; background: radial-gradient(ellipse at 50% 25%, #fff, transparent 70%), repeating-linear-gradient(110deg, #e9f5ed 0 20px, #e1efe6 20px 40px); box-shadow: inset 0 0 30px #d2e7d950, 0 0 0 7px #c8dfd11a; }
:root[data-theme="light"] .cb-tournament-mark::before { border-color: #bad1c3; }
:root[data-theme="light"] .cb-tournament-mark svg { filter: drop-shadow(0 4px 5px #1e4b3215); }
:root[data-theme="light"] .cb-tournament-mark > span { color: #527460; }
:root[data-theme="light"] .cb-tournament-browser :is(.cb-tournament-total strong, .cb-tournament-edition-count strong) { color: var(--theme-text); }
:root[data-theme="light"] .cb-tournament-total > span { color: #6d8977; }
:root[data-theme="light"] .cb-tournament-card { border-color: var(--theme-border); background: linear-gradient(145deg, #fff, #f7fbf8); box-shadow: inset 0 1px #fff, 0 5px 20px #1e4b3209; }
:root[data-theme="light"] .cb-tournament-card::before { background: linear-gradient(90deg, transparent, #bfd8c8, transparent); }
:root[data-theme="light"] .cb-tournament-card:is(:hover, :focus-within) { border-color: #8ebaa0; box-shadow: inset 0 1px #fff, 0 9px 24px #1e4b3212; }
:root[data-theme="light"] .cb-tournament-card .cb-team-logo { color: #20754d; border-color: #bfd8c8; background: linear-gradient(140deg, #e0f2e6, #f2f8f4); box-shadow: inset 0 1px #fff, 0 4px 12px #1e4b3209; }
:root[data-theme="light"] .cb-tournament-format { color: #276c49; border-color: #bad4c4; background: #e8f4ed; box-shadow: none; }
:root[data-theme="light"] .cb-tournament-short-name { color: #4c7d61; }
:root[data-theme="light"] .cb-tournament-identity a:hover { color: var(--theme-accent); }
:root[data-theme="light"] .cb-tournament-edition-summary { border-color: #d8e5dd; background: #f0f7f3; }
:root[data-theme="light"] :is(.cb-tournament-open, .cb-tournament-edit) { color: #176442; border-color: #b4d1bf; background: #edf7f0; box-shadow: inset 0 1px #fff; }
:root[data-theme="light"] .cb-tournament-open > span { color: var(--theme-accent); }
:root[data-theme="light"] :is(.cb-tournament-open, .cb-tournament-edit):hover { border-color: #86b598; background: #dff0e6; color: #095d3d; }
:root[data-theme="light"] .cb-tournament-empty { background: #f6fbf8; border-color: #b4d2bf; }
:root[data-theme="light"] .cb-tournament-empty-icon { color: #21774f; border-color: #c1d9c9; background: #e6f4eb; box-shadow: inset 0 1px #fff, 0 4px 15px #1e4b3209; }

/* Dashboard: retain the green cricket-field illustration. */
:root[data-theme="light"] .cb-hub { --hub-border: var(--theme-border); --hub-muted: var(--theme-muted); }
:root[data-theme="light"] .cb-hub-hero { border-color: #b4d2c0; background: radial-gradient(ellipse at 85% 25%, #cae6d580, transparent 60%), linear-gradient(115deg, #fff, #f0f8f3); box-shadow: inset 0 1px #fff, 0 10px 30px #1e4b320b; }
:root[data-theme="light"] .cb-hub-hero::before { background: linear-gradient(transparent, #25855b, transparent); }
:root[data-theme="light"] .cb-hub-hero::after { background: linear-gradient(90deg, transparent, #a6cbb5, transparent); }
:root[data-theme="light"] .cb-hub :is(.cb-hub-intro > p:not(.cb-eyebrow), .cb-hub-match-teams strong span) { color: var(--theme-muted); }
:root[data-theme="light"] .cb-hub :is(.cb-hub-intro strong, .cb-hub-stat strong, .cb-hub-edition-numbers b) { color: var(--theme-text); }
:root[data-theme="light"] .cb-hub :is(.cb-eyebrow, h1 .cb-accent) { color: var(--theme-accent); text-shadow: none; }
:root[data-theme="light"] .cb-hub-secondary { color: #376b4c; }
:root[data-theme="light"] .cb-hub-secondary:hover { color: #075d3c; }
:root[data-theme="light"] .cb-hub-role { color: #236747; border-color: #bdd9c8; background: #e8f5ee; box-shadow: none; }
:root[data-theme="light"] .cb-hub-role-owner { color: #795618; border-color: #e0cba0; background: #fff5df; }
:root[data-theme="light"] .cb-hub :is(.cb-hub-stat, .cb-hub-edition, .cb-hub-panel) { border-color: var(--theme-border); background: linear-gradient(145deg, #fff, #f8fbf9); box-shadow: inset 0 1px #fff, 0 5px 20px #1e4b3209; }
:root[data-theme="light"] .cb-hub :is(.cb-hub-stat:hover, .cb-hub-edition:is(:hover, :focus-within)) { border-color: #9bc4ab; box-shadow: inset 0 1px #fff, 0 8px 24px #1e4b3212; }
:root[data-theme="light"] .cb-hub-stat::before { background: linear-gradient(90deg, transparent, #bdd7c7, transparent); }
:root[data-theme="light"] .cb-hub-stat-heading { color: #365f47; }
:root[data-theme="light"] .cb-hub :is(.cb-hub-stat-heading > span, .cb-hub-stat-icon, .cb-hub-pill, .cb-hub-quick b, .cb-hub-empty > span) { color: #27774e; border-color: #c0d9c9; background: linear-gradient(145deg, #e4f3e9, #f1f8f4); box-shadow: inset 0 1px #fff; }
:root[data-theme="light"] .cb-hub-reminder { color: var(--theme-warning); border-color: #e5d1ad; background: #fff8e8; }
:root[data-theme="light"] .cb-hub-note { color: #37744f; border-color: #c4ddcc; background: #eff8f2; }
:root[data-theme="light"] .cb-hub-edition-links a { color: #315e45; border-color: #c5dacd; background: #f3f9f5; }
:root[data-theme="light"] .cb-hub-edition-links a:hover { color: #07613e; border-color: #9abfa8; background: #e4f3e9; }
:root[data-theme="light"] .cb-hub-fixture-date { color: var(--theme-accent); }
:root[data-theme="light"] .cb-hub-fixture:hover { background: #eef8f1; }
:root[data-theme="light"] .cb-hub-fixture:hover strong, :root[data-theme="light"] .cb-hub-quick > a:hover { color: #07613e; }
:root[data-theme="light"] .cb-hub-empty { border-color: #b8d4c2; background: #f7fbf8; }
:root[data-theme="light"] .cb-hub :is(.cb-hub-edition .cb-team-logo, .cb-hub-fixture .cb-team-logo) { color: #21734b; border-color: #bfd8c8; background: linear-gradient(140deg, #e2f2e7, #f4f9f6); box-shadow: inset 0 1px #fff, 0 3px 10px #1e4b3209; }
:root[data-theme="light"] .cb-hub-edition-numbers > span { border-color: #d7e5dd; background: #f0f7f3; }

/* Admin dialogs are mounted alongside main rather than inside the workspace. */
:root[data-theme="light"] .cb-admin-action .cb-source-preview { background: #f0f8f3; border-color: var(--theme-border); }
:root[data-theme="light"] .cb-admin-action .cb-source-warning { color: var(--theme-warning); }
:root[data-theme="light"] .cb-admin-action .cb-source-confirm { color: var(--theme-text); }
:root[data-theme="light"] .cb-admin-action .cb-availability-fields legend { color: var(--theme-accent); }

/* Maintain visible keyboard focus and native checkbox contrast across admin tools. */
:root[data-theme="light"] :is(.cb-admin-workspace, .cb-hub, .cb-tournament-browser) :is(a, button, summary, input, select, textarea, [tabindex="0"]):focus-visible { outline-color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-lineup-player, .cb-team-option, .cb-scoring-confirm):focus-within { outline-color: var(--theme-accent); }
:root[data-theme="light"] .cb-admin-workspace :is(.cb-lineup-player input, .cb-team-option input, .cb-scoring-confirm input, .cb-source-confirm input[type="checkbox"], .cb-source-review-check input) { accent-color: var(--theme-accent); color-scheme: light; }
