.header-actions{display:flex;align-items:center;gap:8px;flex:none}
.header-icon-button{width:39px;height:39px;display:grid;place-items:center;border:1px solid #e5e9e1;background:#fff;border-radius:50%;color:#315f45;padding:0}
.header-icon-button:hover:not(:disabled){background:#edf4ec}
.header-icon-button:disabled{opacity:.55}
.auth-shell{position:relative}
.auth-theme-button{position:absolute;top:20px;right:20px}
@media(max-width:720px){.topbar{gap:8px}.header-actions{gap:6px}.header-icon-button{width:37px;height:37px}}
@media(max-width:360px){.brand-mark{display:none}}

:root[data-theme="dark"]{color-scheme:dark;color:#e9f0e6;background:#101914}
[data-theme="dark"] .topbar,[data-theme="dark"] .footer,[data-theme="dark"] .main-nav{background:#17241c;border-color:#344738}
[data-theme="dark"] .brand-mark,[data-theme="dark"] .nav-link.active{background:#304b35;color:#d5f0d4}
[data-theme="dark"] .brand small,[data-theme="dark"] .subtitle,[data-theme="dark"] .muted,[data-theme="dark"] .recipe-meta,[data-theme="dark"] .meal-label{color:#a8b9a7}
[data-theme="dark"] .nav-link{color:#a8b9a7}
[data-theme="dark"] .nav-link.active{box-shadow:none}
[data-theme="dark"] .account-button,[data-theme="dark"] .header-icon-button,[data-theme="dark"] .secondary,[data-theme="dark"] .icon-button,[data-theme="dark"] .move-button,[data-theme="dark"] .sort-button:not(.active),[data-theme="dark"] .invite-code button{background:#233329;border-color:#425846;color:#d3e9d0}
[data-theme="dark"] .account-button:hover,[data-theme="dark"] .header-icon-button:hover:not(:disabled),[data-theme="dark"] .secondary:hover,[data-theme="dark"] .icon-button:hover,[data-theme="dark"] .move-button:hover:not(:disabled),[data-theme="dark"] .sort-button:not(.active):hover{background:#304537}
[data-theme="dark"] .primary,[data-theme="dark"] .sort-button.active{background:#3a7450;border-color:#3a7450;color:#fff}
[data-theme="dark"] .primary:hover{background:#46865e}
[data-theme="dark"] .eyebrow,[data-theme="dark"] .text-link,[data-theme="dark"] .manage-departments{color:#a0d7a7}
[data-theme="dark"] .day-card,[data-theme="dark"] .recipe-card,[data-theme="dark"] .shopping-main,[data-theme="dark"] .empty-state,[data-theme="dark"] .auth-card,[data-theme="dark"] .modal-panel{background:#1b2921;border-color:#36483a;box-shadow:0 8px 24px #07100a35}
[data-theme="dark"] .day-heading,[data-theme="dark"] .recipe-bottom,[data-theme="dark"] .shopping-list,[data-theme="dark"] .shopping-row,[data-theme="dark"] .shopping-sort,[data-theme="dark"] .modal-actions,[data-theme="dark"] .detail-list div,[data-theme="dark"] .modal-panel form.department-add{border-color:#344738}
[data-theme="dark"] .day-heading strong{color:#c3d7c0}
[data-theme="dark"] .day-heading strong.today,[data-theme="dark"] .round-arrow,[data-theme="dark"] .list-heading span{background:#30543b;color:#d7f4d7}
[data-theme="dark"] .empty-meal,[data-theme="dark"] .list-empty{background:#1b2b22;border-color:#435948;color:#b9cbb7}
[data-theme="dark"] .empty-meal:hover{border-color:#8abb91;color:#d4efcf}
[data-theme="dark"] .planned-meal,[data-theme="dark"] .detail-list,[data-theme="dark"] .department-picker select{background:#253d2b;border-color:#426447;color:#e3f2df}
[data-theme="dark"] .planned-meal:hover,[data-theme="dark"] .round-arrow:hover{background:#315136}
[data-theme="dark"] .planned-meal small,[data-theme="dark"] .recipe-body p,[data-theme="dark"] .empty-state p,[data-theme="dark"] .item-name small,[data-theme="dark"] .instructions p,[data-theme="dark"] .aside-card p,[data-theme="dark"] .tip-card p,[data-theme="dark"] .modal-intro,[data-theme="dark"] .auth-card>p:not(.eyebrow),[data-theme="dark"] .form-help{color:#adbfaa}
[data-theme="dark"] .tip-card,[data-theme="dark"] .aside-card,[data-theme="dark"] .invite-code{background:#263c2d;border-color:#527257}
[data-theme="dark"] .tip-icon,[data-theme="dark"] .aside-icon{color:#a2d5a7}
[data-theme="dark"] .aside-line,[data-theme="dark"] .separator:before,[data-theme="dark"] .separator:after{background:#48624c}
[data-theme="dark"] .shopping-row{color:#e9f0e6}
[data-theme="dark"] .shopping-row:hover,[data-theme="dark"] .shopping-row.drag-over{background:#294433}
[data-theme="dark"] .shopping-row>strong{color:#c4ddc1}
[data-theme="dark"] .shopping-row.done .item-name,[data-theme="dark"] .shopping-row.done>strong{color:#8d9f8c}
[data-theme="dark"] .checkbox{border-color:#8da98d}
[data-theme="dark"] .art-0,[data-theme="dark"] .art-4{background:#2e4932}
[data-theme="dark"] .art-1,[data-theme="dark"] .art-2{background:#55432c}
[data-theme="dark"] .art-3{background:#503b38}
[data-theme="dark"] .auth-shell{background:radial-gradient(circle at 10% 5%,#213b29,transparent 30%),radial-gradient(circle at 90% 90%,#342922,transparent 30%),#101914}
[data-theme="dark"] .auth-brand strong{color:#e9f0e6}
[data-theme="dark"] label:not(.search-field):not(.import-label),[data-theme="dark"] .shopping-sort>strong{color:#c5d9c1}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#17251d;border-color:#435748;color:#e9f0e6}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#94a993}
[data-theme="dark"] .modal-close,[data-theme="dark"] .mini-button,[data-theme="dark"] .department-edit input:disabled{background:#304437;border-color:#4a624e;color:#d3e9d0}
[data-theme="dark"] .mini-button:hover:not(:disabled){background:#3d5943}
[data-theme="dark"] .ghost-icon{color:#aec6aa}
[data-theme="dark"] .ghost-icon:hover{background:#493a34;color:#efb19c}
[data-theme="dark"] .current-week-button{background:#294331;border-color:#426548;color:#d7f0d3}
[data-theme="dark"] .current-week-button:hover:not(:disabled){background:#33543a}
[data-theme="dark"] .current-week-button:disabled{background:#223127;border-color:#37493a;color:#93a793}
[data-theme="dark"] .toast{background:#416e4d;color:#fff}
@media(max-width:720px){[data-theme="dark"] .main-nav{background:#17241c;border-color:#344738;box-shadow:0 -4px 18px #07100a50}}
@media(max-width:600px){[data-theme="dark"] .day-heading{border-color:#344738}}
