:root[data-theme=dark]{color-scheme:dark;--accent:#ab9dff;--accent-hover:#c1b7ff;--accent-soft:#2c2747;--accent-deep:#c1b7ff;--ink:#eeeef6;--muted:#b5b7cb;--faint:#a4a8be;--line:#34384d;--line-strong:#666a83;--surface:#1c2030;--surface-soft:#171b29;--canvas:#121521;--success:#82dcb9;--success-soft:#193a33;--danger:#ffa5b8;--danger-soft:#402634;--danger-line:#764356;--danger-hover:#ffc0cd;--warning:#f2cc8f;--warning-soft:#3c3225;--login-bg:#19182b;--track:#33354e}
.theme-switch{display:inline-flex;align-items:center;justify-content:center;flex:0 0 84px;width:84px;min-height:48px;padding:4px;border-radius:999px;background:transparent;cursor:pointer}
.theme-switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.theme-switch-track{position:relative;display:block;width:76px;height:38px;border:1px solid var(--line-strong);border-radius:999px;background:var(--accent-soft);direction:ltr;isolation:isolate}
.theme-switch-thumb{position:absolute;left:3px;top:3px;width:30px;height:30px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #20213d1c;transform:translateX(0);transition:transform .22s cubic-bezier(.2,.8,.2,1),background .22s ease}
.theme-switch-track svg{position:absolute;top:9px;width:18px;height:18px;z-index:1;transition:color .18s ease}
.theme-switch-sun{left:9px;color:#966000}
.theme-switch-moon{right:9px;color:var(--muted)}
.theme-switch:hover .theme-switch-track{border-color:var(--accent)}
.theme-switch[aria-checked=true] .theme-switch-track{background:#131724;border-color:var(--line-strong)}
.theme-switch[aria-checked=true] .theme-switch-thumb{background:#6658b7;transform:translateX(36px);box-shadow:0 2px 6px #0004}
.theme-switch[aria-checked=true] .theme-switch-sun{color:var(--faint)}
.theme-switch[aria-checked=true] .theme-switch-moon{color:#fff}
.forms-delete-button,.forms-delete-button.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--danger);background:var(--danger-soft);border-color:transparent}
.forms-delete-button:hover,.forms-delete-button.btn-ghost:hover{color:var(--danger);border-color:var(--danger);background:var(--danger-soft)}
.forms-reorder button{display:grid;place-items:center}
.forms-reorder svg{width:17px;height:17px}
:root[data-theme=dark] ::selection{background:#514578;color:#fff}
:root[data-theme=dark] ::-webkit-scrollbar-thumb{background:#565a76}
:root[data-theme=dark] .btn-primary,:root[data-theme=dark] .btn-navy,:root[data-theme=dark] .btn-danger,:root[data-theme=dark] .btn-success{color:#171425}
:root[data-theme=dark] .btn-primary:hover,:root[data-theme=dark] .btn-navy:hover{color:#171425}
:root[data-theme=dark] .nav-item svg,:root[data-theme=dark] .nav-item-admin svg{color:var(--faint)}
:root[data-theme=dark] .nav-item.active svg,:root[data-theme=dark] .nav-item-admin.active svg{color:var(--accent)}
:root[data-theme=dark] .bg-white,:root[data-theme=dark] .bg-white\/95{background-color:var(--surface)}
:root[data-theme=dark] .bg-slate-50,:root[data-theme=dark] .bg-slate-100{background-color:var(--surface-soft)}
:root[data-theme=dark] .text-slate-900,:root[data-theme=dark] .text-slate-800,:root[data-theme=dark] .text-slate-700{color:var(--ink)}
:root[data-theme=dark] .text-slate-600,:root[data-theme=dark] .text-slate-500,:root[data-theme=dark] .text-slate-400{color:var(--muted)}
:root[data-theme=dark] .border-slate-100,:root[data-theme=dark] .border-slate-200,:root[data-theme=dark] .border-slate-300{border-color:var(--line)}
:root[data-theme=dark] .hover\:bg-slate-50:hover,:root[data-theme=dark] .hover\:bg-slate-100:hover{background:var(--accent-soft)}
:root[data-theme=dark] .text-rose-600,:root[data-theme=dark] .text-rose-500,:root[data-theme=dark] .text-red-500,:root[data-theme=dark] .text-red-600{color:var(--danger)}
:root[data-theme=dark] .bg-rose-50,:root[data-theme=dark] .bg-red-50{background:var(--danger-soft)}
:root[data-theme=dark] .text-emerald-600,:root[data-theme=dark] .text-emerald-700{color:var(--success)}
:root[data-theme=dark] .bg-emerald-50{background:var(--success-soft)}
:root[data-theme=dark] .text-amber-600,:root[data-theme=dark] .text-amber-700{color:var(--warning)}
:root[data-theme=dark] .bg-amber-50{background:var(--warning-soft)}
:root[data-theme=dark] .modal-backdrop,:root[data-theme=dark] .task-sheet-backdrop,:root[data-theme=dark] .shell-overlay{background:rgba(4,6,14,.72)}
:root[data-theme=dark] dialog::backdrop{background:rgba(4,6,14,.76)}
:root[data-theme=dark] .login-orbit-core{background:var(--surface);border-color:var(--line)}
:root[data-theme=dark] .login-orbit-ring{border-color:var(--line)}
:root[data-theme=dark] .survey-host{background-color:var(--surface-soft);--survey-accent:var(--accent)!important;color:var(--ink)}
:root[data-theme=dark] .survey-question h2{color:var(--ink)!important}
:root[data-theme=dark] .survey-controls .btn-primary,:root[data-theme=dark] .survey-success .btn-primary{color:#171425}
:root[data-theme=dark] .jdp-day.is-selected{color:#171425}
:root[data-theme=dark] .switch-slider,:root[data-theme=dark] .switch-track{background:var(--line-strong)}
:root[data-theme=dark] .skeleton{background:var(--track)}
:root[data-theme=dark] .ai-bubble{color:var(--ink);background:var(--surface)}
:root[data-theme=dark] .ai-bubble-user{background:var(--accent-soft)}
:root[data-theme=dark] .toast{background:#302a49;color:#f6f3ff}
@media(max-width:767px){.topbar-inner{gap:5px}.theme-switch{flex-basis:84px;width:84px}.topbar-account p{max-width:82px}.topbar-account{gap:5px}#topbar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.theme-switch-thumb,.theme-switch-track svg{transition:none}}
:root[data-theme=dark] .text-blue-600,:root[data-theme=dark] .text-blue-500,:root[data-theme=dark] .text-indigo-600,:root[data-theme=dark] .text-violet-600{color:var(--accent)}
:root[data-theme=dark] .hover\:text-blue-800:hover,:root[data-theme=dark] .hover\:text-slate-800:hover{color:var(--accent-hover)}
:root[data-theme=dark] .bg-blue-50,:root[data-theme=dark] .bg-indigo-50{background:var(--accent-soft)}
:root[data-theme=dark] .form-view dd,:root[data-theme=dark] .ring-center,:root[data-theme=dark] .psycho-answer-q{color:var(--ink)}
:root[data-theme=dark] .psycho-answer-a{color:var(--muted)}
:root[data-theme=dark] .option-line.correct,:root[data-theme=dark] .option-line.correct .marker{color:var(--success)}
:root[data-theme=dark] .option-line.correct .marker{background:var(--success-soft)}
:root[data-theme=dark] .doc-step-index{background:var(--accent-soft)}
:root[data-theme=dark] .doc-note{background:var(--warning-soft);color:var(--warning);border-color:var(--line-strong)}
:root[data-theme=dark] .action-btn.reject{color:var(--warning)}
:root[data-theme=dark] .gradient-brand{background:#393253}
:root[data-theme=dark] .stepper .step.done .step-dot{background:var(--success-soft);color:var(--success)}
:root[data-theme=dark] .task-check.checked,:root[data-theme=dark] .stepper .step.current .step-dot,:root[data-theme=dark] .jdp-month.is-selected,:root[data-theme=dark] .jdp-year.is-selected{color:#171425}
:root[data-theme=dark] .cover-navy{background:#6558df}
:root[data-theme=dark] .btn-danger-soft:hover{color:var(--danger);background:var(--danger-soft)}
:root[data-theme=dark] .btn-success-soft:hover{color:var(--success);background:var(--success-soft)}
:root[data-theme=dark] .doc-step.is-done .doc-step-index{background:var(--success-soft);color:var(--success)}
