:root{color-scheme:dark;--bg:#080c17;--surface:#0d1322;--surface2:#10192a;--panel:#0b1120;--border:#25304a;--text:#e9eefc;--muted:#8998b6;--teal:#29d9bc;--violet:#9b89ff;--blue:#7d99ff;--pink:#da8bff;--gold:#f0cc77;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:13px}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}a{color:#a5b6ff;text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}.app-shell{display:grid;grid-template-columns:295px minmax(400px,1fr) 330px;min-height:100vh}.sidebar{display:flex;flex-direction:column;background:#0b1120;border-right:1px solid var(--border);min-height:100vh;min-width:0}.brand{height:95px;display:flex;align-items:center;gap:13px;padding:24px 24px 20px;border-bottom:1px solid var(--border)}.brand strong{font-size:22px;font-weight:750;letter-spacing:-.8px}.brand strong span{color:#9f8cff}.brand small{display:block;margin-top:5px;letter-spacing:2.2px;color:#77839d;font-size:8.5px;font-weight:750}.brand-mark{display:grid;width:35px;height:35px;grid-template-columns:1fr 1fr;gap:5px;transform:rotate(-12deg)}.brand-mark i{display:block;border-radius:6px;background:#7675ed}.brand-mark i:nth-child(2){background:#38c9be}.brand-mark i:nth-child(3){background:#a38aff}.brand-mark i:nth-child(4){background:#455baf}.sidebar-section{padding:20px 21px;border-bottom:1px solid var(--border)}.section-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1.65px;font-weight:790;color:#a0abc8}.pill-small{font-size:9px;color:#8be1ca;border:1px solid #265c58;padding:5px 8px;border-radius:6px;background:#12332f;letter-spacing:.7px}.subtle{color:#7b8aa6;font-size:12px;margin:10px 0 0}.field-label{display:block;color:#c5d0e6;font-size:12px;font-weight:650;margin-bottom:11px}.search-section input{width:100%;border-radius:8px;background:#121d32;border:1px solid #2e3d59;color:#e9efff;outline:0;padding:13px 12px;transition:border-color .2s}.search-section input:focus{border-color:#8f8af2;box-shadow:0 0 0 3px #7777d520}.search-section input::placeholder{color:#667795}.primary{border:0;border-radius:8px;background:linear-gradient(105deg,#7868e9,#9c77ef);color:white;padding:12px 14px;font-size:12px;font-weight:740;box-shadow:0 8px 24px #6e5cd329}.primary:hover{filter:brightness(1.12)}.full{width:100%;margin-top:11px}.full span{font-size:18px;vertical-align:-1px;margin-right:6px}.quick-queries{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:16px}.quick-queries span{font-size:10px;color:#7e8ca7;width:100%}.quick-queries button{border:1px solid #34415e;background:#141f34;color:#aebce0;border-radius:7px;padding:6px 9px;font-size:10px}.results-area{flex:1;overflow:auto;border-bottom:0}.count-badge{font-size:10px;letter-spacing:0;border:1px solid #34405c;border-radius:5px;padding:3px 6px;color:#c7d3f0}.results-list{margin-top:13px;display:flex;flex-direction:column;gap:7px}.placeholder-text{color:#7d8aa4;line-height:1.7;font-size:12px}.result{display:block;text-align:left;padding:12px 13px;border:1px solid #273752;background:#111b2e;border-radius:10px;color:var(--text);width:100%}.result:hover,.result.active{border-color:#8889ed;background:#192542}.result strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:680;line-height:1.4}.result small{display:block;margin-top:7px;color:#8294b8;font-size:10px}.sidebar-bottom{padding:17px 20px;border-top:1px solid var(--border);font-size:10px;color:#7887a3}.sidebar-bottom p{line-height:1.6;margin:8px 0 0}.privacy{color:#92adba;display:flex;gap:8px;align-items:center}.dot{background:#32d0a9;display:inline-block;width:7px;height:7px;border-radius:50%;box-shadow:0 0 10px #32d0a94f;flex:0 0 auto}.main{min-width:0;display:flex;flex-direction:column}.topbar{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:145px;padding:28px 37px 24px;border-bottom:1px solid var(--border)}.overline{font-weight:780;letter-spacing:1.85px;color:#8f93af;font-size:10px}.diamond{color:#a99aff;font-size:14px}.topbar h1{font-size:27px;letter-spacing:-.9px;margin:9px 0 7px;font-weight:720}.topbar p{color:#8695b4;margin:0;font-size:12px}.outline{background:#121b2c;color:#bdc9e8;border:1px solid #354362;border-radius:8px;padding:10px 14px;font-size:11px;font-weight:720}.outline:hover:not(:disabled){border-color:#a4a2ed}.workspace{margin:28px 25px 0;flex:1;display:flex;flex-direction:column;min-height:620px;border:1px solid #263351;border-radius:15px;overflow:hidden;background:#0a1020;box-shadow:0 16px 55px #0003}.canvas-header{height:68px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 20px;background:#0e1728;border-bottom:1px solid #263351}.mode-switch{display:flex;gap:4px;background:#0a1120;padding:4px;border:1px solid #293751;border-radius:9px}.mode-switch button{background:transparent;color:#8d9cba;border:0;padding:8px 13px;font-size:11px;border-radius:6px;white-space:nowrap}.mode-switch button.active{background:#293450;color:#e4eaff;box-shadow:0 2px 8px #0004}.canvas-count{font-size:10px;color:#8091b0;white-space:nowrap}.canvas-count span:not(:nth-child(2)){color:#dde6ff;font-weight:740}.canvas-count span:nth-child(2){padding:0 5px}.graph-wrap{position:relative;flex:1;min-height:460px;overflow:hidden;background:radial-gradient(ellipse at 50% 46%,#172143 0%,#0c1429 42%,#09101e 82%)}.graph-glow{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#29365688 1px,transparent 1px);background-size:28px 28px;mask-image:radial-gradient(ellipse at center,black 5%,transparent 90%)}#graph{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:none;cursor:grab}#graph.dragging{cursor:grabbing}#links{pointer-events:none}.edge{stroke:#6975ac;stroke-opacity:.42;stroke-linecap:round;fill:none}.edge.citation{stroke:#91a5d1;stroke-opacity:.56}.edge.similarity.related{stroke-dasharray:4 7;stroke:#6175a6;stroke-opacity:.42}.edge.highlight{stroke:#4addd2;stroke-opacity:.95}.node{cursor:pointer;outline:none}.node .node-halo{fill:#8a75ff;fill-opacity:.07;stroke:#8a75ff;stroke-opacity:.12;stroke-width:1}.node .node-core{fill:#8b80e8;stroke:#c8c4fa;stroke-width:1.8}.node.recent .node-core{fill:#3dc1bf;stroke:#9effee}.node.middle .node-core{fill:#7a8ef3;stroke:#bec8ff}.node.older .node-core{fill:#a28ce8;stroke:#e1c6ff}.node.seed .node-core{fill:#b1a0fb;stroke:#fff;stroke-width:2.8}.node.selected .node-halo{fill-opacity:.19;stroke-opacity:.9;stroke-width:2.5}.node.dim{opacity:.29}.node .node-label{fill:#c9d5f2;font-size:12px;font-weight:650;text-anchor:middle;paint-order:stroke;stroke:#0b1325;stroke-width:4px;stroke-linejoin:round}.node .node-year{fill:#9aaed0;font-size:10px;text-anchor:middle;paint-order:stroke;stroke:#0b1325;stroke-width:3px}.node .landmark{fill:#f6d58a;font-size:19px;text-anchor:middle;paint-order:stroke;stroke:#0b1325;stroke-width:3px}.empty-state,.loading-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:22px}.empty-art{height:180px;width:220px;position:relative}.orbit{display:block;position:absolute;left:37px;top:29px;width:145px;height:130px;border:1px dashed #4d587e;border-radius:50%;transform:rotate(-26deg)}.orbit-two{transform:rotate(64deg);border-color:#485a89}.planet{position:absolute;width:20px;height:20px;border-radius:50%;box-shadow:0 0 38px #9b82ff55;background:#a39dff}.planet-one{left:94px;top:76px;width:43px;height:43px}.planet-two{left:42px;top:47px;background:#30c5bb}.planet-three{left:172px;top:119px;background:#658efa}.empty-eyebrow{color:#7a8abb;letter-spacing:2.4px;font-size:10px;font-weight:800}.empty-state h2{font-size:25px;margin:11px 0}.empty-state p{max-width:410px;color:#8b9bb9;line-height:1.75;font-size:12px}.loading-state{gap:14px;background:#0b1426dc}.loading-state strong{font-size:17px}.loading-state small{color:#92a1bc}.spinner{display:block;width:35px;height:35px;border:3px solid #384769;border-top-color:#aaa0ff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-state{position:absolute;top:20px;left:50%;transform:translateX(-50%);background:#381c30;color:#ffcfdb;border:1px solid #95475a;border-radius:8px;padding:12px 16px;max-width:80%;z-index:3}.zoom-controls{position:absolute;right:17px;bottom:18px;display:flex;gap:5px}.zoom-controls button{background:#1a2540;color:#d2daf1;border:1px solid #364460;border-radius:7px;width:32px;height:32px;font-size:16px}.zoom-controls button:hover{background:#29395c}.graph-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap;padding:12px 15px;border-top:1px solid #283553;background:#0e1728;min-height:49px}.legend{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.legend-item{font-size:10px;color:#9babc8;white-space:nowrap;display:flex;align-items:center;gap:5px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.seed-dot{background:#cbb5ff}.recent-dot{background:#3dc1bf}.middle-dot{background:#8193ff}.older-dot{background:#a48df2}.legend-star{color:#f4d287;font-size:14px}.canvas-tip{font-size:10px;color:#7286a7}.below{display:flex;gap:12px;margin:16px 27px 26px;color:#8094b6;line-height:1.6}.below strong{color:#aab9d4;font-size:11px}.below p{margin:4px 0;font-size:11px}.warning-glyph{font-size:18px;color:#9b9ed3}.inspector{background:#0c1220;border-left:1px solid var(--border);min-width:0;display:flex;flex-direction:column;min-height:100vh}.inspector-head{height:110px;padding:29px 22px 18px;border-bottom:1px solid var(--border)}.inspector-head h2{font-size:18px;margin:10px 0 0;letter-spacing:-.4px}.detail-body{padding:22px;overflow:auto;flex:1}.detail-empty{margin-top:70px;text-align:center;color:#8898b5}.detail-icon{border:1px solid #34415e;color:#9a92df;display:flex;margin:auto;align-items:center;justify-content:center;width:64px;height:64px;border-radius:19px;font-size:35px;background:#17213a}.detail-empty h3{color:#d3ddf0;margin:20px 0 8px;font-size:14px}.detail-empty p{line-height:1.75;font-size:12px}.inspector-foot{padding:18px 22px;border-top:1px solid var(--border);display:flex;gap:9px;align-items:center;color:#8292b0;font-size:11px}.paper-topline{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:12px}.tag{font-size:10px;font-weight:700;padding:5px 8px;color:#b9c5e5;background:#1a263c;border:1px solid #364765;border-radius:6px}.tag.landmark-tag{background:#3b3022;border-color:#796643;color:#f4d18a}.tag.retracted-tag{background:#47222c;border-color:#98515d;color:#ffb2bd}.paper-title{font-size:17px;line-height:1.45;letter-spacing:-.25px;margin:0 0 10px;font-weight:740;overflow-wrap:anywhere}.paper-authors{font-size:11px;color:#9aabc9;line-height:1.65}.paper-source{font-size:11px;color:#94a6c3;margin:9px 0 18px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.metric{background:#141e30;border:1px solid #2c3b55;padding:13px 11px;border-radius:9px}.metric b{display:block;font-size:19px;font-variant-numeric:tabular-nums}.metric span{display:block;color:#8494b0;font-size:10px;margin-top:5px}.metric.accent b{color:#86e5d2}.detail-section{border-top:1px solid #29364f;margin-top:18px;padding-top:17px}.detail-section h4{margin:0 0 12px;font-size:10px;font-weight:800;letter-spacing:1.2px;color:#9daccb}.detail-section p{font-size:11px;line-height:1.8;color:#a9b9d4;white-space:pre-line;overflow-wrap:anywhere}.detail-section .explain{color:#7e91af;font-size:11px;line-height:1.65}.paper-link{display:block;border:1px solid #374866;border-radius:8px;padding:11px;color:#b7c7ef;font-size:11px;margin:8px 0;overflow-wrap:anywhere}.paper-link:hover{background:#1b2842}.score-bar{height:7px;border-radius:5px;overflow:hidden;background:#28334b;margin:10px 0}.score-bar span{display:block;background:linear-gradient(90deg,#6977d7,#e4bc73);height:100%;border-radius:5px}.status-line{font-size:11px;color:#7e91ae;margin:12px 0}.retraction-banner{padding:10px;border:1px solid #894758;color:#ffc2c9;border-radius:7px;background:#3b2433;line-height:1.5;margin:12px 0}@media(max-width:1250px){.app-shell{grid-template-columns:270px minmax(350px,1fr) 285px}.workspace{margin:20px 16px 0}.topbar{padding:22px}.topbar h1{font-size:23px}.canvas-tip{display:none}}@media(max-width:960px){.app-shell{grid-template-columns:260px minmax(300px,1fr)}.inspector{grid-column:1/-1;min-height:0;border-top:1px solid var(--border);border-left:0}.inspector-head{height:auto;padding:20px}.detail-body{padding:20px}.detail-empty{margin:16px}.sidebar{min-height:710px}.workspace{min-height:580px}}@media(max-width:670px){.app-shell{display:block}.sidebar{min-height:0}.brand{height:75px}.results-area{max-height:300px}.main{min-height:640px}.topbar{min-height:0;padding:22px 16px;align-items:flex-start}.topbar h1{font-size:20px}.topbar p{max-width:280px;line-height:1.5}.top-action{display:none}.workspace{margin:12px 8px 0;min-height:490px}.canvas-header{padding:10px;height:auto;flex-wrap:wrap}.mode-switch button{padding:8px 9px}.graph-wrap{min-height:390px}.graph-bottom{padding:12px}.below{margin:15px 12px 22px}.inspector{min-height:0}.node .node-label{font-size:13px}}

.score-0{width:0%}.score-1{width:10%}.score-2{width:20%}.score-3{width:30%}.score-4{width:40%}.score-5{width:50%}.score-6{width:60%}.score-7{width:70%}.score-8{width:80%}.score-9{width:90%}.score-10{width:100%}

.search-section select{width:100%;margin-bottom:10px;background:#121d32;border:1px solid #30415e;color:#cbd7f3;padding:11px 10px;border-radius:8px;outline:0}.search-section select:focus{border-color:#8f8af2}

#fieldSelect:disabled{opacity:.48;cursor:not-allowed}.sidebar-section .field-label{margin-bottom:8px}.detail-section .paper-topline{margin:5px 0 0}.detail-section .paper-topline .tag{white-space:normal;line-height:1.45}

/* 0.2.1 midnight-blue visual identity: blue-toned surfaces, cyan highlights. */
:root{--bg:#061327;--surface:#0b1c34;--surface2:#102440;--panel:#0a1930;--border:#223d60;--text:#e8f4ff;--muted:#90a9c6;--violet:#6baff2;--blue:#69b5ff;--teal:#40d6d4}
body{background:#061327}
.sidebar{background:#091a32}.inspector{background:#0a1a31}
.brand strong span{color:#75bdfd}.brand-mark i{background:#2e8cce}.brand-mark i:nth-child(2){background:#28b6d3}.brand-mark i:nth-child(3){background:#6cb9fb}.brand-mark i:nth-child(4){background:#28558b}
.primary{background:linear-gradient(110deg,#1469b4,#2797cb);box-shadow:0 8px 25px #0475b52a}
.search-section input,.search-section select{background:#10233d;border-color:#284463}
.search-section input:focus,.search-section select:focus{border-color:#50b2ee;box-shadow:0 0 0 3px #168ac527}
.quick-queries button{background:#112b47;border-color:#305376}
.workspace{background:#08192f;border-color:#274766}.canvas-header,.graph-bottom{background:#0c213b;border-color:#294565}
.mode-switch{background:#081a31;border-color:#2e5071}.mode-switch button.active{background:#1d4c75;color:#e5f5ff}
.graph-wrap{background:radial-gradient(ellipse at 50% 45%,#153c64 0%,#0b2543 45%,#07162b 85%)}
.graph-glow{background-image:radial-gradient(#31608a77 1px,transparent 1px)}
.node .node-halo{fill:#328bda;stroke:#72bffd}.node .node-core{fill:#368ad0;stroke:#9bd3ff}.node.recent .node-core{fill:#1ab3c4;stroke:#a4f3fa}.node.middle .node-core{fill:#438de2;stroke:#b6dbff}.node.older .node-core{fill:#6e8ec5;stroke:#d2e2ff}.node.seed .node-core{fill:#58b1f6;stroke:white}.node.selected .node-halo{fill:#42baff;stroke:#c2efff;fill-opacity:.19}
.edge{stroke:#5791c2}.edge.citation{stroke:#86b5e5}.edge.highlight{stroke:#4bdbed}
.node .node-label,.node .node-year{stroke:#091b32}.node .landmark{stroke:#091b32}
.metric{background:#112a45;border-color:#2a5073}.metric.accent b{color:#68d5ef}.tag{background:#173453;border-color:#315777}.outline{background:#102943;border-color:#345a7c}.paper-link{border-color:#345a7c}.paper-link:hover{background:#163b5d}
.root-ribbon{display:flex;align-items:center;gap:10px;padding:10px 18px;background:#102a49;border-bottom:1px solid #294b6a;min-height:42px;flex-wrap:wrap}
.root-ribbon span{font-size:9px;letter-spacing:1.25px;color:#69b9ed;font-weight:800}.root-ribbon strong{font-size:11px;color:#dceeff;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:65%}.root-ribbon small{font-size:10px;color:#7f9ebb}
.root-action-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.root-state{font-size:10px;color:#94b4d3}.root-current{color:#79d5f3}.root-button{background:#176ba7;border:1px solid #48a5da;border-radius:8px;color:#f3faff;font-weight:700;font-size:11px;padding:10px 12px}.root-button:hover{background:#2289c5}
@media(max-width:650px){.root-ribbon{gap:6px}.root-ribbon strong{max-width:100%;flex-basis:100%}.root-ribbon small{display:none}}

/* Stage 0.2.2: network arrangement controls, midnight-blue native controls */
.layout-bar{display:flex;align-items:center;gap:9px;padding:10px 17px;background:#0b2039;border-bottom:1px solid #24445e;flex-wrap:wrap;min-height:50px}
.layout-bar>label:first-child{font-size:11px;font-weight:750;color:#a7cdea}
.layout-bar select{background:#133651;border:1px solid #345f7f;color:#edf7ff;border-radius:7px;padding:7px 10px;font-size:11px;max-width:250px}
.layout-bar button{background:#1a547e;border:1px solid #377aa9;color:#ecf8ff;border-radius:7px;padding:7px 11px;font-size:11px;font-weight:720}
.layout-bar button:hover{background:#2473a1}
.layout-bar .motion-label{display:flex;align-items:center;gap:6px;color:#bed7eb;font-size:11px;white-space:nowrap;cursor:pointer}
.layout-bar input{accent-color:#4db7e8;width:14px;height:14px;margin:0}
.layout-caption{font-size:10px;color:#779ebc}
@media(max-width:1400px){.layout-caption{display:none}}
@media(prefers-reduced-motion:reduce){.node,.edge{transition:none!important}}

/* Stage 0.3A: author and institution profile inspector */
.profile-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.profile-pill{border:1px solid #345c81;background:#112f4e;color:#d8edff;border-radius:7px;padding:8px 10px;text-align:left;font-size:11px;cursor:pointer}.profile-pill:hover,.profile-row:hover{border-color:#63b8e8;background:#18476c}.profile-row{display:block;width:100%;text-align:left;cursor:pointer;background:#112941;border:1px solid #2f5476;color:#cbe6ff;padding:10px 11px;border-radius:8px;font-size:11px;margin:7px 0;line-height:1.45}.secondary-button{background:#17324a;border-color:#3b6381}.profile-scope{color:#91afcb;line-height:1.6;font-size:11px;margin:5px 0 18px}.topic-row{border-bottom:1px solid #23405c;padding:9px 0;display:flex;flex-direction:column;gap:4px}.topic-row strong{color:#d5edff;font-size:11px}.topic-row span{color:#88a7c4;font-size:10px}.profile-chart{width:100%;max-width:320px;margin:10px 0 4px;background:#102b46;border:1px solid #284e73;border-radius:8px;padding:8px}.profile-bar{fill:#48aee8}.chart-year{font-size:11px;fill:#9ac7e4}.top-work{padding:9px 0;border-bottom:1px solid #25405d;display:flex;flex-direction:column;gap:5px}.top-work strong{font-size:11px;line-height:1.5;color:#d6edff}.top-work span{font-size:10px;color:#90aac5}.profile-small{align-self:start;background:#173a5a;border:1px solid #396c91;border-radius:6px;color:#cceaff;padding:7px;font-size:10px;cursor:pointer}

.support-dock{position:fixed;bottom:18px;left:18px;z-index:40;max-width:min(320px,calc(100vw - 36px));font-size:12px}
.support-toggle{background:#0d2a46;color:#b8d9ee;border:1px solid #3b6484;box-shadow:0 5px 16px #0006;border-radius:28px;padding:9px 14px;cursor:pointer;font:inherit;opacity:.8;transition:opacity .2s}
.support-toggle:hover,.support-toggle:focus{opacity:1}
.support-panel{margin-top:8px;background:#102b48;border:1px solid #31577a;box-shadow:0 10px 40px #0009;color:#e2f0ff;padding:16px;border-radius:13px;line-height:1.6}
.support-panel p{font-size:12px;color:#afc6df;margin:7px 0 13px}
.support-panel a{display:inline-block;background:#235b87;color:white;border-radius:8px;padding:8px 12px;text-decoration:none}
.support-close{display:block;background:none;color:#a3bad3;border:0;margin-top:10px;padding:4px;cursor:pointer}
[hidden]{display:none!important}


.yearly-activity{display:flex;align-items:end;gap:3px;min-height:105px;overflow-x:auto;margin:13px 0 7px;padding:6px;background:#0c2037;border:1px solid #254361;border-radius:9px}.activity-column{display:flex;flex:1 0 17px;height:87px;align-items:center;justify-content:flex-end;flex-direction:column;gap:5px}.activity-column .activity-fill{display:block;min-height:2px;width:75%;background:linear-gradient(#62cde4,#2e79b0);border-radius:3px 3px 0 0}.activity-column small{color:#86a5c1;font-size:8px;transform:rotate(-48deg);white-space:nowrap;line-height:12px}

/* Unified search and graph. */
.discovery{background:#0a1e34;border:1px solid #294d70;border-radius:15px;padding:21px;box-shadow:inset 0 1px 0 #ffffff08}
.discovery h3{color:#e6f4ff;font-size:17px;margin:0 0 16px}
.discovery-search{display:flex;flex-wrap:wrap;align-items:center;gap:11px}
.discovery-search label{font-size:12px;color:#a8c3da}
.discovery-search select,.discovery-search input{font-size:13px;padding:12px 13px;color:#ecf7ff;background:#102943;border:1px solid #3c5d7e;border-radius:9px;min-width:0}
.discovery-search input{flex:1 1 255px}
.discovery-search button{padding:12px 22px;cursor:pointer}
.discovery-search button:disabled{opacity:.55;cursor:wait}
.discovery-notice{border:1px solid #294c67;background:#112a43;border-radius:9px;padding:11px 12px;margin:16px 0;color:#9bbad5;font-size:12px;line-height:1.55}
.discovery-notice.error{border-color:#a66c4c;color:#ffd4b2}
.discovery-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.entity-card{border:1px solid #2b526e;background:#102b45;color:#dceeff;border-radius:11px;text-align:left;padding:15px;cursor:pointer;display:flex;flex-direction:column;gap:8px;min-width:0}
.entity-card:hover,.entity-card:focus-visible{background:#1a3d5b;border-color:#5ca7cc}
.entity-card strong{font-size:14px;overflow-wrap:anywhere}.entity-card small{font-size:11px;color:#8aabc9;overflow-wrap:anywhere}
.entity-card .metrics-line{font-size:12px;color:#bbdbf1;font-variant-numeric:tabular-nums}
.discovery-profile{border-top:1px solid #294b67;padding-top:23px;margin-top:24px}
.discovery-profile h3{font-size:23px;line-height:1.25;margin:9px 0}
.discovery-profile .profile-note{font-size:12px;color:#9ab4cf;line-height:1.7;max-width:760px}
.discovery-profile .metric-grid{margin:18px 0}
.discovery-profile .profile-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0}
.discovery-profile .profile-actions button{cursor:pointer;padding:10px 14px}
.entity-work-list{display:grid;gap:8px;margin:14px 0 0}.entity-work{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #2b506d;border-radius:9px;background:#102a43;padding:11px}
.entity-work strong{color:#daecfb;font-size:12px}.entity-work small{color:#9cbbd5;font-size:11px;display:block;margin-top:4px}
.entity-work button{background:#245883;color:#edf8ff;border:1px solid #4d8eb8;border-radius:8px;padding:9px 11px;cursor:pointer;white-space:nowrap}
.bubble-panel{margin:15px 22px 22px;background:#0e2741;border:1px solid #294b69;border-radius:14px;padding:19px}
.bubble-head{display:flex;gap:15px;justify-content:space-between;align-items:center;flex-wrap:wrap}.bubble-head h3{color:#e9f4ff;font-size:17px;margin:7px 0}.bubble-head p{color:#94b5ce;font-size:12px;margin:0}
.bubble-head button{cursor:pointer}.bubble-caution{font-size:12px;color:#e4c8aa;line-height:1.7}
.bubble-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.bubble-grid h4{font-size:13px;color:#d4e9fa}
.bubble-item{border-top:1px solid #2a4966;padding:10px 0;display:flex;gap:12px;justify-content:space-between;align-items:flex-start}.bubble-item button{background:transparent;border:0;color:#a3dbfc;font-weight:600;text-align:left;cursor:pointer;line-height:1.5}.bubble-item span{color:#98b5cc;font-size:11px;white-space:nowrap}.bubble-item button:hover{text-decoration:underline}
.legal-links{font-size:11px;color:#94abc8;margin:4px 0 12px}.legal-links a{color:#9bcce9}
.visually-hidden{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}
@media(max-width:880px){.discovery-results,.bubble-grid{grid-template-columns:1fr}}@media(max-width:600px){.discovery{padding:12px}.discovery-search select,.discovery-search input,.discovery-search button{width:100%}.bubble-panel{margin:12px 8px}.entity-work{align-items:start;flex-direction:column}}
.discovery-footer{font-size:11px;color:#7c9fbb;line-height:1.7;padding-top:17px}.discovery-footer a{color:#a2d1e9}
/* Stage 0.3D: user-supplied vector identity and focused public discovery entry. */
.brand{position:relative;height:104px;padding:12px 15px 13px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.brand-logo{width:100%;max-width:254px;height:auto;display:block;object-fit:contain}
.brand-version{position:absolute;right:12px;bottom:4px;font-size:8px;letter-spacing:1px;color:#78b6c9;white-space:nowrap}
.discovery-sideguide{display:none}
.discovery-sideguide p{font-size:12px;line-height:1.6;color:#b1c7dc;margin:11px 0 0}
.discovery-sideguide .discovery-side-note{color:#77a7bb;font-size:11px;border-top:1px solid #274660;padding-top:14px;margin-top:16px}
@media(max-width:670px){.support-dock{left:auto;right:10px;bottom:10px;max-width:calc(100vw - 20px)}.support-toggle{font-size:10px;padding:7px 11px;opacity:.67}}
@media(max-width:670px){
 /* On narrow screens the optional donation drawer sits after the content,
    avoiding obstruction of search results and interactive paper cards. */
 .support-dock{position:static;margin:12px 15px 20px;max-width:none;width:max-content}
 .support-panel{max-width:calc(100vw - 30px)}
}

/* Stage 0.3E: one coherent research profile + graph page. */
.research-discovery{margin:12px 24px 25px;padding:24px;background:linear-gradient(145deg,#0c253d,#08182c 72%);border:1px solid #254865;border-radius:16px;min-width:0}
.research-intro{margin-bottom:19px}
.research-intro .overline{font-size:10px;letter-spacing:1.8px;color:#76bad9}
.research-intro h2{font-size:clamp(18px,2vw,26px);line-height:1.28;color:#ecf7ff;margin:9px 0}
.research-intro p{font-size:13px;color:#a8c6dc;line-height:1.7;max-width:790px;margin:0}
.graph-section-heading{margin:26px 25px 16px;border-top:1px solid #254968;padding:21px 1px 0}
.graph-section-heading h2{font-size:19px;color:#e5f4ff;margin:7px 0 5px}
.graph-section-heading p{font-size:12px;color:#a1c0d7;margin:0;line-height:1.6}
.graph-section-heading .overline{color:#6cc7db;font-size:10px;letter-spacing:1.6px}
.author-publications{padding-top:15px;margin-top:15px;border-top:1px solid #2b4c6b}
.author-publications h4{margin:7px 0 15px;font-size:16px;color:#ddf2ff}
.works-controls{display:flex;gap:15px;flex-wrap:wrap;align-items:center;margin:10px 0 12px}
.works-controls label{display:flex;align-items:center;gap:9px;color:#9cbdd5;font-weight:600;font-size:12px}
.works-controls select{font-size:12px;border:1px solid #437497;background:#123653;color:#e5f5ff;padding:9px 12px;border-radius:8px}
.works-status{font-size:12px;color:#8ebcda;margin:10px 0;line-height:1.5}
.works-more{cursor:pointer;padding:10px 15px;margin:17px 0 6px}
.entity-work-content{min-width:0;max-width:100%;overflow-wrap:anywhere}
.entity-work .paper-link{display:inline-block;margin-top:7px;font-size:11px;color:#8fd0f2}
.entity-work button:focus-visible,.works-controls select:focus-visible,.entity-card:focus-visible{outline:2px solid #62cde4;outline-offset:2px}
@media(max-width:670px){.research-discovery{margin:10px 8px 18px;padding:13px}.graph-section-heading{margin:22px 10px 12px}.research-intro h2{font-size:20px}.works-controls label{flex:1 1 100%;justify-content:space-between}.works-controls select{max-width:60%}.entity-work{flex-direction:column;align-items:flex-start}.entity-work button{width:100%}}

/* Stage 0.3F: paper-first homepage and independently accessed entity profiles. */
.main{background:radial-gradient(ellipse 65% 45% at 50% 48%,rgba(24,77,116,.20),transparent 85%),#061327}
.workspace-navigation{display:flex;flex-wrap:wrap;gap:9px;margin:20px 24px 6px}
.workspace-tab{padding:12px 17px;border-radius:11px;background:#102a43;border:1px solid #2b5171;color:#a5c5de;font-weight:720;font-size:12px}
.workspace-tab.active{border-color:#56b7e3;background:#194569;color:#f0fbff;box-shadow:inset 0 1px #ffffff12}
.workspace-tab:focus-visible{outline:2px solid #8ad8ff;outline-offset:2px}
.graph-builder-hero{margin:13px 24px 3px;border:1px solid #2b5473;border-radius:17px;background:linear-gradient(125deg,rgba(22,64,98,.94),rgba(8,27,51,.95));padding:22px;box-shadow:0 12px 42px #0002}
.graph-builder-intro .overline{color:#74d5f1;font-size:10px;letter-spacing:1.7px}
.graph-builder-intro h2{font-size:clamp(21px,2.2vw,30px);line-height:1.22;margin:9px 0 7px;color:#f0faff;letter-spacing:-.55px}
.graph-builder-intro p{color:#aacce1;font-size:12px;line-height:1.7;margin:0 0 15px;max-width:760px}
.graph-builder-content{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);gap:20px;align-items:start}
.graph-builder-content .search-section{padding:0;border:0;min-width:0}
.graph-builder-content .search-section input{font-size:15px;padding:16px 13px;border-color:#4981a8}
.graph-builder-content .search-section .field-label{font-size:11px;margin:8px 0}
.graph-builder-content .search-section .primary{padding:15px;font-size:13px}
.graph-builder-content .results-area{border-left:1px solid #2b516d;padding:0 0 0 19px;min-width:0;max-height:300px;overflow:auto}
.graph-builder-content .results-list{max-height:265px;overflow:auto}
.graph-builder-content .results-area .section-heading{padding-top:4px}
.graph-builder-content .placeholder-text{font-size:11px;margin:12px 0}
.graph-section-heading{margin-top:13px;border-top:0;padding-top:8px}
/* Only the GENERATED graph is frameless. Empty graph retains its guidance card. */
.workspace.has-graph{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;margin-top:8px}
.workspace.has-graph .canvas-header,.workspace.has-graph .layout-bar,.workspace.has-graph .root-ribbon,.workspace.has-graph .graph-bottom{background:transparent;border-color:transparent}
.workspace.has-graph .graph-wrap{background:transparent!important;border:0!important;min-height:min(67vh,790px)}
.workspace.has-graph .graph-glow{display:none}
.workspace.has-graph .zoom-controls button{background:rgba(12,41,67,.9)}
.workspace.has-graph .mode-switch{background:rgba(8,29,50,.7)}
.workspace.has-graph .node .node-label,.workspace.has-graph .node .node-year,.workspace.has-graph .node .landmark{stroke:#061327}
.research-discovery{margin-top:17px}
@media(max-width:980px){.graph-builder-content{grid-template-columns:1fr}.graph-builder-content .results-area{border-left:0;border-top:1px solid #2b516d;padding:15px 0 0;max-height:280px}}
@media(max-width:670px){.workspace-navigation{margin:13px 9px 2px;gap:7px}.workspace-tab{padding:11px;font-size:11px;flex:1 1 135px}.graph-builder-hero{margin:10px 8px;padding:14px}.graph-builder-intro h2{font-size:22px}.graph-section-heading{margin-top:13px}.workspace.has-graph .graph-wrap{min-height:440px}}

/* Subtle partial-coverage notice, not a blocking failure banner. */
.graph-warnings{position:absolute;z-index:4;left:clamp(12px,2vw,24px);right:72px;bottom:18px;max-width:740px;padding:11px 14px;background:rgba(9,30,52,.89);color:#c7d7e3;border:1px solid rgba(129,170,190,.24);border-radius:11px;font-size:11px;line-height:1.6;backdrop-filter:blur(12px);box-shadow:0 5px 22px #0002}
.workspace.has-graph .graph-wrap{isolation:isolate;overflow:visible;}
.workspace.has-graph #graph{overflow:visible}
.workspace.has-graph .canvas-header,.workspace.has-graph .layout-bar,.workspace.has-graph .root-ribbon{border:0;box-shadow:none}
.workspace.has-graph .root-ribbon{opacity:.94}
.workspace.has-graph .graph-bottom{border:0;padding-top:10px}
.workspace-tab{transition:color .18s ease,border-color .18s ease,background-color .18s ease}
.graph-builder-hero{border-color:rgba(108,166,196,.26);background:linear-gradient(125deg,rgba(18,55,87,.62),rgba(7,28,49,.52));box-shadow:0 12px 45px #0001;backdrop-filter:blur(8px)}
.graph-builder-intro h2{font-weight:720;letter-spacing:-.65px}
@media(max-width:670px){.graph-warnings{right:50px;bottom:12px;max-height:125px;overflow:auto;font-size:10px}}

/* Stage 0.3G — compact, contextual left rail. Avoid extra API requests. */
.sidebar-navigation{padding-top:21px;padding-bottom:18px}
.sidebar-navigation .section-heading{margin-bottom:11px}
.sidebar-route{width:100%;display:flex;gap:11px;align-items:center;text-align:left;color:#a8c3d5;background:transparent;border:1px solid transparent;border-radius:10px;padding:11px 10px;margin:2px 0;cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease;font:inherit}
.sidebar-route:hover,.sidebar-route:focus-visible{background:rgba(26,77,113,.30);color:#e7f5ff;border-color:#2b5470}
.sidebar-route.active{background:linear-gradient(110deg,rgba(25,83,121,.45),rgba(16,56,83,.18));border-color:#367292;color:#effaff}
.sidebar-route:focus-visible{outline:2px solid #77caed;outline-offset:2px}
.sidebar-route>span:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}
.sidebar-route strong{font-size:12px;font-weight:650;line-height:1.4}
.sidebar-route small{font-size:10px;color:#8daabd;line-height:1.45}
.route-symbol{width:30px;height:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:rgba(33,86,120,.31);font-size:19px;color:#76c4de}
.sidebar-route.active .route-symbol{background:rgba(38,119,166,.3);color:#a9e7f3}
.sidebar-context{padding-top:21px;padding-bottom:21px}
.side-context-empty{display:flex;align-items:flex-start;gap:10px;margin-top:14px}
.side-context-empty[hidden],#sideGraphLive[hidden]{display:none!important}
.side-context-empty p{font-size:11px;line-height:1.6;color:#8faabe;margin:0}
.sidebar-spark{font-size:21px;line-height:1;color:#6fc2db}
.side-context-caption{font-size:9px;letter-spacing:1.2px;color:#6ebdd7;margin:17px 0 7px}
.side-root-title{color:#e4f3ff;line-height:1.45;font-size:12px;font-weight:650;margin:0 0 12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.side-stats{display:flex;gap:9px}
.side-stats>div{border:1px solid #254c67;background:rgba(11,44,70,.47);border-radius:9px;padding:10px 12px;display:flex;flex-direction:column;min-width:89px}
.side-stats b{font-size:19px;font-weight:700;color:#d4f4ff;font-variant-numeric:tabular-nums}
.side-stats small{font-size:10px;color:#86adc0;margin-top:2px}
.sidebar-guidance{border-bottom:0}
.sidebar-guidance p{font-size:10.5px;line-height:1.6;color:#91abc0;margin:13px 0 0}
.guidance-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;background:#67c8dc;box-shadow:0 0 0 2px #67c8dc18}
.guidance-dot.lavender{background:#a69cf0;box-shadow:0 0 0 2px #a69cf018}
.sidebar-guidance .sidebar-guidance-foot{border-top:1px solid #24435c;padding-top:13px;margin-top:15px;color:#7a9bae}
.sidebar-bottom{margin-top:auto;padding-bottom:84px}
.support-dock{max-width:260px}
.support-toggle{font-size:11px}
@media(max-width:960px){.sidebar-route{padding:9px 6px}.sidebar-navigation,.sidebar-context,.sidebar-guidance{padding-left:15px;padding-right:15px}}
@media(max-width:670px){.sidebar-navigation{padding:16px}.sidebar-route{padding:10px}.sidebar-context{padding:15px}.sidebar-guidance{display:none}.sidebar-bottom{margin-top:0;padding-bottom:16px}.support-dock{max-width:calc(100vw - 30px)}}
@media(prefers-reduced-motion:reduce){.sidebar-route{transition:none}}
