#cosmos-center[role=button]{pointer-events:auto;cursor:pointer}#cosmos-center[role=button]:focus-visible{outline:2px solid #ffe9af;outline-offset:6px}#study-space[hidden]{display:none}#study-space{position:fixed;inset:0;z-index:45;color:#eae4d5;background:#030913 url('/images/galaxy.png') center/cover;font-family:Heebo,sans-serif;isolation:isolate}#study-space::before{content:'';position:absolute;inset:0;background:#030913b0;z-index:-1}#study-space-canvas{position:absolute;inset:0}#study-space button{cursor:pointer;font:14px Heebo,sans-serif;color:#d5e8f1;background:#0a1b2cdd;border:1px solid #90bfda55;border-radius:20px;padding:8px 15px}#study-space button:hover{border-color:#dcf2ff}#study-space button:disabled{opacity:.35;cursor:default}#study-space :focus-visible{outline:2px solid #f3db9d;outline-offset:4px}.space-toolbar{position:absolute;top:16px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}.space-toolbar>*{pointer-events:auto}.space-toolbar>div{display:flex;gap:6px}.space-toolbar h2{font:24px 'Frank Ruhl Libre',serif;margin:0;color:#e9dfc7}.space-details{position:absolute;right:24px;bottom:48px;width:290px;max-height:44svh;overflow:auto;background:#071321df;border:1px solid #87b0c13b;backdrop-filter:blur(10px);border-radius:20px;padding:20px}.space-details h3{font:26px/1.3 'Frank Ruhl Libre',serif;margin:8px 0}.space-details p{font-size:13px;line-height:1.7;color:#bfd0dc}.space-details small{font-size:11px;color:#87b2cd}.space-details a{display:block;color:#d6e5bc;margin-top:12px;font-size:13px}#space-neighbors{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}#study-space #space-neighbors button{font-size:11px;padding:5px 10px}#study-space #space-enter{background:#dfdfcd;color:#152332;margin-top:5px}#space-status{position:absolute;bottom:10px;left:20px;right:20px;text-align:center;font-size:11px;color:#9ab4c7;pointer-events:none;margin:0}@media(max-width:700px){.space-toolbar{top:10px;right:10px;left:10px;flex-wrap:wrap}.space-toolbar h2{font-size:19px}.space-toolbar>div{width:100%;justify-content:center}#study-space .space-toolbar button{font-size:11px;padding:6px 10px}.space-details{right:12px;left:12px;bottom:35px;width:auto;max-height:27svh;padding:12px 16px}.space-details h3{font-size:21px;margin:5px 0}.space-details p{margin:4px 0;font-size:12px}#space-neighbors{margin-top:8px}#space-status{font-size:10px}}

.space-depth{font-size:12px;display:flex;align-items:center;gap:5px;color:#c0d8e6}.space-depth select{font:12px Heebo,sans-serif;color:#e1e6de;background:#102135;border:1px solid #84b7d555;border-radius:16px;padding:7px;max-width:150px}@media(max-width:700px){.space-toolbar>div{flex-wrap:wrap}.space-depth select{max-width:120px;font-size:11px}.space-depth{font-size:11px}}

#study-space #space-add,#study-space #space-refresh{font-size:11px;padding:6px 10px;margin-top:10px;margin-inline-end:6px}#space-live-status{font-size:10px;color:#a6bfd0;white-space:pre-wrap}.space-details p{white-space:pre-wrap}

#study-space .space-fallback-node{position:absolute;transform:translate(-50%,-50%);border-radius:50%;padding:8px;font-size:12px;line-height:1.3;background:radial-gradient(circle at 30% 22%,#6391ae,#183751 60%,#06111e);box-shadow:inset -6px -8px 15px #0009,0 0 24px #74bbdc33;border:1px solid #b1dded99;overflow-wrap:anywhere}#study-space .space-fallback-node.is-center{background:radial-gradient(circle at 30% 22%,#a49265,#4e432b 65%,#161509);border-color:#eedfb6}#study-space .space-fallback-node:hover{border-color:#fff3cb;box-shadow:0 0 30px #9fdbff70}@media(max-width:700px){#study-space .space-fallback-node{font-size:10px;padding:5px}}
#study-space-canvas>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}

.space-details[hidden]{display:none}

#space-reader[hidden]{display:none}#space-reader{position:absolute;z-index:5;right:18px;top:85px;bottom:45px;width:min(440px,43vw);display:flex;flex-direction:column;background:#091827f5;border:1px solid #a3c6d466;border-radius:18px;box-shadow:0 12px 50px #0008;overflow:hidden;direction:rtl}.reader-tools{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid #95b4c544}.reader-tools strong{margin-inline-end:auto}#reader-content{overflow:auto;padding:18px 22px;font:17px/1.9 Heebo,sans-serif;color:#ece9df}#reader-content h1,#reader-content h2,#reader-content h3{font-family:'Frank Ruhl Libre',serif;line-height:1.45;color:#f4dfaa}#reader-content h2{font-size:25px}#reader-content h3{font-size:22px}#reader-content p{margin:12px 0}#reader-content a{color:#96dcf3;text-decoration:underline}.reader-data-row{display:grid;grid-template-columns:1fr;gap:5px;padding:12px 0;border-bottom:1px solid #9ab9cc44}#space-reader.expanded{inset:75px 5vw 35px;width:auto}#reader-content aside{font-size:13px;color:#b7ccd6;border-right:2px solid #a0c6d5;padding:10px}@media(max-width:700px){#space-reader{top:auto;right:8px;left:8px;bottom:32px;width:auto;height:46vh}#space-reader.expanded{inset:110px 8px 32px;height:auto}#reader-content{font-size:15px;padding:12px 16px}}

#space-node-menu[hidden]{display:none}#space-node-menu{position:fixed;z-index:20;width:220px;padding:6px;background:#0b2135;border:1px solid #92bfd4;border-radius:12px;box-shadow:0 10px 35px #0009;direction:rtl}#study-space #space-node-menu button{display:block;width:100%;border:0;border-radius:7px;text-align:right;background:transparent}#study-space #space-node-menu button:hover,#study-space #space-node-menu button:focus{background:#28485f}

.space-fallback-node.is-research-center{border-radius:50%;border:2px solid #d6ba79;background:radial-gradient(circle at 30% 25%,#456679,#112a40 65%,#07101c);box-shadow:0 0 28px #d6ba7938;font-weight:600}

/* Compact graph navigation. Context controls stay with the selected node. */
.space-toolbar{align-items:flex-start;z-index:8}.space-toolbar>.space-toolbar-actions{width:auto;display:flex;align-items:center;gap:8px}
#study-space .space-brand-orb{position:relative;width:64px;height:64px;border-radius:50%;padding:0;overflow:hidden;border:1px solid #ddc78d;box-shadow:inset -6px -8px 15px #0009,0 0 24px #dfc48244;background:#192c35;flex:none}
.space-brand-orb img{width:100%;height:100%;object-fit:cover;opacity:.8}.space-brand-orb span{position:absolute;bottom:3px;inset-inline:0;font-size:10px;text-shadow:0 1px 3px #000;background:#08131b99}
#space-settings{position:relative}#space-settings summary{list-style:none;cursor:pointer;border:1px solid #90bfda55;border-radius:50%;background:#0a1b2cdd;font-size:23px;line-height:40px;text-align:center;width:42px;height:42px}#space-settings summary::-webkit-details-marker{display:none}.space-settings-panel{position:absolute;inset-inline-end:0;top:50px;display:grid;gap:8px;padding:12px;border:1px solid #90bfda55;background:#091b2cf5;border-radius:14px;width:185px;box-shadow:0 8px 25px #0008}
#study-space #space-info{float:left;padding:2px 9px;font-size:18px}.space-details .space-depth{margin-block:12px}.space-details .space-depth select{max-width:none}
@media(max-width:700px){.space-toolbar{flex-wrap:nowrap}#study-space .space-brand-orb{width:56px;height:56px}.space-toolbar>.space-toolbar-actions{width:auto;flex-wrap:nowrap}.space-toolbar .space-settings-panel{display:grid}.space-toolbar .space-settings-panel button{font-size:13px!important}}
