/* Shared mode control: the 3D material comes from two matching image assets. */
.space-switch{position:fixed;right:max(14px,env(safe-area-inset-right));z-index:110;text-decoration:none;touch-action:manipulation}
body:has(dialog[open]) .space-switch{display:none!important}
.community-mode-slot .space-switch{position:static!important}
a.space-switch.mode-rendered{box-sizing:border-box!important;display:grid!important;grid-template-rows:1fr!important;place-items:center!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;max-width:56px!important;max-height:56px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;line-height:0;isolation:isolate;transition:transform .14s ease}
a.space-switch.mode-rendered .mode-art{position:relative;display:block!important;width:56px!important;height:56px!important;border:0;border-radius:50%;overflow:hidden;pointer-events:none;filter:drop-shadow(0 3px 3px #3b362b35)}
a.space-switch.mode-rendered .mode-art .mode-asset{position:absolute!important;display:block!important;left:0!important;top:0!important;width:56px!important;height:56px!important;max-width:none!important;object-fit:contain;pointer-events:none}
a.space-switch.mode-rendered:hover{transform:translateY(-1px);background:transparent!important;box-shadow:none!important}
a.space-switch.mode-rendered:active{transform:translateY(1px) scale(.96);background:transparent!important;box-shadow:none!important}
a.space-switch.mode-rendered:focus-visible{outline:2px solid #a99b7b!important;outline-offset:3px!important}
.community-mode-slot{width:56px!important;height:56px!important}
@media(max-width:380px){.space-switch{right:10px}}
@media(min-width:1051px){body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .room-heading-guide{padding-right:54px!important}}
@media(prefers-reduced-motion:reduce){a.space-switch.mode-rendered{transition:none}}

/* The icon is also the drag handle, on touchscreens and desktop pointers. */
a.space-switch.mode-rendered{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}
a.space-switch.mode-rendered.is-dragging{cursor:grabbing;transform:none!important;transition:none!important}
.space-switch.is-dragging .space-switch-hint{visibility:hidden}
.space-switch-hint.hint-right:after{right:auto;left:-5px;transform:rotate(225deg)}
