:root {
  --bg: #f7f3ec; --surface: #fffdf9; --sunk: #efe9de; --fg: #26201a; --muted: #7b6f62; --line: #e4dbcc;
  --accent: #b9481f; --accent-fg: #fff; --accent-soft: #f6e2d6;
  --ethan: #2f6db0; --ly: #b8437a; --luca: #3d8a47; --family: #a07a1c; --adult: #6b5f8a; --other: #8a7f73;
  --luca-soft: #e4f1e3; --warn: #a56a00;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgb(60 40 20 / .06), 0 4px 14px rgb(60 40 20 / .05);
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #17130f; --surface: #211c17; --sunk: #2a241d; --fg: #f0e8dd; --muted: #a3968a; --line: #3a3229;
  --accent: #f08a5d; --accent-fg: #1c110b; --accent-soft: #40261a;
  --ethan: #7fb2ea; --ly: #ee8fbb; --luca: #86cf8f; --family: #dcb85a; --adult: #b0a5d6; --other: #a99d90;
  --luca-soft: #1e3320; --warn: #f0c070; --shadow: 0 1px 2px rgb(0 0 0 / .4);
} }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
button.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; }
button.round { width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: 1.2rem; line-height: 1; }
button.danger { color: #c0392b; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=search], input[type=text], select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  padding: 10px max(20px, env(safe-area-inset-left)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 1.3rem var(--serif); }
.brand img { border-radius: 8px; }
.seg { display: flex; background: var(--sunk); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 7px 16px; color: var(--muted); font-weight: 600; }
.seg button[aria-selected=true] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
main { max-width: 1240px; margin: 0 auto; padding: 22px 20px 80px; }

/* Dishes */
.split { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; }
.split[hidden] { display: none; }
.rail { position: sticky; top: 78px; display: grid; gap: 20px; }
.rail h3 { font: 700 .72rem var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding-left: 10px; }
.facet { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; background: none; border-radius: 9px; padding: 6px 10px; text-align: left; }
.facet:hover { background: var(--sunk); }
.facet[aria-pressed=true] { background: var(--fg); color: var(--bg); }
.facet .n { margin-left: auto; font-variant-numeric: tabular-nums; font-size: .88rem; opacity: .65; }
.facet[disabled] { opacity: .35; cursor: default; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--other)); flex: none; }
.searchrow { display: flex; gap: 10px; }
.searchrow input { flex: 1; font-size: 1.05rem; padding: 11px 16px; border-radius: 12px; }
.summary { display: flex; align-items: baseline; gap: 14px; margin: 20px 0 6px; }
.summary h2 { font-size: 1.5rem; }
.group { margin-top: 22px; }
.group > h3 { font-size: 1.1rem; color: var(--accent); padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.group > h3 small { font: 400 .85rem var(--sans); color: var(--muted); }
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); column-gap: 28px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 11px 6px; }
.row:hover { background: var(--surface); }
.row .name { font: 600 1.06rem var(--serif); }
.row .sub { grid-column: 1; color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .marks { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 5px; }
.who { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 .66rem var(--sans); color: #fff; background: var(--c, var(--other)); }
@media (prefers-color-scheme: dark) { .who { color: #17130f; } }
.badge { font: 600 .72rem var(--sans); border-radius: 999px; padding: 2px 9px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.recipe { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.fix { color: var(--warn); border-color: currentColor; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Dish drawer */
dialog { border: 0; background: var(--surface); color: var(--fg); padding: 0; }
dialog::backdrop { background: rgb(20 12 6 / .45); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(760px, 100vw); max-width: 100vw; box-shadow: -10px 0 40px rgb(0 0 0 / .2); }
.sheet { padding: 28px clamp(18px, 5vw, 44px) 40px; display: grid; gap: 18px; }
.sheet .bar { display: flex; gap: 8px; justify-content: flex-end; position: sticky; top: 0; background: var(--surface); padding: 12px 0; margin: -28px 0 -8px; z-index: 1; }
.sheet h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.1; }
.sheet .vi { color: var(--muted); font: italic 1.1rem var(--serif); margin-top: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.tagp { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px 3px 8px; }
.time { font-weight: 600; }
.note { background: var(--sunk); border-radius: 10px; padding: 10px 14px; }
.recipebody h3 { font-size: 1.25rem; color: var(--accent); margin-bottom: 8px; }
.ing { list-style: none; margin: 0; padding: 14px 18px; background: var(--sunk); border-radius: 14px; columns: 2 220px; column-gap: 28px; font-size: 1.05rem; }
.ing li { padding: 3px 0; break-inside: avoid; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; font-size: 1.12rem; line-height: 1.45; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font: 700 1rem var(--sans); }
.steps li.luca::before { background: var(--luca); }
.notes { margin: 0; padding-left: 20px; color: var(--muted); }
.src { color: var(--muted); font-size: .85rem; }
.norecipe { border: 1px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.form textarea { min-height: 110px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .tagrow { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }

/* Planner */
.planhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.planhead h2 { font-size: 1.5rem; }
.weeknav, .planactions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rules { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: .86rem; }
.rules li::before { content: "•  "; color: var(--accent); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.day.today { outline: 2px solid var(--accent); }
.day > h3 { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: baseline; }
.day > h3 small { font: 400 .8rem var(--sans); color: var(--muted); }
.slot h4 { margin: 0 0 4px; font: 700 .68rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.slot h4 button { border: 0; background: var(--sunk); width: 22px; height: 22px; padding: 0; border-radius: 50%; line-height: 1; }
.slot.luca { background: var(--luca-soft); margin: 0 -6px; padding: 8px 6px; border-radius: 10px; }
.slot.luca h4 { color: var(--luca); }
.meal { display: flex; justify-content: space-between; gap: 4px; align-items: start; font-size: .93rem; line-height: 1.3; padding: 3px 0; }
.meal a { cursor: pointer; }
.meal a:hover { text-decoration: underline; }
.meal button { border: 0; background: none; padding: 0 2px; opacity: .45; line-height: 1.2; }
.meal button:hover { opacity: 1; }
.none { color: var(--muted); font-size: .9rem; }
.sharedline { margin-top: auto; font-size: .8rem; color: var(--luca); font-weight: 600; border-top: 1px dashed var(--line); padding-top: 8px; }
.sharedline.no { color: var(--muted); font-weight: 400; }

/* Shopping */
.shopgroup { margin-top: 22px; }
.shopgroup h3 { font-size: 1.1rem; color: var(--accent); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.shoprows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 28px; }
.shoprow { display: grid; grid-template-columns: 22px 1fr; gap: 0 10px; align-content: start; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.shoprow input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.shoprow .ingname { font: 600 1.05rem var(--serif); text-transform: capitalize; }
.shoprow .uses { grid-column: 2; color: var(--muted); font-size: .84rem; }
.shoprow:has(input:checked) .ingname { text-decoration: line-through; opacity: .5; }

/* Picker */
.picker { border-radius: 16px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.pick { padding: 20px; display: grid; gap: 12px; }
.pick h2 { font-size: 1.3rem; }
.picklist { list-style: none; margin: 0; padding: 0; max-height: 55dvh; overflow: auto; }
.picklist button { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 9px 4px; display: grid; gap: 2px; }
.picklist button:hover { background: var(--sunk); }
.picklist .sh { color: var(--luca); font-size: .82rem; font-weight: 600; }
.picklist .sub { color: var(--muted); font-size: .84rem; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 9px 18px; border-radius: 999px; z-index: 20; }

@media (max-width: 1100px) { .week { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 14px; }
  .rail { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 0 -20px; padding-inline: 20px; }
  .rail > div { display: flex; gap: 6px; }
  .rail h3 { display: none; }
  .facet { width: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .form .two { grid-template-columns: 1fr; }
  .top { justify-content: center; }
}
@media print {
  .top, .bar, .actions, #toast, .planactions, #print { display: none !important; }
  body { background: #fff; color: #000; }
  dialog[open] { position: static; width: 100%; height: auto; max-height: none; box-shadow: none; }
  body:has(dialog[open]) main { display: none; }
  .day, .ing { box-shadow: none; border: 1px solid #ccc; }
}

/* ---- Dense layout: use the whole screen ---- */
main { max-width: none; padding: 12px 16px 40px; }
.top { padding: 6px 16px; }
.brand { font-size: 1.1rem; } .brand img { width: 24px; height: 24px; }
.seg button { padding: 5px 14px; }
.split { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
.rail { top: 58px; gap: 12px; }
.rail h3 { margin-bottom: 2px; }
.facet { padding: 3px 10px; font-size: .93rem; }
.searchrow input { padding: 7px 12px; font-size: 1rem; }
.summary { margin: 10px 0 0; } .summary h2 { font-size: 1.15rem; }
.group { margin-top: 12px; }
.group > h3 { font-size: 1rem; padding-bottom: 3px; }
/* one line per dish */
.rows { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); column-gap: 20px; }
.row { display: flex; align-items: baseline; gap: 10px; padding: 5px 4px; white-space: nowrap; }
.row .name { font: 600 .98rem var(--sans); flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.row .sub { flex: 1; min-width: 0; font-size: .84rem; }
.row .marks { align-self: center; flex: none; }
.who { width: 20px; height: 20px; font-size: .6rem; }
.badge { font-size: .68rem; padding: 1px 7px; }

/* Dish page */
#dish { max-width: 1500px; margin: 0 auto; }
.dishbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; position: sticky; top: 45px; background: var(--bg); padding: 6px 0; z-index: 2; }
.dishtitle { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dishtitle h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; }
.dishtitle .vi { color: var(--muted); font: italic 1.05rem var(--serif); }
.meta { margin: 4px 0 10px; }
.notetext { color: var(--muted); font-size: .9rem; }
.recipebody { display: grid; grid-template-columns: minmax(280px, 30%) minmax(0, 1fr); gap: 24px; align-items: start; margin: 0; }
.ingcol { position: sticky; top: 100px; display: grid; gap: 8px; }
.inghead { display: flex; justify-content: space-between; align-items: center; }
.recipebody h3 { font-size: 1.1rem; margin: 0 0 4px; }
.stepcol h3:not(:first-child) { margin-top: 14px; }
.ing { columns: 1; padding: 8px 12px; border-radius: 10px; font-size: 1.02rem; }
.ing li { padding: 2px 0; }
.amt { font: inherit; font-weight: 700; text-align: right; padding: 0 4px; margin-right: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.amt:hover, .amt:focus { border-color: var(--accent); }
.scalebox { display: flex; gap: 4px; }
.scalebox button { padding: 2px 9px; font-size: .85rem; border-radius: 999px; }
.scalebox button[aria-pressed=true] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hint { margin: 0; color: var(--muted); font-size: .84rem; }
.steps { gap: 6px; font-size: 1.08rem; line-height: 1.4; }
.steps li { grid-template-columns: 28px 1fr; gap: 10px; }
.steps li::before { width: 28px; height: 28px; font-size: .9rem; }
.norecipe { padding: 16px; text-align: left; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-top: 8px; }
.form { gap: 8px; }
.form textarea { min-height: 0; }
/* Planner + shopping */
.planhead { margin-bottom: 6px; } .planhead h2 { font-size: 1.2rem; }
.rules { margin-bottom: 8px; font-size: .8rem; }
.week { gap: 6px; }
.day { padding: 8px; gap: 8px; border-radius: 10px; }
.meal { font-size: .9rem; padding: 1px 0; }
.shopgroup { margin-top: 12px; }
.shoprows { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 20px; }
.shoprow { padding: 5px 4px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .recipebody, .formgrid { grid-template-columns: 1fr; }
  .ingcol { position: static; }
  .rows { grid-template-columns: 1fr; }
  .dishbar { top: 82px; }
}
@media print {
  .dishbar button, .scalebox, .hint { display: none !important; }
  .dishbar, .ingcol { position: static; }
  .amt { border: 0; padding: 0; width: auto !important; text-align: left; }
}

/* ---- Calm theme ---- */
:root {
  --bg: #f3f1ea; --surface: #fbfaf6; --sunk: #eae7dd; --fg: #33382f; --muted: #848a7c; --line: #e3e0d4;
  --accent: #5d8a6a; --accent-fg: #fff; --accent-soft: #dfeadf;
  --ethan: #7fa3c7; --ly: #d49ab3; --luca: #8dba8f; --family: #d1b578; --adult: #a79fc0; --other: #c2bfb2;
  --luca-soft: #e6f0e3; --warn: #b58a3c;
  --serif: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, system-ui, sans-serif;
  --shadow: 0 1px 2px rgb(60 70 50 / .05), 0 6px 20px rgb(60 70 50 / .05);
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #1b1e1a; --surface: #242822; --sunk: #2d322b; --fg: #e4e7dd; --muted: #98a08f; --line: #353a32;
  --accent: #8fc09b; --accent-fg: #17201a; --accent-soft: #2c3b2f;
  --ethan: #86a9cc; --ly: #cf98b0; --luca: #8fc09b; --family: #c9ad70; --adult: #a69ebf; --other: #6f7568;
  --luca-soft: #26332a; --warn: #d9b46a;
} }
body { font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; }
h1, h2, h3 { letter-spacing: 0; font-weight: 650; }
button { border-radius: 999px; transition: background .15s, border-color .15s; }
button.primary { box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); }
input[type=search], input[type=text], select, textarea { border-radius: 14px; }
.top { border-bottom: 0; }
.seg { border-radius: 999px; } .seg button { border-radius: 999px; }
.rail h3 { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 600; }
.facet { border-radius: 999px; transition: background .15s; }
.facet[aria-pressed=true] { background: var(--accent-soft); color: var(--fg); font-weight: 650; }
.facet .n { opacity: .5; }
.who { color: #fff; font-weight: 650; }
.summary h2 { font-weight: 600; color: var(--muted); font-size: 1rem; }

/* Dish list: one dish per line, each group a soft card */
.group { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 14px 6px; margin-top: 12px; }
.group > h3 { border: 0; color: var(--fg); font-size: 1.05rem; padding: 2px 4px 6px; }
.group > h3 small { background: var(--sunk); border-radius: 999px; padding: 1px 9px; font-size: .78rem; }
.rows { display: block; }
.row { display: grid; grid-template-columns: minmax(180px, 320px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 6px 8px; border: 0; border-top: 1px solid var(--line); border-radius: 10px; }
.row:first-child { border-top-color: transparent; }
.row:hover { background: var(--accent-soft); border-top-color: transparent; }
.row:hover + .row { border-top-color: transparent; }
.row .name { font: 600 1rem inherit; font-family: inherit; max-width: none; }
.row .sub { font-size: .88rem; }
.has { color: var(--accent); font-size: .8rem; font-weight: 600; }
.has::before { content: "● "; font-size: .6rem; vertical-align: middle; }
.badge.fix { border: 0; background: color-mix(in srgb, var(--warn) 18%, transparent); }
.empty { background: var(--surface); border-radius: 18px; margin-top: 12px; }

/* Dish page */
.recipebody h3 { color: var(--accent); }
.ing { background: var(--surface); box-shadow: var(--shadow); border-radius: 16px; padding: 10px 14px; }
.stepcol { background: var(--surface); box-shadow: var(--shadow); border-radius: 16px; padding: 12px 16px; }
.amt { border-radius: 8px; background: var(--sunk); border-color: transparent; }
.steps li::before { background: var(--accent-soft); color: var(--accent); }
.steps li.luca::before { background: var(--luca); color: #fff; }
.tagp { background: var(--surface); border-color: transparent; }
.day { border-radius: 16px; }
.day.today { outline: 2px solid var(--accent); }
.shopgroup { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 14px; }
.shopgroup h3 { border: 0; color: var(--fg); }
.shoprow { border-bottom: 0; border-top: 1px solid var(--line); }
.rules li::before { color: var(--accent); }
@media (max-width: 820px) { .row { grid-template-columns: minmax(0, 1fr) auto; } .row .sub { display: none; } .facet { border-radius: 999px; } }
.row .name { grid-column: 1; grid-row: 1; overflow: hidden; text-overflow: ellipsis; }
.row .sub { grid-column: 2; grid-row: 1; }
.row .marks { grid-column: 3; grid-row: 1; }
@media (max-width: 820px) { .row .marks { grid-column: 2; } }

/* ---- Tags in the list, stacked recipe ---- */
.row { grid-template-columns: minmax(160px, 340px) minmax(0, 1fr); }
.row .tags { grid-column: 2; grid-row: 1; display: flex; flex-wrap: nowrap; gap: 5px; overflow: hidden; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tag { font-size: .76rem; font-weight: 600; white-space: nowrap; border-radius: 999px; padding: 2px 10px;
  background: color-mix(in srgb, var(--c, var(--other)) 22%, transparent); color: color-mix(in srgb, var(--c, var(--other)) 70%, var(--fg)); }
.tag.status { --c: var(--other); }
.tag.s-proven { --c: var(--accent); }
.tag.s-fix { --c: var(--warn); }
.tag.s-trying { --c: var(--luca); }
.tag.hasrecipe { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#dish { max-width: 900px; }
.stack { display: grid; gap: 12px; }
.card { background: var(--surface); box-shadow: var(--shadow); border-radius: 16px; padding: 12px 18px; }
.card h3 { color: var(--accent); font-size: 1.1rem; margin: 0 0 6px; }
.card .ing { box-shadow: none; background: none; padding: 0; columns: 2 240px; }
.card .hint { margin-top: 6px; }
.card .notes { padding-left: 20px; color: var(--fg); }
.scalebox { align-items: center; }
@media (max-width: 820px) { .row { grid-template-columns: minmax(0, 1fr) auto; } .row .tags { max-width: 55vw; } }
