:root[data-theme=light]{color-scheme:light}
.theme-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 0;border-top:1px solid var(--line);font-size:var(--body)}
.theme-row select{font:inherit;font-size:var(--small);color:inherit;background:transparent;border:1px solid var(--line);border-radius:10px;min-height:44px;max-width:100%;padding:6px}
:root[data-theme=dark]{color-scheme:dark;--ink:#eff4ef;--muted:#b5c4b9;--green:#89da91;--line:#3c4a42;--purple:#cfb3fd;color:var(--ink);background:#111714}
[data-theme=dark] :is(body,.profile-page,.journal){background:#111714}
[data-theme=dark] :is(.app,.device,.head,.nav,.sheet,.settings,.day-list,article,footer){background:#1a231e;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.head .mode,.secondary,.close,.filters,.demoquota select,.sheet .prototype-label,.day header span,.theme-row option){background:#29362e;color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.nav button,.filters button,.settings span,.food small,.record .time,.summary,.kicker,.weight,.demo,nav a,.eyebrow){color:var(--muted)}
[data-theme=dark] :is(.journal h1,.day header h2){color:var(--ink)}
[data-theme=dark] :is(.pass,.filters button[aria-pressed=true]){background:#254632;color:#def9da}
[data-theme=dark] :is(.access,.personal,.badge-icon){background:#332b41;color:#f3eaff;border-color:#544560}
[data-theme=dark] :is(.access p,.access .login,.personal .kicker){color:#ddc8fa}
[data-theme=dark] .general{background:#40351f;color:#ffebc0}
[data-theme=dark] .general .kicker{color:#e7cc91}
[data-theme=dark] .alert{background:#482825;color:#ffdcd7;border-color:#884a43}
[data-theme=dark] :is(.label small,.nav .active,.food .more){color:#9ae5aa}
[data-theme=dark] :is(.record,.settings button,.food fieldset,.label,.ask,.general details,.providers button){border-color:var(--line)}
[data-theme=dark] .filters button:not([aria-pressed=true]){background:transparent}
[data-theme=dark] :focus-visible{outline-color:#d8b6ff}
