/* Inter, self-hosted (SIL Open Font License, see fonts/Inter-LICENSE.txt). One variable file covers weights 100–900. */
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Drug Development Strategy — v19 stylesheet. One token set, no !important. Minimum text size 12px. */
:root {
  --navy: #0b1020; --navy2: #141b33; --navy3: #1c2542; --line-d: rgba(255,255,255,.12); --line-d2: rgba(255,255,255,.2);
  --txt-d: #f3f5fb; --muted-d: #b3bcd6; --faint-d: #8d97b4;
  --ink: #11172a; --muted: #4f5970; --line: #e3e7ef; --panel: #fff; --bg: #f4f5f8;
  --purple: #6857ff; --purple2: #8a7cff; --purple-soft: #efedff;
  --teal: #16a88f; --teal-soft: #e5f6f2; --amber: #c9831c; --amber-soft: #fff3de; --red: #d4505e; --red-soft: #fdecee;
  --p1: #7f8db3; --p2: #6857ff; --p3: #11172a; --pre: #16a88f;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.45; background: #060a16; color: var(--txt-d); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, .gl:focus-visible { outline: 2px solid var(--purple2); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
#app { height: 100%; }
.frame { position: relative; height: 100%; max-width: 480px; margin: 0 auto; background: var(--navy); overflow: hidden; }
@media (min-width: 520px) { .frame { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.5); } body { background: radial-gradient(circle at 30% 20%, #1a2146, #060a16 60%); } }

.eyebrow, .kicker { font-size: 12px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--faint-d); }
.kicker.light, .eyebrow.light { color: #c3c9ea; }
.fine { font-size: 13px; color: var(--muted-d); margin-top: 8px; }
.fine.dark { color: var(--muted); }
.neg { color: var(--red); }
.hint { font-size: 13px; color: var(--muted-d); margin: 0 0 12px; }
.empty { color: var(--muted-d); font-size: 14px; padding: 12px 0; }

/* glossary term */
.gl { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: currentColor; text-decoration-thickness: 1px; cursor: help; }

/* buttons */
.btn { border: 0; border-radius: 16px; min-height: 54px; padding: 0 18px; font-weight: 750; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn.primary { background: linear-gradient(135deg, var(--purple), #7f6aff); color: #fff; box-shadow: 0 10px 24px rgba(104,87,255,.3); }
.btn.primary.light { background: #fff; color: #141a31; box-shadow: none; }
.btn.primary:disabled { background: #2a3150; color: #8d97b4; box-shadow: none; }
.btn.ghost { background: rgba(255,255,255,.08); border: 1px solid var(--line-d2); color: #fff; }
.btn.ghost-dark { background: var(--navy3); border: 1px solid var(--line-d); color: var(--txt-d); }
.btn.grow { flex: 1; }
.icon-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-d); background: var(--navy2); color: var(--txt-d); font-size: 19px; display: grid; place-items: center; }
.link { background: none; border: 0; color: var(--purple); font-weight: 700; font-size: 14px; padding: 10px 0 0; }

/* screen scaffold */
.screen { height: 100%; display: flex; flex-direction: column; }
.top { flex: none; display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 12px; background: var(--navy); border-bottom: 1px solid var(--line-d); }
.top-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.top-title strong { font-size: 18px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-pill, .step-badge { flex: none; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--navy3); color: var(--txt-d); border: 1px solid var(--line-d); }
.body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.foot { flex: none; display: flex; gap: 10px; align-items: center; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11,16,32,.85), var(--navy) 30%); border-top: 1px solid var(--line-d); flex-wrap: wrap; }
.foot .btn.ghost-dark { width: auto; min-width: 96px; }
.foot-meta { display: flex; gap: 16px; width: 100%; }
.foot-meta span { display: flex; flex-direction: column; }
.foot-meta small { font-size: 12px; color: var(--faint-d); }
.foot-meta strong { font-size: 16px; }

/* toast */
.toast { position: absolute; left: 16px; right: 16px; top: calc(max(14px, env(safe-area-inset-top)) + 58px); z-index: 60; padding: 12px 14px; border-radius: 12px; background: #ffffff; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.35); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; }
.toast.good { border-left: 4px solid var(--teal); }
.toast.bad { border-left: 4px solid var(--red); }

/* welcome */
.welcome { position: relative; height: 100%; overflow-y: auto; padding: max(24px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; background: radial-gradient(circle at 20% 15%, #26305a 0, transparent 36%), radial-gradient(circle at 78% 57%, #4c2f7f 0, transparent 36%), linear-gradient(160deg, #090e1d, #11172d 62%, #0d1223); }
.ambient { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .3; pointer-events: none; }
.ambient.a1 { width: 220px; height: 220px; background: #6c5cff; right: -80px; top: 60px; }
.ambient.a2 { width: 180px; height: 180px; background: #1ab59b; left: -100px; bottom: 120px; }
.welcome-mark { position: relative; width: 45px; height: 45px; border-radius: 14px; border: 1px solid var(--line-d2); background: rgba(255,255,255,.07); display: grid; place-items: center; font-weight: 800; }
.welcome-copy { position: relative; margin-top: 26px; }
.welcome-copy h1 { font-size: clamp(34px, 10vw, 42px); line-height: 1.02; letter-spacing: -.04em; margin: 10px 0 14px; }
.welcome-copy h1 em { font-style: normal; color: #a89cff; }
.welcome-copy p { font-size: 15px; line-height: 1.55; color: #c1c8de; max-width: 40ch; }
.welcome-visual { position: relative; flex: 1; min-height: 150px; display: grid; place-items: center; margin: 8px 0; }
.molecule-core { width: 84px; height: 84px; border-radius: 26px; background: linear-gradient(145deg, #7664ff, #32c8ae); box-shadow: 0 30px 70px rgba(69,87,208,.4); display: grid; place-items: center; font-size: 40px; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; transform: rotate(-18deg); }
.orbit.o1 { width: 220px; height: 110px; } .orbit.o2 { width: 280px; height: 150px; transform: rotate(22deg); }
.floating-chip { position: absolute; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-d2); color: #d6dbf0; }
.floating-chip.c1 { left: 4%; top: 22%; } .floating-chip.c2 { right: 4%; top: 12%; } .floating-chip.c3 { right: 10%; bottom: 10%; }
.welcome-actions { position: relative; display: flex; flex-direction: column; gap: 10px; }
.best-line { text-align: center; font-size: 13px; color: var(--muted-d); }

/* setup */
.intro h1 { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.intro p { color: var(--muted-d); margin-top: 6px; font-size: 14px; }
.intro.small h1 { font-size: 24px; }
.class-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.class-card { text-align: left; border: 2px solid transparent; border-radius: var(--r-lg); background: #fff; color: var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.class-card.on { border-color: var(--purple); background: #f6f4ff; box-shadow: 0 0 0 4px rgba(104,87,255,.25); }
.class-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.glyph { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--purple), #3a2fd0); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.tick { color: var(--purple); font-weight: 800; font-size: 18px; }
.class-card .kicker { color: var(--purple); font-size: 12px; letter-spacing: .02em; text-transform: none; }
.class-card strong { font-size: 17px; line-height: 1.15; }
.class-card > small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.mini-stats span { display: flex; justify-content: space-between; background: var(--bg); border-radius: 8px; padding: 4px 7px; font-size: 12px; }
.mini-stats em { font-style: normal; color: var(--muted); } .mini-stats b { font-weight: 800; }
.class-econ { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.asset-strip { display: flex; align-items: center; gap: 12px; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 12px; }
.asset-strip div { display: flex; flex-direction: column; } .asset-strip small { font-size: 12px; color: var(--faint-d); } .asset-strip strong { font-size: 16px; }
.asset-strip .right { margin-left: auto; text-align: right; }
.wallet { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.wallet > div, .buy { border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
.wallet > div { background: #fff; color: var(--ink); } .wallet > div small { font-size: 12px; color: var(--muted); } .wallet > div strong { font-size: 24px; }
.buy { border: 1px solid rgba(138,124,255,.5); background: rgba(104,87,255,.16); text-align: left; }
.buy strong { font-size: 15px; } .buy small { font-size: 12px; color: var(--muted-d); }
.buy:disabled { opacity: .5; }
.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.attr-card { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.attr-head { display: flex; gap: 8px; align-items: flex-start; }
.attr-head > div { flex: 1; min-width: 0; } .attr-head strong { display: block; font-size: 15px; } .attr-head small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.attr-head b { font-size: 20px; } .attr-head b i { font-style: normal; font-size: 12px; color: var(--muted); }
.attr-icon { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; }
.pips { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.pips i { height: 7px; border-radius: 4px; background: #e6e9f1; } .pips i.base { background: #9aa3bf; } .pips i.added { background: var(--purple); }
.stepper { display: flex; align-items: center; justify-content: space-between; }
.stepper span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 20px; font-weight: 700; }
.stepper button:disabled { opacity: .35; }
.team-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-meta div { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; }
.team-meta small { font-size: 12px; color: var(--muted); } .team-meta strong { font-size: 20px; }
.founder-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.founder { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; color: var(--ink); border: 2px solid transparent; border-radius: var(--r-md); padding: 10px 12px; }
.founder.on { border-color: var(--purple); background: #f6f4ff; }
.founder > div { flex: 1; min-width: 0; } .founder strong { display: block; font-size: 15px; } .founder small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.founder em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--purple); white-space: nowrap; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--navy3); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.founder .avatar { background: linear-gradient(145deg, var(--purple), #3a2fd0); }

/* dashboard */
.hero { position: relative; margin: -16px -16px 0; padding: 22px 16px 16px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: linear-gradient(180deg, rgba(6,12,28,.15), rgba(6,12,28,.7) 55%, var(--navy) 98%), var(--img) center/cover; }
.hero .kicker { color: #d6dcf5; }
.hero h1 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.journey { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.journey li { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.journey li i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35); z-index: 1; }
.journey li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: rgba(255,255,255,.2); }
.journey li:first-child::before { display: none; }
.journey li.done i { background: var(--teal); border-color: var(--teal); } .journey li.done::before, .journey li.now::before { background: var(--teal); }
.journey li.now i { background: #fff; border-color: var(--purple2); box-shadow: 0 0 0 4px rgba(138,124,255,.35); }
.journey span { font-size: 12px; color: #c8cee6; white-space: nowrap; }
.journey li.now span { color: #fff; font-weight: 700; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { font-size: 12px; color: var(--faint-d); font-weight: 600; } .kpi strong { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .kpi span { font-size: 12.5px; color: var(--muted-d); }
.kpi.warn { border-color: rgba(229,154,47,.6); } .kpi.warn strong { color: #f3b35a; }
.note-line { font-size: 13px; color: var(--muted-d); background: var(--navy2); border: 1px dashed var(--line-d2); border-radius: var(--r-sm); padding: 10px 12px; }
.alert { display: flex; align-items: center; gap: 12px; border-radius: var(--r-md); padding: 12px; background: var(--red-soft); color: var(--ink); }
.alert.warn { background: var(--amber-soft); }
.alert > b { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; }
.alert.warn > b { background: var(--amber); }
.alert > div { flex: 1; min-width: 0; } .alert strong { display: block; font-size: 15px; } .alert small { display: block; font-size: 13px; color: var(--muted); }
.alert button { flex: none; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; text-align: left; background: #fff; color: var(--ink); border: 0; border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 2px; min-height: 96px; }
.tile small { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tile strong { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile > span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.tile .dot { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(104,87,255,.2); }
.mini-bar { position: relative; display: block; height: 6px; border-radius: 3px; background: #e7eaf2; margin-top: 6px; }
.mini-bar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--purple); }
.mini-bar u { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink); }
.partner-strip { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; }
.partner-strip span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 700; }
.partner-strip small { font-size: 13px; color: var(--muted-d); width: 100%; }

/* plan */
.plan-top { display: flex; align-items: center; gap: 12px; }
.seg { flex: 1; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy2); border: 1px solid var(--line-d); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted-d); font-weight: 700; font-size: 14px; border-radius: 9px; min-height: 40px; }
.seg button.on { background: #fff; color: var(--ink); }
.focus { display: flex; align-items: center; gap: 4px; }
.focus i { width: 10px; height: 10px; border-radius: 50%; background: var(--navy3); border: 1px solid var(--line-d2); }
.focus i.on { background: var(--purple2); border-color: var(--purple2); }
.focus b { font-size: 14px; margin-left: 4px; }
.acts { display: flex; flex-direction: column; gap: 8px; }
.act { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 12px; }
.act-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, var(--purple), #3a2fd0); color: #fff; font-weight: 800; font-size: 15px; }
.act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.act-main strong { font-size: 15.5px; line-height: 1.25; }
.act-main small { font-size: 13px; color: var(--muted-d); line-height: 1.3; }
.warn-line { font-style: normal; font-size: 12.5px; color: #f3b35a; }
.act-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 42%; }
.act-side small { font-size: 12.5px; color: var(--txt-d); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fpill { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: rgba(138,124,255,.2); color: #cfc8ff; white-space: nowrap; }
.fpill.open { background: rgba(22,168,143,.2); color: #8fe3d2; }
.act.sel { border-color: var(--teal); background: rgba(22,168,143,.1); }
.act.sel .act-icon { background: var(--teal); }
.act.off { opacity: .6; }
.act.off .act-icon { background: var(--navy3); }
.gate { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.gate i { flex: 1; height: 6px; border-radius: 3px; background: var(--navy3); position: relative; overflow: hidden; }
.gate i b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--purple2); border-radius: 3px; }
.gate span { font-size: 12px; color: var(--muted-d); white-space: nowrap; }
.gate.big { margin: 4px 0; } .gate.big i { height: 10px; }
.safety-card { background: var(--red-soft); color: var(--ink); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sc-head span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.sc-head strong { font-size: 16px; }
.safety-card p { font-size: 13.5px; color: var(--muted); }
.sc-opts { display: grid; gap: 8px; }
.sc-opts button { text-align: left; background: #fff; border: 1px solid #f3c5cb; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.sc-opts button:disabled { opacity: .5; }
.sc-opts strong { font-size: 15px; } .sc-opts small { font-size: 13px; color: var(--muted); } .sc-opts em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--red); }

/* review */
.plan-list { display: flex; flex-direction: column; gap: 8px; }
.plan-item { display: flex; align-items: center; gap: 12px; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 12px; }
.plan-item > div { flex: 1; min-width: 0; } .plan-item strong { display: block; font-size: 15px; } .plan-item small { display: block; font-size: 13px; color: var(--muted-d); }
.x { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-d2); background: none; color: var(--txt-d); font-size: 18px; }
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money-grid div { background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; }
.money-grid small { font-size: 12px; color: var(--faint-d); } .money-grid strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.money-grid .warn { border-color: rgba(212,80,94,.7); } .money-grid .warn strong { color: #ff9aa5; }
.ok-line { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--txt-d); background: rgba(22,168,143,.12); border: 1px solid rgba(22,168,143,.4); border-radius: var(--r-md); padding: 12px; }
.ok-line b { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }

/* white data cards and charts */
.card.light, .card-light { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-head strong { font-size: 16px; } .card-head span { font-size: 13px; color: var(--muted); }
.card-head .big { font-size: 26px; letter-spacing: -.02em; }
.card .kicker { color: var(--purple); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gridline { stroke: #e3e7ef; stroke-width: 1; }
.chart .tick { fill: #5d677e; font-size: 12px; }
.chart .xl { fill: #1b2236; font-size: 13px; font-weight: 700; }
.chart .xl.dim { fill: #a2aac0; }
.chart .ref { stroke: #11172a; stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart .ref.soft { stroke: #8d97b4; }
.chart .ref.danger { stroke: var(--red); }
.chart .ref-t { fill: #11172a; font-size: 12px; font-weight: 700; }
.chart .ref-t.soft { fill: #6b7590; font-weight: 600; }
.chart .ref-t.danger { fill: var(--red); }
.chart .unknown { fill: #b3bad0; font-size: 26px; font-weight: 800; }
.chart .ceiling { fill: #f2f3f7; } .chart .ceiling-t { fill: #7b849c; font-size: 12px; }
.pt line { stroke-width: 2; } .pt circle, .pt rect { stroke: #fff; stroke-width: 2; }
.pt.pre line { stroke: var(--pre); } .pt.pre rect { fill: var(--pre); }
.pt.p1 line { stroke: var(--p1); } .pt.p1 circle { fill: var(--p1); }
.pt.p2 line { stroke: var(--p2); } .pt.p2 circle { fill: var(--p2); }
.pt.p3 line { stroke: var(--p3); } .pt.p3 circle { fill: var(--p3); }
.pt.concern circle, .pt.concern rect { fill: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted-d); }
.legend.dark { color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.legend i.pre { background: var(--pre); transform: rotate(45deg); border-radius: 2px; } .legend i.p1 { background: var(--p1); } .legend i.p2 { background: var(--p2); } .legend i.p3 { background: #fff; border: 3px solid var(--p3); }
.legend i.nom { background: #d9dcff; border-radius: 3px; } .legend i.pv { background: var(--purple); border-radius: 3px; }
.legend i.truebar { background: #cfd5e6; border-radius: 3px; } .legend i.estdot { background: var(--purple); }
.legend b { font-weight: 800; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
thead th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
tbody th { font-weight: 700; }
tr.dim { color: #a2aac0; }
.gantt .gridline { stroke: #e3e7ef; } .gantt .tick { fill: #5d677e; font-size: 12px; }
.gantt .gbar { fill: #e6e3ff; stroke: var(--purple); stroke-width: 1; }
.gantt .glabel { fill: #1b2236; font-size: 12px; font-weight: 600; }
.gantt .turnline { stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 3; }

/* report */
.stage-banner { background: linear-gradient(135deg, rgba(22,168,143,.25), rgba(104,87,255,.25)); border: 1px solid rgba(22,168,143,.5); border-radius: var(--r-md); padding: 12px; font-size: 15px; text-align: center; }
.readout .conf { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.readout.positive { box-shadow: inset 0 4px 0 var(--teal); } .readout.caution { box-shadow: inset 0 4px 0 var(--amber); } .readout.danger { box-shadow: inset 0 4px 0 var(--red); }
.readout.positive .kicker { color: var(--teal); } .readout.caution .kicker { color: var(--amber); } .readout.danger .kicker { color: var(--red); }
.verdict { font-size: 20px; letter-spacing: -.01em; line-height: 1.2; }
.insight { font-size: 14px; color: var(--muted); }
.reveal .rv circle { fill: var(--purple); stroke: #fff; stroke-width: 2; }
.reveal .rv.concern circle { fill: var(--red); }
.reveal .rv .ci { stroke: var(--purple); stroke-width: 3; stroke-linecap: round; }
.reveal .rv.concern .ci { stroke: var(--red); }
.reveal .val { fill: #11172a; font-size: 13px; font-weight: 800; }
.reveal.animate .rv circle, .reveal.animate .rv .val { animation: drop .7s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--d) + .5s); }
.reveal.animate .rv .ci { transform-box: fill-box; transform-origin: center; animation: narrow 1.1s ease-out both; animation-delay: var(--d); }
@keyframes narrow { from { transform: scaleY(4); opacity: .15; } to { transform: scaleY(1); opacity: 1; } }
@keyframes drop { from { transform: translateY(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reveal.animate .rv circle, .reveal.animate .rv .val, .reveal.animate .rv .ci { animation: none; } }
.dose-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.dose-chips div { background: var(--bg); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.dose-chips div.bad { background: var(--red-soft); }
.dose-chips small { font-size: 12px; color: var(--muted); font-weight: 700; } .dose-chips strong { font-size: 20px; } .dose-chips span { font-size: 12px; color: var(--muted); }
.decision { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 0 0 3px rgba(104,87,255,.5); }
.decision .kicker { color: var(--purple); } .decision h3 { font-size: 19px; } .decision > p { font-size: 14px; color: var(--muted); }
.decision .fine { color: var(--muted); }
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv3 div, .kv4 div { background: var(--bg); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.kv3 small, .kv4 small { font-size: 12px; color: var(--muted); } .kv3 strong, .kv4 strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.kv3.soft strong { font-size: 15px; }
.kv4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kv4.dark div { background: var(--navy2); border: 1px solid var(--line-d); } .kv4.dark small { color: var(--faint-d); } .kv4.dark strong { color: var(--txt-d); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; } .row2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.row3 .btn, .row2 .btn { min-height: 48px; font-size: 15px; }
.decision .btn.ghost-dark { background: var(--bg); color: var(--ink); border-color: var(--line); }
.counter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.counter-row button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.events { display: flex; flex-direction: column; gap: 8px; }
.events h2, .deltas h2, .voices h2, .section-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint-d); font-weight: 700; margin-top: 4px; }
.event { display: flex; gap: 12px; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 12px; }
.event > b { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--navy3); font-size: 14px; }
.event.positive > b { background: rgba(22,168,143,.25); color: #8fe3d2; } .event.caution > b { background: rgba(229,154,47,.22); color: #f3c07a; } .event.danger > b { background: rgba(212,80,94,.25); color: #ff9aa5; }
.event > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.event small { font-size: 12px; letter-spacing: .06em; color: var(--faint-d); font-weight: 700; }
.event strong { font-size: 15px; } .event span { font-size: 13.5px; color: var(--muted-d); } .event em { font-style: normal; font-size: 13px; color: #d4d9ee; font-weight: 600; }
.deltas { display: flex; flex-direction: column; gap: 6px; }
.delta { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--navy2); border-radius: 12px; font-size: 14px; }
.delta strong { font-variant-numeric: tabular-nums; }
.delta.up strong { color: #8fe3d2; } .delta.down strong { color: #ff9aa5; }
.voices { display: flex; flex-direction: column; gap: 8px; }
.voice { display: flex; gap: 12px; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 12px; }
.voice.card-light { background: #fff; color: var(--ink); border: 0; }
.voice > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.voice small { font-size: 12.5px; color: var(--faint-d); font-weight: 600; } .voice.card-light small { color: var(--muted); }
.voice p { font-size: 15px; line-height: 1.4; }
.voice em { font-style: normal; align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--purple2); background: rgba(104,87,255,.14); padding: 4px 8px; border-radius: 999px; }
.voice.card-light em { color: var(--purple); background: var(--purple-soft); }
.morale { display: flex; align-items: center; gap: 8px; } .morale i { height: 6px; border-radius: 3px; background: var(--teal); max-width: 60%; } .morale i.mid { background: var(--amber); } .morale i.low { background: var(--red); } .morale span { font-size: 12px; color: var(--muted); }

/* intel */
.intel .body { background: var(--navy); }
.empty-state { display: flex; flex-direction: column; gap: 8px; text-align: center; padding: 20px 0; }
.empty-state img { width: 100%; border-radius: var(--r-lg); max-height: 200px; object-fit: cover; }
.empty-state span { color: var(--muted-d); }
.track { position: relative; height: 12px; border-radius: 6px; background: #e7eaf2; margin: 22px 0 8px; }
.track i { position: absolute; top: -6px; width: 4px; height: 24px; border-radius: 2px; transform: translateX(-2px); }
.track i span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; font-style: normal; }
.track i.min { background: var(--amber); } .track i.min span { color: #8a5a10; }
.track i.bic { background: var(--ink); } .track i.bic span { color: var(--ink); top: 26px; }
.track i.you { background: var(--purple); width: 8px; transform: translateX(-4px); } .track i.you span { color: var(--purple); }
.decomp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.decomp div { background: var(--bg); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; } .decomp small { font-size: 12px; color: var(--muted); } .decomp strong { font-size: 18px; }
.race .lname { fill: #1b2236; font-size: 12.5px; font-weight: 600; }
.race .lane-l { stroke: #c8cde0; stroke-width: 4; stroke-linecap: round; } .race circle { fill: #7f8db3; }
.race .lane.you .lane-l { stroke: #cfc8ff; } .race .lane.you circle { fill: var(--purple); } .race .lane.you .lname { fill: var(--purple); font-weight: 800; }
.comp-notes { display: flex; flex-direction: column; gap: 6px; }
.comp-notes div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .comp-notes span { color: var(--muted); text-align: right; }
.rnpv strong { font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .rnpv small { font-size: 13px; color: var(--muted); }
.cf .cf-nom { fill: #dcdcff; } .cf .cf-pv { fill: var(--purple); }
.status { font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: var(--amber-soft); color: #8a5a10; white-space: nowrap; }
.status.good { background: var(--teal-soft); color: #0c6b5b; } .status.bad { background: var(--red-soft); color: #a3323f; }
.icer strong { font-size: 30px; letter-spacing: -.02em; } .icer strong small { font-size: 14px; color: var(--muted); }
.scale { position: relative; height: 10px; border-radius: 5px; background: #e7eaf2; margin: 10px 0 22px; }
.scale i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--teal), var(--amber), var(--red)); }
.scale b { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); } .scale span { position: absolute; top: 14px; transform: translateX(-50%); font-size: 12px; color: var(--muted); font-weight: 600; }
.lens { text-align: left; border: 1px dashed #c9c2ff; background: var(--purple-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.lens small { display: block; font-size: 12px; color: var(--purple); font-weight: 700; } .lens strong { font-size: 16px; } .lens em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.team-hero { margin: -16px -16px 0; padding: 70px 16px 18px; background: linear-gradient(180deg, rgba(7,12,26,.1), rgba(7,12,26,.85)), var(--img) center/cover; }
.team-hero h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.hires { display: flex; flex-direction: column; gap: 8px; }
.hire { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--navy2); border: 1px dashed var(--line-d2); border-radius: var(--r-md); padding: 12px; }
.hire > div { flex: 1; min-width: 0; } .hire strong { display: block; font-size: 15px; } .hire small { display: block; font-size: 13px; color: var(--muted-d); }
.hire em { font-style: normal; font-size: 12.5px; color: var(--muted-d); text-align: right; white-space: nowrap; }
.attrs { display: flex; flex-direction: column; gap: 10px; }
.attrs > div { display: grid; grid-template-columns: 38% 1fr 34px; gap: 10px; align-items: center; font-size: 14px; }
.attrs i { height: 8px; border-radius: 4px; background: #e7eaf2; position: relative; overflow: hidden; } .attrs i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--purple); }
.attrs strong { text-align: right; font-variant-numeric: tabular-nums; }
.abars { display: flex; flex-direction: column; gap: 6px; }
.abar { display: grid; grid-template-columns: 1fr 34% 40px; gap: 8px; align-items: center; font-size: 13px; }
.abar i { position: relative; height: 10px; background: #f0f2f7; border-radius: 5px; }
.abar i::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #9aa3bf; }
.abar i b { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.abar.pos b { background: var(--teal); } .abar.neg b { background: var(--red); }
.abar strong { text-align: right; font-variant-numeric: tabular-nums; }
.patent .pat { fill: #dcdff0; } .patent .prot { fill: var(--teal); } .patent .nowline { stroke: var(--purple); stroke-width: 2; }
.log { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted-d); }

/* sheets */
.overlay { position: absolute; inset: 0; z-index: 40; background: rgba(4,7,16,.6); display: flex; align-items: flex-end; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-height: 90%; display: flex; flex-direction: column; background: var(--navy); border-top: 1px solid var(--line-d2); border-radius: 22px 22px 0 0; animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(40px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .sheet, .overlay { animation: none; } }
.sheet header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; }
.sheet header > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sheet header strong { font-size: 19px; }
.sheet-body { overflow-y: auto; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.sheet footer { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-d); }
.sheet-p { font-size: 15px; line-height: 1.5; } .sheet-p.muted { color: var(--muted-d); }
.blocked { text-align: center; font-weight: 700; color: #f3b35a; padding: 14px; border: 1px solid rgba(229,154,47,.5); border-radius: 14px; }
.sec { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint-d); }
.chips3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chips4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.routes { display: grid; grid-template-columns: 1fr; gap: 8px; }
.choice { text-align: left; background: var(--navy2); border: 2px solid var(--line-d); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-height: 56px; color: var(--txt-d); min-width: 0; }
.choice strong { font-size: 15px; line-height: 1.2; } .choice small { font-size: 12.5px; color: var(--muted-d); line-height: 1.3; }
.choice.on { border-color: var(--purple2); background: rgba(104,87,255,.2); }
.choice.on strong { color: #fff; }
.choice:disabled { opacity: .4; }
.choice.danger { border-color: rgba(212,80,94,.5); }
.precision { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted-d); }
.pbar { height: 8px; border-radius: 4px; background: var(--navy3); position: relative; } .pbar i { position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 0; border-radius: 4px; background: var(--purple2); }
.precision strong { color: var(--txt-d); font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: var(--navy2); border: 1px solid var(--line-d); }
.check b { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: #fff; font-size: 13px; }
.check.ok b { background: var(--teal); } .check.bad b { background: var(--red); }
.price { text-align: center; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.price small { font-size: 13px; color: var(--muted); } .price > strong { font-size: 40px; letter-spacing: -.03em; }
.price div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .price .btn.ghost-dark { background: var(--bg); color: var(--ink); border-color: var(--line); min-height: 46px; }

/* end */
.end { height: 100%; overflow-y: auto; padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; background: radial-gradient(circle at 70% 0%, #2a2466, transparent 50%), var(--navy); }
.end.win { background: radial-gradient(circle at 70% 0%, #0f5b50, transparent 55%), var(--navy); }
.end-top h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin: 8px 0; }
.end-top p { color: var(--muted-d); }
.grade { display: flex; gap: 14px; align-items: center; background: var(--navy2); border: 1px solid var(--line-d2); border-radius: var(--r-lg); padding: 14px; }
.grade > span { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 34px; font-weight: 900; background: linear-gradient(145deg, var(--teal), var(--purple)); }
.grade strong { display: block; font-size: 22px; } .grade small { font-size: 13px; color: var(--muted-d); }
.end-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.end-stats div { background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; }
.end-stats small { font-size: 12px; color: var(--faint-d); } .end-stats strong { font-size: 20px; }
.truth .true-bar { fill: #cfd5e6; } .truth .est { fill: var(--purple); stroke: #fff; stroke-width: 2; } .truth .val { fill: #11172a; font-size: 13px; font-weight: 800; }
.lesson { background: var(--navy2); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: #d4d9ee; }
.end-actions { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 360px) {
  .class-grid, .attr-grid { grid-template-columns: 1fr; }
  .chips4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 24px; }
}
.attr-grid > *, .class-grid > *, .kpis > *, .tiles > * { min-width: 0; }
@media (max-width: 400px) { .attr-card { padding: 10px; } .stepper button { width: 36px; height: 36px; } .attr-head b { font-size: 18px; } }

/* decision events & plot twists */
.decision.ev-card .kicker { color: var(--purple); }
.decision.wtf { box-shadow: 0 0 0 3px #ff4fa3, 0 18px 40px rgba(255,79,163,.25); }
.decision.wtf .kicker { color: #d6246e; }
.decision.wtf.fresh { animation: jolt .55s cubic-bezier(.3,1.6,.5,1) .3s both; }
@keyframes jolt { 0% { transform: scale(.94) rotate(-1.5deg); opacity: 0; } 60% { transform: scale(1.02) rotate(.6deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .decision.wtf.fresh { animation: none; } }
.ev-opts { display: flex; flex-direction: column; gap: 8px; }
.ev-opt { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.ev-opt strong { font-size: 15px; } .ev-opt small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ev-opt:disabled { opacity: .45; }
.ev-opt:not(:disabled):active { background: var(--purple-soft); border-color: var(--purple); }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.ev-chips i { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.echo { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.echo b { color: var(--ink); }
.decision .chose { font-size: 14px; color: var(--muted); }
.ev-result { font-size: 14.5px; font-weight: 600; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); }
.ev-result.positive { background: var(--teal-soft); } .ev-result.danger { background: var(--red-soft); }

/* artwork slots (js/art.js). Every slot has a fixed box, crop and overlay so any image fits. */
.hero { background-position: var(--pos, center); }
.welcome.has-art { background: linear-gradient(180deg, rgba(9,14,29,.82) 0%, rgba(9,14,29,.62) 42%, rgba(9,14,29,.25) 58%, rgba(9,14,29,.7) 76%, #0b1020 94%), var(--welcome) center 45%/cover, #0b1020; }
.welcome.has-art .ambient, .welcome.has-art .welcome-visual > * { display: none; }
.class-art { display: block; margin: -12px -12px 8px; aspect-ratio: 4 / 3; border-radius: 18px 18px 0 0; background-size: cover; background-color: #e7eaf2; }
.avatar.photo { background-size: cover; background-color: var(--navy3); border: 2px solid rgba(255,255,255,.15); }
.ev-art { margin: -14px -14px 4px; aspect-ratio: 16 / 9; border-radius: 17px 17px 0 0; background-size: cover; background-color: #e7eaf2; }
.end-art { margin: calc(-1 * max(24px, env(safe-area-inset-top))) -16px -40px; aspect-ratio: 3 / 2; background-size: cover; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }

/* dashboard hero with stage artwork: show the full upper part of the image, headline over its dark lower part */
.hero.has-art { min-height: 0; padding-top: min(36vw, 172px); background: linear-gradient(180deg, rgba(6,12,28,0) 38%, rgba(6,12,28,.55) 55%, rgba(6,12,28,.92) 72%, var(--navy) 88%), var(--img) center top / 100% auto no-repeat, var(--navy); }
.hero.has-art h1 { font-size: 25px; }

/* children of the scrolling body keep their natural height */
.body > * { flex-shrink: 0; }

/* portraits: zoom onto the face so it reads at avatar size */
.avatar.photo { background-size: 165%; }

/* vacancy costs */
.gap { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: #b3323f; margin-top: 3px; line-height: 1.3; }
.hire .gap { color: #ff9aa5; }
.tile-warn { font-style: normal; font-size: 12px; font-weight: 700; color: #b3323f; margin-top: 2px; }
.founder .gap { color: #b3323f; white-space: normal; font-size: 12.5px; }
.hire .gap { white-space: normal; text-align: left; font-size: 12.5px; }
.hire .gap { font-weight: 500; }

/* endpoints, trial record, score breakdown */
.endpoints { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.ep-head { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ep-row, .trial { display: flex; gap: 10px; align-items: flex-start; }
.ep-row b, .trial b { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--red); margin-top: 1px; }
.ep-row.ok b, .trial.ok b { background: var(--teal); } .ep-row.na b { background: #b8bfd1; }
.ep-row span, .trial span { display: flex; flex-direction: column; min-width: 0; }
.ep-row strong, .trial strong { font-size: 14.5px; } .ep-row small, .trial small { font-size: 12.5px; color: var(--muted); }
.ep-row.na strong { color: var(--muted); }
.dose-chips .met { color: #0c6b5b; font-weight: 700; } .dose-chips .miss { color: #a3323f; font-weight: 700; }
.trials { display: flex; flex-direction: column; gap: 10px; }
.score-parts { display: flex; flex-direction: column; }
.score-parts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.score-parts > div:last-child { border-bottom: 0; }
.score-parts span { display: flex; flex-direction: column; } .score-parts strong { font-size: 14.5px; } .score-parts small { font-size: 12.5px; color: var(--muted); }
.score-parts b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* disease picker, chapters, patient */
.disease-list { display: flex; flex-direction: column; gap: 10px; }
.disease { text-align: left; background: #fff; color: var(--ink); border: 2px solid transparent; border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.disease.on { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(104,87,255,.25); background: #f6f4ff; }
.disease-art { display: block; margin: -14px -14px 6px; aspect-ratio: 16 / 7; border-radius: 18px 18px 0 0; background-size: cover; }
.d-head { display: flex; gap: 6px; align-items: center; }
.d-head .tick { margin-left: auto; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); }
.chip.rare { background: var(--teal-soft); color: #0c6b5b; }
.chip .gl { color: inherit; }
.disease strong { font-size: 18px; } .disease > small { font-size: 13.5px; color: var(--muted); }
.d-facts { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.d-facts em { font-style: normal; font-weight: 700; color: var(--muted); margin-right: 6px; }
.patient-intro, .patient-card, .patient-end, .patient-moment { display: flex; gap: 12px; align-items: flex-start; }
.patient-intro { background: var(--navy2); border: 1px solid var(--line-d2); border-radius: var(--r-md); padding: 12px; }
.patient-intro p { font-size: 14.5px; color: #dfe3f3; }
.avatar.pt { background: linear-gradient(145deg, #f0a35e, #d45a7a); font-size: 17px; }
.patient-card { background: linear-gradient(135deg, rgba(240,163,94,.14), rgba(212,90,122,.12)); border: 1px solid rgba(240,163,94,.35); border-radius: var(--r-md); padding: 12px; }
.patient-card > div, .patient-end > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.patient-card small, .patient-end small { font-size: 12px; font-weight: 700; color: #f3c48f; letter-spacing: .04em; }
.patient-card p { font-size: 14.5px; }
.patient-card em, .patient-end em { font-style: normal; font-size: 12.5px; color: var(--muted-d); }
.patient-moment { background: #fff7ef; border-radius: 12px; padding: 10px 12px; }
.patient-moment p { font-size: 14px; color: var(--ink); }
.patient-moment.positive { background: var(--teal-soft); }
.patient-end { background: var(--navy2); border: 1px solid rgba(240,163,94,.4); border-radius: var(--r-lg); padding: 14px; }
.patient-end p { font-size: 15.5px; line-height: 1.45; }
.chapter { background: linear-gradient(160deg, #1d2550, #151b33); border: 1px solid rgba(138,124,255,.45); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chapter .kicker { color: #b9b0ff; } .chapter h2 { font-size: 20px; line-height: 1.2; } .chapter p { font-size: 14px; color: var(--muted-d); }
.ch-facts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ch-facts div { display: flex; flex-direction: column; gap: 2px; background: rgba(255,255,255,.05); border-radius: 10px; padding: 8px 10px; }
.ch-facts small { font-size: 12px; color: var(--faint-d); font-weight: 700; } .ch-facts span { font-size: 13.5px; }
.chapter-closed { background: linear-gradient(135deg, rgba(22,168,143,.2), rgba(104,87,255,.2)); border: 1px solid rgba(22,168,143,.5); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chapter-closed .kicker { color: #8fe3d2; }
.cc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-facts div { background: rgba(255,255,255,.07); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.cc-facts small { font-size: 12px; color: var(--faint-d); } .cc-facts strong { font-size: 17px; }
.chapter-closed p { font-size: 14px; } .chapter-closed .next { color: var(--muted-d); font-size: 13px; }
.because { font-size: 13.5px; color: var(--ink); background: #fff6e5; border-left: 3px solid var(--amber); border-radius: 6px; padding: 8px 10px; }
.because-d { display: block; margin-top: 4px; font-size: 13px; color: #f3d3a0; }
.because b, .because-d b { font-weight: 800; }
.story { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.story li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.story li:last-child { padding-bottom: 0; }
.story li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.story li:last-child::before { display: none; }
.story i { width: 14px; height: 14px; flex: none; border-radius: 50%; background: #b8bfd1; margin-top: 3px; z-index: 1; }
.story li.positive i { background: var(--teal); } .story li.danger i { background: var(--red); } .story li.caution i { background: var(--amber); }
.story div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story small { font-size: 12px; color: var(--muted); font-weight: 700; } .story strong { font-size: 14.5px; } .story span { font-size: 13px; color: var(--muted); }

.disease .patient-intro { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; background: #fff7ef; border: 0; border-radius: 12px; padding: 10px; }
.disease .patient-intro > span:last-child { font-size: 13.5px; color: var(--ink); line-height: 1.4; }

/* v21: three KPIs, cash equation, team seats and candidates */
.kpis.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis.three .kpi { padding: 10px; }
.kpis.three .kpi strong { font-size: 20px; }
.kpi.warn { border-color: rgba(229,154,47,.6); } .kpi.warn strong { color: #f3c07a; }
.history-link { display: flex; justify-content: space-between; align-items: center; width: 100%; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-sm); padding: 12px 14px; color: var(--txt-d); font: inherit; font-weight: 700; font-size: 14px; }
.history-link em { font-style: normal; font-weight: 600; color: var(--muted-d); font-size: 13px; }
.cash-eq { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 12px; }
.cash-eq span { display: flex; flex-direction: column; min-width: 0; }
.cash-eq small { font-size: 12px; color: var(--faint-d); font-weight: 600; white-space: nowrap; }
.cash-eq b { font-size: 16px; color: var(--txt-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cash-eq i { font-style: normal; color: var(--faint-d); font-weight: 700; padding-bottom: 1px; }
.cash-eq span.warn b { color: #ff9aa5; }
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv3.dark div { background: var(--navy2); border: 1px solid var(--line-d); } .kv3.dark small { color: var(--faint-d); } .kv3.dark strong { color: var(--txt-d); }
.core-team { display: flex; flex-direction: column; gap: 8px; }
.core { display: flex; gap: 12px; align-items: center; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 10px 12px; }
.core strong { display: block; font-size: 15px; } .core small { display: block; font-size: 13px; color: var(--muted-d); }
.trait { display: inline-block; vertical-align: 2px; margin-left: 4px; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(104,87,255,.14); color: var(--purple); }
.trait.bold { background: rgba(229,154,47,.18); color: #b86f10; } .trait.cautious { background: rgba(22,168,143,.16); color: #0f7f6c; }
.seats .trait.bold { color: #f3c07a; } .seats .trait.cautious { color: #8fe3d2; } .seats .trait.steady { color: #b9b0ff; }
.voice .who { font-size: 16px; }
.linkish { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.seats { display: flex; flex-direction: column; gap: 10px; }
.seat { background: var(--navy2); border: 1px dashed var(--line-d2); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.seat-head strong { display: block; font-size: 15px; } .seat-head .gap { display: block; font-style: normal; font-size: 12.5px; color: #ff9aa5; }
.cand { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line-d); padding-top: 10px; }
.cand > div { flex: 1; min-width: 0; } .cand strong { display: block; font-size: 14.5px; } .cand small { display: block; font-size: 12.5px; color: var(--muted-d); line-height: 1.35; } .cand small.tn { color: var(--faint-d); margin-top: 2px; }
.cand .btn.small { flex: none; width: auto; box-shadow: none; flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 13px; line-height: 1.2; min-height: 0; border-radius: 12px; }
.cand .btn.small em { font-style: normal; font-size: 12px; font-weight: 600; opacity: .85; }
.recruiting { font-size: 13.5px; color: #8fe3d2; font-weight: 600; }
.ev-faces { display: flex; gap: 8px; margin-bottom: 8px; }
.avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 18px; }
.event > .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.fire-who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .fire-who strong { display: block; font-size: 16px; } .fire-who small { color: var(--muted-d); font-size: 13px; }
.btn.primary.danger { background: linear-gradient(135deg, #d4505e, #a8323f); }
.endpoints .nnt { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }
.fin-window { display: flex; gap: 12px; align-items: flex-start; background: var(--navy2); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 12px; margin-bottom: 12px; }
.fin-window > div { flex: none; min-width: 78px; } .fin-window small { display: block; font-size: 12px; color: var(--faint-d); font-weight: 600; } .fin-window strong { font-size: 17px; }
.fin-window.open strong { color: #8fe3d2; } .fin-window.neutral strong { color: #f3c07a; } .fin-window.tight strong { color: #ff9aa5; }
.fin-window p { font-size: 13px; color: var(--muted-d); line-height: 1.4; margin: 0; }
.choice:disabled { opacity: .55; }
.patient-card em.pc, .patient-end em.pc { color: #f3c07a; font-style: normal; font-weight: 600; }
@keyframes flashcard { 0% { box-shadow: 0 0 0 3px var(--purple2); } 100% { box-shadow: 0 0 0 0 transparent; } }
.decision.flash { animation: flashcard 1.4s ease-out; }
@media (prefers-reduced-motion: reduce) { .decision.flash { animation: none; } }

/* Start screen: the key visual as an uncovered poster, text and buttons in a panel below */
.welcome.poster { padding: 0; background: #0b1020; overflow: hidden; }
.poster-art { position: relative; flex: 1 1 auto; min-height: 0; background: var(--welcome) no-repeat; background-size: cover; background-position: var(--pos, 50% 42%); }
.poster-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(180deg, rgba(11,16,32,0) 0%, #0b1020 100%); }
.poster-panel { flex: none; padding: 2px 22px max(20px, env(safe-area-inset-bottom)); text-align: center; }
.poster-panel .wordmark { font-size: clamp(34px, 11vw, 46px); font-weight: 900; letter-spacing: .08em; line-height: 1; margin: 0; background: linear-gradient(180deg, #ffffff 30%, #c9c2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.poster-panel .tagline { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #f3c07a; }
.poster-panel .pitch { margin: 12px auto 16px; max-width: 34ch; font-size: 14.5px; line-height: 1.45; color: #c1c8de; }
.poster-panel .welcome-actions { text-align: left; }
@media (max-height: 700px) { .poster-panel .pitch { display: none; } .poster-panel .tagline { margin-bottom: 14px; } }

/* Mode menu after the start screen */
.menu { position: relative; height: 100%; overflow-y: auto; display: flex; flex-direction: column; background: #0b1020; }
.menu-art { position: absolute; inset: 0 0 auto 0; height: 38%; background: var(--welcome) no-repeat; background-size: cover; background-position: var(--pos, 50% 40%); opacity: .55; }
.menu-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,16,32,.35) 0%, #0b1020 100%); }
.menu-head { position: relative; display: flex; align-items: center; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 18px 0; }
.wordmark.small { font-size: 18px; font-weight: 900; letter-spacing: .14em; color: #fff; }
.menu-body { position: relative; margin-top: auto; padding: 24px 18px max(22px, env(safe-area-inset-bottom)); }
.menu-body h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 16px; }
.modes { display: flex; flex-direction: column; gap: 12px; }
.mode { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 44px 16px 16px; border-radius: var(--r-lg); background: var(--navy2); border: 1px solid var(--line-d2); color: var(--txt-d); font: inherit; }
.mode strong { font-size: 17px; } .mode span { font-size: 14px; line-height: 1.4; color: var(--muted-d); } .mode em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #f3c07a; margin-top: 2px; }
.mode b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted-d); }
.mode.primary { background: #fff; color: #141a31; border-color: #fff; } .mode.primary span { color: #4b5470; } .mode.primary em { color: var(--purple); } .mode.primary b { color: var(--purple); }
.menu .hint { margin-top: 14px; font-size: 13px; color: var(--faint-d); text-align: center; }
.menu .best-line { text-align: center; }

/* ── Turn transition ── */
.transition { height: 100%; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 35%, #1c2446, #0b1020 70%); cursor: pointer; }
.tr-inner { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tr-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #f3c07a; animation: trUp .5s ease-out both; }
.tr-years { font-size: 38px; letter-spacing: -.02em; margin: 0; animation: trUp .6s .12s ease-out both; }
.tr-years b { color: var(--purple2); font-weight: 800; }
.tr-stage { font-size: 17px; color: #c1c8de; margin: 10px 0 2px; animation: trUp .6s .45s ease-out both; }
.tr-stage strong { color: #fff; }
.transition .journey { width: 100%; margin-top: 6px; animation: trUp .6s .55s ease-out both; }
.tr-data { font-size: 15px; color: #fff; font-weight: 600; margin-top: 8px; animation: trUp .6s .5s ease-out both, trPulse 1.2s .9s ease-in-out infinite; }
.tr-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 18px; }
.tr-bar i { display: block; height: 100%; background: var(--purple2); transform-origin: left; animation: trFill var(--dur, 1500ms) linear both; }
.tr-skip { font-size: 12px; color: var(--faint-d); margin-top: 4px; }
@keyframes trUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes trFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes trPulse { 50% { opacity: .55; } }

/* ── Phase dot arriving: the connector fills, the dot expands and pulses ── */
.journey li.arrive::before { transform-origin: left; animation: lineFill .7s .7s ease-out both; }
.journey li.arrive i { animation: dotArrive 1.1s 1.2s cubic-bezier(.2,.9,.3,1.4) both; }
.journey li.arrive i::after { content: ""; position: absolute; }
.journey li.arrive span { animation: labelPop .6s 1.4s ease-out both; }
.journey li.arrive { --ring: rgba(138,124,255,.55); }
.journey li.arrive i { position: relative; }
.journey li.arrive i::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--purple2); opacity: 0; animation: ring 1.4s 1.6s ease-out 2; }
@keyframes lineFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dotArrive { 0% { transform: scale(.4); background: rgba(255,255,255,.18); } 55% { transform: scale(1.5); background: #fff; box-shadow: 0 0 0 6px rgba(138,124,255,.45); } 100% { transform: scale(1); } }
@keyframes labelPop { from { opacity: .3; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* ── Readout in two beats: data first, then the verdict ── */
.readout.fresh { cursor: pointer; animation: toneIn .01s var(--t) both; }
@keyframes toneIn { from { box-shadow: inset 0 4px 0 #cfd3e2; } }
.readout.fresh .kicker { display: inline-grid; } .readout.fresh .kicker > span { grid-area: 1 / 1; }
.readout.fresh .k-wait { color: var(--muted); animation: fadeOut .2s var(--t) both; }
.readout.fresh .k-final { animation: fadeIn .3s var(--t) both; }
.stamp { margin: 6px 0 2px; font-size: 26px; font-weight: 900; letter-spacing: .06em; text-align: center; padding: 8px 10px; border-radius: 12px; }
.stamp.positive { color: var(--teal); background: var(--teal-soft); } .stamp.caution { color: #b06f10; background: var(--amber-soft); } .stamp.danger { color: var(--red); background: var(--red-soft); }
.readout.fresh .stamp { animation: stamp .55s var(--t) cubic-bezier(.2,.9,.3,1.3) both; }
.readout.fresh .rd { animation: fadeUp .6s calc(var(--t) + .45s) ease-out both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.7); } 70% { opacity: 1; transform: scale(.96); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Scenes ── */
.scene { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #070b17; animation: fadeIn .5s ease-out both; }
.sc-media { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.sc-still, .sc-bg, .sc-video { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; object-fit: cover; }
.sc-still { animation: kenBurns 9s ease-out both; }
.sc-bg { filter: blur(14px) brightness(.55); }
.sc-portrait { position: absolute; left: 50%; top: 52%; width: min(62vw, 280px); aspect-ratio: 1; border-radius: 28px; background-size: cover; background-position: 50% 35%; transform: translate(-50%, -50%); box-shadow: 0 20px 60px rgba(0,0,0,.55); border: 3px solid rgba(255,255,255,.2); animation: portraitIn 1.2s .2s cubic-bezier(.2,.9,.3,1) both; }
.sc-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(180deg, rgba(7,11,23,0), #070b17); }
.sc-caption { flex: none; padding: 0 22px max(22px, env(safe-area-inset-bottom)); text-align: center; }
.sc-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #f3c07a; animation: trUp .6s .6s ease-out both; display: inline-block; }
.scene.danger .sc-kicker { color: #ff9aa5; } .scene.positive .sc-kicker { color: #8fe3d2; }
.sc-caption h1 { font-size: 30px; letter-spacing: -.02em; margin: 6px 0 8px; animation: trUp .6s .8s ease-out both; }
.sc-caption p { font-size: 15.5px; line-height: 1.5; color: #c9cfe3; max-width: 36ch; margin: 0 auto 18px; animation: trUp .7s 1.1s ease-out both; }
.sc-caption .btn { animation: trUp .6s 1.6s ease-out both; }
@keyframes kenBurns { from { transform: scale(1.12) translateY(2%); } to { transform: scale(1); } }
@keyframes portraitIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .transition *, .journey li.arrive *, .journey li.arrive::before, .readout.fresh, .readout.fresh *, .scene, .scene * { animation: none !important; }
}

/* v24 · price slider, launch strength, access barriers */
.price .price-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 2px 0; touch-action: pan-y; }
.price-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--amber) 60%, var(--red)); }
.price-slider::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--amber) 60%, var(--red)); }
.price-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.price-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); }
.price .price-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
#price-live { display: flex; flex-direction: column; gap: 12px; }
.barriers { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.barriers.light { padding: 0; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; } .bar-head small { font-size: 12px; color: var(--muted); font-weight: 600; }
.barrier { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: start; }
.barrier i { font-style: normal; font-size: 12px; letter-spacing: 1px; padding-top: 2px; color: var(--teal); }
.barrier.l1 i { color: var(--amber); } .barrier.l2 i { color: var(--red); }
.barrier > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .barrier strong { font-size: 14px; } .barrier small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.barrier em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.barrier.l1 em { background: var(--amber-soft); color: var(--amber); } .barrier.l2 em { background: var(--red-soft); color: var(--red); }
.ls-parts { display: flex; flex-direction: column; gap: 10px; }
.ls-parts > div > span { display: flex; justify-content: space-between; gap: 8px; } .ls-parts strong { font-size: 14px; } .ls-parts small { font-size: 12px; color: var(--muted); font-weight: 600; }
.ls-parts i { display: block; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; margin-top: 4px; }
.ls-parts i b { display: block; height: 100%; background: var(--purple); border-radius: 4px; }
.ls-parts .weak i b { background: var(--red); } .ls-parts .weak strong { color: var(--red); }

/* v25 · loss of exclusivity */
.cf .cf-nom.loe { fill: #ffe3c2; } .cf .cf-pv.loe { fill: var(--amber); }
.cf .loe-line { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 3 3; } .cf .loe-t { fill: var(--amber); font-weight: 700; }
.legend i.loe { background: var(--amber); border-radius: 3px; } .legend i.patl { background: #dcdff0; border-radius: 3px; } .legend i.protl { background: var(--teal); border-radius: 3px; }
.patent .loe { fill: var(--amber); opacity: .55; } .patent .pat.dead { fill: var(--red-soft); stroke: var(--red); stroke-dasharray: 4 3; }

/* ───────── v26 · website shell around the game ───────── */
.site { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.stage { height: 100%; min-width: 0; position: relative; }
.side { display: none; }
.site .ic { width: 20px; height: 20px; flex: none; } .site .ic.s { width: 14px; height: 14px; }
.site .brand { font-weight: 900; letter-spacing: .22em; font-size: 20px; color: #fff; }
.site .dot { width: 7px; height: 7px; border-radius: 50%; background: #f0a73a; margin-left: auto; flex: none; }
.site .motto { display: flex; align-items: center; gap: 12px; color: var(--muted-d); font-size: 13px; line-height: 1.35; }
.site .motto .mark { width: 34px; height: 26px; color: #f0a73a; flex: none; }
.site .copy { background: none; border: 0; padding: 0; text-align: left; color: var(--faint-d); font-size: 12px; }
.site .copy:hover { color: var(--txt-d); text-decoration: underline; }
.socs { display: flex; gap: 10px; flex-wrap: wrap; }
.soc { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--txt-d); background: rgba(255,255,255,.06); border: 1px solid var(--line-d); }
.soc:hover { background: rgba(255,255,255,.12); }
.site-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 14px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; border: 0; }
.site-btn.ghost { background: rgba(255,255,255,.06); color: var(--txt-d); border: 1px solid var(--line-d2); width: 100%; justify-content: center; }
.site-btn.ghost:hover { background: rgba(255,255,255,.12); }

/* feed (updates and notes) */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li > button { width: 100%; display: flex; align-items: flex-start; gap: 10px; text-align: left; background: none; border: 0; padding: 10px 0; border-bottom: 1px solid var(--line-d); color: var(--txt-d); }
.feed li:last-child > button { border-bottom: 0; }
.feed li > button:hover span { color: #fff; text-decoration: underline; }
.feed i { width: 8px; height: 8px; border-radius: 50%; background: #f0a73a; flex: none; margin-top: 6px; } .feed i.n { background: var(--purple2); }
.feed div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.feed small { font-size: 12px; color: var(--faint-d); font-weight: 600; } .feed span { font-size: 13.5px; line-height: 1.35; color: var(--muted-d); }
.feed li > button .ic { margin-top: 12px; color: var(--faint-d); }
.feed.big li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-d); } .feed.big li:last-child { border-bottom: 0; }
.feed.big strong { font-size: 15.5px; color: #fff; } .feed.big span { font-size: 14px; }

/* menu button: phones and iPad portrait, only on the start screens */
.site-menu-btn { position: fixed; z-index: 40; top: calc(env(safe-area-inset-top) + 14px); right: max(14px, calc(50vw - 240px + 14px)); width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center; color: #fff; background: rgba(11,16,32,.55); border: 1px solid var(--line-d2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body[data-screen="welcome"] .site-menu-btn, body[data-screen="menu"] .site-menu-btn { display: grid; }

/* drawer (menu) */
.site-drawer { position: fixed; inset: 0; z-index: 80; background: rgba(3,6,14,.6); opacity: 0; transition: opacity .2s; }
.site-drawer.open { opacity: 1; }
.sd-panel { position: absolute; inset: 0 0 0 auto; width: min(100%, 400px); background: var(--navy2); border-left: 1px solid var(--line-d); display: flex; flex-direction: column; gap: 18px; padding: calc(env(safe-area-inset-top) + 18px) 20px calc(env(safe-area-inset-bottom) + 20px); overflow-y: auto; transform: translateX(24px); transition: transform .22s ease-out; }
.site-drawer.open .sd-panel { transform: none; }
.sd-panel > header, .sp-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 0; color: #fff; flex: none; }
.sd-nav { display: flex; flex-direction: column; }
.sd-nav button { display: flex; align-items: center; gap: 14px; padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid var(--line-d); text-align: left; color: var(--txt-d); }
.sd-nav button > span { display: flex; flex-direction: column; } .sd-nav strong { font-size: 16px; } .sd-nav small { font-size: 13px; color: var(--faint-d); }
.sd-nav .ic { width: 22px; height: 22px; color: var(--muted-d); }
.sd-follow small { display: block; font-size: 13px; color: var(--faint-d); margin-bottom: 10px; }
.sd-panel footer { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line-d); }

/* content pages */
.site-page { position: fixed; inset: 0; z-index: 90; background: rgba(3,6,14,.7); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.site-page.open { opacity: 1; }
.sp-card { width: 100%; max-height: 92%; display: flex; flex-direction: column; background: var(--navy2); border: 1px solid var(--line-d); border-radius: 22px 22px 0 0; padding: 18px 20px 0; transform: translateY(16px); transition: transform .22s ease-out; }
.site-page.open .sp-card { transform: none; }
.sp-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #f0a73a; }
.sp-card h2 { font-size: 24px; letter-spacing: -.01em; margin-top: 4px; }
.sp-body { overflow-y: auto; padding: 14px 0 calc(env(safe-area-inset-bottom) + 24px); display: flex; flex-direction: column; gap: 12px; color: var(--muted-d); font-size: 15px; line-height: 1.55; }
.sp-body h3 { font-size: 16px; color: #fff; margin-top: 8px; } .sp-body .lead { font-size: 17px; color: var(--txt-d); } .sp-body b { color: var(--txt-d); }
.sp-body .note { font-size: 13.5px; color: var(--faint-d); border-left: 3px solid #f0a73a; padding-left: 10px; }
.sp-body .site-btn { align-self: flex-start; margin-top: 4px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(240,167,58,.16); color: #f0a73a; font-weight: 800; font-size: 14px; }
.steps strong { color: #fff; } .steps span { font-size: 14px; }
.qs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--txt-d); }

/* iPad portrait and small tablets: menu as a bottom sheet, pages as centered cards */
@media (min-width: 600px) {
  .site-drawer { display: flex; align-items: flex-end; justify-content: center; }
  .sd-panel { position: relative; inset: auto; width: min(560px, 100%); max-height: 80%; border: 1px solid var(--line-d); border-radius: 22px 22px 0 0; transform: translateY(24px); }
  .sd-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .site-page { align-items: center; padding: 24px; }
  .sp-card { max-width: 580px; max-height: min(86vh, 760px); border-radius: 22px; padding: 22px 26px 0; }
}

/* iPad landscape and laptops: the game in the middle, site content on both sides */
@media (min-width: 1024px) {
  body { overflow: hidden; }
  .site { grid-template-columns: 200px minmax(360px, 440px) 240px; justify-content: center; column-gap: 28px; padding: 18px 20px; }
  .stage { height: calc(100dvh - 36px); border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.55); }
  .stage .frame { max-width: none; box-shadow: none; }
  .side { display: flex; flex-direction: column; gap: 18px; height: calc(100dvh - 36px); overflow-y: auto; padding: 14px 0; scrollbar-width: none; }
  .side.left .brand { padding: 4px 12px 10px; }
  .nav { display: flex; flex-direction: column; gap: 2px; }
  .nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: none; border: 0; color: var(--muted-d); font-size: 14.5px; font-weight: 600; text-align: left; }
  .nav button:hover { background: rgba(255,255,255,.05); color: #fff; }
  .nav button.on { background: rgba(255,255,255,.09); color: #fff; } .nav button.on .ic { color: #f0a73a; }
  .side .blurb { font-size: 13px; line-height: 1.5; color: var(--faint-d); padding-top: 14px; border-top: 1px solid var(--line-d); margin: 4px 12px 0; }
  .side .grow { flex: 1; }
  .side.left .motto, .side.left .copy { padding: 0 12px; }
  .side.right section { display: flex; flex-direction: column; gap: 4px; }
  .side.right section + section { border-top: 1px solid var(--line-d); padding-top: 16px; }
  .side.right header { display: flex; align-items: center; justify-content: space-between; }
  .side.right header strong, .side.right .fb strong { font-size: 14.5px; color: #fff; }
  .side.right header button { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: #f0a73a; font-size: 12.5px; font-weight: 700; }
  .side.right .dev { display: none; }
  .side.right .fb p { font-size: 13px; color: var(--muted-d); margin: 2px 0 10px; }
  .site-menu-btn, body[data-screen] .site-menu-btn { display: none; }
}
@media (min-width: 1280px) {
  .site { grid-template-columns: 240px minmax(380px, 460px) 280px; column-gap: 40px; padding: 22px 28px; }
  .stage, .side { height: calc(100dvh - 44px); }
  .side.right .dev { display: flex; }
}
.site-page[hidden], .site-drawer[hidden] { display: none; }
/* iPad portrait: a wider game column so the poster and dashboards use the screen */
@media (min-width: 700px) and (max-width: 1023px) {
  .frame { max-width: 640px; }
  .site-menu-btn { right: calc(50vw - 320px + 16px); }
}
.side.right .feed span.t { color: #fff; font-weight: 600; }
/* price slider: payer threshold marker, green below, red above */
.price-track { position: relative; margin-top: 18px; }
.price-track .price-slider::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--teal) 0, var(--teal) calc(var(--sp) - 4%), var(--amber) var(--sp), var(--red) calc(var(--sp) + 8%), var(--red) 100%); }
.price-track .price-slider::-moz-range-track { background: linear-gradient(90deg, var(--teal) 0, var(--teal) calc(var(--sp) - 4%), var(--amber) var(--sp), var(--red) calc(var(--sp) + 8%), var(--red) 100%); }
.wtp-mark { position: absolute; top: 2px; bottom: 2px; left: calc(15px + (100% - 30px) * var(--spn)); width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; pointer-events: none; z-index: 1; }
.wtp-mark em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 1px; }
.price .price-hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.price .pos, .kv4 .pos { color: #3ecfaf; }
.price .price-track { display: block; }

/* v29 · recruit sheet, just-added activity pulse */
.sheet .seat { background: var(--navy3); }
.leaders { display: flex; flex-direction: column; gap: 8px; }
.leaders .trait.bold { color: #f3c07a; } .leaders .trait.cautious { color: #8fe3d2; } .leaders .trait.steady { color: #b9b0ff; }
.leader-row { display: flex; gap: 10px; align-items: center; background: var(--navy3); border: 1px solid var(--line-d); border-radius: var(--r-md); padding: 10px 12px; }
.leader-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.leader-row small { font-size: 12px; color: var(--faint-d); } .leader-row strong { font-size: 14.5px; } .leader-row small.tn { color: var(--muted-d); line-height: 1.35; }
.leader-row .trait { font-size: 12px; font-weight: 700; margin-left: 4px; }
.leader-row .morale span { color: var(--muted-d); }
.leader-row .btn.small { flex: none; width: auto; min-height: 36px; padding: 6px 12px; font-size: 13px; box-shadow: none; background: transparent; color: var(--txt-d); border: 1px solid var(--line-d2); border-radius: 10px; }
.act.just-added { animation: justAdded 1.6s ease-out; }
@keyframes justAdded { 0% { box-shadow: 0 0 0 0 rgba(62,207,175,.0); transform: scale(1); } 15% { box-shadow: 0 0 0 4px rgba(62,207,175,.75); transform: scale(1.02); } 60% { box-shadow: 0 0 0 4px rgba(62,207,175,.35); transform: scale(1); } 100% { box-shadow: 0 0 0 0 rgba(62,207,175,0); } }
@media (prefers-reduced-motion: reduce) { .act.just-added { animation: none; outline: 2px solid #3ecfaf; } }

/* v30 · Tarina Readout brand, featured scenario, team header, empty evidence */
.team-hero { aspect-ratio: 3 / 2; display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(180deg, rgba(7,12,26,0) 35%, rgba(7,12,26,.9)), var(--img) center 30%/cover; }
.empty-state .es-img { width: 100%; aspect-ratio: 3 / 2; max-height: 240px; border-radius: var(--r-lg); background-size: cover; }
.welcome-actions .btn.primary.light { background: linear-gradient(180deg, #ffd34d, #f6b21a); color: #10172e; border-color: transparent; }
.site .logo { display: block; height: auto; }
.side.left .logo { width: 176px; margin: 2px 8px 14px; }
.sd-panel > header .logo { width: 168px; }
.site-logo-mobile { position: fixed; z-index: 40; top: calc(env(safe-area-inset-top) + 16px); left: max(16px, calc(50vw - 240px + 16px)); width: 132px; height: auto; display: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); pointer-events: none; }
.site-feat-pill { position: fixed; z-index: 40; top: calc(env(safe-area-inset-top) + 64px); left: max(16px, calc(50vw - 240px + 16px)); display: none; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 6px 8px 6px 10px; border-radius: 999px; border: 1px solid rgba(255,211,77,.45); background: rgba(11,16,32,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 700; }
.site-feat-pill i { width: 7px; height: 7px; border-radius: 50%; background: #ffd34d; flex: none; }
body[data-screen="welcome"] .site-logo-mobile { display: block; }
body[data-screen="welcome"] .site-feat-pill { display: inline-flex; }
@media (min-width: 700px) and (max-width: 1023px) { .site-logo-mobile, .site-feat-pill { left: calc(50vw - 320px + 18px); } .site-logo-mobile { width: 150px; } .site-feat-pill { top: calc(env(safe-area-inset-top) + 70px); } }
@media (min-width: 1024px) { body[data-screen] .site-logo-mobile, body[data-screen] .site-feat-pill { display: none; } }

.feat { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink); }
.feat-img { aspect-ratio: 16 / 7; background-size: cover; background-position: center 40%; }
.feat-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.feat-tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: #2f6fde; border-radius: 999px; padding: 2px 9px; margin-bottom: 4px; }
.feat strong { font-size: 18px; letter-spacing: -.01em; line-height: 1.2; } .feat small { font-size: 13px; font-weight: 600; color: var(--muted); }
.feat p { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.feat-foot em { font-style: normal; font-size: 12px; color: var(--muted); }
.feat .site-btn { background: #10172e; color: #fff; min-height: 40px; font-size: 14px; padding: 0 14px; gap: 6px; }
.feat .site-btn.soon { background: var(--bg); color: var(--muted); }
.feat-more { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13.5px; color: #10172e; }
.feat.compact { flex-direction: row; } .feat.compact .feat-img { aspect-ratio: auto; width: 34%; flex: none; } .feat.compact .feat-body { padding: 10px 12px; } .feat.compact strong { font-size: 15.5px; } .feat.compact .feat-foot { margin-top: 6px; }
.side.right .featured { gap: 10px; }
.sp-body .feat { margin-top: 2px; }
/* a soft top scrim on phones and iPad portrait so the logo and featured pill read on the bright sky */
@media (max-width: 1023px) { .poster-art::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; background: linear-gradient(180deg, rgba(8,12,26,.72) 0%, rgba(8,12,26,.35) 55%, rgba(8,12,26,0) 100%); pointer-events: none; } }

/* v31 · laptop and iPad landscape use the full width: panes sit at the edges, the game stays centred */
@media (min-width: 1024px) {
  .site { grid-template-columns: minmax(200px, 1fr) minmax(360px, 440px) minmax(240px, 1fr); justify-content: stretch; column-gap: 36px; padding: 18px 28px; }
  .side.left > * { width: 100%; max-width: 280px; }
  .side.left { align-items: flex-start; }
  .side.right { align-items: flex-end; }
  .side.right > * { width: 100%; max-width: 330px; }
}
@media (min-width: 1280px) {
  .site { grid-template-columns: minmax(240px, 1fr) minmax(380px, 460px) minmax(280px, 1fr); column-gap: 56px; padding: 22px 48px; }
  .side.right > * { max-width: 350px; }
}
.feat-img.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #eef0f6 0 10px, #e5e8f1 10px 20px); color: #9aa3bb; }
.feat-img.ph .ic { width: 34px; height: 34px; }
