/* Dashboard theme: shared semantic surfaces, explicit contrast for charts and controls. */
.admin-theme-toggle{width:44px;min-width:44px;height:44px;min-height:44px!important;padding:0!important;display:inline-grid!important;place-items:center;border:1px solid var(--line);border-radius:13px;background:transparent;color:inherit;font-size:22px}.admin-theme-toggle span{line-height:1}.header-tools{flex-wrap:wrap}.shell .language-apply{display:none!important}
html[data-theme=dark] body:not(.public-site){--studio-bg:#121212;--studio-ink:#f3f3f1;--studio-accent:#eeeeeb;--studio-button-ink:#191919;--bg:#121212;--paper:#191919;--card:#1c1c1c;--ink:#f3f3f1;--muted:#b4b4b1;--line:#393939;--accent:#eeeeeb;background:#121212!important;color:#f3f3f1;color-scheme:dark}
html[data-theme=dark] body:not(.public-site) :is(.sidebar,.topbar,.studio-dock){background:#1b1b1be8!important;border-color:#393939!important;color:#f3f3f1!important;box-shadow:none}
html[data-theme=dark] body:not(.public-site) :is(.panel,.metric,.health-metric,.health-insight-stats article,.health-tabs a,.record-card,.assistant-result,.script-history,.connection-card,.empty,.health-feedback){background:#1c1c1c!important;border-color:#393939!important;color:#f3f3f1!important;box-shadow:none}
html[data-theme=dark] body:not(.public-site) :is(input,textarea,select){background:#242424!important;color:#f3f3f1!important;border-color:#484848!important}
html[data-theme=dark] body:not(.public-site) :is(input,textarea)::placeholder{color:#aaaaa7}
html[data-theme=dark] body:not(.public-site) :is(button,.button){background:#292929;color:#f3f3f1;border-color:#484848;box-shadow:none}
html[data-theme=dark] body:not(.public-site) :is(button.primary,.button.primary,.primary,.health-period button[aria-pressed=true]){background:#eeeeeb!important;color:#191919!important;border-color:#eeeeeb!important}
html[data-theme=dark] body:not(.public-site) :is(.hint,.muted,.health-metric span,.health-metric p,.health-insight-stats span,.health-insight-stats p,.health-insight-stats small,.nav-group-label,.sidebar .bottom,.health-chart-title>span,.health-chart-empty,.health-consistency>p:last-child){color:#b4b4b1!important}
html[data-theme=dark] body:not(.public-site) :is(a,h1,h2,h3,h4,strong,b,label,summary,td,th,small){color:inherit}
html[data-theme=dark] body:not(.public-site) :is(.sidebar nav a.active,.studio-dock a[aria-current=page],.studio-dock button[aria-expanded=true]){background:#ededeb!important;color:#191919!important}
html[data-theme=dark] body:not(.public-site) :is(.sidebar nav a.active,.studio-dock a[aria-current=page]) svg{stroke:#191919}
html[data-theme=dark] body:not(.public-site) .sidebar .logo{filter:invert(1)}
html[data-theme=dark] body:not(.public-site) :is(table,thead,tbody,tr,td,th,.calendar-grid,.calendar-day,.calendar-head,.calendar-cell,.day,.next-step,.details-grid>div){border-color:#393939;background-color:transparent}
html[data-theme=dark] body:not(.public-site) :is(thead,.next-step,.health-period){background:#242424!important;color:#e5e5e2;border-color:#393939}
html[data-theme=dark] body:not(.public-site) :is(.badge,.calendar-event,.event-chip,.status){background:#323232;color:#eeeeeb;border-color:#505050}
html[data-theme=dark] body:not(.public-site) :is(.pill,.tag,.chip,.editor-tools button,.pagination a){background:#292929;color:#eeeeeb;border-color:#484848}
html[data-theme=dark] body:not(.public-site) .health-chart text{fill:#b4b4b1}.night:not(.public-site) .chart-grid{stroke:#484848}.night:not(.public-site) .chart-goal{stroke:#aaa}.night:not(.public-site) .chart-line{stroke:#eeeeeb}.night:not(.public-site) :is(.chart-bar,.chart-point){fill:#e5e5e2}.night:not(.public-site) .chart-point{stroke:#1c1c1c}.night:not(.public-site) .health-ring:before{background:#1c1c1c}.night:not(.public-site) .health-donut>div{background:#1c1c1c}.night:not(.public-site) .health-donut{outline:1px solid #484848}.night:not(.public-site) .macro-protein{background:#fafafa}.night:not(.public-site) .health-habit-grid span{background:#272727;border-color:#454545;color:#aaa}.night:not(.public-site) .health-habit-grid .logged{background:#e5e5e2;border-color:#e5e5e2;color:#191919}.night:not(.public-site) .health-main pre{background:#242424;color:#eee}.night:not(.public-site) .health-chart-data{border-color:#393939}.night:not(.public-site) .health-legend{color:#f3f3f1}
html[data-theme=dark] body:not(.public-site) :is(a,button,summary):focus-visible{outline:2px solid #f1f1ed;outline-offset:3px}html[data-theme=dark] body:not(.public-site) :is(input,textarea,select):focus{outline:2px solid #bdbdb8;outline-offset:2px}
@media print{html[data-theme=dark] body:not(.public-site){background:white!important;color:black!important;--ink:#111;--paper:#fff;--studio-ink:#111;--studio-bg:#fff}.admin-theme-toggle{display:none!important}}

html[data-theme=dark] body:not(.public-site){--macro-protein:#eeeeeb;--macro-carbs:#999;--macro-fat:#555}.night:not(.public-site) .macro-carbs{background:#999}.night:not(.public-site) .macro-fat{background:#555}
html[data-theme=dark] .auth .logo{filter:invert(1)}html[data-theme=dark] body:not(.public-site) .calendar-entry{background:#303030;color:#eee}html[data-theme=dark] body:not(.public-site) .health-period button[aria-pressed=true]{color:#191919!important}
