:root{--surface:#fff;--accent-container:#E2EDE7;--on-accent:#21665E;--primary-button:#21665E;--on-primary:#fff}
.theme-control{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:24px 8px 0;font-size:12px;color:var(--muted)}.theme-control select{width:112px;min-height:40px;margin:0;padding:8px 12px;border-radius:12px;background:var(--surface);color:var(--ink);border:1px solid var(--line)}
html[data-theme="dark"]{--p:#9ACCC0;--ink:#E5EEE7;--muted:#B1C1B6;--line:#40574B;--bg:#101C18;--surface:#192B23;--accent-container:#29483E;--on-accent:#D1E9DE;--primary-button:#9ACCC0;--on-primary:#0D372F;color-scheme:dark}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] aside,html[data-theme="dark"] .card,html[data-theme="dark"] .stat,html[data-theme="dark"] dialog{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] .primary{background:var(--primary-button)!important;color:var(--on-primary)!important}
html[data-theme="dark"] .outline,html[data-theme="dark"] .toolbar button{background:transparent!important;border-color:#6D8778!important;color:var(--p)!important}
html[data-theme="dark"] .nav.active,html[data-theme="dark"] .toolbar button.selected,html[data-theme="dark"] .avatar,html[data-theme="dark"] .icon,html[data-theme="dark"] .tag,html[data-theme="dark"] .staff-mood,html[data-theme="dark"] #db-panel{background:var(--accent-container)!important;color:var(--on-accent)!important}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#12221A!important;color:var(--ink)!important;border-color:#6D8778!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#A1B5A8}
html[data-theme="dark"] .chip{background:#44331c!important;color:#f5d398!important}
html[data-theme="dark"] .chip.green{background:#213d30!important;color:#a4d9b9!important}
html[data-theme="dark"] .staff-returns article{background:#12221A!important}
html[data-theme="dark"] .brand-logo{background:#E2EDE7;border-radius:12px;padding:8px}
html[data-theme="dark"] .toast{background:#D1E9DE;color:#0D372F;box-shadow:0 8px 32px #0008}
html[data-theme="dark"] a{color:var(--p)}
html[data-theme="dark"] [style*="color:#80550e"]{color:#f5d398!important}
html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] textarea:focus-visible,html[data-theme="dark"] select:focus-visible{outline:3px solid #9ACCC0;outline-offset:3px}
html[data-theme="dark"] dialog::backdrop{background:#08110Db3}
@media(max-width:760px){.theme-control{display:inline-flex;margin:8px 0 0;gap:16px}.theme-control select{width:112px;min-height:40px}.theme-control span{font-size:12px}}
.theme-toggle{display:inline-flex;align-items:center;gap:8px;flex:none}.theme-toggle>span{font-size:12px;color:var(--muted);white-space:nowrap}.theme-toggle #theme-switch{display:grid;place-items:center;width:64px;height:48px;min-width:64px;padding:0;border:0;border-radius:24px;background:transparent;cursor:pointer}.theme-track{display:flex;align-items:center;width:52px;height:32px;border:2px solid #5E6D65;background:#E2EDE7;border-radius:16px;padding:4px;transition:background .15s,border-color .15s}.theme-thumb{width:16px;height:16px;border-radius:50%;background:#5E6D65;transition:transform .15s,width .15s,height .15s}.theme-toggle [aria-checked="true"] .theme-track{background:#9ACCC0;border-color:#9ACCC0;padding:2px}.theme-toggle [aria-checked="true"] .theme-thumb{width:24px;height:24px;background:#0D372F;transform:translateX(20px)}.top .header-actions{gap:16px!important;align-items:center}.theme-toggle #theme-switch:hover{background:#21665e1a}@media(max-width:760px){.top .header-actions{gap:8px!important}}@media(max-width:640px){.top>#breadcrumb{display:none}.top{justify-content:flex-end}.theme-toggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.theme-toggle #theme-switch{width:64px}}@media(prefers-reduced-motion:reduce){.theme-track,.theme-thumb{transition:none}}

:root{--brand-primary:#21665E;--brand-selection:#E2EDE7;--brand-background:#F7F9F7;--brand-surface:#FFFFFF;--brand-text:#24352F;--brand-muted:#5E6D65;--brand-reading:#EFE6D8;--reading-surface:var(--brand-reading)}
html:not([data-theme="dark"]) .nav.active{background:var(--brand-selection);color:var(--brand-primary)}html:not([data-theme="dark"]) .staff-mood{background:var(--brand-selection);color:var(--brand-primary)}html:not([data-theme="dark"]) .notification-empty{background:var(--brand-reading)}html[data-theme="dark"]{--reading-surface:#34352A}.notification-empty{background:var(--reading-surface)}
