:root{--bg:#faf7f2;--surface:#fff;--surface-2:#f3eee6;--text:#1c1917;--muted:#625b52;--border:#e4ddd2;--accent:#7a1e2e;--accent-ink:#fff;--accent-soft:#f5e4e7;--danger:#b91c1c;--star:#d97706;--ok:#15803d;--shadow:0 1px 2px #0000000f, 0 4px 16px #0000000f;--radius:16px;--tabbar-h:64px;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#141210;--surface:#1f1c19;--surface-2:#2a2622;--text:#f5f1ea;--muted:#b3aa9e;--border:#3a342e;--accent:#c78384;--accent-ink:#2a0810;--accent-soft:#3a1f22;--danger:#f87171;--star:#fbbf24;--ok:#4ade80;--shadow:0 1px 2px #0006, 0 4px 16px #0000004d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#141210;--surface:#1f1c19;--surface-2:#2a2622;--text:#f5f1ea;--muted:#b3aa9e;--border:#3a342e;--accent:#c78384;--accent-ink:#2a0810;--accent-soft:#3a1f22;--danger:#f87171;--star:#fbbf24;--ok:#4ade80;--shadow:0 1px 2px #0006, 0 4px 16px #0000004d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;margin:0;font:17px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1,h2,h3,h4{margin:0 0 .5rem;line-height:1.2}h1{letter-spacing:-.02em;font-size:1.75rem}h2{font-size:1.25rem}h3{font-size:1.05rem}p{margin:0 0 .75rem}a{color:var(--accent)}img{max-width:100%}button,input,select,textarea{font:inherit;color:inherit}input,select,textarea{border:1.5px solid var(--border);background:var(--surface);border-radius:12px;width:100%;min-height:48px;padding:10px 12px}textarea{resize:vertical;min-height:80px}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb, var(--accent) 55%, transparent);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.muted{color:var(--muted)}.small{font-size:.875rem}.center{text-align:center}.grow{flex:1}.row{align-items:center;gap:4px;display:flex}.row.gap{gap:10px}.row.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.error{color:var(--danger);font-weight:600}.notice{background:var(--accent-soft);border-radius:12px;padding:10px 14px}.clamp{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:4px 0 0;display:-webkit-box;overflow:hidden}.app{min-height:100dvh}.app.with-tabs{padding-bottom:calc(var(--tabbar-h) + var(--safe-b))}.page{max-width:760px;padding:calc(12px + var(--safe-t)) 16px 32px;margin:0 auto}.page-header{justify-content:space-between;align-items:center;gap:8px;min-height:52px;margin-bottom:8px;display:flex}.page-header h1{margin:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;padding:16px}.section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.section-head h2{margin:0}.grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.grid-4{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}@media (width>=560px){.grid-4{grid-template-columns:repeat(4,1fr)}}.splash{place-items:center;height:100dvh;display:grid}.btn{border:1.5px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:8px 16px;font-weight:600;text-decoration:none;transition:transform 80ms,background .15s;display:inline-flex}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.ghost{background:0 0;border-color:#0000}.btn.danger{color:var(--danger)}.btn.primary.danger,.btn.danger:not(.ghost){border-color:color-mix(in srgb, var(--danger) 40%, var(--border))}.btn.big{border-radius:14px;min-height:56px;padding:12px 20px;font-size:1.1rem}.btn.small{min-height:36px;padding:4px 12px;font-size:.9rem}.btn.block{width:100%;margin-top:8px}.icon-btn{width:44px;height:44px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;text-decoration:none;display:inline-grid}.icon-btn:active{background:var(--surface-2)}.icon-btn.small{width:36px;height:36px}.icon-btn.danger{color:var(--danger)}.link-btn{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:8px 4px;text-decoration:underline}.chips{scrollbar-width:none;gap:8px;padding:4px 0 12px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chip{border:1.5px solid var(--border);background:var(--surface);min-height:36px;color:var(--text);cursor:pointer;white-space:nowrap;border-radius:999px;flex:none;padding:6px 14px;font-size:.9rem;font-weight:500;text-decoration:none}.chip.active{background:var(--text);color:var(--bg);border-color:var(--text)}.segmented{background:var(--surface-2);border-radius:12px;margin-bottom:12px;padding:4px;display:flex}.segmented button{cursor:pointer;min-height:40px;color:var(--muted);background:0 0;border:0;border-radius:9px;flex:1;font-weight:600}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.field{margin-bottom:14px;display:block}.field>span{margin-bottom:6px;font-size:.95rem;font-weight:600;display:block}.tabbar{z-index:20;height:calc(var(--tabbar-h) + var(--safe-b));padding-bottom:var(--safe-b);background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border);display:flex;position:fixed;bottom:0;left:0;right:0}.tab{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.75rem;font-weight:600;text-decoration:none;display:flex}.tab.active{color:var(--accent)}.search{margin-bottom:8px;position:relative}.search .icon{color:var(--muted);position:absolute;top:50%;left:14px;transform:translateY(-50%)}.search input{border-radius:999px;padding-left:44px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}@media (width>=640px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.recipe-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:inherit;box-shadow:var(--shadow);flex-direction:column;text-decoration:none;display:flex;overflow:hidden}.recipe-card:active{transform:scale(.98)}.recipe-card .thumb{aspect-ratio:4/3;background:var(--surface-2);color:var(--muted);place-items:center;display:grid;position:relative}.recipe-card .thumb img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.recipe-card .badge{background:var(--accent);color:var(--accent-ink);border-radius:999px;padding:2px 8px;font-size:.8rem;font-weight:700;position:absolute;top:8px;right:8px}.recipe-card .card-body{padding:10px 12px 12px}.recipe-card h3{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 4px;font-size:1rem;display:-webkit-box;overflow:hidden}.recipe-card p{margin:2px 0 0}.skeleton{background:linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2));border-radius:var(--radius);background-size:200% 100%;animation:1.2s infinite shimmer}.recipe-card.skeleton{aspect-ratio:3/4}.skeleton.hero{height:240px}@keyframes shimmer{to{background-position:-200% 0}}.empty{text-align:center;padding:40px 16px}.stars{color:var(--border);letter-spacing:1px;white-space:nowrap}.stars .on{color:var(--star)}.stars .half{background:linear-gradient(90deg, var(--star) 50%, var(--border) 50%);color:#0000;-webkit-background-clip:text;background-clip:text}.star-input{gap:4px;display:flex}.star-input button{width:52px;height:52px;color:var(--border);cursor:pointer;background:0 0;border:0;font-size:2.2rem;line-height:1}.star-input button.on{color:var(--star)}.import-form .progress{background:var(--surface-2);border-radius:2px;height:4px;margin-top:12px;overflow:hidden}.import-form .progress span{background:var(--accent);width:40%;height:100%;animation:1.1s ease-in-out infinite slide;display:block}@keyframes slide{0%{transform:translate(-100%)}to{transform:translate(250%)}}.editor h3{margin-bottom:12px}.editor-photo{object-fit:cover;border-radius:12px;width:100%;max-height:200px}.edit-row{border-bottom:1px solid var(--border);align-items:flex-start;gap:8px;padding:10px 0;display:flex}.edit-row:last-of-type{margin-bottom:12px}.ing-fields{flex:1;grid-template-columns:76px 92px 1fr;gap:6px;display:grid}.ing-fields .group{grid-column:1/-1;min-height:40px;font-size:.9rem}.ing-fields input,.ing-fields select{padding:8px}.step-fields{flex:1;gap:6px;display:grid}.step-num{background:var(--accent-soft);width:30px;height:30px;color:var(--accent);border-radius:50%;flex:none;place-items:center;font-size:.9rem;font-weight:700;display:inline-grid}.inline-field{color:var(--muted);align-items:center;gap:8px;font-size:.95rem;display:flex}.inline-field input{width:90px;min-height:40px}.row-controls{flex-direction:column;display:flex}.group-order{background:var(--surface-2);border-radius:12px;margin-bottom:8px;padding:10px 12px}.group-order ol{margin:0;padding-left:20px}.group-order li{justify-content:space-between;align-items:center;display:flex}.sticky-actions{padding:12px 0 calc(12px + var(--safe-b));background:linear-gradient(transparent, var(--bg) 30%);gap:10px;display:flex;position:sticky;bottom:0}.sticky-actions .btn{flex:1}.detail{padding-top:0;padding-bottom:calc(100px + var(--safe-b))}.page-header.overlay{z-index:5;padding-top:var(--safe-t);background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);margin:0 -16px 8px;padding-inline:8px;position:sticky;top:0}.hero{object-fit:cover;width:calc(100% + 32px);max-height:320px;margin:0 -16px 16px;display:block}@media (width>=760px){.hero{border-radius:var(--radius);width:100%;margin:0 0 16px}}.detail-head h1{font-size:1.9rem}.meta-row{flex-wrap:wrap;align-items:center;gap:6px 16px;margin-bottom:8px;display:flex}.meta-row>span{align-items:center;gap:6px;display:inline-flex}.stepper{border:1.5px solid var(--border);border-radius:999px;align-items:center;display:inline-flex;overflow:hidden}.stepper button{background:var(--surface-2);cursor:pointer;border:0;width:44px;height:44px;font-size:1.4rem}.stepper button:disabled{opacity:.4}.stepper span{text-align:center;min-width:110px;padding:0 12px;font-weight:600}.ingredients section+section{margin-top:12px}.ingredients ul{margin:0;padding:0;list-style:none}.ingredients li{border-bottom:1px solid var(--border);align-items:baseline;gap:10px;padding:10px 0;display:flex}.ingredients li:last-child{border-bottom:0}.ingredients .qty{white-space:nowrap;min-width:4.5em;font-weight:700}.ingredients .qty.approx{color:var(--star)}.group-name{text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin:12px 0 4px;font-size:.8rem}.approx-warning{color:var(--muted);border-left:3px solid var(--star);background:var(--surface-2);border-radius:0 8px 8px 0;margin:12px 0 0;padding:6px 10px;font-size:.85rem}.step-group+.step-group{margin-top:8px}.steps{margin:0;padding:0;list-style:none}.steps li{gap:12px;padding:10px 0;font-size:1.05rem;display:flex}.timer-pill{background:var(--accent-soft);color:var(--accent);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;margin-left:8px;padding:1px 8px;font-size:.85rem;font-weight:600;display:inline-flex}.notes{margin:0 0 12px;padding-left:20px}.notes li{margin-bottom:6px}.notes .user-note{justify-content:space-between;align-items:center;gap:8px;display:flex}.log-list{margin:0;padding:0;list-style:none}.log-list a{border-bottom:1px solid var(--border);color:inherit;padding:10px 0;text-decoration:none;display:block}.log-list p{margin:4px 0 0}.source{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0 0 12px;padding:12px 16px}.source summary{cursor:pointer;min-height:28px;font-weight:600}.source a{word-break:break-all;align-items:center;gap:6px;margin-top:8px;display:inline-flex}.sticky-cta{z-index:10;padding:12px 16px calc(12px + var(--safe-b));background:linear-gradient(transparent, var(--bg) 35%);position:fixed;bottom:0;left:0;right:0}.sticky-cta .btn{max-width:728px;box-shadow:var(--shadow);margin:0 auto;display:flex}.sheet-backdrop{z-index:50;background:#00000073;justify-content:center;align-items:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border-radius:20px 20px 0 0;flex-direction:column;width:100%;max-width:640px;height:min(88dvh,720px);animation:.2s ease-out up;display:flex;box-shadow:0 -8px 32px #00000040}@keyframes up{0%{opacity:0;transform:translateY(40px)}}@keyframes fade{0%{opacity:0}}.sheet-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;padding:16px 12px 8px 16px;display:flex}.sheet-header h2{margin:0}.sheet-header p{margin:2px 0 0}.chat-log{flex-direction:column;flex:1;gap:10px;padding:16px;display:flex;overflow-y:auto}.suggestions{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.suggestions .chip{white-space:normal;text-align:left}.bubble{white-space:pre-wrap;border-radius:16px;max-width:88%;padding:10px 14px}.bubble.user{background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:4px;align-self:flex-end}.bubble.assistant{background:var(--surface-2);white-space:normal;border-bottom-left-radius:4px;align-self:flex-start}.bubble.assistant p:last-child,.bubble.assistant ul:last-child{margin-bottom:0}.bubble.assistant ul{margin:0 0 8px;padding-left:20px}.typing{gap:4px;display:flex}.typing span{background:var(--muted);border-radius:50%;width:8px;height:8px;animation:1s infinite blink}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes blink{50%{opacity:.3}}.chat-input{padding:12px 16px calc(12px + var(--safe-b));border-top:1px solid var(--border);gap:8px;display:flex}.chat-input .btn{width:52px;padding:0}.timer-dock{z-index:30;padding:calc(6px + var(--safe-t)) 12px 6px;background:color-mix(in srgb, var(--bg) 90%, transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);scrollbar-width:none;gap:8px;display:flex;position:sticky;top:0;overflow-x:auto}.cook .timer-dock{background:0 0;padding-top:6px;position:static}.timer-chip{border:1.5px solid var(--accent);background:var(--accent-soft);min-height:40px;color:var(--text);cursor:pointer;border-radius:999px;flex:none;align-items:center;gap:8px;padding:4px 14px;font-weight:600;display:inline-flex}.timer-chip .chip-label{text-overflow:ellipsis;white-space:nowrap;max-width:10em;font-size:.85rem;overflow:hidden}.timer-chip .chip-time{font-variant-numeric:tabular-nums;color:var(--accent)}.timer-chip.paused{border-style:dashed}.timer-chip.done{background:var(--accent);color:var(--accent-ink);animation:.8s infinite alternate pulse}.timer-chip.done .chip-time{color:inherit}.timer-banner{left:12px;right:12px;top:calc(12px + var(--safe-t));z-index:60;background:var(--accent);color:var(--accent-ink);border-radius:var(--radius);padding:14px 16px;animation:.7s infinite alternate flash;position:fixed;box-shadow:0 8px 32px #0000004d}.timer-banner strong{margin-bottom:8px;font-size:1.15rem;display:block}.timer-banner-actions{flex-wrap:wrap;gap:8px;display:flex}.banner-group{gap:6px;display:inline-flex}.timer-banner .btn{background:var(--accent-ink);color:var(--accent);border:0}@keyframes flash{0%{filter:brightness()}to{filter:brightness(1.25)}}@keyframes pulse{to{transform:scale(1.05)}}@media (prefers-reduced-motion:reduce){.timer-banner,.timer-chip.done{animation:none}}.timer-card{border-radius:var(--radius);background:var(--surface);border:2px solid var(--border);flex-direction:column;align-items:center;gap:12px;margin-top:24px;padding:16px;display:flex;position:relative;overflow:hidden}.timer-card.running{border-color:var(--accent)}.timer-card.done{border-color:var(--accent);background:var(--accent-soft)}.timer-bar{background:var(--accent);transform-origin:0;height:5px;transition:transform .25s linear;position:absolute;top:0;left:0;right:0}.timer-clock{font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-size:3rem;font-weight:700;line-height:1}.timer-actions{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.cook{min-height:100dvh;padding:calc(56px + var(--safe-t)) 16px calc(96px + var(--safe-b));flex-direction:column;max-width:760px;margin:0 auto;display:flex}.cook-header{align-items:center;gap:8px;display:flex}.cook-title{text-align:center;flex-direction:column;flex:1;min-width:0;display:flex}.cook-title .small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wake{color:var(--muted);font-size:.75rem;font-weight:600}.wake.active{color:var(--ok)}.cook-progress{background:var(--surface-2);border-radius:3px;height:6px;margin:8px 0;overflow:hidden}.cook-progress span{background:var(--accent);height:100%;transition:width .2s;display:block}.cook-step{touch-action:pan-y;flex:1;padding:16px 0 24px}.cook-group{color:var(--accent);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px;font-size:.9rem;font-weight:700}.cook-step h2{font-size:1.6rem}.cook-text{font-size:clamp(1.45rem,5.2vw,2rem);font-weight:500;line-height:1.45}.cook-nav{z-index:15;padding:12px 16px calc(12px + var(--safe-b));background:var(--bg);border-top:1px solid var(--border);gap:12px;display:flex;position:fixed;bottom:0;left:0;right:0}.cook-nav .btn{flex:1;min-height:64px;font-size:1.2rem}.cook-nav .btn:first-child{flex:.6}.fab{right:16px;bottom:calc(100px + var(--safe-b));z-index:16;background:var(--text);min-height:52px;color:var(--bg);box-shadow:var(--shadow);cursor:pointer;border:0;border-radius:999px;align-items:center;gap:8px;padding:0 18px;font-weight:700;display:inline-flex;position:fixed}.drawer{z-index:40;max-height:80dvh;transform:translateY(calc(-100% + 52px + var(--safe-t) + var(--drag,0px)));background:var(--surface);border-bottom:1px solid var(--border);padding-top:var(--safe-t);border-radius:0 0 20px 20px;flex-direction:column;transition:transform .25s ease-out;display:flex;position:fixed;top:0;left:0;right:0;box-shadow:0 6px 24px #00000026}.drawer.open{transform:translateY(var(--drag,0px))}.drawer-body{padding:8px 16px 0;overflow-y:auto}.drawer-handle{cursor:grab;touch-action:none;background:0 0;border:0;flex:none;justify-content:space-between;align-items:center;gap:8px;height:52px;padding:8px 16px 4px;font-weight:700;display:flex;position:relative}.drawer-handle>span:nth-child(2){align-items:center;gap:6px;display:inline-flex}.drawer-handle .grip{background:var(--border);border-radius:2px;width:40px;height:4px;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.drawer-scrim{z-index:35;background:#00000059;position:fixed;inset:0}.ing-check{text-align:left;cursor:pointer;background:0 0;border:0;align-items:flex-start;gap:12px;width:100%;min-height:44px;padding:4px 0;font-size:1.1rem;display:flex}.ing-check .box{border:2px solid var(--border);width:28px;height:28px;color:var(--accent-ink);border-radius:8px;flex:none;place-items:center;font-weight:800;display:grid}.ingredients li.checked .box{background:var(--ok);border-color:var(--ok)}.ingredients li.checked .ing-check>span:last-child{opacity:.5;text-decoration:line-through}.ing-check .qty{margin-right:8px}.history-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.history-list li{position:relative}.history-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:inherit;gap:12px;padding:12px 64px 12px 12px;text-decoration:none;display:flex}.history-item img,.history-item .img-ph{object-fit:cover;background:var(--surface-2);border-radius:12px;flex:none;width:64px;height:64px}.edit-log{position:absolute;bottom:8px;right:8px}.filters .field{margin-bottom:10px}.login{place-items:center;min-height:100dvh;padding:24px 16px;display:grid}.login-card{text-align:center;width:100%;max-width:380px}.login-card form{text-align:left;margin-top:24px}.login-card .otp{letter-spacing:.4em;text-align:center;font-size:1.6rem}.switch-row{justify-content:space-between;align-items:center;gap:16px;padding:10px 0;display:flex}.switch-row input[type=checkbox]{width:28px;height:28px;min-height:28px;accent-color:var(--accent);flex:none}.grow{min-width:0}.history-item{padding-right:12px}.history-title{margin-bottom:2px;display:block}.history-meta{flex-wrap:wrap;align-items:center;gap:4px 10px;display:flex}.history-item .clamp{padding-right:52px}.with-tabs .sticky-actions{bottom:calc(var(--tabbar-h) + var(--safe-b));padding-bottom:12px}.ask-ingredients{width:100%;color:var(--accent);border-style:dashed;margin:12px 0 4px}.drawer .ask-ingredients{z-index:1;background:var(--surface);border-style:solid;border-color:var(--accent);box-shadow:0 -10px 12px -4px var(--surface);margin:8px 0 0;position:sticky;bottom:0}.drawer-body{padding-bottom:8px}.back-btn{min-height:44px;color:var(--accent);cursor:pointer;background:0 0;border:0;border-radius:999px;align-items:center;gap:2px;padding:0 12px 0 4px;font-size:1.05rem;font-weight:700;display:inline-flex}.back-btn:active{background:var(--surface-2)}.import-heading{margin-top:20px}.notice[role=status]{margin-top:10px}
