@font-face { font-family: 'Fraunces'; font-weight: 400; font-display: swap; src: url(/fonts/fraunces-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url(/fonts/fraunces-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/fraunces-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 400; font-display: swap; src: url(/fonts/fraunces-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Caveat'; font-weight: 400; font-display: swap; src: url(/fonts/caveat-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 600; font-display: swap; src: url(/fonts/caveat-latin-600-normal.woff2) format('woff2'); }

:root {
  --paper: #f3ecdf;
  --paper-2: #ebe2d1;
  --card: #fffdf7;
  --ink: #2b2824;
  --ink-2: #5d564d;
  --ink-3: #8c8377;
  --line: #e3d9c7;
  --rule: #d6e4f0;
  --red: #b8402f;
  --red-2: #d2604c;
  --red-soft: #f6e1da;
  --green: #4d7547;
  --green-soft: #e2ecdc;
  --gold: #c9962f;
  --shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 4px 14px rgba(60, 40, 20, .08);
  --radius: 10px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --tabbar: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(120, 90, 50, .05) 1px, transparent 1px);
  background-size: 4px 4px;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
a { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stack > * + * { margin-top: 12px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 16px; }
.wrap.narrow { max-width: 640px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(243, 236, 223, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.topbar .inner { max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.topbar h1 { font-size: 1.35rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.iconbtn { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn:hover { background: var(--paper-2); }
.iconbtn svg { width: 22px; height: 22px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; box-shadow: 0 -2px 12px rgba(60, 40, 20, .06);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .72rem; font-weight: 500; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--red); }
.tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
.badge { background: var(--red); color: #fff; border-radius: 99px; font-size: .68rem; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; font-weight: 600; }

/* ---------- buttons & inputs ---------- */
.btn {
  border: 1px solid var(--line); background: var(--card); padding: 9px 16px; border-radius: 99px; cursor: pointer;
  font-weight: 500; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); white-space: nowrap; min-height: 42px;
}
.btn:hover { border-color: var(--ink-3); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #a5372a; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 5px 12px; min-height: 34px; font-size: .9rem; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: default; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 11px 13px; outline: none; min-height: 44px;
}
.input:focus { border-color: var(--red-2); box-shadow: 0 0 0 3px var(--red-soft); }
textarea.input { resize: vertical; line-height: 1.55; }
label.field { display: block; }
label.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
label.field > small { display: block; color: var(--ink-3); margin-top: 4px; font-size: .8rem; }
.search {
  position: relative; flex: 1;
}
.search input { padding-left: 40px; border-radius: 99px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: var(--card); padding: 6px 13px; border-radius: 99px; white-space: nowrap; cursor: pointer;
  font-size: .88rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px;
}
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { color: var(--ink-3); font-size: .78rem; }
.chip.on .n { color: #cfc6b8; }
.chip.removable { background: var(--green-soft); border-color: #c5d8bd; color: #2f4a2b; }
.chip.removable b { font-weight: 400; margin-left: 2px; opacity: .6; }
.tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); font-weight: 500; }
.tag.spicy { background: #fbe0d6; color: #9b3420; }
.tag.selling { background: #fdf0cf; color: #7a5a12; }

/* ---------- recipe grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.rcard {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; position: relative; transition: transform .15s;
}
.rcard:active { transform: scale(.98); }
.rcard .thumb { aspect-ratio: 4 / 3; background: var(--paper-2); position: relative; overflow: hidden; }
.rcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rcard .thumb.blank {
  display: grid; place-items: center; font-size: 2.2rem;
  background: repeating-linear-gradient(180deg, var(--card) 0 21px, var(--rule) 21px 22px); border-bottom: 2px solid var(--red-2);
}
.rcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.rcard h3 { font-size: 1rem; }
.rcard .sub { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: .85rem; line-height: 1.25; }
.rcard .meta { margin-top: auto; padding-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.rcard .fav { position: absolute; top: 8px; right: 8px; background: rgba(255, 253, 247, .9); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; color: var(--red); }
.rcard .fav svg { width: 16px; height: 16px; }
.mini-stamp {
  position: absolute; left: 8px; top: 8px; transform: rotate(-8deg); border: 2px solid var(--red); color: var(--red);
  font-weight: 700; font-size: .62rem; letter-spacing: .12em; padding: 1px 6px; border-radius: 4px; background: rgba(255, 253, 247, .88);
}
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.section-title h2 { font-size: 1.2rem; }

/* ---------- index card (recipe page) ---------- */
.photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 14px; padding: 0 16px; }
.photos img { height: 240px; width: auto; max-width: 85vw; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; cursor: zoom-in; box-shadow: var(--shadow); }
.photos.single img { width: 100%; max-width: 100%; height: auto; max-height: 420px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card.index { padding: 22px 20px 24px; }
.card.index::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--red); opacity: .85; }
.card.index .title-block { border-bottom: 2px solid var(--red-2); padding-bottom: 12px; margin-bottom: 14px; padding-right: 90px; }
.card.index h1 { font-size: 1.7rem; }
.card.index .subtitle { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.05rem; margin-top: 2px; }
.card.index .desc { color: var(--ink-2); margin-top: 8px; }
.ruled { background: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); line-height: 32px; }
.metarow { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ink-2); font-size: .92rem; margin: 6px 0 16px; align-items: center; }
.metarow b { color: var(--ink); }
.scaler { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.scaler button { border: 0; background: transparent; padding: 4px 10px; cursor: pointer; font-size: .85rem; color: var(--ink-2); }
.scaler button.on { background: var(--ink); color: var(--paper); }

.stamp {
  position: absolute; right: 14px; top: 20px; transform: rotate(9deg); color: var(--red); border: 3px double var(--red); border-radius: 8px;
  padding: 4px 10px 3px; text-align: center; font-weight: 700; letter-spacing: .16em; font-size: .9rem; line-height: 1.1; background: rgba(255, 253, 247, .7);
  mix-blend-mode: multiply; opacity: .9; cursor: pointer; user-select: none;
}
.stamp small { display: block; letter-spacing: .04em; font-weight: 500; font-size: .62rem; margin-top: 2px; }
.stamp.off { color: var(--ink-3); border-color: var(--ink-3); border-style: dashed; opacity: .55; transform: rotate(0); }

.card h2.h { font-size: 1.1rem; margin: 18px 0 6px; display: flex; align-items: center; gap: 8px; }
.card h2.h:first-child { margin-top: 0; }
.group-label { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin: 12px 0 2px; }
ul.ings { list-style: none; padding: 0; margin: 0; }
ul.ings li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); cursor: pointer; align-items: flex-start; }
ul.ings li .box { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--ink-3); border-radius: 5px; margin-top: 2px; display: grid; place-items: center; }
ul.ings li.done { color: var(--ink-3); text-decoration: line-through; }
ul.ings li.done .box { background: var(--green); border-color: var(--green); }
ul.ings li.done .box::after { content: '✓'; color: #fff; font-size: .75rem; }
ol.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; }
ol.steps li { counter-increment: s; display: flex; gap: 12px; padding: 9px 0; cursor: pointer; }
ol.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 600; display: grid; place-items: center; font-size: .9rem; }
ol.steps li.done { color: var(--ink-3); }
ol.steps li.done::before { background: var(--green); color: #fff; content: '✓'; }
.tips { background: #fbf5e6; border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 14px; }
.tips p { margin: 4px 0; }
.story { font-family: var(--serif); font-style: italic; color: var(--ink-2); white-space: pre-wrap; }

.notes { margin-top: 18px; }
.note { font-family: var(--hand); font-size: 1.45rem; line-height: 1.25; color: #23439a; padding: 6px 0 4px; border-bottom: 1px solid var(--rule); position: relative; }
.note .by { font-family: var(--sans); font-size: .72rem; color: var(--ink-3); display: block; }
.note button { position: absolute; right: 0; top: 4px; }
.note-input { font-family: var(--hand); font-size: 1.4rem; color: #23439a; border: 0; border-bottom: 2px solid var(--rule); background: transparent; width: 100%; padding: 6px 2px; outline: none; }

.banner { background: #fff6df; border: 1px solid #f0dca6; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.banner.red { background: var(--red-soft); border-color: #eec0b4; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.cooklog { font-size: .9rem; color: var(--ink-2); }
.stars { color: var(--gold); letter-spacing: 1px; }

/* ---------- lists ---------- */
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list > * { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.list > *:last-child { border-bottom: 0; }
.list a { color: inherit; text-decoration: none; }
.list img.t { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; }
.bar { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.check { width: 24px; height: 24px; flex: none; accent-color: var(--green); }
.shop-item.checked .grow { text-decoration: line-through; color: var(--ink-3); }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 150px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; box-shadow: var(--shadow); white-space: normal; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.assistant { align-self: flex-start; background: var(--card); border-bottom-left-radius: 4px; }
.msg.assistant p { margin: 0 0 8px; }
.msg.assistant p:last-child { margin-bottom: 0; }
.msg.assistant ul, .msg.assistant ol { margin: 4px 0 8px; padding-left: 20px; }
.msg.assistant a.recipe-link { display: inline-flex; align-items: center; gap: 4px; background: var(--red-soft); padding: 0 8px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.composer {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 30%);
  padding: 18px 12px 10px; z-index: 15;
}
.composer .inner { max-width: 880px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; max-height: 140px; border-radius: 22px; padding: 11px 16px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- cook mode ---------- */
.cook { position: fixed; inset: 0; z-index: 60; background: #1f1c19; color: #f6efe3; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.cook header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.cook header h2 { flex: 1; font-size: 1.05rem; color: #d9cfbf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook .iconbtn { color: #f6efe3; }
.cook .iconbtn:hover { background: #3a342e; }
.cook .stepwrap { flex: 1; overflow-y: auto; padding: 10px 22px; display: flex; flex-direction: column; justify-content: center; }
.cook .stepno { color: var(--red-2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.cook .steptext { font-family: var(--serif); font-size: clamp(1.45rem, 5.2vw, 2.3rem); line-height: 1.35; margin-top: 10px; }
.cook .timers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.cook .tbtn { border: 1px solid #5a5148; background: #2c2723; color: #f6efe3; border-radius: 99px; padding: 8px 14px; cursor: pointer; font-size: 1rem; }
.cook .running { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px; }
.cook .running .tbtn { background: var(--green); border-color: var(--green); font-variant-numeric: tabular-nums; }
.cook .running .tbtn.ring { background: var(--red); border-color: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.cook nav { display: flex; gap: 10px; padding: 12px; }
.cook nav button { flex: 1; min-height: 60px; border-radius: 14px; border: 0; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.cook nav .prev { background: #3a342e; color: #f6efe3; }
.cook nav .next { background: var(--red); color: #fff; }
.cook .drawer { background: #2a2622; max-height: 55vh; overflow-y: auto; padding: 8px 18px 14px; border-top: 1px solid #3d3631; }
.cook .drawer ul.ings li { border-color: #3d3631; }
.cook .drawer .group-label { color: var(--red-2); }
.progress { height: 4px; background: #3a342e; }
.progress i { display: block; height: 100%; background: var(--red); transition: width .25s; }

/* ---------- dialogs, toast ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; max-width: min(520px, 94vw); width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(30, 22, 15, .45); }
dialog .dbody { padding: 20px; }
dialog h2 { font-size: 1.25rem; margin-bottom: 12px; }
dialog .dfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 18px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .92); display: grid; place-items: center; overflow: auto; }
.lightbox img { max-width: 100vw; max-height: none; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); z-index: 90;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; box-shadow: var(--shadow); max-width: 92vw; font-size: .92rem;
  animation: up .2s ease-out;
}
@keyframes up { from { transform: translate(-50%, 10px); opacity: 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .big { font-size: 2.5rem; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 60px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; margin-bottom: calc(-1 * var(--tabbar)); }
.auth .card { padding: 28px 24px; width: 100%; max-width: 400px; }
.auth .logo { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 12px; }
.auth h1 { text-align: center; font-size: 1.7rem; }
.auth p.lead { text-align: center; color: var(--ink-2); margin: 6px 0 20px; }

/* ---------- import ---------- */
.drop { border: 2px dashed var(--ink-3); border-radius: var(--radius); padding: 28px 16px; text-align: center; background: var(--card); cursor: pointer; }
.drop.over { border-color: var(--red); background: var(--red-soft); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 10px; }
.thumbs img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 99px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 99px; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 500; }
.status { font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.status.queued, .status.working { background: #e8eef8; color: #2f4f86; }
.status.done { background: var(--green-soft); color: var(--green); }
.status.failed, .status.not_recipe { background: var(--red-soft); color: var(--red); }

table.usage { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.usage td, table.usage th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- print ---------- */
.print-book { display: none; }
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  .topbar, .tabbar, .no-print, .composer, .toast { display: none !important; }
  .print-book { display: block; }
  .wrap { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; }
  .card.index::before { display: none; }
  .photos img { height: 60mm; box-shadow: none; }
  ul.ings li { cursor: default; padding: 2px 0; border: 0; }
  ul.ings li .box { width: 11px; height: 11px; margin-top: 5px; }
  ol.steps li { padding: 3px 0; }
  ol.steps li::before { width: 20px; height: 20px; font-size: 9pt; }
  .pb-recipe { break-inside: avoid-page; page-break-before: always; }
  .pb-title { page-break-after: always; display: flex !important; }
  a { color: inherit; text-decoration: none; }
}
.pb-title { min-height: 90vh; flex-direction: column; align-items: center; justify-content: center; text-align: center; display: none; }
.pb-title h1 { font-size: 34pt; }
.pb-recipe .twocol { display: grid; grid-template-columns: 38% 1fr; gap: 18px; }
@media (max-width: 600px) { .pb-recipe .twocol { grid-template-columns: 1fr; } }
.pb-chapter { page-break-before: always; padding-top: 30vh; text-align: center; }
@media (min-width: 760px) {
  .twocol-recipe { display: grid; grid-template-columns: minmax(240px, 38%) 1fr; gap: 28px; align-items: start; }
  .twocol-recipe .h { margin-top: 0; }
}
@media print { .twocol-recipe { display: grid; grid-template-columns: 38% 1fr; gap: 18px; } .stamp.off { display: none; } }
/* fixes after first test */
.drop { display: block; }
.list svg { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.card.index .title-block { padding-right: 0; } .card.index .title-block h1, .card.index .title-block .subtitle { padding-right: 112px; }
.stamp { top: 22px; right: 12px; width: 100px; padding: 5px 4px 4px; font-size: .82rem; }
.stamp small { font-size: .58rem; white-space: normal; }
@media (max-width: 420px) { .card.index h1 { font-size: 1.5rem; } }
.rcard .thumb.blank { aspect-ratio: 16 / 9; }
#quick { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
#quick::-webkit-scrollbar { display: none; }
