:root {
  --paper: #eef2ec;
  --white: #ffffff;
  --ink: #15271d;
  --ink-2: #4a5a50;
  --basil: #2d6a4b;
  --basil-dark: #20503a;
  --yolk: #f2b32a;
  --tomato: #c2412a;
  --line: #cfd8cc;
  --cond: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif-condensed, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --r: 10px;
  --pad: clamp(12px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--basil-dark); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--cond); font-stretch: condensed; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .help, .hint, .fine { color: var(--ink-2); font-size: .9rem; }
main { padding: 0 var(--pad) 64px; max-width: 1500px; margin: 0 auto; }
code { background: var(--white); padding: 0 .3em; border-radius: 4px; border: 1px solid var(--line); }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  font: 600 .95rem/1 var(--body);
  padding: .7em 1.1em; min-height: 44px;
  border-radius: 999px; border: 2px solid var(--basil);
  background: var(--basil); color: var(--white);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--basil-dark); border-color: var(--basil-dark); }
.btn.ghost { background: transparent; color: var(--basil-dark); }
.btn.ghost:hover { background: var(--white); }
.btn.small { padding: .45em .9em; min-height: 36px; font-size: .9rem; }
.btn.danger { background: transparent; color: var(--tomato); border-color: var(--tomato); }
.btn.danger:hover { background: var(--tomato); color: var(--white); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--basil-dark); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
input, select, textarea {
  font: inherit; color: inherit;
  background: var(--white);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: .55em .7em; width: 100%; min-height: 44px;
}
input:focus, select:focus, textarea:focus { border-color: var(--basil); outline: none; box-shadow: 0 0 0 3px rgba(45, 106, 75, .25); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--basil); }
textarea { line-height: 1.5; resize: vertical; }
textarea.mono { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: .92rem; }
label { display: block; font-weight: 600; font-size: .92rem; }
label > input, label > textarea, label > select { margin-top: .3rem; font-weight: 400; font-size: 1rem; }
label.check { display: flex; align-items: center; gap: .5em; font-weight: 400; margin: .5rem 0; font-size: 1rem; }

/* ---------------------------------------------------------------- top bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px var(--pad); min-height: 60px;
  background: var(--ink); color: var(--paper);
}
.brand {
  font: 700 1.7rem/1 var(--cond); font-stretch: condensed;
  color: var(--paper); text-decoration: none; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: .45rem;
}
.brand::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--yolk); }
.bar nav { display: flex; align-items: center; gap: 1.1rem; }
.bar nav a:not(.btn), .bar .linkish { color: var(--paper); text-decoration: none; font-size: .95rem; }
.bar nav a:not(.btn):hover, .bar .linkish:hover { text-decoration: underline; }
.bar .btn { background: var(--yolk); border-color: var(--yolk); color: var(--ink); }
.bar form { margin: 0; }
.bar .add span[aria-hidden] { font-size: 1.25em; line-height: .8; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--paper); border-radius: 2px; }
.menu[open] summary { background: rgba(255, 255, 255, .12); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px;
  background: var(--white); border-radius: 12px; border: 1.5px solid var(--line); padding: 6px;
  box-shadow: 0 12px 32px rgba(21, 39, 29, .25);
}
.menu-pop a, .menu-pop .linkish { display: block; width: 100%; text-align: left; padding: .75rem .9rem; border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-size: 1rem; }
.menu-pop a:hover, .menu-pop .linkish:hover { background: var(--paper); }
@media (max-width: 699px) { .wide-only { display: none !important; } }
@media (min-width: 700px) { .narrow-only { display: none !important; } }
.flashes { max-width: 1500px; margin: 12px auto 0; padding: 0 clamp(12px, 3vw, 32px); }
.flash { margin: 0 0 8px; padding: .7em 1em; border-radius: 8px; background: #dcebdf; border-left: 5px solid var(--basil); }
.flash.error { background: #f6e1dc; border-left-color: var(--tomato); }

/* ---------------------------------------------------------------- login */
.login-page main { min-height: 100vh; display: grid; place-items: center; }
.login {
  width: min(360px, 100%); padding: 2rem;
  background: var(--white); border-radius: 16px; border: 1.5px solid var(--line);
}
.login h1 { display: flex; align-items: center; gap: .5rem; }
.login h1::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--yolk); }
.login .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.error { color: var(--tomato); font-weight: 600; }

/* ---------------------------------------------------------------- browse */
.browse {
  display: grid; gap: 20px 32px; padding-top: 20px;
  grid-template-columns: 1fr;
  grid-template-areas: "search" "filters" "results";
}
.searchrow { grid-area: search; display: flex; gap: 8px; align-items: center; }
.searchrow #q { flex: 1 1 auto; min-width: 0; font-size: 1.05rem; min-height: 48px; border-radius: 999px; padding-left: 1.1em; }
.searchrow .btn { flex: none; min-height: 48px; }
.pill[hidden] { display: none; }
.pill { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--yolk); color: var(--ink); font-size: .8rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 14px; }
.sortwrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sortwrap .btn.small { min-height: 40px; }
.btn.shuffle { width: 40px; padding: 0; justify-content: center; flex: none; }
@media (max-width: 600px) {
  .toolbar, .sortwrap { flex-wrap: nowrap; }
  .sortby > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sortby select { max-width: 11.5rem; }
}
.sortby { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--ink-2); }
.sortby select { width: auto; margin: 0; min-height: 40px; padding: .35em .6em; color: var(--ink); }
.sheet-head { display: none; }
.sheet-foot #apply { display: none; }
.filters { grid-area: filters; display: none; }
.filters.open { display: block; }
.results { grid-area: results; min-width: 0; }
.filters fieldset { border: 0; border-top: 1.5px solid var(--line); margin: 0; padding: 14px 0 16px; }
.filters fieldset:first-of-type { border-top: 0; padding-top: 0; }
.filters legend { float: left; width: 100%; font: 700 1.1rem var(--cond); font-stretch: condensed; padding: 0 0 8px; }
.filters legend + * { clear: left; }
.filters fieldset > label + label { margin-top: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, .seg span {
  display: inline-block; padding: .4em .8em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white);
  font-weight: 500; font-size: .9rem; cursor: pointer;
}
.chip input:checked + span, .seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--yolk); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: .5rem 0; }
.range { display: flex; align-items: center; gap: .5rem; }
.range input { width: 6em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .8rem; }
.grid2 label { margin: 0 !important; font-weight: 500; font-size: .85rem; display: flex; flex-direction: column; justify-content: space-between; }
#reset { margin-top: 8px; }
.count { margin: 0; color: var(--ink-2); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .card .photo { aspect-ratio: 1; }
  .card h3 { font-size: 1.02rem; margin-top: .45rem; -webkit-line-clamp: 2; }
  .meta { font-size: .8rem; gap: 0 .55rem; }
  .badge { min-width: 2.2rem; height: 2.2rem; font-size: 1rem; left: 6px; top: 6px; }
  .fav { width: 1.8rem; height: 1.8rem; right: 6px; top: 6px; }
}
.card { display: block; color: inherit; text-decoration: none; }
.card .photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--line); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .photo img { transform: scale(1.03); }
.card .nophoto { background: repeating-linear-gradient(-45deg, var(--line) 0 10px, #dde4da 10px 20px); }
.card h3 { margin: .6rem 0 .2rem; font-size: 1.2rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .88rem; color: var(--ink-2); }
.by { margin: .1rem 0 0; font-size: .88rem; color: var(--basil-dark); font-weight: 600; }
.badge {
  position: absolute; left: 8px; top: 8px;
  min-width: 2.6rem; height: 2.6rem; padding: 0 .35rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--yolk); color: var(--ink);
  font: 700 1.15rem/1 var(--cond); font-stretch: condensed;
}
.fav { position: absolute; right: 8px; top: 8px; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--tomato); font-size: 1.05rem; }
.empty { padding: 3rem 0; text-align: center; }

@media (min-width: 900px) {
  .browse { grid-template-columns: 270px 1fr; grid-template-areas: "search search" "filters results"; }
  #toggle-filters { display: none; }
  .filters { display: block; position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; }
}

/* ---------------------------------------------------------------- recipe */
.recipe { padding-top: 20px; }
.rhead { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
.hero { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.crumbs { margin: 0 0 .6rem; font-size: .92rem; color: var(--ink-2); }
.lead { font-size: 1.12rem; max-width: 60ch; margin: 0 0 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0 0 1.2rem; }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: .85rem; color: var(--ink-2); }
.facts dd { margin: 0; font: 700 1.25rem var(--cond); font-stretch: condensed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-btn span[aria-hidden] { color: var(--tomato); }
.fav-btn[aria-pressed="true"] { background: var(--tomato); border-color: var(--tomato); color: var(--white); }
.fav-btn[aria-pressed="true"] span[aria-hidden] { color: var(--white); }
#wake[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.rating { margin: 28px 0; padding: 18px 20px; background: var(--white); border-radius: 16px; border: 1.5px solid var(--line); }
.rating h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.rating-row { display: flex; align-items: center; gap: 20px; }
@media (max-width: 480px) { .rating-row { gap: 14px; } .score { flex-basis: 4.4rem; width: 4.4rem; height: 4.4rem; font-size: 1.9rem; } }
.score {
  flex: 0 0 5.2rem; width: 5.2rem; height: 5.2rem; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--yolk); color: var(--ink);
  font: 700 2.3rem/1 var(--cond); font-stretch: condensed;
}
.score.empty { background: var(--paper); color: var(--ink-2); border: 2px dashed var(--line); }
.rating-ctl { flex: 1; min-width: 0; }
.rating-ctl input[type=range] { width: 100%; padding: 0; border: 0; background: none; accent-color: var(--yolk); min-height: 36px; }
.rating-sub { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.rating-sub input { width: 6.5em; }
.of { color: var(--ink-2); }
.saved { color: var(--ink-2); font-size: .88rem; min-height: 1.3em; margin: .2rem 0 0; }

.cols { display: grid; gap: 32px; grid-template-columns: 1fr; }
.ingredients ul, .tips ul, .info ul { padding: 0; margin: 0 0 1rem; list-style: none; }
.ing-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .4rem; }
.ing-head h2 { margin: 0; }
.ingredients h3 { margin: 1rem 0 .3rem; color: var(--basil-dark); }
.ingredients li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.ingredients .amt { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ingredients small { color: var(--ink-2); font-size: .88rem; }
.ingredients .optional .name { color: var(--ink-2); }
.scaler { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.scaler .step { width: 44px; height: 44px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--basil-dark); border-radius: 999px; }
.scaler .step:hover { background: var(--paper); }
.scaler output { min-width: 7.5rem; text-align: center; font-weight: 600; font-size: .95rem; }
.scale-note { font-size: .88rem; color: var(--basil-dark); }

/* the nutrition label */
.label { margin-top: 28px; background: var(--white); border: 3px solid var(--ink); padding: 10px 14px 12px; max-width: 30rem; }
.label h2 { font-size: 2.1rem; margin: 0; padding-bottom: 4px; border-bottom: 10px solid var(--ink); letter-spacing: -.01em; }
.label table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.label th, .label td { padding: .38rem .2rem; border-bottom: 1px solid var(--ink); text-align: right; vertical-align: bottom; }
.label thead th { font-size: .82rem; font-weight: 600; border-bottom: 4px solid var(--ink); }
.label tbody th { text-align: left; font-weight: 500; }
.label tr.kcal td, .label tr.kcal th { font: 700 1.35rem var(--cond); font-stretch: condensed; border-bottom-width: 4px; }
.label tr.protein td, .label tr.protein th { font-weight: 800; font-size: 1.12rem; }
.label tbody tr:last-child th, .label tbody tr:last-child td { border-bottom: 0; }
.label .calc { color: var(--ink-2); }
.label .fine { margin: .5rem 0 0; font-size: .8rem; }

.steps ol { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; }
.steps li {
  counter-increment: step; position: relative; cursor: pointer;
  padding: .7rem .6rem .8rem 3.2rem; margin: 0 -.6rem; border-radius: 8px;
  max-width: 70ch; font-size: 1.05rem;
}
.steps li:hover { background: rgba(255, 255, 255, .6); }
.steps li::before {
  content: counter(step); position: absolute; left: .6rem; top: .65rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--basil); color: var(--basil-dark);
  font: 700 1rem/1 var(--cond);
}
.steps li.done { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(21, 39, 29, .4); }
.steps li.done::before { content: "✓"; background: var(--basil); color: var(--white); }
.steps .hint { margin-top: -.3rem; }
.tips li, .info li { padding: .5rem 0 .5rem 1rem; border-left: 4px solid var(--yolk); margin-bottom: .6rem; max-width: 70ch; }
.info li { border-left-color: var(--line); color: var(--ink-2); }
.tips, .info, .mine { margin-top: 28px; }
.mine h3 { margin-top: 1.2rem; }
.cooked-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cooked-add input { width: auto; }
.cooked-list { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cooked-list li { background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: .3em .8em; font-variant-numeric: tabular-nums; font-size: .92rem; }
.cooked-list .linkish { margin-left: .3em; font-size: .85rem; color: var(--ink-2); }
.manage { margin-top: 40px; padding-top: 20px; border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.manage form { margin: 0; }
.manage .muted { flex-basis: 100%; margin: 0; }

.pagedlg { padding: 12px; border: 0; border-radius: 12px; max-width: min(900px, 96vw); max-height: 94vh; background: var(--white); }
.pagedlg::backdrop { background: rgba(21, 39, 29, .7); }
.pagedlg form { position: sticky; top: 0; text-align: right; margin-bottom: 8px; }

@media (min-width: 900px) {
  .rhead { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
  .cols { grid-template-columns: minmax(300px, 400px) 1fr; gap: 56px; margin-top: 40px; }
  .side { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; }
  .rating { max-width: 640px; }
}

/* ---------------------------------------------------------------- edit + book + messages */
.editor { max-width: 880px; padding-top: 24px; display: grid; gap: 18px; }
.editor fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px 16px; margin: 0; }
.editor legend { font: 700 1.1rem var(--cond); padding: 0 .3rem; }
.editor .help { margin: -10px 0 0; }
.editor fieldset .help { margin: 0 0 10px; }
.row2, .row3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 2fr 1fr 1fr; } }
.nut-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 6px; }
.nut-grid > span { font-size: .82rem; font-weight: 600; }
.photo-field img { max-width: 240px; border-radius: 8px; margin-bottom: 8px; }
.formactions { display: flex; gap: 10px; }

.bookpages { max-width: 900px; padding-top: 24px; }
.bookpages img { border: 1.5px solid var(--line); border-radius: 6px; margin: 0 0 20px; background: var(--white); }
.bookpages h2 { margin-top: 2rem; }
.jump { display: flex; gap: 1rem; }
.message { max-width: 600px; padding-top: 48px; }

/* ---------------------------------------------------------------- phones */
.jumpnav { display: none; }
@media (max-width: 899px) {
  .browse { padding-top: 0; gap: 0; }
  .searchrow { position: sticky; top: 0; z-index: 30; background: var(--paper); padding: 12px 0 10px; }
  .results { padding-top: 4px; }
  .filters.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 100; background: var(--paper);
    overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad);
  }
  .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 2; background: var(--paper);
    padding: 12px 0; margin-bottom: 4px; border-bottom: 1.5px solid var(--line);
  }
  .sheet-head h2 { margin: 0; }
  .filters fieldset:first-of-type { border-top: 0; padding-top: 10px; }
  .sheet-foot {
    position: sticky; bottom: 0; margin-top: auto; background: var(--paper);
    display: flex; gap: 10px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border-top: 1.5px solid var(--line);
  }
  .sheet-foot #apply { display: inline-flex; flex: 1; justify-content: center; }
  .sheet-foot #reset { margin: 0; }
  body.sheet-open { overflow: hidden; }
  .chip span, .seg span { padding: .55em .95em; font-size: .95rem; }

  .recipe { padding-top: 0; }
  .rhead { gap: 16px; }
  .hero { margin: 0 calc(-1 * var(--pad)); width: calc(100% + 2 * var(--pad)); max-width: none; border-radius: 0; aspect-ratio: 4 / 3; }
  .rtitle h1 { font-size: 2.1rem; }
  .lead { font-size: 1.02rem; }
  .facts { gap: .3rem 1.6rem; margin-bottom: 1rem; }
  .actions { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scrollbar-width: none; }
  .actions::-webkit-scrollbar { display: none; }
  .actions .btn { flex: none; min-height: 40px; padding: .5em .95em; font-size: .9rem; }
  .rating { margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; }
  .rating h2 { font-size: 1rem; margin-bottom: .3rem; }
  .jumpnav {
    display: flex; position: sticky; top: 0; z-index: 30;
    margin: 18px calc(-1 * var(--pad)) 16px; padding: 8px var(--pad);
    background: var(--ink); gap: 6px;
  }
  .jumpnav a {
    flex: 1; text-align: center; padding: .55rem .4rem; border-radius: 999px;
    color: var(--paper); text-decoration: none; font: 700 1.02rem var(--cond); font-stretch: condensed;
  }
  .jumpnav a.on { background: var(--yolk); color: var(--ink); }
  #zutaten, #zubereitung, #notizen { scroll-margin-top: 64px; }
  .cols { gap: 28px; display: flex; flex-direction: column; }
  .side, .body { display: contents; }
  .ingredients { order: 1; }
  .steps { order: 2; }
  .label { order: 3; margin-top: 0; }
  .tips { order: 4; }
  .info { order: 5; }
  .mine { order: 6; }
  .manage { order: 7; }
  .tips, .info, .mine { margin-top: 0; }
  .ingredients li { grid-template-columns: 4.6rem 1fr; gap: .7rem; padding: .55rem 0; font-size: 1.02rem; }
  .ing-head h2, .steps h2 { font-size: 1.6rem; }
  .label { max-width: none; }
  .steps li { font-size: 1.06rem; padding-right: 0; }
  .manage { margin-top: 28px; }
}
@media (max-width: 699px) {
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 > label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 6px; }
  .nut-grid > span { display: none; }
  .nut-grid .n-label { grid-column: 1 / -1; margin-top: 8px; }
  .nut-grid .n-label:first-of-type { margin-top: 0; }
  .editor { padding-top: 16px; }
  .editor fieldset { padding: 10px 12px 14px; }
  .formactions { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--line); }
  .formactions .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
