/* Shared workbench shell: World, Char, Interaction, Play. */
.workbench-studio{--wb-surface:#f8f8f6;--wb-ivory:#faf9f5;--wb-sand:#e8e6dc;--wb-text:#111;--wb-muted:#7b7974;--wb-border:#e8e6dc;--wb-border-soft:#f0eee6;--wb-accent:#c96442}
.workbench-studio[data-theme=dark]{--wb-surface:#1f1f1e;--wb-ivory:#201e1b;--wb-sand:#2a2825;--wb-text:#d4d0c8;--wb-muted:#8a867e;--wb-border:#322f2c;--wb-border-soft:#2a2825;--wb-accent:#d97757}
:is(#studio-world,#dash-assets .workbench-studio,#dash-objects .workbench-studio,#dash-play .workbench-studio){grid-template-columns:224px minmax(0,1fr);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,Arial,sans-serif;font-size:14px;line-height:1.5;background:var(--wb-surface);color:var(--wb-text)}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-sidebar{background:var(--wb-surface);border-right:1px solid var(--wb-border)}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-sidebar-top{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 14px}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-logo{font-family:Georgia,"Times New Roman",serif;font-size:16px;font-weight:500;letter-spacing:-.01em;color:var(--wb-text);white-space:nowrap}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-logo>span{color:var(--wb-accent)}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-nav{display:flex;flex-direction:column;flex-shrink:0;gap:1px;padding:6.4px 8px 8px;border-bottom:1px solid var(--wb-border-soft)}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-nav button{display:flex;align-items:center;gap:8px;min-height:33px;height:auto;width:100%;padding:6.72px 8px;border:0;border-radius:8px;background:transparent;color:var(--wb-text);font-size:13.12px;font-weight:400;line-height:1.5;text-align:left;cursor:pointer}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-nav button.active,:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-nav button:hover{background:var(--wb-sand);color:var(--wb-text)}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-nav button.active{font-weight:500}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-nav button b{font-weight:inherit}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-nav svg{width:16px;height:16px;opacity:.72;color:inherit}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-nav button.active svg{opacity:1}
:is(#studio-world,#dash-assets,#dash-objects,#dash-play) .workbench-sidebar-footer{border-top:1px solid var(--wb-border);background:var(--wb-surface)}

/* World uses the same editor density and flat step bar as Interaction. */
#studio-world{--fw-bg:var(--wb-surface);--fw-paper:var(--wb-ivory);--fw-white:var(--wb-ivory);--fw-border:var(--wb-border);--fw-text:var(--wb-text);--fw-muted:var(--wb-muted);--fw-soft:var(--wb-sand);--fw-accent:var(--wb-accent);--fw-sidebar:224px;--fw-inspector:282px}
#studio-world .fw-workbench{grid-template-rows:64px 60px minmax(0,1fr) 26px}
#studio-world .fw-header{padding:10px 14px 10px 16px;background:var(--wb-surface)}
#studio-world .fw-breadcrumb{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;row-gap:2px;align-items:center;min-width:0}
#studio-world .fw-header-kind{font-size:10px;letter-spacing:.04em;color:var(--wb-muted)}
#studio-world .fw-header-world{font:16px Georgia,"Times New Roman",serif;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#studio-world .fw-header-path{grid-column:1/-1;color:var(--wb-muted);font:9px var(--mono,monospace)}
#studio-world .fw-header-actions{gap:8px}
#studio-world .fw-save-state{font-size:10px}
#studio-world .fw-button{font-size:11px;border-radius:6px;min-height:29px;padding:5px 10px}
#studio-world .fw-workflow{padding:0;display:block;background:var(--wb-ivory)}
#studio-world .fw-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;height:100%}
#studio-world .fw-steps button{height:100%;min-width:0;gap:9px;padding:10px 18px;border:0;border-right:1px solid var(--wb-border-soft);border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--wb-muted)}
#studio-world .fw-steps button:last-child{border-right:0}
#studio-world .fw-step-num{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;border:1px solid var(--wb-border);border-radius:50%;font:8px var(--mono,monospace);opacity:1}
#studio-world .fw-steps strong{font-size:11px;font-weight:400;color:inherit}
#studio-world .fw-steps small{font-size:9px;color:var(--wb-muted)}
#studio-world .fw-steps button[aria-selected=true]{border-bottom-color:var(--wb-accent);color:var(--wb-text);background:transparent}
#studio-world .fw-steps button[aria-selected=true] strong{color:var(--wb-text)}
#studio-world .fw-steps button[aria-selected=true] .fw-step-num{border-color:var(--wb-accent);color:var(--wb-accent)}
#studio-world .fw-steps button:hover{background:var(--wb-sand)}
#studio-world .fw-nav button>i{display:none}
#studio-world .fw-sidebar-scroll{padding:12px 6px 15px}
#studio-world .fw-section-label{font-size:10px;letter-spacing:.03em;padding:0 9px}
#studio-world .fw-world-card{padding:7px 8px;border-radius:6px}
#studio-world .fw-world-card strong{font-size:11.5px;font-weight:400;color:var(--wb-text)}
#studio-world .fw-world-card small{font-size:9px}
#studio-world .fw-world-card.active{background:var(--wb-sand);border-color:transparent}
#studio-world .fw-new-world{font-size:11px!important;margin:10px 3px 20px;width:calc(100% - 6px)}
#studio-world .fw-tree-root{font-size:11px;margin-left:9px}
#studio-world .fw-tree>button{font-size:11.5px;min-height:28px;border-radius:6px;padding:5px 9px 5px 18px;color:var(--wb-muted)}
#studio-world .fw-tree>button.active{background:var(--wb-sand);color:var(--wb-text)}
#studio-world .fw-sidebar-foot{height:59px;min-height:59px;padding:12px 14px;font-size:9px}
#studio-world .fw-sidebar-foot>.fw-status-dot{width:7px;height:7px;order:3;margin-left:7px}
#studio-world .fw-sidebar-foot>button{border:1px solid var(--wb-border);border-radius:50%;width:30px;height:30px}
#studio-world .fw-inspector-content{padding:0 14px 18px}
#studio-world .fw-section-heading h3{font-size:12px;font-weight:400}
#studio-world .fw-field>label,#studio-world .fw-vector-group>span,#studio-world .fw-range-label{font-size:10px}
#studio-world .fw-field input,#studio-world .fw-field select,#studio-world .fw-field textarea,#studio-world .fw-input-suffix input{font-size:11px;min-height:29px;border-radius:6px;background:var(--wb-surface)}
#studio-world .fw-vector input{font-size:10px;min-height:0}
#studio-world .fw-vector>label{border-radius:6px;background:var(--wb-surface);padding:6px}
#studio-world .fw-small-note,#studio-world .fw-inline-note{font-size:10px}
#studio-world .fw-selected-item strong{font-size:11px}
#studio-world .fw-selected-item small{font-size:9px}
#studio-world .fw-source-label{font-size:10px}
#studio-world .fw-dropzone>strong{font-size:11px}.fitx-world-studio .fw-dropzone>span{font-size:9px}
#studio-world .fw-library-heading strong{font-size:12px;font-weight:400}
#studio-world .fw-asset-total,#studio-world .fw-text-button,#studio-world .fw-asset-card>strong{font-size:10px}
#studio-world .fw-asset-image{border-radius:5px}
#studio-world .fw-asset-card.active .fw-asset-image{background:var(--wb-sand)}
#studio-world .fw-view-tabs,#studio-world .fw-toolbar{border-color:var(--wb-border);background:var(--wb-ivory);backdrop-filter:none}
#studio-world .fw-view-tabs>button{font-size:11px;color:var(--wb-muted)}
#studio-world .fw-view-tabs>button.active{background:var(--wb-sand);color:var(--wb-text);box-shadow:none}
#studio-world .fw-toolbar>button{color:var(--wb-muted)}
#studio-world .fw-toolbar>button:hover,#studio-world .fw-toolbar>button[aria-pressed=true]{background:var(--wb-sand);color:var(--wb-text)}
#studio-world .fw-tool-divider{background:var(--wb-border)}
#studio-world .fw-scene-label{font-size:10px}
#studio-world.fw-collapsed{grid-template-columns:46px minmax(0,1fr)}
#studio-world.fw-collapsed .workbench-sidebar-top{padding:0;justify-content:center}
#studio-world.fw-collapsed .workbench-nav{padding:6.4px 5px 8px}
#studio-world.fw-collapsed .workbench-nav button{justify-content:center;padding:6.72px 0}
