/* Space atlas is an opt-in view. All rules are scoped to its entry or dialog. */
.space-atlas-entry{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:9px 12px;border-radius:22px;font-size:12px;color:var(--muted)}
.space-atlas-entry:hover{color:var(--ink);background:var(--soft)}
.space-atlas-entry svg{width:17px;height:17px}
#space-atlas{--at-accent:var(--accent);--at-parent:color-mix(in srgb,var(--at-accent) 72%,var(--ink));position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:var(--bg);color:var(--ink);overflow:hidden;box-shadow:none;font-family:var(--font);overscroll-behavior:contain;z-index:35;opacity:0;transition:opacity .1s ease}
#space-atlas.atlas-ready{opacity:1}
#space-atlas.atlas-direct-entry{transition:none}
#space-atlas::backdrop{background:#0003;backdrop-filter:blur(8px)}
body[data-dark=true] #space-atlas{--ink:#efefea;--muted:#b0b0b8;--line:#ffffff18}
#space-atlas *{box-sizing:border-box}
#space-atlas button,#space-atlas a{font-family:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
#space-atlas button{font-size:12px}
#space-atlas svg{display:block;width:18px;height:18px;flex:none}
#space-atlas button:focus-visible,#space-atlas a:focus-visible,#space-atlas input:focus-visible{outline:2px solid var(--at-accent);outline-offset:3px}
#space-atlas .at-shell{height:100%;display:flex;flex-direction:column;padding:22px 30px 0}
#space-atlas .at-top{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none}
#space-atlas .at-brand{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:2px}
#space-atlas .at-brand svg{width:22px;height:22px}
#space-atlas .at-brand span{color:var(--muted);font-size:11px;letter-spacing:1px}
#space-atlas .at-switch{display:flex;align-items:center;gap:4px;border-radius:24px;background:color-mix(in srgb,var(--ink) 4%,transparent);padding:4px}
#space-atlas .at-switch button{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:20px;padding:8px 14px;color:var(--muted);white-space:nowrap}
#space-atlas .at-switch button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px #00000006}
#space-atlas .at-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;flex:none}
#space-atlas h1{font-size:clamp(24px,2.4vw,36px);line-height:1.4;letter-spacing:1px;font-weight:500;margin:0}
#space-atlas .at-title-button{display:flex;align-items:center;gap:12px;padding:0;text-align:left}
#space-atlas .at-title-button svg{color:var(--muted);width:16px}
#space-atlas .at-subtitle{font-size:12px;color:var(--muted);margin:8px 0 0;line-height:1.7}
#space-atlas .at-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
#space-atlas .at-search{position:relative;display:flex;align-items:center;gap:9px;padding:10px 13px;margin:0;background:var(--surface);border-radius:12px;color:var(--muted);width:224px}
#space-atlas .at-search input{background:none;color:var(--ink);font-size:12px;border:0;padding:0;margin:0;min-width:0;width:100%;outline:none}
#space-atlas .at-search button{padding:0}
#space-atlas .at-search-results{position:absolute;top:calc(100% + 8px);right:0;width:350px;max-height:400px;overflow:auto;padding:8px;border-radius:14px;background:var(--surface);box-shadow:0 16px 60px #0002;z-index:20;text-align:left}
#space-atlas .at-search-results[hidden]{display:none}
#space-atlas .at-result{display:flex;align-items:center;gap:12px;width:100%;padding:11px 10px;text-align:left;border-radius:8px}
#space-atlas .at-result:hover{background:var(--soft)}
#space-atlas .at-result span{display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis}
#space-atlas .at-result b{font-size:12px;font-weight:500}
#space-atlas .at-result small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:3px}
#space-atlas .at-search-note{display:block;font-size:11px;color:var(--muted);padding:10px}
#space-atlas .at-depth{position:relative}
#space-atlas .at-quiet{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 12px;border-radius:10px;white-space:nowrap}
#space-atlas .at-quiet:hover{background:var(--soft)}
#space-atlas .at-popover{position:absolute;top:calc(100% + 8px);right:0;width:210px;padding:7px;border-radius:12px;background:var(--surface);box-shadow:0 14px 45px #0002;z-index:25}
#space-atlas .at-popover[hidden]{display:none}
#space-atlas .at-popover button{display:block;width:100%;text-align:left;padding:12px;border-radius:8px}
#space-atlas .at-popover button:hover,#space-atlas .at-popover button[aria-pressed=true]{background:var(--soft)}
#space-atlas .at-popover small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:5px}
#space-atlas .at-nav{display:flex;align-items:center;min-height:47px;margin-top:17px;gap:10px;flex:none;border-bottom:1px solid color-mix(in srgb,var(--ink) 8%,transparent)}
#space-atlas .at-path{display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:auto;min-width:0}
#space-atlas .at-path button{padding:8px 5px;color:var(--muted)}
#space-atlas .at-path button:last-of-type{color:var(--ink)}
#space-atlas .at-path svg{width:12px;color:var(--muted)}
#space-atlas .at-nav .at-quiet{color:var(--muted)}
#space-atlas .at-nav .at-quiet[data-at=add]{margin-left:auto}
#space-atlas .at-peers{display:flex;align-items:center;gap:7px;min-height:43px;padding:7px 0;flex:none}
#space-atlas .at-peers>span{font-size:10px;color:var(--muted);white-space:nowrap;margin-right:8px}
#space-atlas .at-peer-scroll{display:flex;gap:6px;overflow:auto;scrollbar-width:thin;min-width:0}
#space-atlas .at-peer{white-space:nowrap;border-radius:20px;padding:7px 13px;color:var(--muted)}
#space-atlas .at-peer:hover{background:var(--surface)}
#space-atlas .at-peer[aria-current=true]{background:var(--soft);color:var(--ink)}
#space-atlas .at-canvas{position:relative;flex:1;min-height:180px;border-radius:18px;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 47%,color-mix(in srgb,var(--at-accent) 6%,transparent),transparent 67%);touch-action:none;cursor:grab}
#space-atlas .at-canvas.is-dragging{cursor:grabbing}
#space-atlas .at-canvas::before{content:'';position:absolute;inset:0;background-image:radial-gradient(color-mix(in srgb,var(--ink) 13%,transparent) .7px,transparent .7px);background-size:26px 26px;opacity:.24;pointer-events:none;mask-image:radial-gradient(ellipse,black,transparent 80%)}
#space-atlas .at-lines,#space-atlas .at-flows{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
#space-atlas .at-flows{z-index:71}
#space-atlas .at-line{fill:none;stroke:color-mix(in srgb,var(--at-accent) 24%,var(--bg));stroke-width:1;transition:opacity .2s,stroke .2s}
#space-atlas .at-line.is-related{stroke:var(--at-accent);stroke-width:1.5;opacity:.7}
#space-atlas .at-line.is-muted{opacity:.13}
#space-atlas .at-node{position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;text-align:center;transition:opacity .22s;z-index:2}
#space-atlas .at-node.is-muted{opacity:.18}
#space-atlas .at-node.is-parent{opacity:.42}
#space-atlas .at-node.is-related,#space-atlas .at-node:hover,#space-atlas .at-node:focus-within{opacity:1;z-index:5}
#space-atlas .at-node-main{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:5px;width:100%;height:100%;border-radius:13px;text-rendering:geometricPrecision}
#space-atlas .at-node svg{shape-rendering:geometricPrecision}
#space-atlas .at-node-main>strong{display:block;width:100%;font-size:12px;font-weight:500;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#space-atlas .at-node-main>small{font-size:9px;color:var(--muted);white-space:nowrap}
#space-atlas .at-orb{position:relative;display:grid;place-items:center;flex:none;width:var(--orb-size,45px);height:var(--orb-size,45px);border-radius:50%;background:var(--soft);color:var(--at-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--at-accent) 9%,transparent);transition:box-shadow .25s}
#space-atlas [data-kind=space] .at-orb{--orb-size:78px}
#space-atlas [data-kind=space] .at-orb svg{width:29px;height:29px}
#space-atlas [data-kind=scene] .at-orb{--orb-size:43px}
#space-atlas [data-kind=group] .at-orb{--orb-size:28px}
#space-atlas [data-kind=group] .at-orb svg{width:14px;height:14px}
#space-atlas [data-mode="3d"] .at-orb{background:radial-gradient(circle at 28% 22%,color-mix(in srgb,var(--at-accent) 12%,white) 0%,color-mix(in srgb,var(--at-accent) 52%,var(--surface)) 42%,color-mix(in srgb,var(--at-accent) 88%,#17241c) 100%);color:white;box-shadow:inset -5px -6px 13px #0002,inset 2px 2px 5px #fff6,5px 9px 17px color-mix(in srgb,var(--at-accent) 15%,transparent)}
#space-atlas [data-mode="3d"] [data-kind=space] .at-orb::after{content:'';position:absolute;inset:-10px -18px;border:1px solid color-mix(in srgb,var(--at-accent) 30%,transparent);border-radius:50%;transform:rotate(-28deg) scaleY(.48);pointer-events:none}
#space-atlas .at-node:hover .at-orb,#space-atlas .at-node:focus-within .at-orb{outline:1px solid color-mix(in srgb,var(--at-accent) 40%,transparent);outline-offset:5px}
#space-atlas .at-node[data-kind=link] .at-node-main,#space-atlas .at-node[data-kind=bundle] .at-node-main{flex-direction:row;background:color-mix(in srgb,var(--surface) 88%,transparent);gap:8px;padding:9px 12px;border-radius:12px;box-shadow:0 2px 12px #00000004}
#space-atlas .at-node[data-kind=link] strong,#space-atlas .at-node[data-kind=bundle] strong{font-size:11px;text-align:left}
#space-atlas .at-logo{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:9px;background:var(--soft);font-size:13px;overflow:hidden;color:var(--ink)}
#space-atlas .at-logo img{width:20px;height:20px;object-fit:contain}
#space-atlas .at-logo svg{width:18px;height:18px}
#space-atlas .at-logo .at-vector-letter{font-family:var(--font);font-size:13px;font-weight:500;fill:currentColor;stroke:none}
#space-atlas .at-node[data-kind=bundle] .at-node-main{background:color-mix(in srgb,var(--soft) 45%,var(--bg));color:var(--muted);border:1px dashed color-mix(in srgb,var(--muted) 26%,transparent)}
#space-atlas .at-node-menu{position:absolute;right:-3px;top:-5px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--surface);opacity:0;box-shadow:0 2px 8px #0001}
#space-atlas .at-node:hover .at-node-menu,#space-atlas .at-node:focus-within .at-node-menu{opacity:1}
#space-atlas .at-node-menu svg{width:15px;height:15px}
#space-atlas .at-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;flex:none}
#space-atlas .at-legend{display:flex;gap:17px;color:var(--muted);font-size:10px;align-items:center}
#space-atlas .at-legend span{display:flex;align-items:center;gap:6px}
#space-atlas .at-legend i{width:6px;height:6px;border-radius:50%;background:var(--at-accent);opacity:.6}
#space-atlas .at-legend span:nth-child(2) i{opacity:.4}
#space-atlas .at-legend span:nth-child(3) i{opacity:.25}
#space-atlas .at-hint{font-size:10px;color:var(--muted);margin:0;text-align:center;line-height:1.6}
#space-atlas .at-controls{display:flex;align-items:center;gap:3px;padding:4px;background:var(--surface);border-radius:22px;flex:none}
#space-atlas .at-controls button{width:33px;height:31px;border-radius:50%;display:grid;place-items:center;padding:0}
#space-atlas .at-controls button:hover{background:var(--soft)}
#space-atlas .at-controls button:disabled{opacity:.3;cursor:default}
#space-atlas .at-zoom{font-size:10px;font-variant-numeric:tabular-nums;min-width:35px;text-align:center;color:var(--muted)}
#space-atlas .at-site-view{height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:20px clamp(10px,5vw,90px) 30px;cursor:default}
#space-atlas .at-site-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}
#space-atlas .at-site-heading h2{font-size:20px;font-weight:500;margin:0}
#space-atlas .at-site-heading small{color:var(--muted);font-size:11px}
#space-atlas .at-site-heading .at-switch{margin-left:auto}
#space-atlas .at-site-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}
#space-atlas .at-site{position:relative;background:var(--surface);border-radius:14px;transition:transform .2s,background .2s;min-width:0}
#space-atlas .at-site:hover{transform:translateY(-3px);background:color-mix(in srgb,var(--surface) 95%,var(--at-accent))}
#space-atlas .at-site>a{display:flex;align-items:center;gap:13px;min-height:100px;padding:21px 18px}
#space-atlas .at-site .at-logo{width:36px;height:36px;border-radius:11px;font-size:16px}
#space-atlas .at-site-copy{min-width:0}
#space-atlas .at-site b{display:block;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#space-atlas .at-site small{display:block;font-size:10px;color:var(--muted);margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#space-atlas .at-site .at-node-menu{right:7px;top:6px;box-shadow:none}
#space-atlas .at-site:hover .at-node-menu,#space-atlas .at-site:focus-within .at-node-menu{opacity:1}
#space-atlas .at-site-grid.is-list{grid-template-columns:1fr}
#space-atlas .is-list .at-site>a{min-height:65px;padding:13px 20px}
#space-atlas .is-list .at-site-copy{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding-right:20px}
#space-atlas .at-load-more{display:block;margin:22px auto 0;padding:10px 24px;background:var(--surface);border-radius:20px}
#space-atlas .at-drawer{position:absolute;top:0;bottom:0;right:0;width:min(365px,100%);z-index:40;background:var(--surface);box-shadow:-15px 0 60px #0000000d;padding:25px;overflow:auto;overscroll-behavior:contain;animation:at-drawer-in .22s ease-out}
#space-atlas .at-drawer[hidden]{display:none}
#space-atlas .at-drawer-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:26px}
#space-atlas .at-drawer-top h2{font-size:19px;font-weight:500;margin:0}
#space-atlas .at-drawer-top button{padding:8px;border-radius:50%}
#space-atlas .at-detail-title{font-size:23px;font-weight:500;margin:0 0 12px;word-break:break-word}
#space-atlas .at-detail-path{font-size:11px;color:var(--muted);line-height:1.8;margin-bottom:24px}
#space-atlas .at-detail-note{font-size:12px;color:var(--muted);line-height:1.9;overflow-wrap:anywhere}
#space-atlas .at-drawer-action{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:15px 12px;margin-top:5px;border-radius:10px}
#space-atlas .at-drawer-action:hover{background:var(--soft)}
#space-atlas .at-drawer-list{display:flex;flex-direction:column;gap:6px}
#space-atlas .at-drawer-list button{text-align:left;border-radius:10px;padding:13px 12px;line-height:1.8}
#space-atlas .at-drawer-list button:hover{background:var(--soft)}
#space-atlas .at-drawer-list small{display:block;font-size:10px;color:var(--muted)}
#space-atlas .at-drawer input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);margin:0 0 16px;font-size:12px}
#space-atlas .at-drawer .at-confirm{padding:12px 18px;background:var(--ink);color:var(--bg);border-radius:10px;width:100%;margin-top:18px}
#space-atlas .at-notice{position:absolute;left:50%;bottom:75px;transform:translateX(-50%);z-index:50;display:flex;align-items:center;gap:20px;background:var(--ink);color:var(--bg);padding:13px 20px;border-radius:12px;max-width:90%;font-size:12px;box-shadow:0 8px 20px #0002}
#space-atlas .at-notice[hidden]{display:none}
#space-atlas .at-notice button{text-decoration:underline;color:inherit;white-space:nowrap}
#space-atlas .at-empty{margin:auto;text-align:center;color:var(--muted);padding:50px 20px;line-height:2;font-size:13px}
@keyframes at-drawer-in{from{transform:translateX(20px);opacity:0}to{transform:translateX(0);opacity:1}}
@media(min-width:1800px){#space-atlas .at-shell{padding:30px 44px 0}#space-atlas .at-heading{margin-top:32px}#space-atlas .at-footer{min-height:78px}}
@media(max-width:900px){#space-atlas{inset:8px;width:calc(100% - 16px);height:calc(100dvh - 16px);border-radius:17px}#space-atlas .at-shell{padding:17px 18px 0}#space-atlas .at-heading{align-items:flex-start;margin-top:20px}#space-atlas .at-tools{gap:6px;max-width:55%}#space-atlas .at-search{width:185px}#space-atlas .at-hint{display:none}#space-atlas .at-legend{gap:10px}#space-atlas .at-site-view{padding:15px 7px}#space-atlas .at-node-menu{opacity:1}}
@media(max-width:580px){#space-atlas .at-shell{padding:15px 13px 0}#space-atlas .at-brand span{display:none}#space-atlas .at-top>.at-switch button{padding:7px 10px}#space-atlas .at-heading{display:block;margin-top:17px}#space-atlas .at-subtitle{font-size:11px}#space-atlas .at-tools{max-width:none;margin-top:13px;justify-content:space-between;gap:5px}#space-atlas .at-search{width:100%;padding:9px 11px}#space-atlas .at-search-results{width:100%;max-height:270px}#space-atlas .at-tools .at-switch button{padding:6px 13px}#space-atlas .at-quiet{padding:8px}#space-atlas .at-nav{margin-top:6px;min-height:40px}#space-atlas .at-path{max-width:calc(100% - 62px)}#space-atlas .at-nav .at-quiet span{display:none}#space-atlas .at-legend{gap:8px;font-size:9px}#space-atlas .at-controls{gap:0;padding:2px}#space-atlas .at-controls button{width:27px}#space-atlas .at-footer{min-height:56px;gap:5px}#space-atlas .at-site-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#space-atlas .at-site>a{padding:17px 12px;gap:8px;min-height:98px;flex-direction:column;text-align:center}#space-atlas .at-site-copy{max-width:100%}#space-atlas .at-site-heading h2{font-size:16px}#space-atlas .at-site-heading{flex-wrap:wrap}#space-atlas .is-list .at-site>a{flex-direction:row;text-align:left}#space-atlas .is-list .at-site-copy{display:block}#space-atlas .at-peers>span{margin-right:0}#space-atlas .at-peer{padding:6px 9px}}
@media(prefers-reduced-motion:reduce){#space-atlas,#space-atlas *,#space-atlas *::after{animation:none!important;transition:none!important}}
@media(max-width:650px){#space-atlas [data-kind=space] .at-orb{--orb-size:61px}#space-atlas [data-kind=scene] .at-orb{--orb-size:33px}#space-atlas .at-node-main>strong{font-size:11px}}

/* The space title selects a presentation; the original bottom dock selects a space. */
.space-mode-entry{display:flex;align-items:center;gap:10px;font:inherit;padding:0;text-align:left;white-space:nowrap;max-width:100%}
.space-mode-entry>span{overflow:hidden;text-overflow:ellipsis}
.space-mode-entry>svg{width:16px;height:16px;flex:none;color:var(--muted)}
#space-mode-menu{position:fixed;width:290px;padding:12px;border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 14px 50px #0002;z-index:150;font-family:var(--font)}
#space-mode-menu[hidden]{display:none}
#space-mode-menu>p{font-size:11px;color:var(--muted);margin:4px 10px 12px}
#space-mode-menu>button{display:flex;align-items:center;gap:14px;width:100%;padding:12px 10px;text-align:left;border-radius:11px;color:inherit}
#space-mode-menu>button:hover,#space-mode-menu>button[aria-pressed=true]{background:var(--soft)}
#space-mode-menu b{display:block;font-size:13px;font-weight:500}
#space-mode-menu small{display:block;font-size:10px;color:var(--muted);margin-top:7px;line-height:1.6}
.mode-preview{width:63px;height:48px;flex:none;background:var(--bg);border-radius:8px;display:grid;place-items:center;color:var(--accent)}
.mode-preview-daily{grid-template-columns:1fr 1fr;gap:4px;padding:9px}
.mode-preview-daily i{width:100%;height:12px;border-radius:3px;background:color-mix(in srgb,var(--accent) 32%,var(--surface))}
.mode-preview-atlas svg{width:42px;height:36px}
body.atlas-active{overflow:hidden}
body.atlas-active #main>.workspace{visibility:hidden}
body.atlas-active #dock,body.atlas-transitioning #dock{position:relative;z-index:90}
body.atlas-active .dock,body.atlas-transitioning .dock{z-index:90}
body.atlas-active .peek-return{visibility:hidden}
body.atlas-active[data-dark=true] #space-mode-menu{--ink:#efefea;--muted:#b0b0b8}
#space-atlas .at-full-page{position:relative;display:block;padding:0;width:100%;height:100%}
#space-atlas .at-mode-host{position:absolute;z-index:80;font-size:20px;font-weight:500;max-width:230px}
#space-atlas .at-mode-host button{font:inherit}
#space-atlas .at-header-actions{position:absolute;z-index:80;display:flex;align-items:center;gap:10px}
#space-atlas .at-header-actions>.primary{height:38px;padding:8px 15px;background:var(--accent);color:#fff;font-size:12px}
#space-atlas .at-header-actions .space-share,#space-atlas .at-header-actions .display-scope-button{position:static;display:grid;place-items:center;width:34px;height:34px;padding:7px;margin:0;color:var(--muted)}
#space-atlas .at-header-actions button:hover{filter:brightness(1.08)}
#space-atlas .at-context{position:absolute;left:var(--chrome-left,40px);top:100px;z-index:75;max-width:min(500px,45vw);pointer-events:none}
#space-atlas .at-context button,#space-atlas .at-context .at-peer-scroll{pointer-events:auto}
#space-atlas .at-context .at-path{font-size:11px;max-width:100%;scrollbar-width:none}
#space-atlas .at-context .at-path button{font-size:11px}
#space-atlas .at-context .at-peers{padding-top:1px;min-height:30px;max-width:100%;gap:5px}
#space-atlas .at-context .at-peer{font-size:11px;padding:6px 10px}
#space-atlas .at-tools{position:absolute;right:var(--chrome-right,40px);top:102px;z-index:76;gap:9px;flex-wrap:nowrap;max-width:none;margin:0}
#space-atlas .at-tools .at-search{width:145px;background:color-mix(in srgb,var(--surface) 82%,transparent);padding:9px 11px}
#space-atlas .at-tools .at-switch{background:color-mix(in srgb,var(--ink) 4%,transparent)}
#space-atlas .at-tools .at-switch button{padding:7px 11px}
#space-atlas .at-canvas{position:absolute;inset:0;min-height:0;width:100%;height:100%;border-radius:0;background:radial-gradient(ellipse at 50% 52%,color-mix(in srgb,var(--at-accent) 5%,transparent),transparent 65%)}
#space-atlas .at-footer{position:absolute;bottom:24px;left:32px;right:32px;min-height:0;z-index:75;pointer-events:none}
#space-atlas .at-footer button,#space-atlas .at-controls{pointer-events:auto}
#space-atlas .at-hint{position:absolute;left:50%;bottom:101px;transform:translateX(-50%);white-space:nowrap;pointer-events:none}
#space-atlas .at-legend{gap:12px}
#space-atlas .at-legend span:nth-child(2) i{background:color-mix(in srgb,var(--at-accent) 65%,#5595ae);opacity:1}
#space-atlas .at-legend span:nth-child(3) i{background:color-mix(in srgb,var(--at-accent) 40%,#c2a171);opacity:1}
#space-atlas .at-parent-legend{color:var(--at-parent)}
#space-atlas .at-child-legend{color:var(--at-accent)}
#space-atlas .at-line{stroke:color-mix(in srgb,var(--at-accent) 40%,var(--bg))}
#space-atlas .at-line.is-upstream{stroke:var(--at-parent);stroke-dasharray:5 5;stroke-width:1.8;opacity:.7}
#space-atlas .at-line.is-upstream.is-related{stroke:var(--at-parent);opacity:1;stroke-width:2}
#space-atlas .at-link-line{opacity:.38;stroke-width:.65}
#space-atlas .at-node{--node-color:var(--at-accent);opacity:var(--depth-opacity,1)}
#space-atlas .at-node[data-kind=scene]{--node-color:color-mix(in srgb,var(--at-accent) 65%,#5595ae)}
#space-atlas .at-node[data-kind=group]{--node-color:color-mix(in srgb,var(--at-accent) 40%,#c2a171)}
#space-atlas .at-node .at-orb{background:color-mix(in srgb,var(--node-color) 16%,var(--surface));color:var(--node-color);box-shadow:0 0 0 1px color-mix(in srgb,var(--node-color) 12%,transparent)}
#space-atlas [data-mode="3d"] .at-orb{background:radial-gradient(circle at 28% 22%,color-mix(in srgb,var(--node-color) 12%,white) 0%,color-mix(in srgb,var(--node-color) 55%,var(--surface)) 42%,color-mix(in srgb,var(--node-color) 88%,#17241c) 100%);color:white;box-shadow:inset -5px -6px 13px #0002,inset 2px 2px 5px #fff6,5px 9px 17px color-mix(in srgb,var(--node-color) 15%,transparent)}
#space-atlas .at-node.is-related,#space-atlas .at-node:hover,#space-atlas .at-node:focus-within{z-index:70!important}
#space-atlas .at-node.is-parent{opacity:.45}
#space-atlas .at-node[data-kind=bundle] .at-node-main{display:grid;grid-template-columns:19px 1fr;gap:3px 7px;padding:8px 10px}
#space-atlas .at-node[data-kind=bundle] .at-node-main small{grid-column:2;text-align:left;font-size:9px}
#space-atlas .at-node[data-kind=bundle] .at-node-main strong{font-size:11px}
#space-atlas .at-node[data-kind=link] .at-node-main{padding:6px 9px;gap:7px}
#space-atlas .at-node[data-kind=link] .at-logo{width:25px;height:25px;border-radius:50%}
#space-atlas .at-link-dot .at-node-main{padding:0!important;border-radius:50%!important;background:var(--at-accent)!important;opacity:.7;box-shadow:0 0 0 3px color-mix(in srgb,var(--at-accent) 8%,transparent)!important}
#space-atlas .at-link-dot .at-node-main>.at-logo{display:none}
#space-atlas .at-link-dot .at-node-main>strong{display:none;position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:200px;padding:8px 12px;border-radius:9px;background:var(--surface);color:var(--ink);box-shadow:0 6px 20px #0001;pointer-events:none}
#space-atlas .at-link-dot:hover .at-node-main,#space-atlas .at-link-dot:focus-within .at-node-main{opacity:1;outline:5px solid color-mix(in srgb,var(--at-accent) 20%,transparent)}
#space-atlas .at-link-dot:hover .at-node-main>strong,#space-atlas .at-link-dot:focus-within .at-node-main>strong{display:block}
#space-atlas .at-link-dot .at-node-menu{right:-28px;top:-6px}
#space-atlas .at-site-view{padding-top:180px;padding-bottom:130px}
#space-atlas .at-site-heading .at-switch{display:none}
#space-atlas .at-drawer{z-index:110}
@media(max-width:760px){#space-atlas{inset:0;width:100%;height:100dvh;border-radius:0}#space-atlas .at-mode-host{left:22px!important;top:28px!important;font-size:18px;max-width:140px}#space-atlas .at-header-actions{gap:4px}#space-atlas .at-header-actions .primary{font-size:11px;padding:8px}#space-atlas .at-context{top:77px;left:22px;max-width:calc(100% - 44px)}#space-atlas .at-context .at-path{max-width:100%}#space-atlas .at-tools{top:143px;right:18px;left:18px;justify-content:flex-end;gap:6px}#space-atlas .at-tools .at-search{margin-right:auto;width:113px}#space-atlas .at-tools .at-switch button{padding:7px 9px}#space-atlas .at-tools .at-depth .at-quiet{padding:7px 4px}#space-atlas .at-tools .at-depth .at-quiet>svg:first-child{display:none}#space-atlas .at-footer{left:16px;right:16px;bottom:20px}#space-atlas .at-legend{position:absolute;bottom:145px;left:0;gap:8px;font-size:9px;flex-wrap:wrap;max-width:180px}#space-atlas .at-controls{margin-left:auto}#space-atlas .at-hint{display:none}#space-atlas .at-search-results{width:min(340px,calc(100vw - 36px));left:0;right:auto}#space-atlas .at-site-view{padding-top:200px}#space-atlas .at-node-menu{opacity:0}#space-atlas .at-node:focus-within .at-node-menu{opacity:1}}

/* Shared space heading and subdued, fully functional theme cords. */
.space-mode-entry{gap:7px;line-height:1.4;width:100%}
.space-mode-entry .space-mode-name{flex:0 1 auto}
.space-mode-entry .space-detail-icon,#space-atlas .space-mode-entry .space-detail-icon{display:grid;place-items:center;flex:none;width:21px;height:24px}
.space-mode-entry .space-detail-icon svg,#space-atlas .space-mode-entry .space-detail-icon svg{width:21px;height:21px}
.space-mode-entry .space-mode-indicator{display:grid;place-items:center;width:19px;height:23px;flex:none;color:var(--muted);opacity:.7}
.space-mode-entry .space-mode-indicator svg,#space-atlas .space-mode-entry .space-mode-indicator svg{width:14px;height:14px}
.space-mode-entry>svg,#space-atlas .space-mode-entry>svg{width:12px;height:12px}
#space-atlas .at-mode-host{max-width:none}
#space-atlas .at-context{max-width:min(520px,45vw)}
#space-atlas .at-tools{top:110px}
#space-atlas .at-layout-picker{position:relative;flex:none}
#space-atlas .at-layout-picker>.at-quiet{gap:7px;white-space:nowrap;padding:9px 10px}
#space-atlas .at-layout-picker>.at-quiet>svg:last-child{width:12px}
#space-atlas .at-layout-menu{position:absolute;right:0;top:calc(100% + 9px);width:256px;padding:9px;border-radius:14px;background:var(--surface);box-shadow:0 12px 45px #0002;z-index:90}
#space-atlas .at-layout-menu[hidden]{display:none}
#space-atlas .at-layout-menu>button{display:flex;align-items:center;gap:14px;padding:12px;width:100%;border-radius:9px;text-align:left}
#space-atlas .at-layout-menu>button:hover,#space-atlas .at-layout-menu>button[aria-pressed=true]{background:var(--soft)}
#space-atlas .at-layout-menu>button>svg{width:36px;height:32px;padding:4px;color:var(--at-accent);flex:none}
#space-atlas .at-layout-menu b{display:block;font-size:12px;font-weight:500}
#space-atlas .at-layout-menu small{display:block;font-size:10px;color:var(--muted);margin-top:6px}
#space-atlas .at-node[data-kind=link] .at-node-main{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:9px 12px;gap:9px;border-radius:12px;overflow:hidden}
#space-atlas .at-node[data-kind=link] .at-logo{position:static;transform:none;margin:0;flex:0 0 30px;width:30px;height:30px;border-radius:8px;overflow:hidden}
#space-atlas .at-node[data-kind=link] .at-logo>*{max-width:22px;max-height:22px;position:static;margin:0;transform:none}
#space-atlas .at-node[data-kind=link] .at-node-main>strong{flex:1;min-width:0;width:auto;line-height:1.5;text-align:left}
#space-atlas .at-node[data-kind=group] .at-node-main{gap:4px}
#space-atlas .at-node[data-kind=scene] .at-node-main{gap:4px}
#space-atlas .at-compact-node .at-node-main{display:flex;flex-direction:row;gap:7px;padding:7px 10px;border-radius:10px;background:color-mix(in srgb,var(--surface) 72%,transparent)}
#space-atlas .at-compact-node .at-node-main>strong{min-width:0;width:auto;flex:1;text-align:left;font-size:11px}
#space-atlas .at-compact-node .at-node-main>small{display:none}
#space-atlas .at-compact-node .at-orb{width:22px;height:22px;--orb-size:22px}
#space-atlas .at-compact-node .at-orb svg{width:13px;height:13px}
#space-atlas .at-compact-node[data-kind=bundle] .at-node-main{display:flex;gap:7px}
#space-atlas .at-more-symbol{font-size:19px;letter-spacing:1px;font-weight:600;line-height:1}
#space-atlas .at-node[data-kind=bundle] .at-node-main{border:0;background:color-mix(in srgb,var(--soft) 60%,var(--surface));padding:7px 10px;grid-template-columns:22px 1fr}
#space-atlas .at-node[data-kind=bundle] .at-node-main small{opacity:.7}
#space-atlas .at-node.is-muted{opacity:.15}
#space-atlas .at-node.is-parent{opacity:.45}
#space-atlas .at-node.is-related{opacity:1}
#space-atlas .at-flow{stroke:var(--at-accent);stroke-width:2.3;stroke-linecap:round;stroke-dasharray:5 95;opacity:0;transition:opacity .2s;pointer-events:none}
#space-atlas .at-flow.is-upstream{stroke:var(--at-parent)}
#space-atlas .at-flow.is-flowing{opacity:.95;animation:atlas-flow 1.1s linear infinite}
@keyframes atlas-flow{from{stroke-dashoffset:0}to{stroke-dashoffset:-100}}
@media(prefers-reduced-motion:reduce){#space-atlas .at-flow.is-flowing{animation:none;stroke-dasharray:4 6;opacity:.7}}
#space-atlas .at-hint{bottom:86px}
@media(max-width:760px){
 #space-atlas .at-mode-host{left:var(--chrome-left)!important;top:var(--chrome-top)!important;font-size:21px;max-width:none}
 #space-atlas .at-tools{top:143px;gap:6px}
 #space-atlas .at-tools .at-search{width:auto;min-width:84px;flex:1}
 #space-atlas .at-layout-picker>.at-quiet{font-size:11px;padding:8px 4px;gap:4px}
 #space-atlas .at-footer{bottom:123px}
 #space-atlas .at-legend{bottom:2px;max-width:145px}
 #space-atlas .at-controls{margin-left:auto}
 #space-atlas .at-context{top:107px}
 #space-atlas .at-context .at-peers{max-width:150px}
 #space-atlas .at-context .at-path{max-width:calc(100vw - 100px)}
 #space-atlas .at-tools{top:174px}
}

/* A travelling light reaches the selected node before branching to its children. */
#space-atlas .at-line.is-upstream{stroke-dasharray:4 5}
#space-atlas .at-packet{color:var(--at-accent);fill:currentColor;opacity:0;pointer-events:none}
#space-atlas .at-packet.is-upstream{color:var(--at-parent)}
#space-atlas .at-packet-halo{opacity:.17}
#space-atlas .at-packet-trail{opacity:.55}
#space-atlas .at-packet-head{filter:drop-shadow(0 0 1px currentColor)}
#space-atlas .at-node.is-receiving .at-orb{outline-color:var(--node-color)}
#space-atlas .at-node-main{cursor:grab;user-select:none;-webkit-user-drag:none}
#space-atlas .at-node[data-kind=link] .at-node-main{cursor:pointer}
#space-atlas .at-node.is-parent .at-node-main{cursor:pointer}
#space-atlas .at-node.is-held{z-index:72!important;opacity:1}
#space-atlas .at-node.is-held .at-node-main{cursor:grabbing;filter:drop-shadow(0 6px 10px #0001)}
#space-atlas .at-canvas.is-node-dragging,#space-atlas .at-canvas.is-node-dragging *{cursor:grabbing!important}
#space-atlas .at-node.is-held .at-node-menu{opacity:0;pointer-events:none}
@media(max-width:760px){#space-atlas .at-tools{top:125px}}

/* Shared node operations, with an orbital presentation for the same hierarchy. */
#space-atlas .at-bundle-mark{display:grid;place-items:center;color:var(--at-accent);flex:none}
#space-atlas .at-bundle-mark svg{width:16px;height:16px}
#space-atlas .at-node[data-kind=bundle] .at-node-main{display:grid;grid-template-columns:20px 1fr;column-gap:7px;row-gap:2px}
#space-atlas .at-node[data-kind=bundle] .at-bundle-mark{grid-row:1/3}
#space-atlas .at-node[data-kind=bundle] .at-node-main>strong{font-size:11px;text-align:left}
#space-atlas .at-node[data-kind=bundle] .at-node-main>small{font-size:9px;text-align:left}
#space-atlas .at-node[data-kind=add] .at-node-main{border:1px dashed color-mix(in srgb,var(--at-accent) 45%,transparent);background:color-mix(in srgb,var(--at-accent) 3%,transparent);color:var(--muted);box-shadow:none;cursor:pointer;gap:7px;min-height:50px}
#space-atlas .at-node[data-kind=add] .at-node-main:hover{color:var(--at-accent);background:var(--soft)}
#space-atlas .at-add-mark{display:grid;place-items:center;flex:none;box-sizing:border-box;width:28px;height:28px}
#space-atlas .at-node[data-kind=add] strong{font-size:11px;font-weight:400}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add][data-add-kind=scene] .at-node-main,#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add][data-add-kind=group] .at-node-main{border:0;background:transparent;flex-direction:column}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add][data-add-kind=scene] .at-add-mark{width:43px;height:43px;border:1px dashed color-mix(in srgb,var(--at-accent) 55%,transparent);border-radius:50%;background:color-mix(in srgb,var(--at-accent) 4%,transparent)}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add][data-add-kind=group] .at-add-mark{width:28px;height:28px;border:1px dashed color-mix(in srgb,var(--at-accent) 55%,transparent);border-radius:7px;background:color-mix(in srgb,var(--at-accent) 4%,transparent)}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add][data-add-kind=link] .at-node-main{display:flex;flex-direction:row;justify-content:flex-start;border-radius:12px;padding:9px 12px}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add][data-add-kind=link] .at-add-mark{flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:var(--soft)}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add] .at-add-mark svg{width:15px;height:15px}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=group] .at-orb{border-radius:7px}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-node[data-kind=add][data-add-kind=scene] .at-node-main,#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-node[data-kind=add][data-add-kind=group] .at-node-main{border:0;background:transparent;flex-direction:column}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-node[data-kind=add][data-add-kind=scene] .at-add-mark{width:43px;height:43px;border:1px dashed color-mix(in srgb,var(--at-accent) 62%,transparent);border-radius:50%;background:radial-gradient(circle at 28% 22%,color-mix(in srgb,var(--at-accent) 8%,white),color-mix(in srgb,var(--at-accent) 18%,var(--surface)) 55%,color-mix(in srgb,var(--at-accent) 35%,var(--surface)))}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-node[data-kind=add][data-add-kind=group] .at-add-mark{width:28px;height:28px;border:1px dashed color-mix(in srgb,var(--at-accent) 62%,transparent);border-radius:50%;background:radial-gradient(circle at 28% 22%,color-mix(in srgb,var(--at-accent) 8%,white),color-mix(in srgb,var(--at-accent) 18%,var(--surface)) 55%,color-mix(in srgb,var(--at-accent) 35%,var(--surface)))}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-node[data-kind=add][data-add-kind=link] .at-node-main{display:flex;flex-direction:row;justify-content:flex-start;border-radius:12px;padding:9px 12px}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-node[data-kind=add][data-add-kind=link] .at-add-mark{flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:var(--soft)}
#space-atlas .at-node[data-level="0"]>.at-node-main{padding-bottom:5px}
#space-atlas .at-node[data-level="0"][data-kind=group]>.at-node-main{padding-bottom:5px}
#space-atlas .at-summary{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:8px 11px;border-radius:9px;background:color-mix(in srgb,var(--surface) 92%,transparent);font-size:10px;color:var(--muted)}
#space-atlas .at-summary svg{width:12px;height:12px}
#space-atlas .at-summary:hover,#space-atlas .at-summary[aria-pressed=true]{color:var(--at-accent);background:var(--soft)}
#space-atlas .at-drawer-done{display:block;width:100%;border-radius:10px;background:var(--soft);padding:12px;margin-top:24px}
#space-atlas .at-node.is-sort-target .at-node-main{outline:1px solid var(--at-accent);outline-offset:5px;background:color-mix(in srgb,var(--at-accent) 12%,var(--surface))}
#space-atlas [data-mode="2d"] .at-node.is-sort-target:not([data-kind="link"]) .at-node-main{outline:none;background:transparent;box-shadow:none}
#space-atlas [data-mode="2d"] .at-node.is-sort-target .at-orb{outline:1px solid var(--at-accent);outline-offset:4px}
#space-atlas .at-orbit-track{fill:none;stroke:color-mix(in srgb,var(--at-accent) 27%,var(--bg));stroke-width:1;pointer-events:none}
#space-atlas .at-orbit-current{fill:var(--at-accent);opacity:.75;pointer-events:none}
#space-atlas .at-orbital .at-canvas{background:radial-gradient(ellipse at 50% 48%,color-mix(in srgb,var(--at-accent) 9%,transparent),transparent 57%)}
#space-atlas .at-orbital .at-line:not(.is-related):not(.is-upstream){opacity:0}
#space-atlas .at-orbital .at-line.is-related{opacity:.35}
#space-atlas .at-orbital .at-node:not(.is-parent) .at-orb{filter:hue-rotate(var(--planet-shift,0deg));--orb-size:48px;background:radial-gradient(circle at 27% 22%,color-mix(in srgb,var(--node-color,var(--at-accent)) 10%,#fff),color-mix(in srgb,var(--node-color,var(--at-accent)) 68%,var(--surface)) 44%,color-mix(in srgb,var(--node-color,var(--at-accent)) 65%,#131b20) 88%);box-shadow:inset -6px -4px 9px #0003,inset 1px 1px 4px #fff6,0 6px 18px #0001}
#space-atlas .at-orbital .at-node[data-level="0"] .at-orb{--orb-size:82px;background:radial-gradient(circle at 30% 25%,#fff5d3,#e3be73 37%,#bb8b4f 75%,#815b38);box-shadow:0 0 20px #d5af5b24,0 0 65px #d5af5b12,inset 2px 2px 10px #fff7;color:#fffdf4}
#space-atlas .at-orbital .at-node[data-level="0"] .at-orb:after{display:none}
#space-atlas .at-orbital .at-node[data-level="2"] .at-orb{--orb-size:22px}
#space-atlas .at-orbital .at-node[data-level="2"] .at-orb svg{width:13px;height:13px}
#space-atlas .at-orbital .at-node[data-level="1"][data-kind=group] .at-orb svg{width:21px;height:21px}
#space-atlas .at-orbital .at-node[data-level="1"][data-kind=link] .at-node-main{flex-direction:column;justify-content:center;padding:4px;background:transparent;gap:6px;overflow:visible;box-shadow:none}
#space-atlas .at-orbital .at-node[data-level="1"][data-kind=link] .at-logo{border-radius:50%;width:36px;height:36px;flex:0 0 36px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--at-accent) 15%,transparent),0 3px 14px #0001}
#space-atlas .at-orbital .at-node[data-level="1"][data-kind=link] strong{flex:none;width:100%;text-align:center}
#space-atlas .at-orbital .at-node[data-kind=add] .at-node-main{border:0;background:transparent;gap:8px}
#space-atlas .at-orbital .at-node[data-kind=add] .at-add-mark{width:48px;height:48px;border:1px dashed color-mix(in srgb,var(--at-accent) 55%,transparent);border-radius:50%}
#space-atlas .at-orbital .at-node[data-kind=add][data-add-kind=link] .at-add-mark{width:36px;height:36px}
#space-atlas .at-orbital .at-node[data-level="2"] .at-node-menu{top:-8px;right:-3px}
#space-atlas .at-orbital .at-node[data-level="2"]:not(:hover):not(:focus-within) .at-node-main{opacity:.75}
#space-atlas .at-orbital .at-node:not(.is-parent):not([data-kind=bundle]) .at-node-main{justify-content:flex-start;padding:0;gap:8px}
#space-atlas .at-orbital .at-node[data-kind=bundle] .at-node-main{background:color-mix(in srgb,var(--surface) 42%,transparent);font-size:10px}
#space-atlas .at-orbital .at-node[data-level="2"] .at-node-main{border-radius:8px}
#space-atlas .at-orbital .at-node[data-level="2"] small{font-size:9px}
#space-atlas .at-orbital .at-node[data-level="0"] .at-summary{bottom:13px}
#space-atlas .at-orbital .at-orbit-track{stroke:color-mix(in srgb,var(--at-accent) 37%,var(--bg))}
#space-atlas .at-orbital .at-node[data-level="1"]:not([data-kind=add]):not([data-kind=bundle]) .at-node-main>strong{font-size:14px}
#space-atlas .at-orbital .at-node[data-level="0"] .at-node-main>strong{font-size:15px}
#space-atlas .at-orbital .at-node[data-level="2"]{color:var(--muted)}
#space-atlas .at-orbital .at-planet-summary{visibility:hidden;opacity:0;white-space:normal;line-height:1.5;max-width:130px;transition:opacity .18s}
#space-atlas .at-orbital .is-summary-visible .at-planet-summary{visibility:visible;opacity:1}
#space-atlas .at-galaxy-haze{fill:none;stroke:var(--at-accent);opacity:.085;stroke-linecap:round;filter:blur(7px);pointer-events:none}
#space-atlas .at-galaxy-stars{fill:none;stroke:color-mix(in srgb,var(--ink) 65%,var(--at-accent));opacity:.4;stroke-linecap:round;pointer-events:none}
#space-atlas .at-galaxy .at-orbit-track:not(.at-add-orbit){stroke:color-mix(in srgb,var(--at-accent) 25%,transparent);stroke-width:1.2}
#space-atlas .at-galaxy .at-add-orbit{stroke-dasharray:3 6;opacity:.4}
#space-atlas .at-galaxy .at-node[data-level="0"] .at-orb{box-shadow:0 0 30px color-mix(in srgb,var(--at-accent) 26%,transparent),0 0 90px color-mix(in srgb,var(--at-accent) 12%,transparent),inset 2px 2px 10px #fff7}

.space-top-actions .space-global-search{position:relative;flex:0 0 34px;width:34px;height:36px;z-index:80}
.workspace-top:has(.space-global-search.is-open){z-index:21}
.space-global-search .global-search-trigger{position:relative;display:grid;place-items:center;width:34px;height:36px;padding:8px;border-radius:12px;color:var(--muted);z-index:2;background:transparent}
.space-global-search svg{display:block;width:18px;height:18px}
.space-global-search .global-search-field{position:absolute;right:0;top:0;display:flex;align-items:center;width:34px;height:36px;overflow:hidden;opacity:0;background:var(--surface);border-radius:12px;transition:width .24s ease,opacity .2s}
.space-global-search.is-open .global-search-field{width:min(275px,calc(100vw - 170px));opacity:1}
.space-global-search .global-search-field input{width:100%;height:100%;padding:0 42px 0 14px;min-width:0;outline:none;border:0;background:transparent;font:12px var(--font);color:var(--ink)}
.space-global-search:not(.is-open) input{visibility:hidden}
.space-global-search .global-search-results{position:absolute;right:0;top:44px;width:min(370px,calc(100vw - 40px));max-height:min(480px,60vh);overflow:auto;padding:8px;background:var(--surface);color:var(--ink);border-radius:14px;box-shadow:0 16px 55px #0002;overscroll-behavior:contain;text-align:left}
.space-global-search .global-search-results[hidden]{display:none}
.space-global-search .global-search-results>a{display:flex;align-items:center;gap:11px;padding:12px 10px;border-radius:9px;text-decoration:none;color:inherit;font-family:var(--font)}
.space-global-search .global-search-results>a:hover{background:var(--soft)}
.space-global-search .global-search-results>a>i{display:grid;place-items:center;width:30px;height:30px;flex:none;background:var(--soft);border-radius:8px;overflow:hidden}
.space-global-search .global-search-results>a>i>*{max-width:22px;max-height:22px;object-fit:contain;font-style:normal}
.space-global-search .global-search-results>a>span{min-width:0;flex:1}
.space-global-search .global-search-results b{display:block;font-size:12px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.space-global-search .global-search-results small{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.5}
.space-global-search .global-search-results>a>svg{width:13px;height:13px;color:var(--muted);flex:none}
.space-global-search .global-search-results>p{padding:10px;font-size:11px;color:var(--muted);margin:0}
.workspace #filter[hidden],.workspace #filter[hidden]+span[hidden]{display:none!important}
@media(max-width:760px){.space-global-search .global-search-results{position:fixed;left:20px;right:20px;top:66px;width:auto}.space-global-search.is-open .global-search-field{width:min(230px,calc(100vw - 220px))}}
#settings .space-entry-settings>h3{font-weight:500;font-size:17px;margin:8px 0 10px}
#settings .space-entry-settings>p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:22px}
#settings .space-entry-row{padding:17px;margin-bottom:12px;background:var(--soft);border-radius:13px}
#settings .space-entry-row>div{display:flex;align-items:center;gap:9px;margin-bottom:15px}
#settings .space-entry-row>.segmented{margin:0 0 12px}
#settings .space-entry-row>div>i{display:grid;place-items:center;width:20px;height:20px}
#settings .space-entry-row i svg{width:18px;height:18px}
#settings .space-entry-row b{font-size:13px;font-weight:500}
#settings .space-entry-row>label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;margin:10px 0}
#settings .space-entry-row>label>span{color:var(--muted);white-space:nowrap}
#settings .space-entry-row select{width:210px;padding:9px 12px;border:0;border-radius:8px;background:var(--surface);color:var(--ink);font:12px var(--font)}
#settings .space-entry-row .select-wrap{width:210px;max-width:70%}
#settings .space-entry-row>small{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:10px}

/* One quiet view selector, anchored away from the shared space actions. */
#space-atlas .at-canvas{user-select:none;-webkit-user-select:none}
#space-atlas .at-header-actions .membership-badge svg{width:15px;height:15px}
.space-top-actions .membership-badge{width:15px;flex:0 0 15px;justify-content:center}
#space-atlas .at-view-picker{margin-left:auto;pointer-events:auto}
#space-atlas .at-view-tools{display:flex;align-items:center;gap:8px;margin-left:auto;pointer-events:auto}
#space-atlas .at-focus-scene{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border-radius:50%;background:var(--surface);color:var(--muted)}
#space-atlas .at-focus-scene svg{width:18px;height:18px}
.workspace-tools .group-view-controls>.space-mode-entry,#space-atlas .at-view-tools>.space-mode-entry{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;padding:0;border-radius:50%;background:var(--surface);color:var(--muted)}
.workspace-tools .group-view-controls>.space-mode-entry:hover,#space-atlas .at-view-tools>.space-mode-entry:hover{background:var(--soft);color:var(--accent)}
#space-atlas .at-focus-scene:hover,#space-atlas .at-focus-scene:focus-visible{background:var(--soft);color:var(--at-accent)}
#space-atlas .at-view-picker>.at-quiet{padding:0;border-radius:24px;background:var(--surface);gap:0;color:var(--ink)}
#space-atlas .at-view-picker>.at-quiet>.at-view-dimension{padding:11px 5px 11px 14px;font-size:10px;line-height:18px;color:var(--muted);letter-spacing:.45px;flex:none}
#space-atlas .at-view-picker>.at-quiet>.at-view-current{padding:11px 14px 11px 5px;display:flex;align-items:center;gap:7px;min-width:0}
#space-atlas .at-view-picker>.at-quiet>.at-view-current>svg{width:18px;height:18px;color:var(--at-accent);flex:none}
#space-atlas .at-view-picker>.at-quiet>.at-view-current>b{font-size:11px;font-weight:500}
#space-atlas .at-view-picker>.at-quiet>.at-view-current>svg:last-child{transform:rotate(180deg);margin-left:3px;color:var(--ink)}
#space-atlas .at-view-picker>.at-quiet:has([aria-expanded=true]){background:var(--soft)}
#space-atlas .at-view-picker .at-layout-menu{top:auto;bottom:calc(100% + 10px);max-height:min(470px,calc(100dvh - 150px));overflow-y:auto;overscroll-behavior:contain;width:min(290px,calc(100vw - 32px))}
#space-atlas .at-view-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;margin:1px 1px 8px;border-radius:10px;background:color-mix(in srgb,var(--ink) 5%,transparent)}
#space-atlas .at-view-tabs>button{padding:8px 10px;border-radius:8px;color:var(--muted);font-size:11px;letter-spacing:.5px}
#space-atlas .at-view-tabs>button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px #0000000a}
#space-atlas .at-view-panel[hidden]{display:none}
#space-atlas .at-view-panel>button{display:flex;align-items:center;width:100%;padding:10px 12px;gap:10px;border-radius:9px;text-align:left}
#space-atlas .at-view-panel>button:hover,#space-atlas .at-view-panel>button[aria-pressed=true]{background:var(--soft)}
#space-atlas .at-view-panel>button>svg{width:36px;height:32px;padding:4px;color:var(--at-accent);flex:none}
#space-atlas .at-view-picker .at-layout-menu small{line-height:1.5}

/* The focused node carries the same theme color at every hierarchy level. */
#space-atlas .at-node[data-level="0"]{--node-color:var(--at-accent)}
#space-atlas .at-node.is-parent{--node-color:var(--muted);opacity:1!important;z-index:73!important}
#space-atlas .at-node.is-parent .at-node-main{padding:5px;gap:5px;border-radius:12px;background:transparent;box-shadow:none;color:var(--muted)}
#space-atlas .at-node.is-parent .at-orb{--orb-size:28px;border-radius:50%;background:color-mix(in srgb,var(--muted) 13%,var(--bg));color:var(--muted);box-shadow:none;filter:none}
#space-atlas .at-node.is-parent .at-orb::after{display:none}
#space-atlas .at-node.is-parent .at-orb svg{width:16px;height:16px}
#space-atlas .at-node.is-parent .at-node-main>strong{font-size:11px;font-weight:400;color:var(--muted)}
#space-atlas .at-node.is-parent:hover .at-node-main,#space-atlas .at-node.is-parent:focus-within .at-node-main{background:transparent;box-shadow:none;color:var(--ink)}
#space-atlas .at-node.is-parent:hover strong,#space-atlas .at-node.is-parent:focus-within strong{color:var(--ink)}
#space-atlas .at-line.is-upstream{stroke:color-mix(in srgb,var(--muted) 62%,var(--bg));stroke-width:1;opacity:.7}
#space-atlas .at-line.is-upstream.is-related{stroke:var(--at-accent);stroke-width:1.2;opacity:.8}
#space-atlas .at-packet.is-upstream{color:var(--at-accent)}
#space-atlas .at-orbital .at-node[data-orbit]{--node-color:var(--orbit-color,var(--at-accent))}
#space-atlas .at-orbital .at-orbit-track{stroke:color-mix(in srgb,var(--orbit-color,var(--at-accent)) 55%,var(--bg))}
#space-atlas .at-orbital .at-orbit-current{fill:var(--orbit-color,var(--at-accent))}
#space-atlas .at-orbital .at-node[data-orbit] .at-logo{background:color-mix(in srgb,var(--orbit-color) 17%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--orbit-color) 34%,transparent)}
#space-atlas .at-orbital .at-node[data-orbit] .at-add-mark{border-color:var(--orbit-color)}
#space-atlas .at-satellite-track{fill:none;stroke:color-mix(in srgb,var(--orbit-color,var(--at-accent)) 24%,transparent);stroke-width:.72;stroke-dasharray:2.5 4;pointer-events:none}
#space-atlas .at-orbit-track.is-drop-target,#space-atlas .at-satellite-track.is-drop-target{stroke:var(--orbit-color,var(--at-accent));stroke-width:2.2;opacity:1;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--orbit-color,var(--at-accent)) 45%,transparent))}
#space-atlas .at-galaxy .at-orbit-track.is-drop-target{stroke:var(--orbit-color,var(--at-accent))!important}
#space-atlas .at-orbit-slot{pointer-events:none;color:var(--orbit-color,var(--at-accent))}
#space-atlas .at-orbit-slot circle{fill:color-mix(in srgb,var(--orbit-color,var(--at-accent)) 12%,var(--bg));stroke:currentColor;stroke-width:1.5;stroke-dasharray:4 3}
#space-atlas .at-orbit-slot text{fill:var(--ink);font-size:11px;text-anchor:middle;paint-order:stroke;stroke:var(--bg);stroke-width:4px;stroke-linejoin:round}
#space-atlas [data-presentation=systems] .at-node[data-level="2"] .at-node-main{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:0;background:transparent;box-shadow:none;overflow:visible}
#space-atlas [data-presentation=systems] .at-node[data-level="2"] .at-node-main>strong{width:68px;text-align:center;font-size:9px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#space-atlas [data-presentation=systems] .at-node[data-level="2"] .at-node-main>small{display:none}
#space-atlas [data-presentation=systems] .at-node[data-level="2"] .at-more-orb{display:grid;place-items:center;font-size:16px;font-weight:600;letter-spacing:1px;color:#fff}
#space-atlas [data-presentation=systems] .at-node[data-level="2"][data-kind=bundle] .at-node-main{display:flex;background:transparent}
#space-atlas [data-presentation=systems] .at-node[data-level="2"][data-kind=bundle] .at-node-main>strong{text-align:center}
#space-atlas [data-mode="3d"] .at-node[data-level="0"] .at-orb{filter:none;background:radial-gradient(circle at 28% 22%,color-mix(in srgb,var(--at-accent) 12%,white),color-mix(in srgb,var(--at-accent) 52%,var(--surface)) 42%,color-mix(in srgb,var(--at-accent) 88%,#17241c));color:#fff;box-shadow:inset -5px -6px 13px #0002,inset 2px 2px 5px #fff6,0 0 30px color-mix(in srgb,var(--at-accent) 15%,transparent)}
/* Atlas keeps its own stable action bar above the draggable canvas. */
body:is(.atlas-active,.atlas-transitioning) #main>.workspace{z-index:auto}
body:is(.atlas-active,.atlas-transitioning) .workspace .space-top-actions{position:relative;z-index:90;visibility:visible}
body:is(.atlas-active,.atlas-transitioning):has(#space-atlas[open]) .workspace .space-top-actions{visibility:hidden}
body:is(.atlas-active,.atlas-transitioning) .workspace .sidebar{z-index:90}
body:is(.atlas-active,.atlas-transitioning) .workspace .space-heading-controls{visibility:visible}
@media(min-width:761px){
 body.atlas-active .workspace{height:100dvh;min-height:0;margin-bottom:0;padding-bottom:132px;box-sizing:border-box}
 body.atlas-active .workspace-content{height:calc(100dvh - 164px);min-height:0;display:flex;flex-direction:column}
 body.atlas-active .workspace-content>:not(#groups){flex-shrink:0}
}
/* Add targets keep the silhouette of their peers, with a quiet dashed outline. */
#space-atlas .at-full-page[data-mode="2d"] .at-compact-node[data-kind=add][data-add-kind] .at-node-main{flex-direction:row;gap:7px;padding:7px 10px;min-height:0;border:1px dashed color-mix(in srgb,var(--at-accent) 45%,transparent);border-radius:10px;background:color-mix(in srgb,var(--at-accent) 3%,transparent)}
#space-atlas .at-full-page[data-mode="2d"] .at-compact-node[data-kind=add][data-add-kind] .at-add-mark{width:22px;height:22px;border:0;border-radius:50%;background:transparent}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-node[data-kind=add][data-add-kind] .at-add-mark{background:color-mix(in srgb,var(--at-accent) 4%,transparent)}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add][data-add-kind=link] .at-add-mark,#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-node[data-kind=add][data-add-kind=link] .at-add-mark{flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:transparent}
/* In radial views, direct relationships lead and deeper branches recede. */
#space-atlas .at-full-page[data-mode="2d"][data-layout="radial"] .at-line[data-level="1"]{stroke:var(--at-accent);stroke-width:1.3;opacity:.8}
#space-atlas .at-full-page[data-mode="2d"][data-layout="radial"] .at-line[data-level="2"]{stroke:var(--at-accent);stroke-width:.8;opacity:.2}
#space-atlas .at-full-page[data-mode="2d"][data-layout="radial"] .at-node[data-level="2"]{opacity:.4}
#space-atlas .at-full-page[data-mode="2d"][data-layout="radial"] .at-line.is-muted{opacity:.1}
#space-atlas .at-full-page[data-mode="2d"][data-layout="radial"] .at-node.is-muted{opacity:.15}
#space-atlas .at-full-page[data-mode="2d"][data-layout="radial"] .at-node[data-level="2"]:is(.is-related,:hover,:focus-within){opacity:.85}
#space-atlas .at-full-page[data-mode="2d"][data-layout="radial"] .at-line[data-level="2"].is-related{opacity:.45}
/* Match add-label alignment to the resource cards in every presentation. */
#space-atlas .at-full-page .at-node[data-kind=add] .at-node-main>strong{text-align:left}
#space-atlas .at-full-page[data-mode="2d"] .at-node[data-kind=add]:is([data-add-kind=scene],[data-add-kind=group]) .at-node-main>strong{text-align:center}
#space-atlas .at-full-page.at-orbital .at-node[data-kind=add] .at-node-main{display:flex;flex-direction:column;align-items:center}
#space-atlas .at-full-page.at-orbital .at-node[data-kind=add] .at-node-main>strong{width:100%;text-align:center}
/* Expandable collections use a square symbol; only actual URLs have a card surface. */
#space-atlas [data-mode="2d"] .at-node[data-kind=bundle] .at-node-main{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px;border:0;background:transparent;box-shadow:none}
#space-atlas [data-mode="2d"] .at-node[data-kind=bundle] .at-bundle-mark{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:7px;background:var(--soft)}
#space-atlas [data-mode="2d"] .at-node[data-kind=bundle] .at-node-main>strong,#space-atlas [data-mode="2d"] .at-node[data-kind=bundle] .at-node-main>small{text-align:center}
#space-atlas .at-full-page[data-mode="3d"] .at-node[data-level="1"]{opacity:calc(var(--depth-opacity,1)*.85)}
#space-atlas .at-full-page[data-mode="3d"] .at-node[data-level="2"]{opacity:calc(var(--depth-opacity,1)*.28)}
#space-atlas .at-full-page[data-mode="3d"] .at-node.is-muted{opacity:.12}
#space-atlas .at-full-page[data-mode="3d"] .at-node[data-level="1"]:is(.is-related,:hover,:focus-within){opacity:1}
#space-atlas .at-full-page[data-mode="3d"] .at-node[data-level="2"]:is(.is-related,:hover,:focus-within){opacity:.6}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-line[data-level="1"]{stroke:var(--at-accent);stroke-width:1.3;opacity:.8}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-line[data-level="2"]{stroke:var(--at-accent);stroke-width:.8;opacity:.18}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-line.is-muted{opacity:.08}
#space-atlas .at-full-page[data-mode="3d"][data-presentation="spatial"] .at-line[data-level="2"].is-related{opacity:.4}
#space-atlas .at-full-page[data-mode="3d"] .at-satellite-track{opacity:.35}
