:root {
  --bg: #fbf6ef;
  --bg-2: #f5ece0;
  --card: #ffffff;
  --ink: #2b1d14;
  --ink-2: #5d4a3d;
  --muted: #8f7b6c;
  --line: #ecdfd0;
  --brand: #e8622c;
  --brand-2: #f59e0b;
  --brand-soft: #fff0e6;
  --green: #2f9e5b;
  --green-soft: #e6f6ec;
  --amber: #c27a05;
  --amber-soft: #fff5db;
  --red: #d64545;
  --shadow-sm: 0 1px 2px rgba(64, 38, 18, .06), 0 2px 6px rgba(64, 38, 18, .05);
  --shadow: 0 2px 4px rgba(64, 38, 18, .05), 0 10px 30px rgba(64, 38, 18, .08);
  --shadow-lg: 0 20px 60px rgba(64, 38, 18, .18);
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Fraunces", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, #ffe2cc 0%, transparent 60%),
    radial-gradient(900px 400px at -10% 10%, #fff1d6 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 999px; padding: .7rem 1.25rem;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.small { padding: .45rem .9rem; font-size: .85rem; }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(43, 29, 20, .06); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.soft:hover { background: #ffe3d1; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: #d4541f; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #45301f; }
.btn.magic {
  color: #fff;
  background: linear-gradient(135deg, #ff7a3d 0%, #e8622c 45%, #f59e0b 100%);
  background-size: 200% 200%;
  box-shadow: 0 6px 20px rgba(232, 98, 44, .35);
}
.btn.magic:hover:not(:disabled) { background-position: 100% 50%; box-shadow: 0 10px 28px rgba(232, 98, 44, .45); transform: translateY(-1px); }
.btn.big { width: 100%; padding: 1rem 1.25rem; font-size: 1.1rem; }
.link { background: none; border: 0; color: var(--muted); font-size: .85rem; font-weight: 600; padding: 0; }
.link:hover { color: var(--brand); }
.badge {
  display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: .75rem;
}
.badge.zero { background: var(--line); color: var(--muted); }
.badge.pop { animation: pop .4s var(--ease); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem clamp(16px, 4vw, 40px);
  background: rgba(251, 246, 239, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(236, 223, 208, .7);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-icon {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 12px;
  background: linear-gradient(135deg, #ffd9c2, #ffe9b8); font-size: 1.3rem; box-shadow: var(--shadow-sm);
}
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.topbar-actions { display: flex; gap: .25rem; }

/* ---------- Layout ---------- */
.view { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 4rem; animation: fadeUp .45s var(--ease); }
.hero { padding: .4rem 0 1.4rem; }
.main-col { min-width: 0; }
.hero h1 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero .accent { color: var(--brand); }
.hero p { margin: .6rem 0 0; color: var(--ink-2); font-size: 1.08rem; max-width: 640px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; padding-top: 1.5rem; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid rgba(236, 223, 208, .6); }

/* ---------- Wizard ---------- */
.wizard { overflow: hidden; display: flex; flex-direction: column; min-height: 640px; }
.stepper { display: flex; gap: .25rem; padding: .6rem; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow-x: auto; }
.step {
  flex: 1; display: flex; align-items: center; gap: .55rem; justify-content: center;
  border: 0; background: transparent; border-radius: 12px; padding: .65rem .75rem;
  font-weight: 700; color: var(--muted); font-size: .9rem; white-space: nowrap; transition: all .2s var(--ease);
}
.step:hover { color: var(--ink); }
.step.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.step-num {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--line); color: var(--ink-2); font-size: .8rem; transition: all .2s;
}
.step.active .step-num { background: var(--brand); color: #fff; }
.step.done .step-num { background: var(--green); color: #fff; }

.panel { display: none; padding: 1.5rem 1.6rem; flex: 1; }
.panel.active { display: block; animation: fadeUp .35s var(--ease); }
.panel-head { margin-bottom: 1rem; }
.panel-head h2 { font-family: var(--display); font-size: 1.55rem; font-weight: 700; }
.panel-head p { margin: .35rem 0 0; }
.soon-pill { background: var(--amber-soft); color: var(--amber); padding: .1rem .5rem; border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap; }

.search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .4rem .35rem 1rem;
  transition: border-color .2s, box-shadow .2s; margin-bottom: 1.2rem;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232, 98, 44, .12); background: #fff; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; padding: .45rem 0; min-width: 0; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; align-items: center; }

.group { margin-bottom: 1.3rem; }
.group-title { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: .92rem; color: var(--ink-2); user-select: none;
  transition: transform .15s var(--ease), border-color .2s, background .2s, box-shadow .2s, color .2s;
}
.chip:hover { border-color: #e9c9b0; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip .emo { font-size: 1.1rem; }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }
.chip.on::after { content: "✓"; font-weight: 800; color: var(--brand); margin-left: .1rem; }
.chip.bump { animation: bump .35s var(--ease); }
.chip.custom { border-style: dashed; }
.no-results { color: var(--muted); padding: .5rem 0 1rem; }

.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.eq-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1.2rem .8rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; color: var(--ink-2); text-align: center; font-size: .92rem;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s;
}
.eq-card .eq-emo { font-size: 2rem; transition: transform .25s var(--ease); }
.eq-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.eq-card:hover .eq-emo { transform: scale(1.12) rotate(-6deg); }
.eq-card.on { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.eq-card.on::after {
  content: "✓"; position: absolute; top: .5rem; right: .55rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .75rem;
  animation: pop .3s var(--ease);
}

.pref { margin-bottom: 1.4rem; }
.pref h3 { font-size: .95rem; font-weight: 800; margin-bottom: .6rem; }
.pref-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.2rem; }
.segmented { display: inline-flex; flex-wrap: wrap; background: var(--bg-2); padding: .25rem; border-radius: 14px; gap: .2rem; }
.segmented button {
  border: 0; background: transparent; padding: .5rem .8rem; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.mode-card {
  text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 1rem;
  transition: all .2s var(--ease);
}
.mode-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mode-card .mode-emo { font-size: 1.6rem; }
.mode-card strong { display: block; margin: .3rem 0 .2rem; }
.mode-card span.desc { font-size: .83rem; color: var(--muted); line-height: 1.4; display: block; }
.mode-card.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(232, 98, 44, .12); }
.stepper-num { display: flex; align-items: center; gap: .7rem; }
.stepper-num #servValue { font-family: var(--display); font-size: 1.6rem; font-weight: 800; min-width: 1.5rem; text-align: center; }
.round { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.2rem; font-weight: 700; transition: all .15s; }
.round:hover { border-color: var(--brand); color: var(--brand); }

.wizard-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.6rem; border-top: 1px solid var(--line); background: #fffdfb; }

/* ---------- Kitchen sidebar ---------- */
.kitchen { position: sticky; top: 87px; padding: 1.3rem; display: flex; flex-direction: column; gap: .85rem; max-height: calc(100vh - 104px); }
.kitchen-head { display: flex; justify-content: space-between; align-items: center; }
.kitchen-head h2 { font-family: var(--display); font-size: 1.35rem; }
.kitchen { overflow-y: auto; }
.kitchen-label { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.count { background: var(--bg-2); color: var(--ink-2); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; letter-spacing: 0; }
.kitchen-list { display: flex; flex-direction: column; gap: .4rem; max-height: min(300px, 28vh); overflow-y: auto; padding-right: .2rem; }
.k-item {
  display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem .45rem .7rem; border-radius: 10px; background: var(--bg);
  border: 1.5px solid transparent; transition: background .2s, border-color .2s;
}
.k-item.new, .mini.new, .shop-list li.new { animation: slideIn .3s var(--ease); }
.k-item.soon { background: var(--amber-soft); border-color: #f3d58a; }
.k-item .k-name { flex: 1; font-weight: 600; font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soon-toggle {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800;
  padding: .2rem .55rem; color: var(--muted); transition: all .2s; white-space: nowrap;
}
.soon-toggle:hover { border-color: var(--amber); color: var(--amber); }
.soon-toggle.on { background: var(--amber); border-color: var(--amber); color: #fff; }
.x { border: 0; background: transparent; color: var(--muted); font-size: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; }
.x:hover { background: rgba(214, 69, 69, .1); color: var(--red); }
.empty { color: var(--muted); font-size: .88rem; padding: .7rem; background: var(--bg); border-radius: 10px; text-align: center; border: 1.5px dashed var(--line); }
.mini-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.mini { background: var(--bg); border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.summary { display: flex; flex-wrap: wrap; gap: .35rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.summary .mini { background: var(--brand-soft); color: var(--brand); }
#generateBtn { position: sticky; bottom: 0; flex: none; }
.source-row { display: flex; flex-direction: column; gap: .1rem; }
.segmented.full { display: grid; grid-template-columns: 1fr 1fr; }
.source-note { margin: .7rem auto 0; max-width: 680px; font-size: .9rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; display: inline-block; }
.source-note.ai { background: var(--brand-soft); color: var(--brand); }
.source-note.instant { background: #eef3ff; color: #2d4a8a; border-radius: 14px; }
#skipBtn { margin: -1rem 0 1.6rem; }
.gen-hint { text-align: center; margin: -.4rem 0 0; min-height: 1.2em; }

/* ---------- Results ---------- */
.results-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1.8rem 0 1.4rem; }
.results-title { text-align: center; }
.results-title h1 { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.results-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.results-chips .mini { background: #fff; box-shadow: var(--shadow-sm); }

.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.recipe-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(236, 223, 208, .6); background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(30px) scale(.97);
  animation: cardIn .7s var(--ease) forwards;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.recipe-card:nth-child(2) { animation-delay: .15s; }
.recipe-card:nth-child(3) { animation-delay: .3s; }
.rc-top { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; }
.rc-top .rc-emoji { font-size: 4.6rem; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); transition: transform .5s var(--ease); }
.recipe-card:hover .rc-emoji { transform: scale(1.12) rotate(-6deg); }
.rc-top::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 55%); }
.g0 { background: linear-gradient(135deg, #ffd1b3, #ffb38a); }
.g1 { background: linear-gradient(135deg, #d9f0c9, #ffe6a3); }
.g2 { background: linear-gradient(135deg, #ffe0ea, #ffd6a8); }
.status {
  position: absolute; top: .9rem; left: .9rem; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px; font-weight: 800; font-size: .8rem; background: #fff; box-shadow: var(--shadow-sm);
}
.status.ready { color: var(--green); }
.status.almost { color: var(--amber); }
.status .dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.rc-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.rc-body h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.rc-desc { color: var(--ink-2); font-size: .92rem; margin: -.3rem 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.meta span { background: var(--bg); padding: .25rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.meta span.tag { background: var(--green-soft); color: var(--green); }
.rc-label { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.uses { font-weight: 600; font-size: .9rem; color: var(--ink); }
.uses .sep { color: var(--brand); margin: 0 .3rem; }
.use-soon-banner { background: var(--amber-soft); color: #8a5600; border-radius: 10px; padding: .5rem .7rem; font-size: .85rem; font-weight: 700; }
.missing-box { background: #fff7f0; border: 1.5px dashed #f2c3a3; border-radius: 12px; padding: .6rem .7rem; font-size: .88rem; }
.missing-box strong { color: var(--amber); }
.missing-box .btn { margin-top: .5rem; width: 100%; }
.rc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: .3rem; color: var(--brand); font-weight: 800; font-size: .92rem; }
.rc-foot .arrow { transition: transform .2s var(--ease); }
.recipe-card:hover .rc-foot .arrow { transform: translateX(4px); }

/* ---------- Loading ---------- */
.loading { text-align: center; padding: 1rem 0 0; animation: fadeUp .4s var(--ease); }
.chef { position: relative; width: 120px; height: 120px; margin: 1rem auto .6rem; }
.pan { font-size: 5rem; animation: toss 1.4s ease-in-out infinite; display: inline-block; transform-origin: 70% 70%; }
.steam { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.steam span { width: 8px; height: 30px; border-radius: 8px; background: linear-gradient(to top, rgba(232,98,44,.35), transparent); animation: steam 1.8s ease-in-out infinite; }
.steam span:nth-child(2) { animation-delay: .3s; }
.steam span:nth-child(3) { animation-delay: .6s; }
.loading h2 { font-family: var(--display); font-size: 1.7rem; }
.loading-steps { list-style: none; padding: 0; margin: 1rem auto 2rem; display: inline-flex; flex-direction: column; gap: .5rem; text-align: left; }
.loading-steps li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--muted); opacity: .35; transition: all .4s var(--ease); }
.loading-steps li.active { opacity: 1; color: var(--ink); }
.loading-steps li.done { opacity: 1; color: var(--green); }
.loading-steps .ico { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--line); }
.loading-steps li.active .ico { background: transparent; border: 2.5px solid var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.loading-steps li.done .ico { background: var(--green); color: #fff; }
.skeletons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.skeleton {
  height: 380px; border-radius: 22px;
  background: linear-gradient(100deg, #f3e8db 20%, #fbf4ec 40%, #f3e8db 60%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}

.error-box { max-width: 520px; margin: 2rem auto; text-align: center; background: #fff; border-radius: var(--r); padding: 2rem; box-shadow: var(--shadow); animation: fadeUp .4s var(--ease); }
.error-emoji { font-size: 3rem; }
.error-box h2 { font-family: var(--display); margin: .5rem 0; }
.error-box p { color: var(--ink-2); margin-bottom: 1.2rem; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(43, 29, 20, .45); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 2rem 16px; animation: fade .25s var(--ease); overflow-y: auto;
}
.modal {
  position: relative; width: min(920px, 100%); max-height: calc(100vh - 4rem); overflow-y: auto;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); animation: modalIn .35s var(--ease);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); font-size: 1rem; transition: transform .2s;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close.static { position: static; }
.m-hero { padding: 2rem 2rem 1.5rem; display: flex; gap: 1.4rem; align-items: center; border-radius: 24px 24px 0 0; }
.m-emoji { font-size: 4.5rem; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.m-hero h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin: .4rem 0 .3rem; }
.m-hero p { margin: 0 0 .7rem; color: var(--ink-2); }
.m-hero .meta span { background: rgba(255,255,255,.75); }
.m-hero .status { position: static; }
.m-body { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; padding: 1.6rem 2rem 2rem; }
.m-body h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: .8rem; }
.ing-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.ing-list li { display: flex; gap: .6rem; align-items: baseline; padding: .45rem .6rem; border-radius: 10px; background: var(--bg); font-size: .92rem; }
.ing-list li .src { flex: none; width: 1.2rem; text-align: center; }
.ing-list li .q { color: var(--muted); font-weight: 700; margin-left: auto; text-align: right; flex: none; max-width: 45%; }
.ing-list li.missing { background: #fff7f0; border: 1.5px dashed #f2c3a3; }
.ing-list li.soon { background: var(--amber-soft); }
.legend { font-size: .78rem; color: var(--muted); margin: -.8rem 0 1.2rem; }
.eq-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.4rem; }
.eq-list .mini.appliance { background: var(--brand-soft); color: var(--brand); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: flex; flex-direction: column; gap: .7rem; }
.steps li {
  counter-increment: s; position: relative; padding: .8rem 1rem .8rem 3.3rem; border-radius: 14px; background: var(--bg);
  cursor: pointer; transition: all .2s var(--ease); border: 1.5px solid transparent;
}
.steps li:hover { border-color: var(--line); }
.steps li::before {
  content: counter(s); position: absolute; left: .9rem; top: .75rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.steps li.done { opacity: .55; text-decoration: line-through; }
.steps li.done::before { content: "✓"; background: var(--green); }
.note { border-radius: 14px; padding: 1rem 1.1rem; margin-top: 1.2rem; font-size: .93rem; }
.note.why { background: var(--green-soft); color: #1f6b3d; }
.note.adapt { background: #eef3ff; color: #2d4a8a; }
.note strong { display: block; margin-bottom: .2rem; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(43, 29, 20, .3); animation: fade .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(380px, 100%); background: #fff; box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .35s var(--ease); display: flex; flex-direction: column; padding: 1.3rem;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-head h2 { font-family: var(--display); }
.drawer-add { display: flex; gap: .5rem; margin-bottom: 1rem; }
.drawer-add input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; outline: 0; min-width: 0; }
.drawer-add input:focus { border-color: var(--brand); }
.shop-list { list-style: none; padding: 0; margin: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .4rem; }
.shop-list li { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; background: var(--bg); }
.shop-list li label { flex: 1; display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; min-width: 0; }
.shop-list li .for { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.shop-list input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--green); flex: none; }
.shop-list li.checked .nm { text-decoration: line-through; color: var(--muted); }
.drawer-foot { padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; transform: translate(-50%, 150%);
  background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), opacity .25s; max-width: calc(100% - 32px); text-align: center;
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes cardIn { to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toss { 0%, 100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-14deg) translateY(-10px); } 60% { transform: rotate(6deg) translateY(0); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleY(.6); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px) scaleY(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -150% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .recipe-card { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .recipe-grid, .skeletons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skeleton:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .kitchen { position: static; max-height: none; }
  .wizard { min-height: 0; }
  .m-body { grid-template-columns: 1fr; }
  .results-head { grid-template-columns: 1fr; text-align: center; }
  .results-head .btn { justify-self: center; }
}
@media (max-width: 640px) {
  .recipe-grid, .skeletons { grid-template-columns: 1fr; }
  .skeleton:nth-child(n+2) { display: none; }
  .mode-grid, .pref-row { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .step.active .step-label { display: inline; }
  .panel { padding: 1.2rem 1rem; }
  .wizard-foot { padding: .8rem 1rem; }
  #stepHint { display: none; }
  .brand-text { font-size: 1.05rem; }
  #sampleBtn { display: none; }
  .m-hero { flex-direction: column; text-align: center; padding: 2.2rem 1.2rem 1.2rem; }
  .m-hero .meta { justify-content: center; }
  .m-body { padding: 1.2rem; }
}
