:root{--bg: #faf6f0;--surface: #ffffff;--surface-soft: #f4ede3;--surface-warm: #fff4ec;--text: #231b15;--text-muted: #726458;--border: #e8ded1;--primary: #e85d2a;--primary-hover: #d44d1c;--primary-soft: rgba(232, 93, 42, .12);--green: #227a4d;--green-soft: #e6f5ec;--amber: #b45309;--amber-soft: #fef3c7;--shadow-sm: 0 2px 8px rgba(35, 27, 21, .05);--shadow-md: 0 8px 24px rgba(35, 27, 21, .08);--radius-sm: 12px;--radius-md: 18px;--radius-lg: 24px;--safe-bottom: env(safe-area-inset-bottom, 0px)}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.45}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:none;background:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.app-shell{min-height:100dvh;max-width:680px;margin:0 auto;display:flex;flex-direction:column;padding-bottom:calc(96px + var(--safe-bottom))}.topbar{position:sticky;top:0;z-index:30;background:#faf6f0eb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand-badge{width:38px;height:38px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:20px;flex-shrink:0;box-shadow:0 4px 12px #e85d2a47}.brand-title{font-weight:800;font-size:17px;letter-spacing:-.02em;white-space:nowrap}.brand-sub{font-size:12px;color:var(--text-muted)}.nav-pills{display:flex;background:var(--surface-soft);padding:4px;border-radius:14px;gap:2px;max-width:100%}.nav-pill{padding:7px 11px;border-radius:10px;font-size:13px;font-weight:600;color:var(--text-muted);display:flex;align-items:center;gap:5px;white-space:nowrap;transition:background .15s,color .15s}@media(max-width:480px){.topbar{padding:10px 12px}.brand{gap:8px}.brand-badge{width:32px;height:32px;font-size:17px;border-radius:10px}.brand-title{font-size:15px}.brand-sub{display:none}.nav-pill{padding:6px 8px;font-size:12px}}.nav-pill.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.page-content{padding:16px;display:flex;flex-direction:column;gap:18px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:16px;box-shadow:var(--shadow-sm)}.section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.section-title{font-size:16px;font-weight:700;margin:0;display:flex;align-items:center;gap:8px}.section-hint{font-size:12px;color:var(--text-muted)}.cuisine-grid{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.cuisine-grid::-webkit-scrollbar{display:none}@media(min-width:540px){.cuisine-grid{flex-wrap:wrap;overflow-x:visible}}.cuisine-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border-radius:999px;background:var(--surface-soft);border:1.5px solid transparent;font-size:14px;font-weight:600;transition:all .15s ease}.cuisine-chip.active{background:var(--surface-warm);border-color:var(--primary);color:var(--primary-hover)}.input-row{position:relative;display:flex;gap:8px}.text-input{width:100%;min-height:48px;padding:12px 14px;border-radius:var(--radius-sm);border:1.5px solid var(--border);background:var(--bg);font-size:15px;outline:none;transition:border-color .15s,background .15s}.text-input:focus{border-color:var(--primary);background:var(--surface)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 16px;border-radius:var(--radius-sm);font-weight:700;font-size:15px;transition:transform .1s,background .15s,opacity .15s}.btn:active{transform:scale(.98)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff;box-shadow:0 4px 14px #e85d2a40}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--surface-soft);color:var(--text)}.btn-secondary:hover:not(:disabled){background:#ebe1d4}.btn-outline{background:var(--surface);border:1.5px solid var(--border);color:var(--text)}.btn-dark{background:var(--text);color:#fff}.suggestions-dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:25;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);max-height:220px;overflow-y:auto}.suggestion-item{width:100%;text-align:left;padding:11px 14px;font-size:14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--surface-soft)}.suggestion-item:last-child{border-bottom:none}.suggestion-item:hover{background:var(--surface-warm)}.tag-list{display:flex;flex-wrap:wrap;gap:8px}.ingredient-tag{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:var(--green-soft);color:var(--green);font-size:14px;font-weight:600}.ingredient-tag button{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#227a4d24;color:var(--green)}.quick-chip{padding:7px 12px;border-radius:999px;border:1px dashed var(--border);background:var(--bg);font-size:13px;font-weight:500;color:var(--text-muted);transition:all .12s}.quick-chip.added{border-style:solid;border-color:var(--green);background:var(--green-soft);color:var(--green)}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}.toggle-row+.toggle-row{border-top:1px solid var(--surface-soft)}.switch{position:relative;width:46px;height:28px;border-radius:999px;background:#d7cbbe;transition:background .18s;flex-shrink:0}.switch.on{background:var(--primary)}.switch-knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:transform .18s}.switch.on .switch-knob{transform:translate(18px)}.segmented{display:grid;grid-template-columns:repeat(3,1fr);background:var(--surface-soft);padding:4px;border-radius:var(--radius-sm);gap:4px}.segmented-btn{padding:9px 8px;border-radius:9px;font-size:12px;font-weight:600;color:var(--text-muted);text-align:center;line-height:1.25}.segmented-btn.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.bottom-bar{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#faf6f0f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border);padding:12px 16px calc(12px + var(--safe-bottom))}.bottom-bar-inner{max-width:680px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:10px}.recipe-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column}.recipe-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:10px}.recipe-header{display:flex;gap:12px;align-items:flex-start}.recipe-thumb{width:64px;height:64px;border-radius:14px;background:var(--surface-warm);display:grid;place-items:center;font-size:32px;flex-shrink:0;overflow:hidden}.recipe-thumb img{width:100%;height:100%;object-fit:cover}.badge-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700}.badge-green{background:var(--green-soft);color:var(--green)}.badge-amber{background:var(--amber-soft);color:var(--amber)}.badge-neutral{background:var(--surface-soft);color:var(--text-muted)}.ing-pills{display:flex;flex-wrap:wrap;gap:6px}.ing-pill{font-size:12px;padding:4px 8px;border-radius:8px;font-weight:500}.ing-pill.have{background:var(--green-soft);color:var(--green)}.ing-pill.missing{background:var(--amber-soft);color:var(--amber)}.sub-hint{font-size:12px;color:var(--text-muted);background:var(--bg);padding:8px 10px;border-radius:10px;border-left:3px solid var(--amber)}.wheel-wrap{position:relative;width:min(330px,84vw);height:min(330px,84vw);margin:8px auto 12px}.wheel-pointer{position:absolute;top:-10px;left:50%;transform:translate(-50%);z-index:5;width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:24px solid var(--text);filter:drop-shadow(0 3px 4px rgba(0,0,0,.25))}.cook-step-card{background:var(--surface);border:2px solid var(--border);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-md);display:flex;flex-direction:column;gap:16px}.cook-step-text{font-size:20px;line-height:1.5;font-weight:600;color:var(--text);margin:0}.timer-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:var(--surface-warm);border:1.5px solid var(--primary);color:var(--primary-hover);font-weight:700;font-size:15px}.timer-chip.running{background:var(--primary);color:#fff}.timer-chip.done{background:var(--green);border-color:var(--green);color:#fff}.toast{position:fixed;top:72px;left:50%;transform:translate(-50%);z-index:60;background:var(--text);color:#fff;padding:10px 16px;border-radius:999px;font-size:13px;font-weight:600;box-shadow:var(--shadow-md)}@keyframes spin360{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin{animation:spin360 1s linear infinite}
