:root{--paper:#f6f4ee;--ink:#353b33;--sub:#6c7267;--sand:#e9e4d9;--olive:#5b694e;--line:#deded3;--white:#fffef9;--warm:#896847}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:350}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink);padding:10px 17px;min-height:44px;transition:background .15s}button:hover{background:var(--sand)}button:focus-visible,a:focus-visible{outline:2px solid var(--olive);outline-offset:4px}button:disabled{opacity:.55;cursor:wait}a{color:var(--olive)}header{max-width:1120px;margin:auto;padding:26px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{color:var(--ink);text-decoration:none;border:1px solid var(--ink);padding:8px 16px;display:inline-flex;flex-direction:column;line-height:1.45;font-size:18px;letter-spacing:.23em;font-weight:350;white-space:nowrap;text-align:center}.brand.small{font-size:11px;padding:6px 11px}.header-end{display:flex;gap:30px;align-items:center}.eyebrow{font-size:11px;letter-spacing:.17em;color:var(--sub);text-transform:uppercase}.quiet,.text{background:transparent;border:0}.text{padding:6px 0;text-decoration:underline;text-underline-offset:5px}.local-note{background:var(--sand);font-size:12px;text-align:center;padding:8px 16px;color:var(--sub)}main{max-width:1040px;margin:auto;padding:42px 24px 64px;min-height:65vh}.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:60px;align-items:center;padding:40px 0 60px}.hero h1{font-size:clamp(38px,5vw,65px);line-height:1.15;font-weight:300;letter-spacing:-.03em;margin:22px 0}.hero p{max-width:450px;color:var(--sub)}.hero-art{height:380px;background:var(--sand);border-radius:180px 180px 8px 8px;display:grid;place-items:center;position:relative;overflow:hidden}.hero-art:before{content:"";position:absolute;width:250px;height:250px;border:1px solid #c3cbb8;border-radius:50%;top:50px;left:40px}.hero-art .editorial{font-size:25px;max-width:170px;line-height:1.5;text-align:center;position:relative;font-weight:300}.leaf{font-size:100px;line-height:1;color:var(--olive);opacity:.7;font-weight:200}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.primary{background:var(--olive);color:white;border-color:var(--olive)}.primary:hover{background:#47563e}h1,h2,h3{font-weight:350;line-height:1.3}h1{font-size:34px}h2{font-size:25px}h3{font-size:19px}.card{background:var(--white);border:1px solid var(--line);border-radius:9px;padding:24px;margin-bottom:18px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid var(--line);padding-top:24px}.stat strong{font-size:34px;font-weight:300;display:block;line-height:1.5}.stat span,.muted{color:var(--sub);font-size:14px}.narrow{max-width:590px;margin:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-size:14px;color:var(--sub);margin:10px 0}input,select,textarea{display:block;width:100%;margin:7px 0 0;border:1px solid var(--line);border-radius:5px;padding:11px;background:var(--white);color:var(--ink);min-height:44px}input[type=checkbox]{width:20px;min-height:20px;display:inline-block;margin-right:8px;vertical-align:middle}.honey{position:absolute;left:-9999px;opacity:0}.avatar{display:inline-grid;place-items:center;width:50px;height:50px;border-radius:50%;background:var(--sand);font-size:19px;margin-right:12px;flex-shrink:0}.person{display:flex;align-items:center}.topline{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--line);padding:18px 0;margin-bottom:26px}.tabs button{border:0;background:transparent;font-size:14px}.tabs button.active{color:var(--olive);background:var(--sand)}.badge{display:inline-block;font-size:11px;border:1px solid var(--line);padding:3px 8px;border-radius:20px;color:var(--sub);white-space:normal}.notice{border-left:3px solid var(--warm);padding:14px 18px;background:var(--sand);font-size:14px;margin:15px 0}.help{background:var(--olive);color:white;padding:14px 18px;border-radius:6px;margin-bottom:20px}.meal{border-top:1px solid var(--line);padding:18px 0}.meal:first-child{border:0}.meal-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.meal-head h3{margin:0}.meal ul{padding-left:19px;font-size:14px;color:var(--sub)}.meal.done{opacity:.6}.water{display:flex;flex-wrap:wrap;gap:8px}.water button{min-width:38px;padding:8px;border-radius:50%;width:42px;height:42px;min-height:44px}.water .filled{background:var(--olive);color:var(--white)}.days{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 24px}.days button{padding:6px 12px}.days .selected{background:var(--sand)}.progress-layout{display:grid;grid-template-columns:150px minmax(0,1fr);gap:30px}.body-reference{width:130px;height:260px;color:var(--olive)}.history{overflow:auto;max-width:100%}table{border-collapse:collapse;min-width:480px;width:100%;font-size:13px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:10px;font-weight:400}.line-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.line-item:last-child{border:0}.content-page{white-space:pre-line}.fine{font-size:12px;color:var(--sub)}#message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:min(540px,calc(100% - 32px));border:1px solid var(--warm);background:var(--white);padding:16px 24px;box-shadow:0 8px 40px #353b3320;z-index:10}.loading{padding:80px;text-align:center;color:var(--sub)}footer{border-top:1px solid var(--line);text-align:center;padding:30px 24px;background:var(--white)}footer p{font-size:13px;color:var(--sub)}.document{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.export{height:220px}.onboarding-count{height:3px;display:flex;gap:4px;margin:20px 0}.onboarding-count span{flex:1;background:var(--line)}.onboarding-count .done{background:var(--olive)}.staff-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0;border-bottom:1px solid var(--line)}.flex{display:flex;gap:10px;flex-wrap:wrap}button[data-action=logout]{font-size:13px}main[aria-busy=true]{opacity:.7;pointer-events:none}@media(max-width:700px){header{padding:20px}.header-end .eyebrow{display:none}main{padding:24px 16px 42px}.hero{grid-template-columns:1fr;gap:24px;padding:20px 0 32px}.hero-art{height:190px;border-radius:100px 100px 8px 8px;max-width:420px;width:100%;margin:auto}.hero-art:before{width:150px;height:150px;left:calc(50% - 75px);top:20px}.hero-art .editorial{font-size:20px;max-width:280px}.leaf{font-size:50px}.grid{grid-template-columns:1fr;gap:0}.card{padding:18px}.form-grid{grid-template-columns:1fr 1fr;gap:10px}.stats .stat strong{font-size:27px}.stats .stat span{font-size:11px}.progress-layout{grid-template-columns:100px minmax(0,1fr);gap:14px}.body-reference{width:90px;height:220px}.tabs{gap:0}.tabs button{padding:8px 10px}.brand{font-size:14px;padding:7px 11px}.staff-row{align-items:flex-start;flex-wrap:wrap}h1{font-size:29px}.loading{padding:40px 0}}@media(max-width:350px){.form-grid{grid-template-columns:1fr}.progress-layout{grid-template-columns:minmax(0,1fr)}.body-reference{height:160px;width:80px}.stat strong{font-size:24px}.actions button{width:100%}}

.grid>*,.progress-layout>*{min-width:0}.avatar{object-fit:cover}.history{min-width:0}input,textarea,select{min-width:0}

.trainer-summary {border-top:1px solid var(--line);padding:1rem 0}.trainer-summary meter {display:block;width:100%;height:1.4rem}.trainer-choices {display:grid;gap:1rem;margin:1rem 0}

.avatar[data-tone="sand"] {background:#e9e4d9;color:#353b33}.avatar[data-tone="warm"] {background:#896847;color:#fffef9}


/* Mobile-first visual audit 1 */
header{padding:14px 24px;min-width:0}
.header-end{position:relative;gap:8px;min-width:0}
#header-auth{white-space:nowrap}
.account-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:30;display:flex;flex-direction:column;min-width:168px;padding:7px;background:var(--white);border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 30px #353b331e}
.account-menu[hidden]{display:none}
.account-menu button{text-align:left;white-space:nowrap}
main{padding-top:24px;min-width:0;max-width:100%}
.tabs{padding:10px 0;margin-bottom:14px;gap:6px}
.menu-tools{justify-content:flex-end;margin:0 0 4px}
.menu-tools:empty{display:none}
.days{margin:12px 0 16px}
.card{padding:20px;margin-bottom:12px}
.meal{padding:12px 0}
.meal-head{flex-wrap:wrap}
.meal-head button{max-width:100%;white-space:normal}
.meal li,.card,.line-item,.topline{overflow-wrap:anywhere}
.topline>*,.person>div{min-width:0}
.measure-primary{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
.measure-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.measure-primary label,.measure-pair label{min-width:0}
.measure-pair input,.measure-primary input{width:100%}
@media(max-width:700px){
 header{padding:12px 14px}
 .brand{font-size:11px;padding:5px 8px;letter-spacing:.15em}
 main{padding:12px 12px 30px}
 .card{padding:15px 14px}
 .tabs button{flex:1;padding:7px 4px}
 .stats{gap:6px}
 .stats .stat strong{font-size:22px}
 .meal-head{align-items:start}
}
@media(max-width:360px){
 header{gap:6px}
 .brand{font-size:10px;letter-spacing:.10em}
 #header-auth{padding:8px 5px}
 .measure-pair{gap:8px}
}

/* Keep day selectors on one compact horizontal line */
.days{flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:thin;overscroll-behavior-inline:contain}
.days button{flex:0 0 auto;white-space:nowrap}

/* Approved Hybrid C. Existing forms and transactional handlers are retained. */
:root{--paper:#f6f5ee;--white:#fffef8;--ink:#29382b;--olive:#375d3b;--sand:#e8eddf;--line:#dfe3d6;--sub:#65715e}
body{font-weight:400;line-height:1.5}header{max-width:1040px;padding:16px 20px;gap:12px}.brand{border:0;padding:0;letter-spacing:0;text-align:left;line-height:1.2}.brand strong{font-size:19px;letter-spacing:.07em;font-weight:700}.brand small{font-size:10px;letter-spacing:.02em;margin-top:3px}.header-end .eyebrow{display:none}#header-auth{display:flex;align-items:center;gap:7px;padding:4px;max-width:50%;border-radius:12px}.header-end{max-width:55%}#header-auth{max-width:100%}#header-auth .avatar{width:34px;height:34px;margin:0;font-size:13px}#header-auth>span:not(.avatar){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-menu{max-width:calc(100vw - 32px)}main{max-width:1000px;padding:0 20px 36px}h1,h2,h3{font-weight:650}h1{font-size:28px}.member-view footer{margin-top:20px}.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#e9ecdf;border:0;border-radius:12px;padding:4px;margin:0 0 20px}.tabs button{min-height:44px;border-radius:9px;font-size:15px;font-weight:500}.tabs button.active{background:var(--olive);color:#fff}.stage-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:8px 0 14px}.stage-banner strong{font-weight:600}.stage-banner>span{border-radius:20px;background:#e9eedf;padding:4px 9px;font-size:11px;text-align:right}.ration-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.ration-title h1{margin:0 0 12px}.ration-title .text{font-size:12px;max-width:115px}.date-controls{display:flex;align-items:stretch;gap:8px;margin-bottom:14px;min-width:0}.date-controls .days{display:flex;flex:1;gap:7px;margin:0;min-width:0;padding-bottom:2px;scrollbar-width:none}.date-tile{display:flex;flex-direction:column;align-items:start;justify-content:center;min-height:62px;min-width:88px;padding:8px 12px;border-radius:13px;text-align:left;background:#fffef8}.date-tile span{font-size:12px;text-transform:capitalize}.date-tile strong{font-size:14px;white-space:nowrap}.date-tile.selected{background:var(--olive);color:white;border-color:var(--olive)}.calendar-control{position:relative;display:grid;place-items:center;width:52px;flex:0 0 52px;min-height:62px;margin:0;border:1px solid var(--line);border-radius:13px;background:var(--white);font-size:28px;color:var(--olive);overflow:hidden}.calendar-control input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.day-heading{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--sub);margin-bottom:10px}.day-heading span:first-child:first-letter{text-transform:uppercase}.menu-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px}.meal-list{min-width:0}.meal-card{border:1px solid #edf0e6!important;border-radius:16px;padding:14px;margin:0 0 10px;background:var(--white);box-shadow:0 3px 10px #35462d04}.meal-card.done{opacity:1;background:#f0f3e9}.meal-head{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;margin-bottom:8px}.meal-head h2{font-size:18px;margin:0}.meal-icon{width:42px;height:42px;object-fit:contain;flex:0 0 42px}.product-list{padding:0!important;margin:0 0 10px;list-style:none}.product-row{display:flex;align-items:center;gap:10px;padding:7px 0;font-size:14px;color:var(--ink)}.product-image{width:44px;height:44px;flex:0 0 44px;object-fit:contain;border-radius:11px;background:#f1f1e7}.product-name{flex:1;min-width:0;overflow-wrap:anywhere}.product-quantity{font-size:14px;flex:0 0 auto;white-space:nowrap;font-weight:600}.meal-actions{display:flex;gap:8px;margin-top:10px}.meal-actions button{flex:1;min-width:0;padding:8px 10px;font-size:13px;border-radius:11px;line-height:1.25;min-height:44px}.replace-button{background:#e3ebd9;border-color:#e3ebd9;color:#355b3c}.confirmed-button{background:#f8faf3;color:#52694c;border-color:#ccd7c1}.period-buttons{display:flex;gap:8px}.period-buttons button{flex:1;padding:8px}.period-buttons .selected{background:var(--sand)}.planning-card h2{font-size:18px}.planning-card .actions{margin:14px 0;gap:8px}.card{border-radius:15px}.vegetable-tip{background:#e6eddb;color:#395e3f}.vegetable-tip summary,.product-library summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:600}.vegetable-tip summary:after,.product-library summary:after{content:'⌄';font-size:20px}.vegetable-tip p{font-size:13px;line-height:1.65}.product-name .muted{display:block;font-size:11px}.line-item.product-row .text{font-size:14px;text-align:left;text-decoration:none}.line-item .product-quantity{margin-left:auto}.library-list{max-height:420px;overflow:auto}.library-list .product-row{border-bottom:1px solid var(--line)}.assembly-group{border:0;padding:0;margin:20px 0;min-width:0}.assembly-group legend{font-size:16px;font-weight:600}.compact-select{font-size:12px}.choice-list{max-height:460px;overflow-y:auto;margin:12px 0;padding:0 3px 0 0}.product-choice{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;margin:4px 0;min-height:68px;background:var(--white);border:1px solid transparent;cursor:pointer;color:var(--ink)}.product-choice:has(input:checked){background:#eaf0e3;border-color:#cedbbf}.product-choice>span{flex:1;min-width:0}.product-choice strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.product-choice small{display:block;font-size:13px;color:var(--sub)}.product-choice input[type=radio]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;accent-color:var(--olive)}.product-choice .product-image{width:48px;height:48px;flex-basis:48px}.image-placeholder{display:grid;place-items:center;color:#7b8470;font-size:26px}.product-row[hidden],.product-choice[hidden]{display:none!important}.measure-primary{grid-template-columns:minmax(0,1fr)}.measure-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.measure-pair label{font-size:13px}.product-search{font-size:16px}.replacement-sheet .actions{position:sticky;bottom:0;background:var(--white);padding:10px 0;margin-bottom:0}.replacement-sheet .actions .primary{flex:1}.tabs button,.meal-actions button,.calendar-control,.period-buttons button{touch-action:manipulation}
@media(max-width:700px){header{padding:14px 16px}.brand strong{font-size:17px}.brand small{font-size:9px}.header-end{max-width:52%}main{padding:0 12px 28px}.tabs{margin-bottom:17px}.stage-banner{font-size:12px}.stage-banner>span{font-size:10px;padding:4px 7px}.ration-title h1{font-size:25px}.menu-layout{grid-template-columns:minmax(0,1fr);gap:0}.meal-card{padding:13px 12px}.meal-icon{width:40px;height:40px;flex-basis:40px}.meal-head h2{font-size:17px}.meal-actions button{font-size:12px;padding:8px}.product-row{gap:8px;font-size:13px}.product-image{width:40px;height:40px;flex-basis:40px}.product-quantity{font-size:13px}.date-tile{min-width:86px}.menu-layout aside .card{margin-top:2px}.card{padding:15px 13px}}
@media(max-width:350px){header{padding:12px}.brand strong{font-size:15px}.brand small{font-size:8px}#header-auth{font-size:12px;gap:4px}#header-auth .avatar{width:29px;height:29px;flex-shrink:0}.ration-title h1{font-size:23px}.ration-title .text{font-size:11px;max-width:90px}.product-row{font-size:12px;gap:7px}.product-image{width:35px;height:35px;flex-basis:35px}.product-quantity{font-size:12px}.meal-actions button{font-size:11px}.stage-banner{gap:6px}.measure-pair{gap:8px}}

/* Final visual alignment against approved Hybrid C */
.meal-head{justify-content:flex-start}.ration-title{display:block}.ration-title h1{font-size:clamp(23px,6.3vw,28px);margin-bottom:12px}.day-heading{align-items:center;min-height:44px;margin-top:-4px;margin-bottom:8px}.day-mode button{min-height:44px;margin:0;padding:4px 0;font-size:12px}.meal-card .product-row{padding-top:4px;padding-bottom:4px}.meal-head{margin-bottom:4px}
