/* Patch 3: scoped Weekly Meal Ideas navigation, shared across both roles. */
.weekly-period-accordion{margin:10px 0;border:1px solid #dce4d4;border-radius:16px;background:#fffdf8;overflow:hidden;box-shadow:none}
.weekly-period-accordion--active{border-color:#d1dec5}
.weekly-period-accordion--past{border-color:#e3e8de;background:#fffefa}
.weekly-period-accordion>.food-history-row{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:54px;padding:14px 18px;margin:0;border:0;border-radius:15px;background:transparent;color:#36552a;font:inherit;font-size:16px;font-weight:600;text-align:left;box-shadow:none;cursor:pointer}
.weekly-period-accordion--active>.food-history-row{background:#f0f5e9}
.weekly-period-accordion>.food-history-row[aria-expanded=true]{border-radius:15px 15px 0 0}
.weekly-period-accordion>.food-history-row>.icon{width:20px;height:20px;color:#71945b;flex-shrink:0;transform:none}
.weekly-period-accordion>.food-history-row[aria-expanded=true]>.icon{transform:rotate(90deg)}
.weekly-period-accordion>.food-history-row:hover{background:#eaf1e2}
.weekly-period-accordion>.food-history-row:focus-visible{outline:2px solid #64824f;outline-offset:-4px}
.weekly-period-accordion>.weekly-period-content{margin:0;padding:16px 16px 20px;background:#fffdf8;border-top:1px solid #dce4d4;box-shadow:none}
.weekly-period-draft{display:inline-block;margin-left:10px;padding:3px 8px;border-radius:20px;background:#eef1e9;color:#64735c;font-size:11px;font-weight:500;vertical-align:middle}
.weekly-periods>.food-week-history,.diet-food-screen>.diet-food-history{margin-top:24px}
.weekly-periods>.food-week-history>h2,.diet-food-screen>.diet-food-history>h2{margin:0 0 10px;font-size:18px;font-weight:800;color:#36552a}
@media(max-width:420px){.weekly-period-accordion>.food-history-row{padding:13px 14px;font-size:16px}.weekly-period-accordion>.weekly-period-content{padding-inline:12px}}

.weekly-live{min-width:0}.weekly-live input,.weekly-live textarea{max-width:100%;min-width:0}.weekly-live .pro-food-item>div{display:flex;flex-wrap:wrap;gap:5px}.weekly-live .pro-food-template__row{display:flex;flex-wrap:wrap;gap:8px}.weekly-live .pro-food-read-group li{overflow-wrap:anywhere}.weekly-print-overlay{position:fixed;inset:0;z-index:160;background:#26332388;display:grid;place-items:center;padding:18px}.weekly-print-overlay>.weekly-print-dialog{background:#fffdf8;border-radius:20px;max-width:850px;width:100%;max-height:90dvh;overflow:auto;padding:24px}.diet-food-preview-actions{display:flex;justify-content:flex-end;gap:12px}.weekly-live button:focus-visible{outline:2px solid #64824f;outline-offset:2px}
@media(max-width:560px){.weekly-live .pro-food-period{flex-wrap:wrap}.weekly-live .pro-food-item{display:flex;flex-direction:column;align-items:stretch}.weekly-live .pro-food-editor__actions{flex-wrap:wrap}.weekly-print-overlay>.weekly-print-dialog{padding:14px}.weekly-live .pro-food-top-actions{flex-wrap:wrap}}
@media print{html:not(.is-printing-diet-food) #print-root{display:none!important}html.is-printing-diet-food #print-root{height:auto!important;overflow:visible!important}.diet-food-print__group{break-inside:auto!important}.diet-food-print__group h2{break-after:avoid}.diet-food-print li{break-inside:avoid}}

/* Client-only header: full-width rows keep long back text separate from title. */
.weekly-client-header{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:24px;min-width:0}
.weekly-client-header__back{display:inline-flex;align-items:center;min-height:44px;max-width:100%;color:var(--green-deep);font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.weekly-client-header__back:focus-visible{outline:2px solid #64824f;outline-offset:3px;border-radius:4px}
.weekly-client-header__title{margin:0;color:var(--green-deep);font-size:clamp(24px,4vw,32px);line-height:1.2;max-width:100%;overflow-wrap:anywhere}
