/* Shared, explicit dark surfaces; photos, slide hues, and job-color swatches are never inverted. */
.color-mode-control{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;margin:12px 0 20px;border:1.5px solid var(--line);border-radius:12px;background:var(--soft)}.color-mode-control p{margin:0;max-width:570px}.color-mode-control button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:150px;white-space:nowrap;font-size:20px}.color-mode-control button span{font-size:14px}
html[data-rw-color-mode=dark]{color-scheme:dark;--rw-bg:#142330;--rw-panel:#1c3041;--rw-raised:#294357;--rw-border:#7593a9;--rw-text:#e8f1f8;--rw-muted:#bfd0de;--ink:var(--rw-text);--muted:var(--rw-muted);--line:var(--rw-border);--soft:#294257;--bg:var(--rw-bg)}
html[data-rw-color-mode=dark] :is(body,#app,#editor,#view,#editBody,.ar-public-dialog,.ar-review-dialog){--ink:var(--rw-text)!important;--text:var(--rw-text)!important;--muted:var(--rw-muted)!important;--line:var(--rw-border)!important;--soft:#294257!important;--bg:var(--rw-bg)!important;--ar-ink:var(--rw-text)!important;--ar-muted:var(--rw-muted)!important;--ar-line:var(--rw-border)!important;--ar-soft:#294257!important}
html[data-rw-color-mode=dark] body{background:var(--rw-bg)!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(main,#view,.shell,#editBody){color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(section,.card,dialog,[popover],.login,.table-wrap,.tab-panel,.page-head,.dialog-head,.modal-header,.ar-public-header,.ar-review-header,.ar-review-calendar,.ar-period-card,.ar-calendar,.ar-inspector,.ar-settings-section,.ar-request-row,.ar-review-summary,.ar-identity-card,.permission-page-group,.notification-settings-row){background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.card:nth-of-type(even),.toolbar,.section-tabs,.settings-tabs,.ar-toolbar,.ar-selection-toolbar,.ar-settings-note,.ar-month-toolbar,.ar-review-footer,.ar-public-footer,.color-mode-control,.hint,.empty,.notice,.note){background:#243b4f!important;border-color:var(--rw-border)!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(h1,h2,h3,h4,legend,.eyebrow,.usage-stat>strong,.ar-public-header h1,.ar-request-main strong,.ar-inspector h3){color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.muted,.small.muted,small,.ar-request-main small,.ar-review-meta,.ar-day-muted){color:var(--rw-muted)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(a,.link,.text-button,summary,.announcement-page-link){color:var(--rw-link,#9ed0fa)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),select,textarea){background:#142b3c!important;color:var(--rw-text)!important;border-color:#6b879c!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) ::placeholder{color:#a2b6c7!important;opacity:1}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(input[type=checkbox],input[type=radio]){accent-color:var(--rw-link,#9ed0fa)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) button:not(.primary):not(.yellow):not(.day-button):not([style*="background"]):not(.ar-calendar-day):not(.palette-choice):not([data-calendar-day]){background:var(--rw-raised);color:var(--rw-text);border-color:#829eb3}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(button.primary,.primary.button,#confirmManual,#saveEntry){background:var(--rw-primary,#075aa3)!important;color:var(--rw-ink,#ffffff)!important;border-color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(button.yellow,.yellow.button){background:var(--yellow,#f8ce45)!important;color:#172f40!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) button:not(:disabled):hover{box-shadow:0 0 0 1px var(--rw-link,#9ed0fa)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(button,input,select,textarea,a,summary):focus-visible{outline-color:#8ad2ff!important;outline-offset:3px}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(button.danger,.danger-button,.delete-button){background:#492233!important;color:#ffc0ce!important;border-color:#e27c97!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(#loginError,#editError,.error,[role=alert]){color:#ffc1cf}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(nav,.menu-panel,.nav-group,.nav-subgroup,.nav-subgroup summary,.nav-submenu,.account-menu,.app-menu,.sidebar){background:#142b3e!important;color:var(--rw-text)!important;border-color:#6a8ba4!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(nav button.selected,.section-tabs button.selected,.selected-tab,[role=tab][aria-selected=true]){background:#294e69!important;color:#d9f1ff!important;border-color:#8dd2ff!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(th,thead th,th:first-child){background:#223e54!important;color:#e6f2fc!important;border-color:#62829b!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(td,td:first-child){background:var(--rw-panel);border-color:#435f73;color:var(--rw-text)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) tbody tr:nth-child(even)>td{background:#1a3042}
html[data-rw-color-mode=dark] :is(#app,#editor,body) tbody tr:hover>td{background:#244154}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .day-button:not([style*="background"]){background:#263e50;color:#dfedf7}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.day-button.available,.ar-calendar-day.ar-day-available){background:#174231!important;color:#b3f0c9!important;border-color:#69b58c!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.day-button.unavailable,.ar-calendar-day.ar-day-unavailable){background:#4b2333!important;color:#ffc0cc!important;border-color:#e38199!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.day-button.limited,.usage-warning,.usage-reading-old){background:#493619!important;color:#ffdda9!important;border-color:#dca65f!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.closed-day,.is-closed,.ar-calendar-day.ar-day-closed,.operating-day.closed,.day-closed .day-button,.schedule-closed .day-button){background:#4b3418!important;color:#ffdda4!important;border-color:#e6af54!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-closed-badge,.closed-badge,.closed-tag){background:#765019!important;color:#ffedc7!important;border-color:#e4b158!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-calendar-day,.calendar-day){background:#294257;color:var(--rw-text);border-color:#557389}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-calendar-day.ar-day-outside,.ar-calendar-day:disabled,.calendar-day.outside){background:#213647!important;color:#94acbf!important;border-color:#344d61!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .ar-calendar-day[aria-selected=true]{outline:3px solid #8ad2ff!important;outline-offset:1px}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-day-changed,.ar-changed){border-color:#cfaaff!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.riding-rider,.riding-report-rider,.slide-item,.slide-question,.slide-check-item,.test-riding-card,.slide-card){background:color-mix(in srgb,var(--slide-color,#348ac6) 20%,#142635)!important;border-color:color-mix(in srgb,var(--slide-color,#348ac6) 65%,#b8d6e9)!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.test-riding-card.is-in-progress,.slide-card.is-draft,.riding-draft-notice,.staff-peer-drafts){background:#4a341d!important;border-color:#e9af57!important;color:#ffe0aa!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.riding-rider-signature.is-signed){background:#153b2b!important;border-color:#72d19c!important;color:#abf4c8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.riding-rider-signature:not(.is-signed)){background:#482332!important;border-color:#ed90a5!important;color:#ffd1dc!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-signature,.riding-rider-signature>svg,.riding-visible-signature>svg,.riding-signature-preview,.water-signed-image,.signature-preview,.signature-box svg,canvas[data-rider-signature]){background:#fff!important;color:#19374e!important;border-color:#91a6b5}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.slide-answer-ok,.status-completed,.completed-badge,.riding-signed-label){background:#174332!important;color:#b6f0cd!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.slide-answer-issue,.slide-question.has-issue,.water-alert-card,.urgent-alert,.alert-urgent,.alert-error,.alert-danger){background:#462331!important;color:#ffc4d2!important;border-color:#e8839e!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.alert-urgent h3,.water-alert-card h3){color:#ffc4d2!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.badge,.tag):not([style*="background"]){background:#28465d;color:#deedfa;border-color:#6888a0}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-status-approved,.ar-status-imported,.tag.active,.badge.success){background:#1b4b35!important;color:#b1f1ca!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-status-pending,.badge.warning){background:#59421e!important;color:#ffe0a8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-status-denied,.ar-status-declined,.tag.inactive){background:#54283b!important;color:#ffc1d4!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.rw-date-picker,.date-picker,.rw-calendar-popover){background:#172d3f!important;color:#e9f3fa!important;border-color:#7c9db5!important;box-shadow:0 14px 45px #0009}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.rw-date-picker button,.date-picker button){color:#e9f3fa;border-color:#65849b}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.rw-date-picker button[aria-selected=true],.date-picker button[aria-selected=true]){background:var(--rw-primary,#075aa3)!important;color:var(--rw-ink,#fff)!important;border-color:#a5dcff!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.usage-meter,.progress-track){background:#3a5265!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.usage-help,.usage-help-label){color:#dbeeff}
html[data-rw-color-mode=dark] :is(#app,#editor,body) #staffErrorToast{background:#56283b!important;color:#ffd5df!important;border-color:#ee90ab!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-login-entry,#arPublicEntry){background:#184874!important;color:#f2f8ff!important;border-color:#8ad2ff!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .palette-choice{background:#213b50;color:#e9f4ff;border-color:#6b879d}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .palette-choice.chosen{border-color:#9dd7ff}
html[data-rw-color-mode=dark] :is(#app,#editor,body) dialog::backdrop{background:#000a}
@media(max-width:650px){.color-mode-control{align-items:stretch;flex-direction:column;gap:12px}.color-mode-control button{min-height:46px}}
@media print{html[data-rw-color-mode=dark] :is(body,main,#app,#view,.card,.table-wrap,td,th,dialog){background:#fff!important;color:#102c40!important;border-color:#7890a2!important}html[data-rw-color-mode=dark] :is(h1,h2,h3,h4,.muted,small){color:#193c58!important}}

html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-body-editor,.ar-day-inspector,.ar-identity,.ar-form-identity,.ar-settings-department,.ar-period-settings,.ar-operating-notes,.ar-tip,.ar-review-more,.ar-form-note,.ar-summary,.ar-two-columns,.ar-review-loading,.ar-empty,.ar-page-heading,.water-signed-image+.water-signoff-meta){background:#243b4f!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .ar-calendar-day:has(.ar-reading-available):not(.ar-day-closed):not(.ar-calendar-outside){background:#174231!important;color:#b3f0c9!important;border-color:#69b58c!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .ar-calendar-outside{background:#172b3c!important;color:#94adbf!important;border-color:#3b5367!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.riding-signature-status,.riding-signed-status){color:#ffc0d0}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .is-signed>.riding-signature-status{color:#aff3c6}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(header .brand strong,header .brand span,#saveStatus){color:var(--rw-ink,#ffffff)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(strong,b){color:inherit}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.navigation-category-toggle,.home-update-item,.stat,.home-stat,.metric){color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.home-stat strong,.stat strong,.home-update-item strong,.navigation-panel strong){color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(#accountMenu summary,.skip-content){background:#223d53!important;color:#e9f4ff!important;border-color:#86a6bd!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .expired-cert>span:not(.muted){color:#ffb8c9!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-login-alert,.water-warning,.checklist-alert-warning){background:#482432!important;color:#ffd0db!important;border-color:#ed88a3!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-login-alert,.water-warning,.checklist-alert-warning)>strong{color:#ffd0db!important}

/* Same geometry in both modes. These radius tokens also apply to newly added controls. */
:root{--rw-control-radius:12px;--rw-section-radius:14px}
:is(button,input:not([type=checkbox]):not([type=radio]),select,textarea,.day-button,.ar-calendar-day,.rw-date-day){border-radius:var(--rw-control-radius)}
:is(.card,dialog,.table-wrap,.ar-day-inspector,.ar-body-editor,.riding-rider,.riding-report-rider){border-radius:var(--rw-section-radius)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(td,td:first-child){background:var(--rw-panel)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) tbody tr:nth-child(even)>td{background:color-mix(in srgb,var(--rw-primary,#075aa3) 12%,#213647)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) tbody tr:hover>td{background:color-mix(in srgb,var(--rw-primary,#075aa3) 22%,#253b4d)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(strong,b){color:inherit!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.employee-department,.schedule-limits-button,.navigation-heading strong){color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(summary,.directory-stat,.employee-stat,.employee-summary-card){background:color-mix(in srgb,var(--rw-primary,#075aa3) 12%,#243b4f)!important;color:var(--rw-text)!important;border-color:#6989a1!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .paycor-export{background:var(--yellow,#f8ce45)!important;color:#172f40!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .training-button{background:color-mix(in srgb,var(--cert-color,var(--rw-primary,#075aa3)) 18%,#1b3041)!important;color:var(--rw-text)!important;border-color:color-mix(in srgb,var(--cert-color,#5598c1) 60%,#a7c8df)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .training-button.expired{background:color-mix(in srgb,var(--cert-color,#c53670) 24%,#352333)!important;color:#ffd1df!important;border-color:#d96c9c!important}
/* Notices are sections too: rounded in light and dark, with identical geometry. */
:is(.water-login-alert,.water-warning,.checklist-alert-warning,.notice,.note,.hint,.ar-tip,.ar-settings-help,.ar-date-note,.ar-success,.ar-error,.ar-inline-error,.checklist-focus-controls,.usage-warning){border-radius:var(--rw-section-radius)}
.water-login-alert{padding:16px;border:1.5px solid #d58b9d;border-radius:var(--rw-section-radius);background:#fff2f5}.water-login-alert p:last-child{margin-bottom:0}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.stat,.settings-user-card){background:color-mix(in srgb,var(--user-color,var(--rw-primary,#075aa3)) 14%,#1b3041)!important;color:var(--rw-text)!important;border-color:#65839a!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.navigation-folder-toggle,#aquaticsChecklistToggle,.checklist-focus-controls){background:color-mix(in srgb,var(--rw-primary,#075aa3) 15%,#1d3243)!important;color:var(--rw-text)!important;border-color:#6b8aa2!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.searchable-filter summary span,.log-summary-icon,.usage-help>span){color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.rehire-badge.undecided,.class-progress.unknown){background:#2b4152!important;color:#dcebf5!important;border-color:#7793a8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .user-avatar{background:color-mix(in srgb,var(--user-color,#2b84a1) 72%,#162a3c)!important;color:#fff!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-page,.ar-review,.ar-manager-editor,.ar-period-settings,.ar-period-editor,.ar-reopen,.ar-public-dialog){--ar-ink:var(--rw-text)!important;--ar-border:var(--rw-border)!important;--ar-muted:var(--rw-muted)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-muted,.ar-row-arrow,.ar-request-main){color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .ar-request-tabs button span{background:#29465c!important;color:#e1f0fc!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) button:not(.primary):not(.yellow):not(.day-button):not(.ar-calendar-day):not(.rw-date-day):not(.palette-choice):not(:is(.danger,.danger-button,.delete-button,.water-delete-report,.checklist-log-danger,.request-complete,.request-deny,.training-button,[data-water-ack],[data-water-resolve],[data-slide-ack],[data-slide-resolve],[aria-pressed=true])):not([style*="background"]):not(:disabled):hover{background:color-mix(in srgb,var(--rw-primary,#075aa3) 23%,#233c50)!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(nav button.selected,.section-tabs button.selected,[role=tab][aria-selected=true]){background:color-mix(in srgb,var(--rw-primary,#075aa3) 32%,#233c50)!important;border-color:var(--rw-link,#9ed0fa)!important}
/* Shared rounded menu groups; dark mode changes their surfaces, never their layout. */
#sideNavigation .navigation-category{border-radius:var(--rw-section-radius);overflow:clip}
html[data-rw-color-mode=dark] #app header{background:color-mix(in srgb,var(--rw-primary,#075aa3) 22%,#112333)!important;color:#eff6ff!important}
html[data-rw-color-mode=dark] #app header :is(.brand strong,.brand span,#saveStatus){color:#e6f2fc!important}
html[data-rw-color-mode=dark] #app #homeLogo{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-rw-color-mode=dark] #app #sideNavigation{background:color-mix(in srgb,var(--rw-primary,#075aa3) 8%,#142637)!important;color:var(--rw-text)!important;border-color:#688aa3!important}
html[data-rw-color-mode=dark] #app #sideNavigation :is(.navigation-heading,.navigation-category,.navigation-category-items){background:transparent!important;color:var(--rw-text)!important;border-color:#58758b!important}
html[data-rw-color-mode=dark] #app #sideNavigation .navigation-category-toggle{border-radius:var(--rw-control-radius)!important;background:color-mix(in srgb,var(--rw-primary,#075aa3) 12%,#243d50)!important}
html[data-rw-color-mode=dark] #app #sideNavigation [aria-current=page]{background:color-mix(in srgb,var(--rw-primary,#075aa3) 32%,#294153)!important;color:#f2f7fd!important;border-color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] #app #sideNavigation kbd{background:#314e63!important;color:#edf6ff!important;border-color:#7797ad!important;border-radius:7px}
.usage-help-popover{position:fixed;inset:auto;margin:0;width:310px;max-width:calc(100vw - 16px);padding:13px 15px;border:1.5px solid #6d92ac;border-radius:var(--rw-section-radius);background:#edf5fb;color:#173b54;font:500 13px/1.55 system-ui;box-shadow:0 8px 26px #09243755;z-index:2147483500;pointer-events:none}
html[data-rw-color-mode=dark] .usage-help-popover{background:#233d52!important;color:#edf6fd!important;border-color:#87abc4!important}
html[data-rw-color-mode=dark] :is(input[type=date],input[type=time],input[type=number]){color-scheme:dark}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.summary,.review-filters,.uniform-review-controls,.manual-total,.order-total){background:color-mix(in srgb,var(--rw-primary,#075aa3) 14%,#294257)!important;color:var(--rw-text)!important;border-color:#6d8ba3!important;border-radius:var(--rw-section-radius)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.summary .total,.summary .muted,.summary p,.summary .match-note,.review-filters label){color:var(--rw-text)!important}
html[data-rw-color-mode=dark] #app :is(#navigationToggle,#clearGlobalPeopleSearch){background:#284357!important;color:#e9f5ff!important;border-color:#7d9cb3!important}
html[data-rw-color-mode=dark] #app #urgentAlerts{background:#4b2637!important;color:#ffd1dc!important;border-color:#d67c95!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.returning-staff-summary>span,.returning-staff-explainer,.mini-facts>div,.mini-hero,.mini-rehire){background:color-mix(in srgb,var(--rw-primary,#075aa3) 12%,#253c4f)!important;color:var(--rw-text)!important;border-color:#64839a!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .returning-staff-row{background:color-mix(in srgb,var(--returning-color,#246a98) 12%,#192c3c)!important;color:var(--rw-text)!important;border-color:#63849c!important;border-left-color:var(--returning-color)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .returning-staff-row:nth-child(even){background:color-mix(in srgb,var(--returning-color,#246a98) 18%,#203446)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .returning-record-note>span{background:#2c4559;color:#e3eff9;border-color:#6f8da4}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .returning-record-note .is-yes{background:#1f4934!important;color:#b8efce!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .returning-record-note :is(.is-no,.has-strikes){background:#552b3c!important;color:#ffc6d7!important}
#editTitle:has(.mini-person-number){display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.mini-person-number{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.2px}.mini-age{display:inline-block;font-size:12px;font-weight:600;margin-left:8px;padding:2px 7px;border-radius:8px;background:var(--soft);color:var(--muted)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(#total,.uniform-import,.table-disclosure,.time-card-download){background:color-mix(in srgb,var(--rw-primary,#075aa3) 16%,#294257)!important;color:var(--rw-text)!important;border-color:#7392a8!important;border-radius:var(--rw-section-radius)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(#correctionCount,#matchSaveStatus,.match-note){color:var(--rw-muted)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) #manualStorage{color:#a8ebc2!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(button.yellow,.yellow.button){color:var(--rw-accent-ink,#172f40)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .returning-staff-save.saved{color:#a8ebc2!important}html[data-rw-color-mode=dark] :is(#app,#editor,body) .returning-staff-save.error{color:#ffc6d7!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.schedule-subnav,.uniform-page-tabs,.water-tabs,.slide-tabs){background:color-mix(in srgb,var(--rw-primary,#075aa3) 12%,#294257)!important;color:var(--rw-text)!important;border-color:#68879f!important;border-radius:var(--rw-section-radius)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-alert-item,.slide-alert-row,.checklist-alert,.water-home-alert,.water-alert-item.is-urgent){background:#462735!important;color:#ffd4df!important;border-color:#e5819d!important;border-radius:var(--rw-section-radius)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-alert-item,.slide-alert-row) :is(p,h4,strong,small){color:inherit!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-alert-item,.slide-alert-row)>.toolbar{background:transparent!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-alert-item,.slide-alert-row) button{background:#4b3548!important;color:#ffe5ed!important;border-color:#b77993!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-alert-section .tag,.water-home-alerts .tag,.water-active-alerts .tag){background:#29485f!important;color:#dceefb!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-alert-item,.slide-alert-row) :is([data-water-ack],[data-slide-ack]){background:#1e4935!important;color:#bcf1d3!important;border-color:#6db58f!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-alert-item,.slide-alert-row) :is([data-water-resolve],[data-slide-resolve]){background:#3f315b!important;color:#e7d0ff!important;border-color:#b497d8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-alert-link>span{background:#2b4a60!important;color:#e3f0fc!important;border-color:#7899b1!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.app-select-panel,.filter-dropdown-options,.employee-filter-panel,.compact-filter-panel,.searchable-filter-panel,.riding-picker-results,.riding-picker-filters,.class-picker-selection){background:#1d3447!important;color:var(--rw-text)!important;border-color:#7090a7!important;border-radius:var(--rw-section-radius)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.app-select-panel button.chosen,.app-select-panel button[aria-selected=true],.filter-dropdown-options .is-selected){background:color-mix(in srgb,var(--rw-primary,#075aa3) 28%,#294354)!important;color:#edf5fd!important;border-color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] ::selection{background:color-mix(in srgb,var(--rw-primary,#075aa3) 50%,#34536b);color:#fff}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.checklist-focus-nav,.checklist-focus-heading,.log-detail-count,.log-detail-count>span){color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .entry-author{background:color-mix(in srgb,var(--author-color,var(--rw-primary,#075aa3)) 18%,#243c4f)!important;color:#d3e4f1!important;border-color:#64849b!important}
html[data-rw-color-mode=dark] .uniform-tool-body :is(td,td strong,.item-details strong){color:#e8f1f8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .needs-review{background:#4b2938!important;color:#ffcfdd!important;border-color:#d986a1!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.purchase-item,.purchase-item strong){color:#e8f1f8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .item-details>summary{background:color-mix(in srgb,var(--rw-primary,#075aa3) 12%,#294257)!important;color:#d7e8f5!important;border-color:#58768b!important}
html[data-rw-color-mode=dark] #view .attendance-punch_review td{background:#443a24!important;color:#ffe7b0!important;border-color:#9e8148!important}

/* Uniforms share the same dark surfaces in the native tool and retained standalone view.
   build_uniform_native maps this html selector to the host attribute inside its shadow root. */
html[data-rw-color-mode=dark]{--uniform-line:#58778e;--uniform-soft:#294257}
html[data-rw-color-mode=dark] :is(body,.uniform-tool-body){--uniform-line:#58778e;--uniform-soft:#294257}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.archive-bar,.signed-in-bar,.manual-editor,.manual-line,.variant-selectors,.variant-price-card,.manual-catalog-browser,.directory-settings,.backup-tools,.staff-add,.price-setting-row,.account-actions>button,.item-details[open],#manualSaved details){background:#233a4d!important;color:var(--rw-text)!important;border-color:#597a92!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.archive-bar,.manual-catalog-browser){background:color-mix(in srgb,var(--rw-primary,#075aa3) 10%,#21384b)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .manual-catalog-browser .catalog-item{background:linear-gradient(135deg,color-mix(in srgb,var(--rw-primary,#075aa3) 14%,#2c455a),#233a4d 75%)!important;color:#e8f1f8!important;border-color:#62829a!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .manual-catalog-browser .catalog-item:hover{background:linear-gradient(135deg,color-mix(in srgb,var(--rw-primary,#075aa3) 18%,#263e52),#233c50 80%)!important;border-color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.catalog-category-name,.catalog-product-options,.employee-selection,.manual-line-total,.saved-meta,.item-options,.item-price,.report-save-message,.staff-message,.search-count){color:#b9cedd!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.catalog-product-name,.catalog-product-price,.catalog-add){color:#e8f1f8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.catalog-product-price,.catalog-add){color:var(--rw-link,#b9def7)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.catalog-category[aria-pressed=true],.workspace-tabs button[aria-pressed=true]){background:var(--rw-primary,#075aa3)!important;color:var(--rw-ink,#fff)!important;border-color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.workspace-tabs,.manual-confirm,.manual-total,.manual-fields){color:var(--rw-text)!important;border-color:#58778e!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(#manualMessage:not(:empty),#notice:not(:empty),#exportStatus:not(:empty)){background:#45371f!important;color:#ffe2a8!important;border:1px solid #a8874d}
/* A dark diagonal sheen keeps the catalog's glare without a white paint layer. */
html[data-rw-color-mode=dark] #app .uniform-catalog-card{background:linear-gradient(135deg,color-mix(in srgb,var(--rw-primary,#075aa3) 18%,#223c50),#243c50 44%,#182d40 85%)!important;color:#e8f1f8!important;border-color:#62839b!important;border-top-color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] #app .uniform-catalog-card :is(h3,h4,.uniform-catalog-card-heading>strong){color:#edf6fd!important}
html[data-rw-color-mode=dark] #app .uniform-catalog-card :is(small,.uniform-catalog-variants>div){color:#c7d9e7!important;border-color:#6e8ba1!important}
/* File controls are not text inputs: style both their field and native button explicitly. */
:is(#app,#editor,body) input[type=file]::file-selector-button{border:1px solid var(--line);border-radius:8px;padding:7px 10px;margin-right:10px;font:inherit;cursor:pointer}
html[data-rw-color-mode=dark] :is(#app,#editor,body) input[type=file]{background:#142b3c!important;color:#e8f1f8!important;border-color:#6b879c!important;color-scheme:dark}
html[data-rw-color-mode=dark] :is(#app,#editor,body) input[type=file]::file-selector-button{background:#2e4b62!important;color:#f0f7fd!important;border-color:#7899b1!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) input[type=file]:hover::file-selector-button{background:#3b5b73!important}
/* Secondary surfaces used by scheduling, training, imports, and permissions. */
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.schedule-controls,.schedule-profile-toolbar,.filter-bar,.filter-dropdown-body,.filter-result,.searchable-filter,.empty-filter-message,.availability-defaults-editor .defaults-overview,.availability-defaults-editor .availability-weekday,.availability-defaults-editor .group-assignments,.availability-defaults-editor .weekday-availability-panel,.availability-defaults-editor .filter-options label,.class-staff-picker>div,.class-staff-section,.class-setup-sessions,.class-setup-notes,.class-renewal-times,.class-pass-issue,.class-pass-review,.permission-popup,.permission-section,.permission-details[open],.staff-notification-settings>.check,.request-notification,.notification-mute.is-muted,.group-import-preview>div,.mini-active-classes,.rw-filter-overlay .cert-filter,.rw-filter-overlay .cert-rule-options,.water-history-filters,.usage-stats>div){background:#233a4d!important;color:var(--rw-text)!important;border-color:#597a92!important}
html[data-rw-color-mode=dark] #editor.permissions-editor #editBody .permission-section{background:#233a4d!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.availability-defaults-editor .filter-options label:has(input:checked),.class-checks .class-quick-toggle.done,.class-close-heading button,.request-status,.class-person-status.active){background:#194632!important;color:#c2f1d4!important;border-color:#70b897!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.class-progress.low,.class-payment.unpaid,.class-result.fail,.class-history-result.fail,.request-status.denied,.employee-status-tag.is-inactive){background:#51283a!important;color:#ffcad8!important;border-color:#d9859f!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.class-progress.middle,.class-progress.high,.class-result.no_show,.class-history-result.no_show,.class-close-person [data-class-no-show],.class-setup-editor .class-renewal-times .class-session>strong,.group-import-preview>.group-import-unresolved){background:#49371e!important;color:#ffe1a8!important;border-color:#b18c4e!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.class-session>strong,.class-person-status,.class-progress.unknown,.class-staff-picker>summary,.class-last-heading [data-class-reset],.ar-calendar-weekday){background:#294457!important;color:#d8e9f5!important;border-color:#6e8da3!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.delete-calendar-shift,.class-copy-tools button.danger,.class-setup-editor .icon-delete,.audit-table .audit-trash){background:#51283a!important;color:#ffcad8!important;border-color:#d9859f!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.audit-table .audit-add,.audit-table .audit-copy,.audit-table .audit-paste){background:#25475d!important;color:#dcedfa!important;border-color:#7b9bb2!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-calendar-note-icon,.ar-calendar-day>span.ar-closed-badge,.ar-inspector-closed,.operating-calendar-note,.day-header-status){background:#58431f!important;color:#ffe4ac!important;border-color:#c3994f!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .ar-calendar-day.ar-day-adjacent{background-image:none!important}
html[data-rw-color-mode=dark] #sideNavigation .navigation-subfolder{background:color-mix(in srgb,var(--rw-primary,#075aa3) 10%,#21384b)!important;color:#e8f1f8!important;border-color:#52728a!important}
html[data-rw-color-mode=dark] #sideNavigation .navigation-subfolder>button{background:transparent!important;color:#e8f1f8!important;border:0!important;box-shadow:none!important}
html[data-rw-color-mode=dark] #sideNavigation .navigation-subfolder>button:hover{background:#29465b!important}
/* Existing closed-day markers and calendar shells use their dark status colors. */
html[data-rw-color-mode=dark] #app :is(.closed-schedule-day,.closed-calendar-day,.cal-cell:has(.closed-schedule-day),.cal-cell:has(.closed-calendar-day),.month>div:has(.closed-calendar-day),.closed-schedule-day.has-shift .availability-caption){background:#49341d!important;color:#ffdda4!important;border-color:#b98c48!important}
html[data-rw-color-mode=dark] #app :is(.closed-schedule-day:not(.has-shift) .day-button,.closed-calendar-day .day-button.is-closed,.calendar-month-grid .closed-calendar-day:not(.has-shift)>.day-button){background:#49341d!important;color:#ffdda4!important;border-color:#b98c48!important}
html[data-rw-color-mode=dark] #app .calendar-month-grid>div>.day-shell{background:#233a4d!important;border-color:#58778e!important}
html[data-rw-color-mode=dark] #app .calendar-month-grid .day-shell:not(.has-shift):not(.closed-calendar-day)>.day-button:is(.available,.limited){background:#194632!important;color:#c2f1d4!important;border-color:#70b897!important}
html[data-rw-color-mode=dark] #app .calendar-month-grid .day-shell:not(.has-shift):not(.closed-calendar-day)>.day-button.unavailable{background:#51283a!important;color:#ffcad8!important;border-color:#d9859f!important}
html[data-rw-color-mode=dark] #app .calendar-month-grid>div>.calendar-outside-day:not(.has-shift),html[data-rw-color-mode=dark] #app .calendar-month-grid .calendar-outside-day:not(.has-shift):not(.closed-calendar-day)>.day-button{background:#1a2d3b!important;color:#a6bfd0!important}
/* Legacy schedule builder and attendance workspace use div panels as well as sections. */
html[data-rw-color-mode=dark] :is(#app,#editor,body) label{color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.inputs label>span,.inputs label>small,.step-heading p,.check-label small,.mapping-editor label){color:var(--rw-muted)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.panel,.legend,.settings-drawer,.drawer-content,.shift-editor,.quick-time,.shift-section,.closing-overrides,.shift-row,.specific-times,.day-close,.closing-rule,.attendance-page,.attendance-aliases,.smart-matches,.smart-matches li,.attendance-group,.attendance-section-tools,.attendance-schedule-save,.attendance-summary>div){background:#233a4d!important;color:var(--rw-text)!important;border-color:#597a92!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.step-heading>span,.paired-shift,.attendance-phone-toggle,.punch-early,.checks li.info){background:#4b3b20!important;color:#ffe6ae!important;border-color:#ae8a4b!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.q-shift,.checks li.success){background:#194632!important;color:#c2f1d4!important;border-color:#70b897!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.punch-late,.checks li.error){background:#51283a!important;color:#ffcad8!important;border-color:#d9859f!important}
html[data-rw-color-mode=dark] #attendance-workspace :is(.attendance-schedule-save,.time-card-download,.smart-matches,.attendance-aliases,.attendance-section-tools,.attendance-summary>div){background:#294257!important;color:var(--rw-text)!important;border-color:#62829a!important}
html[data-rw-color-mode=dark] #attendance-workspace .attendance-group>summary{background:#28485e!important;color:#e5f2fc!important;border-color:#7396ad!important}
html[data-rw-color-mode=dark] #attendance-workspace :is(.attendance-group.role-lead>summary,.attendance-group.role-lead-lifeguard>summary,.attendance-manager-group>summary,.attendance-phone-toggle){background:#4b3b20!important;color:#ffe6ae!important;border-color:#ae8a4b!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(#build,#compare-attendance){background:var(--rw-accent,#f8ce45)!important;color:var(--rw-accent-ink,#172f40)!important;border-color:var(--rw-accent,#f8ce45)!important}
/* Account popovers use the same dark surfaces as the rest of the shell. */
html[data-rw-color-mode=dark] #app .account-menu-panel{background:color-mix(in srgb,var(--rw-primary,#075aa3) 10%,#172e40)!important;color:#e6eff7!important;border-color:#68879f!important;border-radius:var(--rw-section-radius)}
html[data-rw-color-mode=dark] #app .account-menu-panel button{color:#e6eff7!important;background:#233e52!important;border-color:#6688a2!important}

/* Mini profiles, certificate popups, and the availability command bar use these same paints. */
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.availability-command-bar,.availability-legend,.availability-mode,.availability-selection,.profile-edit-actions,.candidate-summary,.mini-actions){background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .availability-command-bar>.toolbar{background:transparent!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .availability-command-bar .date-range-button{color:var(--rw-text)!important;background:var(--rw-raised)!important;border-color:#7897ad!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .availability-command-bar .availability-clear{background:#503043!important;color:#ffd4e1!important;border-color:#cf8ca4!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.profile-cert-card,.certification-chips [data-cert]){background:color-mix(in srgb,var(--cert-color,var(--rw-primary,#075aa3)) 12%,#23384a)!important;color:#e9f2f9!important;border-color:color-mix(in srgb,var(--cert-color,#819cb3) 50%,#8fa6b8)!important;border-left-color:var(--cert-color,#819cb3)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.profile-cert-card,.certification-chips [data-cert]) :is(strong,span,small,.cert-name,.cert-completion-dates){color:#e0edf6!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.profile-cert-card.expired-cert,.certification-chips .expired-cert){background:color-mix(in srgb,var(--cert-color,#db4387) 14%,#352a3c)!important;color:#f5e9f0!important;border-color:#c28ca6!important;border-left-color:var(--cert-color,#db4387)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.profile-cert-card.expired-cert>strong,.certification-chips .expired-cert>.cert-name,.cert-expired-date){color:#ffc2d2!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.profile-cert-card.expired-cert small,.certification-chips .expired-cert small){color:#ead1df!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.cert-reminder-muted.expired-cert,.cert-reminder-muted.expired){background:#2b4052!important;color:#d8e5ee!important;border-color:#8098aa!important;border-left-color:#8098aa!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .cert-reminder-muted :is(strong,small,.cert-name,.cert-expired-date){color:#d8e5ee!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .cert-reminder-bell{background:#2d495e!important;color:#e5f2fb!important;border-color:#89a5b8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .cert-reminder-bell[aria-pressed=true]{background:#344b5c!important;color:#d3e0e9!important;border-color:#93a9b9!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .mini-hero .mini-strike-count{background:#29485d!important;color:#e5f2fb!important;box-shadow:inset 0 0 0 1px #7f9fb4}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .mini-hero .mini-strike-count.strike-caution{background:#51401f!important;color:#ffe3a6!important;box-shadow:inset 0 0 0 1px #c7a261!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .mini-hero .mini-strike-count.strike-high{background:#563042!important;color:#ffd2df!important;box-shadow:inset 0 0 0 1px #d58da6!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .employee-status-tag.is-active{background:#224c39!important;color:#c4f3d6!important;border-color:#83b89b!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.mini-facts strong>a,.mini-rehire-details a,.catalog-product-price,.catalog-add){color:#dcefff!important}

/* Child wrappers remain transparent inside the already-painted Uniform review summary. */
html[data-rw-color-mode=dark] :is(#app,#editor,body) .uniform-review>.summary :is(.uniform-export-actions,.summary-info,.total),html[data-rw-color-mode=dark] :is(#app,#editor,body) .uniform-review>.summary>div{background:transparent!important;box-shadow:none!important;border-color:transparent!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#schedule-workspace,#attendance-workspace) .summary>div{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
/* Plain employee name links sit directly on the alternating table row. */
html[data-rw-color-mode=dark] #app #view :is(button.person,.checklist-person.chosen .person){background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--rw-link,#c3e4fa)!important}
html[data-rw-color-mode=dark] #app #view .person.strike-high{color:#ffbfce!important}
html[data-rw-color-mode=dark] #app #view .person.strike-caution{color:#ffe3a6!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .app-select-panel{--app-select-ring:var(--rw-link,#b9dff7)}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .app-select-panel button[aria-pressed=true]{background:color-mix(in srgb,var(--rw-primary,#075aa3) 20%,#2a4357)!important;color:#edf5fc!important;box-shadow:inset 0 0 0 1px var(--app-select-ring)!important}

/* Shared option gutters and inset rings also ship inside the native Uniform shadow root. */
.app-select-panel{--app-select-ring:var(--blue,#075aa3)}
.app-select-panel>div{padding:4px;box-sizing:border-box;min-width:0;scroll-padding:4px;overflow-x:hidden}
.app-select-panel button{box-sizing:border-box;max-width:100%;min-width:0;margin:0!important;scroll-margin-block:4px}
:is(#app,#editor,body) .app-select-panel button[type=button]:focus-visible{outline:2px solid var(--app-select-ring)!important;outline-offset:-2px!important}
.app-select-panel button[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--app-select-ring)}
.personal-account-card .personal-pay-display{margin-top:12px!important;align-items:flex-start;flex-direction:column;gap:8px}
.personal-account-card .personal-pay-display label{display:flex;align-items:center;gap:10px;min-width:0}
.personal-account-card .personal-pay-display p{margin:0}
.home-activity-group{width:100%;text-align:left;box-sizing:border-box}
.global-people-search #globalPeopleSearch{display:block}
.global-people-search :is(#clearGlobalPeopleSearch,#globalPeopleClear,.global-search-clear){display:inline-grid;place-items:center;margin:0;line-height:1}
.global-people-search #clearGlobalPeopleSearch:active{transform:translateY(-50%) scale(.94)}
html[data-rw-color-mode=dark] #app #globalPeopleResults{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #app :is(#clearGlobalPeopleSearch,#globalPeopleClear,.global-search-clear){background:var(--rw-raised)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #app :is(#clearGlobalPeopleSearch,#globalPeopleClear,.global-search-clear):hover{background:#35566d!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .cert-date-control{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .cert-date-control>legend{color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .request-meta time{color:var(--rw-muted)!important}

/* Certificate actions keep the same outer size in either mode. A padded 32px
   button otherwise leaves less room than its 20px SVG and shifts the bell. */
:is(#app,#editor) .cert-reminder-bell{box-sizing:border-box;display:inline-grid;place-items:center;padding:0!important;margin:0;line-height:1;overflow:visible}
:is(#app,#editor) .cert-reminder-bell>svg{display:block;width:20px;height:20px;margin:0;flex:none;pointer-events:none}
:is(#app,#editor) .cert-reminder-bell:focus-visible{outline-offset:-3px!important}
:is(#app,#editor) .certification-chips [data-cert]{box-sizing:border-box;max-width:100%;border-style:solid;border-width:2px!important}
:is(#app,#editor) .certification-chips [data-cert]:focus-visible{outline-offset:-3px!important}

@media screen{
/* Attendance has higher-specificity important light paints in the imported
   base stylesheet. Match its real wrappers and status rows, not every table. */
html[data-rw-color-mode=dark] #app #view #attendance-workspace .attendance-sticky-controls{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace :is(.attendance-help,.attendance-heading p,.attendance-group summary small){color:var(--rw-muted)!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace .critical-key{color:#ffc5d3!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace thead :is(th,th:first-child){background:color-mix(in srgb,var(--attendance-job-color,var(--rw-primary,#075aa3)) 16%,#294357)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important;border-bottom-color:var(--attendance-job-color,var(--rw-border))!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace .attendance-group>summary{background:color-mix(in srgb,var(--attendance-job-color,var(--rw-primary,#075aa3)) 16%,#294357)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important;border-left-color:var(--attendance-job-color,var(--rw-border))!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace :is(thead .attendance-sort-toggle,.attendance-group summary)::after{color:var(--rw-muted)!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace thead .attendance-sort-toggle{background:transparent!important;color:inherit!important;box-shadow:none!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace tbody tr>td{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:#58758a!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace tbody tr:nth-child(even)>td{background:#24394b!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace tbody tr:is(.attendance-no_punch,.attendance-late,.critical)>td{background:#4d2b3a!important;color:#ffd0dd!important;border-color:#ad6d85!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace tbody tr:is(.early-arrival,.attendance-punch_review):not(.attendance-no_punch):not(.attendance-late):not(.critical)>td{background:#493c24!important;color:#ffe4b0!important;border-color:#a5884f!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace .attendance-check{color:#bdebd2!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace .attendance-unknown{color:#ffe4b0!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace :is(.attendance-x,.punch-late),html[data-rw-color-mode=dark] #app #view #attendance-workspace tr:is(.attendance-no_punch,.attendance-late,.critical) :is(.person,.attendance-check,.attendance-x){color:#ffc1d2!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace tr:is(.early-arrival,.attendance-punch_review):not(.attendance-no_punch):not(.attendance-late):not(.critical) :is(.person,.attendance-unknown,.punch-early){color:#ffe4b0!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace .punch-late{background:#4d2b3a!important;color:#ffc1d2!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace .punch-early{background:#493c24!important;color:#ffe4b0!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace :is(.attendance-department-tabs,.attendance-source-tabs) button{background:color-mix(in srgb,var(--department-color,var(--rw-primary,#075aa3)) 12%,#233a4d)!important;color:var(--rw-text)!important;border-color:var(--department-color,var(--rw-border))!important}
html[data-rw-color-mode=dark] #app #view #attendance-workspace :is(.attendance-department-tabs,.attendance-source-tabs) button.active{background:color-mix(in srgb,var(--department-color,var(--rw-primary,#075aa3)) 25%,#233a4d)!important;color:#f0f6fb!important;border-color:var(--rw-link,#b9dff7)!important}

/* Selected audit/class rows and released-shift notices have their own important
   pale paints as well; retain those states using the current appearance tint. */
html[data-rw-color-mode=dark] #app #view :is(.audit-table tr.audit-selected>td,.class-roster .class-selected td,.checklist-person.chosen){background:color-mix(in srgb,var(--rw-primary,#075aa3) 20%,#294357)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #app #view .schedule-grid tbody tr.schedule-row-warning>td{background:#4d2b3a!important;color:#ffd0dd!important;border-color:#ad6d85!important}
html[data-rw-color-mode=dark] #app .released-shift>.day-button{background:#493c24!important;color:#ffe4b0!important;border-color:#a5884f!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .strike-caution{background:#493c24!important;color:#ffe4b0!important;border-color:#a5884f!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .strike-high{background:#4d2b3a!important;color:#ffd0dd!important;border-color:#ad6d85!important}

/* Native Uniforms inherit this exact rule through build_uniform_native's host
   mapping. Its employee results otherwise keep an important light soft token. */
html[data-rw-color-mode=dark] :is(#app,#editor,body) .employee-option{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .employee-option:nth-child(even){background:var(--rw-raised)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .employee-option:is(:hover,:focus-visible){background:color-mix(in srgb,var(--rw-primary,#075aa3) 20%,#294357)!important;color:var(--rw-text)!important;border-color:var(--rw-link,#b9dff7)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .employee-option :is(span,strong){color:inherit!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .employee-option small{color:var(--rw-muted)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.date-range,.catalog-item){background:var(--rw-raised)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .catalog-item strong{color:var(--rw-link,#b9dff7)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) #reportPanel tr.name-missing>td{background:#4d2b3a!important;color:#ffd0dd!important;border-color:#ad6d85!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) #reportPanel tr.needs-review>td{background:#493c24!important;color:#ffe4b0!important;border-color:#a5884f!important}
}


/* Popup-only sections also need explicit paints: they are not all section/card elements. */
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.dialog-actions,.assignment-panel,.cert-auto-options,.checklist-departments,.checklist-advanced,.group-jobs-editor,.group-member,.access-extra,.owner-page-lock-row,.department-tile,.test-account-option,.auth-return-notice,.ar-note,.ar-exception-row,.ar-week-popup,.ar-settings-range,.ar-department-switch,.ar-mode-choice,.ar-all-start,.ar-employee-review,.water-edit-log>article,.water-version-log>details,.water-original-readings,.water-activity-entry,.water-test-meta,.riding-employee-selected,.slide-photo-preview){background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-week-summary>div,.ar-employee-review .ar-summary>span,.water-section-title,.water-report-count,.water-status-badge,.water-version-badge,.slide-state-badge,.slide-answer-badge,.slide-question-number,.qol-today-label){background:var(--rw-raised)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.owner-page-lock-row:has(input:checked),.department-tile:has(input:checked),.group-member:has(input:checked),.assignment-panel label.is-selected,.ar-mode-choice:has(input:checked)){background:color-mix(in srgb,var(--rw-primary,#075aa3) 20%,#294357)!important;color:var(--rw-text)!important;border-color:var(--rw-link,#9ed0fa)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .permission-arrow:disabled{background:#304452!important;color:#aebfcb!important;border-color:#647e90!important}

/* Signed-report badges use their own classes, distinct from generic .badge/.tag. */
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.slide-answer-badge.is-clear,.slide-card.is-complete .slide-state-badge,.request-complete){background:#214b38!important;color:#c3f3d5!important;border-color:#80b99a!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .slide-completed-check{color:#b8f0cb!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.slide-answer-badge.is-issue,.slide-hazard-badge,.request-deny){background:#572e3e!important;color:#ffd0dd!important;border-color:#d98da5!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .slide-answer-badge.is-na{background:#304452!important;color:#d6e4ed!important;border-color:#7b96a8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.slide-card.is-draft .slide-state-badge,.shift-closed-badge,.shift-pickup-badge,.water-adjusted-badge){background:#58431f!important;color:#ffe4ac!important;border-color:#c3994f!important}
html[data-rw-color-mode=dark] #editor.slide-inspection-dialog .slide-question details{background:#233a4d!important;border-color:#6a879d!important}
html[data-rw-color-mode=dark] #editor.slide-inspection-dialog .slide-question:is(.has-issue,.slide-missing){background:#462735!important;border-color:#df8ba3!important}
html[data-rw-color-mode=dark] #editor.slide-inspection-dialog .slide-question.has-issue :is(h3,.slide-question-issue){color:#ffd0dd!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.slide-report-answers>section.has-issue,.water-report-readings>section.water-report-issue,.water-report-tanks>p.water-report-issue){background:#462735!important;color:#ffd0dd!important;border-color:#df8ba3!important}
html[data-rw-color-mode=dark] #editor #waterForm :is(input.water-field-invalid,.water-site:has(.water-field-invalid)){background:#462735!important;color:#ffd0dd!important;border-color:#df8ba3!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-adjustment-note,.water-edit-banner,.water-system-entry,.water-edit-log>.water-system-change,.ar-conflict-box,.ar-timeoff-request,.ar-mode-additional){background:#493a23!important;color:#ffe1a8!important;border-color:#b18c4e!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-notification-entry,.ar-mode-initial){background:#25465b!important;color:#d4eafa!important;border-color:#7c9db4!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-report-tanks>p{background:#2b3b46!important;color:#dce8f1!important;border-color:#6d879b!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-report-tanks>p:nth-child(2):not(.water-report-issue){background:#1e4148!important;color:#c6f0f3!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-report-tanks>p:nth-child(3):not(.water-report-issue){background:#493a23!important;color:#ffe1a8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-report-tanks>p:nth-child(4):not(.water-report-issue){background:#25405b!important;color:#d4eafa!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .riding-day-report>button:first-child{background:color-mix(in srgb,var(--slide-color,var(--rw-primary,#075aa3)) 12%,#233a4d)!important;color:var(--rw-text)!important;border-color:#6b8ba2!important}

/* This older important white rule has more classes than the generic button theme. */
html[data-rw-color-mode=dark] #app .training-button.ellis-cert:not(.done):not(.expired){background:color-mix(in srgb,var(--cert-color,var(--rw-primary,#075aa3)) 14%,#233a4d)!important;color:var(--rw-text)!important;border-color:#7999af!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .cert-chip-with-reminder>[data-cert]:not(.expired):not(.expired-cert){background:color-mix(in srgb,var(--cert-color,var(--rw-primary,#075aa3)) 12%,#23384a)!important;color:#e9f2f9!important;border-color:#819db1!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-resolution-confirm,.slide-resolution-check){background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-feed-item{background:color-mix(in srgb,var(--rw-primary,#075aa3) 10%,#233a4d)!important;color:var(--rw-text)!important;border-color:#6d8ca1!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-feed-item:nth-child(even){background:color-mix(in srgb,var(--rw-primary,#075aa3) 16%,#294357)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-feed-item>button:first-child{background:transparent!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .daily-job-group>summary{background:color-mix(in srgb,var(--job-color,var(--rw-primary,#075aa3)) 14%,#233a4d)!important;color:var(--rw-text)!important;border-color:#6d8ca1!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.water-delete-report,.water-delete-confirm,.checklist-log-danger,.checklist-delete-confirm,.small-confirm-heading>span){background:#572e3e!important;color:#ffd0dd!important;border-color:#d98da5!important}
html[data-rw-color-mode=dark] #editor:has(.ar-review) #submitEdit{background:var(--rw-raised)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.ar-status-superseded,.ar-day-skip){background:#304452!important;color:#d6e4ed!important;border-color:#7b96a8!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.operating-page-actions,.schedule-daily-totals){background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .job-open-card{background:linear-gradient(120deg,color-mix(in srgb,var(--job-color,var(--rw-primary,#075aa3)) 14%,#294357),#233a4d)!important;color:var(--rw-text)!important;border-color:#7593a9!important}

/* Browser-verified shells: these use actual page classes and an unclassed public header. */
html[data-rw-color-mode=dark] #app #view .water-form-actions{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #app #view :is(.ar-request-tabs,.ar-filters){background:var(--rw-raised)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #app #view .ar-request-tabs button{background:transparent!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] #app #view .ar-request-tabs button[aria-selected=true]{background:var(--rw-primary,#075aa3)!important;color:var(--rw-ink,#fff)!important}
html[data-rw-color-mode=dark] #app #view .ar-filters #arClearFilters{background:var(--rw-panel)!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] #availabilityPublicDialog>header{background:var(--rw-raised)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #availabilityPublicDialog>header :is(h2,.eyebrow){color:var(--rw-text)!important}
html[data-rw-color-mode=dark] #availabilityPublicDialog>header>button{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #availabilityPublicDialog .ar-public-content form>footer{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.inservice-total.complete,.vat-pass){background:#214b38!important;color:#c3f3d5!important;border-color:#80b99a!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) :is(.inservice-total.missing,.inservice-total.missing-red,.vat-fail){background:#572e3e!important;color:#ffd0dd!important;border-color:#d98da5!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .inservice-total.missing-yellow{background:#58431f!important;color:#ffe4ac!important;border-color:#c3994f!important}

/* The sign-in gate always uses the public light/default palette. */
#gate{color-scheme:light;--blue:#075aa3;--navy:#075aa3;--yellow:#f8ce45;--ink:#173b54;--muted:#526d7d;--line:#bad3e1;--soft:#edf5fb}
#gate .login{box-sizing:border-box;color:#173b54;background:#fffffff2}
#gate .login input{box-sizing:border-box;min-width:0;max-width:100%;min-height:52px;font:inherit;font-size:16px;letter-spacing:0;text-align:left;color:#173b54;background:#f5faff}
#gate .login .password-field{position:relative;display:block;width:100%;min-width:0;overflow:visible}
#gate .login .password-field input,#gate .login #pin{display:block;width:100%;padding:12px 54px 12px 14px!important;text-align:left;font-family:inherit;letter-spacing:0}
#gate .login .password-toggle{box-sizing:border-box;position:absolute;right:5px;top:50%;transform:translateY(-50%);width:40px;height:40px;min-width:40px;min-height:40px;max-height:40px;margin:0;padding:9px!important;border:0;border-radius:8px;background:transparent;color:#075aa3;display:grid;place-items:center;line-height:1}
#gate .login .password-toggle:hover{background:#e3eff8}
#gate .login .password-toggle svg{display:block;width:20px;height:20px;max-width:none}
#gate :is(#setupMode,#forgotPassword){position:static;display:block;box-sizing:border-box;clear:both;width:100%;min-height:40px;margin:8px 0 0;padding:8px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#075aa3;white-space:normal;overflow-wrap:anywhere;line-height:1.45;text-align:center}
#gate :is(#setupMode,#forgotPassword):hover{background:#e6f1f9;border-color:#bad3e1}
#gate .ar-login-entry{box-sizing:border-box;background:#edf5fb;border:1px solid #bad3e1;border-radius:14px;padding:15px;margin-top:18px;color:#173b54}
#gate .ar-login-entry button{background:#075aa3;color:#fff;border-color:#075aa3;white-space:normal;line-height:1.4}
#gate .ar-login-entry p{margin:10px 0 0;color:#38566d;font-size:13px;line-height:1.5}
/* Decorative accent bars stay subtle at night; alert/status hues remain intact. */
html[data-rw-color-mode=dark] #app>header,html[data-rw-color-mode=dark] #app .dashboard-hero{border-bottom-width:1px!important;border-bottom-color:color-mix(in srgb,var(--rw-primary,#075aa3) 22%,#4a6174)!important}
html[data-rw-color-mode=dark] #app #view :is(.home-requirement-heading,.home-activity-heading,.home-card-heading) h2>button{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--rw-link,#9ed0fa)!important}

/* A clickable title or sort label keeps the surface of its heading. Ordinary
   action buttons and selected tabs retain their distinct control surfaces. */
html[data-rw-color-mode=dark] :is(#app #view,#editor) :is(h1,h2,h3,h4)>button:not(.primary):not(.yellow):not(.danger),html[data-rw-color-mode=dark] :is(#app #view,#editor) thead th>button:not(.primary):not(.yellow):not(.danger){background:transparent!important;color:inherit!important;border-color:transparent!important;box-shadow:none!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor) :is(h1,h2,h3,h4)>button:not(.primary):not(.yellow):not(.danger):hover,html[data-rw-color-mode=dark] :is(#app #view,#editor) thead th>button:not(.primary):not(.yellow):not(.danger):hover{background:transparent!important;box-shadow:none!important}
/* Counts and legend labels sit directly on their calendar surface. */
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) :is(.ar-summary,.ar-summary>span){background:transparent!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) .ar-summary strong{color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) .ar-review-legend{color:var(--rw-muted)!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) .ar-legend-available{color:#99e0b2!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) .ar-legend-unavailable{color:#ffb2c4!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) .ar-closed-legend{color:#ffdc9f!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) .ar-review-change-key{color:#d5b5ff!important;border-bottom-color:#b69bd8!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) :is(.ar-day-reading,.ar-reading-available){color:#99e0b2!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) .ar-reading-unavailable{color:#ffb2c4!important}
html[data-rw-color-mode=dark] :is(#app #view,#editor,#availabilityPublicDialog) .ar-reading-skip{color:var(--rw-muted)!important}

/* Actual open forms/log tools have their own light paints; retain their geometry
   and colored top borders while using the shared dark surfaces. */
@media screen{
html[data-rw-color-mode=dark] #editor.slide-inspection-dialog .slide-inspection-meta{background:color-mix(in srgb,var(--slide-color,var(--rw-primary,#075aa3)) 12%,#1c3041)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #editor .slide-general-notes{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #app #view .water-log-toolbar{background:var(--rw-raised)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #app #view .water-log-toolbar>label{color:var(--rw-text)!important}
html[data-rw-color-mode=dark] #app #view :is(.water-settings-limits,.water-settings-tanks)>fieldset{background:var(--rw-panel)!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] #app #view :is(.water-settings-limits,.water-settings-tanks)>fieldset :is(legend,label){color:var(--rw-text)!important}
html[data-rw-color-mode=dark] :is(#app,#editor,body) .water-activity-entry time{color:var(--rw-muted)!important}
html[data-rw-color-mode=dark] #editor .ar-review-more>div{background:var(--rw-raised)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #editor .ar-review-more :is(button,summary){background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
html[data-rw-color-mode=dark] #editor .ar-review-more button:is(:hover,:focus-visible){background:var(--rw-raised)!important;color:var(--rw-text)!important}
html[data-rw-color-mode=dark] #editor .class-staff-picker{background:var(--rw-panel)!important;color:var(--rw-text)!important;border-color:var(--rw-border)!important}
}
