.research-page main{display:block}.research-page h1{font-size:21px;font-weight:550;letter-spacing:-.025em;margin:5px 0}.research-page a{text-decoration:none;color:inherit}.research-page [hidden]{display:none!important}.study-status{padding:8px 20px;border-bottom:1px solid var(--line);font-size:12px;color:var(--ink-2);background:var(--surface-2)}.study-status.error{background:var(--warn-soft);color:var(--bad)}.study-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px 0}.study-heading p{margin:0 0 5px}.study-canvas{padding:0 24px}.study-canvas svg{display:block;width:100%;height:365px}.study-legend{margin:0;color:var(--muted);font-size:11px}.study-setup-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 24px}.study-setup-cards button{text-align:left;background:white;border:1px solid var(--line);border-radius:10px;padding:14px;display:grid;gap:6px;min-width:0}.study-setup-cards button[aria-pressed=true]{border:2px solid var(--ink);padding:13px}.study-setup-cards small{color:var(--muted)}.study-note{margin:16px 24px;color:var(--ink-2);font-size:12px;max-width:1100px}.study-note summary{cursor:pointer;font-weight:550}.study-node{cursor:pointer;outline:none}.study-node circle,.study-node rect,.study-node path.shape{fill:var(--surface);stroke:var(--neutral);stroke-width:1.5}.study-node:focus-visible circle,.study-node:focus-visible rect,.study-node:focus-visible path.shape{stroke:var(--focus);stroke-width:3}.study-node.bad circle,.study-node.bad rect{stroke:var(--bad);fill:var(--bad-soft)}.study-node.ok circle,.study-node.ok rect{stroke:var(--ok);fill:var(--ok-soft)}.study-node.disabled{opacity:.42}.study-node text{font:12px var(--font);fill:var(--ink)}.study-node .node-name{font-size:13px;font-weight:550}.study-node .node-detail{font-size:11px;fill:var(--muted)}.study-edge{fill:none;stroke:var(--ok);stroke-width:1.6}.study-edge.disabled{stroke:var(--line-2);stroke-dasharray:4 5}.study-edge.data{stroke:var(--ref);stroke-dasharray:2 4}.edge-label{font:10px var(--font);fill:var(--muted)}.study-packet{fill:var(--ok)}.research-risk-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;padding:12px 24px}.research-risk-grid>div{min-width:0}#research-risk-graph{width:100%;height:250px}.risk-model-box{fill:var(--surface);stroke:var(--line-2);stroke-width:1}.risk-model-label{font:12px var(--font);fill:var(--ink)}.risk-model-value{font:600 17px var(--font);fill:var(--ink)}.risk-model-small{font:10px var(--font);fill:var(--muted)}.research-projection{background:var(--surface);border:1px solid var(--line);padding:20px;border-radius:12px;align-self:start}.research-projection h2,.research-contrasts h2{font-size:15px;margin-bottom:10px}.research-projection .btn{width:100%;text-align:left;margin-top:8px;white-space:normal}.study-metric{border-bottom:1px solid var(--line);padding:12px 0;display:grid;gap:3px}.study-metric .metric-label{font-size:11px;color:var(--muted)}.study-metric strong{font-size:22px;font-weight:550;letter-spacing:-.02em}.study-metric small{font-size:11px;color:var(--ink-2)}.research-contrasts{border-top:1px solid var(--line);padding-top:18px}.research-contrasts p{font-size:12px;color:var(--ink-2)}#research-effects{display:block;width:100%;height:250px}.effect-line{stroke:var(--ok);stroke-width:3;stroke-linecap:round}.effect-dot{fill:var(--ok)}.effect-zero{stroke:var(--line-2);stroke-dasharray:3 4}.effect-text{font:11px var(--font);fill:var(--ink-2)}.effect-case{padding:10px 0;font-size:12px;border-bottom:1px solid var(--line)}.effect-case strong{font-weight:600}.effect-case small{display:block;color:var(--muted);margin-top:3px}.study-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.research-page dialog{border:1px solid var(--line);border-radius:14px;max-width:min(900px,94vw);width:850px;max-height:86vh;padding:22px}.research-page dialog::backdrop{background:#13263d4d}.research-page dialog h2{font-size:18px}.research-page dialog p{font-size:13px;color:var(--ink-2)}.research-page pre{font:11px/1.5 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);padding:12px;border:1px solid var(--line);border-radius:8px;max-height:400px;overflow:auto}.research-page table{border-collapse:collapse;width:100%;font-size:12px}.research-page th,.research-page td{text-align:left;padding:9px;border-bottom:1px solid var(--line);vertical-align:top}.research-page th{font-weight:550}.research-page .table-scroll{overflow-x:auto}.research-page .source-pill{white-space:normal;max-width:270px}.fine{font-size:12px;color:var(--muted)}
@media(max-width:750px){.research-page .topbar{gap:8px}.research-page .controls{flex-basis:100%;gap:8px}.research-page .case-field{flex:1;min-width:0}.research-page .case-field select{max-width:100%;width:100%}.research-page .field{flex-wrap:wrap;gap:3px}.research-page .field-label{font-size:9px}.research-page .topbar-end{margin-left:0}.study-heading{padding:16px 14px 0;align-items:flex-start;flex-direction:column;gap:7px}.study-heading h1{font-size:18px}.study-canvas{padding:0 10px}.study-canvas svg{height:650px}.study-setup-cards{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 14px;gap:8px}.study-note{margin:14px}.research-risk-grid{grid-template-columns:1fr;padding:10px 14px;gap:16px}#research-risk-graph{height:350px}#research-effects{height:290px}.research-projection{order:-1}.study-metric{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px}.study-metric strong{font-size:19px;text-align:right}.study-metric small{grid-column:1/-1}.study-node .node-detail{font-size:11px}.research-page dialog{padding:16px}.research-page table{min-width:540px}}

.study-examples{display:flex;flex-wrap:wrap;gap:8px;margin:0 18px}.study-examples button{border:1px solid var(--line-2);background:var(--surface)}

.study-node .node-hit{fill:transparent;stroke:none;pointer-events:all}

.research-page .study-node .node-hit{fill:transparent;stroke:none;pointer-events:all}
@media(max-width:750px){.research-page .controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}.research-page .controls .field{display:flex;min-width:0}.research-page .controls .field select{width:100%;max-width:100%}.research-page .controls .case-field{grid-column:1/-1;order:3}}
