:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0eee7;
  --border: #e2ded3;
  --text: #1d1c19;
  --muted: #6b675d;
  --accent: #177e6a;
  --accent-soft: #dcefe9;
  --good: #1f7a4d;
  --good-soft: #dff0e5;
  --bad: #b4372b;
  --bad-soft: #f8e1dd;
  --mixed: #a26a06;
  --mixed-soft: #f7ecd2;
  --neutral: #6b675d;
  --neutral-soft: #ebe8e0;
  --ev-strong: #1f7a4d;
  --ev-moderate: #3d7ab8;
  --ev-limited: #a26a06;
  --ev-mechanistic: #8a6bb0;
  --shadow: 0 1px 2px rgba(30, 25, 10, .06), 0 4px 16px rgba(30, 25, 10, .05);
  --radius: 12px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14150f;
    --surface: #1c1d17;
    --surface-2: #24251e;
    --border: #34352c;
    --text: #ebe9e1;
    --muted: #a19d90;
    --accent: #4fc2a6;
    --accent-soft: #19362f;
    --good: #5cc98e;
    --good-soft: #1a3324;
    --bad: #f0806f;
    --bad-soft: #3d1f1a;
    --mixed: #e0b04d;
    --mixed-soft: #3a2f15;
    --neutral: #a19d90;
    --neutral-soft: #2c2d25;
    --ev-strong: #5cc98e;
    --ev-moderate: #74aee6;
    --ev-limited: #e0b04d;
    --ev-mechanistic: #b89ae0;
    --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: 15px/1.6 var(--sans);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 1.6em; }
h3 { font-size: 1.1rem; margin-top: 1.2em; }
p { margin: 0 0 .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* gate */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.gate-card {
  width: min(360px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow); text-align: center;
}
.gate-card h1 { margin-top: 12px; }
.gate-card input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); margin: 8px 0 12px;
}
.gate-card button, .btn {
  display: inline-block; padding: 10px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 600;
}
.gate-card button { width: 100%; }
.gate-error { color: var(--bad); margin: 12px 0 0; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.logo-mark {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--accent); position: relative; vertical-align: -5px; margin-right: 8px;
}
.logo-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 12px;
  background: #c2410c; transform: translate(-50%, -50%) rotate(25deg); border-radius: 3px;
}
.logo-mark.big { width: 48px; height: 48px; border-width: 5px; margin: 0; }
.logo-mark.big::after { width: 10px; height: 26px; border-radius: 5px; }

/* layout */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px;
  padding: 10px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.brand { font-family: var(--serif); font-weight: 650; font-size: 1.15rem; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
nav a.active { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; outline: none; }
.footer { max-width: 1120px; margin: 0 auto; padding: 16px 24px 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }

@media (max-width: 760px) {
  .topbar { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .nav-toggle { display: block; }
  nav { display: none; width: 100%; flex-direction: column; }
  nav.open { display: flex; }
  main { padding: 20px 16px 40px; }
  .footer { padding: 16px; }
  h1 { font-size: 1.6rem; }
}

/* common */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.two-col { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 760px; }
.hero { margin-bottom: 24px; }

.tabs { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; cursor: pointer;
  color: var(--muted); font-weight: 500;
}
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted);
  border: 1px solid transparent; white-space: nowrap;
}
button.chip { cursor: pointer; }
button.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
a.chip:hover { text-decoration: none; border-color: var(--border); }
.dir-beneficial { background: var(--good-soft); color: var(--good); }
.dir-harmful { background: var(--bad-soft); color: var(--bad); }
.dir-mixed { background: var(--mixed-soft); color: var(--mixed); }
.dir-neutral { background: var(--neutral-soft); color: var(--neutral); }
.ev { background: transparent; border: 1px solid currentColor; }
.ev-strong { color: var(--ev-strong); }
.ev-moderate { color: var(--ev-moderate); }
.ev-limited { color: var(--ev-limited); }
.ev-mechanistic { color: var(--ev-mechanistic); }

.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: block; }
.dots.beneficial i.on { background: var(--good); }
.dots.harmful i.on { background: var(--bad); }
.dots.mixed i.on { background: var(--mixed); }
.dots.neutral i.on { background: var(--neutral); }

/* levers chart */
.levers h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.lever {
  display: grid; grid-template-columns: minmax(120px, 210px) 1fr auto; gap: 10px; align-items: center;
  padding: 6px 8px; border-radius: 8px; color: var(--text); cursor: pointer;
}
.lever:hover { background: var(--surface-2); text-decoration: none; }
.lever .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lever .bar { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.lever .bar span { display: block; height: 100%; border-radius: 6px; }
.lever .bar.beneficial span { background: var(--good); }
.lever .bar.harmful span { background: var(--bad); }
.lever .bar.mixed span { background: var(--mixed); }
.lever .meta { display: flex; gap: 6px; align-items: center; }
.lever .ev-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.lever .ev-dot.filled { background: currentColor; }
@media (max-width: 520px) { .lever { grid-template-columns: 1fr 70px; } .lever .meta { display: none; } }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin: 8px 0 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* explore */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.search {
  flex: 1 1 240px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
}
select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.fcard { display: flex; flex-direction: column; gap: 8px; color: var(--text); transition: border-color .15s; }
.fcard:hover { border-color: var(--accent); text-decoration: none; }
.fcard h3 { margin: 0; font-size: 1.05rem; }
.fcard p { margin: 0; color: var(--muted); font-size: .9rem; }
.fcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.scope-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.count { color: var(--muted); font-size: .9rem; }

/* factor page */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.factor-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.impact-table { display: grid; grid-template-columns: auto auto; gap: 4px 14px; font-size: .9rem; align-items: center; }
.entry { margin-top: 22px; }
.entry-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.entry-title h2 { margin: 0; }
.headline { font-size: 1.05rem; font-weight: 500; }
.dose {
  background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; margin: 14px 0;
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px;
}
.dose dt { font-weight: 600; color: var(--accent); font-size: .85rem; padding-top: 1px; }
.dose dd { margin: 0; }
.dose .title { grid-column: 1 / -1; font-family: var(--serif); font-weight: 650; font-size: 1.05rem; }
@media (max-width: 560px) { .dose { grid-template-columns: 1fr; } .dose dt { margin-top: 6px; } }
.section-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 16px 0 4px; }
.caveat { border-left: 3px solid var(--mixed); padding: 4px 0 4px 12px; }
.refs { padding-left: 0; list-style: none; font-size: .88rem; }
.refs li { padding: 8px 0; border-top: 1px solid var(--border); }
.refs .finding { color: var(--muted); display: block; }
.ref-type { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); margin-right: 6px; }
.kn-table { border-collapse: collapse; font-size: .9rem; }
.kn-table td { padding: 4px 14px 4px 0; border-bottom: 1px solid var(--border); }
.related { display: flex; flex-wrap: wrap; gap: 6px; }

.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.small { padding: 6px 12px; font-size: .85rem; }

/* compare */
.cmp-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .9rem; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cmp thead th { background: var(--surface-2); position: sticky; top: 0; }
.cmp tbody th { width: 150px; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.cmp .x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0 0 0 6px; font-size: 1rem; }
.picker { position: relative; flex: 1 1 280px; }
.picker-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; margin-top: 4px;
}
.picker-list button { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; cursor: pointer; gap: 8px; }
.picker-list button:hover, .picker-list button.hl { background: var(--surface-2); }
.hbar { display: grid; grid-template-columns: minmax(100px, 200px) 1fr 90px; gap: 10px; align-items: center; margin: 4px 0; font-size: .9rem; }
.hbar .bar { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.hbar .bar span { display: block; height: 100%; background: var(--accent); border-radius: 7px; }
.notice { background: var(--mixed-soft); border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin: 12px 0; }

/* plan */
.q { margin-bottom: 18px; }
.q-label { font-weight: 600; margin-bottom: 8px; }
.q-help { font-size: .85rem; color: var(--muted); margin: -4px 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.opts button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.plan-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.plan-item .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--accent-soft); color: var(--accent); }
.plan-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.plan-item .why { font-size: .85rem; color: var(--muted); }
.stepper { display: flex; gap: 6px; margin-bottom: 18px; }
.stepper i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.stepper i.on { background: var(--accent); }

/* read */
.prose { max-width: 760px; }
.prose h1 { font-size: 1.9rem; }
.prose h2 { border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; font-size: .88rem; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.prose blockquote { margin: 0; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose li { margin-bottom: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mech-card h3 { margin-top: 0; }
.kpi-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 6px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; flex: 0 1 140px; min-width: 0; }
.kpi b { display: block; font-size: 1.4rem; font-family: var(--serif); }
.kpi span { font-size: .8rem; color: var(--muted); }
.two-col > * { min-width: 0; }
#stack-items .chip, .plan-item .chips .chip { white-space: normal; text-align: left; }
#stack-add { width: 100%; max-width: 100%; }

/* ---------- timing ---------- */
.timing .chip.shape-slow-build, .timing .chip.shape-lasting { background: var(--accent-soft); color: var(--accent); }
.chip.basis-measured { background: var(--good-soft); color: var(--good); }
.chip.basis-extrapolated { background: var(--mixed-soft); color: var(--mixed); }
.chip.basis-unknown { background: var(--neutral-soft); color: var(--neutral); }
.tstrip { --c: var(--good); --c-soft: var(--good-soft); margin: 14px 0 4px; display: grid; gap: 6px; }
.tstrip.harm { --c: var(--bad); --c-soft: var(--bad-soft); }
.trow { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; }
.tlabel { font-size: .78rem; color: var(--muted); font-weight: 600; }
.ttrack { position: relative; height: 18px; background: var(--surface-2); border-radius: 5px; }
.trow.axis .ttrack { background: none; height: 16px; }
.trow.axis .ttrack span { position: absolute; transform: translateX(-50%); font-size: .7rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trow.axis .ttrack span:first-child { transform: none; }
.tbar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }
.tbar.onset { background: var(--c-soft); border: 1.5px solid var(--c); top: 2px; bottom: 2px; }
.tbar.full { background: var(--c); }
.tbar.full.fade { background: linear-gradient(90deg, var(--c), transparent); }
.tbar.after { background: repeating-linear-gradient(135deg, var(--c) 0 4px, var(--c-soft) 4px 8px); }
.tnone { position: absolute; left: 8px; top: 0; font-size: .72rem; color: var(--muted); line-height: 18px; }
.tlegend { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 2px 0 0; }
.tlegend .key { display: inline-block; width: 14px; height: 9px; border-radius: 3px; }
.tlegend .key.onset { background: var(--good-soft); border: 1.5px solid var(--good); }
.tlegend .key.full { background: var(--good); margin-left: 6px; }
.tlegend .key.after { background: repeating-linear-gradient(135deg, var(--good) 0 3px, var(--good-soft) 3px 6px); margin-left: 6px; }
@media (max-width: 560px) { .trow { grid-template-columns: 1fr; gap: 2px; } .trow.axis .tlabel { display: none; } }

.tl-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding: 14px 18px; margin: 18px 0; }
.tl-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; flex: 1 1 320px; font-size: .9rem; color: var(--muted); }
.tl-days input { flex: 1 1 180px; accent-color: var(--accent); }
.tl-days output { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; min-width: 9em; }
.gantt { display: grid; gap: 4px; margin: 8px 0 6px; }
.grow summary, .gaxis { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px; align-items: center; }
.grow summary { cursor: pointer; list-style: none; padding: 3px 0; }
.grow summary::-webkit-details-marker { display: none; }
.gname { font-size: .84rem; line-height: 1.3; }
.grow.past .gname { color: var(--muted); }
.grow.now .gname { font-weight: 650; }
.gtrack { position: relative; height: 20px; background: var(--surface-2); border-radius: 5px; }
.gtrack i { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: var(--accent); }
.grow.past .gtrack i { background: var(--neutral); opacity: .45; }
.grow.ahead .gtrack i { background: var(--accent-soft); border: 1.5px solid var(--accent); }
.gtrack i.clipped { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gaxis .gtrack { background: none; height: 34px; }
.gaxis .gtrack span { position: absolute; top: 14px; transform: translateX(-50%); font-size: .7rem; color: var(--muted); white-space: nowrap; }
.gaxis .gtrack span:last-child { transform: translateX(-100%); }
.gmark { position: absolute; top: -2px; bottom: -2px; border-left: 2px solid var(--bad); }
.gmark.now { top: 0; bottom: auto; height: 12px; }
.gmark.now em { position: absolute; top: -1px; left: 4px; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--bad); }
.gdetail { padding: 4px 0 10px; font-size: .92rem; }
.gdetail p { margin: 4px 0; }
.tl-now { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.tl-list { list-style: none; padding: 0; margin: 0; }
.tl-item { padding: 8px 0; border-top: 1px solid var(--border); }
.tl-item p { margin: 3px 0 0; }
.tl-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.chip.intime { background: var(--good-soft); color: var(--good); }
.chip.late { background: var(--mixed-soft); color: var(--mixed); }
.tl-lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 18px 0; }
.tl-lessons .card { padding: 14px 16px; }
.tl-lessons h3 { margin: 0 0 6px; font-size: 1rem; }
.tl-lessons p { margin: 0; font-size: .9rem; color: var(--muted); }
.card.entry > h2:first-child { margin-top: 0; }
.chips a.chip, .related .chip { white-space: normal; max-width: 100%; }

/* ---------- audit ---------- */
.chip.verdict-holds, .chip.verdict-strengthened { background: var(--good-soft); color: var(--good); }
.chip.verdict-weakened { background: var(--mixed-soft); color: var(--mixed); }
.chip.verdict-overturned { background: var(--bad-soft); color: var(--bad); }
.chip.verdict-unclear { background: var(--neutral-soft); color: var(--neutral); }
.audit-weakened { border-left: 4px solid var(--mixed); }
.audit-overturned { border-left: 4px solid var(--bad); }
.audit-unclear { border-left: 4px solid var(--neutral); }

/* recipes */
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; margin: 12px 0; }
.filters select { margin-left: 6px; font: inherit; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); max-width: 100%; }
.how-list { padding-left: 18px; } .how-list li { margin: 8px 0; }
.chip.cx-easy { background: var(--good-soft); color: var(--good); }
.chip.cx-medium { background: var(--mixed-soft); color: var(--mixed); }
.chip.cx-involved { background: var(--bad-soft); color: var(--bad); }
.rbar-group { --bar: var(--accent); }
.rbar-group.g-fertility { --bar: var(--ev-mechanistic); }
.rbar-row { display: block; }
.rbar-row > summary, div.rbar-row { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 2rem; gap: 10px; align-items: center; padding: 4px 0; }
.rbar-row > summary { cursor: pointer; list-style: none; }
.rbar-row > summary::-webkit-details-marker { display: none; }
.rbar-row > p { margin: 2px 0 8px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
.rbar-track { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.rbar-fill { display: block; height: 100%; background: var(--bar); border-radius: 6px 0 0 6px; }
.rbar-num { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.rbar-label { font-size: .9rem; }
.rbars.full .rbar-group + .rbar-group { margin-top: 10px; }
.rbars.mini { display: grid; gap: 2px; }
.rbars.mini div.rbar-row { grid-template-columns: 4.6rem 1fr 1.2rem; gap: 6px; padding: 1px 0; }
.rbars.mini .rbar-label, .rbars.mini .rbar-num { font-size: .75rem; color: var(--muted); }
.rbars.mini .rbar-track { height: 7px; }
.rbars.mini .rbar-group.g-fertility { border-top: 1px dashed var(--border); padding-top: 3px; margin-top: 2px; }
.ingredients { padding-left: 18px; } .ingredients li { margin: 4px 0; }
.steps { padding-left: 20px; } .steps li { margin: 8px 0; line-height: 1.5; }
table.nut { border-collapse: collapse; width: 100%; max-width: 420px; }
table.nut td { padding: 3px 6px; border-bottom: 1px solid var(--border); }
table.nut td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .rbar-row > summary, div.rbar-row { grid-template-columns: minmax(0, 8rem) 1fr 1.6rem; } }
.caveat-card { border-left: 3px solid var(--mixed); }
.recipe-body { grid-template-columns: 2fr 3fr; margin: 16px 0; }
@media (max-width: 860px) { .recipe-body { grid-template-columns: 1fr; } }

/* foods heat table */
.filters input[type=search] { margin-left: 6px; font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 12rem; max-width: 60vw; }
.food-table-wrap { overflow-x: auto; }
.food-table { border-collapse: separate; border-spacing: 2px; width: 100%; }
.food-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; padding: 4px 2px; }
.food-table th:first-child { text-align: left; }
.food-table th a { color: inherit; }
.food-table th.sorted a { color: var(--accent); }
.food-table td.fname { padding: 6px 8px 6px 0; min-width: 9rem; }
.food-table td.fname a { font-weight: 600; }
.heat { text-align: center; width: 3.2rem; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 6px; }
.heat.na { color: var(--muted); background: var(--surface-2); }
.heat.h1 { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); }
.heat.h2 { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); color: var(--text); }
.heat.h3 { background: color-mix(in srgb, var(--accent) 32%, var(--surface)); color: var(--text); }
.heat.h4 { background: color-mix(in srgb, var(--accent) 40%, var(--surface)); color: var(--text); }
.heat.h5 { background: color-mix(in srgb, var(--accent) 48%, var(--surface)); color: var(--text); }
.heat.h6 { background: color-mix(in srgb, var(--accent) 56%, var(--surface)); color: var(--text); }
.heat.h7 { background: color-mix(in srgb, var(--accent) 64%, var(--surface)); color: #fff; }
.heat.h8 { background: color-mix(in srgb, var(--accent) 72%, var(--surface)); color: #fff; }
.heat.h9 { background: color-mix(in srgb, var(--accent) 80%, var(--surface)); color: #fff; }
.heat.h10 { background: color-mix(in srgb, var(--accent) 88%, var(--surface)); color: #fff; }
@media (max-width: 560px) { .heat { width: 2.1rem; font-size: .85rem; } .food-table th { font-size: .62rem; letter-spacing: 0; } .food-table td.fname { min-width: 7rem; font-size: .9rem; } }
.chip.pending { background: var(--mixed-soft); color: var(--mixed); }
.pending-dot { color: var(--mixed); font-size: .7rem; vertical-align: middle; }
