.startweek-tabs{margin-bottom:24px;display:flex;gap:8px;flex-wrap:wrap}.startweek-tabs button{min-height:44px;flex:0 1 auto}.startweek-intro{display:flex;align-items:center;gap:18px;padding:22px;background:#f5f6f5;border:1px solid var(--line,#e4e7e5);border-radius:12px;margin-bottom:22px}.startweek-intro>div{flex:1}.startweek-intro h2{font-size:18px;margin:7px 0}.startweek-intro p,.startweek-lead{color:#69716c;font-size:14px;line-height:1.65}.startweek-panel{margin-top:16px;overflow:hidden}.startweek-progress{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;margin-top:18px;color:#68716c}.startweek-success{background:#edf5ee;color:#31533a;padding:14px;border-radius:8px;margin-top:16px;line-height:1.6}.startweek-day{border-top:1px solid #e4e7e5}.startweek-day summary{display:flex;align-items:center;gap:16px;padding:20px 24px;cursor:pointer;list-style:none;min-height:64px}.startweek-day summary::-webkit-details-marker{display:none}.startweek-day summary>span:first-child{font-size:16px;font-weight:650;flex:1}.startweek-day summary small{font-size:12px;color:#768079}.startweek-day[open] summary{background:#f6f7f6}.startweek-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:24px}.startweek-fields .full{grid-column:1/-1}.startweek-fields textarea{font-size:16px;resize:vertical;min-height:96px}.startweek-entry small{font-size:12px;color:#69716c}.startweek-entry p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;margin-top:6px}.startweek-footer{border-top:1px solid #e4e7e5;padding:24px}.startweek-footer>div{display:flex;justify-content:flex-end;gap:12px;margin-top:16px;flex-wrap:wrap}.startweek-footer .muted{font-size:13px;line-height:1.6}.startweek-list{border:1px solid #e4e7e5;border-radius:12px;overflow:hidden}.startweek-row{display:flex;align-items:center;gap:16px;width:100%;padding:20px 24px;border:0;border-bottom:1px solid #e4e7e5;background:#fff;text-align:left;cursor:pointer;color:inherit}.startweek-row:last-child{border-bottom:0}.startweek-row:hover{background:#f6f7f6}.startweek-row>span:first-child{flex:1;min-width:0}.startweek-row strong{display:block;font-size:15px}.startweek-row small{display:block;margin-top:6px;color:#69716c;font-size:12px}.startweek-row:focus-visible,.startweek-day summary:focus-visible{outline:2px solid #171b1e;outline-offset:-3px}@media(max-width:600px){.startweek-tabs{gap:6px}.startweek-tabs button{flex:1;font-size:13px;padding:10px 8px}.startweek-fields{grid-template-columns:1fr;padding:18px;gap:16px}.startweek-day summary{padding:18px}.startweek-footer{padding:18px}.startweek-footer>div{flex-direction:column}.startweek-footer .btn{width:100%}.startweek-row{padding:18px 14px;gap:10px}.startweek-row .badge{font-size:10px;white-space:normal;max-width:100px}.startweek-intro{flex-wrap:wrap;padding:18px}.startweek-intro>div{flex-basis:100%}.startweek-intro .btn{margin-left:auto}}



/* Daily diary: scoped so the intake week keeps its own layout. */
.food-diary{margin-bottom:28px;border:1px solid #e1e5e4;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 3px 12px #17201b04}
.diary-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:28px 28px 24px;background:linear-gradient(120deg,#f4f6f4,#fff 75%);border-bottom:1px solid #e7ebe8}
.diary-eyebrow{display:block;font-size:10px;font-weight:750;letter-spacing:1.8px;color:#63786b;margin-bottom:10px}.diary-header h2{font-size:23px;font-weight:700;letter-spacing:-.7px;line-height:1.25;margin:0}.diary-header p{font-size:14px;color:#6b7470;line-height:1.6;margin:9px 0 0}.diary-header>.badge{margin-top:3px;white-space:nowrap}
.diary-calendar{padding:20px 28px 0}.diary-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:18px}.diary-date-nav{display:flex;align-items:center;gap:5px;border:1px solid #e3e7e4;border-radius:10px;padding:4px;background:#fff;flex-shrink:0}.diary-date-field input{font:inherit;font-size:14px;font-weight:600;background:transparent;border:0;padding:7px 6px;min-height:36px;width:150px;color:#252e28;box-sizing:border-box}.diary-arrow{min-height:36px!important;width:36px!important;height:36px!important;padding:8px!important;border:0!important;background:transparent!important;border-radius:7px!important}.diary-arrow:hover{background:#f0f3f1!important}.diary-arrow span{display:none}.diary-arrow svg{width:18px;height:18px}.diary-today{border-radius:9px!important}.diary-today-label{font-size:12px;font-weight:600;color:#4f6758;background:#edf3ee;padding:8px 11px;border-radius:8px}.diary-day-label{margin-left:auto;font-size:13px;color:#747c77;text-transform:capitalize}
.diary-week{display:flex;gap:7px;overflow-x:auto;padding:0 0 18px;scrollbar-width:thin;border-bottom:1px solid #e7ebe8}.diary-week-day{flex:1 0 42px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:82px;border:1px solid transparent;border-radius:11px;background:#f5f7f5;color:#69746c;cursor:pointer;font:inherit;transition:background .15s,color .15s}.diary-week-day>span{font-size:10px;font-weight:650;letter-spacing:.7px}.diary-week-day strong{font-size:20px;letter-spacing:-.6px;color:#29332c;font-weight:650}.diary-week-day i{width:4px;height:4px;border-radius:50%;background:transparent}.diary-week-day i.recorded{background:#5c8267}.diary-week-day:hover{background:#eaf0eb}.diary-week-day.selected{background:#1b2420;color:#b6c4ba;border-color:#1b2420}.diary-week-day.selected strong{color:#fff}.diary-week-day.selected i.recorded{background:#b7d3bd}.diary-week-day:focus-visible,.diary-arrow:focus-visible{outline:2px solid #65816d;outline-offset:2px}
.diary-content-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 28px 0}.diary-content-heading h3{font-size:15px;font-weight:650;margin:0;letter-spacing:-.2px}.diary-content-heading>span{font-size:12px;color:#7d857f}.food-diary .diary-meals{padding:18px 28px 26px;gap:14px}.diary-meal-card{border:1px solid #e5e9e6;border-radius:12px;padding:18px!important;margin:0;background:#fff;min-width:0}.diary-meal-heading{display:flex!important;align-items:center;gap:10px;color:#26332a!important;font-size:14px!important;font-weight:650!important;margin-bottom:12px!important;line-height:1.4}.diary-meal-heading h3{font:inherit;margin:0}.diary-meal-number{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:#eef3ef;border-radius:8px;font-size:10px!important;letter-spacing:.2px;font-weight:700;color:#67816f;flex-shrink:0}.food-diary .diary-meal-card textarea{background:#f8faf8;border:1px solid #e8ede9;border-radius:8px;padding:12px;min-height:92px;line-height:1.65;width:100%;box-sizing:border-box;font-size:15px;color:#2b342e}.food-diary .diary-meal-card textarea::placeholder{color:#929a94;font-size:13px}.food-diary .diary-meal-card textarea:focus{border-color:#8da694;outline:2px solid #e7eee9;outline-offset:0}.food-diary .diary-meal-card p{font-size:14px;line-height:1.75;margin:0;padding-left:38px}.diary-meal-card.no-entry p{color:#9aa29c}.diary-meal-card.diary-notes{background:#f8faf8}.food-diary .diary-save{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 28px;background:#f7f9f7;border-top:1px solid #e5eae6}.food-diary .diary-save-copy{display:block;margin:0}.diary-save-copy strong{font-size:13px;font-weight:650;color:#394b3d}.diary-save-copy p{font-size:12px;color:#7a847d;line-height:1.6;margin:4px 0 0}.diary-save>.form-message{flex:0 0 100%;font-size:13px;margin:0}.diary-save>.form-message:empty{display:none}
.diary-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:160px;margin:18px 28px 26px;padding:24px;border:1px dashed #dce4de;border-radius:12px;background:#f9fbf9}.diary-empty-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf2ee;color:#6f8776;margin-bottom:12px}.diary-empty-symbol svg{width:23px;height:23px}.diary-empty h3{font-size:15px;margin:0 0 7px;font-weight:650;color:#34453a}.diary-empty p{font-size:13px;line-height:1.6;max-width:340px;color:#87918a;margin:0}.diary-history{border-top:1px solid #e7ebe8;padding:0 28px}.diary-history summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:17px 0;font-size:12px;font-weight:600;color:#637469}.diary-history summary>span{font-size:11px;background:#f0f3f0;border-radius:5px;padding:3px 7px;color:#7b887e}.diary-history>div{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 18px}
@media(max-width:700px){.diary-header{padding:22px 18px 20px;flex-wrap:wrap;gap:12px}.diary-header h2{font-size:21px}.diary-header p{font-size:13px}.diary-header>.badge{font-size:10px}.diary-calendar{padding:16px 18px 0}.diary-toolbar{flex-wrap:wrap;gap:8px}.diary-date-nav{flex:1;justify-content:space-between}.diary-date-field{min-width:0}.diary-date-field input{width:135px;font-size:14px}.diary-day-label{display:none}.diary-today{padding:9px 10px!important;font-size:12px!important}.diary-week{gap:5px}.diary-week-day{min-height:72px}.diary-week-day strong{font-size:18px}.diary-content-heading{padding:20px 18px 0;align-items:flex-start;flex-direction:column;gap:5px}.food-diary .diary-meals{padding:16px 18px 20px;grid-template-columns:1fr;gap:12px}.diary-meal-card{padding:15px!important}.food-diary .diary-meal-card textarea{font-size:16px}.food-diary .diary-save{padding:18px;gap:15px}.food-diary .diary-save>.btn{width:100%}.diary-empty{margin:16px 18px 20px;padding:24px 16px;min-height:150px}.diary-history{padding:0 18px}}

.food-diary .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

@media(max-width:700px){.diary-week{overflow-x:visible}.diary-week-day{flex:1 1 0;min-width:0;padding:10px 0;min-height:68px}.diary-today-label{display:none}}
