/* Dark mode keeps the existing stylesheet. Light mode uses an off-white palette. */
html[data-theme=light]{color-scheme:light;--bg:#f1f2f2;--panel:#f9f9f9;--panel-soft:#e6e6e6;--line:#cccccc;--soft-outline:#9c9c9c;--muted:#666666;--text:#282828;--accent:#4b4b4b;--accent-soft:#e3e3e3;--good:#276343;--warn:#785800;--bad:#ac3434;color:var(--text);background:var(--bg)}
html[data-theme=dark]{color-scheme:dark}
html[data-theme=light] body{background:var(--bg);color:var(--text)}
html[data-theme=light] :is(.app-header,body>header,aside){background:var(--bg);border-color:var(--line)}
html[data-theme=light] :is(.wordmark img,.login-logo,body>header>img,.mobile-login-wordmark){filter:none}
html[data-theme=light] :is(.panel,dialog:not(.neon-arcade),.employee-search-results){background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-theme=light] :is(.panel.dashboard-profile,.panel.dashboard-greeting){background:transparent;box-shadow:none}
html[data-theme=light] :is(input,select,textarea){background:#f9f9f9;color:var(--text);border-color:#bababa}
html[data-theme=light] :is(.search input,.workspace-picker select,.login-form>input,.login-password>input){background:#e9e9e9;color:var(--text);border-color:#bababa}
html[data-theme=light] :is(.personal-profile-form input[readonly],input[readonly]){background:#eaeaea;color:#606060}
html[data-theme=light] :is(label,.login-options label,.profile .job-title,.profile .metadata,.metric p,.subtle,.notice-line,.aside-footer,.system-data dt,.employee-search-option small,.employee-search-status,.receipt-row-copy small,.receipt-footer,.receipt-chevron,.toolbar #toolbar-label,.toolbar #back,.workspace-picker,.login-screen footer){color:var(--muted)}
html[data-theme=light] :is(a,.eyebrow){color:#555555}
html[data-theme=light] button:where(:not(#neon-arcade button)){border-color:var(--soft-outline)}
html[data-theme=light] button:where(:not(#neon-arcade button):not(.plain):not(.receipt-row):not(.employee-card):not(nav button):not(.calendar-date):not(.review-flag)){background:#e4e4e4;color:var(--text)}
html[data-theme=light] button.primary{background:#dfdfdf;color:#282828;border-color:var(--soft-outline)}
html[data-theme=light] button.primary:hover{background:#d3d3d3}
html[data-theme=light] :is(button.plain,.queue-table button){background:transparent;color:#606060}
html[data-theme=light] button.plain{border-color:transparent}
html[data-theme=light] button.danger{color:var(--bad)}
html[data-theme=light] :is(nav button,.profile-tabs button){background:transparent;color:#606060}
html[data-theme=light] :is(#navigation button:hover,#navigation button.selected,aside nav button.selected){background:#e2e2e2;color:#282828}
html[data-theme=light] .profile-tabs button.selected{background:transparent;color:#282828;border-bottom-color:#707070}
html[data-theme=light] .profile-tabs button{border-color:transparent}
html[data-theme=light] :is(.account .header-refresh:hover,.account .header-profile:hover,#sign-out:hover){background:transparent;color:#242424}
html[data-theme=light] :is(.mobile-icon,.profile-theme-icon,.contact-email-action img){filter:brightness(0);opacity:.7}
html[data-theme=light] button.primary>.mobile-icon{opacity:.85}
html[data-theme=light] :is(.avatar,.avatar.small,.settings-profile-avatar){background:#dfdfdf;color:#3b3b3b}
html[data-theme=light] :is(.badge.neutral,.week-total,.total-block,.nav-count){background:#e3e3e3;color:#484848;border-color:#aaaaaa}
html[data-theme=light] .badge{background:#e0ece2;color:var(--good)}
html[data-theme=light] .badge.neutral{background:#e3e3e3;color:#484848}
html[data-theme=light] .badge.amber{background:#f0e8cf;color:var(--warn)}
html[data-theme=light] .badge.red{background:#f3dddd;color:var(--bad)}
html[data-theme=light] th{background:#e3e3e3;color:#4e4e4e}
html[data-theme=light] :is(td,th){border-color:#d5d5d5}
html[data-theme=light] td{color:#363636}
html[data-theme=light] :is(.queue-table tr:hover td,.employee-search-option:hover,.employee-search-option[aria-selected=true],.receipt-row:hover){background:#ebebeb}
html[data-theme=light] .employee-search-option{color:var(--text)}
html[data-theme=light] :is(.metrics.personal-timesheet-summary,.personal-timesheet-weeks>.week-panel){background:#f8f8f8;border-color:var(--soft-outline);box-shadow:none}
html[data-theme=light] .personal-timesheet-weeks>.week-panel.current-week{box-shadow:0 0 10px #5c5c5c25,0 0 2px #5c5c5c2b}
html[data-theme=light] :is(.receipt-row,.receipt-footer strong){color:var(--text)}
html[data-theme=light] .receipt-row{background:transparent;border-color:#d3d3d3;box-shadow:none}
html[data-theme=light] .receipt-filter{background:transparent!important;color:#5e5e5e!important}
html[data-theme=light] .receipt-filter.selected{background:#dcdcdc!important;color:#2c2c2c!important;border-color:var(--soft-outline)}
html[data-theme=light] :is(.filters button.selected,.receipt-submit-placeholder){background:#dcdcdc;color:#2c2c2c}
html[data-theme=light] :is(.dashboard-leave-actions button,.calendar-month button,.calendar-expand){background:transparent!important;color:#5c5c5c!important;border-color:transparent}
html[data-theme=light] .dashboard-leave-actions button:hover{color:#2c2c2c!important}
html[data-theme=light] .calendar-date{color:#494949}
html[data-theme=light] .calendar-date.outside-month{color:#979797}
html[data-theme=light] :is(.correction-notice,.review-card.review-attention){background:#f1ead5;border-color:#c1ac6f}
html[data-theme=light] :is(.correction-notice-heading strong,.correction-notice-heading span,.correction-notice p,.review-attention p){color:#665526}
html[data-theme=light] :is(.correction-notice button,.review-attention button,.review-flag.flagged){background:#e9dcae;color:#654b08;border-color:#b59a4d}
html[data-theme=light] :is(.pdf-preview iframe,.pdf-pages){background:#e2e2e2}
html[data-theme=light] .contact-email-action{background:#e4e4e4;border-color:var(--soft-outline)}
html[data-theme=light] :is(button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible){outline-color:#707070}
html[data-theme=light] .profile-theme-switch{background:#dadada!important;border-color:#999999}
html[data-theme=light] .profile-theme-thumb{background:#6b6b6b}
.profile-theme-switch.light-mode .profile-theme-thumb{transform:translateX(14px)}
html[data-theme=light] #map-message{background:#f6f8f5ed;color:#38483d;border-color:#b9c6bd}
html[data-theme=light] .team-location-age{background:#f0f4ef;color:#435347;border-color:#acbbae}
html[data-theme=light] :is(.mapboxgl-popup-content,.mapboxgl-ctrl-group){background:#f6f8f5;color:#2f4034}
html[data-theme=light] .mapboxgl-ctrl-group button{background:transparent}
html[data-theme=light] .mapboxgl-ctrl-icon{filter:none}
/* The arcade retains its intentional dark game palette. */
html[data-theme=light] #neon-arcade{--text:#f5f5f5;--muted:#ababab;color-scheme:dark}

html[data-theme=light] #map{background:var(--bg);color:var(--text)}

html[data-theme=light] .account .header-refresh img{filter:brightness(0)}

html[data-theme=light] button.team-office{background:#111;color:#fff;border-color:#111}
html[data-theme=light] .team-office img{filter:none}
html[data-theme=light] .panel.team-chatter-placeholder{background:transparent;border:0;box-shadow:none}

html[data-theme=light] .login-password #password-visibility{color:#666}html[data-theme=light] .login-password #password-visibility:hover{color:#222}

html[data-theme=light] .panel.dispatch-empty-state{background:transparent;border:0;box-shadow:none}

html[data-theme=light] .timesheet-queue-toolbar .filters button{background:#dfdfdf;color:#282828;border-color:var(--soft-outline)}html[data-theme=light] .timesheet-queue-toolbar .filters button:hover{background:#d3d3d3}

html[data-theme=light] .panel.employee-card{background:#f8f8f8}
