/* Shared Light palette only. Do not change Dark, media, playing surfaces or permissions. */
@layer ys-launch304 {
:root[data-ys-theme=light] {--ys-page:#e3ddd5!important;--ys-panel:#e3ddd5!important;--ys-input:#d4e1ce!important;--ys-panel-2:#d7d0c7!important;--ys-ink:#242a26!important;--ys-muted:#526258!important;--ys-line:#b5c3ba!important}
:root[data-ys-theme=light] :is(main,#ys-settings,.notification-center-page,.ys-notification-center) :is(button,.button,.account-action,.settings-action):not(.primary):not(.native-primary):not([data-primary=true]) {background-color:#d4e1ce!important;color:#242a26!important;border-color:#9caf98!important}
:root[data-ys-theme=light] :is(main,#ys-settings,.notification-center-page,.ys-notification-center) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea,option) {background-color:#d4e1ce!important;color:#242a26!important;border-color:#9caf98!important}
:root[data-ys-theme=light] :is(.panel,.card,.registration-card,.tryout-card,.payment-dialog,.payments-dashboard,.payment-metric,.payment-money article,.payment-table-wrap,.payment-money,.payment-list-heading,.payment-filters,.tryout-stack,.organization-card,.ys-notification-center,.ys-notification-card,#ys-settings section) {background-color:#e3ddd5!important;color:#242a26!important}
:root[data-ys-theme=light] :is(main,.payments-dashboard) :is(table,thead,tbody,tr,th,td) {background-color:#e3ddd5!important;color:#242a26!important}
/* Sort labels remain part of the header, not individual colored boxes. */
:root[data-ys-theme=light] :is(.native-sortable-table,.native-complete-stats) th button {background:transparent!important;box-shadow:none!important;border:0!important;color:#242a26!important}
/* Keep chat's established message colors and integrated composer. */
:root[data-ys-theme=light] #root .connected-chat>form :is(textarea,button.chat-add-toggle) {background:transparent!important}
}

/* Lonnie: match native dark controls; preserve all approved light-mode rules above. */
@layer ys-launch304 {
:root[data-ys-theme=dark] body :is(button.primary,.button.primary,a.primary,button.native-primary,.ys-action-primary254,[data-primary=true]) {background:#153000!important;color:#fff!important;border-color:#45d24a!important}
:root[data-ys-theme=dark] body :is(button.primary,.button.primary,a.primary,button.native-primary,.ys-action-primary254,[data-primary=true]):hover {background:#102b16!important;color:#fff!important;border-color:#45d24a!important}
:root[data-ys-theme=dark] body #root :is(.team-home-tool,.native-team-actions button) {background:#1b2420!important;color:#f7f9fb!important;border-color:#39483e!important}
:root[data-ys-theme=dark] body #root :is(.team-home-tool,.native-team-actions button):hover {background:#26362c!important;color:#fff!important;border-color:#7bce90!important}
:root[data-ys-theme=dark] body #root :is(table.native-sortable-table,table.native-complete-stats,table.native-game-table) :is(thead,thead th,thead th button,thead th button span) {color:#fff!important}
}

/* Web Standings + View Stats light colors, matched to iOS. */
@layer ys-launch304 {
:root[data-ys-theme=light] body #root#root main :is(table.native-sortable-table[aria-label="League standings"],table.native-sortable-table[aria-label="PNAHA standings"],table.native-complete-stats) :is(thead,thead tr,thead th) {background:#d4e1ce!important;color:#000!important}
:root[data-ys-theme=light] body #root#root main :is(table.native-sortable-table[aria-label="League standings"],table.native-sortable-table[aria-label="PNAHA standings"],table.native-complete-stats) thead :is(button,button span) {background:transparent!important;background-image:none!important;color:#000!important;box-shadow:none!important;border:0!important}
:root[data-ys-theme=light] body #root#root main :is(table.native-sortable-table[aria-label="League standings"],table.native-sortable-table[aria-label="PNAHA standings"]) .standings-team-name {background:transparent!important;background-image:none!important;color:#102a43!important;border:0!important;box-shadow:none!important;border-radius:0!important}
}

@layer ys-launch304 {
:root[data-ys-theme=light] body #root#root main :is(table.native-sortable-table[aria-label="League standings"],table.native-sortable-table[aria-label="PNAHA standings"]) :is(thead,thead tr,thead th) {background-color:#c4d4bc!important}
}
