
:root{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--bg:#10151d;--ink:#edf2f7;--mute:#aab5c2;--line:#303b49;--panel:#1a222d;--blue:#7398ff;--red:#ff6478;--yellow:#e9c45b;--green:#55c98a}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .panel,html[data-theme="dark"] .card,html[data-theme="dark"] .modal,html[data-theme="dark"] .dialog,html[data-theme="dark"] .popover,html[data-theme="dark"] .dropdown,html[data-theme="dark"] .stat,html[data-theme="dark"] .stats>div{background:var(--panel);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{background:#111923;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8794a4}
html[data-theme="dark"] table th,html[data-theme="dark"] table td{border-color:var(--line)}
html[data-theme="dark"] .btn.ghost{color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .btn.ghost:hover{background:var(--ink);color:var(--bg)}
html[data-theme="dark"] .top,html[data-theme="dark"] .side,html[data-theme="dark"] .side-nav,html[data-theme="dark"] .main{color:var(--ink)}
html[data-theme="dark"] .side{background:#151d27;border-color:var(--line)}
html[data-theme="dark"] .mtabs,html[data-theme="dark"] .side-nav button,html[data-theme="dark"] .tab{border-color:var(--line)}
html[data-theme="dark"] .mtabs button,html[data-theme="dark"] .side-nav button{color:var(--mute)}
html[data-theme="dark"] .mtabs button[aria-pressed="true"],html[data-theme="dark"] .side-nav button[aria-pressed="true"]{color:var(--ink);background:#263448}
html[data-theme="dark"] .hint,html[data-theme="dark"] .muted,html[data-theme="dark"] small{color:var(--mute)}
html[data-theme="dark"] .page-loader{background:rgba(16,21,29,.9)}
html[data-theme="dark"] .calendar-day,html[data-theme="dark"] .day-cell,html[data-theme="dark"] .exercise-card,html[data-theme="dark"] .workout-card,html[data-theme="dark"] .list-card{background:var(--panel);border-color:var(--line);color:var(--ink)}
.theme-toggle{position:fixed;z-index:10000;inset-block-start:12px;inset-inline-end:12px;display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);font:600 14px/1.2 var(--body);box-shadow:0 3px 14px #0002;cursor:pointer}
.theme-toggle:hover{border-color:var(--blue)}
.theme-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:600px){.theme-toggle{inset-block-start:auto;inset-block-end:14px;inset-inline-end:14px;padding:10px 13px}}
