/* Rezepte – warmes Küchen-Design, hell + dunkel, Handy zuerst, Tablet/Desktop responsive */
:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f3ede4;
  --text: #2b2520;
  --muted: #7a6f65;
  --line: #e6ddd1;
  --accent: #c4552d;
  --accent-ink: #ffffff;
  --accent-soft: #f8e3d9;
  --green: #4e7d3a;
  --like: #d6336c;
  --oven-bg: #fff1e3;
  --oven-line: #f2b27a;
  --oven-ink: #8a3d0b;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .07);
  --radius: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --surface: #24201c;
    --surface-2: #2e2924;
    --text: #f1ebe4;
    --muted: #a89c90;
    --line: #3a342e;
    --accent: #e57a4f;
    --accent-ink: #1a1714;
    --accent-soft: #3d2a20;
    --green: #8cc06f;
    --like: #ff6b9a;
    --oven-bg: #3a2516;
    --oven-line: #8a4b20;
    --oven-ink: #ffc28f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans);
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Grundgerüst ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--text); }
.brand-ico { font-size: 1.5rem; }
.topnav { display: none; gap: 4px; margin-left: 16px; }
.topnav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; }
.topnav a.active { background: var(--accent-soft); color: var(--accent); }
.topbar .spacer { flex: 1; }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; }
main { max-width: 1180px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: var(--tabbar-h); text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 600;
}
.tabbar a .ti { font-size: 1.4rem; line-height: 1; filter: grayscale(1); opacity: .7; }
.tabbar a.active { color: var(--accent); }
.tabbar a.active .ti { filter: none; opacity: 1; }
@media (min-width: 760px) {
  .topnav { display: flex; }
  .tabbar { display: none; }
  main { padding-bottom: 48px; padding-left: 24px; padding-right: 24px; }
}

/* ---------- Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; color: var(--text);
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.danger { color: #c0392b; border-color: color-mix(in srgb, #c0392b 40%, var(--line)); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.big { min-height: 54px; font-size: 1.05rem; border-radius: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: .9rem; font-weight: 600; white-space: nowrap; color: var(--text);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.static { cursor: default; background: var(--surface-2); border-color: transparent; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .chips.scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.chip .avatar { margin-left: -6px; }

.avatar {
  --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
  font-size: calc(var(--s) * .42); background: var(--c, #b08968); border: 2px solid var(--surface);
}
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-left: -8px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { margin-top: 28px; }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-h h2 { font-size: 1.3rem; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; outline: none;
}
.field textarea, textarea.input { min-height: 90px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .big { font-size: 3rem; }
.empty h3 { color: var(--text); margin: 8px 0 6px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0;
  transition: .25s; z-index: 200; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.login-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login { width: 100%; max-width: 380px; padding: 32px 24px; text-align: center; }
.login .logo { font-size: 3.4rem; }
.login h1 { font-size: 2rem; margin: 8px 0 4px; }
.login p { margin: 0 0 24px; }
.login form { text-align: left; }
.err { color: #c0392b; font-weight: 600; font-size: .92rem; margin: 0 0 12px; }

/* ---------- Übersicht ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.page-h h1 { font-size: 1.9rem; }
.search { position: relative; margin-bottom: 12px; }
.search input { padding-left: 42px; }
.search .si { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; }
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.filter-row-h { display: flex; justify-content: space-between; align-items: center; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .92rem; }
.result-line select { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; } }
.rcard { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s; }
.rcard:active { transform: scale(.98); }
.rcard .ph { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.rcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; opacity: .5; }
.rcard .like-badge {
  position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 999px;
  padding: 2px 9px; font-size: .8rem; font-weight: 700; backdrop-filter: blur(4px);
}
.rcard .like-badge.mine { background: var(--like); }
.rcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rcard h3 { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard .meta { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-top: auto; }
.rcard .meta .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard .cooked { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--green); font-weight: 600; }

/* ---------- Detail ---------- */
.detail { max-width: 820px; margin: 0 auto; }
.back-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 18px; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; position: relative; }
@media (min-width: 760px) { .gallery .slide { aspect-ratio: 16 / 9; } }
.gallery .slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery .credit {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); color: #fff;
  padding: 3px 10px 3px 3px; border-radius: 999px; font-size: .8rem; font-weight: 600; backdrop-filter: blur(4px);
}
.gallery .dots { position: absolute; bottom: 10px; right: 12px; display: flex; gap: 5px; }
.gallery .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.gallery .dots i.on { background: #fff; }

.oven-box {
  display: flex; gap: 12px; align-items: center; background: var(--oven-bg); border: 1px solid var(--oven-line); color: var(--oven-ink);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 16px;
}
.oven-ico { font-size: 1.6rem; }
.oven-main { font-size: 1.02rem; }
.oven-alt { opacity: .85; font-size: .92rem; }
.oven-sub { font-size: .88rem; opacity: .9; }

.d-title { font-size: 2rem; margin-bottom: 10px; }
@media (min-width: 760px) { .d-title { font-size: 2.5rem; } }
.byline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; margin-bottom: 12px; flex-wrap: wrap; }
.byline strong { color: var(--text); }
.desc { white-space: pre-line; margin: 14px 0; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
.actions .cook-btn { grid-column: 1 / -1; }
@media (min-width: 560px) { .actions { grid-template-columns: auto auto 1fr; } .actions .cook-btn { grid-column: auto; } }
.btn.liked { color: var(--like); border-color: color-mix(in srgb, var(--like) 45%, var(--line)); background: color-mix(in srgb, var(--like) 10%, var(--surface)); }

.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .detail.wide { max-width: 1100px; } .two-col { grid-template-columns: 340px 1fr; align-items: start; } .two-col .ing-col { position: sticky; top: 84px; } }
.panel { padding: 18px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 12px; }
.portions { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.portions .n { min-width: 92px; text-align: center; font-weight: 700; }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.ing-list li:last-child { border-bottom: 0; }
.ing-list .amt { min-width: 76px; font-weight: 700; text-align: right; flex: none; }
.ing-list li.done { opacity: .45; text-decoration: line-through; }
.steps-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle .sw { width: 40px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: .2s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { left: 19px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 18px 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.step-amt { font-weight: 700; color: var(--accent); white-space: nowrap; }
.source { font-size: .9rem; margin-top: 8px; word-break: break-word; }

.cooked-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feed { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.post { padding: 14px; }
.post-h { display: flex; align-items: center; gap: 10px; }
.post-h .who { flex: 1; min-width: 0; font-size: .92rem; }
.post-h .who strong { display: block; }
.post-h .who span { color: var(--muted); font-size: .85rem; }
.post-text { margin: 10px 0 0; white-space: pre-line; }
.post-pics { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.post-pics img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; cursor: zoom-in; }
.tag-cooked { color: var(--green); font-weight: 700; }
.comment-box { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.comment-box textarea { min-height: 46px; height: 46px; }

/* ---------- Editor ---------- */
.editor { max-width: 820px; margin: 0 auto; }
.ed-sec { padding: 18px; margin-bottom: 16px; }
.ed-sec h2 { font-size: 1.15rem; margin-bottom: 4px; }
.ed-sec .hint { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.ed-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.ed-pic { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.ed-pic img { width: 100%; height: 100%; object-fit: cover; }
.ed-pic .x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .9rem; }
.ed-pic .mv { position: absolute; bottom: 6px; left: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; }
.ed-pic .cover { position: absolute; left: 6px; top: 6px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.ed-add { border: 2px dashed var(--line); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: .85rem; aspect-ratio: 1; border-radius: 12px; }
.ed-add b { font-size: 1.8rem; line-height: 1; }
.ing-row { display: grid; grid-template-columns: 70px 76px 1fr 36px; gap: 6px; margin-bottom: 8px; align-items: center; }
.ing-row input { min-height: 42px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); width: 100%; font-size: 16px; }
.ing-row .rm, .step-row .rm { width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 1.1rem; border-radius: 50%; }
.step-row { display: grid; grid-template-columns: 32px 1fr 36px; gap: 8px; margin-bottom: 10px; align-items: start; }
.step-row .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 6px; }
.step-row textarea { min-height: 70px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); width: 100%; font-size: 16px; resize: vertical; }
.step-row .tools { display: flex; flex-direction: column; gap: 2px; }
.drag-h { cursor: grab; touch-action: none; }
.sortable-ghost { opacity: .4; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 12px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.ed-foot {
  position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 10; display: flex; gap: 10px; padding: 12px 0;
  background: linear-gradient(transparent, var(--bg) 30%);
}
@media (min-width: 760px) { .ed-foot { bottom: 0; } }

/* ---------- Modal / Sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 14, 8, .5); animation: fade .2s; }
.modal .sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .25s cubic-bezier(.2, .8, .3, 1);
}
@media (min-width: 640px) { .modal { align-items: center; } .modal .sheet { border-radius: 22px; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.sheet-h h2 { font-size: 1.35rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .94); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .close { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 12px; background: rgba(255,255,255,.15); color: #fff; border: 0; }

/* ---------- Profil / Konten ---------- */
.profile { text-align: center; }
.profile .avatar { margin: 0 auto 10px; }
.acc-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.acc { padding: 14px; display: flex; gap: 12px; align-items: center; }
.acc .info { flex: 1; min-width: 0; }
.acc .info strong { display: block; }
.acc .info .sub { font-size: .85rem; color: var(--muted); }
.pw { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 7px; border-radius: 6px; font-size: .88rem; }
.admin-badge { font-size: .7rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 8px; font-weight: 800; margin-left: 6px; vertical-align: middle; }

/* ---------- Kochmodus ---------- */
.cook {
  position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); animation: fade .2s;
}
.cook-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cook-top .t { flex: 1; min-width: 0; }
.cook-top .t strong { display: block; font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-top .t span { font-size: .82rem; color: var(--muted); }
.cook-progress { height: 4px; background: var(--line); }
.cook-progress i { display: block; height: 100%; background: var(--accent); transition: width .35s; }
.cook-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px 0; flex-wrap: wrap; }
.cook .oven-box { margin: 10px 16px 0; padding: 8px 12px; }
.cook-stage {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 12px 20px; overflow: hidden;
  max-width: 900px; width: 100%; margin: 0 auto;
}
.cs { border-radius: 18px; transition: background .2s; }
.cs .k { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cs-prev, .cs-next { font-size: 1.02rem; color: var(--muted); padding: 10px 14px; cursor: pointer; }
.cs-prev .tx, .cs-next .tx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-prev { opacity: .6; }
.cs-prev.ghost, .cs-next.ghost { visibility: hidden; }
.cs-cur {
  background: var(--surface); box-shadow: var(--shadow); border: 2px solid var(--accent); padding: 18px 20px;
  font-size: clamp(1.35rem, 5.2vw, 2.1rem); line-height: 1.4; font-weight: 500; max-height: 58vh; overflow-y: auto;
}
.cs-cur .k { color: var(--accent); font-size: .82rem; }
.cs-cur .step-amt { font-weight: 800; }
.cs-cur ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: clamp(1.05rem, 4.2vw, 1.5rem); }
.cs-cur ul li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.cs-cur ul li .amt { min-width: 5.5em; text-align: right; font-weight: 700; color: var(--accent); flex: none; }
.cs-cur ul li.done { opacity: .4; text-decoration: line-through; }
.cs-cur.finish { text-align: center; }
.cs-cur.finish .big { font-size: 3.4rem; }
.anim-fwd .cs { animation: bubbleUp .42s cubic-bezier(.2, .8, .25, 1); }
.anim-back .cs { animation: bubbleDown .42s cubic-bezier(.2, .8, .25, 1); }
@keyframes bubbleUp { from { transform: translateY(46%); opacity: .25; } }
@keyframes bubbleDown { from { transform: translateY(-46%); opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .anim-fwd .cs, .anim-back .cs { animation: none; } }
.cook-foot { display: flex; gap: 10px; padding: 12px 16px 16px; max-width: 900px; width: 100%; margin: 0 auto; }
.cook-foot .next { flex: 1; min-height: 62px; font-size: 1.2rem; }
.cook-foot .prev { min-height: 62px; }
.cs-cur .btn { font-size: 1.05rem; line-height: 1.2; }
.page-h .btn { white-space: nowrap; flex: none; }
