:root{--green:#294e3d;--green2:#476a52;--ink:#29382f;--muted:#7b8278;--bg:#f6f5ef;--line:#e5e7dc;--yellow:#f0dc93;--white:#fffef9;--orange:#c5774e;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #c59b32;outline-offset:3px}a{color:var(--green)}button{border:0;background:none}input,select,textarea{border:1px solid #dce0d4;background:#fffefb;border-radius:10px;padding:11px 12px;color:var(--ink);max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #8aa58c}input[type=checkbox]{accent-color:var(--green);width:18px;height:18px}textarea{width:100%;min-height:110px;line-height:1.7}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;font-weight:650}h2{font-size:19px;font-weight:650}h3{font-size:15px;font-weight:650}p{line-height:1.8}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-variant-numeric:tabular-nums}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;text-transform:uppercase;color:var(--muted)}.shell{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:34px 20px 22px;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#f9f9f3}.brand{display:flex;gap:11px;align-items:center;margin:0 7px 36px}.brand img{width:39px}.brand strong{display:block;font-size:20px;letter-spacing:1px}.brand span{font-size:9px;letter-spacing:2px;color:var(--muted)}.nav{display:grid;gap:7px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 15px;border-radius:10px;color:#758070}.nav button.active{background:var(--green);color:#fff;font-weight:600}.nav button:hover:not(.active){background:#ededdf}.icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sidebar-foot{margin-top:auto;padding-top:36px}.house-note{background:#eeefdf;padding:16px;border-radius:12px;line-height:1.9;font-size:12px;color:#6c775e}.account{display:flex;align-items:center;gap:10px;padding:20px 5px 0}.avatar{border-radius:50%;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#e4e6d4;color:#68744c;font-size:12px}.main{min-width:0;padding:0 42px 40px;max-width:1600px;width:100%;margin:auto}.topbar{height:80px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar .trail{color:var(--muted);font-size:12px}.topbar .trail span{color:var(--ink);margin-left:10px}.top-right{display:flex;align-items:center;gap:14px;font-size:12px}.live-dot{display:inline-block;width:6px;height:6px;background:#69895b;border-radius:50%;margin-right:6px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:32px 0 25px}.page-head p{margin-top:9px;font-size:13px;color:var(--muted)}.btn{border-radius:9px;padding:11px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:white;font-weight:550;font-size:13px;white-space:nowrap}.btn:hover{background:#385f49}.btn.secondary{background:var(--white);color:var(--ink);border:1px solid var(--line)}.btn.ghost{background:transparent;color:var(--green);padding:8px}.btn.danger{background:#f6e8e2;color:#a45139}.btn.small{padding:7px 11px;font-size:12px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hero{border-radius:var(--radius);background:#e9eddf;display:grid;grid-template-columns:1.15fr 1fr;overflow:hidden;min-height:232px;margin-bottom:24px}.hero-copy{padding:30px 34px;position:relative;z-index:1}.hero-copy .eyebrow{color:#6f8264;font-size:10px}.hero h2{font-size:31px;line-height:1.5;margin:13px 0 10px;letter-spacing:1px;font-weight:550}.hero p{color:#78826d;font-size:12px;max-width:420px;margin-bottom:22px}.hero-art{position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse,#dde4ce,transparent 70%)}.hero-art .food-art{width:330px;transform:rotate(-12deg);filter:drop-shadow(0 16px 16px #74816a22)}.floating-note{position:absolute;right:23px;bottom:24px;background:#fffdf4e8;border:1px solid #fff;padding:10px 14px;border-radius:10px;font-size:11px;box-shadow:0 6px 20px #53614d0c;transform:rotate(4deg)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:28px}.stat{background:var(--white);border:1px solid var(--line);border-radius:13px;padding:19px 20px}.stat-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.stat strong{font-size:29px;font-weight:550;display:block;margin:12px 0 7px;font-variant-numeric:tabular-nums}.stat strong span{font-size:12px;margin-left:5px;color:var(--muted);font-weight:400}.stat .small{font-size:11px;color:var(--muted)}.progress{height:5px;border-radius:5px;background:#e9ecdf;overflow:hidden;margin:10px 0 0}.progress i{height:100%;display:block;background:#98ad7e;border-radius:4px}.two-col{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:2px 0 16px;gap:10px}.section-title h2 small{font-size:12px;font-weight:400;color:var(--muted);margin-left:9px}.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);padding:22px}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.recipe-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--white);text-align:left;padding:0;position:relative;transition:transform .15s,box-shadow .15s}.recipe-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #3543300c}.recipe-image{background:#eeece0;height:154px;display:flex;align-items:center;justify-content:center;overflow:hidden}.recipe-image .food-art{width:200px;height:180px;filter:drop-shadow(0 5px 5px #4b503c15)}.recipe-body{padding:16px}.recipe-body p{font-size:11px;color:var(--muted);margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recipe-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font-size:11px;color:#6a795c}.badge{display:inline-flex;padding:4px 8px;border-radius:6px;font-size:10px;line-height:1.5;background:#edf1e5;color:#65804e}.badge.warm{background:#f4ecdb;color:#a28543}.badge.red{background:#f8e9e0;color:#b17351}.recipe-card>.badge{position:absolute;top:12px;left:12px}.mini-row{display:flex;gap:11px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.mini-row:last-child{border:0;padding-bottom:0}.mini-row .grow{flex:1}.mini-row strong{display:block;font-size:12px;margin-bottom:4px}.mini-row p{font-size:11px;color:var(--muted)}.mini-icon{background:#eef0e3;width:35px;height:35px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#849269}.callout{padding:14px 17px;background:#f0f0e3;border-radius:11px;font-size:12px;line-height:1.9;color:#717c62;margin:18px 0}.callout.warn{background:#f7ede1;color:#9c7342}.setup-banner{padding:12px 18px;border:1px solid #dfd7b8;background:#faf3d9;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;font-size:12px}.footer-note{font-size:10px;color:#979b90;margin-top:28px;display:flex;justify-content:space-between;gap:12px}.week-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px;flex-wrap:wrap}.pill-group{display:flex;background:#eaece0;border-radius:9px;padding:4px;gap:3px}.pill-group button{font-size:12px;padding:8px 12px;border-radius:7px}.pill-group button.selected{background:var(--white);box-shadow:0 2px 4px #00000008}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:11px}.day{background:#eeefe7;border-radius:13px;padding:13px 9px;min-height:300px;border:1px solid transparent}.day.today{border-color:#aab993;background:#e9eddf}.day-head{text-align:center;padding:3px 0 15px;font-size:11px;color:#89917e}.day-head strong{display:block;font-size:21px;color:var(--ink);margin-top:7px;font-weight:500}.meal-card{background:var(--white);border:1px solid #e0e3d6;padding:10px;border-radius:9px;margin-bottom:9px}.meal-card .food-art{width:100%;height:85px}.meal-card h3{font-size:12px;line-height:1.6}.meal-card p{font-size:10px;color:var(--muted);margin-top:5px}.meal-tag{font-size:10px;color:#8a947d}.meal-tools{display:flex;justify-content:space-between;margin-top:8px}.meal-tools button{font-size:11px;color:#7b8b6d;padding:4px}.add-meal{width:100%;border:1px dashed #c9d0bd;border-radius:8px;padding:12px 4px;font-size:11px;color:#83916f}.filters{display:flex;gap:10px;align-items:center;margin-bottom:22px;flex-wrap:wrap}.search{min-width:230px;flex:1}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--white)}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-weight:500;color:var(--muted);background:#f3f4ec}td,th{padding:15px 17px;border-bottom:1px solid var(--line);white-space:nowrap}tr:last-child td{border-bottom:0}td.name{white-space:normal;min-width:150px}td small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.checked{text-decoration:line-through;color:var(--muted)}.summary-bar{display:flex;align-items:center;justify-content:space-between;padding:22px;background:var(--green);color:#fff;border-radius:13px;margin-top:20px;gap:15px}.summary-bar strong{font-size:27px}.summary-bar p{font-size:11px;color:#c3d0be}.summary-bar .btn{background:#dce6cb;color:#294e3d}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:grid;gap:8px;font-size:12px;margin:15px 0}.field small{color:var(--muted);line-height:1.6}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.equipment-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.equipment{border:1px solid var(--line);padding:20px;border-radius:14px;background:var(--white);text-align:left}.equipment.on{border-color:#acba96;background:#f0f3e7}.equipment .icon{width:29px;height:29px;margin-bottom:16px}.equipment strong{display:block;margin-bottom:8px}.equipment span{font-size:11px;color:var(--muted)}.empty{padding:48px 20px;text-align:center;color:var(--muted);line-height:2;border:1px dashed #d5dacb;border-radius:14px}.list{display:grid;gap:12px}.prep-row{display:flex;gap:16px;align-items:start;padding:20px;border:1px solid var(--line);border-radius:13px;background:var(--white)}.number{font-family:Georgia,serif;font-size:28px;color:#a2af8f;min-width:30px}.prep-row p{font-size:12px;color:var(--muted);margin-top:6px}.prep-row .grow{flex:1}.recipe-detail-art{height:190px;border-radius:14px;background:#eef0e4;display:flex;align-items:center;justify-content:center;margin:10px 0 20px}.recipe-detail-art .food-art{height:210px;width:260px}.nutrition-bits{display:flex;gap:20px;flex-wrap:wrap;padding:16px 0}.nutrition-bits strong{font-size:20px;display:block;margin-bottom:5px}.nutrition-bits span{font-size:11px;color:var(--muted)}.step-row{padding:17px 0;display:flex;gap:14px;border-top:1px solid var(--line)}.step-row p{font-size:13px}.step-row .number{font-size:23px}.step-row small{color:var(--muted);display:block;margin-top:8px}dialog{padding:0;border:1px solid var(--line);border-radius:20px;width:min(740px,calc(100% - 32px));max-height:90vh;background:var(--white);color:var(--ink);box-shadow:0 24px 100px #1f302a35}dialog::backdrop{background:#243a2c55;backdrop-filter:blur(4px)}.dialog-head{padding:23px 26px 18px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--white);z-index:3;border-bottom:1px solid var(--line)}.dialog-body{padding:20px 26px 28px}.close{width:30px;height:30px;border-radius:50%;background:#eceee4;font-size:22px}.form-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.auth-logo{width:48px;margin-bottom:15px}.auth-form{max-width:420px;margin:auto}.auth-form h2{font-size:25px;margin-bottom:10px}.auth-page{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at top,#e4ead7,#f6f5ef 70%)}.auth-card{width:min(460px,100%);padding:40px;background:var(--white);border:1px solid var(--line);border-radius:22px}.json-editor{font-family:monospace;font-size:12px;height:340px}.ingredient-edit-row{display:grid;grid-template-columns:1fr 100px 28px;gap:8px;margin-bottom:9px}.step-edit{padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}.step-edit textarea{min-height:80px}.step-edit .field-row{grid-template-columns:1fr 1fr 1fr}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:14px 22px;border-radius:11px;background:#294e3d;color:#fff;box-shadow:0 8px 25px #21382720;z-index:1000;max-width:90%;font-size:13px;line-height:1.7}.cook-title{font-size:23px;line-height:1.8;margin:22px 0}.cook-stage{height:215px;display:grid;place-items:center;background:#eef0e5;border-radius:15px;position:relative;overflow:hidden}.cook-stage svg{height:180px;width:250px}.cook-stage .moving{transform-origin:125px 110px;animation:stir 2s ease-in-out infinite}.cook-stage.cut .moving{animation:chop 1s ease-in-out infinite}.cook-stage .steam{animation:steam 2.5s ease-in-out infinite}.cook-stage.paused *{animation-play-state:paused!important}.cook-stage.slow *{animation-duration:4s}.cook-stage .caption{position:absolute;bottom:12px;font-size:10px;color:#87916f}.timer{font-variant-numeric:tabular-nums;font-size:32px;letter-spacing:3px}.member-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.health-card{display:grid;grid-template-columns:110px 1fr;gap:20px;align-items:center}.ring{width:105px;height:105px;border-radius:50%;background:conic-gradient(#8fa574 var(--angle),#e9ecdf 0);padding:10px}.ring-center{background:var(--white);width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring-center strong{font-size:20px}.ring-center small{font-size:10px;color:var(--muted)}.mobile-brand{display:none}.source-link{font-size:11px}.mobile-nav-label{display:none}@keyframes stir{0%,100%{transform:rotate(-15deg)}50%{transform:rotate(20deg)}}@keyframes chop{0%,100%{transform:translateY(-10px)}50%{transform:translateY(8px)}}@keyframes steam{0%,100%{opacity:.25;transform:translateY(4px)}50%{opacity:.8;transform:translateY(-8px)}}@media(min-width:1400px){.main{padding-left:55px;padding-right:55px}.hero{min-height:250px}.recipe-image{height:180px}}@media(max-width:1150px){.main{padding:0 24px 30px}.shell{grid-template-columns:185px 1fr}.sidebar{padding:28px 13px}.two-col{grid-template-columns:1fr}.side-stack{display:grid;grid-template-columns:1fr 1fr;gap:20px}.week-grid{grid-template-columns:repeat(4,1fr)}.recipe-grid{gap:12px}.hero-copy{padding:26px}.hero h2{font-size:27px}.stat{padding:15px}.equipment-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.shell{display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;width:100%;height:65px;padding:5px 4px;background:#fffef9f5;border-top:1px solid var(--line);z-index:10;backdrop-filter:blur(12px)}.sidebar .brand,.sidebar-foot,.nav-label{display:none}.nav{display:flex;overflow-x:auto;gap:0}.nav button{flex:1;min-width:60px;padding:7px 5px;display:flex;flex-direction:column;gap:4px;font-size:10px;border-radius:8px}.nav button.active{background:#edf1e5;color:var(--green)}.nav .icon{height:18px;width:18px}.main{padding:0 18px 100px}.topbar{height:62px}.topbar .trail{display:none}.mobile-brand{display:block;font-size:17px;font-weight:600}.top-right .muted{display:none}.page-head{padding:23px 0 20px}.page-head h1{font-size:24px}.page-head p{font-size:11px}.page-head>.actions .secondary{display:none}.hero{min-height:235px;grid-template-columns:1fr .55fr}.hero-copy{padding:24px 20px}.hero h2{font-size:24px}.hero p{max-width:235px;font-size:11px}.hero-art .food-art{width:235px;position:absolute;left:-50px}.floating-note{right:9px;bottom:18px;font-size:9px;padding:8px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.stat{padding:15px}.stat strong{font-size:25px}.recipe-grid{grid-template-columns:1fr 1fr}.recipe-image{height:135px}.recipe-body{padding:13px}.recipe-body h3{font-size:13px}.recipe-bottom{font-size:10px}.side-stack{grid-template-columns:1fr}.week-grid{grid-template-columns:repeat(2,1fr)}.day{min-height:230px}.settings-grid{grid-template-columns:1fr}.equipment-grid{grid-template-columns:repeat(2,1fr)}.footer-note{display:block;line-height:2}.dialog-body{padding:18px}.dialog-head{padding:18px}.summary-bar{padding:18px}.summary-bar strong{font-size:23px}.search{min-width:160px}.setup-banner{align-items:flex-start}.setup-banner .btn{font-size:11px;padding:8px}.health-card{grid-template-columns:95px 1fr}.ring{width:90px;height:90px}.field-row{gap:10px}.auth-card{padding:28px}.cook-title{font-size:20px}.step-edit .field-row{grid-template-columns:1fr 1fr}.step-edit .field-row select{grid-column:1/-1}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media print{.sidebar,.topbar,.page-head .actions,.btn,.setup-banner,.footer-note{display:none!important}.shell{display:block}.main{padding:0}.table-wrap{overflow:visible}.summary-bar{color:black;background:white}}

@media(max-width:760px){.page-head{flex-wrap:wrap}.page-head>.actions{width:100%;justify-content:flex-start}.page-head>.actions .secondary{display:inline-flex}.summary-bar{flex-wrap:wrap}.nav button{min-width:62px}.field-row>*,.ingredient-edit-row>*{min-width:0}}

.meal-slot{padding-top:9px;margin-bottom:16px;border-top:1px solid #dce1d1}.meal-slot-title{font-size:11px;font-weight:600;color:#778864;margin-bottom:10px}.meal-label{font-size:12px;font-weight:600;color:#6d825a;padding:0 0 10px}.recommendation{min-width:0}.recommendation .recipe-card{width:100%}.recommend-reasons{font-size:10px;color:var(--muted);line-height:1.8;min-height:36px;margin:9px 0}.recommendation>.btn{width:100%}.filters select{font-size:12px}.recommendations .recipe-body p{white-space:normal}.week-grid .meal-card .food-art{height:64px}.week-grid .meal-slot{min-height:215px}@media(max-width:760px){.recommendations{grid-template-columns:1fr}.recommendation .recipe-image{height:160px}.recommendation{padding-bottom:18px;border-bottom:1px solid var(--line)}.week-grid{grid-template-columns:1fr}.day{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.day-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;padding:2px 6px 8px}.day-head strong{font-size:18px;margin:0}.meal-card{padding:7px}.meal-slot .add-meal{font-size:10px}.meal-slot .meal-tools{gap:2px}.meal-slot .meal-tools button{font-size:10px;padding:2px}.meal-card h3{font-size:11px}.week-grid .meal-slot{min-height:0;margin-bottom:0}.week-grid .meal-card .food-art{height:58px}}

.today-recipe-link{text-align:left;padding:10px 4px;min-width:0;border-radius:8px}.today-recipe-link strong,.today-recipe-link span{display:block}.today-recipe-link span{font-size:12px;color:var(--muted,#738074);margin-top:6px}.today-recipe-link:hover{background:#eef2e8}.today-recipe-link:focus-visible{outline:2px solid #294e3d;outline-offset:3px}

.calorie-overview{margin-bottom:20px}.calorie-overview .section-title{flex-wrap:wrap}.calorie-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.calorie-stats strong{font-variant-numeric:tabular-nums}.calorie-table{margin:16px 0 10px}.calorie-preview-title{margin:20px 0 12px}.calorie-generation-preview{margin-top:16px}.calorie-generation-preview>summary{cursor:pointer;font-size:12px;color:var(--green)}.calorie-generation-preview .table-wrap{max-height:330px}.calorie-generation-preview th{position:sticky;top:0}@media(max-width:760px){.calorie-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.calorie-overview{padding:18px}.calorie-overview .section-title .btn{white-space:normal;text-align:left}.calorie-overview td,.calorie-overview th{padding:12px}}

.diet-card{margin-bottom:20px}.diet-card>.section-title{flex-wrap:wrap}.diet-table{margin:14px 0}.diet-table td,.diet-table th{white-space:normal}.health-ingredient{margin:20px 0;border:1px solid var(--line);padding:16px;border-radius:12px}.health-ingredient>summary{cursor:pointer;font-weight:600;margin-bottom:12px}.health-ingredient h3{margin:16px 0 8px}.health-ingredient .field input{min-width:0}.health-pagoda{display:grid;gap:5px;margin:20px auto;max-width:480px;text-align:center}.health-pagoda div{background:#e8efdf;border:1px solid #d4dfc9;padding:12px;border-radius:8px;justify-self:center}.health-pagoda div:nth-child(1){width:50%}.health-pagoda div:nth-child(2){width:63%}.health-pagoda div:nth-child(3){width:76%}.health-pagoda div:nth-child(4){width:89%}.health-pagoda div:nth-child(5){width:100%}.health-recipe{margin:20px 0}@media(max-width:760px){.diet-card{padding:16px}.diet-table{font-size:11px}.diet-table td,.diet-table th{padding:9px}.health-ingredient{padding:12px}.health-pagoda div{font-size:12px;padding:10px}}
.profile-health-guide{margin:15px 0;border:1px solid var(--line);padding:14px;border-radius:12px}.profile-health-guide>summary{cursor:pointer;color:var(--green)}.profile-health-guide p{margin-top:12px}

.taste-controls{margin:12px 0}.taste-controls .actions{gap:6px}.taste-button{font-size:11px;padding:7px 10px;min-height:34px}.taste-button.selected{background:var(--green);color:white}.taste-detail{padding:15px;background:#f2f4eb;border-radius:12px}.taste-detail h3{margin-bottom:10px}.taste-detail p{margin-top:10px;line-height:1.8}.taste-badges{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px}.taste-badges:empty{display:none}.taste-button:disabled{opacity:.6;cursor:default}.taste-button:focus-visible,.meal-item-link:focus-visible,.meal-extras>summary:focus-visible,.diet-details>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.week-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.day{min-width:0}.day-head{display:flex;justify-content:space-between;align-items:center;padding:4px 5px 12px;text-align:left}.day-head strong{margin:0;font-size:20px}.week-grid .meal-slot{min-height:0}.today-meal+.today-meal{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.today-meal>.meal-slot-title{font-size:14px;color:var(--ink)}.meal-groups{display:grid;gap:12px}.meal-group h5{font-size:11px;font-weight:500;color:var(--muted);margin:0 0 5px}.meal-item{min-width:0;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--white)}.meal-item+.meal-item{margin-top:6px}.meal-item-link{display:block;width:100%;text-align:left;padding:4px 0;border-radius:4px}.meal-item-link strong{display:block;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.meal-item-link span{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:3px}.meal-item-tools{display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap}.meal-item-tools .btn{padding:5px 6px;font-size:10px;min-height:30px}.meal-extras{background:#e6ebdd7a;border-radius:9px;padding:10px}.meal-extras>summary{font-size:11px;color:var(--green);cursor:pointer;line-height:1.8}.meal-extras>summary span{display:block;color:var(--muted);font-size:10px;overflow-wrap:anywhere}.meal-extras>p{font-size:10px;margin:8px 0}.meal-extras>.meal-item:first-of-type{margin-top:8px}.meal-empty{font-size:11px;padding:6px 0 12px}.nutrition-meal>h3{margin-bottom:14px}.nutrition-meal .meal-item,.meal-groups.today .meal-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.nutrition-meal .meal-item>.badge,.meal-groups.today .meal-item>.badge{grid-column:1/-1}.nutrition-meal .meal-item-link strong,.meal-groups.today .meal-item-link strong{font-size:13px}.nutrition-meal .meal-item-link span,.meal-groups.today .meal-item-link span{font-size:11px}.nutrition-meal .meal-item-tools .btn,.meal-groups.today .meal-item-tools .btn{font-size:11px;min-height:36px}
.diet-summary{display:grid;gap:8px;margin:16px 0}.diet-summary-item{padding:12px 14px;border-radius:9px;background:#f7ede1;font-size:12px;line-height:1.8}.diet-summary-item strong{display:block}.diet-summary-item p{margin:4px 0 0}.diet-summary .muted{font-size:11px}.diet-details{margin-top:14px;border-top:1px solid var(--line);padding-top:14px}.diet-details>summary{cursor:pointer;color:var(--green);font-size:12px;line-height:1.8}.diet-details>p{margin:12px 0;line-height:1.8}
@media(min-width:1500px){.week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.week-grid{grid-template-columns:1fr}.day{display:block;padding:15px}.day-head{display:flex;padding:2px 2px 12px}.week-grid .meal-slot{margin-bottom:16px;padding-top:14px}.meal-slot-title{font-size:13px}.meal-item-link strong{font-size:13px}.meal-item-link span{font-size:11px}.meal-item-tools .btn{font-size:11px;min-height:36px}.meal-group h5{font-size:12px}.meal-extras>summary{font-size:12px}.meal-extras>summary span{font-size:11px}.taste-button{flex:1;min-height:38px}.nutrition-meal .meal-item,.meal-groups.today .meal-item{grid-template-columns:minmax(0,1fr)}.nutrition-meal .meal-item-tools,.meal-groups.today .meal-item-tools{margin-top:-4px}.taste-controls .actions{flex-wrap:nowrap}.nutrition-meal{padding:16px}}

.diet-summary>ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}

.home-content{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}

.more-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.more-group h2{font-size:14px;color:var(--muted);font-weight:500;margin-bottom:8px}.more-links{display:grid}.more-item{display:flex;width:100%;align-items:center;gap:14px;padding:18px 0;text-align:left;border-top:1px solid var(--line);min-width:0}.more-item:first-child{border-top:0}.more-item-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;background:#edf1e5;color:var(--green);border-radius:12px}.more-item-copy{flex:1;min-width:0}.more-item-copy strong{display:block;font-size:14px;line-height:1.7}.more-item-copy>span{display:block;margin-top:3px;font-size:11px;color:var(--muted);line-height:1.8}.more-item-arrow{color:var(--muted)}.more-item:hover .more-item-copy strong{color:var(--green);text-decoration:underline}.more-item:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:8px}.more-back{margin-top:18px}.more-back+.page-head{padding-top:16px}@media(max-width:760px){.nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:4px}.nav button{min-width:0;font-size:12px;padding:6px 5px;min-height:52px}.nav .icon{width:20px;height:20px}.sidebar{height:calc(65px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom))}.main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.more-groups{grid-template-columns:1fr;gap:16px}.more-group{padding:16px 20px}.more-item{padding:17px 0;gap:12px}.more-item-copy>span{font-size:12px}.more-item-arrow .icon{width:17px}.more-back{margin-top:16px}}

.home-shopping>.section-title{margin-bottom:14px}.home-shopping-days{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.home-shopping-days strong{font-variant-numeric:tabular-nums}.home-shopping-days .btn{min-height:38px}.home-shopping-total{margin-top:16px}.home-shopping-empty{margin-top:18px}.home-shopping-more{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.home-shopping-more>summary{cursor:pointer;font-size:12px;color:var(--green);line-height:1.8}.home-shopping-more>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}.home-shopping-note{margin-top:16px;font-size:10px;color:var(--muted);line-height:1.8}@media(max-width:400px){.home-shopping-days{gap:7px}.home-shopping-days strong{font-size:11px}.home-shopping-days .btn{padding:8px 9px}}

.mobile-only{display:none}.shopping-tools{margin-top:22px}
@media(max-width:760px){
 .desktop-only,.home-desktop-intro,.home-recommendations{display:none!important}
 .mobile-only{display:block}
 .view-home .setup-banner,.view-shop .setup-banner,.view-home .top-right,.view-shop .top-right{display:none}
 .main{padding-left:14px;padding-right:14px}
 .topbar{height:calc(54px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
 .mobile-brand{font-size:18px}
 button.btn,.close{min-height:44px}
 .close{width:44px;height:44px;flex-shrink:0}
 input,select,textarea{font-size:16px}
 summary{min-height:44px;padding:10px 0}
 .mobile-home-header{padding:10px 2px 18px}
 .mobile-home-date{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:13px}
 .mobile-home-date .btn{font-size:13px}
 .mobile-home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}
 .mobile-home-heading h1{font-size:26px;letter-spacing:0}
 .mobile-home-heading .btn{font-size:14px}
 .mobile-home-empty{margin-top:12px}
 .home-content{gap:16px}
 .home-today,.home-shopping{padding:16px;border-radius:16px}
 .home-today>.section-title{margin-bottom:12px}
 .home-today>.section-title h3,.home-shopping h3{font-size:16px}
 .today-meal+.today-meal{margin-top:12px;padding-top:12px}
 .home-today .today-meal>.meal-slot-title{font-size:13px;margin:0 0 5px}
 .home-today .meal-groups{gap:8px}
 .home-today .meal-group h5{font-size:11px;margin-bottom:4px}
 .home-today .meal-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 10px}
 .home-today .meal-item-link{min-height:44px;padding:0}
 .home-today .meal-item-link strong{font-size:15px;line-height:1.5}
 .home-today .meal-item-link span{font-size:12px}
 .home-today .meal-item-tools{grid-column:2;grid-row:1;margin:0}
 .home-today .meal-item-tools .btn{font-size:13px;padding:8px;min-height:44px}
 .home-today .meal-item>.badge{grid-column:1/-1}
 .home-shopping-days{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}
 .home-shopping-days strong{text-align:center;font-size:13px}
 .home-shopping-days .btn{padding:0;min-height:44px;font-size:24px}
 .home-shopping-days .btn.ghost{grid-column:1/-1;justify-self:end;font-size:13px;padding:4px 8px}
 .home-shopping .mini-row{padding:12px 0}
 .home-shopping .mini-row strong{font-size:15px}
 .home-shopping .mini-row p,.home-shopping .mini-row>.small{font-size:13px}
 .home-shopping-total{font-size:13px}
 .home-shopping-more{margin-top:8px;padding-top:4px}
 .home-shopping-more>summary{font-size:13px}
 .home-shopping-note{font-size:11px;margin-top:10px}
 .mobile-home-secondary .btn{width:100%}
 .view-home .footer-note,.view-shop .footer-note{display:none}
 .view-shop .page-head{padding:20px 0 16px;display:block}
 .view-shop .page-head h1{font-size:26px;letter-spacing:0}
 .view-shop .page-head p{font-size:13px;margin-top:6px}
 .view-shop .page-head>.actions,.shopping-inventory-button{display:none}
 .shopping-toolbar{margin-bottom:16px;display:block}
 .shopping-date-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 48px;gap:6px}
 .shopping-date-controls input{width:100%;min-width:0;padding:10px 8px;height:44px}
 .shopping-date-controls .btn{padding:0;min-height:44px}
 .shopping-date-controls [data-action="shop-prev"],.shopping-date-controls [data-action="shop-next"]{font-size:24px}
 .mobile-shopping-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;margin-bottom:16px;background:#e9eddf;border:1px solid #dde4d2;border-radius:14px}
 .mobile-shopping-summary>div>span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}
 .mobile-shopping-summary strong{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}
 .mobile-shopping-summary>.small{font-size:13px;color:var(--green)}
 .shopping-cards{display:grid;gap:10px}
 .shopping-item{border:1px solid var(--line);border-radius:14px;background:var(--white);padding:0 14px}
 .shopping-item-select{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px 0;cursor:pointer;min-height:76px}
 .shopping-item-select input{width:22px;height:22px;margin:0}
 .shopping-item-copy{min-width:0}
 .shopping-item-copy strong{display:block;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
 .shopping-item-copy>span{display:block;font-size:14px;margin-top:5px;color:var(--muted);line-height:1.6}
 .shopping-item-copy small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:3px}
 .shopping-item-cost{font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
 .shopping-item.is-checked .shopping-item-copy strong{color:var(--muted);text-decoration:line-through}
 .shopping-item-details{border-top:1px solid var(--line)}
 .shopping-item-details summary{font-size:12px;color:var(--muted);line-height:1.8}
 .shopping-item-info{font-size:12px;color:var(--muted);line-height:1.8;padding-bottom:8px;overflow-wrap:anywhere}
 .shopping-item-info p+p{margin-top:7px}
 .shopping-item-info .btn{font-size:12px;margin-top:6px}
 .mobile-shopping-finish{display:grid;gap:12px;margin-top:18px}
 .mobile-shopping-finish>.btn{width:100%;font-size:14px}
 .shopping-tools-toggle{display:flex;width:100%;font-size:13px;margin-top:20px;white-space:normal}
 .shopping-tools{display:none;margin-top:16px}
 .shopping-tools.is-open{display:block}
 .shopping-extra-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
 .shopping-pantry-option{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
 .shopping-pantry-option input{width:22px;height:22px}
 dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:16px}
 .dialog-head{padding:12px 14px;gap:12px}
 .dialog-head h2{font-size:19px;line-height:1.5;overflow-wrap:anywhere;min-width:0}
 .dialog-body{padding:16px 14px 20px}
 .form-footer{flex-wrap:wrap}
 .form-footer .btn{flex:1 1 100%;white-space:normal;min-width:0}
 .toast{bottom:calc(80px + env(safe-area-inset-bottom));font-size:14px}
}

/* Recipe details retain the desktop price table; phones show ingredient amounts first. */
.recipe-description{margin-top:10px}
.recipe-primary-actions{margin:8px 0 16px}
.recipe-servings-field{margin:12px 0}
.recipe-prep{margin:10px 0 20px;line-height:1.9}
.recipe-phone-ingredients{display:none}
.field input,.field select,.field textarea{min-width:0;width:100%}
.recipe-secondary-info{border-top:1px solid var(--line);margin-top:22px;padding-top:8px}
.recipe-secondary-info>summary{padding:12px 0;color:var(--green);font-size:13px;cursor:pointer;line-height:1.6}
.recipe-management-actions{margin:8px 0 14px}
.recipe-source{margin-top:18px;overflow-wrap:anywhere}
.cook-animation-actions{justify-content:center;margin-top:12px}
.cook-ingredients{margin-top:18px}
.cook-ingredients>summary{font-size:13px;line-height:1.7;cursor:pointer}
.cook-ingredients ul{list-style:none;padding:0;margin:10px 0 0}
.cook-ingredients li{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:10px 0;font-size:13px;line-height:1.6}
.cook-ingredients li span{min-width:0;overflow-wrap:anywhere}
.cook-ingredients li strong{flex-shrink:0;font-variant-numeric:tabular-nums;font-weight:550}
.cook-timer-row{margin:20px 0;justify-content:space-between}
.cook-step-nav{justify-content:space-between;margin-top:20px}
.cook-note{margin-top:18px}
@media(max-width:760px){
 .shopping-date-controls{grid-template-columns:44px minmax(0,1fr) 44px}
 .shopping-date-controls [data-action="shop-today"]{grid-column:1/-1;justify-self:end;padding:0 8px}
 .shopping-tools .field-row{grid-template-columns:minmax(0,1fr)}
 .shopping-tools select{width:100%;min-width:0}
 dialog[data-layout=recipe],dialog[data-layout=cook]{width:calc(100% - 24px);border-radius:16px}
 dialog[data-layout=recipe] .dialog-head,dialog[data-layout=cook] .dialog-head{padding:12px 14px;gap:12px}
 dialog[data-layout=recipe] .dialog-head h2,dialog[data-layout=cook] .dialog-head h2{min-width:0;font-size:17px;line-height:1.6;overflow-wrap:anywhere}
 dialog[data-layout=recipe] .close,dialog[data-layout=cook] .close{width:44px;height:44px;flex-shrink:0}
 dialog[data-layout=recipe] .dialog-body{padding:14px}
 dialog[data-layout=recipe] .recipe-detail-art{display:none}
 dialog[data-layout=recipe] .nutrition-bits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0}
 dialog[data-layout=recipe] .nutrition-bits strong{font-size:18px;overflow-wrap:anywhere}
 dialog[data-layout=recipe] .nutrition-bits span{font-size:11px;line-height:1.6;display:block}
 dialog[data-layout=recipe] .recipe-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0 12px}
 dialog[data-layout=recipe] .recipe-primary-actions .btn{min-width:0;min-height:46px;white-space:normal;padding:10px 8px}
 dialog[data-layout=recipe] .recipe-equipment{margin:12px 0;padding:11px 12px;line-height:1.8}
 dialog[data-layout=recipe] .recipe-servings-field{display:grid;grid-template-columns:minmax(0,1fr) 95px;align-items:center;font-size:13px}
 dialog[data-layout=recipe] .recipe-servings-field input{width:100%;min-width:0;min-height:44px}
 .recipe-price-table{display:none}
 .recipe-phone-ingredients{display:grid;gap:9px;margin:14px 0}
 .recipe-ingredient-card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:13px}
 .recipe-ingredient-main{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:14px;line-height:1.7}
 .recipe-ingredient-main>strong:first-child{min-width:0;overflow-wrap:anywhere}
 .recipe-ingredient-main>strong:last-child{text-align:right;font-size:13px;flex-shrink:0;font-variant-numeric:tabular-nums}
 .recipe-ingredient-prices>summary{font-size:12px;color:var(--muted);padding:10px 0 2px;line-height:1.8;cursor:pointer}
 .recipe-ingredient-prices dl{margin:10px 0 0;font-size:12px;line-height:1.7}
 .recipe-ingredient-prices dl>div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:10px;margin:8px 0}
 .recipe-ingredient-prices dt{color:var(--muted)}
 .recipe-ingredient-prices dd{margin:0;text-align:right;overflow-wrap:anywhere}
 .recipe-ingredient-prices small{display:block;font-size:11px;color:var(--muted)}
 .recipe-ingredient-prices .btn{margin-top:8px;min-height:44px;white-space:normal}
 .recipe-purchase-summary{font-size:12px;padding:12px;margin:14px 0 20px}
 dialog[data-layout=recipe] .recipe-method .step-row p{font-size:14px;line-height:1.9}
 dialog[data-layout=recipe] .recipe-prep{font-size:14px}
 dialog[data-layout=recipe] .recipe-management-actions .btn{min-height:44px;white-space:normal}
 dialog[data-layout=recipe] .recipe-secondary-info>summary{min-height:44px}
 dialog[open][data-layout=cook]{display:flex;flex-direction:column;height:calc(100vh - 24px);max-height:calc(100vh - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 dialog[data-layout=cook] .dialog-head{position:static;flex-shrink:0}
 dialog[data-layout=cook] .dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:0}
 dialog[data-layout=cook] .cook-screen{display:flex;flex-direction:column;flex:1;min-height:0}
 dialog[data-layout=cook] .cook-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px;-webkit-overflow-scrolling:touch}
 dialog[data-layout=cook] .cook-stage{height:155px}
 dialog[data-layout=cook] .cook-stage svg{height:140px;width:210px;max-width:100%}
 dialog[data-layout=cook] .cook-stage .caption{bottom:8px;font-size:11px}
 dialog[data-layout=cook] .cook-title{font-size:18px;line-height:1.9;margin:16px 0}
 dialog[data-layout=cook] .cook-animation-actions .btn,dialog[data-layout=cook] .cook-timer-row .btn{min-height:44px;font-size:12px}
 dialog[data-layout=cook] .cook-timer-row{gap:12px;flex-wrap:wrap}
 dialog[data-layout=cook] .cook-timer-row>.actions{flex-wrap:wrap}
 dialog[data-layout=cook] .cook-step-nav{flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:12px;background:var(--white);border-top:1px solid var(--line);padding:12px 14px;padding-bottom:calc(12px + env(safe-area-inset-bottom));margin:0;box-shadow:0 -6px 18px #29382f08}
 dialog[data-layout=cook] .cook-step-nav .btn{width:100%;min-width:0;min-height:48px;font-size:14px;white-space:normal;padding:10px}
 dialog[data-layout=cook] .cook-note{font-size:12px;line-height:1.8;padding-bottom:8px}
}
