* { box-sizing: border-box; }
:root { font-family: system-ui, -apple-system, sans-serif; color: #172033; background: #eef2f7; }
body { margin: 0; min-height: 100vh; }
.app-shell { width: min(760px, 100%); margin: auto; padding: 16px; }
.topbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
h1, h2 { margin: 0; } h1 { font-size: 1.35rem; }
nav { display: flex; gap: 6px; } button { border: 0; border-radius: 10px; background: #2864d7; color: white; font: inherit; font-weight: 650; padding: 12px 16px; cursor: pointer; min-height: 44px; }
button:hover { filter: brightness(.94); } button:focus-visible { outline: 3px solid #91b5ff; outline-offset: 2px; }
.tab { background: transparent; color: #526174; padding: 9px 10px; } .tab.active { background: #dbe7ff; color: #17499f; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; } .secondary { background: #e0e6ee; color: #253246; }
.access-denied { text-align: center; } .scenario-card { background: white; border-radius: 16px; padding: clamp(18px, 5vw, 32px); box-shadow: 0 5px 24px #243b5a14; }
.eyebrow { color: #61728a; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.rich-text { font-size: clamp(1.2rem, 4vw, 1.7rem); line-height: 1.45; margin: 20px 0; } .notes { border-left: 4px solid #f2bd4b; background: #fff8e8; padding: 12px 14px; margin: 18px 0 24px; line-height: 1.5; }
.options { display: grid; gap: 12px; } .option { text-align: left; width: 100%; } .option small { display: block; opacity: .8; font-weight: 400; margin-top: 4px; }
.muted { color: #61728a; line-height: 1.5; } .hidden { display: none !important; } code { background: #edf1f6; padding: 2px 5px; border-radius: 4px; }
.tree-summary { display: grid; gap: 4px; background: #edf4ff; border-radius: 10px; padding: 14px; margin: 16px 0; } .tree-summary span { color: #61728a; font-size: .9rem; }
.tree-node { border: 1px solid #dce3ec; border-radius: 12px; padding: 16px; margin: 14px 0; }
.tree-description { line-height: 1.55; font-size: 1.05rem; margin-bottom: 12px; } .tree-notes { border-left: 3px solid #f2bd4b; background: #fff8e8; padding: 10px 12px; line-height: 1.5; margin-bottom: 14px; } .tree-options ul { padding-left: 22px; margin-bottom: 0; } .tree-options li { padding: 8px 4px; line-height: 1.45; } .tree-options li.chosen { background: #eaf3ff; border-radius: 6px; } .selected { color: #167346; } .tree-connector { display: flex; flex-direction: column; align-items: center; color: #2864d7; font-weight: 700; gap: 3px; padding: 2px 0; } .tree-connector small { color: #61728a; font-weight: 400; text-align: center; } .empty { color: #61728a; padding: 20px 0; } .finished-label { color: #167346; font-size: 1.2rem; font-weight: 750; text-align: center; margin: 24px 0 4px; }
@media (max-width: 520px) { .app-shell { padding: 12px; } .topbar { align-items: stretch; } nav { width: 100%; } .tab { flex: 1; } button { padding: 12px 14px; } }
