:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f6f3ee;--surface:#fff;--surface-2:#efe9e1;--border:#e4ddd2;--fg:#1f1b17;--muted:#6f675e;--accent:#c4552d;--accent-fg:#fff;--accent-soft:#f8e3d9;--danger:#b42318;--success:#1b6b4a;--success-soft:#dff3ea;--error-soft:#fde4e1;--kcal-bg:#fef3c7;--kcal-fg:#92400e;--protein-bg:#ddf4ea;--protein-fg:#145339;--carbs-bg:#e0ecff;--carbs-fg:#1e40af;--fat-bg:#fee8e2;--fat-fg:#9a3412;--radius:16px;--radius-sm:10px;--shadow:0 1px 2px #3c28140f, 0 4px 16px #3c28140f;--tabbar-h:64px;--safe-bottom:env(safe-area-inset-bottom,0px);background:var(--bg);color:var(--fg);-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#12100e;--surface:#1c1916;--surface-2:#26221e;--border:#322d28;--fg:#f2eee9;--muted:#a39a90;--accent:#e2774f;--accent-fg:#1a0d07;--accent-soft:#3a2218;--danger:#f97066;--success:#4cc38a;--success-soft:#153225;--error-soft:#3a1a17;--kcal-bg:#332711;--kcal-fg:#fcd34d;--protein-bg:#153225;--protein-fg:#6ee7b7;--carbs-bg:#1a2942;--carbs-fg:#93c5fd;--fat-bg:#3a1f18;--fat-fg:#fda4af;--shadow:none}}*{box-sizing:border-box}body{min-height:100dvh;margin:0}h1,h2,h3{letter-spacing:-.01em;margin:0;line-height:1.2}h1{font-size:1.75rem}h2{font-size:1.1rem}h3{font-size:1rem}p{margin:0}a{color:var(--accent)}button,input,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.layout{max-width:720px;margin:0 auto}.layout.with-tabs{padding-bottom:calc(var(--tabbar-h) + var(--safe-bottom))}.screen{flex-direction:column;gap:16px;padding:20px 16px 32px;display:flex}.screen-header{padding-top:8px}.subtitle{color:var(--muted);margin-top:4px}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center}.row{flex-wrap:wrap;gap:8px;display:flex}.tabbar{z-index:10;background:var(--surface);border-top:1px solid var(--border);padding-bottom:var(--safe-bottom);justify-content:center;display:flex;position:fixed;inset:auto 0 0}.tab{max-width:144px;height:var(--tabbar-h);color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.72rem;font-weight:500;text-decoration:none;display:flex}.tab-icon{border-radius:15px;place-items:center;width:56px;height:30px;transition:background-color .15s;display:grid}.tab.active{color:var(--accent)}.tab.active .tab-icon{background:var(--accent-soft)}.btn{border:1px solid var(--border);background:var(--surface);min-height:42px;color:var(--fg);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-size:.92rem;font-weight:600;text-decoration:none;display:inline-flex}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}.btn:disabled{opacity:.5;cursor:default}.icon-btn{background:var(--surface-2);cursor:pointer;border:none;border-radius:50%;place-items:center;width:40px;height:40px;display:grid}.icon-btn:disabled{opacity:.4;cursor:default}.icon-btn.danger{color:var(--danger)}.search{background:var(--surface);border:1px solid var(--border);height:46px;color:var(--muted);border-radius:999px;align-items:center;gap:8px;padding:0 14px;display:flex}.search input{min-width:0;color:var(--fg);background:0 0;border:none;outline:none;flex:1}.chips{scrollbar-width:none;gap:8px;margin:0 -16px;padding:0 16px;display:flex;overflow-x:auto}.chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;flex:none;padding:6px 14px;font-size:.85rem}.chip.selected{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}.tag{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:2px 10px;font-size:.78rem;display:inline-block}.tags{flex-wrap:wrap;gap:6px;display:flex}.json-input{resize:vertical;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);width:100%;padding:12px;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.8rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:12px;padding:16px;display:flex}.recipe-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.recipe-card{color:inherit;flex-direction:row;align-items:center;gap:14px;padding:10px;text-decoration:none}.recipe-card-body{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.recipe-card h3{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.recipe-card-footer{flex-wrap:wrap;gap:6px;margin-top:2px;display:flex}.meta{color:var(--muted);font-size:.85rem}.kcal-badge{background:var(--kcal-bg);color:var(--kcal-fg);border-radius:999px;padding:2px 10px;font-size:.78rem;font-weight:600}.photo{object-fit:cover;background:var(--surface-2);display:block}.photo-placeholder{color:var(--accent);background:var(--accent-soft);place-items:center;display:grid}.thumb{border-radius:12px;flex:none;width:76px;height:76px}.hero{aspect-ratio:16/9;border-radius:var(--radius);width:100%;max-height:320px}.topbar{justify-content:space-between;align-items:center;display:flex}.topbar-actions{gap:8px;display:flex}.detail-head{flex-direction:column;gap:8px;display:flex}.description{color:var(--muted)}.servings-row{justify-content:space-between;align-items:center;display:flex}.servings-label{align-items:center;gap:8px;font-weight:600;display:inline-flex}.stepper{align-items:center;gap:12px;display:flex}.stepper output{text-align:center;min-width:2ch;font-size:1.2rem;font-weight:700}.section-label{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.75rem;font-weight:600}.macros{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.macro{border-radius:var(--radius-sm);flex-direction:column;align-items:center;padding:10px 4px;font-size:.75rem;display:flex}.macro strong{font-size:1rem}.macro.kcal{background:var(--kcal-bg);color:var(--kcal-fg)}.macro.protein{background:var(--protein-bg);color:var(--protein-fg)}.macro.carbs{background:var(--carbs-bg);color:var(--carbs-fg)}.macro.fat{background:var(--fat-bg);color:var(--fat-fg)}.ingredient-list{margin:0;padding:0;list-style:none}.ingredient-list li{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding:10px 0;display:flex}.ingredient-list li:last-child{border-bottom:none}.amount{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.steps{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.steps li{gap:12px;display:flex}.step-number{background:var(--accent-soft);width:28px;height:28px;color:var(--accent);border-radius:50%;flex:none;place-items:center;font-size:.85rem;font-weight:700;display:grid}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:12px;padding:48px 16px;display:flex}.empty h1,.empty h2{color:var(--fg)}.empty svg{color:var(--accent)}.banner{border-radius:var(--radius-sm);align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.banner.success{background:var(--success-soft);color:var(--success)}.banner.error{background:var(--error-soft);color:var(--danger)}.banner a{color:inherit;font-weight:600}.toast{left:50%;bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 16px);z-index:20;background:var(--fg);max-width:calc(100% - 32px);color:var(--bg);box-shadow:var(--shadow);border-radius:999px;padding:10px 18px;font-size:.9rem;position:fixed;transform:translate(-50%)}.detail .toast{bottom:calc(var(--safe-bottom) + 24px)}
