/* Member weekly plan: preferred day axis; shared meal cells and full-width details. */
.member-plan-layout{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#edf0e6}
.member-plan-layout button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 13px;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:13px}
.member-plan-layout button.active{background:var(--paper);color:var(--sage-deep);box-shadow:0 1px 4px #26392c12}
.member-plan-layout .icon{width:16px;height:16px}
.member-week-hint{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 14px}
.member-week-hint>span{display:none}
.member-week-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:16px;background:var(--paper);scroll-padding-left:112px}
.member-week-scroll:focus-visible{outline:2px solid var(--sage-deep);outline-offset:3px}
.member-week-table{width:100%;min-width:1064px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.member-week-table th,.member-week-table td{padding:0;text-align:left;vertical-align:top;border-right:1px solid var(--line);border-bottom:1px solid var(--line);white-space:normal}
.member-week-table tr>*:last-child{border-right:0}
.member-week-table tbody tr:last-child>*{border-bottom:0}
.member-week-table thead th{background:#eaf0e1;padding:16px 12px;color:#37523e;font-size:12px}
.member-week-table th{text-transform:none;letter-spacing:0}
.member-week-table th strong{display:block;font-weight:600;overflow-wrap:anywhere}
.member-week-table th>span:not(.member-week-meal-icon){display:block;margin-top:6px;font-size:11px;font-weight:400;color:var(--muted)}
.member-week-table th[aria-current="date"]{background:#dce8ce;box-shadow:inset 0 3px #5d7c4e}
.member-week-table tr>th:first-child{position:sticky;left:0;z-index:1;width:112px;border-right:1px solid #d6ddcc;box-shadow:3px 0 5px #26392c05}
.member-week-table tbody th{background:#f5f5ed;padding:17px 12px;font-size:12px}
.member-week-table .member-week-meal-icon{display:flex;color:#6c8059;margin:0 0 10px}
.member-week-meal-icon .icon{width:19px;height:19px}
.member-week-cell{display:flex;flex-direction:column;gap:16px;justify-content:space-between;width:100%;min-height:142px;height:100%;padding:17px 12px;background:transparent;text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.member-week-title{display:block;line-height:1.65;font-size:13px;overflow-wrap:anywhere}
.member-week-table td.is-selected{background:#edf3e6;box-shadow:inset 0 0 0 2px #7f996a}
.member-week-cell:hover{background:#f0f4e9}
.member-week-cell:focus-visible{outline:2px solid var(--sage-deep);outline-offset:-3px}
.member-week-cell-foot{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%;min-height:17px}
.member-week-cell-foot .icon{width:14px;height:14px;flex-shrink:0}
.member-week-done,.member-week-note{display:flex;align-items:center;gap:4px;font-size:10px;color:#49653c}
.member-week-note{color:#796844}
.member-week-open{display:flex;margin-left:auto;color:#718365}
.member-week-empty{display:block;padding:20px 12px;color:var(--muted);font-size:12px;line-height:1.6}
.member-week-detail{margin-top:22px;scroll-margin-top:90px}
.member-week-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.member-week-detail-head h3{font-size:17px;color:var(--sage-deep);scroll-margin-top:85px}
.member-week-detail-head .text-link{min-height:44px}
.member-week-detail .member-meal{border-color:#cbd9bc}
@media(max-width:1350px){.member-week-hint>span{display:block}.plan-header .actions{flex-wrap:wrap}}
@media(max-width:700px){
 .member-week-table{min-width:1366px}
 .member-week-table tr>th:first-child{width:106px}
 .member-week-scroll{scroll-padding-left:106px;border-radius:12px}
 .member-week-table thead th{padding:15px 12px;font-size:13px}
 .member-week-table tbody th{padding:16px 10px;font-size:12px}
 .member-week-cell{padding:17px 14px;min-height:146px}
 .member-week-title{font-size:14px}
 .member-week-hint{font-size:12px}
 .member-plan-layout{flex:1}
 .member-plan-layout button{flex:1}
 .member-week-detail-head h3{font-size:16px}
}

.member-week-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}.member-week-toolbar>span{font-size:13px;font-weight:500;color:var(--muted)}.member-week-orientation button{min-height:44px}.member-week-table.days-side{min-width:calc(112px + var(--week-meal-count) * 180px)}.member-week-table.days-side tbody th[aria-current="date"]{background:#dce8ce;box-shadow:inset 3px 0 #5d7c4e}.member-week-table.days-side .member-week-cell{min-height:130px}
@media(max-width:700px){.member-week-toolbar{align-items:stretch;gap:9px}.member-week-toolbar>span{width:100%;font-size:12px}.member-week-orientation{width:100%;flex:auto}.member-week-orientation button{font-size:12px;padding:8px;flex:1}.member-week-table.days-side{min-width:calc(106px + var(--week-meal-count) * 180px)}}
