:root{color-scheme:light}
.theme-toggle{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--green);font-size:22px;flex-shrink:0}
.theme-toggle:hover{background:var(--light)}
.settings-section{padding:22px 24px;display:grid;gap:13px;border-bottom:1px solid var(--line)}
.theme-options{display:flex;gap:10px}.theme-options button{flex:1}
.theme-options [aria-pressed=true]{background:var(--light);border-color:var(--green);color:var(--green)}
:root[data-theme=dark]{color-scheme:dark;background:#101a17;color:#e2ebe4;--green:#8ccab6;--green-dark:#a8dfcd;--muted:#a2b3a8;--line:#304239;--light:#263f33;--danger:#ffa99c}
[data-theme=dark] body{background:#101a17}
[data-theme=dark] .topbar,[data-theme=dark] .registry,[data-theme=dark] .stat,[data-theme=dark] dialog,[data-theme=dark] .login-card{background:#192720;color:#e2ebe4}
[data-theme=dark] .brand,[data-theme=dark] .login-brand{color:#e2ebe4}
[data-theme=dark] .brand-mark{background:#438c74;color:#fff}
[data-theme=dark] .brand-sub,[data-theme=dark] .section-label,[data-theme=dark] .eyebrow,[data-theme=dark] .stat-label,[data-theme=dark] .text-button{color:#aabbad}
[data-theme=dark] .primary{background:#8ccab6;border-color:#8ccab6;color:#10291f}
[data-theme=dark] .primary:hover:not(:disabled){background:#b1e2ce;border-color:#b1e2ce}
[data-theme=dark] .secondary,[data-theme=dark] .icon-button,[data-theme=dark] .row-visit{background:#203329;border-color:#405749;color:#c4e6d0}
[data-theme=dark] .secondary:hover:not(:disabled),[data-theme=dark] .icon-button:hover,[data-theme=dark] .row-visit:hover{background:#2c4638;border-color:#648a72}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] .search-wrap input{background:#132219;border-color:#425447;color:#e3eee6}
[data-theme=dark] input:focus,[data-theme=dark] select:focus{border-color:#8ccab6;box-shadow:0 0 0 3px #8ccab622}
[data-theme=dark] input::placeholder{color:#8ba192}
[data-theme=dark] label{color:#b9cbbf}
[data-theme=dark] .birthday-stat{background:#293b28;border-color:#42523c}
[data-theme=dark] .birthday-stat:hover{background:#32472e}
[data-theme=dark] .stat-caption,[data-theme=dark] .birthday-stat .stat-caption,[data-theme=dark] .subline,[data-theme=dark] .phone-text{color:#9db29f}
[data-theme=dark] .client-table th{background:#142019;color:#a3b9a6}
[data-theme=dark] .client-table td{border-color:#2b3a30}
[data-theme=dark] .client-table tbody tr:hover{background:#1d3025}
[data-theme=dark] .parent-open{color:#d7e9db}
[data-theme=dark] .avatar,[data-theme=dark] .empty-symbol{background:#2d4431;color:#c0d2a9}
[data-theme=dark] .filters,[data-theme=dark] .child-form{background:#15231b;border-color:#354b38}
[data-theme=dark] .visit-number{background:#284533;color:#c2e3ce}
[data-theme=dark] .frequent{background:#493e24;color:#f6d593}
[data-theme=dark] .visit-form{background:#203523;border-color:#3b523a}
[data-theme=dark] .visit-children label{background:#1a2c20;border-color:#476348}
[data-theme=dark] .add-child{background:#1b2e20;border-color:#517650;color:#acd8ad}
[data-theme=dark] .step{border-color:#4a6549;color:#b0c5a6}
[data-theme=dark] .active-filters{background:#203728;color:#b9d9bb}
[data-theme=dark] .badge{background:#33543d;color:#ddeddd}
[data-theme=dark] .banner{background:#442822;border-color:#72433a}
[data-theme=dark] .login-screen{background:radial-gradient(ellipse at 15% 15%,#263b28 0,transparent 55%),#101a17}
[data-theme=dark] .login-foot,[data-theme=dark] .page-footer,[data-theme=dark] .birthday-label,[data-theme=dark] .child-head,[data-theme=dark] .empty p,[data-theme=dark] .confirm-dialog p,[data-theme=dark] .tab,[data-theme=dark] .tab span,[data-theme=dark] .pagination,[data-theme=dark] .history-empty{color:#9fb4a0}
[data-theme=dark] .tab.active{color:#8ccab6}
[data-theme=dark] .child-head button,[data-theme=dark] .history-row button{color:#e1b2a4}
[data-theme=dark] .toast{background:#a3d6bc;color:#11291a}
[data-theme=dark] .theme-options [aria-pressed=true]{background:#33533d;border-color:#8ccab6;color:#d3ecd9}
[data-theme=dark] dialog::backdrop{background:#050e0bcc}
@media(max-width:400px){.topbar{padding-left:10px;padding-right:10px;gap:6px}.brand{letter-spacing:.5px;gap:7px}.brand-mark{width:34px;height:38px;font-size:25px}.top-right{gap:0}.theme-toggle{width:29px;height:31px;font-size:21px}.top-right .text-button{padding:8px 5px;font-size:11px}}
