.fcx-sandbox-frame { width: 100%; height: 100%; min-height: 120px; display: block; border: 0; color-scheme: light; background: #fff; }
.fcx-holder:has(> .fcx-sandbox-frame) { position: absolute; inset: 27px 5px 33px; z-index: 2; overflow: hidden; }
.fcx-holder > .fcx-sandbox-frame { min-height: 0; }
.fcx-inline-control { position: absolute; inset: auto 5px 2px; z-index: 3; padding-inline: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fcx-static-card { padding: 6px; overflow-wrap: anywhere; }
.fcx-static-card p { margin: 6px 0; white-space: pre-wrap; }
.fcx-static-card pre { overflow: auto; max-height: 130px; white-space: pre-wrap; }
.fcx-workspace-panel { position: fixed; z-index: 290; max-width: calc(100vw - 24px); width: 340px; overflow: hidden; border: 1px solid var(--divider-line); border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--color-on-surface); background: var(--color-surface); }
.fcx-workspace-panel[data-placement="left"] { left: 12px; top: 82px; }
.fcx-workspace-panel[data-placement="right"] { right: 12px; top: 82px; }
.fcx-workspace-panel[data-placement="top"] { top: 72px; left: 50%; transform: translateX(-50%); }
.fcx-workspace-panel[data-placement="bottom"] { bottom: 16px; left: 50%; transform: translateX(-50%); }
.fcx-workspace-panel[data-placement="floating"] { top: 30%; right: 12px; }
.fcx-workspace-panel header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; }
.fcx-workspace-surface { height: min(350px, 50dvh); overflow: auto; }
.fcx-workspace-settings, .fcx-sandbox-editor { width: min(540px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 32px)); overflow: auto; color: var(--color-on-surface); background: var(--color-surface); border: 1px solid var(--divider-line); border-radius: 16px; padding: 20px; }
.fcx-workspace-settings::backdrop, .fcx-sandbox-editor::backdrop { background: rgb(0 0 0 / 45%); }
.fcx-workspace-settings h2, .fcx-sandbox-editor h2 { margin-top: 0; }
.fcx-workspace-settings select { width: 100%; margin: 8px 0; padding: 8px; }
.fcx-workspace-settings details { padding: 12px 0; border-bottom: 1px solid var(--divider-line); }
.fcx-workspace-settings label { display: flex; align-items: start; gap: 6px; margin: 6px 0; overflow-wrap: anywhere; }
.fcx-workspace-settings section { margin: 10px 0; padding: 8px; background: var(--color-surface-container-low); }
.fcx-workspace-settings footer, .fcx-sandbox-editor footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: end; margin-top: 12px; }
.fcx-sandbox-editor .fcx-sandbox-surface { height: min(380px, 45dvh); overflow: auto; }
.fcx-slot-control { flex-shrink: 0; }
.fcx-edit-control[hidden],#fcWorkspaceSettings[hidden],[data-fc-module-recovery][hidden] { display:none !important; }
.fcx-asset-workspace { min-width: 0; flex: 1 0 auto; }
.fcx-asset-workspace > p { margin: 0 4px 6px; }
.fcx-asset-surface { min-width: 0; height: min(70dvh, 720px); }
.fcx-visual-layer { position: fixed; top: 0; left: 0; pointer-events: none; }
.fcx-visual-content, .fcx-visual-hit { position: absolute; inset: 0; }
.fcx-visual-content > .fcx-sandbox-frame { min-height: 0; background: transparent; pointer-events: none; }
.fcx-visual-hit { background: transparent; border: 0; cursor: pointer; pointer-events: auto; }
.fcx-protected-recovery { position: fixed; inset: 6px 10px auto auto; z-index: 200001; }
.fcx-workspace-toolbar { position: fixed; z-index: 288; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(660px,calc(100vw - 30px)); height: 90px; overflow: hidden; border-radius: 18px; }
.fcx-workspace-toolbar > iframe { min-height: 0; }
.fcx-context-panel { height: 250px; max-height: 45dvh; transform: none; right: auto; }
.fcx-context-panel .fcx-workspace-surface { height: calc(100% - 42px); }
.mn-extension-region { min-width:0; flex:1; margin:12px; padding:12px; border-radius:18px; border:1px solid var(--divider-line); background:var(--color-surface); }
.mn-extension-region[data-placement="floating"] { position:fixed; z-index:288; right:20px; bottom:20px; width:min(360px,calc(100vw - 48px)); }
.mn-extension-region[data-placement="page"], .mn-extension-region[data-placement="replace"] { min-height:50dvh; }
.mn-extension-region-frame { height:min(52dvh,560px); }
[data-mn-extension-replaced="true"] > :not(.mn-extension-region) { display:none !important; }
