/* Space stays a canvas. Presence and sharing occupy one quiet corner. */
.space-tools { position:fixed; top:20px; right:24px; z-index:11000; display:flex; align-items:center; gap:14px; font:12px/1.4 Inter, sans-serif; color:#aaa; }
.space-tools button,.space-share-dialog button { font:500 13px/1.3 Inter,sans-serif; color:#111; background:#f4f4f2; border:1px solid transparent; border-radius:9px; min-height:40px; padding:10px 17px; cursor:pointer!important; }
.space-tools button:hover,.space-share-dialog button:hover { background:#c0d1fa; }
.space-tools button:focus-visible,.space-share-dialog :focus-visible { outline:2px solid #c0d1fa; outline-offset:4px; }
.space-tools button:disabled,.space-share-dialog button:disabled { opacity:.5; cursor:wait!important; }
.space-peers { display:flex; padding-left:6px; }
.space-peer { display:grid; place-items:center; width:29px; height:29px; margin-left:-6px; border:2px solid #030303; border-radius:50%; color:#151515; font-weight:600; }
.space-connection { max-width:190px; }
.space-share-dialog { width:min(430px,calc(100vw - 32px)); max-height:calc(100svh - 40px); padding:30px; border:1px solid #373737; border-radius:18px; background:#151515; color:#f4f4f2; box-shadow:0 24px 80px #0009; font:13px/1.55 Inter,sans-serif; z-index:40000; overflow-y:auto; }
.space-share-dialog::backdrop { background:#0009; backdrop-filter:blur(5px); }
.space-share-dialog h2 { margin:0 30px 10px 0; font-size:24px; font-weight:500; letter-spacing:-.04em; }
.space-share-dialog p { color:#a6a6a6; margin:0 0 23px; }
.space-dialog-close { position:absolute; top:13px; right:13px; }
.space-dialog-close button { background:transparent; color:#ccc; border-radius:50%; width:32px; min-height:32px; padding:0; font-size:22px; }
.space-dialog-close button:hover { color:#111; }
.space-field { display:flex; flex-direction:column; gap:8px; font-size:12px; color:#bbb; margin:18px 0; }
.space-field input { width:100%; box-sizing:border-box; padding:12px; border:1px solid #393939; background:#0c0c0c; border-radius:8px; color:#f4f4f2; font:13px/1.4 Inter,sans-serif; min-width:0; }
.space-room-actions { display:flex; flex-wrap:wrap; gap:10px; }
.space-room-actions .space-field { width:100%; margin:0 0 4px; }
.space-share-dialog .is-secondary { color:#ddd; background:transparent; border-color:#414141; }
.space-share-dialog .is-secondary:hover { background:#252525; }
.space-share-dialog .space-share-message { margin:16px 0; font-size:12px; }
.space-join { padding-top:18px; border-top:1px solid #333; }
.space-join summary { cursor:pointer; color:#ccc; }
.space-cursors { position:fixed; inset:0; pointer-events:none; z-index:10500; overflow:hidden; }
.space-peer-cursor { position:absolute; top:0; left:0; transition:transform 100ms linear; will-change:transform; }
.space-peer-cursor[hidden] { display:none; }
.space-peer-cursor span { display:block; margin:-5px 0 0 17px; padding:3px 8px; width:max-content; max-width:150px; overflow:hidden; text-overflow:ellipsis; border-radius:4px; background:currentColor; font:11px/1.4 Inter,sans-serif; }
.space-peer-cursor span { background:#161616; border:1px solid currentColor; }
[data-space-editor] { outline:1px solid var(--space-peer-color)!important; }
[data-space-editor]::after { content:attr(data-space-editor); position:absolute; bottom:calc(100% + 6px); left:0; padding:3px 8px; border-radius:4px; background:var(--space-peer-color); color:#111; font:11px/1.4 Inter,sans-serif; pointer-events:none; }
.space-toast { position:fixed; bottom:26px; left:50%; transform:translate(-50%,6px); z-index:40001; width:max-content; max-width:calc(100vw - 40px); background:#f4f4f2; color:#151515; padding:11px 17px; border-radius:8px; font:12px/1.5 Inter,sans-serif; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; }
.space-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.is-space-page .hero-custom-node--sketchfab { width:min(350px,calc(100vw - 36px)); min-width:240px; padding:12px; }
.space-sketch-preview { position:absolute; inset:0; width:100%; height:100%; padding:0; border:0; background:#161616; color:#eee; cursor:pointer!important; display:grid; place-items:center; overflow:hidden; }
.space-sketch-preview img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.space-sketch-preview span { position:relative; border:1px solid #ffffff40; border-radius:30px; padding:9px 15px; background:#111d; font:12px Inter,sans-serif; }
.space-sketch-preview:hover span { background:#f4f4f2; color:#111; }
.space-sketch-preview[hidden],.space-sketch-finish[hidden],.hero-custom-node--sketchfab iframe[hidden] { display:none!important; }
.space-sketch-title { display:block; margin:9px 0 5px; font:500 13px/1.4 Inter,sans-serif; color:#eee; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.space-sketch-credit { display:block; margin-bottom:10px; font:11px/1.4 Inter,sans-serif; color:#999; }
.space-sketch-finish { position:absolute; right:8px; top:8px; z-index:2; padding:6px 10px; border:1px solid #555; border-radius:6px; background:#111; color:white; font:11px Inter,sans-serif; cursor:pointer!important; }
@media(max-width:600px){.space-tools { top:12px; right:12px; gap:8px; }.space-connection { max-width:105px; font-size:11px; }.space-tools button { min-height:42px; padding:10px 13px; }.space-share-dialog { padding:24px; }.space-peers .space-peer:nth-child(n+4){display:none;}}
@media(prefers-reduced-motion:reduce){.space-peer-cursor,.space-toast{transition:none;}}
