:root {
  --paper: #fbf6ee; --card: #fffdf8; --ink: #2a211b; --muted: #75685c; --line: #e6dccd;
  --tomato: #b8452a; --tomato-ink: #fff; --herb: #2f5d50; --herb-soft: #e4efe9; --warn: #8a5a00; --warn-soft: #fff3d6;
  --danger: #a3261b; --radius: 14px; --shadow: 0 1px 2px rgba(60,40,20,.06), 0 6px 20px rgba(60,40,20,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1714; --card: #241f1b; --ink: #f1e9df; --muted: #b3a597; --line: #3a322b;
    --tomato: #e0714f; --tomato-ink: #1b1714; --herb: #8cc4b0; --herb-soft: #23332d; --warn: #f1c66b; --warn-soft: #3a3020; --danger: #ff8a7a; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--tomato); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h2 { font-size: 1.3rem; margin-top: 1.4em; }
h3 { font-size: 1.05rem; }
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, var(--herb) 0 34%, var(--paper) 35% 60%, var(--tomato) 61%); }
nav { display: flex; gap: 4px; }
nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 999px; font-weight: 500; }
nav a.on { color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
main { max-width: 760px; margin: 0 auto; padding: 18px 16px 80px; outline: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 14px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.pad { padding: 30px 0; }
.small { font-size: .88rem; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { min-height: 90px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .drop:focus-within { outline: 3px solid color-mix(in srgb, var(--tomato) 45%, transparent); outline-offset: 2px; }
button, .btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button.primary, .btn.primary { background: var(--tomato); color: var(--tomato-ink); border-color: transparent; }
button.ghost { background: transparent; }
button.danger { color: var(--danger); }
button:disabled { opacity: .55; cursor: progress; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.spread { justify-content: space-between; }
.drop { display: block; position: relative; border: 2px dashed color-mix(in srgb, var(--tomato) 55%, var(--line)); border-radius: var(--radius);
  padding: 28px 16px; text-align: center; background: var(--card); cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .big { font-family: var(--serif); font-size: 1.3rem; display: block; margin-bottom: 4px; }
.preview { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius); display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-weight: 500; cursor: pointer; }
.chip input { margin: 0; accent-color: var(--tomato); }
.chip.on, .chip:has(input:checked) { background: var(--herb-soft); border-color: var(--herb); }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--herb-soft); color: var(--herb); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.conf { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 2px; }
.conf > i { display: block; height: 100%; background: var(--herb); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.tile { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tile .ph { aspect-ratio: 4/3; background: var(--herb-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; color: var(--herb); }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tile .t { padding: 10px 12px 12px; }
.tile .t b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.hero { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .hero.has-img { grid-template-columns: 220px 1fr; align-items: start; } }
.hero img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.native { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); margin: -4px 0 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
ul.ing, ol.steps { padding: 0; list-style: none; margin: 0; }
ul.ing li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
ul.ing li input, ol.steps li input { margin-top: 5px; accent-color: var(--herb); width: 18px; height: 18px; flex: none; }
ul.ing .qty { font-weight: 700; min-width: 4.6em; }
ul.ing .sub { display: block; font-size: .88rem; color: var(--muted); }
ol.steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
ol.steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tomato); color: var(--tomato-ink); font-weight: 700; }
li.done .txt { text-decoration: line-through; color: var(--muted); }
.tip { display: block; margin-top: 4px; font-size: .9rem; color: var(--herb); }
.group { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; margin-top: 14px; }
.box { border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.box.safe { background: var(--herb-soft); }
.box.allerg { background: var(--warn-soft); }
.box ul { margin: 6px 0 0; padding-left: 20px; }
.scaler { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.scaler button { padding: 4px 12px; border: 0; }
.stars button { border: 0; background: none; font-size: 1.4rem; padding: 0 2px; color: var(--line); }
.stars button.on { color: var(--tomato); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--tomato); animation: spin 1s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; }
.err { color: var(--danger); font-weight: 600; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }
@media print {
  .top, .noprint, #toast { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .box { box-shadow: none; border: 1px solid #ccc; }
  main { max-width: none; padding: 0; }
}
