/* ═══════════════════════════════════════════════════════════════
   Smart Kitchen — counter-safe cook console for the recipe library
   Palette: bg #060606 · borders #27272a · text #f4f4f5
   Accents: amber #fbbf24 (kitchen warmth) · sky #38bdf8 (interactive)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #060606;
  --surface: rgba(24, 24, 27, 0.6);
  --surface-solid: #121215;
  --border: #27272a;
  --border-hot: #52525b;
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --sky: #38bdf8;
  --green: #4ade80;
  --rose: #fb7185;
  --sans: system-ui, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

.view {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2.5rem) 4rem;
}

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

/* ── Hall header ──────────────────────────────────────────────── */

.hall {
  text-align: center;
  padding: 2.6rem 0 1.4rem;
}

.hall-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.hall-title .flame { letter-spacing: 0; text-indent: 0; margin-right: 0.35em; }

.hall-sub {
  margin: 0.5rem 0 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Toolbar ──────────────────────────────────────────────────── */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0.8rem;
  z-index: 20;
}

.search {
  flex: 1 1 220px;
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.92rem;
  padding: 0.62rem 0.9rem;
  outline: none;
}

.search:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }

.pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.pill {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pill:hover { color: var(--text); border-color: var(--border-hot); }

.pill.active {
  color: #1a1203;
  background: var(--amber);
  border-color: var(--amber);
}

.region-select {
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.84rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  max-width: 200px;
}

.result-count {
  color: var(--text-faint);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.1rem 0.2rem 0.8rem;
}

/* ── Recipe cards ─────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s, box-shadow 0.16s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 18px 40px -18px rgba(251, 191, 36, 0.35);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, #1c1917, #292524 60%, #1c1917);
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-media img { transform: scale(1.05); }

.card-media .no-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  opacity: 0.5;
}

.card-collection {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(6, 6, 6, 0.78);
  border: 1px solid var(--border-hot);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  backdrop-filter: blur(4px);
}

.card-body { padding: 0.85rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }

.card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.chip {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.chip.amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.4); }
.chip.sky { color: var(--sky); border-color: rgba(56, 189, 248, 0.4); }

/* ── Recipe view ──────────────────────────────────────────────── */

.crumb {
  padding: 1.3rem 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.back-link:hover { color: var(--sky); text-decoration: none; }

/* ── Share bar (matches the site's artifact-page share controls) ── */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-hot);
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-hot);
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.share-btn:hover,
.share-icon:hover { opacity: 0.8; text-decoration: none; }

.share-btn svg,
.share-icon svg { display: block; }

/* Brand-colored glyphs (X keeps the foreground color — its brand black would
   vanish on the dark theme). */
.share-icon.reddit { color: #ff4500; }
.share-icon.facebook { color: #1877f2; }
.share-icon.email { color: #a855f7; }
.share-icon.copy { color: #22c55e; }

.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(140deg, #1c1917, #292524);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0.1) 20%, rgba(6,6,6,0.55) 60%, rgba(6,6,6,0.92) 100%);
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: clamp(1.2rem, 4vw, 2rem);
  width: 100%;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
  margin: 0 0 0.8rem;
  color: #e4e4e7;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  max-width: 62ch;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.hero-chips .chip { background: rgba(6, 6, 6, 0.55); backdrop-filter: blur(4px); }

/* ── Recipe layout: ingredients + steps ───────────────────────── */

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.2rem;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.gathered { color: var(--amber); font-size: 0.72rem; letter-spacing: 0.08em; }

/* Scaler */

.scaler {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  background: #0c0c0e;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.scaler-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-faint);
}

.scaler-buttons { display: flex; gap: 0.3rem; }

.scale-btn {
  min-width: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  transition: all 0.14s;
}

.scale-btn:hover { border-color: var(--border-hot); color: var(--text); }

.scale-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #1a1203;
}

.scaler-yield { color: var(--text-dim); font-size: 0.76rem; }

/* Checklist */

.checklist { display: flex; flex-direction: column; gap: 0.9rem; }

.check-group-name {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0.2rem 0 0.1rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.45;
  padding: 0.32rem 0.2rem;
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  transition: background 0.12s;
}

.check-item:hover { background: rgba(255, 255, 255, 0.04); }

.check-box {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border: 2px solid var(--border-hot);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.15s;
}

.check-item.checked .check-box {
  background: var(--green);
  border-color: var(--green);
  color: #052e12;
}

.check-item.checked .check-text {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(74, 222, 128, 0.6);
  text-decoration-thickness: 2px;
}

.check-text .qty { color: var(--amber); font-weight: 700; }

.reset-checks {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.reset-checks:hover { color: var(--rose); border-color: rgba(251, 113, 133, 0.5); }

.subs { margin-top: 1rem; border-top: 1px dashed var(--border); padding-top: 0.8rem; }

.subs summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.subs-body { font-size: 0.84rem; line-height: 1.6; color: var(--text-dim); padding-top: 0.6rem; }
.subs-body strong { color: var(--text); }
.subs-body ul { padding-left: 1.1rem; margin: 0.4rem 0; }

/* Steps preview */

.steps-preview {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  counter-reset: step;
}

.phase-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0.9rem 0 0.3rem;
}

.steps-preview li.step-row {
  counter-increment: step;
  display: flex;
  gap: 0.8rem;
  padding: 0.55rem 0.3rem;
  border-radius: 8px;
  line-height: 1.55;
  font-size: 0.95rem;
}

.steps-preview li.step-row::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.step-row .step-title { font-weight: 700; }
.step-row .step-note {
  display: block;
  color: var(--amber);
  font-size: 0.82rem;
  font-style: italic;
  margin-top: 0.25rem;
}

.step-row .step-text { white-space: pre-line; }

/* Details accordions */

.details { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }

.detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.detail summary {
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  list-style: none;
}

.detail summary::-webkit-details-marker { display: none; }
.detail summary::before { content: "▸ "; color: var(--amber); }
.detail[open] summary::before { content: "▾ "; }
.detail[open] summary { color: var(--text); }

.detail-body {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.detail-body h3 { color: var(--text); font-size: 0.9rem; margin: 1em 0 0.4em; }
.detail-body strong { color: var(--text); }
.detail-body ul { padding-left: 1.2rem; margin: 0.5em 0; }
.detail-body li { margin: 0.25em 0; }
.detail-body table { border-collapse: collapse; margin: 0.5em 0; }
.detail-body th, .detail-body td { border: 1px solid var(--border); padding: 0.35em 0.7em; font-size: 0.82rem; }
.detail-body blockquote { border-left: 3px solid var(--amber); margin: 0.6em 0; padding: 0.2em 0.9em; color: var(--text-dim); }
.detail-body code { background: #1b1b1f; border-radius: 4px; padding: 0.06em 0.35em; font-family: var(--mono); font-size: 0.85em; }
.detail-body a { color: var(--sky); }

.recipe-foot {
  margin-top: 1.4rem;
  padding: 0.9rem 0.3rem 5.5rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

/* Cook launch */

.cook-launch-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem clamp(1rem, 3.5vw, 2.5rem) 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(6, 6, 6, 0.92) 40%);
  display: flex;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}

.cook-launch {
  pointer-events: auto;
  width: min(560px, 100%);
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  border: 0;
  border-radius: 14px;
  color: #1a1203;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  padding: 1rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 40px -8px rgba(251, 191, 36, 0.55);
  transition: filter 0.15s, transform 0.1s;
}

.cook-launch:hover { filter: brightness(1.07); }
.cook-launch:active { transform: translateY(1px); }

/* ═══════════════════ COOK MODE ═══════════════════════════════ */

.cook {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #020202;
  display: flex;
  flex-direction: column;
}

.cook-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid #18181b;
}

.cook-id { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }

.cook-recipe {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cook-phase {
  color: var(--sky);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cook-status { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }

.wake-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

.wake-badge.off { color: var(--text-faint); border-color: var(--border); }

.cook-chip {
  background: #111113;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.42rem 0.75rem;
  cursor: pointer;
  transition: all 0.14s;
}

.cook-chip:hover { color: var(--text); border-color: var(--border-hot); }
.cook-chip[aria-pressed="true"] { color: #052e12; background: var(--green); border-color: var(--green); }
.cook-exit:hover { color: var(--rose); border-color: rgba(251, 113, 133, 0.5); }

/* The big step stage — readable from across the kitchen */

.cook-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem clamp(1.2rem, 6vw, 5rem);
  overflow-y: auto;
  min-height: 0;
}

.cook-count {
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--amber);
  margin-bottom: 1.2rem;
}

.cook-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  max-width: 22ch;
}

.cook-body {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.9rem);
  line-height: 1.55;
  max-width: 46ch;
  color: #e8e8ea;
  white-space: pre-line;
  text-align: center;
}

.cook-note {
  margin: 1.2rem 0 0;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-style: italic;
  color: var(--amber);
  max-width: 52ch;
}

.cook-timers { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }

.timer-chip {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 999px;
  color: var(--sky);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: all 0.14s;
}

.timer-chip:hover { background: rgba(56, 189, 248, 0.12); }

/* Step slide animation */

.cook-stage.slide-left  > * { animation: slide-in-right 0.28s ease both; }
.cook-stage.slide-right > * { animation: slide-in-left 0.28s ease both; }

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(46px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-46px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Bottom nav */

.cook-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.3rem;
  border-top: 1px solid #18181b;
}

.cook-arrow {
  background: #111113;
  border: 1px solid var(--border-hot);
  border-radius: 14px;
  color: var(--text);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: clamp(0.9rem, 2.4vh, 1.3rem) 1rem;
  cursor: pointer;
  transition: all 0.14s;
}

.cook-arrow:hover:not(:disabled) { border-color: var(--text-dim); }
.cook-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

.cook-arrow.primary {
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  border-color: transparent;
  color: #1a1203;
}

.cook-arrow.primary:hover:not(:disabled) { filter: brightness(1.07); }

.cook-arrow.done { background: linear-gradient(180deg, #86efac, #22c55e); }

.cook-dots { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; max-width: 40vw; }

.cook-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2c2c30;
  transition: background 0.2s, transform 0.2s;
}

.cook-dot.done { background: rgba(251, 191, 36, 0.45); }
.cook-dot.now { background: var(--amber); transform: scale(1.45); }

/* Live timer */

.timer-live {
  position: fixed;
  top: 4.6rem;
  right: clamp(1rem, 3vw, 2rem);
  z-index: 110;
  background: #0b1220;
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 40px -10px rgba(56, 189, 248, 0.4);
}

.timer-live.urgent { border-color: var(--rose); animation: timer-pulse 1s ease-in-out infinite; }

@keyframes timer-pulse { 50% { box-shadow: 0 0 30px -4px rgba(251, 113, 133, 0.7); } }

.timer-clock {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--sky);
  font-variant-numeric: tabular-nums;
}

.timer-live.urgent .timer-clock { color: var(--rose); }

.timer-cancel {
  background: transparent;
  border: 1px solid var(--border-hot);
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.timer-cancel:hover { color: var(--rose); border-color: rgba(251, 113, 133, 0.5); }

/* Ingredients drawer (cook mode) */

.cook-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  z-index: 120;
  background: var(--surface-solid);
  border-left: 1px solid var(--border-hot);
  box-shadow: -24px 0 60px -12px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.drawer-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.cook-checklist {
  padding: 1rem 1.2rem 2rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cook-checklist .check-item { font-size: 1.02rem; }

/* Voice toast */

.voice-toast {
  position: fixed;
  bottom: 7.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 130;
  background: rgba(6, 6, 6, 0.9);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  backdrop-filter: blur(4px);
}

/* ═══════════════════ RESPONSIVE ══════════════════════════════ */

@media (max-width: 900px) {
  .recipe-layout { grid-template-columns: 1fr; }
  .cook-dots { display: none; }
  .cook-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .toolbar { position: static; }
  .cook-status .cook-chip { padding: 0.42rem 0.55rem; }
  .cook-recipe { max-width: 42vw; }
  .timer-live { top: auto; bottom: 7.4rem; right: 50%; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .cook-stage.slide-left > *, .cook-stage.slide-right > * { animation: none; }
  .card, .card-media img { transition: none; }
  .timer-live.urgent { animation: none; }
}
