/* Rezeptideen – Styles */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --surface-2: #f3ece3;
  --text: #2a2420;
  --muted: #7a6e64;
  --line: #e6dcd0;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #fde8dc;
  --herb: #3f7d4e;
  --herb-soft: #e3f1e6;
  --warn: #b7791f;
  --warn-soft: #fdf3dc;
  --danger: #b42318;
  --danger-soft: #fde4e1;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 14px rgba(60, 40, 20, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1714;
    --surface: #25201c;
    --surface-2: #2f2924;
    --text: #f2ebe4;
    --muted: #b3a597;
    --line: #3d352e;
    --accent: #f07a3e;
    --accent-ink: #1b1714;
    --accent-soft: #4a2a1a;
    --herb: #7cc48d;
    --herb-soft: #23382a;
    --warn: #f0b84f;
    --warn-soft: #3d3220;
    --danger: #ff8a7a;
    --danger-soft: #4a2420;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: .2em 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem;
  padding: .5rem max(1rem, env(safe-area-inset-left)); background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-icon { margin-right: .3rem; }
.mainnav { display: flex; gap: .25rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: .45rem .75rem; border-radius: 999px; color: var(--text); text-decoration: none; white-space: nowrap; font-size: .95rem;
}
.mainnav a:hover { background: var(--surface-2); }
.mainnav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.owner-logo { height: 34px; width: auto; flex: none; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; padding: .4rem .6rem; border-radius: 8px; white-space: nowrap; font-size: .9rem; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--surface-2); }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .35rem; z-index: 30;
}
.usermenu .menu a, .usermenu .menu .linklike {
  display: block; width: 100%; text-align: left; padding: .55rem .7rem; border-radius: 8px; color: var(--text);
  text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer;
}
.usermenu .menu a:hover, .usermenu .menu .linklike:hover { background: var(--surface-2); }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .brand { order: 1; }
  .usermenu { order: 2; margin-left: auto; }
  .owner-logo { order: 3; height: 28px; }
  .mainnav { order: 4; flex-basis: 100%; }
  .mainnav a span { display: inline; }
  .hide-sm { display: none; }
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 1rem max(1rem, env(safe-area-inset-left)) 2rem; flex: 1; }

.sitefooter { text-align: center; padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .875rem; }
.sitefooter .heart { color: var(--danger); vertical-align: -2px; }

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .55rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap; min-height: 42px;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: var(--danger-soft); }
.btn.small { padding: .3rem .65rem; min-height: 34px; font-size: .875rem; }
.btn.big { min-height: 56px; font-size: 1.1rem; padding: .7rem 1.4rem; }
.btn:disabled { opacity: .5; cursor: default; }
.iconbtn {
  background: none; border: 0; font-size: 1.15rem; cursor: pointer; padding: .35rem .45rem; border-radius: 8px;
  color: var(--text); text-decoration: none; line-height: 1;
}
.iconbtn:hover { background: var(--surface-2); }
.inline-form { display: inline; margin: 0; }
.linklike { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .7rem; width: 100%; min-height: 42px;
}
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input[type=checkbox], input[type=radio] { width: auto; min-height: auto; accent-color: var(--accent); }
label { display: block; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: .25rem; font-weight: 400; }
label.check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin: 0; }
fieldset.inline { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
fieldset.inline select { width: auto; }
legend { padding: 0 .3rem; font-weight: 600; }

.stack { display: flex; flex-direction: column; gap: .85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1rem; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.row-4 label { font-size: .85rem; }
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .row-4 { grid-template-columns: 1fr 1fr; }
}
.inline-row { display: flex; gap: .5rem; align-items: flex-end; margin: .5rem 0; }
.inline-row.wrap { flex-wrap: wrap; }
.inline-row input:not([type=checkbox]), .inline-row select { width: auto; flex: 1 1 160px; }
.narrow { max-width: 220px; }
.narrow-form { max-width: 420px; }
.form-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1rem 0; box-shadow: var(--shadow); }
.panel > summary { cursor: pointer; }
.panel[open] > summary { margin-bottom: .75rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.page-head h1 { margin: 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.hint { background: var(--warn-soft); padding: .5rem .75rem; border-radius: 10px; font-size: .92rem; }

.flash { padding: .7rem 1rem; border-radius: 12px; margin: .75rem 0; background: var(--surface-2); border: 1px solid var(--line); }
.flash-ok { background: var(--herb-soft); border-color: transparent; }
.flash-error { background: var(--danger-soft); border-color: transparent; }
.flash-warn, .flash-info { background: var(--warn-soft); border-color: transparent; }

.badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem;
  background: var(--surface-2); color: var(--text); text-decoration: none; white-space: nowrap;
}
.badge.muted { color: var(--muted); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.tag { color: var(--muted); }
.badge.pantry.full { background: var(--herb-soft); color: var(--herb); }
.diet-fleisch { background: #fbe1dc; color: #9b2c1c; }
.diet-fisch { background: #dcecfb; color: #1c5a9b; }
.diet-vegetarisch { background: #fbf1d4; color: #8a6a10; }
.diet-vegan { background: var(--herb-soft); color: var(--herb); }
@media (prefers-color-scheme: dark) {
  .diet-fleisch { background: #4a2420; color: #ffb3a6; }
  .diet-fisch { background: #1e3347; color: #9fcbff; }
  .diet-vegetarisch { background: #3d3220; color: #f0d27a; }
}

/* ---------- Filter & Karten ---------- */
.filters { display: flex; flex-direction: column; gap: .6rem; margin: .75rem 0 1.25rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-row select { width: auto; flex: 0 1 auto; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 400; font-size: .92rem; user-select: none;
}
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text);
  text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .12s ease;
}
.card:hover { transform: translateY(-2px); }
.card-img { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .fav { position: absolute; top: .5rem; right: .5rem; font-size: 1.1rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.noimg { font-size: 2.5rem; opacity: .5; }
.noimg.big { font-size: 4rem; text-align: center; padding: 1.5rem; }
.card-body { padding: .7rem .85rem .9rem; }
.card-body h2 { font-size: 1.05rem; margin: 0 0 .45rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.missing { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }

/* ---------- Rezept ---------- */
.recipe-head { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.recipe-head .hero { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.recipe-head:not(:has(.hero)) { grid-template-columns: 1fr; }
.recipe-title h1 { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.lead { font-size: 1.05rem; }
@media (max-width: 820px) { .recipe-head { grid-template-columns: 1fr; } }
.recipe-body { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: 1.5rem; }
@media (max-width: 820px) { .recipe-body { grid-template-columns: 1fr; } }
.ingredients, .steps { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); align-self: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.servings-stepper { display: inline-flex; align-items: center; gap: .3rem; background: var(--surface-2); border-radius: 999px; padding: .15rem .3rem; }
.servings-stepper .iconbtn { font-size: 1.2rem; width: 34px; height: 34px; }
.ing-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.ing-list li { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .5rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); align-items: center; }
.ing-list li:last-child { border-bottom: 0; }
.ing-list li.optional { opacity: .75; }
.ing-list .amt { font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ing-group, .step-group { display: block !important; font-weight: 700; font-family: var(--font-head); padding-top: .9rem !important; border-bottom: 0 !important; color: var(--accent); }
.pantry-toggle {
  font: inherit; font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.pantry-toggle.on { background: var(--herb-soft); color: var(--herb); border-color: transparent; }
.pantry-toggle.staple { cursor: default; opacity: .7; }
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.step-list li { display: flex; gap: .8rem; padding: .6rem 0; }
.step-list li p { margin: 0; }
.step-no {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.notes { background: var(--warn-soft); border-radius: 12px; padding: .75rem 1rem; margin-top: 1rem; }
.notes h3 { margin-top: 0; }
.ratings .rate-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ratings .rate-form input[name=comment] { flex: 1 1 220px; width: auto; }
.stars { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; }
.stars label { font-size: 1.8rem; color: var(--line); cursor: pointer; padding: 0 .05rem; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f5a524; }
.stars input:focus-visible + label { outline: 2px solid var(--accent); }
.danger-zone { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
dialog { border: 0; border-radius: var(--radius); padding: 1.25rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow); width: min(420px, 92vw); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }

/* ---------- Formulare Rezept ---------- */
.image-box { display: flex; flex-direction: column; gap: .5rem; }
.image-box img { border-radius: 12px; max-height: 260px; object-fit: cover; }
.import-form { display: flex; gap: .5rem; }
.import-form input { flex: 1; }
@media (max-width: 560px) { .import-form { flex-direction: column; } }
.map-row { margin-bottom: .75rem; background: var(--surface); }
.map-options { display: grid; grid-template-columns: auto 1fr; gap: .5rem .75rem; align-items: center; }
.new-fields { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.new-fields input { flex: 1 1 160px; width: auto; }
.new-fields select { width: auto; }
@media (max-width: 560px) { .map-options { grid-template-columns: 1fr; } }

/* ---------- Vorrat ---------- */
.add-pantry { display: flex; gap: .5rem; }
.add-pantry input { flex: 1; }
.chip-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.pantry-chip { display: inline-flex; align-items: center; gap: .2rem; background: var(--herb-soft); color: var(--herb); border-radius: 999px; padding: .2rem .25rem .2rem .75rem; margin: 0; }
.pantry-chip button { background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; padding: .1rem .45rem; border-radius: 999px; }
.pantry-chip button:hover { background: rgba(0,0,0,.08); }
.pantry-chip.add { background: var(--surface-2); color: var(--text); padding: .1rem; }
.pantry-chip.add button { font-size: .92rem; padding: .3rem .7rem; }

/* ---------- Wochenplan ---------- */
.week-nav { display: flex; align-items: center; gap: .4rem; }
.week-label { font-weight: 600; padding: 0 .3rem; white-space: nowrap; }
.plan-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.plan-form label { flex: 1 1 140px; }
.plan-form label.grow { flex: 2 1 220px; }
.plan-form label.narrow { flex: 0 1 100px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0; }
@media (max-width: 1000px) { .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .week-grid { grid-template-columns: 1fr; } }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .7rem; min-height: 150px; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.day.past { opacity: .7; }
.day h2 { font-size: 1rem; margin: 0 0 .4rem; }
.day h2 small { color: var(--muted); font-family: var(--font); font-weight: 400; }
.slot h3 { font-family: var(--font); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .5rem 0 .25rem; }
.plan-entry { background: var(--surface-2); border-radius: 10px; padding: .4rem .5rem; margin-bottom: .35rem; font-size: .9rem; }
.plan-entry.cooked .pe-main { text-decoration: line-through; opacity: .65; }
.pe-main a { color: var(--text); font-weight: 600; text-decoration: none; display: block; }
.pe-actions { display: flex; justify-content: flex-end; gap: .1rem; }
.pe-actions .iconbtn { font-size: .95rem; padding: .2rem .3rem; }

/* ---------- Einkauf ---------- */
.shop-rows { display: flex; flex-direction: column; gap: .35rem; margin: .75rem 0; }
.shop-row {
  display: grid; grid-template-columns: auto 5rem 4.5rem minmax(8rem, 1.4fr) minmax(6rem, 1fr) auto; gap: .4rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .35rem .5rem;
}
.shop-row.off { opacity: .55; }
.shop-row input:not([type=checkbox]) { min-height: 36px; padding: .35rem .5rem; }
.shop-row .qty { text-align: right; }
.shop-row .flags { display: flex; gap: .25rem; flex-wrap: wrap; }
@media (max-width: 720px) {
  .shop-row { grid-template-columns: auto 4.2rem 4rem 1fr; }
  .shop-row .note { grid-column: 2 / -1; }
  .shop-row .flags { grid-column: 2 / -1; }
}
.send-bar {
  position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; box-shadow: var(--shadow);
}
.send-bar select { width: auto; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table .num { text-align: right; }
.table tr.bad td { color: var(--danger); }
.row-actions { position: relative; }
.row-actions summary { list-style: none; }
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions[open] { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.checklist { list-style: none; padding: 0; columns: 2; }
@media (max-width: 560px) { .checklist { columns: 1; } }

/* ---------- Anmeldung ---------- */
body.auth { justify-content: center; }
.auth-box { max-width: 380px; margin: 3rem auto 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.auth-logo { display: block; margin: 0 auto 1rem; height: 56px; }
.auth-box h1 { text-align: center; }

/* ---------- Kochmodus ---------- */
body.cook-mode { background: var(--bg); }
body.cook-mode .container { max-width: none; padding: 0; display: flex; }
.cook { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; width: 100%; }
.cook-bar {
  display: flex; align-items: center; gap: .5rem; padding: .5rem max(.75rem, env(safe-area-inset-left));
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.cook-title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cook-title small { color: var(--muted); font-weight: 400; margin-left: .3rem; }
.cook-bar .iconbtn { font-size: 1rem; white-space: nowrap; }
.timers { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .75rem; }
.timers:not(:empty) { padding: .5rem .75rem; background: var(--surface-2); }
.timer {
  font: inherit; font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 700; border: 0; border-radius: 999px;
  padding: .45rem .9rem; background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow);
}
.timer small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.timer.ringing { background: var(--accent); color: var(--accent-ink); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.cook-ingredients { background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem; max-height: 45vh; overflow: auto; }
.cook-ingredients ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.cook-ingredients li { break-inside: avoid; padding: .2rem 0; }
.cook-ingredients input:checked + span { text-decoration: line-through; opacity: .55; }
@media (max-width: 560px) { .cook-ingredients ul { columns: 1; } }
.cook-stage, .cook-done { flex: 1; overflow: auto; padding: 1.5rem max(1.25rem, 5vw); max-width: 900px; width: 100%; margin: 0 auto; }
.cook-done { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.cook-done[hidden], .cook-stage[hidden] { display: none; }
.cook-group { color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.cook-step-no { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.cook-step-text { font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.5; margin: 0 0 1.25rem; }
.timer-btn {
  font: inherit; font-size: .9em; border: 2px solid var(--accent); color: var(--accent); background: var(--accent-soft);
  border-radius: 10px; padding: 0 .35rem; cursor: pointer;
}
.cook-used { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cook-used li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; }
.cook-nav {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem max(.75rem, env(safe-area-inset-left)) calc(.75rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.cook-nav .btn { flex: 1; max-width: 260px; }
.counter { font-variant-numeric: tabular-nums; color: var(--muted); }

.panel.highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
kbd { font-family: ui-monospace, monospace; font-size: .85em; padding: .05rem .35rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); }
