.tc-spatial-active{overflow:hidden;background:#f7f7f3}.tc-spatial-active .tc-local-nav,.tc-spatial-active .tc-back,.tc-spatial-active .tc-footer,.tc-spatial-active [data-source-proposal]{display:none!important}.tc-spatial-active #browser{padding:0;max-width:none;margin:0}
.sp-universe.tu{position:relative;height:calc(100dvh - var(--sp-header,64px));min-height:0!important;width:100%;overflow:hidden;background:#f7f7f3;color:#111;font:14px/1.4 Arial,sans-serif}.sp-universe *{box-sizing:border-box}.sp-universe [hidden]{display:none!important}.sp-universe>canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.sp-universe button,.sp-universe select,.sp-universe input{font:inherit;min-height:44px;border:1px solid #d8d8d4;border-radius:12px;background:white;color:#111;padding:8px 12px}.sp-universe button{cursor:pointer}.sp-universe :is(button,a,input,select):focus-visible{outline:3px solid #1010ff;outline-offset:2px}
.sp-search.tu-toolbar{position:absolute;left:16px;top:12px;right:auto;display:flex;flex-wrap:wrap;gap:8px;width:350px;max-width:calc(100% - 32px);padding:8px;background:#fff;border:1px solid #d8d8d4;border-radius:18px;z-index:5;box-shadow:0 3px 12px #0001}.sp-search>[data-search-toggle]{flex:1;text-align:left}.sp-search-body{width:100%;max-height:60dvh;overflow:auto}.sp-search label{display:block}.sp-search input{width:100%;font-size:16px;margin:8px 0}.sp-search [data-search-results] button{display:flex;width:100%;flex-direction:column;align-items:flex-start;text-align:left;margin-bottom:4px}.sp-search small{color:#666}
.sp-status{position:absolute;top:88px;left:16px;max-width:min(400px,calc(100% - 32px));padding:6px 10px;background:#f7f7f3ed;border-radius:8px;font-size:12px;pointer-events:none;z-index:2}
.sp-sheet.tu-detail{position:absolute;right:16px;left:auto;bottom:16px;top:16px;width:350px;max-width:calc(100% - 32px);max-height:none;transform:none;border:1px solid #d8d8d4;border-radius:22px;background:#fff;color:#111;box-shadow:0 6px 28px #0002;overflow:hidden;z-index:4;padding:0;display:flex;flex-direction:column}.sp-sheet-content{padding:16px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1}.sp-handle{display:none}.sp-sheet h2{font:26px/1.15 TreecatCondensed,Arial,sans-serif;margin:0}.sp-sheet h3{font:700 16px Arial,sans-serif;margin:20px 0 12px}.sp-node-head{display:flex;gap:12px;align-items:center}.sp-node-head img,.sp-initial{width:54px;height:54px;border-radius:12px;object-fit:cover;flex:none}.sp-initial{background:#1010ff;color:#fff;display:grid;place-items:center;font-weight:bold}.sp-node-head>div{flex:1;min-width:0}.sp-node-head p{margin:4px 0;font-size:12px}.sp-node-head>button{align-self:flex-start}.sp-node-actions{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.sp-node-actions [data-target]{background:#1010ff;color:#fff;flex-basis:100%;border-color:#1010ff}.sp-node-actions button{flex:1;font-size:12px}
.sp-socials{display:flex;flex-wrap:wrap;gap:8px}.sp-socials a,.sp-sheet-content a{display:inline-flex;align-items:center;min-height:44px;color:#1010ff;overflow-wrap:anywhere}.sp-neighbours button{width:100%;display:flex;gap:10px;text-align:left;align-items:center;margin:6px 0}.sp-neighbours img,.sp-neighbours .sp-initial{width:40px;height:40px;border-radius:50%;object-fit:cover}.sp-neighbours button>span{flex:1}.sp-neighbours small,.sp-neighbours strong{display:block}.sp-neighbours small{font-size:11px;color:#666}
.sp-controls{position:absolute;left:16px;bottom:16px;display:flex;gap:6px;z-index:3}.sp-controls button{box-shadow:0 2px 8px #0001}.sp-route-endpoints{display:flex;flex-direction:column;gap:6px;margin:16px 0}.sp-route{border:1px solid #d8d8d4;border-radius:12px;margin-top:10px;overflow:hidden}.sp-route.is-active{border:2px solid #1010ff}.sp-route>button{display:block;width:100%;text-align:left;border:0;border-radius:0}.sp-route span,.sp-route strong{display:block}.sp-route span{font-size:12px;margin-top:6px}.sp-route details{padding:8px;font-size:12px}.sp-route summary{min-height:44px;cursor:pointer}.sp-route.is-active>button{background:#efefff}
.sp-disc-layer{position:absolute;inset:0;overflow:auto;background:#f7f7f3;z-index:10}.sp-disc-close{position:sticky;top:6px;left:6px;z-index:20;background:#1010ff!important;color:white!important}.sp-disc-layer .tv-explorer{min-height:100%}
@media(max-width:960px){.sp-search.tu-toolbar{left:10px;top:8px;width:calc(100% - 20px);max-width:none;padding:6px}.sp-status{left:10px;top:76px;font-size:11px;max-width:calc(100% - 20px)}.sp-sheet.tu-detail{inset:auto 8px max(8px,env(safe-area-inset-bottom));width:auto;max-width:none;height:var(--sheet-height,220px);max-height:85%;border-radius:24px 24px 16px 16px;transition:height .22s ease}.sp-sheet[data-level="1"]{height:var(--sheet-height,48%)}.sp-sheet[data-level="2"]{height:var(--sheet-height,85%)}.sp-handle{display:grid!important;place-items:center;width:100%;border:0!important;border-radius:24px 24px 0 0!important;min-height:32px!important;height:32px;flex:none;touch-action:none;cursor:ns-resize!important}.sp-handle span{width:44px;height:4px;background:#aaa;border-radius:4px}.sp-sheet-content{padding:4px 16px 16px}.sp-sheet h2{font-size:23px}.sp-controls{left:auto;right:10px;bottom:240px;flex-direction:column;gap:4px}.sp-controls button{padding:5px;font-size:12px}.sp-node-actions{margin:8px 0}.sp-sheet:has(.sp-route)~.sp-controls{bottom:50%}.sp-search-body{max-height:45dvh}.sp-disc-layer .tv-explorer{padding-top:5px}}
@media(prefers-reduced-motion:reduce){.sp-sheet.tu-detail{transition:none}}

.sp-universe.tu{position:fixed!important;inset:var(--sp-header,64px) 0 0!important;height:auto!important;margin:0!important}.sp-neighbours .sp-initial{flex:none}

@media(max-width:960px){.sp-controls{width:54px}.sp-controls button{width:54px;min-height:44px}.sp-controls [data-fit]{font-size:10px}}

.sp-universe .sp-route>button{color:#111;background:#fff}.sp-universe .sp-route.is-active>button{color:#1010ff;background:#efefff}.sp-universe .sp-route>button:hover{color:#111;background:#f0f0ed}
