.cabinet-theme-toggle{display:inline-flex;align-items:center;gap:8px;flex:none;margin-left:auto;padding:5px 2px;border:0;background:transparent;color:#e8f1dd;cursor:pointer}
.cabinet-theme-toggle svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cabinet-theme-track{width:35px;height:20px;padding:2px;display:inline-flex;align-items:center;border-radius:20px;background:#444a41}
.cabinet-theme-knob{display:block;width:16px;height:16px;border-radius:50%;background:#f7f7ed;box-shadow:0 1px 4px #0005;transform:translateX(15px);transition:transform .22s}
html[data-theme=light] .cabinet-theme-track{background:#a5ae99}
html[data-theme=light] .cabinet-theme-knob{background:#fff;transform:translateX(0)}
@media(max-width:520px){.cabinet-theme-toggle{gap:6px}.cabinet-theme-toggle svg{width:16px;height:16px}}

html[data-theme=light]{color:#1d2b1d;background:#f5f6ef;color-scheme:light}
html[data-theme=light] body{background:radial-gradient(circle at 100% 0%,#e2eadb 0,transparent 36rem),#f5f6ef}
html[data-theme=light] .site-header,html[data-theme=light] footer{border-color:#d4ddce}
html[data-theme=light] .cabinet-theme-toggle{color:#263626}
html[data-theme=light] .header-badge,html[data-theme=light] .eyebrow{color:#526d35}
html[data-theme=light] .account-menu-open{background:#fff;border-color:#a3b595}
html[data-theme=light] .account-menu-open span{background:#30452b}
html[data-theme=light] .top-nav{border-color:#d2dccd}
html[data-theme=light] .nav-btn{background:#edf3e8;color:#3c5237;border-color:#bbceb0}
html[data-theme=light] .nav-btn.active{background:#d7e9cb;color:#244b1e;border-color:#729853}
html[data-theme=light] .nav-btn.active::after{background:#d7e9cb}
html[data-theme=light] .nav-btn:hover{background:#e0edda;color:#1b3819}
html[data-theme=light] .text-button{color:#355824;border-color:#98b377}
html[data-theme=light] .text-button:hover{background:#e6efdc}
html[data-theme=light] .button{background:#789b45;color:#fff}
html[data-theme=light] .button:hover{background:#648939}
html[data-theme=light] .session-bar .button{background:#456c2c;color:#fff}
html[data-theme=light] .session-bar .button:hover{background:#355c20}
html[data-theme=light] .session-bar .button span{color:inherit}
html[data-theme=light] .welcome h1 em,html[data-theme=light] .dashboard-hero h1 em{color:#4c722a}
html[data-theme=light] .welcome>p,html[data-theme=light] .dashboard-hero p,html[data-theme=light] .section-top p,html[data-theme=light] .workout-head p,html[data-theme=light] .panel-copy,html[data-theme=light] .hint{color:#596b55}
html[data-theme=light] .step-panel,html[data-theme=light] .macro-card,html[data-theme=light] .info-panel,html[data-theme=light] .session-bar,html[data-theme=light] .week-card,html[data-theme=light] .exercise-card,html[data-theme=light] .nutrition-target,html[data-theme=light] .tab-card,html[data-theme=light] .goal-panel,html[data-theme=light] .body-stat{background:#fff;border-color:#cbd8c3;color:#1e2d1e}
html[data-theme=light] .program-card{background:linear-gradient(135deg,#e5eed9,#f8fbf5);border-color:#bed1ad;color:#20351e}
html[data-theme=light] .program-card>strong,html[data-theme=light] .program-card>.eyebrow{color:#243f1e}
html[data-theme=light] .program-card>span:nth-of-type(2),html[data-theme=light] .program-card #dashboard-plan-meta{color:#526b4b}
html[data-theme=light] .program-action,html[data-theme=light] .week-card .open{color:#365d20}
html[data-theme=light] .dashboard-day,html[data-theme=light] .calendar-day,html[data-theme=light] .nutrition-cell{background:#f8faf5;border-color:#d0ddc8;color:#263825}
html[data-theme=light] .dashboard-day.workout-day,html[data-theme=light] .calendar-day.has-workout{background:#e9f1e0;border-color:#a9c691}
html[data-theme=light] .dashboard-day span,html[data-theme=light] .calendar-day span,html[data-theme=light] .nutrition-cell-label,html[data-theme=light] .macro-grid span{color:#576d51}
html[data-theme=light] .calorie-line strong,html[data-theme=light] .nutrition-target-head strong,html[data-theme=light] .nutrition-cell strong,html[data-theme=light] .goal-panel strong,html[data-theme=light] .body-stat strong{color:#345b25}
html[data-theme=light] .macro-grid,html[data-theme=light] .tab-entry,html[data-theme=light] .goal-figures{border-color:#d4dfcf}
html[data-theme=light] .workout-metric{background:#eef4e9;border-color:#c5d7b9}
html[data-theme=light] .workout-metric strong,html[data-theme=light] .session-bar strong{color:#2f5422}
html[data-theme=light] .workout-metric small,html[data-theme=light] .session-bar span,html[data-theme=light] .exercise-line small{color:#52684b}
html[data-theme=light] .exercise-line{background:#fff;color:#223321}
html[data-theme=light] .exercise-card .exercise-line:hover{background:#f0f6eb}
html[data-theme=light] .exercise-log{border-color:#d4e1cd}
html[data-theme=light] .exercise-log-title,html[data-theme=light] .exercise-line .number,html[data-theme=light] .exercise-line .arrow,html[data-theme=light] .workout-metric svg{color:#416827}
html[data-theme=light] .set-labels,html[data-theme=light] .set-row>strong{color:#486042}
html[data-theme=light] .set-row{border-color:#e0e9db}
html[data-theme=light] .set-row input,html[data-theme=light] .fields input,html[data-theme=light] .fields select,html[data-theme=light] .tab-fields input,html[data-theme=light] .swap-box select{background:#fff;color:#1b2d1b;border-color:#b3c5aa}
html[data-theme=light] .set-row .set-save{background:#edf5e8;color:#365c24;border-color:#8fb276}
html[data-theme=light] .set-row.saved .set-save{background:#618e3e;color:#fff}
html[data-theme=light] .exercise-log .add-set,html[data-theme=light] .exercise-last strong{color:#365c25}
html[data-theme=light] .exercise-last,html[data-theme=light] .beta-note{background:#edf4e8;border-color:#c4d8b8;color:#3a5333}
html[data-theme=light] .exercise-last span,html[data-theme=light] .tab-entry small{color:#586b51}
html[data-theme=light] .week-controls button{background:#fff;color:#345d25;border-color:#bfd1b5}
html[data-theme=light] .focus-option,html[data-theme=light] .fat-option{background:#fff;color:#233a20;border-color:#b8caa8}
html[data-theme=light] .focus-block p,html[data-theme=light] .fields label,html[data-theme=light] .tab-fields label{color:#526b4b}
html[data-theme=light] .fat-option:has(img) span{color:#263b22}
html[data-theme=light] .goal-foot,html[data-theme=light] .nutrition-cell-track{color:#50684b;background:#e1ecd9}
html[data-theme=light] .goal-panel{background:linear-gradient(135deg,#fff,#f0f7eb);border-color:#c4d7b9}
html[data-theme=light] .goal-heading strong,html[data-theme=light] .goal-figures strong{color:#274122}
html[data-theme=light] .goal-figures>div{background:#e9f2e3;border:1px solid #c5d9b9;border-radius:11px;padding:9px}
html[data-theme=light] .goal-figures small{color:#536b4c}
html[data-theme=light] .goal-remain strong,html[data-theme=light] .goal-foot span:first-child{color:#315a22}
html[data-theme=light] .goal-track,html[data-theme=light] .food-track{background:#e1ecd9}
html[data-theme=light] .food-progress{border-color:#d7e3d0}
html[data-theme=light] .food-progress-head span,html[data-theme=light] .food-progress small{color:#5a6f54}
html[data-theme=light] .food-progress-head strong,html[data-theme=light] .food-link{color:#365e24}
html[data-theme=light] .food-remaining span{color:#405c36;border-color:#bfd4af}
html[data-theme=light] .program-card>.program-focus{color:#38582e}
html[data-theme=light] .program-anatomy-view{background:#e4eedc;border-color:#bbd1ae}
html[data-theme=light] .program-anatomy-view figcaption{color:#496342}
html[data-theme=light] .food-subnav{border-color:#bcd0b1}
html[data-theme=light] .food-subnav button{background:#edf4e9;color:#3e5738;border-color:#bed1b2}
html[data-theme=light] .food-subnav button[aria-selected=true]{background:#d8e9cc;color:#284b21;border-color:#82a666}
html[data-theme=light] .body-chart .chart-gridline{stroke:#d4e0cb}
html[data-theme=light] .body-chart .chart-axis{fill:#526c48}
html[data-theme=light] .tab-entry,html[data-theme=light] .body-summary{color:#1f311d}
html[data-theme=light] .recipe-card,html[data-theme=light] .recipe-card-copy{background:#fff;border-color:#c8d9bc;color:#203321}
html[data-theme=light] .recipe-card-kcal{color:#335d23}
html[data-theme=light] .recipe-card-macros,html[data-theme=light] .recipe-detail-actions span{color:#5c7155}
html[data-theme=light] .recipe-card-favorite{background:#fff;color:#315622;border-color:#a9c49b}
html[data-theme=light] .recipe-favorite-filter,html[data-theme=light] .recipe-detail-actions button,html[data-theme=light] .recipe-detail-tabs button{background:#edf5e9;color:#315122;border-color:#b9d0aa}
html[data-theme=light] .recipe-detail-tabs button[aria-selected=true]{background:#668f43;color:#fff}
html[data-theme=light] .recipe-detail-dialog,html[data-theme=light] dialog:not(.account-dialog){background:#fff;color:#1e311c;border-color:#c3d4b9}
html[data-theme=light] .recipe-nutrition-table,html[data-theme=light] .recipe-add-panel{border-color:#c7d9bb;background:#f3f8ef}
html[data-theme=light] .recipe-nutrition-table>div{border-color:#dce8d5}
html[data-theme=light] .recipe-nutrition-table>div:nth-child(odd){background:#eef5e9}
html[data-theme=light] .recipe-nutrition-table strong,html[data-theme=light] .recipe-add-panel label{color:#315525}
html[data-theme=light] .recipe-add-row input{background:#fff;color:#1d311b;border-color:#adc69e}
html[data-theme=light] .knowledge-view>p,html[data-theme=light] .knowledge-grid details p{color:#526a4e}
html[data-theme=light] .knowledge-grid details.knowledge-card,html[data-theme=light] .knowledge-grid details.knowledge-card[open]{background:#fff;border-color:#c4d5b7}
html[data-theme=light] .knowledge-grid .knowledge-card summary{color:#223721}
html[data-theme=light] .knowledge-grid .knowledge-card summary:hover{background:#f0f6eb}
html[data-theme=light] .knowledge-icon{background:#e5f0db;color:#3b622b}
html[data-theme=light] .knowledge-toggle{border-color:#9ab98b;color:#365e25}
html[data-theme=light] .knowledge-card[open] .knowledge-toggle{background:#6b9147;color:#fff}
html[data-theme=light] .knowledge-body{border-color:#dce8d4;color:#283c26}
html[data-theme=light] .knowledge-fact{background:#f1f7ec;border-color:#a8c890}
html[data-theme=light] .knowledge-fact-label,html[data-theme=light] .knowledge-body h3,html[data-theme=light] .knowledge-body h4{color:#355a27}
html[data-theme=light] .knowledge-table-scroll{border-color:#c4d6b8}
html[data-theme=light] .knowledge-table-scroll th{background:#dcead2;color:#2e4d24}
html[data-theme=light] .knowledge-table-scroll td{background:#fff;color:#263923;border-color:#dbe7d4}
html[data-theme=light] .knowledge-table-scroll tr:nth-child(even) td{background:#f5f9f2}
html[data-theme=light] .account-dialog{background:#fff;color:#1e321c;border-color:#c4d6b9;box-shadow:-20px 0 60px #2e47214d}
html[data-theme=light] .account-drawer-top,html[data-theme=light] .account-detail-back,html[data-theme=light] .account-home-link{color:#3c642b}
html[data-theme=light] .account-menu button,html[data-theme=light] .account-menu a{color:#233821;border-color:#d3dfcc}
html[data-theme=light] .account-menu span,html[data-theme=light] .account-user small,html[data-theme=light] .account-detail p{color:#597151}
html[data-theme=light] .account-user{border-color:#d4e0cc}
html[data-theme=light] .account-detail form input{background:#fff;color:#20331d;border-color:#b6c9a9}
html[data-theme=light] #account-logout{color:#315622;border-color:#a5be97}
html[data-theme=light] footer{color:#566b50}
