.gacha-workspace-switch{position:sticky;top:0;z-index:100;display:grid;grid-template-columns:44px minmax(80px,160px) minmax(80px,160px) 1fr 44px;align-items:center;gap:8px;height:64px;margin:0 0 8px;padding:8px 0;background:#141619;font-family:system-ui,sans-serif}.gacha-workspace-switch>button{min-height:40px;margin:0;padding:7px 10px;border:0;border-radius:7px;font:500 12px/1.3 system-ui,sans-serif;color:#b7bec6;white-space:nowrap;transition:background .18s,color .18s,transform .18s}.gacha-workspace-switch>button[aria-pressed=true]{background:#39434d;color:#fff}.gacha-workspace-switch>button:active{transform:scale(.97)}.gacha-workspace-switch .workspace-logout{justify-self:end;font-size:10px;padding:6px;min-width:36px}.workspace-room-slot{width:44px;height:44px;display:grid;place-items:center}.workspace-room-slot>a{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;margin:0;border:1px solid #65716b66;text-decoration:none}.workspace-room-slot img{display:block;width:28px;height:28px;object-fit:contain}.workspace-room-slot .workspace-model-room{display:none}.gacha-workspace-switch .workspace-model-refresh{display:grid;place-items:center;min-width:44px;width:44px;height:44px;min-height:44px;padding:10px;border-radius:50%;background:#53cc89;color:#123b27}.workspace-model-refresh svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.gacha-model-panel{width:100%;height:calc(100dvh - 72px);min-height:280px;background:#fff;border-radius:8px;overflow:hidden}.gacha-model-panel iframe{display:block;width:100%;height:100%;border:0;background:#fff}body[data-gacha-workspace]>.masthead{display:none}body[data-gacha-workspace]>main{max-width:none;padding:0}body[data-gacha-workspace] #dashboard{max-width:1320px;margin:auto;padding:0 16px}body[data-gacha-workspace] #message:empty{display:none}body[data-gacha-workspace] .admin-nav-bar{display:block;margin:0 0 12px}body[data-gacha-workspace] .admin-nav-bar .admin-refresh-wrap,body[data-gacha-workspace] #logout-button{display:none}body[data-gacha-workspace] .admin-tabs{margin:0;padding:4px}body[data-gacha-workspace] .admin-tabs button{min-height:38px;font:500 12px/1.35 system-ui,sans-serif}body[data-gacha-workspace=model]{background:#fff;overflow:hidden}body[data-gacha-workspace=model]>footer,body[data-gacha-workspace=model] #message{display:none!important}body[data-gacha-workspace=model] #dashboard>:not(.gacha-workspace-switch):not(.gacha-model-panel){display:none!important}body[data-gacha-workspace=model] .gacha-workspace-switch{background:#fff}body[data-gacha-workspace=model] .gacha-workspace-switch>button{color:#58675d}body[data-gacha-workspace=model] .gacha-workspace-switch>button[aria-pressed=true]{background:#edf1ee;color:#183e27}body[data-gacha-workspace=model] .workspace-room-slot .runtime-logo{display:none}body[data-gacha-workspace=model] .workspace-room-slot .workspace-model-room{display:grid}body[data-gacha-workspace=render] .workspace-room-slot .runtime-logo{display:grid}@media(max-width:600px){body[data-gacha-workspace] #dashboard{padding:0 10px}.gacha-workspace-switch{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr) 32px 40px;gap:5px;height:60px}.gacha-workspace-switch>button{font-size:11px;padding:6px 7px}.gacha-workspace-switch .workspace-logout{min-width:32px;font-size:10px;padding:4px}.gacha-workspace-switch .workspace-model-refresh,.workspace-room-slot,.workspace-room-slot>a{width:40px;height:40px;min-width:40px;min-height:40px}.gacha-model-panel{height:calc(100dvh - 68px)}body[data-gacha-workspace] .admin-tabs button{font-size:11px;min-height:36px}}@media(prefers-reduced-motion:reduce){.gacha-workspace-switch>button{transition:none}}

.workspace-studio-link{display:block!important;color:inherit;text-align:right;font:11px system-ui;padding:4px 0 10px;text-decoration:none}body[data-gacha-workspace=model] .workspace-studio-link{color:#222}.gacha-model-panel{height:calc(100dvh - 100px)}

/* Three services, one compact private workspace switch. */
.gacha-workspace-switch{grid-template-columns:40px minmax(70px,1fr) minmax(70px,1fr) minmax(70px,1fr) 36px 40px}.workspace-drawing-preview{display:grid;place-items:center;min-height:40px;text-decoration:none;border-radius:7px;color:inherit;font:12px system-ui;background:#ffffff0a}body[data-gacha-workspace=model] .workspace-drawing-preview{background:#f5f5f2;color:#222}@media(max-width:600px){.gacha-workspace-switch{grid-template-columns:32px repeat(3,minmax(0,1fr)) 30px 32px;gap:3px}.gacha-workspace-switch .workspace-model-refresh,.workspace-room-slot,.workspace-room-slot>a{min-width:32px;width:32px;min-height:36px;height:36px}.gacha-workspace-switch>button,.workspace-drawing-preview{font-size:10px;padding:5px 3px}.workspace-room-slot img{width:23px;height:23px}}

/* Three independent service workspaces, identical navigation geometry. */
.gacha-workspace-switch{grid-template-columns:44px repeat(3,minmax(0,140px)) minmax(32px,1fr) 44px}
body[data-gacha-workspace=render]{background:#0c0d0f;color:#e8ebed}
.gacha-cad-panel{height:calc(100dvh - 72px);width:100%;overflow:hidden;border-radius:8px;background:#e4e5e7}.gacha-cad-panel iframe{display:block;width:100%;height:100%;border:0;background:#e4e5e7}.workspace-cad-mark{display:none;font:600 11px/1 system-ui;color:#43474d;letter-spacing:.06em}
body[data-gacha-workspace=cad]{background:#e4e5e7;color:#22272c;overflow:hidden}body[data-gacha-workspace=cad]>footer,body[data-gacha-workspace=cad] #message{display:none!important}body[data-gacha-workspace=cad] #dashboard>:not(.gacha-workspace-switch):not(.gacha-cad-panel){display:none!important}body[data-gacha-workspace=cad] .gacha-workspace-switch{background:#e4e5e7}body[data-gacha-workspace=cad] .gacha-workspace-switch>button{color:#4c525b}body[data-gacha-workspace=cad] .gacha-workspace-switch>button[aria-pressed=true]{background:#c7cbd0;color:#1d2228}body[data-gacha-workspace=cad] .workspace-room-slot>a{display:none}body[data-gacha-workspace=cad] .workspace-cad-mark{display:block}
@media(max-width:600px){.gacha-workspace-switch{grid-template-columns:40px repeat(3,minmax(0,1fr)) 28px 36px;gap:3px}.gacha-workspace-switch>button{padding:6px 3px;font-size:10px}.gacha-workspace-switch .workspace-logout{min-width:28px;padding:4px 0}.workspace-room-slot,.workspace-room-slot>a{width:36px;height:36px;min-width:36px;min-height:36px}.gacha-cad-panel{height:calc(100dvh - 68px)}}

.workspace-site-home{flex:none;display:grid;place-items:center;width:36px;height:40px;padding:6px;text-decoration:none}.workspace-site-home img{display:block;width:24px;height:24px;object-fit:contain;filter:brightness(0) invert(1)}.workspace-model-refresh.is-refreshing svg{animation:admin-icon-refresh .65s ease-in-out}@keyframes admin-icon-refresh{to{transform:rotate(360deg)}}.admin-site-home{display:inline-flex;min-height:40px;align-items:center;font:600 12px system-ui;color:inherit;text-decoration:none;margin-bottom:12px}body.admin-refresh-flash:after{display:none!important;animation:none!important;content:none!important}@media(max-width:600px){.workspace-site-home{width:28px;height:40px;padding:3px}.workspace-site-home img{width:22px;height:22px}}@media(prefers-reduced-motion:reduce){.workspace-model-refresh.is-refreshing svg{animation:none}}
