.studio-shell{background:var(--background);height:100dvh;min-height:0;color:var(--text);flex-direction:column;display:flex;position:fixed;inset:0;overflow:hidden}.shell-topbar{background:var(--surface);border-bottom:1px solid var(--line);z-index:60;align-items:center;gap:8px;height:44px;min-height:44px;padding:0 8px;display:flex}.shell-brand{border-radius:var(--radius-sm);color:var(--accent);flex:none;align-items:center;gap:8px;font-size:18px;font-weight:500;text-decoration:none;display:flex}.shell-brand:hover{background:var(--accent-soft);text-decoration:none}.shell-crumbs{min-width:0;max-width:25%;color:var(--text-secondary);border-left:1px solid var(--line);align-items:center;gap:8px;padding-left:8px;display:flex}.shell-crumbs>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.shell-screen-title{white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:4px;min-width:0;margin:0;font-size:15px;font-weight:500;display:flex;overflow:hidden}.shell-tools{flex:none;margin-left:auto;position:relative}.shell-tools>summary{cursor:pointer;border-radius:var(--radius-sm);justify-content:center;align-items:center;width:28px;min-height:28px;list-style:none;display:flex}.shell-tools>summary::-webkit-details-marker{display:none}.shell-tools>summary:hover{background:var(--accent-soft)}.shell-tools-menu{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md);width:max-content;min-width:240px;max-width:min(420px,100vw - 16px);max-height:calc(100dvh - 56px);box-shadow:var(--shadow-overlay);gap:12px;padding:12px;display:grid;position:absolute;top:36px;right:0;overflow:auto}.shell-tools-menu>*,#work-corner-controls{min-width:0}#work-corner-controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.shell-tools-menu .api-key-control:has(.api-key-panel){flex-basis:100%}.shell-tools-menu .api-key-panel{width:100%;box-shadow:none;margin-top:8px;position:static}.shell-save-status{color:var(--text-secondary);white-space:nowrap;flex:none;align-items:center;gap:4px;font-size:11px;display:flex}.shell-save-status .save-status{margin:0}.shell-status-target{align-items:center;gap:4px;display:inline-flex}.shell-status-target:not(:empty)+.shell-status-fallback{display:none}.shell-body{flex:1;min-width:0;min-height:0;display:flex}.shell-rail{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;flex:none;width:48px;display:flex;overflow:hidden}.shell-rail.is-expanded{width:200px}.shell-rail-tools{flex:none;align-items:center;min-height:32px;display:flex}.shell-rail-tools>button{min-height:28px;padding:4px 12px}.shell-rail:not(.is-expanded) .shell-rail-tools>.help-tip{display:none}.shell-rail-group{border-top:1px solid var(--line);padding:4px 0}.shell-rail-group h2{color:var(--text-secondary);margin:4px 12px;font-size:11px;font-weight:400}.shell-rail:not(.is-expanded) .shell-rail-group h2,.shell-rail:not(.is-expanded) .shell-rail-name{display:none}.shell-rail-item{min-height:32px;color:var(--text);white-space:nowrap;border-left:2px solid #0000;border-radius:0;align-items:center;gap:12px;padding:4px 12px;display:flex}.shell-rail-item[aria-current=page]{background:var(--accent-soft);color:var(--accent-dark);border-left-color:var(--accent)}.shell-rail-mark{flex:none;display:flex;position:relative}.shell-rail-dot{background:var(--ai);border-radius:50%;width:6px;height:6px;position:absolute;top:-2px;right:-4px}.shell-ai-running:before{content:"";border:2px solid var(--line);border-top-color:var(--ai);border-radius:50%;width:10px;height:10px;animation:.8s linear infinite spin;display:inline-block}.studio-shell:has(.shell-ai-running) .shell-rail-item[aria-current=page] .shell-rail-mark:after{content:"";border:2px solid var(--line);border-top-color:var(--ai);border-radius:50%;width:10px;height:10px;animation:.8s linear infinite spin;display:inline-block}.studio-shell:has(.shell-ai-running) .shell-rail-item[aria-current=page] .shell-rail-mark:after{background:var(--surface);position:absolute;top:-4px;right:-4px}.shell-rail-name{font-size:12px}.shell-rail-footer{margin-top:auto;padding:4px 12px;font-size:11px}.shell-drop-surface{flex:1;min-width:0;min-height:0;display:flex}.shell-work-area{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.shell-work-scroll{flex:1;min-width:0;min-height:0;padding:16px 24px 24px;overflow:auto}.studio-shell .editor-width{width:100%;max-width:none;margin:0}.studio-shell .editor-header{margin-bottom:16px}.studio-shell .editor-header h1,.studio-shell .mobile-section-select{display:none}.shell-view-tabs{border-bottom:1px solid var(--line);background:var(--surface);flex-wrap:wrap;flex:none;align-items:center;gap:4px;padding:4px 16px;display:flex}.shell-view-tabs a{border-radius:var(--radius-sm);min-height:28px;color:var(--text-secondary);align-items:center;gap:4px;padding:4px 8px;font-size:12px;display:inline-flex}.shell-view-tabs a[aria-current=page]{background:var(--accent-soft);color:var(--accent-dark)}.shell-bottom-slot,.shell-note-slot{flex:none;min-width:0}.shell-bottom-slot:empty,.shell-note-slot:empty{display:none}.shell-bottom-actions{border-top:1px solid var(--line);background:var(--surface);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 16px;display:flex}.shell-bottom-actions>.collection-selection-bar{border:0;flex-wrap:wrap;flex:1;margin:0;padding:0;display:flex}.shell-inspector-slot{flex:none;min-height:0;display:flex}.shell-inspector-slot:empty{display:none}.shell-inspector-owner{z-index:80;min-height:0;display:flex;position:relative}.shell-inspector-content>.fitting-slideover{width:auto;max-width:none;height:auto;max-height:none;box-shadow:none;border:0;padding:0;position:static;overflow:visible}.shell-inspector-content>.fitting-slideover>:is(.localization-savebar,.dialog-actions){z-index:1;background:var(--surface);position:sticky;top:0}.shell-inspector-content .collection-table-wrap{max-height:none;overflow-y:visible}.shell-inspector{background:var(--surface);flex:none;max-width:calc(100vw - 112px);min-height:0;display:flex}.shell-inspector-resize{border-left:1px solid var(--line);background:var(--background);cursor:col-resize;touch-action:none;flex:none;width:6px}.shell-inspector-resize:hover,.shell-inspector-resize:focus-visible{background:var(--accent-soft);outline:2px solid var(--accent);outline-offset:-2px}.shell-inspector-column{flex-direction:column;flex:1;min-width:0;display:flex}.shell-inspector-action-slot{flex:none;padding:0 12px}.shell-inspector-action-slot:empty{display:none}.shell-inspector-action-slot :is(.localization-savebar,.dialog-actions){border:0;flex-wrap:wrap;margin:0;padding:4px 0 8px;display:flex}.shell-inspector-tools{flex:none;justify-content:flex-end;align-items:center;height:32px;display:flex}.shell-inspector-content{flex:1;min-height:0;padding:0 12px 16px;overflow:auto}.shell-inspector-content[hidden]{display:none}.shell-unsaved{color:var(--warning-text)}.shell-drop-overlay{z-index:80;pointer-events:none;background:var(--accent-soft);outline:2px dashed var(--accent);outline-offset:-4px;color:var(--accent-dark);flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex;position:absolute;inset:0}.shell-drop-overlay strong{background:var(--surface);padding:8px 16px;font-size:15px}.studio-shell .bottom-note{width:100%;max-height:calc(100dvh - 160px);position:relative;bottom:auto;left:auto;right:auto}.studio-shell .script-index-table-wrap,.studio-shell .collection-table-wrap{max-height:none;overflow-y:visible}.studio-shell .three-stage-manifest{max-height:none;overflow:visible}.studio-shell .brief-patch-preview pre{max-height:none;overflow:auto hidden}.studio-shell .bottom-note-handle{touch-action:none}.shell-topbar .next-action-pill-wrap,.shell-topbar .next-action-pill-standalone,.shell-topbar .next-action-pill-done-wrap{flex:none;position:relative;bottom:auto;right:auto}.shell-topbar .next-action-pill{border-radius:var(--radius-sm);background:var(--accent-soft);min-height:28px;color:var(--accent-dark);white-space:nowrap;border:0;padding:4px 8px}.shell-topbar .next-action-popup{max-height:calc(100dvh - 64px);top:calc(100% + 8px);bottom:auto;right:0;overflow:auto}.shell-topbar .next-action-popup-others{max-height:none;overflow:visible}@media (max-height:730px){.shell-rail-item{min-height:28px;padding-block:4px}.shell-rail-group{padding-block:0}.shell-rail-group h2{margin-block:0}}@media (max-width:800px){.shell-brand span,.shell-crumbs{display:none}.shell-save-status{text-overflow:ellipsis;max-width:16ch;overflow:hidden}.shell-work-scroll{padding:12px}.shell-rail.is-expanded{z-index:50;position:absolute;top:44px;bottom:0;left:0}}@media (prefers-reduced-motion:reduce){.shell-ai-running:before{animation:none}.studio-shell:has(.shell-ai-running) .shell-rail-item[aria-current=page] .shell-rail-mark:after{animation:none}}
