/* Staff app system-aware light appearance; existing dark CSS remains intact. */
.lo-theme-wrap{position:relative;display:flex;align-items:center;margin-left:auto;margin-right:7px;z-index:25}
.lo-theme-toggle{display:flex;align-items:center;justify-content:center;gap:4px;min-width:67px;min-height:42px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);font:700 11px Inter,system-ui,sans-serif}
.lo-theme-symbol{font-size:18px}
.lo-theme-menu{position:absolute;top:calc(100% + 9px);right:0;z-index:40;min-width:190px;border:1px solid var(--line);border-radius:13px;padding:6px;background:var(--surface-2);box-shadow:0 12px 25px rgba(0,0,0,.25)}
.lo-theme-menu[hidden]{display:none!important}
.lo-theme-option{display:block;width:100%;padding:11px;border:0;border-radius:9px;background:transparent;color:var(--text);text-align:left;font:600 12px Inter,system-ui,sans-serif}
.lo-theme-option:hover,.lo-theme-option.selected{background:var(--surface-3)}
.lo-theme-toggle:focus-visible,.lo-theme-option:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:350px){.lo-theme-wrap{margin-right:4px}.lo-theme-toggle{min-width:46px;padding:8px 5px}.lo-theme-label{display:none}}
html[data-lo-theme="dark"]{color-scheme:dark}
html[data-lo-theme="light"]{color-scheme:light;--bg:#f4f6f5;--surface:#fff;--surface-2:#edf2ef;--surface-3:#e5ece8;--line:#d4dfdc;--text:#18252b;--muted:#536169;--gold:#986813;--green:#147c4a;--amber:#99641b;--red:#a9283c;--blue:#125d98;--shadow:0 16px 34px rgba(21,42,49,.08)}
html[data-lo-theme="light"],html[data-lo-theme="light"] body{background:#f4f6f5!important;color:var(--text)!important}
html[data-lo-theme="light"] .phone-shell{background:linear-gradient(180deg,#f9fbfa,#f1f4f2)!important;box-shadow:var(--shadow);color:var(--text)}
html[data-lo-theme="light"] .topbar{background:linear-gradient(180deg,rgba(249,251,250,.99) 78%,rgba(249,251,250,.76) 94%,rgba(249,251,250,0))!important;color:var(--text)!important}
html[data-lo-theme="light"] :is(.capacity-card,.request-card,.table-card,.request-item,.settings-card,.detail-sheet,.summary-card,.detail-block,.session-order,.payment-summary-grid>div,.bill-summary,.service-routing,.payment-history-mini,.payment-complete,.payment-waiting,.empty,.account-panel,.profile-sheet,.login-form input){background:#fff!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:0 6px 18px rgba(18,37,43,.05)}
html[data-lo-theme="light"] :is(.capacity-card h2,.table-label,.card-head strong,.detail-sheet h2,.detail-block strong,.request-item strong,.info-row strong,.topbar h1,.page-head h2,.section-heading h2){color:#15262d!important}
html[data-lo-theme="light"] :is(.muted,.card-meta,.label,.eyebrow,.info-row>span:first-child,.detail-block-head span,.item-row span,.setting-row span,.payment-summary-grid span,.payment-history-mini span){color:#556970!important}
html[data-lo-theme="light"] :is(.bottom-nav,.sheet-head){background:#f8faf9!important;color:var(--text)!important;border-color:var(--line)!important}
html[data-lo-theme="light"] .bottom-nav{box-shadow:0 -6px 25px rgba(24,42,47,.07)!important}
html[data-lo-theme="light"] .sheet-backdrop{background:rgba(20,32,39,.35)!important}
html[data-lo-theme="light"] :is(.primary,.wide-action){background:#1b363b!important;color:#fff!important;border-color:#1b363b!important}
html[data-lo-theme="light"] :is(.secondary,.quiet,.detail-button,.sheet-close,.text-button,.capacity-control button,.icon-button,.lo-theme-toggle){background:#e9efeb!important;color:#1a2b30!important;border:1px solid #cddbd5!important}
html[data-lo-theme="light"] :is(.payment-entry input,.payment-entry select,.login-form input,.capacity-control input,input,select,textarea){background:#f9fbfa!important;color:#1b2b30!important;border-color:#bfceca!important;color-scheme:light}
html[data-lo-theme="light"] :is(.status-pill.available,.notice.success,.chip,.chip.follow,.payment-complete){background:#e4f4eb!important;color:#136d44!important;border-color:#b6ddc5!important}
html[data-lo-theme="light"] :is(.status-pill.full,.chip.pay,.pending-block,.pending-request,.customer-note,.notice){background:#fff4dc!important;color:#775016!important;border-color:#d9c18a!important}
html[data-lo-theme="light"] .customer-note p{color:#664412!important}
html[data-lo-theme="light"] :is(.capacity-track,.capacity-control,.chip:not(.pay):not(.follow)){background:#e7eeeb!important;color:#33484f!important}
html[data-lo-theme="light"] :is(.nav-item,.nav-item small){color:#4e616b!important}
html[data-lo-theme="light"] .nav-item.active,html[data-lo-theme="light"] .nav-item.active small{color:#86580b!important}
html[data-lo-theme="light"] .toast{background:#152b2e!important;color:#fff!important}
html[data-lo-theme="light"] .lo-theme-menu{background:#fff!important;border-color:#d4deda!important}
html[data-lo-theme="light"] .lo-theme-option{color:#192b2f!important}
html[data-lo-theme="light"] .lo-theme-option.selected{background:#e7efeb!important}
html[data-lo-theme="light"] :is(input,textarea)::placeholder{color:#607278!important;opacity:1}
html[data-lo-theme="light"] .pwa-onboarding{color:var(--text)}
@media print{html[data-lo-theme="light"] body{background:#fff!important;color:#111!important}}

/* Foreground notifications must remain legible in light mode, too. */
html[data-lo-theme="light"] .staff-foreground-alert{
 background:#fff!important;color:#17292f!important;
 border-color:#b8c9c5!important;box-shadow:0 12px 30px rgba(16,35,42,.15)!important
}
html[data-lo-theme="light"] .staff-foreground-alert-title{color:#17292f!important}
html[data-lo-theme="light"] .staff-foreground-alert-body{color:#53666b!important}
html[data-lo-theme="light"] .staff-foreground-alert-close{
 color:#25363e!important
}
html[data-lo-theme="light"] .staff-foreground-alert-open{
 color:#191c16!important
}
