/* Scope all new presentation to weekly settings and its optional day editor. */
#weekly-configuration{display:grid;gap:14px}#week-setup>summary small,#week-days button small{display:block;margin-top:6px;font-weight:400;font-size:13px}
#weekly-configuration .weekly-day-selection,#weekly-configuration .weekly-settings-panel{border:1px solid #34516a;border-radius:10px;background:#162536;overflow:hidden}
#weekly-configuration .weekly-day-selection,#weekly-configuration .weekly-panel-body{padding:16px}
#weekly-configuration .weekly-settings-panel>summary{background:#1565D8;color:white;padding:14px 16px;font-size:18px;line-height:1.4}
#weekly-configuration summary small{display:block;font-size:13px;font-weight:400;margin:4px 0 0 18px;color:#fff}
#weekly-configuration summary::marker,.weekly-override-editor summary::marker{color:#80D94A}
#weekly-configuration label,.weekly-override-editor label{color:#38BDF8;font-size:14px}#weekly-configuration input,#weekly-configuration select,.weekly-override-editor input,.weekly-override-editor select{color:#fff;width:100%;min-width:0;box-sizing:border-box}
#weekly-configuration .weekly-grid,.weekly-override-editor .weekly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
#weekly-configuration .weekly-targets,.weekly-override-editor .weekly-targets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#weekly-configuration .weekly-targets label,.weekly-override-editor .weekly-targets label{padding:10px;background:#1c354b;border:1px solid #34516a;border-radius:7px;color:#fff}#weekly-configuration .weekly-targets label:first-child,.weekly-override-editor .weekly-targets label:first-child{background:#1565D8}
#weekly-configuration .weekly-targets input,.weekly-override-editor .weekly-targets input{font-size:20px;font-weight:700;padding:6px}
#weekly-configuration .weekly-day-buttons{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}#weekly-configuration .weekly-day-buttons button{background:#1c354b;border:1px solid #34516a;padding:12px 4px;border-radius:7px;color:#fff}#weekly-configuration .weekly-day-buttons small{display:block;font-size:12px;margin-top:5px}
#weekly-configuration [data-select-day][aria-pressed=true]{background:#1565D8}#weekly-configuration [data-train-day][aria-pressed=true]{background:#80D94A;color:#071421}
#weekly-configuration .weekly-slot,.weekly-override-editor .weekly-slot{display:grid;grid-template-columns:1fr 1.2fr 1fr auto;gap:10px;align-items:end;margin:10px 0}#weekly-configuration .weekly-slot label:first-child,.weekly-override-editor .weekly-slot label:first-child{color:#80D94A}
#weekly-configuration .weekly-allergens,.weekly-override-editor .weekly-allergens{display:flex;flex-wrap:wrap;gap:12px}#weekly-configuration .weekly-allergens label,.weekly-override-editor .weekly-allergens label{display:flex;align-items:center;gap:6px;color:#fff}#weekly-configuration input[type=checkbox],.weekly-override-editor input[type=checkbox]{width:18px;height:18px}
#weekly-configuration fieldset,.weekly-override-editor fieldset{border:1px solid #34516a;margin:14px 0;padding:12px}#weekly-configuration .weekly-applies{color:#80D94A}#weekly-configuration .weekly-override-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #34516a;padding:12px 0}#weekly-configuration .weekly-override-row>span{flex:1}#weekly-configuration .weekly-override-row small{display:block;color:#b7c9d9;margin-top:5px}
#weekly-configuration .muted,.weekly-override-editor .muted{font-size:14px;line-height:1.5}#weekly-configuration .weekly-guidance{margin:16px 0}#weekly-configuration h3{margin:16px 0 12px}#week-workspace #week-generate{background:#1565D8}#week-workspace #week-days button{border-radius:7px}
@media(max-width:700px){#weekly-configuration .weekly-slot,.weekly-override-editor .weekly-slot{grid-template-columns:1fr 1fr}#weekly-configuration .weekly-day-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}#weekly-configuration .weekly-targets,.weekly-override-editor .weekly-targets{grid-template-columns:repeat(2,minmax(0,1fr))}#weekly-configuration .weekly-grid,.weekly-override-editor .weekly-grid{grid-template-columns:1fr}#weekly-configuration .weekly-override-row{flex-wrap:wrap}}
#weekly-configuration summary,#week-setup>summary,#weekly-configuration summary small,#week-setup>summary small{text-transform:none;letter-spacing:normal}
#weekly-save-actions{display:flex;flex-wrap:wrap;gap:8px}#weekly-save-actions::after{content:"";flex-basis:100%;order:1}#weekly-save-actions #open-weekly-overview,#weekly-save-actions #print-weekly-plan,#weekly-save-actions #week-shopping{order:2}#weekly-save-actions #open-weekly-overview{background:#1565D8}
/* Compact, full-width weekly panel headers; override inherited generic details padding. */
html[data-theme="6"] #week-setup #weekly-configuration{gap:12px}
html[data-theme="6"] #week-setup #weekly-configuration details.weekly-settings-panel{padding:0;margin:0;border-radius:12px;border:1px solid #34516a;overflow:hidden}
html[data-theme="6"] #week-setup #weekly-configuration details.weekly-settings-panel>summary{position:relative;display:block;list-style:none;margin:0;padding:14px 42px 14px 16px;border:0;border-radius:11px;background:#1565D8;font-size:17px;text-transform:none}
html[data-theme="6"] #week-setup #weekly-configuration details.weekly-settings-panel[open]>summary{border-radius:11px 11px 0 0}
#weekly-configuration details.weekly-settings-panel>summary::-webkit-details-marker{display:none}
#weekly-configuration details.weekly-settings-panel>summary::marker{content:''}
#weekly-configuration details.weekly-settings-panel>summary::before{content:none}
#weekly-configuration details.weekly-settings-panel>summary::after{content:'';position:absolute;right:18px;top:22px;width:8px;height:8px;border-right:2px solid #80D94A;border-bottom:2px solid #80D94A;transform:rotate(45deg)}
#weekly-configuration details.weekly-settings-panel[open]>summary::after{transform:rotate(225deg)}
html[data-theme="6"] #weekly-configuration details.weekly-settings-panel>summary small{margin:5px 0 0;font-size:13px;line-height:1.4;color:#fff}
html[data-theme="6"] #weekly-configuration [data-train-day][aria-pressed=true],html[data-theme="6"] #weekly-configuration [data-train-day][aria-pressed=true] small{color:#071421;font-weight:700}
#week-workspace .weekly-generation-actions{display:flex;flex-wrap:wrap;gap:8px}
#week-workspace .weekly-generation-actions #week-generate{flex:1 0 100%;width:100%;min-height:52px;font-size:17px;background:#1565D8;border-radius:8px}
#week-workspace #weekly-save-actions,#week-workspace #weekly-output-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#week-workspace #weekly-save-actions::after{content:none}
#week-workspace #weekly-output-actions button{order:0}
#weekly-configuration [data-reset-settings]{justify-self:start;width:auto}
#weekly-restriction-status:empty{display:none}
#weekly-configuration .weekly-grid>label,.weekly-override-editor .weekly-grid>label{display:flex;flex-direction:column;gap:6px;justify-content:flex-start}
