:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #1a2230;
  --muted: #5b6575;
  --border: #dde2e8;
  --brand: #7c2d12;
  --accent: #7c2d12;
  --good: #15803d;
  --bad: #b91c1c;
  --warn: #b45309;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --act-discover: #d97706; --act-design: #7c3aed; --act-acquire: #db2777; --act-build: #2563eb;
  --act-transition: #0d9488; --act-operate: #0891b2; --act-deliver: #059669; --act-support: #dc2626;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141b; --surface: #171e28; --surface-2: #1e2734; --text: #e6eaf0; --muted: #9aa5b4;
    --border: #2a3443; --brand: #8fb4e0; --shadow: none; --good: #4ade80; --bad: #f87171; --warn: #fbbf24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141b; --surface: #171e28; --surface-2: #1e2734; --text: #e6eaf0; --muted: #9aa5b4;
  --border: #2a3443; --brand: #8fb4e0; --shadow: none; --good: #4ade80; --bad: #f87171; --warn: #fbbf24;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2 { font-size: 1.4rem; margin-top: 1.5rem; }
h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.card h3, .stack > .card > h3:first-child { margin-top: 0; }
p { margin: 0 0 .75rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #7c2d12; color: #fff; font-weight: 800; font-size: .8rem; }
.topnav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.topnav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; }
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav a.active { background: var(--surface-2); color: var(--text); }
.lang, select { font: inherit; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); max-width: 100%; }

main { padding-top: 24px; padding-bottom: 32px; min-height: 70vh; }
.footer { color: var(--muted); font-size: .85rem; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--border); }

/* home */
.hero { padding: 16px 0 8px; }
.hero.small { padding-top: 0; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 16px; }
.case-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.case-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 24, 40, .12); }
.case-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: none; }
.case-icon.sm { width: 34px; height: 34px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-sector { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; display: block; }
.case-name { font-weight: 700; font-size: 1.1rem; }
.case-summary { color: var(--muted); font-size: .93rem; flex: 1; }
.case-figures { display: flex; gap: 14px; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.case-figures b { color: var(--text); }
.home-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.link-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; background: var(--surface); }
.link-card:hover { border-color: var(--brand); }
.link-card span { color: var(--muted); font-size: .93rem; }
.link-card.featured { border: 1px solid var(--brand); border-left: 4px solid var(--brand); }

/* case layout */
.case-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.case-head h1 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.case-switch { margin-left: auto; }
.case-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.sidenav { position: sticky; top: 72px; }
.sidenav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.sidenav a:hover { background: var(--surface-2); }
.sidenav a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.sidenav b { display: block; font-size: .93rem; font-weight: 600; }
.sidenav small { display: block; color: var(--muted); font-size: .78rem; }
.num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 700; flex: none; }
[aria-current="page"] .num, .num.big { background: var(--accent); color: #fff; }
.num.big { min-width: 40px; height: 40px; border-radius: 20px; font-size: 1.1rem; }
.section-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.content { min-width: 0; }

/* building blocks */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 16px 0; }
.bullets { margin: 0 0 .5rem; padding-left: 1.2rem; }
.bullets li { margin-bottom: 4px; }
.itil-def { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: .92rem; color: var(--muted); }
.tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 1px; }
.labeled { margin-top: 10px; }
.labeled p { margin: 2px 0 0; }
.label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.labeled.example { border-left: 3px solid var(--good); padding-left: 10px; }
.labeled.example .label { color: var(--good); }
.labeled.pitfall { border-left: 3px solid var(--bad); padding-left: 10px; }
.labeled.pitfall .label { color: var(--bad); }
.callout { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.callout p { margin: 4px 0 0; }
.note { font-size: .9rem; color: var(--warn); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0; }
.figure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.figure b { display: block; font-size: 1.5rem; color: var(--accent); }
.figure span { color: var(--muted); font-size: .85rem; }

.table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; }

.dim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.dim { position: relative; }
.dim-n { position: absolute; top: 14px; right: 16px; font-size: 1.6rem; font-weight: 800; color: color-mix(in srgb, var(--accent) 30%, transparent); }
.pestle { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pestle-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.pestle-item p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.pestle-letter { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: .8rem; }

/* SVS diagram */
.svs-diagram { display: flex; align-items: center; gap: 10px; margin: 8px 0 20px; }
.svs-io { flex: 0 0 120px; padding: 14px 10px; text-align: center; font-weight: 700; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.svs-io.value { background: var(--accent); color: #fff; border-color: var(--accent); }
.svs-arrow { font-size: 1.5rem; color: var(--muted); }
.svs-core { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 2px solid var(--accent); border-radius: 14px; background: var(--surface); min-width: 0; }
.svs-band { padding: 6px 10px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); text-align: center; font-weight: 600; font-size: .9rem; }
.svs-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.svs-label { text-align: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.svs-chain span { padding: 6px; text-align: center; font-size: .82rem; border: 1px dashed var(--accent); border-radius: 6px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.steps h3 { margin-top: 0; }

.principle h3 { display: flex; gap: 10px; align-items: center; }
.principle h3 .num { background: var(--accent); color: #fff; }

/* value chain */
.chain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.chain { border-top: 4px solid var(--c, var(--accent)); }
.act-discover { --c: var(--act-discover); } .act-design { --c: var(--act-design); } .act-acquire { --c: var(--act-acquire); }
.act-build { --c: var(--act-build); } .act-transition { --c: var(--act-transition); } .act-operate { --c: var(--act-operate); }
.act-deliver { --c: var(--act-deliver); } .act-support { --c: var(--act-support); }
.chip[class*="act-"] { background: color-mix(in srgb, var(--c) 15%, var(--surface)); border-color: color-mix(in srgb, var(--c) 45%, transparent); font-weight: 600; }
.stream { list-style: none; padding: 0; margin: 12px 0; counter-reset: st; }
.stream li { position: relative; padding: 0 0 16px 36px; counter-increment: st; }
.stream li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 12px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.stream li::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--border); }
.stream li:last-child::after { display: none; }
.stream p { margin: 4px 0 0; }

/* lifecycle */
.lifecycle-ring { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 8px 0 18px; }
.lifecycle-ring span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-bottom: 3px solid var(--c); font-size: .8rem; font-weight: 600; text-align: center; }
.lifecycle-ring b { color: var(--c); }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.practice-grid .card h3 { margin-top: 0; }

.gov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.gov-grid .card h3 { margin: 6px 0 4px; }
.gov-grid .card p { margin: 0; font-size: .9rem; }
.gov-grid .num { background: var(--accent); color: #fff; }

/* value stream map */
.vsm { display: flex; gap: 0; overflow-x: auto; padding: 8px 0 12px; align-items: stretch; }
.vsm-step { display: flex; align-items: center; flex: none; }
.vsm-box { display: flex; flex-direction: column; gap: 6px; width: 170px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .88rem; }
.vsm-box small { color: var(--muted); }
.vsm-n { font-size: .72rem; font-weight: 800; color: var(--muted); }
.vsm-cycle { color: var(--muted); font-size: .82rem; }
.vsm-cycle b { color: var(--good); }
.vsm-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; text-align: center; font-size: .75rem; color: var(--muted); }
.vsm-wait::before { content: "⟶"; font-size: 1.4rem; line-height: 1; }
.vsm-wait b { color: var(--bad); font-size: .85rem; }
.vsm-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 4px 0 12px; background: var(--surface-2); }
.vsm-bar .w-cycle { background: var(--good); min-width: 3px; }
.vsm-bar .w-wait { background: color-mix(in srgb, var(--bad) 55%, var(--surface)); }

/* practices */
.practice { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.practice summary { cursor: pointer; padding: 14px 16px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.practice summary::-webkit-details-marker { display: none; }
.practice summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.practice[open] summary::after { content: "–"; }
.practice-body { padding: 0 16px 16px; }

/* improvement timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .num { background: var(--accent); color: #fff; }
.timeline h3 { margin: 0 0 4px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.pager a { text-decoration: none; font-weight: 600; }

/* compare */
.compare-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0 8px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .9rem; background: var(--surface); }
.tabs a[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.field { min-width: 0; max-width: 100%; }
.field select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.compare-card { border-top: 4px solid var(--accent); }
.compare-head { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; margin-bottom: 10px; }

/* buttons */
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.btn { font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--surface); cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn:disabled { opacity: .5; cursor: default; }

/* responsive */
@media (max-width: 860px) {
  .case-layout { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: static; min-width: 0; }
  .sidenav ol { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .sidenav a { flex-direction: column; gap: 4px; min-width: 120px; }
  .sidenav small { display: none; }
  .svs-diagram { flex-direction: column; }
  .svs-io { flex: none; width: 100%; }
  .svs-arrow { transform: rotate(90deg); }
  .svs-core { width: 100%; }
  .case-head { flex-wrap: wrap; }
  .case-switch { margin-left: 0; width: 100%; }
  .case-switch select { width: 100%; }
}
@media (max-width: 760px) {
  .lifecycle-ring { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; }
  .topnav { margin-left: 0; width: 100%; }
  .svs-chain { grid-template-columns: repeat(2, 1fr); }
  .vsm-box { width: 150px; }
}

@media print {
  .topbar, .sidenav, .pager, .btn, .actions, .case-switch, .footer { display: none !important; }
  body { background: #fff; }
  .case-layout { display: block; }
  .card, .practice, .table-wrap { box-shadow: none; break-inside: avoid; }
  .practice { display: block; }
}

/* games */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.game-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .15s; }
.game-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.game-n { position: absolute; top: 12px; right: 16px; font-size: 1.6rem; font-weight: 800; color: var(--border); }
.game-card > b { padding-right: 32px; font-size: 1.05rem; }
.game-card .muted { flex: 1; font-size: .93rem; }
.game-best { font-size: .85rem; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 10px; border-radius: var(--radius); border: 1px dashed var(--border); background: var(--surface); opacity: .55; }
.badge.earned { opacity: 1; border-style: solid; }
.badge-medal { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; background: var(--surface-2); color: var(--muted); font-size: 1.2rem; margin-bottom: 4px; }
.badge.earned .badge-medal { background: #f59e0b; color: #fff; }
.badge small { color: var(--muted); font-size: .78rem; }
.badge.new { animation: pop .5s ease-out; }
@keyframes pop { 0% { transform: scale(.7); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.game { max-width: 760px; margin: 0 auto; }
.game-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.game-top a { text-decoration: none; }
.hud { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.hud b { color: var(--text); font-variant-numeric: tabular-nums; }
.mult { display: inline-block; padding: 0 6px; border-radius: 6px; background: #f59e0b; color: #fff; font-weight: 700; font-size: .8rem; }
.timebar { height: 6px; border-radius: 3px; background: var(--surface-2); margin: 10px 0 14px; overflow: hidden; }
.timebar span { display: block; height: 100%; width: 100%; background: var(--good); transition: width .1s linear; }
.timebar span.low { background: var(--bad); }
.qcard { border-top: 4px solid var(--accent); }
.qtext { font-size: 1.15rem; margin: 8px 0 12px; }
.qprompt { font-weight: 700; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.opt:hover:not(:disabled) { border-color: var(--brand); background: var(--surface-2); }
.opt .key { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 700; }
.opt.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); }
.opt.wrongpick { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.opt:disabled { cursor: default; }
.feedback { margin-top: 14px; padding: 14px; border-radius: 10px; border-left: 4px solid; background: var(--surface-2); }
.feedback.ok { border-color: var(--good); }
.feedback.ok > b { color: var(--good); }
.feedback.ko { border-color: var(--bad); }
.feedback.ko > b { color: var(--bad); }
.feedback p { margin: 6px 0; }
.results { text-align: center; }
.results .figures, .results .badges { text-align: left; }
.rank { font-size: 1.3rem; font-weight: 700; color: var(--brand); }
.results .actions { justify-content: center; }
a.btn { text-decoration: none; display: inline-block; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }

/* level toggle */
.level-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex: none; }
.level-toggle button { font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 12px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.level-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
body.level-foundation .prac-only { display: none; }
.badge-level { display: inline-block; font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: #4338ca; color: #fff; vertical-align: 2px; margin-left: 4px; }
.prac-only { border-left: 3px solid #4338ca; padding-left: 12px; margin-top: 14px; }

/* practitioner questions */
.pq-options { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.pq-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.pq-opt input { margin-top: 4px; }
.pq-opt.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); }
.pq-opt.wrongpick { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.pm-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pm-row span { flex: 1 1 260px; }
.pm-row select { flex: 0 1 260px; }
select.sel-ok { border-color: var(--good); }
select.sel-ko { border-color: var(--bad); }
.timeline .num { flex: none; }
@media (max-width: 560px) { .level-toggle { order: 3; } }
