/* A low-glare companion to the classic dark competition theme. */
html[data-theme=light]{--bg:#dedede;--surface:#eeeeee;--elevated:#e2e2e2;--line:#bcbcbc;--muted:#585858;--white:#292929;--orange:#006bc3;--light-panel:#eeeeee;--light-row:#f1f1f1;--light-alt:#e2e2e2;--light-border:#bcbcbc;--light-button:linear-gradient(#168deb,#0076d5);--light-button-hover:linear-gradient(#087fd9,#0064b9);--light-button-border:#0870bd;--light-button-text:#ffffff;--light-primary:linear-gradient(#168deb,#0076d5)}
html[data-theme=light] main{background:var(--bg);border-color:var(--light-border)}
html[data-theme=light] :is(.ladder-header,.primary,.side-panel,.profile-section,.member-panel,.match-card,.update-article,.updates-page,.inbox-item,.admin-panel){background:var(--light-panel);border-color:var(--light-border);box-shadow:none}
html[data-theme=light] :is(.profile-heading,.member-heading,.player-hero){background:linear-gradient(#eeeeee,#e4e4e4);color:#292929}
html[data-theme=light] :is(.panel-bar,.profile-section .panel-bar,.team-action-dialog .dialog-heading,#join-dialog .dialog-heading){background:linear-gradient(#595959,#242424);border-color:#484848;color:#f2f6f9;box-shadow:inset 0 1px #ffffff18}
html[data-theme=light] :is(.ladder-tabs,.competition-nav,.profile-tabs,.auth-tabs){background:#dddddd;border-color:var(--light-border)}
html[data-theme=light] :is(.ladder-tabs>button,.competition-nav .nav-link,.profile-tabs>button,.auth-tabs button){background:var(--light-button);border-color:var(--light-button-border);color:var(--light-button-text);text-shadow:none}
html[data-theme=light] :is(.ladder-tabs>button.selected,.competition-nav .nav-link.active,.profile-tabs>button.active,.auth-tabs button.active){background:var(--light-primary);border-color:#0869b5;color:#fff;box-shadow:inset 0 1px #ffffff40}

html[data-theme=light] :is(.standings-caption,.table-legend,.table-scroll,.history-scroll,.history-footer,.roster-legend,.list-footer){background:var(--light-panel);border-color:var(--light-border);color:var(--muted)}
html[data-theme=light] :is(.standings-table thead th,.stats-table th,.history-table th,.list-labels){background:#d2d2d2;color:#292929;border-color:var(--light-border)}
html[data-theme=light] :is(.standings-table td,.stats-table td,.history-table td){border-color:#cccccc}
html[data-theme=light] :is(.standings-table tbody tr:nth-child(odd),.stats-table tbody tr:nth-child(odd),.history-table tr:nth-child(odd),.match-row:nth-child(odd)){background:var(--light-row)}
html[data-theme=light] :is(.standings-table tbody tr:nth-child(even),.stats-table tbody tr:nth-child(even),.history-table tr:nth-child(even),.match-row:nth-child(even)){background:var(--light-alt)}
html[data-theme=light] :is(.standings-table tbody tr.leader-highlight,.standings-table tbody tr:hover,.history-table tr:hover,.match-row:hover){background:#e0eaf2}
html[data-theme=light] :is(.season-value,.form-fixed,.random-note,.match-confirm,.nba-team,.match-timing,.match-resolution,.report-wait,.profile-empty){background:#e5e5e5;border-color:var(--light-border);color:#444444}
html[data-theme=light] :is(.ladder-title-copy h1,.squad-summary h3,.profile-heading h2,.competition-info strong,.section-heading h2){color:#333333}
html[data-theme=light] :is(.season-line,.ladder-meta,.sample-tag,.competition-info p,.competition-facts dt,.leader-info small,.member-empty,.member-about dt,.form-help,.auth-intro,.field-hint){color:var(--muted)}
html[data-theme=light] :is(dialog,#account-dialog,#join-dialog){background:var(--light-panel);border-color:#ababab;color:#292929}
html[data-theme=light] #account-dialog{--account-border:#bcbcbc;--account-row:#f1f1f1;--account-alt:#e2e2e2;--account-text:#292929;--account-muted:#585858;--account-bar:linear-gradient(#595959,#242424)}
html[data-theme=light] :is(input,select,textarea),html[data-theme=light] #join-dialog :is(input,select,textarea){background:#f5f5f5;border-color:#a5a5a5;color:#292929}
html[data-theme=light] input::placeholder,html[data-theme=light] textarea::placeholder{color:#656565}
html[data-theme=light] :is(main,dialog) :is(.button,.outline-button,.accept-button,.match-details-link){background:var(--light-button);border:1px solid var(--light-button-border);color:var(--light-button-text);box-shadow:inset 0 1px #ffffff50;text-shadow:none;border-radius:2px;filter:none}
html[data-theme=light] :is(main,dialog) :is(.button,.outline-button,.accept-button,.match-details-link):hover:not(:disabled){background:var(--light-button-hover);border-color:#005ba8;color:#ffffff;filter:none}
html[data-theme=light] :is(main,dialog) .primary-button,html[data-theme=light] :is(#post-match,[data-post]).button,html[data-theme=light] #account-dialog .primary-button{background:var(--light-primary);border-color:#0869b5;color:#fff}
html[data-theme=light] :is(main,dialog) .primary-button:hover:not(:disabled),html[data-theme=light] :is(#post-match,[data-post]).button:hover:not(:disabled),html[data-theme=light] #account-dialog .primary-button:hover:not(:disabled){background:linear-gradient(#087fd9,#0064b9);color:#fff}
html[data-theme=light] #join-ladder.button.is-joined,html[data-theme=light] .profile-tabs .team-management .button,html[data-theme=light] #account-dialog .outline-button{--action-border:#0870bd;background:var(--light-button);border-color:var(--light-button-border);color:var(--light-button-text);text-shadow:none;box-shadow:inset 0 1px #ffffff50}
html[data-theme=light] #join-ladder.button.is-joined:hover,html[data-theme=light] .profile-tabs .team-management .button:hover,html[data-theme=light] #account-dialog .outline-button:hover{background:var(--light-button-hover);border-color:#005ba8;color:#ffffff;filter:none}
html[data-theme=light] dialog .button.disband-button{background:linear-gradient(#a72c36,#801e28);border-color:#9e3742;color:#fff}
html[data-theme=light] dialog .button.disband-button:hover:not(:disabled){background:#942331;border-color:#761724;color:#fff}
html[data-theme=light] :is(button,a,input,select,textarea):focus-visible{outline:2px solid #0076d5;outline-offset:3px}
html[data-theme=light] button:disabled{opacity:.55;cursor:not-allowed;filter:none}
html[data-theme=light] .topbar .account-dropdown,html[data-theme=light] .header-search-results{background:var(--light-panel);border-color:#ababab;color:#292929}
html[data-theme=light] .topbar .account-dropdown button:hover,html[data-theme=light] .topbar .account-dropdown #theme-toggle{background:#dedede;color:#ffffff}
html[data-theme=light] ::selection{background:#b5d5ea;color:#123b56}
@media(max-width:620px){html[data-theme=light] .standings-table th:nth-child(2){background:#d2d2d2}html[data-theme=light] .standings-table tbody tr:nth-child(odd) td:nth-child(2){background:var(--light-row)}html[data-theme=light] .standings-table tbody tr:nth-child(even) td:nth-child(2){background:var(--light-alt)}html[data-theme=light] #full-standings::before{background:#dddddd;color:#555555;border-color:var(--light-border)}}

html[data-theme=light] input::file-selector-button{background:var(--light-button);border:1px solid var(--light-button-border);border-radius:2px;color:var(--light-button-text);padding:5px 9px;margin-right:9px;font:inherit;cursor:pointer}
html[data-theme=light] input::file-selector-button:hover{background:var(--light-button-hover)}
html[data-theme=light]{scrollbar-color:#8b8b8b #dedede}
html[data-theme=light] :is(input,textarea){caret-color:#0076d5}

html[data-theme=light] .side-panel .side-panel-body>.outline-button{background:var(--light-button);border-color:var(--light-button-border);color:var(--light-button-text);text-shadow:none;box-shadow:inset 0 1px #ffffff50}
html[data-theme=light] .side-panel .side-panel-body>.outline-button:hover{background:var(--light-button-hover);border-color:#005ba8;color:#ffffff}

/* Neutral classic tabs frame the stronger blue action buttons. */
html[data-theme=light] :is(.ladder-tabs>button,.competition-nav .nav-link,.profile-tabs>button,.auth-tabs button){background:linear-gradient(#e7e7e7,#d3d3d3);border-color:#b7b7b7;color:#333}
html[data-theme=light] :is(.ladder-tabs>button.selected,.competition-nav .nav-link.active,.profile-tabs>button.active,.auth-tabs button.active){background:#f1f1f1;border-color:#b7b7b7;color:#222;box-shadow:inset 0 2px #168deb}
html[data-theme=light] .ladder-tabs>button.selected small{color:#555}
html[data-theme=light] .competition-nav .nav-link.active .count{color:#333;background:#d5d5d5}
html[data-theme=light] .topbar .account-dropdown button:hover,html[data-theme=light] .topbar .account-dropdown #theme-toggle{background:#dedede;color:#075c99}
html[data-theme=light] .side-panel .side-panel-body>.outline-button{color:#fff}
