:root{--bg:#091018;--panel:#111c2a;--panel2:#142235;--text:#eef5fb;--muted:#9fb1c3;--line:#51667c;--green:#d8f3dc;--gold:#f1d3a1}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{display:flex;flex-direction:column}button,input,select{font:inherit}button{cursor:pointer}header{flex:0 0 auto;background:#0b131d;border-bottom:1px solid #253244;padding:10px 12px;z-index:20}.head{display:flex;align-items:center;justify-content:space-between;gap:10px}.brand b{display:block;font-size:19px}.brand small{display:block;color:#9aabba;font-size:11px;margin-top:2px}.tools{display:flex;gap:5px}.tools button{border:1px solid #354a62;background:#142235;color:white;border-radius:10px;padding:8px 10px;min-width:39px}.searchrow{display:flex;gap:7px;margin-top:9px}.searchrow input{flex:1;min-width:0;border:1px solid #354a62;border-radius:11px;background:#0e1825;color:white;padding:10px 11px}.searchrow button{border:0;border-radius:11px;background:var(--green);color:#142018;font-weight:850;padding:10px 15px}.controlrow{display:flex;gap:7px;align-items:center;margin-top:8px}.filterToggle{border:1px solid #354a62;background:#111e2d;color:#dce8f4;border-radius:999px;padding:7px 10px;font-size:11px}.count,.buildChip{font-size:10px;color:#8fa3b7}.buildChip{margin-left:auto}.filters{display:flex;gap:7px;align-items:end;overflow-x:auto;scrollbar-width:none;margin-top:8px}.filters label{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#8298ad;white-space:nowrap}.filters select{display:block;margin-top:3px;border:1px solid #354a62;background:#0e1825;color:white;border-radius:9px;padding:7px;font-size:11px}.clear{border:1px solid #354a62;background:#111e2d;color:#dbe6ef;border-radius:9px;padding:7px 9px;font-size:11px}.filters.collapsed{display:none}main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 430px}.stage{position:relative;min-width:0;min-height:0;overflow:hidden;touch-action:none;background:radial-gradient(circle at 15% 10%,rgba(95,135,168,.13),transparent 34%),#091018}.world{position:absolute;left:0;top:0;width:8800px;height:7600px;transform-origin:0 0}.edges{position:absolute;inset:0;width:8800px;height:7600px;overflow:visible;pointer-events:auto}.edge{pointer-events:none;fill:none;stroke:#587086;stroke-width:2;opacity:.44}.edge.active{stroke:var(--gold);stroke-width:4;opacity:1}.edgeHit{fill:none;stroke:transparent;stroke-width:24;pointer-events:stroke;cursor:pointer}.nodes{position:absolute;inset:0;pointer-events:none}.node{pointer-events:auto;position:absolute;width:248px;min-height:108px;border:1px solid #3a526b;border-radius:15px;background:#142235;padding:11px 12px;box-shadow:0 7px 20px rgba(0,0,0,.25);touch-action:none;user-select:none}.node:hover,.node.sel{background:#1b3049;border-color:#9ab3ce}.node.hidden{display:none}.nodeTop{display:flex;align-items:center;justify-content:space-between;gap:6px}.nodeMeta{display:flex;align-items:center;gap:5px;color:#9cb0c3;font-size:10px}.flag{font-size:14px}.periodChip{font-size:9px;border:1px solid #3c5369;border-radius:999px;padding:1px 5px}.rootQ{font-size:14.5px;font-weight:850;line-height:1.25;margin:7px 0 6px}.name{font-size:11.5px;color:#c5d3de}.hint{position:absolute;left:10px;bottom:10px;border:1px solid #304359;background:rgba(12,21,32,.92);border-radius:11px;padding:7px 9px;font-size:10px;color:#9fb1c3}.starter{position:absolute;left:50%;top:18px;transform:translateX(-50%);width:min(390px,calc(100% - 24px));background:rgba(17,28,42,.96);border:1px solid #3a4f66;border-radius:15px;padding:11px 12px;z-index:3}.starter p{margin:4px 0 8px;color:#a9bac9;font-size:11.5px;line-height:1.4}.starter button,.openChild{border:0;border-radius:9px;background:var(--green);color:#142018;font-weight:850;padding:8px 10px}.starter.hide{display:none}.detail{position:relative;min-width:0;background:linear-gradient(#111c2a,#0e1722);border-left:1px solid #29384b;overflow:auto;padding:22px 20px 42px;overscroll-behavior:contain}.detailClose{display:none;position:sticky;z-index:8;top:8px;margin:0 0 -36px auto;width:36px;height:36px;border:1px solid #3b5068;border-radius:50%;background:#17273a;color:white;font-size:23px;box-shadow:0 4px 14px rgba(0,0,0,.3)}.kicker{font-size:9px;text-transform:uppercase;letter-spacing:.14em;color:#8198ad;font-weight:900}.philosopherName{font-size:14px;font-weight:850;color:#d9e5ee;margin:4px 42px 3px 0}.title{font-size:27px;line-height:1.12;letter-spacing:-.025em;margin:4px 40px 9px 0}.rootBridge{margin:0 0 14px;padding:10px 11px;border-left:3px solid #88a8c5;background:#0e1824;border-radius:0 10px 10px 0;font-size:12.5px;line-height:1.52;color:#c9d7e3}.bio{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 14px}.bio span{font-size:9.5px;border:1px solid #34485e;border-radius:999px;padding:4px 7px;color:#9fb2c5;background:#101b28}.questionBox{border:1px solid #36516a;border-radius:12px;padding:10px 11px;background:#0f1a27;margin-bottom:8px}.qLabel{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#8ba1b5;font-weight:900;margin-bottom:4px}.qText{font-size:13.5px;line-height:1.48;font-weight:750}.storyArticle{font-size:14px;line-height:1.66;color:#e0eaf3;white-space:pre-line}.storyArticle p{margin:0 0 13px}.fruitList{display:grid;gap:8px;margin-top:14px}.fruit{border-left:3px solid var(--gold);padding:8px 10px;background:#171d24;border-radius:0 9px 9px 0;font-size:12.5px;line-height:1.45;color:#f3e5c8}.sectionTitle{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#8ea4b8;margin:18px 0 8px}.parentBtn{display:inline-block;border:1px solid #3b526a;background:#152337;color:#dce8f2;border-radius:8px;padding:5px 7px;margin:0 4px 4px 0;font-size:10.5px}.leapRoute{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:7px 0 12px}.leapRoute button{border:1px solid #3c5268;background:#152438;color:#dbe7ef;border-radius:999px;padding:6px 9px;font-weight:800}.leapArrow{color:#e2c48e;font-weight:900}.leapIntro{font-size:12px;line-height:1.5;color:#a9bac9}.leapGrid{display:grid;gap:8px}.leapCard{border:1px solid #31475d;border-radius:12px;background:#111e2c;padding:10px 11px}.leapCard .label{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#8da2b6;font-weight:900;margin-bottom:4px}.leapCard p{margin:0;color:#dce6ee;font-size:12.5px;line-height:1.5}.leapCard.leap{border-color:#6b826e;background:#122219}.conceptNote{font-size:10px;color:#8095a9;line-height:1.4;margin-top:12px}.healthOverlay{position:fixed;z-index:99999;left:8px;right:8px;bottom:8px;max-height:42vh;overflow:auto;padding:10px 12px;border-radius:12px;font:12px/1.4 ui-monospace,monospace;background:#07110d;color:#b7f5c7;border:1px solid #3a7350}.healthOverlay.fail{background:#1c0a0a;color:#ffcaca;border-color:#8b4646}@media(max-width:900px){header{padding:9px 10px}.brand small{font-size:10px}.tools #fit{display:none}main{display:block;position:relative}.stage{height:100%}.detail{position:absolute;z-index:30;left:7px;right:7px;bottom:7px;height:min(48vh,600px);max-height:48vh;border:1px solid #354a62;border-radius:20px;background:#101a27;padding:14px 14px 30px;box-shadow:0 -18px 55px rgba(0,0,0,.48);transform:translateY(calc(100% + 18px));transition:transform .2s ease}.detail.open{transform:translateY(0)}.detailClose{display:block}.title{font-size:25px}.node{width:250px}.hint{left:8px;right:8px;text-align:center}.storyArticle{font-size:13.5px}.filters.collapsed{display:none}}@media(min-width:901px){.filterToggle{display:none}.filters{display:grid!important}}
/* Story v3: named inspiration sources with direct node jumps */
.inspirationBlock{margin:14px 0 10px;display:grid;gap:8px}.inspirationCard{border:1px solid #d7e1ea;border-radius:12px;padding:10px 12px;background:#f8fbfd}.inspirationBtn{border:0;background:transparent;padding:0;margin:0 0 5px;color:#0f5d82;font-weight:800;font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.inspirationBtn:hover{color:#073c56}.inspirationCard .qText{line-height:1.4}.theirQuestion{margin-top:10px}.storyArticle p{margin:0 0 14px;line-height:1.58}.storyArticle p:last-child{margin-bottom:0}
/* Idea-first filters: a wrapping panel on phones, with context kept secondary. */
#filters{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px;overflow-x:hidden;overflow-y:auto;max-height:38vh;padding:4px 2px 10px;scrollbar-width:thin}
#filters.collapsed{display:none}.exploreTitle{font-size:14px}.explorePrimary,.exploreContextFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#filters label{display:block;min-width:0;white-space:normal;font-size:14px;text-transform:none;letter-spacing:normal;color:#b8c9d8;line-height:1.35}
#filters select,#filters input[type="search"]{display:block;width:100%;min-width:0;max-width:none;min-height:44px;margin-top:5px;border:1px solid #354a62;border-radius:10px;background:#0e1825;color:#edf5fb;padding:8px;font-size:14px}
#filters select:disabled{opacity:.5}.exploreContext{border-top:1px solid #26394c;padding-top:8px}.exploreContext summary{font-size:14px;color:#b8c9d8;cursor:pointer}.exploreContextFields{padding-top:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.filterWorldviewRow{display:flex;align-items:center;justify-content:space-between;gap:10px}.filterWorldviewRow label{display:flex!important;align-items:center;gap:8px}.filterWorldviewRow input{width:18px;height:18px;flex:0 0 18px;accent-color:#86dca4}.filterWorldviewRow small{font-size:12px;color:#94aabd;white-space:nowrap}.filterWorldviewRow button,#filters .clear,.filterEmpty button,.wbShowTree{border:1px solid #4b687e;border-radius:10px;background:#172a3b;color:#dce9f4;padding:9px 12px;font-size:14px;min-height:42px}
.filterAssumptionInfo{border:1px solid #354a62;background:#101d2a;border-radius:10px;padding:9px 10px;font-size:14px;line-height:1.4}.filterAssumptionInfo p{margin:0 0 8px}.filterAssumptionInfo small{color:#a6b6c5;font-size:12px}.filterLegend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-bottom:7px;font-size:13px}.filterLegend .accept{color:#90e3b3}.filterLegend .reject{color:#ffadb4}.filterLegend .unknown{color:#b1bcc8}
.filterSummary{color:#aec1d2;font-size:13px;line-height:1.45}.filterChips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.filterChips button{max-width:100%;text-align:start;border:1px solid #40617b;border-radius:8px;background:#172b3d;color:#dce9f4;padding:7px 9px;font-size:13px;overflow-wrap:anywhere}.filterChips button span{margin-inline-start:6px}.filterChips:empty{display:none}
.node.exploreHidden{display:none!important}.node.stanceAgree{border-color:#75d69e;background:#163529}.node.stanceDisagree{border-color:#ee8a94;background:#3a222b}.node.stanceUnknown{border-style:dashed;border-color:#7d8b9a;background:#1b2530}.node.worldviewMatched{box-shadow:inset 4px 0 0 #75d69e,0 7px 20px rgba(0,0,0,.25)}.node.worldviewUnknown{box-shadow:inset 4px 0 0 #7d8b9a,0 7px 20px rgba(0,0,0,.25)}
.filterEmpty{position:absolute;inset:20px 12px auto;z-index:5;max-width:420px;margin:auto;padding:18px;border:1px solid #425b71;border-radius:14px;background:#101d2a;text-align:center;font-size:16px}.filterEmpty p{font-size:14px;color:#adbfce;line-height:1.4}.filterEmpty[hidden],.filterAssumptionInfo[hidden]{display:none}.wbShowTree{display:block;width:100%;margin-top:10px;background:#d8f3dc;color:#142018;font-weight:700}
@media(min-width:901px){#filters.collapsed{display:grid}.explorePrimary{grid-template-columns:repeat(4,minmax(0,1fr))}.controlrow{flex-wrap:wrap}.layoutEditToggle{margin-inline-start:auto}}
@media(max-width:900px){.exploreContextFields{grid-template-columns:repeat(2,minmax(0,1fr))}.filterWorldviewRow{align-items:stretch;flex-direction:column}.filterWorldviewRow button{align-self:flex-start}#filters{max-height:34vh}.buildChip{display:none}.count{font-size:12px}.featureViewBtn{font-size:14px!important;min-height:38px}.filterToggle,.layoutEditToggle{font-size:14px!important}.controlrow .languageSelect{font-size:14px}.layoutEditToggle{order:4}}

@media(max-width:900px){.detail{height:min(48vh,60%);max-height:60%}}

.filterSelectionNote{border:1px solid #8a775c;border-radius:10px;padding:9px 10px;margin:10px 0;background:#28221b;font-size:14px}.filterSelectionNote p{margin:0 0 8px}.filterSelectionNote button{border:1px solid #8a775c;border-radius:8px;background:#3c3123;color:#f0e2ce;padding:8px;font-size:14px}
/* Long starting questions belong in a searchable, viewport-bounded picker. */
#filters #filterQuestionBranch[hidden]{display:none!important}.branchQuestionField{min-width:0;color:#b8c9d8;font-size:14px;line-height:1.35}
#branchQuestionTrigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin-top:5px;padding:8px 10px;border:1px solid #354a62;border-radius:10px;background:#0e1825;color:#edf5fb;text-align:start;font-size:14px}
#branchQuestionTrigger>span:first-child{min-width:0}.branchQuestionField b{display:block;font-weight:500;overflow-wrap:anywhere}.branchQuestionField small{display:block;color:#94aabd;font-size:12px;margin-top:3px}
.branchPicker{position:fixed;inset-inline:0;top:var(--branch-center-y,50%);bottom:auto;transform:translateY(-50%);margin:0 auto;padding:0;width:min(720px,calc(100% - 32px));max-width:calc(100% - 32px);height:min(720px,calc(var(--branch-vh,100dvh) - 32px));max-height:calc(var(--branch-vh,100dvh) - 32px);border:1px solid #47627b;border-radius:20px;overflow:hidden;background:#101b28;color:#edf5fb;color-scheme:dark;box-shadow:0 24px 90px #0009;overscroll-behavior:contain}
.branchPicker[open]{display:flex;flex-direction:column}.branchPicker::backdrop{background:rgba(3,9,16,.76)}
.branchPickerHeader{display:flex;align-items:flex-start;gap:16px;padding:20px 20px 12px;flex:0 0 auto}.branchPickerHeader>div{flex:1;min-width:0}.branchPicker h2{font-size:22px;line-height:1.25;margin:0 0 8px}.branchPickerHeader p{font-size:14px;line-height:1.5;color:#a7bdcf;margin:0;overflow-wrap:anywhere}
#branchPickerClose{flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #405870;border-radius:12px;background:#17273a;color:#edf5fb;font-size:26px}
.branchPickerSearchLabel{display:block;margin:0 20px 12px;font-size:13px;line-height:1.4;color:#b6c9d8;flex:0 0 auto}.branchPickerSearchLabel input{display:block;width:100%;min-width:0;margin-top:5px;min-height:44px;border:1px solid #47627b;border-radius:12px;background:#09131f;color:#edf5fb;padding:10px 12px;font-size:16px}
.branchPickerList{overflow-y:auto;overscroll-behavior:contain;flex:1 1 0;min-height:0;padding:2px 20px 14px;scrollbar-width:thin}.branchChoice{display:grid;grid-template-columns:minmax(0,1fr) 22px;align-items:start;gap:14px;margin-bottom:10px;padding:15px;border:1px solid #354c63;border-radius:14px;background:#142235;cursor:pointer;text-align:start}
.branchChoice:last-child{margin-bottom:0}.branchChoice:hover{border-color:#8aa9c4}.branchChoice.selected{border-color:#95d7ac;background:#19362b}.branchChoice input{width:20px;height:20px;margin:3px 0 0;accent-color:#95d7ac;cursor:pointer}.branchQuestion{display:block;font-size:18px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}.branchName{display:block;font-size:14px;line-height:1.4;color:#bacddd;margin-top:8px;overflow-wrap:anywhere}.branchCount{display:inline-block;border:1px solid #466177;border-radius:999px;padding:3px 8px;margin-top:10px;color:#d0e0ed;font-size:12px;line-height:1.4}.branchChoice.selected .branchCount{border-color:#638c73;color:#c4ebcf}
#branchPickerEmpty{margin:0 20px 16px;color:#b6c9d8;font-size:15px}#branchPickerEmpty[hidden]{display:none}.branchPickerFooter{flex:0 0 auto;padding:12px 20px 18px;border-top:1px solid #30465b;background:#101b28}.branchPickerFooter p{font-size:13px;color:#b6c9d8;line-height:1.4;margin:0 0 10px;overflow-wrap:anywhere}.branchPickerFooter>div{display:flex;justify-content:flex-end;gap:10px}.branchPickerFooter button{min-height:44px;border:1px solid #47627b;border-radius:11px;padding:10px 16px;background:#17273a;color:#edf5fb;font-size:15px}.branchPickerFooter #branchPickerApply{background:#d8f3dc;color:#142018;border-color:#d8f3dc;font-weight:700}
.branchPicker button:focus-visible,.branchPicker input:focus-visible,#branchQuestionTrigger:focus-visible,.branchChoice:focus-within{outline:2px solid #a7e6bf;outline-offset:3px}
@media(max-width:600px){.branchPicker{width:calc(100% - 16px);max-width:calc(100% - 16px);height:calc(var(--branch-vh,100dvh) - 16px);max-height:calc(var(--branch-vh,100dvh) - 16px);border-radius:18px}.branchPickerHeader{padding:16px 14px 10px;gap:10px}.branchPicker h2{font-size:20px}.branchPickerHeader p{font-size:13px}.branchPickerSearchLabel{margin:0 14px 10px}.branchPickerList{padding:2px 14px 12px}.branchChoice{padding:13px}.branchQuestion{font-size:17px}.branchPickerFooter{padding:10px 14px max(12px,env(safe-area-inset-bottom))}.branchPickerFooter button{flex:1;padding:10px 12px}}
.branchPicker.compact .branchPickerHeader{padding:10px 14px 6px}.branchPicker.compact .branchPickerHeader p{display:none}.branchPicker.compact h2{font-size:18px}.branchPicker.compact .branchPickerSearchLabel{margin-bottom:6px}.branchPicker.compact .branchPickerFooter{padding:8px 14px}.branchPicker.compact .branchPickerFooter p{margin-bottom:5px}
.branchPicker.tight .branchPickerFooter p,.branchPicker.tight .branchPickerSearchLabel>span{display:none}.branchPicker.tight h2{margin-bottom:0;font-size:17px}.branchPicker.tight .branchPickerSearchLabel input{margin-top:0}
