/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.fixed{position:fixed}}:root{font-synthesis:none;color:var(--text);background:var(--body);color-scheme:light;--body:#faf8ff;--text:#251c32;--ink-muted:#645570;--muted:var(--ink-muted);--accent:#7739be;--accent-strong:#632aab;--action-start:#8243c7;--action-end:#6d2fba;--surface:#fffdfe;--surface-2:#f5eeff;--surface-3:#e8daff;--line:#ede4f7;--lavender:#e8daff;--lavender-light:#f5eeff;--lemon:#fff0b3;--lemon-light:#fff9de;--mint:#d7f5e5;--mint-light:#effbf4;--peach:#ffe1d5;--peach-light:#fff2ed;--lavender-ink:#632aab;--lemon-ink:#745115;--mint-ink:#245a47;--peach-ink:#853e55;--danger:#923855;--warning-bg:#fff3d9;--warning-text:#734e20;--shadow:0 5px 18px #5028690b,0 1px 3px #5028690a;--telegram-top:var(--tg-content-safe-area-inset-top,0px);--telegram-bottom:var(--tg-content-safe-area-inset-bottom,0px);-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{color-scheme:dark;--body:#1c1527;--text:#f8f0fd;--ink-muted:#c8bcd5;--accent:#ca9dfa;--accent-strong:#e4c7fc;--action-start:#8849c9;--action-end:#7135b7;--surface:#271d34;--surface-2:#332341;--surface-3:#483158;--line:#443451;--lavender:#523771;--lavender-light:#35244a;--lemon:#4b3d27;--lemon-light:#332b23;--mint:#25463d;--mint-light:#22322e;--peach:#4c2d38;--peach-light:#38242d;--lavender-ink:#e4c7fc;--lemon-ink:#ffe29b;--mint-ink:#b6edce;--peach-ink:#ffd1d7;--danger:#ffbcd0;--warning-bg:#463521;--warning-text:#ffdfa5;--shadow:0 6px 24px #11091c42}*,:before,:after{box-sizing:border-box}html{min-height:100%;scroll-padding-top:25px}body{background:var(--body);min-height:100svh;margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.47}button,a,input,select,textarea,summary,[tabindex]:not([tabindex="-1"]){outline-offset:4px}:focus-visible{outline:2px solid var(--accent)}img{max-width:100%;display:block}h1,h2,h3,p{margin:0}h1{letter-spacing:-.035em;font-size:clamp(23px,3vw,32px);font-weight:720;line-height:1.13}h2{letter-spacing:-.025em;font-size:19px;font-weight:700;line-height:1.23}h3{letter-spacing:-.015em;overflow-wrap:anywhere;font-size:16px;font-weight:675;line-height:1.28}p{line-height:1.5}small,.small{font-size:12px;line-height:1.45}.muted,small{color:var(--muted)}svg{flex:none}.shell{min-height:100svh}.main{min-width:0}.content{max-width:1224px;padding:max(20px,calc(var(--telegram-top) + 10px),env(safe-area-inset-top))max(clamp(16px,4vw,52px),env(safe-area-inset-right))56px max(clamp(16px,4vw,52px),env(safe-area-inset-left));margin-inline:auto}.content-home{max-width:1000px}.app-header{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-bottom:clamp(18px,3.4vw,33px);display:grid}.brand{text-align:left;letter-spacing:-.025em;align-items:center;gap:9px;width:fit-content;min-height:44px;font-size:18px;font-weight:710;display:flex}.brand-mark,.quick-icon{background:linear-gradient(145deg,var(--lavender-light),var(--lavender));width:39px;height:39px;color:var(--lavender-ink);border-radius:14px;flex:none;place-items:center;display:grid}.theme-button{background:var(--surface-2);width:44px;height:44px;color:var(--accent-strong);border-radius:50%;justify-self:end;place-items:center;transition:background .18s;display:grid}.theme-button:hover{background:var(--surface-3)}.primary-nav{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;align-items:stretch;gap:4px;padding:4px;display:flex}.primary-nav button{min-height:42px;color:var(--muted);border-radius:13px;justify-content:center;align-items:center;gap:8px;padding:6px 14px;font-size:13px;font-weight:650;transition:background .18s,color .18s;display:flex}.primary-nav button:hover{color:var(--accent-strong);background:var(--surface-2)}.primary-nav button.current{color:var(--accent-strong);background:linear-gradient(130deg,var(--lavender-light),var(--lavender))}.primary-nav button.current svg{stroke-width:2.35px}.page-title p{color:var(--muted);margin-top:6px;font-size:13px}.home-view{gap:clamp(11px,2vw,20px);display:grid}.home-tile{--tile-ink:var(--lavender-ink);isolation:isolate;text-align:left;width:100%;min-width:0;box-shadow:var(--shadow);border-radius:27px;transition:box-shadow .2s,transform .2s;display:block;position:relative;overflow:hidden}@media (hover:hover){.home-tile:hover{transform:translateY(-2px);box-shadow:0 8px 22px #5c35771c}.home-tile:hover .tile-arrow{transform:translate(3px)}}.home-tile:active{transform:scale(.99)}.home-tile-calculation{background:radial-gradient(ellipse at 77% 80%,var(--surface-2)3%,transparent 55%),linear-gradient(120deg,var(--lavender-light)0%,var(--lavender)73%);min-height:clamp(212px,26vw,275px)}.home-tile img{pointer-events:none;object-fit:contain;max-width:none;position:absolute}.home-tile-calculation img{object-position:center bottom;width:65%;height:115%;bottom:-10%;right:-3%}.home-tile-copy{z-index:1;flex-direction:column;align-items:flex-start;gap:11px;width:fit-content;padding:clamp(20px,3.5vw,35px);display:flex;position:relative}.tile-icon,.tile-arrow{color:var(--tile-ink);background:var(--surface);flex:none;place-items:center;display:grid}@supports (color:color-mix(in lab,red,red)){.tile-icon,.tile-arrow{background:color-mix(in srgb,var(--surface)74%,transparent)}}.tile-icon{border-radius:14px;width:43px;height:43px}.tile-arrow{border-radius:50%;width:42px;height:42px;transition:transform .2s}.home-tile-calculation .tile-arrow{background:var(--action-end);color:#fff}.tile-title{letter-spacing:-.045em;margin-block:2px 3px;font-size:clamp(27px,4.2vw,39px);font-weight:720;line-height:1.03;display:block}.home-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,2vw,20px);display:grid}.home-tile-grid .home-tile{min-height:160px}.home-tile-recipes{--tile-ink:var(--lemon-ink);background:linear-gradient(132deg,var(--lemon-light),var(--lemon))}.home-tile-cakes{--tile-ink:var(--mint-ink);background:linear-gradient(132deg,var(--mint-light),var(--mint))}.home-tile-grid img{object-position:right bottom;width:58%;height:100%;bottom:-5%;right:0}.home-tile-grid .home-tile-copy{gap:6px;padding:clamp(13px,2vw,22px)}.home-tile-grid .tile-icon{border-radius:11px;width:35px;height:35px;margin-bottom:2px}.home-tile-grid .tile-arrow{width:33px;height:33px;margin-top:4px}.home-tile-grid strong{letter-spacing:-.027em;font-size:clamp(15px,2.5vw,23px);font-weight:700;line-height:1.13}.home-tile-grid small{color:var(--tile-ink);font-size:12px;line-height:1.28}.home-recent{min-width:0;margin-top:7px}.home-section{margin-top:25px}.home-section>h2{margin-bottom:12px}.section-title{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.section-title .action.quiet{white-space:nowrap;flex-shrink:0;padding-inline:4px 0}.home-empty{background:linear-gradient(115deg,var(--mint-light),var(--surface));border-radius:23px;align-items:center;gap:14px;padding:17px;display:flex}.home-empty-icon{background:var(--mint);width:47px;height:47px;color:var(--mint-ink);border-radius:15px;flex:none;place-items:center;display:grid}.home-empty .action.quiet{min-height:35px;padding:4px 0}.cake-carousel{overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--surface-3)transparent;grid-auto-columns:calc(33.3333% - 8.66667px);grid-auto-flow:column;gap:13px;padding:2px 3px 10px;display:grid;overflow-x:auto}.cake-carousel .cake-card{scroll-snap-align:start}.cake-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.5vw,20px);display:grid}.recipe-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-top:19px;display:grid}.cake-card,.recipe-card{min-width:0;box-shadow:var(--shadow);border-radius:23px;transition:box-shadow .18s,transform .18s;position:relative;overflow:hidden}.cake-card{background:linear-gradient(145deg,var(--mint-light),var(--mint))}.recipe-card{background:linear-gradient(145deg,var(--category-light,var(--lemon-light)),var(--category-color,var(--lemon)))}[data-category=cream]{--category-color:var(--lavender);--category-light:var(--lavender-light)}[data-category=filling]{--category-color:var(--peach);--category-light:var(--peach-light)}[data-category=soak]{--category-color:var(--mint);--category-light:var(--mint-light)}@media (hover:hover){.cake-card:hover,.recipe-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #42295219}}.card-hit{z-index:1;border-radius:inherit;width:100%;position:absolute;inset:0}.card-hit:focus-visible{outline-offset:-3px}.card-art{background:var(--surface-2);aspect-ratio:1.85;overflow:hidden}.card-art img,.recipe-photo img{object-fit:cover;object-position:center 55%;width:100%;height:100%}.card-art img[src$="hero.webp"]{object-position:67% 55%}.card-art.diagram{justify-content:center;align-items:center;display:flex}.card-art.diagram svg{width:100%;height:115%}.card-fav{z-index:2;position:absolute;top:9px;right:9px}.card-fav .icon-button{background:var(--surface);border:0;box-shadow:0 2px 8px #39144714}.card-fav .icon-button.active svg,.page-actions .icon-button.active svg{fill:var(--accent);stroke:var(--accent)}.cake-card-copy,.recipe-copy{padding:11px 13px 13px}.cake-card-copy{justify-content:space-between;align-items:center;gap:7px;display:flex}.cake-card-copy svg{color:var(--accent)}.cake-card-copy p{color:var(--muted);margin-top:4px;font-size:12px}.cake-card-copy p span{padding-inline:2px}.recipe-photo{aspect-ratio:1.53;background:var(--surface-3);overflow:hidden}.recipe-copy h3{min-height:38px}.recipe-copy>div{flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:7px;display:flex}.recipe-fallback{background:var(--category-light,var(--lemon-light));min-height:100%;color:var(--accent-strong);place-items:center;display:grid}.saved-row strong,.saved-row small{display:block}.saved-row{background:linear-gradient(115deg,var(--mint-light),var(--surface));text-align:left;border-radius:17px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;display:grid}.saved-row:hover{background:var(--surface-2)}.saved-row>svg{color:var(--accent)}.saved-list{gap:9px;max-width:770px;margin-top:18px;display:grid}.inline-tip{background:var(--surface-2);color:var(--accent-strong);border-radius:14px;align-items:center;gap:10px;margin-top:21px;padding:17px;font-size:14px;display:flex}.action{text-align:center;border-radius:14px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 16px;font-size:13px;font-weight:680;line-height:1.2;transition:background .17s,box-shadow .17s;display:inline-flex}.action.primary{color:#fff;background:linear-gradient(135deg,var(--action-start),var(--action-end));box-shadow:0 3px 10px #6735a122}.action.primary:hover{background:var(--action-end);box-shadow:0 4px 12px #6735a135}.action.soft{background:var(--surface-3);color:var(--accent-strong)}.action.soft:hover,.action.quiet:hover{background:var(--surface-2)}.action.quiet{color:var(--accent-strong)}.action.danger{background:var(--warning-bg);color:var(--danger);border:1px solid var(--danger)}@supports (color:color-mix(in lab,red,red)){.action.danger{border:1px solid color-mix(in srgb,var(--danger)30%,transparent)}}.icon-button{min-width:40px;height:40px;color:var(--accent);background:var(--surface-2);border:1px solid #0000;border-radius:13px;place-items:center;padding:0;display:inline-grid}.icon-button:hover,.icon-button.active{background:var(--surface-3)}.page-title{align-items:center;gap:14px;margin-bottom:25px;display:flex}.page-title h1{overflow-wrap:anywhere}.page-title>.icon-button{flex:none;width:40px;height:40px}.page-title>div:first-of-type{flex:auto}.page-actions,.button-row{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.page-actions{justify-content:flex-end}.list-toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:13px;display:flex}.list-toolbar>.search{flex:200px}.filter-row{flex-wrap:wrap;justify-content:space-between;gap:10px;display:flex}.search{border:1px solid var(--line);background:var(--surface-2);min-height:44px;color:var(--accent);border-radius:15px;align-items:center;gap:9px;padding:0 13px;display:flex}.search input{width:100%;min-height:42px;color:var(--text);outline:none;font-size:14px}.search:focus-within{box-shadow:0 0 0 2px var(--accent)}.search input::placeholder,input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}.segments{scrollbar-width:thin;background:var(--surface-2);border:1px solid var(--line);border-radius:15px;align-items:stretch;gap:3px;padding:4px;display:flex;overflow-x:auto}.segments button{white-space:nowrap;min-height:37px;color:var(--muted);border-radius:11px;flex:1 0 auto;padding:5px 11px;font-size:12px;font-weight:660}.segments button:hover{color:var(--accent-strong)}.segments button.selected{background:var(--surface-3);color:var(--accent-strong)}.segments button:focus-visible{outline-offset:-2px}.tag-row{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.tag{background:var(--surface-2);max-width:100%;color:var(--accent-strong);border-radius:999px;align-items:center;gap:5px;padding:4px 8px;font-size:11px;font-weight:690;line-height:1.2;display:inline-flex}.tag.sponge{color:var(--lemon-ink);background:var(--lemon)}.tag.cream{color:var(--lavender-ink);background:var(--lavender)}.tag.filling{color:var(--peach-ink);background:var(--peach)}.tag.soak{color:var(--mint-ink);background:var(--mint)}.panel{background:var(--surface);border:1px solid var(--line);min-width:0;box-shadow:var(--shadow);border-radius:24px;padding:clamp(14px,2vw,24px)}.panel h2{align-items:center;gap:8px;display:flex}.panel h2 svg{color:var(--accent)}.field-stack{flex-direction:column;gap:13px;min-width:0;display:flex}.field{flex-direction:column;gap:5px;min-width:0;font-size:13px;font-weight:640;display:flex}.field small{font-weight:450}.field input:not([type=file]),.field textarea,.field select,.list-toolbar>select{border:1px solid var(--line);background:var(--surface-2);border-radius:13px;width:100%;min-height:44px;padding:9px 12px;font-size:14px;font-weight:490;line-height:1.3}.list-toolbar>select{width:auto;max-width:100%}.field textarea{resize:vertical}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.stepper{background:var(--surface-2);border-radius:15px;justify-content:space-between;align-items:center;gap:5px;min-height:52px;padding:4px 6px 4px 11px;display:flex}.stepper-label{align-items:center;gap:8px;font-size:14px;font-weight:680;display:flex}.stepper-label svg{color:var(--accent)}.stepper-controls,.stepper-number{align-items:center;gap:4px;display:flex}.stepper-number label>span{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.stepper-number .field input:not([type=file]){text-align:center;background:0 0;border:0;width:50px;min-height:34px;padding:5px 2px;font-weight:750}.stepper-number small{padding-right:3px}.stepper .icon-button{background:var(--surface);border-radius:12px;min-width:38px;height:38px}.form-size{gap:6px;display:grid}.slider{margin:4px 10px 5px}.slider input{appearance:none;cursor:pointer;background:linear-gradient(to right,var(--accent)var(--range-fill),var(--surface-3)var(--range-fill))no-repeat center/100% 5px;border-radius:7px;width:100%;height:30px;margin:0}.slider input::-webkit-slider-thumb{appearance:none;border:2px solid var(--accent);background:var(--surface);border-radius:50%;width:19px;height:19px;box-shadow:0 1px 5px #621c9130}.slider input::-moz-range-thumb{border:2px solid var(--accent);background:var(--surface);border-radius:50%;width:16px;height:16px;box-shadow:0 1px 5px #621c9130}.slider>div{color:var(--muted);justify-content:space-between;font-size:12px;display:flex}.expand{border:1px solid var(--line);background:var(--surface);border-radius:15px}.expand summary{cursor:pointer;border-radius:inherit;justify-content:space-between;align-items:center;gap:8px;min-height:42px;padding:8px 11px;font-size:13px;font-weight:700;list-style:none;display:flex}.expand summary::-webkit-details-marker{display:none}.expand summary>svg{color:var(--accent)}.expand[open] summary>svg{transform:rotate(180deg)}.expand-content{border-top:1px solid var(--line);gap:11px;min-width:0;padding:10px 11px 13px;display:grid}.notice{color:var(--warning-text);background:var(--warning-bg);overflow-wrap:anywhere;border-radius:10px;align-items:flex-start;gap:9px;padding:10px 12px;font-size:13px;line-height:1.45;display:flex}.notice svg{margin-top:1px}.empty{text-align:center;background:linear-gradient(145deg,var(--lavender-light),var(--surface));border-radius:23px;align-content:center;justify-items:center;gap:8px;min-height:180px;padding:33px 14px;display:grid}.empty-icon{background:var(--surface-2);width:53px;height:53px;color:var(--accent);border-radius:17px;place-items:center;margin-bottom:3px;display:grid}.empty p{color:var(--muted);font-size:13px}.empty .action{margin-top:5px}.builder-layout,.detail-layout,.results-layout,.editor-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start;gap:17px;display:grid}.results-layout{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}.detail-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}.cake-preview{background:radial-gradient(ellipse at 50% 78%,var(--lavender),transparent 78%),var(--lavender-light);border-color:#0000;overflow:hidden}.preview-head,.preview-caption{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.preview-head .tag{background:var(--surface);padding:6px 8px}.preview-caption{background:var(--surface);border-radius:12px;padding:10px 12px}.preview-caption span{color:var(--muted)}.cake-svg{width:100%;height:auto;max-height:310px;margin-block:14px;display:block;overflow:visible}.cake-svg.compact{margin:0}.svg-text{fill:var(--muted);stroke:none;font-size:13px;font-weight:670}.slice[role=button]{cursor:pointer}.slice[role=button]:hover,.slice[role=button]:focus-visible{filter:brightness(1.08)drop-shadow(0 1px 3px #8c51b08c)}.preset-row{flex-wrap:wrap;gap:7px;margin-bottom:13px;display:flex}.preset,.preset-group{background:var(--surface-2);min-height:35px;color:var(--accent-strong);border-radius:999px;align-items:center;gap:7px;font-size:12px;font-weight:690;display:flex}.preset{padding:5px 11px}.preset:hover{background:var(--surface-3)}.preset-group>.icon-button{border:0;min-width:30px;height:30px;margin-right:3px}.layer-list{gap:7px;display:grid}[data-role=sponge],[data-role=crunch]{--layer-tone:var(--lemon-light)}[data-role=cream],[data-role=cover]{--layer-tone:var(--lavender-light)}[data-role=berry],[data-role=insert],[data-role=ganache]{--layer-tone:var(--peach-light)}[data-role=soak]{--layer-tone:var(--mint-light)}.layer-row,.template-layer{background:linear-gradient(110deg,var(--layer-tone,var(--surface-2)),var(--surface));border:1px solid var(--line);border-radius:15px;align-items:center;display:flex}.result-parts .expand summary{background:linear-gradient(110deg,var(--layer-tone,var(--surface-2)),var(--surface))}.result-parts .expand[open] summary{border-radius:14px 14px 0 0}.layer-main{text-align:left;flex:1;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;min-height:54px;padding:9px;display:grid}.layer-main:hover{background:var(--surface-2);border-radius:14px}.layer-main strong,.template-layer strong,.result-part-head strong{overflow-wrap:anywhere;font-size:13px;display:block}.layer-main small,.template-layer small,.result-part-head small{margin-top:2px;font-size:11px;display:block}.layer-main>svg{color:var(--accent)}.role-dot{border-radius:6px;flex:none;width:15px;height:15px;display:inline-block;box-shadow:inset 0 0 0 1px #25192e20}.layer-order{gap:2px;padding-right:6px;display:flex}.layer-order .icon-button{background:0 0;border-color:#0000;min-width:36px;height:40px}.layer-main .needs{color:var(--warning-text);font-weight:650}.template-layer{gap:8px;padding:9px 11px}.template-layer>div{flex:1;min-width:0}.template-layer>span:last-child{color:var(--muted);font-size:12px}.layer-order .icon-button:disabled{opacity:.25}.link-button,.text-button{color:var(--accent-strong);text-underline-offset:2px;font-weight:680;text-decoration:underline}.check{align-items:center;gap:8px;min-height:36px;font-size:13px;font-weight:650;display:flex}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);flex-shrink:0}.panel.recipe-cover{background:linear-gradient(145deg,var(--category-light,var(--lemon-light)),var(--surface));padding:0;overflow:hidden}.recipe-cover-photo{aspect-ratio:1.9;background:var(--surface-3);max-height:290px}.recipe-cover-photo img{object-fit:cover;width:100%;height:100%}.recipe-cover-copy,.detail-main{flex-direction:column;gap:13px;display:flex}.recipe-cover-copy{padding:17px}.recipe-cover-copy>p{color:var(--muted);font-size:14px}.metric-grid{flex-wrap:wrap;gap:8px;display:flex}.metric-grid>div{background:var(--surface-2);border-radius:12px;flex:80px;justify-items:start;gap:3px;padding:8px;display:grid}.metric-grid svg{color:var(--accent)}.metric-grid strong{font-size:14px}.ingredient-rows>div,.ingredient-rows>label{border-bottom:1px solid var(--line);justify-content:space-between;align-items:start;gap:10px;padding:9px 2px;font-size:14px;display:flex}.ingredient-rows>:last-child{border-bottom:0}.ingredient-rows strong{white-space:nowrap;color:var(--text);font-variant-numeric:tabular-nums}.ingredient-rows small{margin-top:2px;display:block}.ingredient-rows label{cursor:pointer}.ingredient-rows label>span{flex:1}.ingredient-rows label.checked>span{color:var(--muted);text-decoration:line-through}.tech{gap:11px;font-size:14px;display:grid}.tech ol{margin:0;padding-left:23px;list-style:decimal}.tech li{margin-block:7px;line-height:1.55}.tech li::marker{color:var(--accent);font-weight:700}.source-link{width:fit-content;color:var(--accent-strong);align-items:center;gap:6px;text-decoration:underline;display:inline-flex}.calibrated{background:var(--surface-2);border-radius:11px;justify-content:space-between;align-items:center;gap:6px;padding:4px 8px;font-size:13px;display:flex}.photo-input,.editor-line-head,.line-actions{align-items:center;gap:5px;display:flex}.photo-input img{object-fit:cover;border-radius:10px;width:51px;height:51px}.photo-input label{cursor:pointer;position:relative}.photo-input input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.editor-line{background:var(--lavender-light);border-radius:16px;gap:8px;padding:10px;display:grid}.editor-line .field input:not([type=file]),.editor-line .field select{background:var(--surface)}.editor-line-head{justify-content:space-between}.editor-line-head button.text-button{text-align:left;overflow-wrap:anywhere;font-size:13px}.line-actions .icon-button{min-width:36px;height:40px}.directory-page{max-width:800px}.directory-list{overscroll-behavior:contain;gap:5px;max-height:420px;display:grid;overflow-y:auto}.directory-row{background:var(--body);border-radius:11px;justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:8px 9px;display:flex}.directory-row strong{font-size:14px;display:block}.directory-row small{margin-top:3px;display:block}.report-aside{background:linear-gradient(150deg,var(--mint-light),var(--surface))}.report-aside p,.dialog-inner p{color:var(--muted);font-size:14px}.result-part-head{flex:1;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.result-parts{gap:8px;display:grid}.result-check-title,.saved-indicator{color:var(--accent-strong);justify-content:space-between;align-items:center;gap:6px;font-size:13px;display:flex}.result-check-title span{align-items:center;gap:6px;display:flex}.saved-indicator{justify-content:flex-start}.loading-slot{color:var(--muted);align-items:center;gap:7px;padding:20px 8px;font-size:14px;display:flex}.spinner{border:2px solid var(--surface-3);border-top-color:var(--accent);border-radius:50%;width:17px;height:17px;animation:.65s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:1px solid var(--line);width:min(100% - 28px,535px);max-height:min(86dvh,850px);color:var(--text);background:var(--surface);overscroll-behavior:contain;border-radius:25px;margin:auto;padding:0;overflow:auto;box-shadow:0 21px 80px #1d092854}dialog::backdrop{background:#1d0e2b5b}.dialog-inner{gap:14px;padding:18px;display:grid}.dialog-title{justify-content:space-between;align-items:center;gap:8px;display:flex}.toast{z-index:10;background:var(--accent-strong);color:var(--surface);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;max-width:min(440px,100% - 32px);min-height:43px;padding:10px 11px 10px 14px;font-size:14px;font-weight:650;display:flex;position:fixed;bottom:20px;right:20px;box-shadow:0 10px 32px #21182d42}.toast.error{background:var(--warning-bg);color:var(--warning-text);border:1px solid var(--line)}.toast button{place-items:center;width:25px;height:25px;display:grid}.network-error{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;display:flex}@media (max-width:1080px){.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:690px){.content{padding-inline:max(15px,env(safe-area-inset-left))max(15px,env(safe-area-inset-right));padding-top:max(12px,calc(var(--telegram-top) + 8px),env(safe-area-inset-top));padding-bottom:calc(94px + max(env(safe-area-inset-bottom),var(--telegram-bottom)))}.app-header{grid-template-columns:1fr auto;gap:8px;margin-bottom:14px}.primary-nav{z-index:9;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(8px + max(env(safe-area-inset-bottom),var(--telegram-bottom)));border-radius:21px;padding:4px;position:fixed;box-shadow:0 5px 26px #3b1b5926}.primary-nav button{flex-direction:column;flex:1 1 0;gap:3px;min-height:48px;font-size:11px}.toast{right:13px;bottom:calc(77px + max(env(safe-area-inset-bottom),var(--telegram-bottom)))}.home-tile{border-radius:24px}.home-tile-calculation img{width:62%;height:112%;bottom:-2%;right:-7%}.home-tile-grid img{width:62%;height:82%;bottom:-5%;right:-8%}.home-tile-grid small{font-size:11px}.home-tile-grid .home-tile{min-height:151px}.home-tile-grid .tile-icon{width:32px;height:32px}.cake-carousel{grid-auto-columns:min(74%,250px);gap:10px}.builder-layout,.detail-layout,.editor-layout,.results-layout{grid-template-columns:minmax(0,1fr);gap:12px}.cake-grid,.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.cake-card,.recipe-card{border-radius:20px}.cake-card-copy,.recipe-copy{padding:10px}.cake-card h3,.recipe-card h3{font-size:14px}.recipe-copy h3{min-height:0}.card-fav{inset:6px 6px auto auto}.card-fav .icon-button{min-width:38px;height:38px}.page-title{flex-wrap:wrap;gap:8px;margin-bottom:14px}.page-title p{margin-top:4px;font-size:12px}.page-actions{flex:100%;justify-content:flex-start}.home-section{margin-top:21px}.section-title .action{font-size:12px}.section-title h2,.home-section>h2{font-size:17px}.list-toolbar{gap:7px}.list-toolbar>.search{flex-basis:138px}.recipe-library-title .page-title{flex-wrap:nowrap}.recipe-library-title .page-title p{display:none}.recipe-library-title .page-actions{flex:none}.recipe-library-title .page-actions .action{border-radius:50%;width:44px;height:44px;padding:0}.recipe-library-title .page-actions .action>span{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.filter-row{gap:7px}.filter-row .segments{width:100%}.segments button{padding-inline:7px;font-size:11px}.cake-svg{max-height:185px;margin-block:5px}.recipe-cover-photo{max-height:172px}.report-aside{grid-row:2}dialog{margin:auto auto max(0px,var(--telegram-bottom),env(safe-area-inset-bottom));border-radius:25px 25px 0 0;width:100%;max-width:100%}}@media (max-width:360px){.home-tile-calculation{min-height:192px}.home-tile-calculation .home-tile-copy{gap:9px;padding:16px}.tile-title{font-size:24px}.home-tile-calculation img{width:60%}.home-tile-grid .home-tile-copy{padding-inline:11px}.home-tile-grid img{right:-11%}.stepper-number .field input:not([type=file]){width:44px}.stepper .icon-button{min-width:34px;height:36px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
