/* Focused visual correction; original controls and handlers remain intact. */
.shell>header.preserved-unified-header{justify-content:flex-start!important;gap:12px!important;min-height:62px;padding:0 0 16px!important;margin-bottom:22px!important}
.preserved-unified-header>.header-mid{display:contents!important}
.preserved-unified-header #createStageTabs{order:-3!important;border:0!important;background:#ffffff06!important;padding:4px!important;border-radius:10px!important}
.preserved-unified-header #createStageTabs button{border:0!important;background:transparent!important;color:var(--muted)!important;border-radius:7px!important;padding:8px 16px!important;font-size:13px!important}
.preserved-unified-header #createStageTabs button.active{background:#e5ce8c20!important;color:#e5ce8c!important;box-shadow:none!important}
.preserved-unified-header #instancePickWrap,.preserved-unified-header #instancePick,.preserved-unified-header #gpuPick{order:-2!important;flex:0 0 auto!important;max-width:210px!important}
.preserved-unified-header>.top-actions{order:1!important;flex:0 1 auto!important;margin-left:auto!important;gap:8px!important}
.preserved-unified-header #ucCheckinTip{order:2!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-size:11px!important;padding:5px!important}
.preserved-unified-header #adminEntry{order:3!important;background:#e5ce8c12!important;color:#e5ce8c!important;border:1px solid #e5ce8c30!important;padding:8px 13px!important;margin-left:0!important}
#preserved-sidebar{background:#111317!important;padding:26px 16px!important}
#preserved-sidebar .header-brand{margin-bottom:28px!important}
#preserved-sidebar nav{gap:5px!important}
#preserved-sidebar nav button{background:transparent!important;border:1px solid transparent!important;color:#aeb2bb!important;box-shadow:none!important;text-align:left!important;padding:11px 17px!important;min-height:43px!important;font-weight:400!important}
#preserved-sidebar nav button:hover{background:#ffffff06!important;color:#eee!important}
#preserved-sidebar nav button.active{background:#e5ce8c12!important;color:#e5ce8c!important;border-color:#e5ce8c22!important;font-weight:600!important}
#preserved-sidebar small{margin:5px 10px 15px!important;letter-spacing:1px}
#preserved-sidebar #gpuInfo{border-color:#ffffff10!important;background:#ffffff03!important;padding:10px 12px!important;border-radius:10px!important}
.shell #stageTitle{text-align:left!important;font-size:24px!important;font-weight:650!important;letter-spacing:-.4px;margin:26px 0 20px!important}
.shell #videoComposer{background:#191c21!important;border-color:#ffffff12!important;border-radius:16px!important;padding:22px!important;box-shadow:0 10px 35px #00000010!important}
.shell #videoComposer #promptEditor{background:transparent!important;border-color:transparent!important;padding:8px 3px!important;min-height:128px!important;font-size:15px!important;line-height:1.8!important}
.shell #videoComposer #sceneDetails{background:#ffffff02!important;border-color:#ffffff0c!important;min-height:66px!important;padding:12px!important;border-radius:9px!important;font-size:12px!important}
.shell #videoComposer .create-assist-row{margin-top:18px!important;gap:12px!important}
.shell #videoComposer .reference-actions{background:transparent!important;border:0!important;padding:0!important}
.shell #videoComposer .prompt-assist-bar{background:transparent!important;border:0!important;padding:0!important;gap:10px!important}
.shell #videoComposer :is(select,input[type=number]){background:#121519!important;border-color:#ffffff14!important;border-radius:8px!important;min-height:38px!important;font-size:12px!important}
.shell #videoComposer label{font-size:11px!important;color:#a7acb5!important;margin-bottom:7px!important}
.shell #videoComposer .video-action-row{border-top:1px solid #ffffff0b!important;padding-top:18px!important;margin-top:22px!important}
.shell #page-create>.card{border-color:#ffffff10!important;border-radius:14px!important}
html[data-theme=light] #preserved-sidebar{background:#f5f4f1!important}html[data-theme=light] .shell #videoComposer{background:#fff!important;border-color:#deddd7!important}html[data-theme=light] .shell #videoComposer :is(select,input[type=number]){background:#f7f6f3!important;color:#26282e!important;border-color:#deddd7!important}
@media(max-width:1050px){.preserved-unified-header>.top-actions{flex-wrap:wrap!important}.shell>header.preserved-unified-header{gap:8px!important}.preserved-unified-header #createStageTabs button{padding:7px 10px!important}}
/* Interaction states: visual feedback only, never a business success signal. */
.shell button,#preserved-sidebar button{touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-height:38px;transition:background-color 130ms ease,border-color 130ms ease,box-shadow 130ms ease,color 130ms ease}
.shell button:not(:disabled):hover{border-color:#e5ce8c65!important;box-shadow:0 0 0 1px #e5ce8c12;background-color:#e5ce8c0b}
.shell button:not(:disabled):active,#preserved-sidebar button:not(:disabled):active{box-shadow:inset 0 2px 5px #0004!important;filter:brightness(.9)}
.shell button:disabled{cursor:not-allowed!important;opacity:.46!important;box-shadow:none!important}
.shell :is(button,a,summary,input,select,textarea,[contenteditable]):focus-visible,#preserved-sidebar button:focus-visible{outline:2px solid #e5ce8c!important;outline-offset:3px!important;box-shadow:0 0 0 5px #e5ce8c12!important}
.shell :is(select,summary,label:has(input[type=checkbox])){cursor:pointer}
.shell label:has(input[type=checkbox]){display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:3px 6px;border-radius:7px}
.shell input[type=checkbox]{width:18px!important;height:18px!important;flex-shrink:0;accent-color:#e5ce8c;cursor:pointer;vertical-align:middle}
.shell input[type=range]{min-height:38px!important;cursor:ew-resize;touch-action:pan-y;accent-color:#e5ce8c}
.shell input[type=range]::-webkit-slider-thumb{min-width:18px;min-height:18px;box-shadow:0 0 0 4px #e5ce8c16;border-radius:50%}
.shell :is(.theme-toggle,#giRefresh,.nc-bell){min-width:38px!important;min-height:38px!important;display:inline-flex;align-items:center;justify-content:center;padding:7px!important}
.shell #outputCountWrap button{min-width:38px!important;min-height:40px!important}
.shell #createStageTabs button[aria-pressed=true]{box-shadow:0 1px 4px #0003!important}
.shell :is(input:not([type=checkbox]):not([type=range]),select,textarea,[contenteditable=true]):hover{border-color:#e5ce8c45!important}
.shell :is(input,select,textarea,[contenteditable=true]):focus{border-color:#e5ce8c80!important}
.shell dialog{overscroll-behavior:contain;max-height:90dvh;border-radius:14px!important}
.shell dialog::backdrop{background:#05070ba8;backdrop-filter:blur(3px)}
.shell dialog :is(button[aria-label*=关闭],button[title*=关闭],.dialog-close,.close){min-width:40px!important;min-height:40px!important}
.shell dialog :is(textarea,.scroll,.dialog-body){overscroll-behavior:contain}
#preserved-sidebar nav button{transition:background-color 130ms ease,color 130ms ease!important}
@media(pointer:coarse){.shell button,#preserved-sidebar nav button{min-height:44px!important}.shell :is(.theme-toggle,.nc-bell,#giRefresh){min-width:44px!important;min-height:44px!important}.shell :is(select,input[type=number],input[type=range]){min-height:44px!important}.shell label:has(input[type=checkbox]){min-height:44px!important}}
@media(prefers-reduced-motion:reduce){.shell *,#preserved-sidebar *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}/* Reference layout: grouped navigation + compact utility corner. */
#preserved-sidebar{padding:26px 14px 16px!important;overflow:hidden!important;gap:0!important}
#preserved-sidebar .header-brand{margin:0 6px 18px!important;flex-shrink:0}
#preserved-sidebar nav{flex:1;min-height:0;overflow-y:auto!important;gap:3px!important}
#preserved-sidebar .nav-group-label{display:block!important;width:100%!important;margin:19px 12px 7px!important;font-size:10px!important;letter-spacing:1px;color:#858b96!important}
#preserved-sidebar nav button{display:flex!important;align-items:center;gap:13px!important;text-align:left!important;padding:10px 13px!important;min-height:41px!important;flex-shrink:0;font-size:13px!important;border-radius:10px!important}
#preserved-sidebar .nav-icon{width:18px;flex:none;font-size:17px;font-weight:400;text-align:center;color:#9c9890}
#preserved-sidebar nav button.active .nav-icon{color:#e5ce8c}
#preserved-sidebar .preserved-note{display:none!important}
.reference-sidebar-footer{flex-shrink:0;border-top:1px solid #ffffff0c;padding:10px 3px 0;margin-top:12px;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.sidebar-support{grid-column:1/-1;display:flex;gap:8px;align-items:center}
#preserved-sidebar .sidebar-support button{font-size:11px!important;padding:5px 10px!important;min-height:28px!important;background:transparent!important;border-color:transparent!important;color:#9fa4ae!important}
#preserved-sidebar .uc-wrap{min-width:0;display:block}
#preserved-sidebar #userCard{padding:5px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;border:0!important;background:transparent!important;min-width:0!important;width:100%!important;box-shadow:none!important}
#preserved-sidebar #userCard .uc-id{display:flex;align-items:center;gap:9px}
#preserved-sidebar #userCard .uc-money{display:flex;gap:6px;font-size:10px!important;color:#8e949e!important;padding-left:34px}
#preserved-sidebar #userCard .uc-money .uc-k:first-child{display:none}
#preserved-sidebar #logout{font-size:10px!important;min-height:30px!important;border:0;background:transparent;color:#8e949e;padding:4px!important}
.shell>header.preserved-unified-header .top-actions{gap:8px!important;flex:0 0 auto!important;align-items:center!important}
.reference-wallet{display:inline-flex!important;align-items:center;gap:12px;min-height:36px!important;border:1px solid #e5ce8c20!important;border-radius:22px!important;padding:6px 14px!important;background:#e5ce8c09!important;font-size:12px!important}
.reference-wallet span{color:#aeb1b8}.reference-wallet b{color:#e5ce8c;font-size:12px}
.reference-profile,.preserved-unified-header .theme-toggle,.preserved-unified-header .nc-bell{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:6px!important;border:0!important;background:transparent!important;border-radius:10px!important;display:inline-flex!important;align-items:center;justify-content:center}
.reference-profile{font-size:21px!important;background:#e5ce8c0b!important;color:#e5ce8c!important}
.preserved-unified-header .nc-wrap{display:inline-flex!important;position:relative}
.preserved-unified-header .nc-panel{right:0;left:auto;max-width:min(360px,80vw)}
.preserved-unified-header #headerMessages:not(:has([hidden])){margin:0}
html[data-theme=light] #preserved-sidebar .nav-group-label{color:#777!important}html[data-theme=light] .reference-sidebar-footer{border-color:#ddd}html[data-theme=light] .reference-wallet b{color:#866c34}
@media(max-width:850px){#preserved-sidebar{overflow:visible!important}#preserved-sidebar nav{overflow-x:auto!important;flex:none}.reference-sidebar-footer{display:flex;margin-top:8px}#preserved-sidebar .nav-group-label{display:none!important}.reference-sidebar-footer .uc-money{display:none!important}.shell>header.preserved-unified-header .top-actions{margin-left:auto!important}}#preserved-notifications{display:inline-flex!important;position:relative!important}#preserved-sidebar nav button{justify-content:flex-start!important}#preserved-sidebar .header-brand{margin-bottom:10px!important}#preserved-sidebar .nav-group-label{margin-top:12px!important}
/* Account footer: one identity row, not a squeezed copy of the old header. */
#preserved-sidebar .reference-sidebar-footer{grid-template-columns:minmax(0,1fr) 34px;gap:8px;padding-top:12px}
#preserved-sidebar .reference-sidebar-footer .uc-wrap{width:100%;min-width:0;overflow:hidden}
#preserved-sidebar #userCard{display:grid!important;grid-template-columns:1fr!important;justify-content:start!important;align-items:center!important;gap:3px!important;min-height:56px!important;padding:6px 4px!important;overflow:hidden}
#preserved-sidebar #userCard .uc-id{width:100%;min-width:0;display:flex!important;gap:10px!important;align-items:center!important}
#preserved-sidebar #userCard #ucAvatar{width:32px!important;height:32px!important;flex:0 0 32px!important;font-size:14px!important;border:1px solid #e5ce8c25;background:#e5ce8c12}
#preserved-sidebar #currentUser{font-size:12px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#preserved-sidebar #userCard [aria-label="未读通知"]{display:none!important}
#preserved-sidebar #userCard .account-caption{font-size:10px;color:#9197a1;padding-left:42px;margin-top:-7px;text-align:left}
.reference-wallet>.uc-money[hidden]{display:none!important}
.reference-profile{padding:0!important;background:transparent!important;overflow:hidden}
.reference-profile .uc-avatar{display:grid!important;place-items:center;width:30px!important;height:30px!important;border-radius:50%;font-size:13px!important;background:#e5ce8c18!important;color:#e5ce8c!important;border:1px solid #e5ce8c30;overflow:hidden}
.reference-profile .uc-avatar img{width:100%;height:100%;object-fit:cover}
#preserved-sidebar #logout{width:34px!important;overflow:hidden;font-size:10px!important;padding:5px 0!important;align-self:center}/* Logout is an explicit button, not low-contrast loose text. */
#preserved-sidebar .reference-sidebar-footer{grid-template-columns:minmax(0,1fr) 48px!important}
#preserved-sidebar #logout{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:48px!important;min-width:48px!important;height:34px!important;min-height:34px!important;padding:6px 8px!important;border:1px solid #737986!important;border-radius:8px!important;background:#ffffff05!important;color:#d5d8df!important;font-size:11px!important;white-space:nowrap!important;cursor:pointer!important}
#preserved-sidebar #logout:hover{border-color:#e5ce8c!important;background:#e5ce8c12!important;color:#e5ce8c!important}
#preserved-sidebar #logout:focus-visible{outline:2px solid #e5ce8c!important;outline-offset:3px!important}
html[data-theme=light] #preserved-sidebar #logout{border-color:#a1a5ac!important;color:#454a53!important;background:#fff!important}
@media(pointer:coarse){#preserved-sidebar #logout{min-height:44px!important}}/* Navigation: consistent functional icons and a clearly bounded scroll area. */
#preserved-sidebar .nav-icon{display:inline-flex!important;align-items:center;justify-content:center;width:19px!important;height:19px!important;flex:0 0 19px!important}
#preserved-sidebar .nav-icon svg{display:block;width:19px;height:19px}
#preserved-sidebar .header-brand-text h1{font-size:17px!important}
#preserved-sidebar nav{padding:0 0 18px!important;scrollbar-width:thin;scrollbar-color:#665b40 transparent;overscroll-behavior:contain;scroll-padding-block:12px;flex:1 1 0!important;min-height:120px!important}
#preserved-sidebar .reference-sidebar-footer{position:relative;background:var(--bg,#111317);z-index:2;box-shadow:0 -12px 18px -12px #0008;border-top:1px solid #ffffff17}
#preserved-sidebar .header-brand{margin-bottom:4px!important}
#preserved-sidebar nav button{min-height:38px!important;padding-top:8px!important;padding-bottom:8px!important}
#preserved-sidebar .nav-group-label{margin-top:12px!important;margin-bottom:4px!important}
@media(max-width:850px){#preserved-sidebar nav{min-height:0!important;flex:none!important;scroll-padding:10px}.reference-sidebar-footer{box-shadow:none!important}}#preserved-sidebar nav{overflow-x:hidden!important}#preserved-sidebar nav>.nav-group-label{width:auto!important;max-width:calc(100% - 24px)!important}#preserved-sidebar nav button{box-sizing:border-box!important;min-width:0!important}
/* GPU summary is a sidebar status card, never a single-line header badge. */
#preserved-sidebar #gpuInfo{position:relative!important;display:block!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;padding:13px 12px!important;margin:16px 0 8px!important;border:1px solid #ffffff12!important;border-radius:11px!important;background:#ffffff03!important;white-space:normal!important;overflow:hidden!important}
#preserved-sidebar #gpuInfo .gi-text{display:block!important;width:100%!important;min-width:0!important;white-space:normal!important}
#preserved-sidebar #giLine1{display:block!important;font-size:12px!important;line-height:22px!important;font-weight:600!important;color:#e0d8c3!important;white-space:normal!important;padding-right:28px!important}
#preserved-sidebar #giLine2{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;font-size:10px!important;font-weight:400!important;line-height:1.8!important;color:#969da9!important;margin-top:6px!important;padding:0!important}
#preserved-sidebar #giRefresh{position:absolute!important;right:8px!important;top:9px!important;display:flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:0!important;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;font-size:15px!important;color:#a8acb5!important;flex:none!important}
#preserved-sidebar #giRefresh:hover{background:#e5ce8c10!important;color:#e5ce8c!important;border-color:#e5ce8c30!important}
html[data-theme=light] #preserved-sidebar #gpuInfo{background:#00000003!important;border-color:#ddd9cf!important}html[data-theme=light] #preserved-sidebar #giLine1{color:#61502d!important}html[data-theme=light] #preserved-sidebar #giLine2{color:#696e77!important}
@media(pointer:coarse){#preserved-sidebar #giRefresh{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;top:6px!important;right:5px!important}#preserved-sidebar #giLine1{padding-right:34px!important}}#preserved-sidebar #giLine2{white-space:pre-line!important;overflow-wrap:normal!important;line-height:1.9!important}
/* Quiet status: no nested card or task report in the navigation. */
#preserved-sidebar #gpuInfo{display:flex!important;align-items:center!important;gap:6px!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:3px 7px!important;margin:8px 0 13px!important;min-height:28px!important;width:100%!important;overflow:visible!important}
#preserved-sidebar #gpuInfo .gi-text{width:auto!important;flex:1!important;min-width:0!important}
#preserved-sidebar #giLine1{display:block!important;padding:0!important;color:#989da7!important;font-weight:400!important;font-size:11px!important;line-height:24px!important;white-space:nowrap!important}
#preserved-sidebar #giLine2{position:absolute!important;width:1px!important;height:1px!important;max-width:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
#preserved-sidebar #giRefresh{position:static!important;flex:0 0 28px!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;background:transparent!important;border:0!important;color:#858b96!important;font-size:13px!important}
html[data-theme=light] #preserved-sidebar #gpuInfo{background:transparent!important;border:0!important}html[data-theme=light] #preserved-sidebar #giLine1{color:#777!important}html.sb-canvas-page #editorFrame,html.sb-canvas-page #sbCanvasFrame{left:var(--sidebar-width,205px)!important;width:calc(100vw - var(--sidebar-width,205px))!important;max-width:calc(100vw - var(--sidebar-width,205px))!important}html.sb-canvas-page #editorLoadStatus{left:var(--sidebar-width,205px)!important;width:calc(100vw - var(--sidebar-width,205px))!important;box-sizing:border-box!important;padding:10px 22px!important}@media(max-width:850px){html.sb-canvas-page #editorFrame,html.sb-canvas-page #sbCanvasFrame,html.sb-canvas-page #editorLoadStatus{left:0!important;width:100vw!important;max-width:100vw!important}}
html.sb-canvas-page #page-editor{left:var(--sidebar-width,205px)!important;width:calc(100vw - var(--sidebar-width,205px))!important;max-width:calc(100vw - var(--sidebar-width,205px))!important}html.sb-canvas-page #page-editor #editorFrame{left:auto!important;width:100%!important;max-width:100%!important}html.sb-canvas-page #page-editor #editorLoadStatus{left:auto!important;width:100%!important;max-width:100%!important}@media(max-width:850px){html.sb-canvas-page #page-editor{left:0!important;width:100vw!important;max-width:100vw!important}}

#preserved-sidebar{width:var(--sidebar-width,205px)!important}
#sidebar-toggle{position:relative;align-self:flex-end;min-width:30px;min-height:28px;padding:0 6px;margin:-12px -4px 0 0;border:0;background:transparent;color:#9da3ae;font-size:22px;line-height:28px;cursor:pointer;border-radius:6px}
#sidebar-toggle:hover{background:#e5ce8c15;color:#e5ce8c}
#sidebar-resize{position:fixed;left:calc(var(--sidebar-width,205px) - 3px);top:0;bottom:0;width:6px;z-index:80;cursor:col-resize;touch-action:none;outline:none}
#sidebar-resize:hover,#sidebar-resize:focus-visible,.sidebar-resizing #sidebar-resize{background:#e5ce8c55}
.sidebar-resizing,.sidebar-resizing *{cursor:col-resize!important;user-select:none!important}
.sidebar-collapsed #preserved-sidebar{padding:20px 8px 12px!important}
.sidebar-collapsed #preserved-sidebar .header-brand{margin:4px 0 10px!important;justify-content:center!important}
.sidebar-collapsed #preserved-sidebar .header-brand-text,.sidebar-collapsed #preserved-sidebar .nav-group-label,.sidebar-collapsed #preserved-sidebar .account-caption,.sidebar-collapsed #preserved-sidebar #currentUser,.sidebar-collapsed #preserved-sidebar .sidebar-support,.sidebar-collapsed #preserved-sidebar #giLine1{display:none!important}
.sidebar-collapsed #preserved-sidebar .brand-mark{width:30px!important;height:30px!important}
.sidebar-collapsed #preserved-sidebar #gpuInfo{padding:0!important;justify-content:center!important;margin:0 0 12px!important}
.sidebar-collapsed #preserved-sidebar #gpuInfo .gi-text{display:none!important}
.sidebar-collapsed #preserved-sidebar nav button{font-size:0!important;gap:0!important;justify-content:center!important;padding:10px!important;min-height:42px!important}
.sidebar-collapsed #preserved-sidebar .reference-sidebar-footer{display:flex;flex-direction:column;gap:6px;padding-top:10px}
.sidebar-collapsed #preserved-sidebar #userCard{display:flex!important;justify-content:center!important;min-height:40px!important;padding:0!important}
.sidebar-collapsed #preserved-sidebar #userCard .uc-id{justify-content:center!important}
.sidebar-collapsed #preserved-sidebar #logout{width:44px!important;min-width:44px!important}
@media(max-width:850px){#sidebar-resize,#sidebar-toggle{display:none!important}.sidebar-collapsed #preserved-sidebar .header-brand-text{display:block!important}.sidebar-collapsed #preserved-sidebar nav button{font-size:12px!important;gap:8px!important}#preserved-sidebar{width:100%!important}}
#preserved-sidebar #sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;align-self:flex-end;height:32px;min-height:32px;padding:4px 8px;margin:-10px -2px 6px 0;border:1px solid #ffffff12;background:#ffffff03;border-radius:7px;font-size:11px;line-height:1;color:#aeb4bf}
#sidebar-toggle svg{width:19px;height:19px;flex:none}
#sidebar-toggle span{white-space:nowrap}
.sidebar-collapsed #preserved-sidebar #sidebar-toggle{width:36px;align-self:center;margin:0 0 7px;padding:6px}
.sidebar-collapsed #sidebar-toggle span{display:none}
#preserved-sidebar #sidebar-toggle:hover{color:#e5ce8c;border-color:#e5ce8c50;background:#e5ce8c0c}
html[data-theme=light] #preserved-sidebar #sidebar-toggle{border-color:#d5d5d0;color:#606874;background:#00000003}
@media(max-width:850px){#preserved-sidebar #sidebar-toggle{display:none}}/* Smooth gold micro-interactions: soft lift, damped press, restrained spring. */
:root{--mz-motion-ease:cubic-bezier(.16,1,.3,1);--mz-motion-gold:#ead59c}
:where(button,summary,[role=button]) :is(svg,.nav-icon,.uc-avatar){transform-origin:50% 55%;transition:transform 360ms var(--mz-motion-ease),filter 420ms ease,color 240ms ease;backface-visibility:hidden}
.mz-motion-control{isolation:isolate;transition:background-color 240ms ease,border-color 240ms ease,box-shadow 360ms var(--mz-motion-ease),color 200ms ease!important}
#preserved-sidebar .nav-icon{position:relative;isolation:isolate;overflow:visible!important}
#preserved-sidebar .nav-icon::before{content:"";position:absolute;inset:-10px;border-radius:50%;background:radial-gradient(circle,#e5ce8c25 0,#e5ce8c0c 42%,transparent 72%);opacity:0;transform:scale(.7);pointer-events:none;z-index:-1;transition:opacity 360ms ease,transform 500ms var(--mz-motion-ease)}
@media(hover:hover){
.mz-motion-control:not(:disabled):hover>svg,.mz-motion-control:not(:disabled):hover>.nav-icon,.mz-motion-control:not(:disabled):hover .uc-avatar{transform:translateY(-1.5px) scale(1.055);filter:drop-shadow(0 2px 4px #e5ce8c32);color:var(--mz-motion-gold)}
#preserved-sidebar nav button:hover .nav-icon::before{opacity:1;transform:scale(1)}
#preserved-sidebar nav button:not(.active):hover{background:linear-gradient(100deg,#e5ce8c0c,transparent)!important;border-color:transparent!important}
}
.mz-motion-control:not(:disabled):active>svg,.mz-motion-control:not(:disabled):active>.nav-icon,.mz-motion-control:not(:disabled):active .uc-avatar{transform:translateY(.6px) scale(.91);filter:drop-shadow(0 0 1px #e5ce8c22);transition-duration:75ms}
.mz-icon-tap>svg,.mz-icon-tap>.nav-icon,.mz-icon-tap .uc-avatar{animation:mz-icon-pop 520ms both}
.mz-icon-tap.theme-toggle,.mz-icon-tap#giRefresh{animation:mz-icon-pop 520ms both}
#preserved-sidebar .mz-icon-tap>.nav-icon::before{animation:mz-gold-bloom 600ms var(--mz-motion-ease)}
@keyframes mz-icon-pop{
0%{transform:translateY(.6px) scale(.92);filter:drop-shadow(0 0 0 transparent);animation-timing-function:cubic-bezier(.12,.8,.25,1)}
42%{transform:translateY(-1.8px) scale(1.10);filter:drop-shadow(0 2px 5px #e5ce8c55);animation-timing-function:cubic-bezier(.4,0,.2,1)}
72%{transform:translateY(.15px) scale(.99);filter:drop-shadow(0 1px 2px #e5ce8c18);animation-timing-function:cubic-bezier(.2,.7,.3,1)}
100%{transform:translateY(0) scale(1);filter:drop-shadow(0 0 0 transparent)}}
@keyframes mz-gold-bloom{0%{opacity:0;transform:scale(.55)}30%{opacity:.95;transform:scale(1.1)}100%{opacity:0;transform:scale(1.5)}}
#preserved-sidebar nav button{transition:background-color 240ms ease,border-color 280ms ease,color 220ms ease!important}
#preserved-sidebar nav button.active{box-shadow:inset 2px 0 0 #e5ce8c60!important}
@media(prefers-reduced-motion:reduce){:where(button,summary,[role=button]) :is(svg,.nav-icon,.uc-avatar),.mz-motion-control,.mz-icon-tap.theme-toggle,.mz-icon-tap#giRefresh,#preserved-sidebar .nav-icon::before{animation:none!important;transition:none!important;transform:none!important;filter:none!important}}
/* Semantic icon motion. The frame and label do not move; only the meaningful SVG part does. */
.mz-semantic.mz-icon-tap{animation:mz-sem-finish 1050ms linear!important}
.mz-semantic.mz-icon-tap>.nav-icon,.mz-semantic.mz-icon-tap>svg,.mz-semantic.mz-icon-tap .uc-avatar{animation:none!important;transform:none!important;filter:none!important}
.mz-semantic.mz-icon-tap>.nav-icon::before{animation:none!important}
#preserved-sidebar .nav-icon svg *,.reference-wallet svg *{transform-box:view-box;transform-origin:12px 12px}
#preserved-sidebar [data-page=create].mz-icon-tap svg path{animation:mz-sem-play 850ms cubic-bezier(.4,0,.15,1)}
#preserved-sidebar [data-page=storyboard].mz-icon-tap svg rect{animation:mz-sem-cell 560ms ease-in-out both}
#preserved-sidebar [data-page=storyboard].mz-icon-tap svg rect:nth-child(2){animation-delay:90ms}
#preserved-sidebar [data-page=storyboard].mz-icon-tap svg rect:nth-child(3){animation-delay:180ms}
#preserved-sidebar [data-page=storyboard].mz-icon-tap svg rect:nth-child(4){animation-delay:270ms}
#preserved-sidebar [data-page=canvas] .signal{offset-path:path('M6 8 L6 13 Q6 18 11 18 L17 18')}
#preserved-sidebar [data-page=canvas].mz-icon-tap .signal{animation:mz-sem-signal 800ms cubic-bezier(.3,0,.25,1)}
#preserved-sidebar [data-page=canvas].mz-icon-tap svg rect:last-of-type{animation:mz-sem-cell 450ms 480ms ease-in-out}
#preserved-sidebar [data-page=editor].mz-icon-tap .playhead{animation:mz-sem-scan 850ms cubic-bezier(.25,.1,.25,1)}
#preserved-sidebar [data-page=files].mz-icon-tap .folder-lid{transform-origin:3px 10px;animation:mz-sem-lid 900ms cubic-bezier(.2,.7,.25,1)}
#preserved-sidebar [data-page=files].mz-icon-tap .folder-paper{animation:mz-sem-paper 900ms cubic-bezier(.2,.7,.25,1)}
#preserved-sidebar [data-page=characters].mz-icon-tap svg circle{transform-origin:12px 7px;animation:mz-sem-head 800ms ease-in-out}
#preserved-sidebar [data-page=characters].mz-icon-tap svg path{transform-origin:12px 21px;animation:mz-sem-shoulders 800ms ease-in-out}
#preserved-sidebar [data-page=gpu].mz-icon-tap svg rect:nth-child(2){animation:mz-sem-cell 800ms ease-in-out}
#preserved-sidebar [data-page=gpu].mz-icon-tap svg path{animation:mz-sem-pins 850ms ease-in-out}
#preserved-sidebar [data-page=usage].mz-icon-tap svg path:last-child,.reference-wallet.mz-icon-tap svg path:last-child{transform-origin:21px 14px;animation:mz-sem-latch 850ms ease-in-out}
#preserved-sidebar [data-page=carpool].mz-icon-tap .member-left{animation:mz-sem-gather-left 850ms ease-in-out}
#preserved-sidebar [data-page=carpool].mz-icon-tap .member-right{animation:mz-sem-gather-right 850ms ease-in-out}
#notifyBell.mz-icon-tap>svg{transform-origin:50% 18%;animation:mz-sem-bell 900ms ease-in-out!important}
#sidebar-toggle.mz-icon-tap svg path:nth-of-type(1){animation:mz-sem-panel 800ms ease-in-out}
#sidebar-toggle.mz-icon-tap svg path:nth-of-type(2){animation:mz-sem-arrow 800ms ease-in-out}
@keyframes mz-sem-finish{from{--mz-icon-clock:0}to{--mz-icon-clock:1}}
@keyframes mz-sem-play{0%{transform:rotate(0) scale(1);fill:transparent}35%{fill:#e5ce8c;filter:drop-shadow(0 0 3px #e5ce8c90)}70%{transform:rotate(360deg) scale(1.18);fill:#e5ce8c}100%{transform:rotate(360deg) scale(1);fill:transparent;filter:none}}
@keyframes mz-sem-cell{0%,100%{fill:transparent;stroke:currentColor;transform:scale(1)}45%{fill:#e5ce8cb0;stroke:#ffe6a5;transform:scale(1.16);filter:drop-shadow(0 0 2px #e5ce8c70)}}
@keyframes mz-sem-signal{0%{offset-distance:0%;opacity:0}15%{opacity:1}80%{opacity:1}100%{offset-distance:100%;opacity:0}}
@keyframes mz-sem-scan{0%,100%{transform:translateX(0)}65%{transform:translateX(12px);stroke:#ffe6a5;filter:drop-shadow(0 0 2px #e5ce8c90)}}
@keyframes mz-sem-lid{0%,100%{transform:skewX(0)}45%{transform:skewX(-25deg)}}
@keyframes mz-sem-paper{0%,100%{transform:translateY(0)}45%{transform:translateY(-6px)}}
@keyframes mz-sem-head{0%,100%{transform:translateY(0)}40%{transform:translateY(-3px)}}
@keyframes mz-sem-shoulders{0%,100%{transform:scaleX(1)}40%{transform:scaleX(.83)}}
@keyframes mz-sem-pins{0%,100%{stroke:currentColor}55%{stroke:#f2db9f;filter:drop-shadow(0 0 1px #e5ce8c70)}}
@keyframes mz-sem-latch{0%,100%{transform:translateX(0)}45%{transform:translateX(4px)}}
@keyframes mz-sem-gather-left{0%,100%{transform:translateX(0)}45%{transform:translateX(3px)}}
@keyframes mz-sem-gather-right{0%,100%{transform:translateX(0)}45%{transform:translateX(-3px)}}
@keyframes mz-sem-bell{0%,100%{transform:rotate(0)}18%{transform:rotate(22deg)}38%{transform:rotate(-18deg)}58%{transform:rotate(10deg)}78%{transform:rotate(-5deg)}}
@keyframes mz-sem-panel{0%,100%{transform:translateX(0);opacity:1}45%{transform:translateX(-4px);opacity:.25}}
@keyframes mz-sem-arrow{0%,100%{transform:translateX(0)}45%{transform:translateX(-3px)}}
@media(prefers-reduced-motion:reduce){.mz-semantic.mz-icon-tap,.mz-semantic.mz-icon-tap svg *{animation:none!important;transform:none!important}}#giRefresh.mz-semantic.mz-icon-tap{animation:mz-sem-refresh 600ms cubic-bezier(.4,0,.15,1)!important}.theme-toggle.mz-semantic.mz-icon-tap{animation:mz-sem-theme 600ms cubic-bezier(.4,0,.2,1)!important}@keyframes mz-sem-refresh{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes mz-sem-theme{0%,100%{transform:rotate(0);opacity:1}45%{transform:rotate(30deg);opacity:.45}}@media(prefers-reduced-motion:reduce){#giRefresh.mz-semantic.mz-icon-tap,.theme-toggle.mz-semantic.mz-icon-tap{animation:none!important;transform:none!important}}

#preserved-sidebar .nav-icon svg{overflow:visible}#preserved-sidebar [data-page=storyboard] .nav-icon svg rect{transform-box:fill-box;transform-origin:center}#preserved-sidebar [data-page=gpu] .nav-icon svg rect:nth-child(2){transform-box:fill-box;transform-origin:center}
/* Collapsed sidebar retains only its expand control and brand mark. */
html.sidebar-collapsed #preserved-sidebar #gpuInfo,html.sidebar-collapsed #preserved-sidebar nav,html.sidebar-collapsed #preserved-sidebar .reference-sidebar-footer,html.sidebar-collapsed #preserved-sidebar .preserved-note{display:none!important}
@media(max-width:850px){html.sidebar-collapsed #preserved-sidebar nav{display:flex!important}html.sidebar-collapsed #preserved-sidebar .reference-sidebar-footer{display:flex!important}}/* Collapsing releases the entire sidebar footprint below the utility corner. */
html.sidebar-collapsed #preserved-sidebar{width:64px!important;height:102px!important;bottom:auto!important;min-height:0!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:14px 8px 0!important}
html.sidebar-collapsed #preserved-sidebar .header-brand{margin:4px 0 0!important}
html.sidebar-collapsed #sidebar-resize{display:none!important}
html.sidebar-collapsed .shell{margin-left:0!important;width:100%!important;padding-left:24px!important;padding-right:24px!important}
html.sidebar-collapsed .shell>header.preserved-unified-header{padding-left:64px!important;min-height:76px!important}
html.sidebar-collapsed .shell>[id^=page-]{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}
html.sidebar-collapsed #page-notifications #notifyPanel{position:static!important;width:100%!important;max-width:none!important;inset:auto!important}
@media(max-width:850px){html.sidebar-collapsed #preserved-sidebar{position:static!important;width:100%!important;height:auto!important}html.sidebar-collapsed .shell{padding-left:12px!important;padding-right:12px!important}html.sidebar-collapsed .shell>header.preserved-unified-header{padding-left:0!important}}/* One primary writing area; optional scene metadata stays available on demand. */
.shell #videoComposer .prompt-wrap{border:1px solid #ffffff14!important;border-radius:12px!important;background:#13161a!important;padding:10px 14px!important;transition:border-color 180ms ease,box-shadow 180ms ease}
.shell #videoComposer .prompt-wrap:focus-within{border-color:#e5ce8c80!important;box-shadow:0 0 0 3px #e5ce8c09!important}
.shell #videoComposer #promptEditor{min-height:154px!important;outline:none!important;border:0!important;box-shadow:none!important;padding:4px 0!important}
.shell #videoComposer .optional-scene{grid-column:1/-1;width:100%;min-width:0;border:0!important;margin:8px 0 0!important;padding:0!important}
.shell #videoComposer .optional-scene summary{cursor:pointer;font-size:11px;color:#969da9;padding:4px 0;min-height:26px;list-style:disclosure-closed;list-style-position:inside}
.shell #videoComposer .optional-scene[open] summary{list-style-type:disclosure-open;margin-bottom:8px;color:#cfbf95}
.shell #videoComposer .optional-scene #sceneDetails{width:100%!important;box-sizing:border-box;min-height:78px!important;margin:0!important}
html[data-theme=light] .shell #videoComposer .prompt-wrap{background:#faf9f6!important;border-color:#ddd!important}.shell #videoComposer .optional-scene summary{list-style:none!important}.shell #videoComposer .optional-scene summary::marker{content:""}.shell #videoComposer .optional-scene summary::-webkit-details-marker{display:none}
.shell #videoComposer .optional-scene>summary{display:flex!important;align-items:center;gap:7px;list-style:none!important}.shell #videoComposer .optional-scene>summary::marker{content:""!important}.shell #videoComposer .optional-scene>summary::-webkit-details-marker{display:none!important}.shell #videoComposer .optional-scene>summary::before{content:""!important;display:block!important;flex:0 0 6px;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)!important;margin:0 3px 0 0!important;transition:transform 150ms ease}.shell #videoComposer .optional-scene[open]>summary::before{transform:rotate(45deg)!important}.shell #videoComposer .optional-scene>summary::after{content:none!important;display:none!important}
/* Light mode needs its own ink colors, not the dark theme's pale gray and gold. */
html[data-theme=light]{--mz-motion-gold:#795719}
html[data-theme=light] #preserved-sidebar{background:#f6f5f2!important;color:#26303b!important;border-color:#d9dce0!important}
html[data-theme=light] #preserved-sidebar nav button{color:#47515f!important}
html[data-theme=light] #preserved-sidebar nav button .nav-icon{color:#53606d!important}
html[data-theme=light] #preserved-sidebar nav button.active{color:#755219!important;background:#eee5cf!important;border-color:#c9b77f!important;box-shadow:inset 2px 0 #92702d!important}
html[data-theme=light] #preserved-sidebar nav button.active .nav-icon{color:#755219!important}
html[data-theme=light] #preserved-sidebar nav button:hover{background:#e9e8e2!important;color:#26303b!important}
html[data-theme=light] #preserved-sidebar .nav-group-label{color:#606b79!important}
html[data-theme=light] #preserved-sidebar .header-brand-text small{color:#5b6472!important}
html[data-theme=light] #preserved-sidebar #giLine1,html[data-theme=light] #preserved-sidebar #giRefresh{color:#586371!important}
html[data-theme=light] #preserved-sidebar .reference-sidebar-footer{background:#f6f5f2!important;box-shadow:none!important;border-color:#d5d8dd!important}
html[data-theme=light] #preserved-sidebar .sidebar-support button,html[data-theme=light] #preserved-sidebar #userCard .account-caption{color:#5a6573!important}
html[data-theme=light] #preserved-sidebar #currentUser{color:#26303b!important}
html[data-theme=light] .reference-profile .uc-avatar,html[data-theme=light] #preserved-sidebar #ucAvatar{color:#72531d!important;background:#ece5d6!important;border-color:#c7b78f!important}
html[data-theme=light] .reference-wallet span{color:#4e5968!important}
html[data-theme=light] #createStageTabs button{color:#4e5968!important}
html[data-theme=light] .preserved-unified-header #createStageTabs button.active{color:#755219!important;background:#eee5cf!important}
html[data-theme=light] .preserved-unified-header #ucCheckinTip{color:#586371!important}
html[data-theme=light] .preserved-unified-header #adminEntry{color:#755219!important;background:#eee5cf!important;border-color:#c9b77f!important}
html[data-theme=light] .shell #videoComposer :is(label,summary){color:#535f6e!important}
html[data-theme=light] .shell #videoComposer #promptEditor{color:#26303b!important}
html[data-theme=light] .shell #videoComposer #sceneDetails{color:#26303b!important;background:#f8f9fa!important;border-color:#cbd1d8!important}
html[data-theme=light] .shell #videoComposer .video-action-row{border-color:#d4d9df!important}
html[data-theme=light] .shell :is(.muted,.gi-sub){color:#586371!important}
html[data-theme=light] #dotfield{opacity:.27!important}
html[data-theme=light] #dotfield .dot-layer{opacity:.35!important}
html.sb-canvas-page #sbCanvasPanel{left:var(--sidebar-width,205px)!important;width:calc(100vw - var(--sidebar-width,205px))!important;max-width:calc(100vw - var(--sidebar-width,205px))!important}
html.sb-canvas-page #sbCanvasPanel .sb-canvas{left:auto!important;width:100%!important;max-width:100%!important;min-width:0!important}
html.sb-canvas-page #sbCanvasPanel #sbCanvasFrame{left:auto!important;flex:1 1 0!important;min-width:0!important;width:0!important;max-width:none!important}
@media(max-width:850px){html.sb-canvas-page #sbCanvasPanel{left:0!important;width:100vw!important;max-width:100vw!important}}
/* UI audit 2026-11-01. The dev rail now folds into a <details>, so its 240px reservation is dead space. */
#page-create.has-dev-task-rail{padding-left:0!important}
/* Create page options: wrap instead of squeezing fixed-width columns into each other. */
#page-create .video-action-row{display:block!important;max-width:100%!important;width:100%!important}
#page-create #videoOptions.create-controls-row{display:flex!important;flex-wrap:wrap!important;gap:10px 12px!important;width:100%!important;max-width:100%!important;margin:0!important;align-items:flex-start!important}
#page-create #videoOptions>div{flex:1 1 130px!important;min-width:0!important}
#page-create #videoOptions>div:has(#videoEngine){flex:1.3 1 170px!important}
#page-create #videoOptions>div:has(#aspectChoice){flex:0 1 110px!important}
#page-create #videoOptions>div:has(#resolution){flex:0 1 100px!important}
#page-create #videoOptions #createDurationBlock{flex:2 1 300px!important}
#page-create #videoOptions #stepsWrap{flex:1.4 1 210px!important}
#page-create #createDurationBlock .duration-row input[type=range]{flex:1 1 60px!important;max-width:none!important;min-width:40px!important}
#page-create #stepsWrap input[type=range]{flex:1 1 60px!important;max-width:none!important;min-width:60px!important}
#page-create #stepsWrap input[type=number]{flex:0 0 52px!important}
#page-create #durationPending{flex:0 0 auto!important;width:auto!important;padding:0 10px!important}
#page-create .video-action-row>.composer-toolbar{display:flex!important;justify-content:flex-end!important;margin:14px 0 0!important;padding:0!important;min-height:0!important}
#page-create .video-action-row .composer-run-wrap{display:flex!important;flex-flow:row wrap!important;justify-content:flex-end!important;align-items:center!important;gap:10px 14px!important;margin-left:auto!important;max-width:100%!important;min-width:0!important}
#page-create #videoNotifyWrap{white-space:nowrap}
#page-create .video-action-row #createNotice{flex-basis:100%;max-width:100%}
#page-create .video-action-row .run-split{display:flex!important;align-items:center;gap:8px;min-width:0;max-width:100%}
#page-create .video-action-row #run{width:auto!important;min-width:150px;padding:0 18px!important}
/* Collapsed sidebar: a real 64px gutter, so the two fixed icons never sit on top of page content. */
html.sidebar-collapsed .shell{margin-left:64px!important;width:calc(100% - 64px)!important}
html.sidebar-collapsed .shell>header.preserved-unified-header{padding-left:0!important;min-height:62px!important}
/* GPU queue count stays visible under the status instead of being a 1px hidden span. */
#preserved-sidebar #gpuInfo .gi-text{display:flex!important;flex-direction:column;gap:0}
#preserved-sidebar #giLine1{line-height:18px!important}
#preserved-sidebar #giLine2{position:static!important;width:auto!important;height:auto!important;max-width:100%!important;margin:0!important;clip-path:none!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:16px!important;color:#858b96!important}
#preserved-sidebar #giLine2:empty{display:none!important}
html[data-theme=light] #preserved-sidebar #giLine2{color:#586371!important}
/* Feedback dialog: every field has its label above. */
.fb-row:has(#fbContact){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
#fbContact{width:100%!important;box-sizing:border-box}
.ui-prompt-field{display:grid;gap:8px;margin:14px 0 18px;line-height:1.6}
.ui-prompt-field input{width:100%;box-sizing:border-box}
/* Light mode ink for colors the record rows write inline. */
html[data-theme=light] [style*="#7fdaa0"]{color:#176b3a!important}
html[data-theme=light] [style*="#f0c674"]{color:#8a5a00!important}
html[data-theme=light] td[style*="#aaa"]{color:#5a6370!important}
html[data-theme=light] [style*="#ffaaaa"]{color:#a61b1b!important}
html[data-theme=light] :is(p.error,.job-error){color:#a61b1b!important}
html[data-theme=light] .shell button.danger{color:#a61b1b!important}
html[data-theme=light] .shell #page-create .preserved-dev>summary,html[data-theme=light] .shell #videoComposer .optional-scene>summary{color:#535f6e!important}
html[data-theme=light] .shell #outputCountWrap .count-step{color:#6c5310!important}
html[data-theme=light] #jobKinds button.active{color:#6c5310!important}
/* Top bar: the project picker gives way so the bar stays on one row at 1280 and up. */
@media(min-width:1200px){
 .shell>header.preserved-unified-header{flex-wrap:nowrap!important}
 .shell>header.preserved-unified-header #adminToolbar#adminToolbar{flex:1 1 0!important;min-width:0!important;width:auto!important;margin:0!important}
 .shell>header.preserved-unified-header #sbScriptPicker#sbScriptPicker{flex:0 1 300px!important;width:auto!important;min-width:0!important}
 .shell>header.preserved-unified-header #sbScriptPicker label{white-space:nowrap}
 .shell>header.preserved-unified-header #adminEntry#adminEntry{flex:none!important;width:auto!important;min-width:0!important}
 .shell>header.preserved-unified-header .preview-gpu-strip{flex:none!important;width:auto!important}
 .shell>header.preserved-unified-header>.top-actions{flex:none!important;width:auto!important;margin-left:auto!important}
}
/* Image page: heading and subtitle share one edge; the polish row starts at the left like the rows around it. */
#page-create .production-heading,#page-create .production-heading *{text-align:left!important}
#page-create #imagePolishBar{justify-content:flex-start!important}
/* Admin accounts: fits without sideways scrolling at 1440. */
#accountAdmin table{min-width:0!important;width:100%!important}
/* Below the width where all columns fit, the table scrolls sideways instead of crushing them. */
@media(max-width:1400px){#accountAdmin table{min-width:980px!important}}
#accountAdmin .scroll td:nth-child(3) select{min-width:92px}
#accountAdmin .scroll th,#accountAdmin .scroll td{padding-left:8px!important;padding-right:8px!important}
#accountAdmin .scroll td:nth-child(2){overflow-wrap:anywhere;max-width:150px}
#accountAdmin .scroll td input[type=number],#accountAdmin .scroll td:nth-child(4) input{width:72px!important;min-width:0!important}
#accountAdmin .scroll td:nth-child(7) input{width:104px!important;min-width:0!important}
#accountAdmin .scroll td:nth-child(6){white-space:normal!important;min-width:84px}
#accountAdmin .scroll td:last-child{min-width:150px;white-space:normal!important}
#accountAdmin .scroll td:last-child :is(.actions,div){flex-wrap:wrap!important}
/* Avatars: always a circle. The top-right percent height needs a definite grid track, or a tall photo overflows its box. */
#preserved-sidebar #ucAvatar img{border-radius:50%}
.reference-profile .uc-avatar{grid-template:100%/100%}
.reference-profile .uc-avatar img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;border-radius:50%}
/* One avatar at a time: while the sidebar shows its own, the top-right one steps aside. */
@media(min-width:851px){html:not(.sidebar-collapsed) .reference-profile{display:none!important}}
/* The idle AI pill sits beside the sidebar, not on top of the account row. */
@media(min-width:851px){.ai-act.idle,.ai-log.idle{left:calc(var(--sidebar-width,205px) + 14px)!important}}
/* Signed out: the home page and login own the whole screen; no workbench chrome around them. */
html:has(#loginDialog[open]) :is(#preserved-sidebar,#sidebar-resize,#mobile-nav-scrim,#mobile-menu),html:has(#landing:not([hidden])) :is(#preserved-sidebar,#sidebar-resize,#mobile-nav-scrim,#mobile-menu){display:none!important}
/* Phone and small tablet: the sidebar is a drawer behind a menu button. */
#mobile-menu,#mobile-nav-scrim{display:none}
@media(max-width:850px){
 #mobile-menu{display:inline-flex!important;order:-20!important;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0!important;border:1px solid #ffffff14;border-radius:10px;background:transparent;color:inherit;flex:none}
 html[data-theme=light] #mobile-menu{border-color:#cbd1d8}
 html.mz-nav-open #mobile-nav-scrim{display:block;position:fixed;inset:0;z-index:190;background:#05070b99}
 html.mz-nav-open{overflow:hidden}
 #preserved-sidebar,html.sidebar-collapsed #preserved-sidebar{position:fixed!important;inset:0 auto 0 0!important;width:min(280px,84vw)!important;height:auto!important;max-height:none!important;z-index:200!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:18px 14px 12px!important;border-right:1px solid #ffffff14!important;transform:translateX(-102%);visibility:hidden;transition:transform 200ms ease,visibility 200ms}
 html.mz-nav-open #preserved-sidebar{transform:none;visibility:visible}
 #preserved-sidebar{background:#111317!important}
 html[data-theme=light] #preserved-sidebar{background:#f6f5f2!important}
 #preserved-sidebar nav{flex:1 1 0!important;min-height:0!important;flex-direction:column!important;overflow:hidden auto!important}
 #preserved-sidebar nav button{width:100%!important;white-space:normal!important;min-height:44px!important}
 #preserved-sidebar .nav-group-label{display:block!important}
 #preserved-sidebar .reference-sidebar-footer{display:grid!important;margin-top:8px}
 #sidebar-resize{display:none!important}
 .shell>header.preserved-unified-header{display:flex!important;flex-wrap:wrap!important;gap:6px 8px!important;padding:0 0 10px!important;margin-bottom:12px!important;min-height:0!important}
 .shell>header.preserved-unified-header>.top-actions{order:-19!important;flex:1 1 auto!important;margin-left:auto!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:2px!important;min-width:0!important}
 .shell>header.preserved-unified-header>.top-actions{width:auto!important;flex:1 1 calc(100% - 52px)!important}
 .shell>header.preserved-unified-header #adminToolbar#adminToolbar{display:contents!important}
 .shell>header.preserved-unified-header .preview-gpu-strip:empty{display:none!important}
 .shell>header.preserved-unified-header :is(#sbScriptPicker,#instancePickWrap,#createStageTabs){order:-10!important;flex:1 1 150px!important;min-width:0!important;max-width:100%!important}
 .shell>header.preserved-unified-header #instancePick,.shell>header.preserved-unified-header #gpuPick{max-width:100%!important}
 .shell>header.preserved-unified-header :is(#ucCheckinTip,#adminEntry){flex:0 0 auto!important;margin:0!important;min-height:40px!important;padding:6px 10px!important}
 .reference-wallet{gap:6px!important;padding:6px 10px!important;min-width:0}
 /* Create page: nothing wider than the screen. */
 #page-create #videoComposer .video-action-row>.composer-toolbar,#page-create #videoComposer .video-action-row .composer-run-wrap{width:100%!important;min-width:0!important;max-width:100%!important;flex:1 1 100%!important}
 #page-create #videoComposer .video-action-row .composer-run-wrap{flex-flow:column nowrap!important;align-items:stretch!important}
 #page-create #videoComposer .video-action-row .run-split{width:100%!important;flex-wrap:nowrap!important}
 #page-create #videoComposer .video-action-row #run{flex:1 1 0!important;min-width:0!important;width:auto!important;padding:0 8px!important;white-space:normal!important}
 #page-create #videoOptions #createDurationBlock,#page-create #videoOptions #stepsWrap{flex:1 1 100%!important}
 #videoComposer .create-assist-row{align-items:flex-start!important}
 /* Storyboard: one slim sticky row, and the shot list before the long settings stages. */
 #page-storyboard #sbBody{display:flex!important;flex-direction:column!important}
 #page-storyboard #sbBody>*{min-width:0;max-width:100%}
 #page-storyboard #sbGuide{order:-5;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;top:0!important;padding:4px!important}
 #page-storyboard #sbGuide ol{flex:1 1 0!important;min-width:0!important;display:flex!important;flex-wrap:nowrap!important;overflow:auto hidden!important;margin:0!important;scrollbar-width:none}
 #page-storyboard #sbGuide li{flex:none!important}
 #page-storyboard #sbGuide small{display:none!important}
 #page-storyboard #sbGuide .sb-guide-next{flex:none!important;width:auto!important;margin:0!important;padding:0 10px!important;min-height:40px!important;white-space:nowrap}
 #page-storyboard #sbEpisodeBar{order:-4}
 #page-storyboard #sbSequence{order:-3}
 #page-storyboard #sbBody>.steps{order:-2}
 #page-storyboard #sbBoard{order:-1}
}
@media(max-width:600px){.reference-wallet>span{display:none!important}}
@media(pointer:coarse){.shell :is([role=tab],a.link,summary){min-height:44px}}
/* Smoothness (2026-11-03): no backdrop blur anywhere. Repainting dozens of blurred panels on every scroll made the page stutter.
   Panels keep their translucent colour, so the cursor glow of the dot background still shows through. Dialog overlays keep theirs. */
html body :is(#mz-no-blur,*),html[data-ui-preview] body :is(#mz-no-blur,*),html[data-ui-preview] body :is(#mz-no-blur,*)::before,html[data-ui-preview] body :is(#mz-no-blur,*)::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* The composer spans the page like its heading and the records below (it was capped at 1360px and centred on wide screens). */
#page-create :is(#videoComposer,#imageComposer){max-width:none!important;margin-left:0!important;margin-right:0!important}
