/* Шрифт и утверждённые токены */
@font-face{font-family:Nunito;src:url(/static/Nunito-variable.ttf) format('truetype');font-weight:400 1000;font-display:swap}
:root{--background:#B7C58F;--surface:#F7F8F0;--surface-green:#CDDCA1;--accent:#EDABC1;--ink:#243021;--muted:#46523F;--line:#D7DECA;--warning:#F2D7A6;--danger:#934443;--white:#fff;--food-image:url('/static/food-cutouts.png');--ease:cubic-bezier(.2,.8,.2,1)}
*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;background:#eff0e9;color:var(--ink);font-family:Nunito,-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-size:16px;font-weight:600;line-height:1.4}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:3px}button:active:not(:disabled){transform:scale(.98)}::selection{background:var(--accent);color:var(--ink)}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}button{border:0}small{font-size:13px}.muted{color:var(--muted)}.stack{display:flex;flex-direction:column;gap:12px}.gap24{gap:24px}.between{display:flex;justify-content:space-between;align-items:center;gap:12px}.inline{display:flex;align-items:center;gap:8px}.wrap{flex-wrap:wrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Внешняя карта демки */
.workspace{max-width:1190px;margin:0 auto;min-height:100svh;display:grid;grid-template-columns:258px 1fr;gap:48px;padding:24px}.map-panel{position:sticky;top:24px;height:calc(100svh - 48px);display:flex;flex-direction:column}.demo-logo{font-size:23px;line-height:1.1;font-weight:1000;letter-spacing:-.8px}.demo-version{font-size:12px;margin-top:8px;color:var(--muted)}.demo-explanation{font-size:13px;line-height:1.5;margin:16px 0 20px}.map-scroll{overflow:auto;overscroll-behavior:contain;padding:0 8px 12px 0;scrollbar-width:thin}.map-group{margin-top:20px}.map-group h2{font-size:13px;font-weight:900;margin-bottom:5px}.map-link{width:100%;display:flex;align-items:center;text-align:left;border-radius:12px;padding:9px 11px;background:transparent;font-size:13px;font-weight:700;min-height:36px;gap:8px;text-decoration:none}.map-link:hover{background:#e1e5d6}.map-link.current{background:var(--ink);color:var(--surface)}.map-link svg{width:17px;height:17px}.map-bottom{font-size:11px;color:var(--muted);padding-top:12px}.preview{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;gap:14px}.preview-meta{width:100%;max-width:415px;display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.mobile-toolbar{display:none}
/* Корпус iPhone и поверхность приложения */
.device{position:relative;width:415px;height:874px;flex-shrink:0;background:#171a17;padding:10px;border:1px solid #5a6055;border-radius:57px;box-shadow:0 18px 36px #26302120,0 0 0 2px #bec0b4 inset}.device:before{content:"";position:absolute;left:-4px;top:180px;width:3px;height:44px;background:#5b6059;border-radius:4px;box-shadow:0 58px #5b6059}.device:after{content:"";position:absolute;right:-4px;top:215px;width:3px;height:68px;background:#5b6059;border-radius:4px}.app-shell{position:relative;display:flex;flex-direction:column;width:393px;height:852px;border-radius:46px;overflow:hidden;background:var(--background)}.ios-status{height:45px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:0 26px;font-weight:900;font-size:13px;position:relative}.island{position:absolute;left:50%;top:9px;transform:translateX(-50%);width:115px;height:30px;border-radius:30px;background:#080b08}.ios-icons{display:flex;align-items:center;gap:4px}.ios-icons svg{width:16px;height:16px;stroke-width:2.1}.app-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none;padding:0 16px 20px}.app-scroll::-webkit-scrollbar{display:none}.page{animation:page-in .18s var(--ease)}.app-brand{display:flex;align-items:center;justify-content:space-between;min-height:40px;margin:5px 0 3px;gap:12px}.app-brand strong{font-size:18px;font-weight:1000;letter-spacing:-.45px}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border-radius:16px;flex-shrink:0}.icon-button:hover{background:#ffffff30}.heading-line{position:relative;display:flex;align-items:center;gap:8px;margin:0 0 18px;min-height:48px}.heading-line h1{font-size:36px;line-height:1.08;font-weight:1000;letter-spacing:-1px;overflow-wrap:anywhere;padding-right:30px}.heading-line h1:focus{outline:none}.heading-line.home h1{font-size:60px;line-height:1.03;letter-spacing:-2px;padding-right:0}.heading-line .back{margin-left:-10px}.heading-line .marks{margin-left:auto;margin-right:12px;flex-shrink:0}.marks{position:relative;display:inline-block;width:32px;height:32px;pointer-events:none}.marks:before,.marks:after{content:"";position:absolute;display:block;background:var(--accent);height:8px;border-radius:8px;transform:rotate(-55deg);width:24px;left:0;top:6px}.marks:after{width:20px;transform:rotate(-30deg);left:12px;top:21px}.marks.small{transform:scale(.65);transform-origin:center;width:26px;height:26px}.intro{font-size:14px;line-height:1.5;margin:-5px 0 18px;color:var(--muted)}
/* Основные компоненты */
.surface{padding:16px;background:var(--surface);border-radius:26px;margin-bottom:12px;overflow:hidden}.surface.organic{border-radius:29px 36px 26px 31px / 25px 31px 35px 28px}.surface h2,.section-heading{font-size:22px;line-height:1.2;font-weight:950;margin-bottom:12px;letter-spacing:-.4px}.surface h3{font-size:18px;line-height:1.2;font-weight:900}.surface p{font-size:15px;line-height:1.45}.surface .muted{font-size:13px}.surface a{font-weight:800}.segments{display:flex;gap:2px;min-height:44px;background:var(--surface);padding:2px;border-radius:999px;margin-bottom:16px}.segment{flex:1;min-width:0;min-height:40px;padding:6px 12px;border-radius:999px;background:transparent;font-weight:900;font-size:16px;line-height:1.1}.segment[aria-pressed="true"]{background:var(--accent)}.segment.small{font-size:13px;padding:8px}.primary,.secondary{min-height:52px;border-radius:999px;width:100%;padding:12px 20px;font-size:18px;line-height:1.25;font-weight:1000;display:flex;align-items:center;justify-content:center;gap:8px;transition:transform .12s var(--ease);text-decoration:none;text-align:center}.primary{background:var(--ink);color:var(--surface)}.secondary{background:var(--surface-green);color:var(--ink);font-size:16px;font-weight:850;min-height:48px}.secondary.light{background:var(--surface)}.secondary.pink{background:var(--accent)}.text-button{background:transparent;min-height:44px;padding:6px 0;text-decoration:underline;text-underline-offset:4px;font-size:14px;font-weight:850}.danger{color:var(--danger)}.button-row{display:flex;gap:8px;align-items:center}.button-row>*{flex:1}.section-action{display:flex;align-items:center;justify-content:space-between;margin:20px 0 10px;gap:8px}.section-action h2{font-size:22px;font-weight:950;line-height:1.15}.section-action button{font-size:13px;font-weight:850;min-height:44px;background:transparent;padding:4px 0}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 10px;background:var(--surface-green);font-size:13px;font-weight:850;white-space:normal}.badge.pink{background:var(--accent)}.badge.warn{background:var(--warning)}.badge svg{width:16px;height:16px}.row{display:flex;align-items:center;gap:12px;padding:12px 0;min-height:56px;border-bottom:1px solid var(--line);width:100%;text-align:left;background:transparent;color:var(--ink);text-decoration:none}.row:last-child{border-bottom:0}.row-body{flex:1;min-width:0}.row strong{font-size:16px;line-height:1.25;display:block;font-weight:850}.row small{font-size:13px;color:var(--muted);display:block;margin-top:3px}.row>.chevron{width:17px;height:17px;flex-shrink:0}.row-icon{background:var(--surface-green);padding:9px;border-radius:14px;display:flex}.row-icon svg{width:21px;height:21px}.summary{display:flex;align-items:center;justify-content:space-between;font-weight:900;margin:14px 2px 16px;gap:8px}.summary strong{font-size:25px;font-weight:1000;line-height:1.1;white-space:nowrap}.summary .marks{margin-left:0}.note{padding:13px 15px;background:var(--surface-green);border-radius:18px;font-size:13px;line-height:1.45;display:flex;align-items:flex-start;gap:9px;margin-bottom:14px}.note svg{width:20px;height:20px;margin-top:1px}.note.warning{background:var(--warning)}.note p{font-size:13px;line-height:1.45}.field{display:block;margin-bottom:14px}.field>span{display:block;font-size:14px;font-weight:850;margin-bottom:6px}.field input,.field select,.field textarea{display:block;width:100%;min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:11px 13px;min-height:48px;font-size:16px;line-height:1.4;outline-color:var(--ink)}.field textarea{min-height:100px;resize:vertical}.field small{display:block;color:var(--muted);margin-top:5px}.columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.columns>*{min-width:0}.check-row{display:flex;align-items:center;gap:10px;min-height:48px;font-size:15px;line-height:1.3;cursor:pointer}.check-row input{width:23px;height:23px;accent-color:var(--ink);flex-shrink:0}.check-row input:checked{accent-color:var(--accent)}.check-row>span{flex:1}.range{width:100%;accent-color:var(--ink);min-height:44px}.ticks{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.quantity{font-size:27px;font-weight:1000}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border-radius:99px;min-height:38px;padding:8px 12px;background:var(--surface-green);font-size:13px;font-weight:850}.chip[aria-pressed="true"]{background:var(--accent)}.data-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}.data-table td,.data-table th{padding:11px 5px;border-bottom:1px solid var(--line);text-align:right}.data-table td:first-child,.data-table th:first-child{text-align:left}.data-table th{font-size:12px;font-weight:850}.data-table tr:last-child td{border-bottom:0;font-weight:900}.empty{text-align:center;padding:25px 10px}.empty>.large-icon{display:flex;align-items:center;justify-content:center;margin:0 auto 14px;width:66px;height:66px;background:var(--surface-green);border-radius:25px}.empty h2{font-size:24px;line-height:1.15;font-weight:1000;margin-bottom:10px}.empty p{font-size:15px;line-height:1.5;color:var(--muted)}.divider{border:0;border-top:1px solid var(--line);margin:16px 0}.footer-note{margin:18px 4px 2px;font-size:11px;line-height:1.5;color:var(--muted)}
/* Фотографии и карточки исходного экрана */
.food{display:block;width:156px;aspect-ratio:1;position:relative;overflow:visible;flex-shrink:0;pointer-events:none}.food:before{content:"";position:absolute;left:0;right:0;top:50%;height:auto;aspect-ratio:1;transform:translateY(-50%);background-image:var(--food-image);background-size:300% 100%;background-repeat:no-repeat;background-position:0 0}.food.turkey:before{background-position:50% 0}.food.yogurt:before{background-position:100% 0}.meal-list{display:flex;flex-direction:column;gap:12px}.meal{position:relative;min-height:0;padding:14px 15px;display:flex;flex-direction:column;isolation:isolate}.meal:before{content:"";position:absolute;inset:0;background:var(--surface);border-radius:28px 36px 30px 24px / 26px 28px 36px 30px;z-index:-1;transform:rotate(-.65deg)}.meal:nth-child(even):before{border-radius:30px 26px 35px 29px / 32px 29px 24px 35px;transform:rotate(.7deg)}.meal h2{font-size:25px;font-weight:1000;line-height:1.03;letter-spacing:-.65px;max-width:58%;position:relative;z-index:2;margin-bottom:5px;pointer-events:none}.meal p{font-size:17px;font-weight:650;line-height:1.15;max-width:51%;position:relative;z-index:2;pointer-events:none}.meal .food{position:absolute;right:5px;top:-10px;width:47%;height:116px;z-index:1}.meal .food:before{background-size:300% 100%}.meal .food.yogurt{top:-4px;height:119px}.meal-bottom{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;margin-top:9px;gap:8px}.calories{display:inline-block;background:var(--surface-green);border-radius:999px;padding:2px 10px;font-size:15px;font-weight:900;line-height:1.4;pointer-events:none}.replace-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--surface);border:0;border-radius:999px;font-size:14px;font-weight:850;padding:5px 11px;min-height:34px;position:relative;z-index:4}.replace-pill:after{content:"";position:absolute;inset:-5px 0}.replace-pill svg{width:20px;height:20px}.meal .marks{position:absolute;right:12px;top:9px;z-index:2;transform:scale(.65)}.meal:nth-child(2) .marks{left:47%;right:auto;top:12px}.meal-link{position:absolute;inset:0;z-index:2;border-radius:30px}.recipe-mini{display:flex;gap:8px;align-items:center}.recipe-mini .food{width:85px;height:80px}.recipe-mini .row-body strong{font-size:17px}.recipe-hero{position:relative;display:flex;align-items:center;justify-content:center;height:185px;background:var(--surface);border-radius:32px;margin-bottom:15px}.recipe-hero .food{width:90%;height:220px;max-width:285px}.recipe-title{font-size:28px;font-weight:1000;line-height:1.08;margin:16px 0 12px}.recipe-meta{font-size:13px;line-height:1.45;display:grid;grid-template-columns:1fr 1fr;gap:12px}.recipe-meta strong{font-size:18px;display:block}.step{display:flex;gap:13px;margin-bottom:18px}.step-num{width:31px;height:31px;border-radius:50%;background:var(--accent);font-weight:950;display:flex;align-items:center;justify-content:center;flex-shrink:0}.step p{font-size:15px;line-height:1.45;padding-top:3px}.upload-zone{border:2px dashed #a9b696;border-radius:24px;padding:25px 17px;text-align:center;background:var(--surface);margin-bottom:16px}.upload-zone svg{width:36px;height:36px;margin-bottom:10px}.upload-zone strong{display:block;font-size:18px;font-weight:900;margin-bottom:7px}.upload-zone p{font-size:13px;color:var(--muted);margin-bottom:12px}.scan-frame{height:230px;background:var(--surface);border-radius:28px;display:flex;align-items:center;justify-content:center;margin-bottom:15px;position:relative;overflow:hidden}.scan-frame svg{width:90px;height:90px;stroke-width:1}.scan-frame:after{content:"";position:absolute;left:15%;right:15%;height:2px;background:var(--accent);top:50%}.swipe-card{position:relative;padding:14px 20px 22px;background:var(--surface);border-radius:32px 24px 35px 29px;isolation:isolate}.swipe-card .food{width:100%;height:225px}.swipe-card h2{font-size:28px;line-height:1.1;font-weight:1000}.swipe-actions{display:flex;justify-content:center;gap:20px;margin:18px 0 8px}.circle-action{width:61px;height:61px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface)}.circle-action.like{background:var(--accent)}.circle-action svg{width:27px;height:27px}.shopping-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.shopping-row:last-child{border-bottom:0}.shopping-row input{width:24px;height:24px;accent-color:var(--accent);flex-shrink:0}.shopping-row label{flex:1;font-size:15px;font-weight:850;min-height:40px;display:flex;flex-direction:column;justify-content:center;cursor:pointer}.shopping-row small{font-weight:600;color:var(--muted);margin-top:3px;font-size:12px}.shopping-row input:checked+label strong{text-decoration:line-through;color:var(--muted)}.price{text-align:right;font-size:15px;font-weight:950}.price small{display:block;font-size:11px}.placeholder-lines{display:flex;flex-direction:column;gap:12px}.placeholder-lines span{display:block;height:14px;border-radius:12px;background:var(--surface-green)}.placeholder-lines span:nth-child(2){width:70%}
/* Плотность главного экрана сохраняет кнопку в первом экране */
.heading-line.home{margin-bottom:10px}
.meal{min-height:0;padding-top:14px;padding-bottom:14px}
.meal:nth-child(2){min-height:0}
.meal h2{margin-bottom:4px}
.meal p{font-size:16px;line-height:18px}
.meal-bottom{position:relative;left:auto;right:auto;bottom:auto;margin-top:10px;flex-wrap:wrap}
.page:has(.meal-list)>.summary{margin-top:10px;margin-bottom:12px}
/* Штрихи и органические контуры */
.heading-line{justify-content:flex-start}
.heading-line h1{padding-right:0;min-width:0}
.heading-last{white-space:nowrap}
.heading-line .marks,.heading-line.home .marks{margin:5px 0 0 12px;vertical-align:top}
.meal:before{border-radius:0;transform:none;clip-path:url(#meal-curve-a)}
.meal:nth-child(even):before{border-radius:0;transform:none;clip-path:url(#meal-curve-b)}
.meal:nth-child(3):before{clip-path:url(#meal-curve-c)}
.meal:nth-child(2) .marks{left:auto;right:9px;top:8px}
.value-with-strokes{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}
/* Единая плавная подложка сегментного выбора */
.segments.with-selection{position:relative;isolation:isolate}
.segments.with-selection .segment{position:relative;z-index:1;background:transparent}
.segments.with-selection .segment[aria-pressed="true"]{background:transparent}
.selection-pill{position:absolute;left:2px;top:2px;bottom:2px;width:var(--selection-width);transform:translateX(var(--selection-left));border-radius:999px;background:var(--accent);pointer-events:none;z-index:0;transition:transform 300ms cubic-bezier(.25,.8,.25,1),width 300ms cubic-bezier(.25,.8,.25,1)}
.motion-segments .selection-pill{transition:none}
.motion-segments.ink-active .selection-pill{visibility:hidden}
.selection-ink{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;opacity:0;z-index:0;fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.selection-ink-fill{fill:var(--accent);stroke:none}
.selection-ink-bubble{fill:var(--accent);fill-opacity:.55}
/* Прорисовываемая галочка и штрихи в двух углах */
.checkbox-control{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;vertical-align:middle}
.check-row>.checkbox-control{flex:0 0 24px}
.checkbox-control input[type="checkbox"]{appearance:none;-webkit-appearance:none;display:block;width:24px;height:24px;min-width:24px;margin:0;border:1.6px solid var(--muted);border-radius:8px;background:var(--surface);cursor:pointer;transition:background-color 220ms,border-color 220ms}
.checkbox-control input[type="checkbox"]:checked{background:var(--accent);border-color:var(--accent)}
.checkbox-control input[type="checkbox"]:before,.checkbox-control input[type="checkbox"]:after{display:none}
.checkbox-drawing{position:absolute;inset:0;width:24px;height:24px;pointer-events:none;stroke-width:2.4}
.checkbox-drawing path{stroke-dasharray:1;stroke-dashoffset:1;opacity:0;transition:stroke-dashoffset 260ms ease,opacity 150ms 100ms}
.checkbox-control input:checked+.checkbox-drawing path{stroke-dashoffset:0;opacity:1;transition:stroke-dashoffset 300ms ease 200ms,opacity 70ms}
.motion-check .checkbox-drawing path{transform-box:fill-box;transform-origin:center}
.motion-check input.control-changed:checked+.checkbox-drawing path{animation:check-ink-draw 280ms linear both}
.motion-check .checkbox-strokes.upper{top:-14px;right:-14px}
.motion-check input:not(:checked)~.motion-burst{display:none}
.motion-check input.control-changed:checked~.motion-burst{animation:check-accent-envelope 440ms linear 280ms both}
.motion-check input.control-changed:checked~.motion-burst .mark-line{animation:mark-draw 160ms var(--ease) 280ms both}
.motion-check input.control-changed:checked~.motion-burst .mark-line.second{animation-delay:310ms}
.motion-check input.control-changed:checked~.motion-burst .mark-dot{animation:mark-droplet 320ms ease-out 370ms both}
.motion-field input{background-image:linear-gradient(var(--accent),var(--accent));background-repeat:no-repeat;background-position:left bottom;background-size:0 2px;transition:border-color 180ms ease,background-size 420ms cubic-bezier(.16,1,.3,1),box-shadow 220ms ease}
.motion-field input:focus{border-color:var(--accent);background-size:100% 2px;box-shadow:0 2px 8px #24302112}
.checkbox-strokes{position:absolute;opacity:0;pointer-events:none;--stroke-rotation:0deg;width:32px;height:32px;transform:rotate(var(--stroke-rotation)) scale(.45)}
.checkbox-strokes.upper{top:-17px;right:-18px}
.checkbox-strokes.lower{bottom:-17px;left:-18px;--stroke-rotation:180deg}

.shopping-row:has(input:checked) label strong{text-decoration:line-through;color:var(--muted)}
.chip,.nav-tab{transition:background-color 220ms ease}

/* Единая прорисовка штрихов от элемента наружу */
.marks{color:var(--accent)}
.marks:before,.marks:after{content:none}
.marks>svg{display:block;width:100%;height:100%;overflow:visible;stroke:currentColor;stroke-width:6;fill:none}
.mark-line{stroke-dasharray:1;stroke-dashoffset:0;stroke-linecap:round}
.mark-dot{fill:currentColor;stroke:none;opacity:0;transform-box:fill-box;transform-origin:center}
.draw-in .mark-line{animation:mark-draw 240ms var(--ease) both}
.draw-in .mark-line.second{animation-delay:45ms}
.draw-in .mark-dot{animation:mark-droplet 380ms ease-out 120ms both}
.motion-burst{opacity:0;pointer-events:none}
.checkbox-control input.control-changed~.motion-burst,.toggle input.control-changed~.motion-burst,.selection-changed>.motion-burst{animation:burst-envelope 680ms ease both}
.checkbox-control input.control-changed~.motion-burst .mark-line,.toggle input.control-changed~.motion-burst .mark-line,.selection-changed>.motion-burst .mark-line{animation:mark-draw 210ms var(--ease) 60ms both}
.checkbox-control input.control-changed~.motion-burst .mark-line.second,.toggle input.control-changed~.motion-burst .mark-line.second,.selection-changed>.motion-burst .mark-line.second{animation-delay:100ms}
.checkbox-control input.control-changed~.motion-burst .mark-dot,.toggle input.control-changed~.motion-burst .mark-dot,.selection-changed>.motion-burst .mark-dot{animation:mark-droplet 380ms ease-out 170ms both}
.selection-strokes{position:absolute;z-index:3;transform:scale(.45);width:32px;height:32px}
.selection-strokes.upper{left:calc(var(--selection-left) + var(--selection-width) - 12px);top:-17px}
.selection-strokes.lower{left:calc(var(--selection-left) - 14px);bottom:-17px;transform:rotate(180deg) scale(.45)}
/* Тумблер с переносом ручки и сменой крестика на галочку */
.toggle{position:relative;display:inline-block;width:52px;height:30px;flex:0 0 52px}
.toggle input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;z-index:2}
.toggle-track{position:absolute;inset:0;background:var(--line);border-radius:999px;transition:background-color 300ms ease;pointer-events:none}
.toggle-thumb{position:absolute;width:24px;height:24px;top:3px;left:3px;border-radius:50%;background:var(--surface);transform:translateX(0);display:flex;align-items:center;justify-content:center}
.toggle input:checked+.toggle-track{background:var(--accent)}
.toggle input:checked+.toggle-track .toggle-thumb{transform:translateX(22px)}
.toggle input:focus-visible+.toggle-track{outline:3px solid var(--ink);outline-offset:3px}
.toggle-glyph{width:15px;height:15px;stroke-width:2.7}
.toggle-cross{transform-box:fill-box;transform-origin:center;opacity:1;transition:opacity 140ms ease,transform 170ms ease}
.toggle-tick{stroke-dasharray:1;stroke-dashoffset:1;opacity:0;transition:stroke-dashoffset 180ms ease,opacity 100ms ease}
.toggle input:checked+.toggle-track .toggle-cross{opacity:0;transform:scale(.15) rotate(90deg)}
.toggle input:checked+.toggle-track .toggle-tick{opacity:1;stroke-dashoffset:0;transition:stroke-dashoffset 220ms ease 170ms,opacity 120ms ease 150ms}
.motion-toggle{isolation:isolate}
.toggle-ink{position:absolute;z-index:4;left:-12px;top:-9px;width:76px;height:48px;overflow:visible;pointer-events:none;color:var(--accent)}
.toggle-ink path{fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.motion-toggle input.control-changed~.toggle-ink path{animation:toggle-ink-draw 780ms cubic-bezier(.16,1,.3,1) both}
.toggle-strokes{position:absolute;width:32px;height:32px;transform:scale(.45);z-index:3}
.toggle-strokes.upper{top:-17px;right:-18px}
.toggle-strokes.lower{bottom:-17px;left:-18px;transform:rotate(180deg) scale(.45)}
/* Загрузка из кольца парных штрихов */
.stroke-loader{display:inline-flex;align-items:center;justify-content:center;width:82px;height:82px;flex:0 0 82px;color:var(--accent)}
.stroke-loader svg{width:82px;height:82px;overflow:visible;stroke:currentColor;stroke-width:4.2}
.loader-pair{transform-box:fill-box;transform-origin:center bottom;opacity:.3;animation:stroke-wave 1200ms ease-in-out infinite;animation-delay:calc(var(--i) * -120ms)}
.loader-pair path{stroke-linecap:round;fill:none}
.loading-copy{flex-direction:column;justify-content:center;text-align:center;gap:10px;padding:14px 0;min-height:145px}
dialog[aria-busy="true"] .dialog-symbol{display:none}
@keyframes mark-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes mark-droplet{0%{opacity:0;transform:translate(0,0) scale(.2)}25%{opacity:.8}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.55)}}
@keyframes burst-envelope{0%{opacity:0}8%,68%{opacity:1}100%{opacity:0}}
@keyframes toggle-ink-draw{0%{stroke-dashoffset:1;opacity:0}14%{opacity:.85}48%{opacity:.7}100%{stroke-dashoffset:0;opacity:0}}
@keyframes check-ink-draw{from{stroke-dashoffset:1;opacity:1}to{stroke-dashoffset:0;opacity:1}}
@keyframes check-accent-envelope{0%,55%{opacity:1}100%{opacity:0}}
@keyframes stroke-wave{0%,100%{opacity:.24;scale:1 .6}45%{opacity:1;scale:1 1.3}70%{opacity:.65;scale:1 .9}}

/* Постоянная навигация */
.bottom-nav{height:72px;flex-shrink:0;display:flex;gap:3px;padding:5px 11px 9px;background:var(--background)}.nav-tab{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;text-decoration:none;border-radius:19px;font-size:10px;font-weight:850;line-height:1.1;padding:6px 1px;min-height:54px}.nav-tab svg{width:27px;height:27px}.nav-tab[aria-current="page"]{background:var(--accent)}.home-indicator{height:12px;flex-shrink:0;position:relative;background:var(--background)}.home-indicator:after{content:"";position:absolute;width:112px;height:4px;left:50%;top:2px;transform:translateX(-50%);background:var(--ink);border-radius:9px}
/* Диалоги, состояния и загрузка */
dialog{left:var(--dialog-x,50vw);top:var(--dialog-y,50vh);margin:0;translate:-50% -50%;color:var(--ink);border:0;padding:0;width:min(365px,calc(100vw - 32px));max-height:calc(100dvh - 48px);background:var(--surface);border-radius:30px 35px 29px 32px;box-shadow:0 20px 60px #16201425;font:inherit;overflow:auto}dialog::backdrop{background:rgba(24,35,24,.38)}dialog[open]{animation:sheet-in .18s var(--ease)}.dialog-body{padding:24px}.dialog-close{position:absolute;top:9px;right:9px}.dialog-symbol{position:relative;width:64px;height:64px;background:var(--surface-green);border-radius:24px;display:flex;align-items:center;justify-content:center;margin-bottom:18px}.dialog-symbol.pink{background:var(--accent)}.dialog-symbol svg{width:29px;height:29px}.dialog-symbol .marks{position:absolute;right:-14px;top:-6px;transform:scale(.7)}.dialog-body h2{font-size:27px;line-height:1.15;font-weight:1000;letter-spacing:-.5px;margin:0 20px 12px 0}.dialog-body p{font-size:16px;line-height:1.5;margin-bottom:20px}.dialog-body .primary{font-size:17px;margin-top:12px}.loading-copy{min-height:90px}.loading-caption{font-size:13px;color:var(--muted);margin-top:10px}.state-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.state-tile{min-height:103px;background:var(--surface);border-radius:23px;text-align:left;padding:15px;font-size:14px;font-weight:900;line-height:1.2}.state-tile svg{display:block;margin-bottom:9px}.swatch-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.swatch{padding:16px;border:1px solid var(--line);border-radius:18px;min-height:85px;font-size:13px;font-weight:850}.swatch small{display:block;margin-top:8px;font-weight:650}.screen-map-dialog{padding:24px}.screen-map-dialog h2{font-size:27px;font-weight:1000;margin-bottom:12px}.screen-map-dialog .map-link{min-height:44px}.screen-map-dialog .map-link.current{background:var(--accent);color:var(--ink)}.screen-map-dialog .map-group h3{font-size:15px;margin:16px 0 5px}.screen-map-dialog .map-group{margin-top:0}.dialog-image{margin:-10px auto 4px;display:flex;justify-content:center}.dialog-image .food{width:180px;height:140px}
@keyframes page-in{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes sheet-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:800px){.device{zoom:var(--preview-scale,1)}}@media(max-width:799px){body{background:var(--background)}.workspace{display:block;padding:0;min-height:100dvh}.map-panel,.preview-meta{display:none}.preview{gap:0}.device{width:100%;height:calc(100dvh - 34px);min-height:440px;padding:0;border:0;border-radius:0;background:var(--background);box-shadow:none}.device:before,.device:after{display:none}.app-shell{width:100%;height:100%;border-radius:0}.ios-status{display:none}.home-indicator{height:env(safe-area-inset-bottom,0px);min-height:0}.home-indicator:after{display:none}.bottom-nav{height:74px;padding-bottom:10px}.mobile-toolbar{height:34px;display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:0 15px;background:var(--ink);color:var(--surface);font-size:11px;font-weight:750}.mobile-toolbar button{background:transparent;color:inherit;font-size:11px;font-weight:850;min-height:32px;display:flex;gap:5px;align-items:center;padding:0}.mobile-toolbar svg{width:15px;height:15px}.app-brand{margin-top:12px}.app-scroll{padding-bottom:24px}.heading-line.home h1{font-size:60px}.heading-line h1{font-size:34px}}
@media(max-width:360px){.app-scroll{padding-left:12px;padding-right:12px}.meal{padding-left:13px;padding-right:13px}.meal h2{font-size:23px}.meal p{font-size:16px}.meal .food{right:-1px;width:48%}.replace-pill{font-size:12px;padding-left:8px;padding-right:8px}.calories{font-size:13px;padding:3px 8px}.app-brand strong{font-size:16px}.summary strong{font-size:22px}.heading-line h1{font-size:31px}.heading-line.home h1{font-size:55px}.nav-tab{font-size:9px}.columns{gap:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Рабочая оболочка: токены и элементы унаследованы из утверждённой демки. */
@font-face{font-family:Nunito;src:url('/static/Nunito-variable.ttf') format('truetype');font-weight:400 1000;font-display:swap}
body{background:#eff0e9}.app-shell{width:min(100%,440px);height:100dvh;min-height:580px;margin:auto;background:var(--background);position:relative;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 16px 60px #24302122}.ios-status{height:49px;padding:13px 24px 8px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:900;flex:none}.island{position:absolute;left:50%;top:9px;transform:translateX(-50%);height:23px;width:100px;border-radius:20px;background:#111}.ios-icons{letter-spacing:4px}.app-scroll{overflow:auto;overscroll-behavior:contain;flex:1;scrollbar-width:thin;scrollbar-color:var(--accent) transparent}.page{padding:8px 20px 30px}.app-brand{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}.app-brand strong{font-size:16px;font-weight:950}.heading-line{display:flex;align-items:center;gap:9px;margin-bottom:15px}.heading-line h1{font-size:32px;font-weight:1000;line-height:1.08;letter-spacing:-.7px}.page-subtitle{font-size:14px;color:var(--muted);margin:-6px 0 16px}.bottom-nav{height:71px;flex:none;display:flex;justify-content:space-around;align-items:center;padding:5px 8px calc(7px + env(safe-area-inset-bottom));background:#f7f8f0;border-top:1px solid var(--line);z-index:5}.bottom-nav button{min-width:68px;background:none;display:flex;flex-direction:column;gap:1px;align-items:center;font-size:11px;font-weight:850;color:var(--muted);padding:4px 8px}.bottom-nav button svg{width:22px;height:22px}.bottom-nav button[aria-current=page]{color:var(--ink)}.bottom-nav button[aria-current=page] svg{color:#879561}.home-indicator{position:absolute;z-index:7;width:120px;height:4px;background:#243021;border-radius:4px;bottom:4px;left:50%;transform:translateX(-50%)}
.surface{position:relative;background:var(--surface);padding:17px 18px;border-radius:27px 30px 25px 32px;margin:12px 0;box-shadow:0 3px 9px #2430210b}.surface h2,.section-title{font-size:19px;line-height:1.2;font-weight:1000;margin:0 0 10px}.intro{font-size:14px;color:var(--muted);margin:0 0 13px}.muted{color:var(--muted)}.row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none;min-height:54px}.row:last-child{border-bottom:0}.row-body{display:flex;flex:1;flex-direction:column;gap:2px}.row-body strong{font-weight:900}.row-body small{font-size:12px;color:var(--muted);line-height:1.4}.row-icon{width:36px;height:36px;border-radius:14px;background:var(--surface-green);display:grid;place-items:center}.row-icon svg{width:20px;height:20px}.chevron{width:18px;height:18px}.field{display:flex;flex-direction:column;gap:6px;margin:11px 0;font-size:13px;font-weight:850}.field input,.field textarea,.field select,.input{border:1px solid #c8d1b8;border-radius:15px;background:#fff;padding:12px 14px;min-height:47px;width:100%;font-size:16px;font-weight:650}.field textarea{min-height:96px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{outline:3px solid #edabc177;border-color:#748258}.columns{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check-row{display:flex;gap:10px;align-items:flex-start;padding:9px 0;font-size:14px;font-weight:800}.check-row input{width:20px;height:20px;accent-color:#879561;flex:none}.button-row{display:flex;gap:10px;margin:12px 0}.primary,.secondary{width:100%;min-height:49px;border-radius:18px;padding:10px 15px;font-weight:950;display:inline-flex;align-items:center;justify-content:center;text-align:center}.primary{background:var(--ink);color:#fff}.secondary{background:var(--surface-green);color:var(--ink)}.text-button{background:none;padding:9px 4px;color:var(--ink);font-weight:900;text-decoration:underline;text-underline-offset:4px}.note{display:flex;gap:9px;align-items:flex-start;padding:13px 14px;border-radius:18px;background:#e9eddc;margin:12px 0;font-size:13px;line-height:1.45}.note.warning{background:#f7e9cf}.note svg{width:19px;height:19px}.badge{display:inline-flex;border-radius:999px;padding:4px 10px;background:var(--surface-green);font-size:11px;font-weight:900;align-items:center}.badge.warning{background:#f2d7a6}.badge.danger{background:#f0d9d7;color:#743b3a}.badge.approx{background:#f6e6c9}.divider{border:0;border-top:1px solid var(--line);margin:13px 0}.stack{display:flex;flex-direction:column;gap:9px}.meal-list{display:flex;flex-direction:column;gap:11px}.meal{padding:15px;min-height:126px;background:var(--surface);border-radius:29px 35px 27px 32px;position:relative;box-shadow:0 3px 8px #2430210c}.meal h2{font-size:18px;font-weight:950;margin:0 0 2px}.meal p{font-size:14px}.meal-bottom{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:10px}.meal-bottom .button-row{margin:0}.recipe-image{width:100%;aspect-ratio:1.8;object-fit:cover;border-radius:23px;margin-bottom:12px}.recipe-image.square{aspect-ratio:1.35}.food-placeholder{display:grid;place-items:center;min-height:112px;background:var(--surface-green);border-radius:23px;margin:0 0 12px;color:var(--muted);font-size:13px}.recipe-title{font-size:27px;font-weight:1000;line-height:1.12;margin:10px 0}.ingredient{display:grid;grid-template-columns:22px 1fr auto;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0;font-size:14px}.ingredient:last-child{border:0}.step{display:flex;gap:11px;margin:10px 0;align-items:flex-start}.step-num{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--accent);font-weight:950}.step p{padding-top:3px;font-size:15px;line-height:1.45}.status-line{font-size:13px;font-weight:850;margin:10px 2px}.status-line.success{color:#475b2a}.status-line.error{color:#7c3e3c}.status-line.pending{color:#586142}.file-input{display:none}.upload-zone{border:2px dashed #9ba983;background:var(--surface);padding:24px 15px;border-radius:24px;text-align:center}.upload-zone svg{margin:0 auto 6px;display:block}.upload-zone strong{display:block}.upload-zone p{font-size:12px;color:var(--muted);margin:5px 0 12px}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #c8d1b8;border-radius:20px;background:#fff;padding:8px 12px;font-size:13px;font-weight:850}.chip[aria-pressed=true]{background:var(--accent);border-color:var(--accent)}.progress{height:7px;border-radius:8px;background:#d9dfcd;overflow:hidden}.progress span{display:block;height:100%;background:#83925d}.shopping-row{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:11px 0}.shopping-row input{width:23px;height:23px;accent-color:#879561}.shopping-row label{flex:1;font-size:14px;font-weight:850}.shopping-row small{display:block;color:var(--muted);font-size:11px}.shopping-row input:checked+label{text-decoration:line-through;color:var(--muted)}.price{text-align:right;font-size:14px;font-weight:950}.empty{text-align:center;padding:38px 18px}.empty h2{font-size:23px;font-weight:1000;margin:0 0 9px}.empty p{font-size:14px;color:var(--muted);line-height:1.45}.counter{display:flex;align-items:center;justify-content:space-between;gap:12px}.counter button{width:39px;height:39px;border-radius:50%;background:var(--surface-green);font-size:20px}.counter span{font-weight:950}.icon-button{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#f7f8f0}.dialog-close{float:right}dialog{max-width:min(400px,calc(100% - 25px));max-height:85dvh;overflow:auto;border:0;border-radius:27px;padding:22px;background:var(--surface);color:var(--ink);box-shadow:0 18px 60px #14201244}dialog::backdrop{background:#17201777}#toast{position:fixed;bottom:84px;left:50%;transform:translateX(-50%);z-index:12;background:var(--ink);color:#fff;padding:11px 17px;border-radius:18px;max-width:min(90vw,390px);font-size:13px;font-weight:850;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}.desktop-admin{max-width:900px}.admin-layout{max-width:1100px;margin:20px auto;display:grid;grid-template-columns:220px minmax(300px,600px);gap:35px;padding:20px}.admin-layout .app-shell{height:auto;min-height:0;border-radius:28px;padding:10px}.sync-pill{font-size:11px;color:var(--muted);font-weight:850}.menu-form{margin-top:12px}.photo-citation{font-size:10px;line-height:1.45;color:var(--muted)}.inline-actions{display:flex;flex-wrap:wrap;gap:7px}.inline-actions button{width:auto;min-height:38px;font-size:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:19px 0 8px}.section-heading h2{font-weight:1000;font-size:18px}.warning-box{background:#f8ead1;border-radius:17px;padding:12px 14px;font-size:13px;line-height:1.45;margin:10px 0}.error-box{background:#f3dddd;border-radius:17px;padding:12px 14px;font-size:13px}.cover-photo{width:100%;max-height:240px;object-fit:cover;border-radius:25px}.searchbox{position:relative}.searchbox input{padding-left:43px}.searchbox svg{position:absolute;left:13px;top:13px;width:20px;height:20px}
@media(min-width:700px){body{padding:18px 0}.app-shell{height:min(880px,calc(100dvh - 36px));min-height:600px;border-radius:34px}.ios-status{padding-top:12px}.home-indicator{bottom:8px}.admin-layout{align-items:start}}@media(max-width:360px){.page{padding-left:15px;padding-right:15px}.heading-line h1{font-size:29px}.surface{padding:15px}.meal{padding:13px}}

/* Рабочий экран: без имитации системной рамки iPhone. */
.ios-status,.home-indicator{display:none!important}
.bottom-nav{background:var(--accent);border-top:0;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
.bottom-nav button[aria-current=page]{background:var(--surface);border-radius:16px;color:var(--ink)}
#app .surface{border-radius:29px 35px 26px 32px / 25px 30px 34px 28px}
#app .surface:nth-child(3n + 2){border-radius:34px 26px 33px 29px / 28px 33px 26px 32px}
#app .surface:nth-child(3n){border-radius:25px 32px 29px 36px / 33px 27px 31px 25px}
.onboarding-screen{overflow:visible}.rule-explainer{margin:12px 0 16px;padding:13px 15px;background:#e9eddc;border-radius:19px 24px 18px 22px}.rule-explainer strong{font-size:14px;font-weight:950}.rule-explainer p{margin-top:4px;color:var(--muted);font-size:13px;line-height:1.45}
.suggestion-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:-4px}.suggestion-list:empty{display:none}.suggestion-chip{background:var(--surface-green)}.suggestion-option{width:100%;text-align:left;padding:9px 12px;background:var(--surface);border-radius:14px;font-size:14px;font-weight:800}.suggestion-option:hover{background:var(--surface-green)}.searchbox{z-index:3}.searchbox .suggestion-list{position:absolute;top:calc(100% - 5px);left:0;right:0;padding:8px;background:var(--surface);border-radius:18px;box-shadow:0 8px 22px #24302120}.searchbox .suggestion-list:empty{display:none}
.preference-deck{position:relative;margin:14px 0 28px}.preference-card-back{position:absolute;inset:0;border-radius:31px 24px 34px 27px;pointer-events:none;background:var(--surface-green);box-shadow:0 4px 12px #24302112}.preference-card-back.back-1{transform:translateY(10px) rotate(1.1deg) scale(.98)}.preference-card-back.back-2{transform:translateY(19px) rotate(-1.5deg) scale(.955);background:#f3d6e0}.preference-swipe-card{position:relative;z-index:1;touch-action:pan-y;cursor:grab;user-select:none;transition:transform .18s ease,opacity .18s ease;will-change:transform}.preference-swipe-card:active{cursor:grabbing}.preference-swipe-card .recipe-image,.preference-swipe-card .food-placeholder{user-select:none;pointer-events:none}.preference-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.preference-actions button{width:100%;min-height:43px;font-size:13px}.preference-vote{position:absolute;z-index:2;top:19px;padding:6px 11px;border:3px solid currentColor;border-radius:10px;font-size:16px;font-weight:1000;letter-spacing:1px;opacity:0;pointer-events:none}.vote-like{left:16px;color:#53683b;transform:rotate(-12deg)}.vote-no{right:16px;color:#a34565;transform:rotate(12deg)}.preference-swipe-card.drag-like .vote-like,.preference-swipe-card.swipe-exit-right .vote-like,.preference-swipe-card.drag-no .vote-no,.preference-swipe-card.swipe-exit-left .vote-no{opacity:1}.preference-swipe-card.swipe-exit-right{transform:translateX(125%) rotate(14deg);opacity:0}.preference-swipe-card.swipe-exit-left{transform:translateX(-125%) rotate(-14deg);opacity:0}
@media(max-width:799px){.app-shell{height:100dvh;min-height:0}.app-scroll{padding-top:env(safe-area-inset-top)}}

.rule-explainer ul{padding-left:18px;margin:7px 0 0;font-size:13px;line-height:1.45;color:var(--muted)}.rule-explainer li+li{margin-top:7px}

/* Оболочка следует экрану меню из утверждённого третьего референса. */
.bottom-nav{background:var(--background)}.bottom-nav button[aria-current=page]{background:var(--accent);border-radius:19px;color:var(--ink)}
.app-brand .app-settings{width:38px;height:38px;padding:0;background:transparent}.app-brand .app-settings svg{width:24px;height:24px}
.meal .recipe-image{position:absolute;right:8px;top:4px;width:43%;height:112px;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:14px;margin:0;mix-blend-mode:multiply}.meal:has(.recipe-image)>h2,.meal:has(.recipe-image)>p{max-width:56%}.meal .calories{font-size:13px}
.meal{background:transparent;padding:14px 15px!important}.meal:before{background:var(--surface)}.meal-bottom{position:relative;left:auto;right:auto;bottom:auto;margin-top:10px;flex-wrap:wrap}
.meal{margin:15px 0}.recipe-row h2,.recipe-row p{max-width:none}
.menu-dates{display:flex;gap:7px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}.menu-dates .chip{flex:none}
.bought-quantity{width:78px;min-height:30px;border:1px solid #c8d1b8;border-radius:10px;padding:3px 6px;font:inherit;background:#fff}.shopping-row label small+small{margin-top:4px}
.meal-main.has-photo{display:grid;grid-template-columns:minmax(0,1fr) 42%;gap:10px;align-items:center}.meal-main.no-photo{display:block}.meal-main .recipe-image{position:static;width:100%;height:130px;max-height:none;margin:0;object-fit:contain;grid-column:2}.meal-main h2,.meal-main p{max-width:none!important}.meal-main h2{font-size:23px;line-height:1.1;margin:6px 0}.meal-main p{font-size:14px;line-height:1.35}.meal-head{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.meal-head small{font-size:11px;color:var(--muted)}.meal>.per100,.meal>small{display:block;margin:9px 0;font-size:12px;line-height:1.4}.meal .meal-portion{max-width:none;font-size:12px;line-height:1.4;margin:9px 0}.meal>.inline-actions{margin-top:4px;gap:6px}.nutrition-day{padding:11px 0;border-bottom:1px solid var(--line)}.nutrition-day:last-of-type{border-bottom:0;margin-bottom:8px}.nutrition-day small{display:block;margin-top:5px;line-height:1.45}.nutrition-day p{margin:5px 0}.field input[type=range]{padding:0;accent-color:var(--ink);border:0;background:transparent}
.import-page{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.import-page img{width:72px;height:100px;object-fit:cover;border-radius:14px}.import-page small{display:block;overflow-wrap:anywhere;margin:5px 0}.source-page{width:100%;height:auto;border-radius:18px}.surface figure{margin:14px 0}.surface figcaption{font-size:12px;color:var(--muted);margin-top:6px}

/* Добавить в конец app/static/app.css при интеграции view-fridge.js. */
.fridge-cabinet{position:relative;margin:8px 0 16px;padding:12px 12px 16px;background:#E8EBD9;border:3px solid #F7F8F0;border-radius:38px 34px 30px 32px/32px 38px 28px 35px;box-shadow:inset 0 0 0 2px #24302112,0 8px 18px #24302116;overflow:hidden}
.fridge-cabinet:before{content:"";position:absolute;inset:0 auto 0 0;width:7px;background:#D5DDC4;opacity:.75}
.fridge-cabinet-top{display:flex;align-items:center;gap:9px;min-height:38px;padding:0 8px 10px;color:#243021}
.fridge-cabinet-top strong{font-size:17px;font-weight:950;flex:1}
.fridge-cabinet-top>span:last-child{font-size:12px;color:#46523F}
.fridge-light{width:9px;height:9px;border-radius:50%;background:#EDABC1;box-shadow:0 0 0 4px #EDABC133}
.fridge-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px;padding:10px 4px 12px;border-bottom:8px solid #B7C58F;border-radius:0 0 8px 8px;min-height:100px}
.fridge-shelf:last-child{border-bottom-width:10px}
.fridge-shelf-empty{grid-column:1/-1;color:#66705C;font-size:13px;text-align:center;padding:18px 4px}
.fridge-item{min-width:0;min-height:126px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;padding:10px 7px 8px;background:#F7F8F0;border-radius:22px 18px 24px 17px/18px 24px 17px 22px;box-shadow:0 3px 7px #24302116;text-align:center;overflow-wrap:anywhere}
.fridge-item:nth-child(3n+2){border-radius:18px 24px 17px 23px/25px 16px 22px 17px;transform:rotate(1deg)}
.fridge-item:nth-child(3n){border-radius:25px 17px 21px 19px/17px 24px 16px 25px;transform:rotate(-1deg)}
.fridge-item.is-check{background:#FFF5E3}
.fridge-item-photo{display:block;width:38px;height:38px;object-fit:cover;border-radius:12px}
.fridge-item-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#CDDCA1;color:#243021}
.fridge-item-mark svg{width:23px;height:23px}
.fridge-item>strong{font-size:14px;line-height:1.15}
.fridge-item-amount{font-size:13px;font-weight:950}
.fridge-item>small{font-size:11px;color:#46523F}
.fridge-item .badge{font-size:10px;padding:3px 7px}
.fridge-item-actions{width:100%;display:grid;gap:4px;margin-top:3px}
.fridge-item-actions .secondary{min-height:34px;padding:6px 7px;font-size:12px}
.fridge-empty{min-height:150px;display:flex;flex-direction:column;justify-content:center}
.fridge-empty p{padding:20px 8px;text-align:center;color:#46523F}

.shopping-row:has(input:checked)>label{text-decoration:line-through;color:var(--muted)}
