@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&display=swap');
:root{font-family:'Golos Text',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#162337;background:#f3f5f9;font-synthesis:none;font-size:18px;--blue:#155bd7;--blue-soft:#eaf1ff;--ink:#162337;--muted:#637086;--line:#e3e7ee;--green:#187452;--red:#b23838}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button,a,input,select{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #eea926;outline-offset:3px}button{color:inherit}button:disabled{opacity:.5;cursor:not-allowed}h1,h2,h3,p{margin:0}h1{font-size:2rem;letter-spacing:-.055em;line-height:1.16;font-weight:800}h2{font-size:1.35rem;letter-spacing:-.035em;line-height:1.25}h3{font-size:1.05rem;line-height:1.35}a{color:var(--blue)}.muted{color:var(--muted)}.small{font-size:.8rem;line-height:1.5}.eyebrow{font-size:.75rem;letter-spacing:.11em;text-transform:uppercase;font-weight:600;color:var(--muted)}.spacer{flex:1}.row{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:18px}.icon{width:22px;height:22px;display:inline-block;flex-shrink:0;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.badge{font-size:.75rem;font-weight:600;padding:6px 10px;border-radius:8px;background:#eef1f5;color:#4c5b70;white-space:nowrap}.badge.blue{color:var(--blue);background:var(--blue-soft)}.badge.green{color:var(--green);background:#e9f6ee}
.shell{max-width:1280px;margin:0 auto;min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}.rail{padding:34px 22px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:11px;font-size:1.35rem;font-weight:800;letter-spacing:-.06em}.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:var(--blue);border-radius:12px;color:#fff;flex-shrink:0}.brand-mark .icon{width:26px;height:26px}.rail-sub{margin:12px 0 36px;font-size:.8rem;color:var(--muted)}.rail-nav{display:grid;gap:9px}.nav-item{border:0;background:transparent;display:flex;gap:12px;align-items:center;min-height:58px;border-radius:12px;padding:14px 13px;text-align:left;color:#5d6b80;font-size:.9rem;font-weight:500}.nav-item.active{background:var(--blue-soft);color:var(--blue);font-weight:700}.nav-count{margin-left:auto;font-size:.7rem;background:white;border-radius:6px;padding:2px 6px}.rail-footer{margin-top:auto}.profile{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 12px;min-height:50px}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eaf1ff;color:var(--blue);font-size:.8rem;font-weight:700}.rail-footer .profile{width:100%}.rail-footer .quiet{margin-top:14px;width:100%}.workspace{padding:32px 42px 48px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:35px}.demo-badge{display:flex;align-items:center;gap:7px;background:transparent;border:0;color:var(--muted);font-size:.75rem;padding:8px 0}.demo-badge .icon{width:17px;height:17px}.mobile-brand,.mobile-profile{display:none}.heading{margin-bottom:26px}.heading p{margin-top:10px;color:var(--muted);line-height:1.5}.page-content{display:grid;gap:24px}.page-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:24px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:25px;box-shadow:0 3px 12px #16233703}.panel-title{margin-bottom:22px}.button{border:0;border-radius:12px;padding:14px 18px;min-height:54px;font-weight:600;font-size:.9rem;display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--blue);color:#fff}.button:hover{filter:brightness(.96)}.button.secondary{background:#f1f4f8;color:var(--ink)}.button.outline{border:1px solid var(--line);background:#fff;color:var(--ink)}.button.danger{background:#fff0ef;color:var(--red)}.button.full{width:100%}.quiet{background:none;border:0;min-height:44px;padding:8px 4px;display:inline-flex;justify-content:center;align-items:center;gap:8px;color:var(--blue);font-size:.85rem;font-weight:500}.quiet.muted{color:var(--muted)}.icon-btn{border:0;background:transparent;min-height:44px;min-width:44px;padding:10px;display:grid;place-items:center;border-radius:10px;color:var(--muted)}.icon-btn:hover{background:#f0f3f8}.section-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:10px}.section-label{font-size:.85rem;font-weight:600;color:var(--muted)}.drafts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.draft-card{min-height:130px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px;text-align:left;display:flex;flex-direction:column;gap:10px;position:relative;min-width:0}.draft-card.selected{border:2px solid var(--blue);padding:17px;background:#f1f6ff}.draft-card.selected:after{content:'';position:absolute;bottom:-7px;left:28px;width:12px;height:12px;background:#f1f6ff;border-right:2px solid var(--blue);border-bottom:2px solid var(--blue);transform:rotate(45deg)}.draft-card h3{font-size:.95rem}.draft-card p{font-size:.75rem;color:var(--muted);line-height:1.4}.draft-card .icon{width:25px;height:25px;color:var(--blue)}.draft-card.new{border-style:dashed;justify-content:center;align-items:center;color:var(--blue);background:transparent;font-size:.85rem;font-weight:600}.draft-card .draft-check{margin-left:auto;width:20px;height:20px}.ingredients{list-style:none;padding:0;margin:0}.ingredient{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid #eef0f4}.ingredient:last-child{border-bottom:0}.ingredient-main{flex:1;min-width:0}.ingredient-name{font-size:.95rem;font-weight:500;overflow-wrap:anywhere}.ingredient-source{font-size:.72rem;color:var(--muted);margin-top:4px}.ingredient-weight{font-size:.9rem;font-weight:600;white-space:nowrap}.ingredient .icon-btn{min-width:40px;padding:8px}.ingredient .icon{width:18px}.add-ingredient{margin-top:9px}.totals-line{display:flex;align-items:center;justify-content:space-between;background:#f3f6fa;border-radius:12px;padding:14px 16px;margin:17px 0;gap:10px}.totals-line strong{font-size:1.1rem;white-space:nowrap}.actions-bar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.voice-button{background:var(--blue);color:#fff}.voice-button .icon{width:23px;height:23px}.hint{font-size:.78rem;color:var(--muted);line-height:1.55}.saved-line{display:flex;gap:6px;align-items:center;font-size:.72rem;color:var(--muted);margin-top:14px}.saved-line .icon{width:15px;height:15px}.side-note{padding:20px;background:#eaf1ff;border-radius:18px;color:#264978}.side-note h3{font-size:.95rem;margin:14px 0 9px}.side-note p{font-size:.8rem;line-height:1.6}.side-note .icon{color:var(--blue)}.side-stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;margin-top:16px}.side-stat p{font-size:.8rem;line-height:1.55;margin-top:8px}.side-stat .number{font-size:1.8rem;font-weight:700;letter-spacing:-.06em}.containers-preview{display:flex;gap:10px;align-items:center;margin-top:14px;font-size:.8rem}.containers-preview span{flex:1}.bottom-nav{display:none}.list-grid{display:grid;gap:14px}.dish-card{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;width:100%;text-align:left}.dish-card:hover{border-color:#abc3ed}.dish-photo{width:94px;height:102px;object-fit:cover;object-position:55% 65%;border-radius:12px;flex-shrink:0}.dish-placeholder{width:72px;height:78px;border-radius:12px;background:#edf3ff;display:grid;place-items:center;color:var(--blue);flex-shrink:0}.dish-placeholder .icon{width:31px;height:31px}.dish-info{flex:1;min-width:0}.dish-info h3{margin:3px 0 6px;overflow-wrap:anywhere}.dish-info p{font-size:.78rem;line-height:1.5;color:var(--muted)}.dish-kcal{font-weight:700;font-size:.9rem;margin-top:10px}.dish-kcal span{font-size:.75rem;color:var(--muted);font-weight:400}.dish-add{width:44px;height:44px;border-radius:50%;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;flex-shrink:0}.meal-summary{background:#fff;border:1px solid var(--line);border-radius:20px;padding:25px}.calorie-total{display:flex;align-items:baseline;gap:8px;margin-top:15px}.calorie-total strong{font-size:2.7rem;line-height:1.1;letter-spacing:-.07em}.calorie-total span{font-size:.85rem;color:var(--muted)}.progress{height:8px;border-radius:8px;background:#edf1f7;overflow:hidden;margin:18px 0}.progress-fill{height:100%;background:var(--blue);border-radius:8px;max-width:100%}.macro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:21px}.macro-grid p{font-size:.75rem;color:var(--muted);margin-bottom:5px}.macro-grid strong{font-size:1.05rem;font-weight:600}.macro-grid span{font-size:.78rem;font-weight:400}.entry{padding:17px 0;border-bottom:1px solid var(--line)}.entry:last-child{border:0;padding-bottom:0}.entry:first-of-type{padding-top:0}.entry h3{font-size:.95rem}.entry .meta{font-size:.8rem;color:var(--muted);margin-top:5px}.entry-buttons{display:flex;gap:8px;margin-top:13px;flex-wrap:wrap}.entry-buttons .button{min-height:46px;padding:10px 13px;font-size:.8rem}.entry-kcal{font-weight:600;font-size:.85rem;white-space:nowrap}.empty{padding:34px 20px;text-align:center;color:var(--muted);line-height:1.5}.empty .icon{width:34px;height:34px;margin-bottom:12px}.empty p{font-size:.85rem}.planned-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px}.planned-heading span{color:#845b13;background:#fff3d8;border-radius:7px;padding:4px 8px;font-size:.75rem}.planned-note{margin-top:-6px;margin-bottom:20px;font-size:.78rem;color:var(--muted);line-height:1.45}
dialog{border:none;padding:0;border-radius:24px;max-width:520px;width:calc(100% - 32px);max-height:90dvh;box-shadow:0 20px 80px #10284b33;color:var(--ink);background:white;overscroll-behavior:contain}dialog::backdrop{background:#17294480;backdrop-filter:blur(4px)}.sheet-inner{padding:25px}.sheet-header{display:flex;align-items:flex-start;gap:10px;margin-bottom:22px}.sheet-header h2{flex:1;padding-top:7px}.sheet-header .icon-btn{margin-right:-10px}.sheet-intro{font-size:.86rem;color:var(--muted);line-height:1.6;margin-bottom:22px}.field{display:block;margin:19px 0}.field>span,.field>label{display:block;font-weight:600;font-size:.85rem;margin-bottom:9px}input,select{border:1px solid #ccd4e0;border-radius:11px;min-height:54px;padding:13px;width:100%;background:#fff;color:var(--ink);font-size:1rem}input[type=number]{font-variant-numeric:tabular-nums}.field-help{margin-top:7px;font-size:.75rem;color:var(--muted);line-height:1.5}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-error{color:var(--red);font-size:.8rem;min-height:24px;margin:8px 0}.modal-actions{display:flex;gap:10px;margin-top:20px}.modal-actions>*{flex:1}.command{width:100%;padding:17px;text-align:left;border:1px solid var(--line);border-radius:13px;background:#f7f9fc;font-size:.95rem;line-height:1.5;display:flex;gap:12px;align-items:flex-start;margin-top:11px}.command .icon{color:var(--blue);margin-top:3px}.command:hover{background:var(--blue-soft);border-color:#afc8f2}.command-preview{border-left:3px solid var(--blue);padding:12px 16px;background:var(--blue-soft);border-radius:0 10px 10px 0;margin:20px 0;font-size:.88rem;line-height:1.6}.review-list{padding:0;list-style:none;margin:15px 0}.review-list li{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:11px 0;font-size:.9rem}.review-list li span:last-child{white-space:nowrap;font-weight:500}.notice{border-radius:12px;background:#f4f6fa;padding:15px;font-size:.8rem;line-height:1.6;color:var(--muted)}.result-box{background:var(--blue-soft);border-radius:14px;padding:18px;margin:18px 0}.result-box strong{display:block;font-size:1.6rem;letter-spacing:-.045em;margin:7px 0}.portion-number{position:relative}.portion-number input{font-size:2rem;font-weight:700;padding:15px 65px 15px 18px;height:82px}.portion-number span{position:absolute;right:20px;top:29px;font-size:.95rem;color:var(--muted)}.segmented{display:flex;background:#eef2f7;border-radius:12px;padding:4px;margin:20px 0}.segmented button{border:0;background:transparent;border-radius:9px;padding:13px 8px;flex:1;font-size:.85rem;font-weight:600;color:var(--muted);min-height:48px}.segmented button.active{background:#fff;color:var(--ink);box-shadow:0 2px 7px #20345514}.profile-choice{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);padding:15px;border-radius:12px;background:#fff;min-height:60px;margin-bottom:10px}.profile-choice.active{border-color:var(--blue);background:var(--blue-soft)}.profile-choice .icon{margin-left:auto;color:var(--blue)}.review-foot{margin-top:18px}.about-list{margin:0;padding-left:20px;font-size:.88rem;line-height:1.7}.about-list li{margin:9px 0}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:10;background:#162337;color:#fff;padding:15px 22px;border-radius:13px;box-shadow:0 8px 30px #16233730;font-size:.86rem;width:max-content;max-width:calc(100% - 32px);transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1280px){.shell{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
@media(max-width:1060px){.shell{grid-template-columns:190px minmax(0,1fr)}.rail{padding:30px 16px}.workspace{padding:30px 26px}.page-grid{grid-template-columns:minmax(0,1fr)}.aside{display:none}}
@media(max-width:700px){:root{font-size:18px}.shell{display:block}.rail{display:none}.workspace{padding:16px 18px calc(105px + env(safe-area-inset-bottom))}.topbar{margin-bottom:24px;flex-wrap:wrap;gap:12px}.mobile-brand{display:flex;gap:8px}.brand{font-size:1.2rem}.brand-mark{width:34px;height:34px;border-radius:10px}.brand-mark .icon{width:23px;height:23px}.mobile-profile{display:flex;padding:6px 10px;min-height:44px;font-size:.8rem}.mobile-profile .avatar{width:26px;height:26px}.topbar>.eyebrow{display:none}.demo-badge{font-size:.72rem;padding:0;min-height:28px;order:3;flex-basis:100%;justify-content:space-between}.demo-badge:after{content:'Примерные данные';font-size:.7rem;color:var(--muted)}h1{font-size:1.65rem}.heading{margin-bottom:23px}.heading p{font-size:.86rem;margin-top:8px}.heading .button{min-height:46px;padding:11px 12px;font-size:.8rem}.heading .row{gap:8px}.page-content{gap:20px}.page-grid{gap:20px}.panel{padding:19px;border-radius:17px}.panel-title{margin-bottom:14px}.drafts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.draft-card{padding:15px;min-height:119px}.draft-card.selected{padding:14px}.draft-card.new{grid-column:1/-1;min-height:48px;flex-direction:row;gap:7px;padding:10px}.draft-card.new .icon{width:19px;height:19px}.draft-card.selected:after{display:none}.ingredient{padding:13px 0}.ingredient-name{font-size:.92rem}.ingredient-weight{font-size:.88rem}.ingredient-source{font-size:.7rem}.ingredient .icon-btn{min-width:36px;width:36px;padding:7px}.actions-bar{grid-template-columns:1fr}.actions-bar .button{min-height:56px}.totals-line{padding:13px;margin:16px 0}.totals-line .small{font-size:.74rem}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(3,1fr);padding:9px 12px calc(8px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(16px);border-top:1px solid var(--line);z-index:3}.bottom-nav .nav-item{display:flex;flex-direction:column;gap:4px;justify-content:center;padding:6px 3px;min-height:57px;font-size:.73rem;border-radius:10px}.bottom-nav .nav-item.active{background:var(--blue-soft)}.bottom-nav .nav-count{display:none}.bottom-nav .icon{width:23px;height:23px}.dish-card{gap:13px;padding:15px}.dish-photo{width:74px;height:100px}.dish-placeholder{width:57px;height:68px}.dish-add{width:36px;height:36px}.dish-info h3{font-size:1rem}.dish-info p{font-size:.74rem}.dish-kcal{font-size:.85rem}.dish-kcal span{font-size:.72rem}.meal-summary{padding:21px}.macro-grid{gap:10px}.macro-grid p{font-size:.73rem}.calorie-total strong{font-size:2.5rem}.entry-kcal{font-size:.8rem}.entry h3{font-size:.9rem}.entry-buttons .button{font-size:.77rem;padding:10px 12px}.sheet-inner{padding:21px}dialog{width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}.sheet-header h2{font-size:1.25rem}.command{font-size:.88rem}.modal-actions{flex-wrap:wrap}.modal-actions .button{min-width:120px}.two-fields{grid-template-columns:1fr 1fr}.two-fields .field{min-width:0}.small{font-size:.78rem}#toast{bottom:calc(100px + env(safe-area-inset-bottom));font-size:.8rem}.review-list li{font-size:.86rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Comfortable kitchen controls */
.button{min-height:58px;padding:16px 20px;font-size:.95rem}
.quiet{min-height:56px;padding:12px 10px;font-size:.9rem}
.icon-btn{min-height:56px;min-width:56px;width:56px;padding:15px}
.icon-btn .icon{width:24px;height:24px}
input,select{min-height:60px;padding:16px;font-size:1rem}
.profile{min-height:56px}.profile-choice{min-height:72px;padding:18px}
.sheet-header .icon-btn{margin-top:0}.sheet-header h2{padding-top:12px}
.sheet-intro{font-size:.9rem}.sheet-header{margin-bottom:18px}
.panel-title>.icon-btn{background:#f1f4f8;flex-shrink:0}
.ingredient{padding:0;border-bottom:0;margin-bottom:10px}
.ingredient-touch{display:flex;align-items:center;gap:12px;width:100%;min-height:82px;padding:14px 12px;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff}
.ingredient-touch:hover{background:#f4f7ff;border-color:#aec6ed}
.ingredient-touch:active,.vessel-choice:active,.vessel-group:active{background:#eaf1ff}
.ingredient-touch .ingredient-name,.ingredient-touch .ingredient-source{display:block}
.ingredient-touch .ingredient-name{font-size:1rem;line-height:1.4}
.ingredient-touch .ingredient-source{font-size:.78rem;margin-top:5px}
.ingredient-touch .ingredient-weight{font-size:.95rem}
.touch-edit{display:grid;place-items:center;flex-shrink:0;color:var(--blue);width:32px;height:36px}
.touch-edit .icon{width:22px;height:22px}
.add-ingredient{margin-top:4px}
.actions-bar{display:grid;grid-template-columns:1fr;gap:14px}
.button.finish-button{width:100%;min-height:76px;background:#147a48;color:#fff;font-size:1.1rem;font-weight:700;border-radius:15px;box-shadow:0 4px 12px #147a4818}
.button.finish-button:hover{background:#106b3e}.button.finish-button .icon{width:29px;height:29px}
.button.finish-button:disabled{background:#e6eeea;color:#65776d;opacity:1;box-shadow:none}
.cookware-open{min-height:56px;padding:13px 16px;flex-shrink:0}
.cookware-selection{display:grid;gap:10px;margin:23px 0 19px}
.vessel-selected{width:100%;display:flex;align-items:center;gap:14px;min-height:86px;border:1px solid #a9c1e9;border-radius:14px;background:#f2f6ff;padding:17px;text-align:left;color:var(--blue)}
.vessel-selected>span{flex:1;min-width:0}
.vessel-selected strong,.vessel-selected small{display:block;overflow-wrap:anywhere}
.vessel-selected strong{font-size:.98rem;line-height:1.4;font-weight:600}
.vessel-selected small{color:var(--muted);font-size:.8rem;line-height:1.45;margin-top:5px}
.vessel-selected.has-selection{background:#fff;border-color:var(--line);color:var(--ink)}
.search-field{margin:16px 0}.search-field>span{font-size:.85rem}
.vessel-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0}
.vessel-group{display:flex;align-items:center;gap:10px;text-align:left;min-height:80px;padding:15px 12px;border:1px solid var(--line);border-radius:14px;background:#f5f7fc;color:var(--ink)}
.vessel-group>.icon{color:var(--blue);width:24px;height:24px}
.vessel-group>span{flex:1;font-size:.86rem;font-weight:600;overflow-wrap:anywhere}
.vessel-group>small{font-size:.8rem;color:var(--muted)}
.vessel-list{display:grid;gap:12px}
.vessel-choice{display:flex;align-items:center;gap:14px;width:100%;min-height:84px;padding:18px;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff}
.vessel-choice>span{flex:1;min-width:0}
.vessel-choice strong,.vessel-choice small{display:block;overflow-wrap:anywhere}
.vessel-choice strong{font-size:1rem;font-weight:600;line-height:1.45}
.vessel-choice small{font-size:.85rem;color:var(--muted);margin-top:6px;line-height:1.5}
.vessel-choice>.icon{color:var(--blue);width:25px;height:25px}
.vessel-choice.selected{border:2px solid var(--blue);padding:17px;background:var(--blue-soft)}
.zero-vessel{background:#f3f6fa;margin:16px 0 20px}.zero-vessel .icon:last-child{color:var(--muted)}
.vessel-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 16px}
.vessel-list-heading>.section-label{text-align:right;font-size:.85rem}
.vessel-list-heading>.button{font-size:.85rem;padding:14px 16px}
.group-choice{min-height:60px;padding:14px 10px;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:.9rem}
.group-choice.active{border:2px solid var(--blue);padding:13px 9px;background:var(--blue-soft);color:var(--blue);font-weight:600}
.segmented button{min-height:56px}.entry-buttons .button{min-height:56px;font-size:.86rem;padding:14px}
@media(max-width:700px){
 .workspace{padding-bottom:calc(205px + env(safe-area-inset-bottom))}
 .mobile-profile{min-height:52px;padding:10px 12px}
 .topbar .demo-badge{min-height:44px}
 .bottom-nav .nav-item{min-height:64px;font-size:.78rem}
 .draft-card{min-height:138px;padding:18px}.draft-card.selected{padding:17px}
 .draft-card h3{font-size:1rem}.draft-card p{font-size:.8rem}.draft-card.new{min-height:62px;padding:14px}
 .panel{padding:17px}.panel-title{gap:10px}.panel-title h2{font-size:1.4rem;overflow-wrap:anywhere}
 .ingredient-touch{min-height:88px;padding:14px 10px;gap:9px}
 .ingredient-touch .ingredient-name{font-size:.97rem}.ingredient-touch .ingredient-weight{font-size:.9rem}
 .touch-edit{width:26px}.ingredient-touch .ingredient-source{font-size:.76rem}
 .actions-bar{display:grid}.actions-bar .button.finish-button{min-height:80px;font-size:1.12rem}
 .vessel-selected{padding:16px;min-height:92px;gap:12px}
 .vessel-groups{gap:10px}.vessel-group{min-height:84px;padding:12px 10px;flex-wrap:wrap;gap:8px}
 .vessel-group>span{flex-basis:calc(100% - 42px);font-size:.9rem}.vessel-group>small{display:none}
 .vessel-choice{min-height:88px;padding:18px 16px}.vessel-choice.selected{padding:17px 15px}
 .sheet-inner{padding:20px}.sheet-header h2{font-size:1.3rem}
 .entry .icon-btn{min-width:52px;width:52px;min-height:56px;padding:12px}
 .entry-buttons{gap:10px}.entry-buttons .button{min-height:56px;font-size:.85rem}
 #toast{bottom:calc(180px + env(safe-area-inset-bottom))}
}

/* Ingredient inputs above the list; completion controls below it. */
.ingredient-controls{display:grid;gap:10px;margin:0 0 20px}
.ingredient-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ingredient-actions .button{width:100%;min-width:0;min-height:62px;padding:14px 12px;gap:8px;white-space:nowrap}
.cooking-footer{display:grid;gap:12px;margin-top:22px}
.cooking-footer .totals-line{margin:0;background:transparent;padding:8px 0;gap:14px}
.cooking-footer .totals-line .small{font-size:.85rem}
.cooking-footer .cookware-selection{margin:0;display:block}
.cooking-footer .cookware-selection>.section-label{display:none}
.cooking-footer .vessel-selected{min-height:76px;padding:13px 16px}
.cooking-footer .vessel-selected small{font-size:.76rem;line-height:1.4}
.cooking-footer .finish-button{min-height:78px}
@media(max-width:700px){
 .ingredient-actions{gap:10px}
 .ingredient-actions .button{font-size:.9rem;padding:14px 10px;min-height:62px}
 .ingredient-actions .icon{width:21px;height:21px}
 .workspace:has(.cooking-footer){padding-bottom:calc(380px + env(safe-area-inset-bottom))}
 .cooking-footer{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:0;right:0;z-index:2;margin:0;padding:12px 18px 14px;gap:10px;background:#fffffff7;backdrop-filter:blur(14px);border-top:1px solid var(--line);box-shadow:0 -6px 24px #16233708}
 .cooking-footer .totals-line{padding:3px 0;min-height:32px}
 .cooking-footer .totals-line strong{font-size:1.05rem}
 .cooking-footer .totals-line .small{font-size:.81rem}
 .cooking-footer .vessel-selected{min-height:72px;padding:10px 15px}
 .cooking-footer .vessel-selected strong{font-size:.95rem}
 .cooking-footer .finish-button{min-height:76px}
 .workspace:has(.cooking-footer)~.bottom-nav{border-top:0}
 body:has(.cooking-footer) #toast{bottom:calc(355px + env(safe-area-inset-bottom))}
}
@media(max-width:700px) and (max-height:650px){
 .cooking-footer{position:static;padding:0;margin-top:22px;border:0;background:none;box-shadow:none;backdrop-filter:none}
 .workspace:has(.cooking-footer){padding-bottom:calc(110px + env(safe-area-inset-bottom))}
}

.topbar-secondary{display:flex;align-items:center;gap:12px;margin-left:auto}.settings-open{background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--muted)}
@media(max-width:700px){.topbar-secondary{flex-basis:100%;order:3;justify-content:space-between;margin-left:0}.topbar-secondary .demo-badge{flex-basis:auto;order:0;min-height:52px}.topbar-secondary .demo-badge:after{display:none}.topbar-secondary .settings-open{min-width:56px;flex-shrink:0}}
