html,body,#workspace-views{margin:0;width:100%;height:100%;overflow:hidden;background:#fff}
#workspace-views{position:relative}
.workspace-view{position:absolute;inset:0;width:100%;height:100%;border:0;visibility:hidden;pointer-events:none}
.workspace-view.is-current{visibility:visible;pointer-events:auto}
#workspace-opening{position:absolute;inset:0;z-index:4;display:grid;place-items:center;background:#fff;color:#242424;pointer-events:auto;font:13px/1.5 system-ui,sans-serif;text-align:center}
#workspace-opening[hidden],#workspace-opening [hidden]{display:none}
#workspace-opening .page-startup-logo{filter:drop-shadow(0 12px 9px #0003)}
#workspace-opening figure{display:grid;justify-items:center;gap:22px;margin:0;padding:24px;max-width:100%}
#workspace-opening canvas{display:block;width:auto;height:auto;max-width:min(384px,78vw);max-height:55vh;border-radius:8px;box-shadow:0 18px 34px #0003,0 5px 9px #0001}
#workspace-opening figcaption{max-width:44ch;min-height:2em}
#workspace-opening[data-kind="new"] figure{position:absolute;top:calc(50% + var(--startup-logo-size)/2 + 22px);left:0;right:0;padding:0 24px;pointer-events:none}
#workspace-opening button{position:absolute;bottom:24px;border:0;background:none;color:#555;font:inherit;text-decoration:underline;cursor:pointer}
#workspace-status{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);max-width:min(90vw,38rem);padding:12px 18px;border-radius:8px;background:#fff;color:#191919;box-shadow:0 3px 20px #0002;font:14px/1.4 system-ui,sans-serif;z-index:5}
#workspace-status[hidden]{display:none}

/* R80 V3: native desktop fullscreen backing is armed by the current editor
   before the browser request. It never changes the visible page or its size. */
html:has(#workspace-views>.workspace-view.is-current[data-editor-fullscreen-backing=editor-light]) {--workspace-fullscreen-backing:#fff}
html:has(#workspace-views>.workspace-view.is-current[data-editor-fullscreen-backing=editor-dark]) {--workspace-fullscreen-backing:#000}
html:has(#workspace-views>.workspace-view.is-current[data-editor-fullscreen-backing=studio-light]) {--workspace-fullscreen-backing:#b8bec5}
html:has(#workspace-views>.workspace-view.is-current[data-editor-fullscreen-backing=studio-dark]) {--workspace-fullscreen-backing:#0b0d10}
html:has(#workspace-views>.workspace-view.is-current[data-editor-fullscreen-backing]),
html:has(#workspace-views>.workspace-view.is-current[data-editor-fullscreen-backing]) :is(body,#workspace-views),
#workspace-views>.workspace-view.is-current[data-editor-fullscreen-backing],
#workspace-views>.workspace-view.is-current[data-editor-fullscreen-backing]::backdrop {background-color:var(--workspace-fullscreen-backing,#fff)}
