/* 色はロゴから: バナー地 #43546b / バナーの赤 #e0281e / エンブレムの茶 #a08a78・紺 #1b1d5c */
:root {
  --brand: #43546b;
  --brand-deep: #334155;
  --on-brand: #ffffff;
  --accent: #d92d20;
  --accent-soft: #fdecea;
  --taupe: #8c7766;
  --bg: #f2f3f5;
  --surface: #ffffff;
  --text: #1d2430;
  --muted: #677285;
  --line: #e3e6eb;
  --mark: #ffe680;
  --shadow: 0 1px 2px rgba(29, 36, 48, .06), 0 4px 16px rgba(29, 36, 48, .06);
  --fs: 17px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2e3a4b;
    --brand-deep: #232d3a;
    --accent: #ff6b5e;
    --accent-soft: #3a2422;
    --taupe: #c2ad9c;
    --bg: #12161c;
    --surface: #1b212a;
    --text: #e8ebf0;
    --muted: #9aa4b4;
    --line: #2b333f;
    --mark: #6b5a12;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2e3a4b;
  --brand-deep: #232d3a;
  --accent: #ff6b5e;
  --accent-soft: #3a2422;
  --taupe: #c2ad9c;
  --bg: #12161c;
  --surface: #1b212a;
  --text: #e8ebf0;
  --muted: #9aa4b4;
  --line: #2b333f;
  --mark: #6b5a12;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--fs)/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  letter-spacing: .01em;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
a { color: var(--accent); }

/* ---------- 上部バー ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 6px;
  min-height: 56px;
  padding: env(safe-area-inset-top) 8px 0 12px;
  background: var(--brand); color: var(--on-brand);
}
.bar h1 {
  flex: 1; margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.emblem {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; padding: 2px; display: block;
}
.emblem[hidden] { display: none; }
.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border: 0; border-radius: 22px;
  background: transparent; color: var(--on-brand); font-weight: 700; cursor: pointer;
}
.icon-btn:active { background: rgba(255, 255, 255, .16); }
.icon-btn[hidden] { display: none; }
#back { margin-left: -6px; }

/* ---------- 検索 ---------- */
.search-wrap {
  position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 9;
  padding: 0 16px 12px; background: var(--brand);
}
.search {
  position: relative; max-width: 728px; margin: 0 auto;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
#q {
  width: 100%; height: 46px; padding: 0 14px 0 42px;
  border: 0; border-radius: 23px;
  background: var(--surface); color: var(--text);
  font-size: 16px; /* iOSのズーム防止 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  -webkit-appearance: none; appearance: none;
}
#q::placeholder { color: var(--muted); }
#q:focus { outline: 2px solid var(--accent); outline-offset: 0; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 56px; }

/* ---------- ホーム ---------- */
.hero {
  margin: 0 -16px 20px; padding: 4px 16px 24px;
  background: var(--brand);
  border-radius: 0 0 24px 24px;
}
.hero img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; border-radius: 14px; }
.section-label {
  display: flex; align-items: center; gap: 8px;
  margin: 24px 4px 10px; font-size: .78em; font-weight: 700; letter-spacing: .12em; color: var(--taupe);
}
.section-label::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--accent); }

.card {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  margin: 0 0 18px; overflow: hidden;
  border: 1px solid var(--line);
}
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 14px; border-bottom: 1px solid var(--line);
}
.card-icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.card-icon.acs { background: var(--accent); }
.card-logo { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 2px; }
.card-head h2 { margin: 0; font-size: 1.02em; line-height: 1.4; }
.card-head .meta { margin: 2px 0 0; color: var(--muted); font-size: .75em; line-height: 1.4; }

.list { list-style: none; margin: 0; padding: 4px 0; }
.list a {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 16px;
  color: var(--text); text-decoration: none;
}
.list li + li a { border-top: 1px solid var(--line); }
.list a:active { background: var(--accent-soft); }
.list a::after {
  content: ""; margin-left: auto; flex: none;
  width: 7px; height: 7px; border: solid var(--muted); border-width: 2px 2px 0 0; transform: rotate(45deg);
  opacity: .6;
}
.num {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); color: var(--brand); font-size: .78em; font-weight: 800;
  border: 1px solid var(--line);
}
.list .label { line-height: 1.45; }
.list .sub { display: block; color: var(--muted); font-size: .75em; }
.tag {
  flex: none; font-size: .68em; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}

/* ---------- 本文 ---------- */
.doc-head {
  margin: 0 -16px; padding: 4px 20px 22px;
  background: var(--brand); color: #fff;
  border-radius: 0 0 24px 24px;
}
.doc-head .from { margin: 0; font-size: .75em; opacity: .75; letter-spacing: .04em; }
.doc-head h2 { margin: 4px 0 0; font-size: 1.35em; line-height: 1.4; }
.doc-head .author { display: inline-block; margin: 10px 0 0; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .75em; }

/* 色の意味（全ページ共通）: red=手術・行動 / teal=保存・OK / amber=注意・上級医と相談 / gray=他科へ / navy=基本 */
:root {
  --red: #d92d20;   --red-soft: #fdecea;
  --teal: #0f7b72;  --teal-soft: #e2f3f1;
  --amber: #b45309; --amber-soft: #fdf1e2;
  --gray: #55657a;  --gray-soft: #e9edf2;
  --navy: #43546b;  --navy-soft: #e7ebf1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #ff7b6e;   --red-soft: #3a2220;
    --teal: #4fd1c0;  --teal-soft: #15302d;
    --amber: #f2a654; --amber-soft: #352816;
    --gray: #a8b4c4;  --gray-soft: #262d37;
    --navy: #9fb3cf;  --navy-soft: #222b38;
  }
}
:root[data-theme="dark"] {
  --red: #ff7b6e;   --red-soft: #3a2220;
  --teal: #4fd1c0;  --teal-soft: #15302d;
  --amber: #f2a654; --amber-soft: #352816;
  --gray: #a8b4c4;  --gray-soft: #262d37;
  --navy: #9fb3cf;  --navy-soft: #222b38;
}
.tone-red   { --c: var(--red);   --c-soft: var(--red-soft); }
.tone-teal  { --c: var(--teal);  --c-soft: var(--teal-soft); }
.tone-amber { --c: var(--amber); --c-soft: var(--amber-soft); }
.tone-gray  { --c: var(--gray);  --c-soft: var(--gray-soft); }
.tone-navy  { --c: var(--navy);  --c-soft: var(--navy-soft); }

.digest { margin-top: 16px; }
.digest mark, .orig mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.blk-h {
  display: flex; align-items: center; gap: 8px;
  margin: 28px 2px 10px; font-size: 1.02em; line-height: 1.45; color: var(--text);
}
.blk-h::before { content: ""; flex: none; width: 4px; height: 1.1em; border-radius: 2px; background: var(--accent); }
.digest > .blk-h:first-child { margin-top: 8px; }
.lead { margin: 6px 2px 12px; color: var(--muted); font-size: .88em; line-height: 1.7; }

ul.dots { list-style: none; margin: 6px 0 0; padding: 0; }
ul.dots li { position: relative; margin: 5px 0; padding-left: 16px; line-height: 1.6; }
ul.dots li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--accent));
}

/* 強調ボックス */
.callout {
  margin: 12px 0; padding: 12px 14px; border-radius: 14px;
  background: var(--c-soft); border-left: 4px solid var(--c);
  font-size: .95em; line-height: 1.7;
}
.callout p { margin: 0; }
.callout p + p, .callout p + ul { margin-top: 4px; }
.callout-title { font-weight: 800; color: var(--c); }

/* カード */
.cards { display: grid; gap: 10px; margin: 12px 0; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .cards.cols-2 { grid-template-columns: 1fr; } }
.mini {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow); line-height: 1.65; font-size: .95em;
}
.mini[class*="tone-"] { border-top: 3px solid var(--c); }
.mini-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.mini-title { margin: 0; font-weight: 800; line-height: 1.45; }
.mini-meta { margin: 2px 0 0; color: var(--c, var(--accent)); font-size: .82em; font-weight: 700; }
.mini-text { margin: 4px 0 0; }
.badge {
  flex: none; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 8px; background: var(--c); color: #fff; font-size: .78em; font-weight: 800;
}

/* タイムライン */
.timeline { list-style: none; margin: 12px 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; gap: 14px; margin: 0 0 12px; }
.tl-time {
  position: relative; z-index: 1; flex: none; width: 64px; padding: 4px 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .85em; text-align: center; height: fit-content;
}
.tl-body { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .93em; line-height: 1.65; }
.tl-body p { margin: 0; }
.tl-title { font-weight: 800; margin-bottom: 2px !important; }

/* 手順 */
.steps { list-style: none; margin: 12px 0; padding: 0; counter-reset: s; }
.steps li {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 8px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .95em; line-height: 1.65;
}
.steps li[class*="tone-"] { background: var(--c-soft); border-color: transparent; }
.steps li p { margin: 0; }
.step-no {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: .78em; font-weight: 800;
}
:root[data-theme="dark"] .step-no { color: #12161c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-no { color: #12161c; } }
.steps li[class*="tone-"] .step-no { background: var(--c); }
.step-title { font-weight: 800; }

/* 2列の表 */
.kv { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.kv-row { display: flex; gap: 12px; padding: 10px 14px; font-size: .93em; line-height: 1.6; }
.kv-row + .kv-row { border-top: 1px solid var(--line); }
.kv-k { flex: 0 0 42%; font-weight: 700; color: var(--text); }
.kv-v { flex: 1; color: var(--text); }
.kv-row:only-child .kv-k, .kv-k:only-child { flex: 1; }

/* タグ */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { padding: 4px 12px; border-radius: 999px; background: var(--c); color: #fff; font-size: .85em; font-weight: 700; }

/* 曜日 */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 12px 0; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; background: var(--c); color: #fff; }
.day-d { font-size: 1.05em; font-weight: 800; }
.day-who { font-size: .62em; font-weight: 700; line-height: 1.3; text-align: center; }
:root[data-theme="dark"] .day { color: #12161c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .day { color: #12161c; } }

/* 電話 */
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; padding: 14px; border-radius: 16px; background: var(--brand-deep); color: #fff; }
.phone { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.phone span { font-size: .78em; opacity: .8; }
.phone strong { font-size: 1.8em; letter-spacing: .06em; line-height: 1.2; }
.phones-note { grid-column: 1 / -1; margin: 0; font-size: .82em; line-height: 1.6; opacity: .9; }

/* 判断フロー：はい → 右、いいえ → 下 */
.flow { margin: 14px 0; }
.fl-start, .fl-end {
  padding: 12px 14px; border-radius: 14px; font-weight: 800; line-height: 1.55; font-size: .95em;
}
.fl-start { background: var(--brand); color: #fff; text-align: center; }
.fl-end { background: var(--c, var(--navy)); color: #fff; }
.fl-end p { margin: 0; }
.fl-end ul.dots { font-weight: 500; font-size: .92em; }
.fl-end ul.dots li::before { background: #fff; }
:root[data-theme="dark"] .fl-end { color: #12161c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fl-end { color: #12161c; } :root:not([data-theme="light"]) .fl-end ul.dots li::before { background: #12161c; } }
.fl-node { position: relative; }
.fl-q {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px; background: var(--surface);
  border: 2px solid var(--line); box-shadow: var(--shadow); font-size: .95em; line-height: 1.6;
}
.fl-q p { margin: 0; font-weight: 700; }
.fl-q ul.dots { font-size: .92em; }
.fl-q-mark {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: .8em;
}
.fl-yes { display: flex; align-items: stretch; gap: 0; margin: 0 0 0 22px; padding-top: 8px; border-left: 2px solid var(--line); }
.fl-label {
  flex: none; align-self: center; position: relative; margin-right: 8px; padding: 2px 8px 2px 10px;
  font-size: .75em; font-weight: 800; color: var(--muted); white-space: nowrap;
}
.fl-label::after { content: "→"; margin-left: 4px; }
.fl-out {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px;
  background: var(--c-soft); border-left: 4px solid var(--c); font-size: .92em; line-height: 1.6;
}
.fl-out > p { margin: 0; font-weight: 700; }
.fl-sub { margin-top: 8px; display: grid; gap: 6px; }
.fl-br { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.fl-br-label { font-size: .78em; font-weight: 800; color: var(--muted); }
.fl-br-label::after { content: " →"; }
.fl-br-out { font-weight: 700; color: var(--c); }
.fl-down {
  position: relative; height: 36px; margin-left: 22px; border-left: 2px solid var(--line);
}
.fl-down::after {
  content: ""; position: absolute; left: -7px; bottom: 0;
  border: 6px solid transparent; border-top: 8px solid var(--muted); border-bottom: 0;
}
.fl-down span { position: absolute; left: 10px; top: 8px; font-size: .75em; font-weight: 800; color: var(--muted); }

/* 左右の分岐 */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.split-col { display: flex; flex-direction: column; }
.split-label { margin: 0 0 8px; padding: 8px 10px; border-radius: 12px; background: var(--c); color: #fff; font-weight: 800; text-align: center; font-size: .92em; }
:root[data-theme="dark"] .split-label { color: #12161c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .split-label { color: #12161c; } }
.split-step {
  padding: 10px 12px; border-radius: 12px; background: var(--c-soft); border-left: 4px solid var(--c);
  font-size: .86em; line-height: 1.6; font-weight: 600;
}
.split-arrow { height: 8px; }

/* 原文 */
.orig {
  margin: 24px 0 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.orig summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: .9em; color: var(--muted);
}
.orig summary::-webkit-details-marker { display: none; }
.orig summary::after { content: "＋"; font-weight: 900; color: var(--accent); }
.orig[open] summary::after { content: "−"; }
.orig-body { padding: 0 16px 16px; border-top: 1px solid var(--line); font-size: .9em; line-height: 1.75; }
.orig-title { margin: 14px 0 4px; font-weight: 800; color: var(--accent); }
.orig-body h4 { margin: 16px 0 4px; font-size: 1em; }
.orig-body p { margin: 8px 0; }
.orig-body ul { margin: 6px 0; padding-left: 1.2em; }
.orig-body li { margin: 4px 0; }
.orig-src { color: var(--muted); font-size: .85em; }
.pdf-link {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: .85em;
}
.fig { margin: 12px -16px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fig a { display: block; }
.fig img { display: block; width: 100%; height: auto; }
.fig figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 16px; font-size: .78em; color: var(--muted); background: var(--surface);
}
.fig figcaption .zoom { flex: none; color: var(--accent); font-weight: 700; }

.pager { display: flex; gap: 10px; margin-top: 16px; }
.pager a {
  flex: 1; min-width: 0; min-height: 64px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; font-size: .82em; line-height: 1.45;
}
.pager a span { display: block; color: var(--accent); font-size: .85em; font-weight: 700; }
.pager .next { text-align: right; }
.pager .spacer { flex: 1; }

/* ---------- 検索結果 ---------- */
.hint { color: var(--muted); font-size: .85em; margin: 16px 4px; }
.result .snip { display: block; color: var(--muted); font-size: .8em; line-height: 1.55; margin-top: 4px; }
.result mark { background: var(--mark); color: var(--text); border-radius: 2px; }

.foot { margin-top: 28px; color: var(--muted); font-size: .72em; text-align: center; line-height: 1.7; }
.foot img { display: block; width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: #fff; padding: 3px; opacity: .9; }

/* ---------- ページ内リンク・原本ボタン ---------- */
.xref {
  color: var(--c, var(--accent)); font-weight: 800;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.xref::after { content: " ›"; text-decoration: none; display: inline-block; }
.fl-end .xref, .fl-start .xref { color: inherit; }
.blk-h, #orig { scroll-margin-top: calc(130px + env(safe-area-inset-top)); }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: var(--mark); } 100% { background: transparent; } }

.head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.head-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px; background: #fff; color: var(--brand);
  font-size: .78em; font-weight: 800; text-decoration: none; cursor: pointer;
}
.head-btn:active { opacity: .8; }
:root[data-theme="dark"] .head-btn { background: rgba(255,255,255,.14); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .head-btn { background: rgba(255,255,255,.14); color: #fff; } }

/* ---------- 質問形式（ウィザード） ---------- */
.head-btn.primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .head-btn.primary { background: var(--accent); color: #12161c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .head-btn.primary { background: var(--accent); color: #12161c; } }
.wz-head h2 { font-size: 1.15em; }
.wz { margin-top: 16px; }
.wz-context {
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--navy-soft); color: var(--navy); font-size: .85em; font-weight: 700; line-height: 1.5;
}
.wz-card {
  padding: 18px 18px 14px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.wz-step { margin: 0 0 6px; color: var(--accent); font-size: .78em; font-weight: 800; letter-spacing: .08em; }
.wz-q { margin: 0; font-size: 1.18em; font-weight: 800; line-height: 1.55; }
.wz-card ul.dots { margin-top: 10px; font-size: .95em; }
.wz-ask { margin: 4px 2px 12px; font-size: 1.05em; font-weight: 800; }
.wz-answers, .wz-choices { display: grid; gap: 10px; margin-top: 14px; }
.wz-answers:has(.yes) { grid-template-columns: 1fr 1fr; }
.wz-btn {
  min-height: 60px; padding: 12px 16px; border-radius: 16px; cursor: pointer;
  border: 2px solid var(--navy); background: var(--surface); color: var(--text);
  font-size: 1.02em; font-weight: 800; line-height: 1.4; text-align: center;
}
.wz-btn.yes { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .wz-btn.yes { color: #12161c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wz-btn.yes { color: #12161c; } }
.wz-btn.choice { text-align: left; min-height: 56px; }
.wz-btn:active { transform: scale(.98); }

.wz-result {
  padding: 18px; border-radius: 18px; background: var(--c-soft); border: 2px solid var(--c);
}
.wz-result-label { margin: 0; color: var(--c); font-size: .78em; font-weight: 800; letter-spacing: .08em; }
.wz-result-text { margin: 4px 0 0; font-size: 1.2em; font-weight: 800; line-height: 1.5; }
.wz-disclaimer { margin: 12px 2px; color: var(--muted); font-size: .8em; line-height: 1.7; }

.wz-path { margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line); }
.wz-path-title { margin: 0 0 8px; color: var(--muted); font-size: .78em; font-weight: 800; }
.wz-path ol { margin: 0; padding: 0; list-style: none; counter-reset: p; font-size: .85em; line-height: 1.55; }
.wz-path li { margin: 6px 0; padding-left: 1.6em; position: relative; }
.wz-path li:not(.out) { counter-increment: p; }
.wz-path li:not(.out)::before { content: counter(p) "."; position: absolute; left: 0; color: var(--muted); }
.wz-path li span { display: block; color: var(--muted); }
.wz-path li strong { color: var(--text); }
.wz-path li.out span { color: var(--navy); font-weight: 700; }

.wz-nav { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; margin-top: 18px; }
.wz-nav-btn {
  display: grid; place-items: center; min-height: 48px; padding: 6px 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-size: .82em; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.wz-nav-btn:disabled { opacity: .4; cursor: default; }
