/* Edit Suite interface: compact controls, neutral dark surfaces, and docked panels. */
:root{--paper:#eef0f2;--surface:#fafbfc;--ink:#252a31;--muted:#737b86;--line:#d7dce2;--accent:#3d617a;--accent-soft:#e4ebf1;font:12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);color-scheme:light}
.app-header{height:42px;padding:0 14px;gap:26px;background:var(--surface);border-bottom:1px solid var(--line)}
.brand{font-size:15px;letter-spacing:-.4px;gap:7px}.brand .logo{height:21px;width:21px;stroke:var(--ink)}.brand-dot{color:var(--ink)}.version{font-size:8px;padding:1px 4px;border-radius:2px;background:var(--paper);color:var(--muted)}
.project-heading{flex-direction:row;align-items:center;gap:12px}.project-heading input{font-size:11px;width:200px;font-weight:500}.project-heading span{font-size:9px;color:var(--muted)}.header-actions{gap:3px}.divider{height:17px;margin:0 5px}
.button,.icon-button,.tool-button,.camera-presets button,.preset-grid button,.model-part-chip,.swatch,.character-edit,.object-row,.search-box,input,select,dialog,.menu-panel,.panel,.model-card,.character-card,.shot-card,.add-shot,.library-empty,.field-with-unit{border-radius:2px!important}
.button{min-height:25px;padding:4px 8px;font-size:11px;gap:5px;background:var(--surface);border-color:var(--line);font-weight:500}.button svg{width:13px;height:13px}.button.primary{background:var(--accent);border-color:var(--accent)}.button.primary:hover{background:var(--accent);filter:brightness(1.12)}.button.quiet{background:none;border-color:transparent}.icon-button{height:25px;width:25px;color:var(--muted)}.icon-button svg{height:14px;width:14px}.icon-button:hover,.tool-button:hover,.button:hover{background:var(--accent-soft);color:var(--ink);border-color:var(--line)}
.workspace{height:calc(100dvh - 42px)}.studio-toolbar{height:35px;padding:0 12px;gap:9px;background:var(--surface);border-color:var(--line)}.shot-heading{gap:7px}.shot-heading input{font-size:11px;max-width:190px}.shot-heading .eyebrow{color:var(--muted);font-size:9px}.board-add{margin-right:4px}.stage-tools{margin:0 6px;padding:0;border-radius:2px;background:var(--paper);border-color:var(--line);gap:0}.tool-button{height:24px;width:29px;color:var(--muted)}.tool-button.active{box-shadow:none;background:var(--accent-soft);color:var(--accent)}.tool-button svg{width:14px;height:14px}.studio-options{gap:6px}.aspect-label select{min-height:25px;padding:3px 5px;background:var(--surface);border-color:var(--line);color:var(--ink);font-size:10px}.frame-control-label{color:var(--muted);font-size:9px}
.stage-bottom{height:22px;padding:0 12px;background:var(--surface);color:var(--muted);border-color:var(--line);font-size:9px}.stage-bottom .text-button{font-size:9px;color:var(--muted)}.shot-note{height:28px;padding:0 12px;gap:9px;background:var(--surface);border-color:var(--line)}.shot-note input{font-size:10px}.shot-note .eyebrow{font-size:8px;color:var(--muted)}.shot-strip-section{height:112px;padding:6px 12px;background:var(--paper);border-top:1px solid var(--line)}.strip-heading{height:19px;margin-bottom:4px}.strip-heading h2{font-size:10px;font-weight:600}.strip-heading h2 span{font-size:9px;color:var(--muted)}.strip-heading .text-button{font-size:10px}.shot-strip{height:77px;gap:6px}.shot-card{width:104px;min-width:104px;padding:2px}.shot-card img{height:47px;background:#d9dde0;border-radius:0}.shot-card.active{background:var(--accent-soft);border-color:var(--accent)}.shot-card-caption{gap:6px!important;padding:4px 2px!important}.shot-card-caption strong{color:var(--accent)}.add-shot{width:72px;min-width:72px;margin:2px 0 16px;font-size:9px;gap:4px;border-color:var(--line);color:var(--muted)}.add-shot svg{width:14px;height:14px}
.panel{background:var(--surface);border-color:var(--line);box-shadow:0 3px 12px #00000018}.panel-heading,.inspector .panel-heading{padding:7px 10px;min-height:33px;border-bottom:1px solid var(--line)}.panel-heading h2{font-size:11px;font-weight:600;letter-spacing:0}.panel .mobile-close{height:20px;width:20px}.panel .mobile-close svg{width:12px;height:12px}.library{top:87px;left:10px;bottom:12px;width:218px}.inspector.camera-panel{top:87px!important;right:10px!important;bottom:12px;width:272px}.inspector{width:272px}.inspector-content{padding:0 10px 12px}.inspector-tabs{margin:0 10px;gap:16px}.inspector-tabs button{padding:7px 1px;font-size:10px}
.library-tabs{margin:0 10px 9px;padding:0;background:none;border-bottom:1px solid var(--line);border-radius:0;gap:10px;flex-shrink:0}.library-tabs button{min-height:30px;font-size:10px;padding:4px 0;border-radius:0;color:var(--muted)}.library-tabs button.active{box-shadow:none;color:var(--ink);background:none;border-bottom:2px solid var(--accent)}.search-box{margin:0 10px 9px;padding:5px 7px;background:var(--paper);border-color:var(--line);gap:6px}.search-box input{font-size:10px;color:var(--ink);padding:0}.search-box svg{width:12px;height:12px;color:var(--muted)}.catalog-scroll{padding:0 10px 10px}.catalog-grid{gap:6px}.character-card,.model-card{background:var(--surface);border-color:var(--line)}.character-place img{aspect-ratio:1.1;background:#e9ebec}.character-place>span{font-size:10px;padding:6px 6px 1px;color:var(--ink)}.character-place small{font-size:8px;padding:0 6px 6px;color:var(--muted)}.character-edit{top:3px;right:3px;width:20px;height:20px;background:var(--surface);border-color:var(--line)}.character-edit svg{width:11px;height:11px}.custom-button{min-height:26px;font-size:10px;margin-top:8px;color:var(--ink);background:var(--surface)}.model-card{padding-bottom:5px}.model-card span{font-size:10px}.catalog-filters{padding:0 10px 8px;gap:1px}.catalog-filters button{font-size:9px;padding:3px 5px;border-radius:1px;color:var(--muted)}.catalog-filters button.active{background:var(--accent-soft);color:var(--ink)}.catalog-group-label{font-size:9px;color:var(--muted)}
.scene-section{min-height:215px;max-height:36%;padding:8px 5px 6px;background:var(--surface);border-color:var(--line)}.scene-section .section-heading{padding:0 5px 6px}.section-heading h2{font-size:10px}.section-heading>span{background:var(--paper);color:var(--muted);font-size:9px;border-radius:1px}.object-row{padding:3px 5px;gap:6px}.object-row .object-name{font-size:10px}.object-row .icon-button{height:20px;width:20px}.object-row.active{background:var(--accent-soft);border-color:var(--line)}.object-row:hover{background:var(--paper)}.object-swatch{width:7px!important;height:7px!important;border-radius:1px!important}.library-footer{padding:8px 10px;font-size:8px;background:var(--surface);color:var(--muted);white-space:normal;line-height:1.4;border-color:var(--line)}
.selection-heading,.saved-camera-section{padding:10px 0;border-color:var(--line)}.field-label{font-size:10px;gap:5px;margin-bottom:8px;color:var(--muted)}.field-label>input,.field-label>select{font-size:11px;min-height:26px;padding:4px 6px;background:var(--paper);border-color:var(--line);color:var(--ink)}.saved-camera-actions{gap:4px}.saved-camera-actions .button{font-size:10px}.saved-camera-actions .icon-button{border-color:var(--line)}.property-tip{font-size:9px;line-height:1.5;margin-top:6px;color:var(--muted)}.property-fold{border-color:var(--line)}.property-fold>summary{padding:9px 0;font-size:10px;color:var(--ink)}.property-fold>summary svg{color:var(--muted);width:11px;height:11px}.fold-content{padding-bottom:9px}.property-row{margin-bottom:5px}.property-row-head{font-size:10px;margin-bottom:0;color:var(--ink)}.number-unit{font-size:9px;color:var(--muted);min-width:69px}.number-unit input{font-size:10px;width:52px;padding:2px 4px;background:var(--paper);border-color:var(--line);color:var(--ink);font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.camera-presets{margin-top:5px;gap:4px}.camera-presets button{font-size:9px;padding:4px;background:var(--paper);border-color:var(--line);color:var(--ink)}.property-select{font-size:10px;margin:5px 0 8px;color:var(--ink)}.property-select select{font-size:10px;padding:4px;background:var(--paper);color:var(--ink);border-color:var(--line)}.check-row{font-size:10px;color:var(--muted)}
input[type=range]{height:15px}input[type=range]::-webkit-slider-runnable-track{height:2px;background:var(--line);border-radius:0}input[type=range]::-webkit-slider-thumb{height:8px;width:8px;margin-top:-3px;background:var(--accent);border:0;box-shadow:none;border-radius:1px}.text-button{color:var(--accent)}
.menu-panel{padding:3px;min-width:208px;top:calc(100% + 4px);background:var(--surface);border-color:var(--line);box-shadow:0 4px 14px #0002}.menu-panel button{padding:6px 8px;font-size:11px;border-radius:1px;color:var(--ink)}.menu-panel small{color:var(--muted)}.menu-project-title{padding:6px 8px;gap:4px;color:var(--muted);font-size:9px}.menu-project-title input{min-height:25px;padding:4px 6px;font-size:11px;background:var(--paper);border-color:var(--line);color:var(--ink)}hr{border-color:var(--line)}
.dialog-heading{padding:12px 16px}.dialog-heading h2{font-size:16px;letter-spacing:-.2px}.dialog-footer{padding:10px 16px;background:var(--surface)}.dialog-footer .button{min-height:26px}.asset-settings{padding:16px}.asset-preview-column{background:var(--paper);padding:16px}.asset-settings>.field-label{margin-bottom:12px}.asset-field-group{padding-bottom:10px;margin-bottom:10px}.asset-field-group h3{font-size:9px;margin-bottom:8px}.asset-help{font-size:10px}.asset-numbers{gap:3px 10px}
/* Keep related assets and scene rows together instead of stretching empty catalog space. */
.catalog-scroll{flex:0 1 auto;min-height:0;max-height:47%;flex-shrink:1}.scene-section{max-height:none;min-height:0;flex:1;margin-top:2px;justify-content:flex-start}.scene-section .object-list{flex:0 1 auto}.object-row .icon-button{opacity:.65}.character-edit{opacity:.8}.property-tip{color:var(--muted)}
.app-header{z-index:50}

:root{--paper:#202226;--surface:#292c31;--ink:#d8dce1;--muted:#9299a4;--line:#41454d;--accent:#82a9ca;--accent-soft:#3d4e5e;color-scheme:dark}
.app-header{background:#202226}.brand .logo{stroke:#9fb5c8}.brand-dot{color:#9fb5c8}.button.primary{color:#141b23}.project-heading input{color:#e0e4e9}.studio{padding-left:212px;padding-right:276px}.studio-toolbar{padding:0 10px}.shot-heading input{max-width:150px}.stage-tools{margin:0}.studio-options{flex:0}.frame-control-label{display:none}.aspect-label select{max-width:100px}.camera-drawer-toggle{padding:4px 6px}.camera-drawer-toggle span{display:none}.panel{border-radius:0!important;box-shadow:none}.library{left:0;top:42px;bottom:0;width:212px;border-width:0 1px 0 0}.inspector.camera-panel{right:0!important;top:42px!important;bottom:0;width:276px;border-width:0 0 0 1px}.panel-heading,.inspector .panel-heading{background:#24272b;min-height:35px}.library-tabs{margin-bottom:10px}.library-tabs button.active{color:#e4e9ee}.character-place img{background:#e3e5e5}.character-card:hover{border-color:#687f95}.scene-section{max-height:40%;min-height:245px}.stage-surround{background:#17191c}.stage-bottom{background:#24272c}.shot-note{background:#24272c}.shot-strip-section{background:#202226}.shot-card img{background:#c3c8cc}.shot-card.active{border-color:var(--accent);background:#34404c}.shot-note input::placeholder{color:#858d99}.studio-options select{color:var(--ink)}.property-fold>summary{text-transform:uppercase;font-size:9px;letter-spacing:.065em}.property-fold>summary svg{order:-1;margin-right:7px}.property-fold>summary{justify-content:flex-start}.property-tip{color:#9aa3ae}.camera-presets button:hover{background:#3d4e5e}.saved-camera-actions .button{background:#34383f}.library-footer{min-height:35px}.property-row{margin-bottom:8px}
/* Production layout. Panels open independently on desktop and overlay on small screens. */
:root{--danger:#e39489;--canvas:#181a1e;--radius:2px}
.workspace{display:grid!important;grid-template-columns:var(--library-width,0px) minmax(0,1fr) var(--inspector-width,0px);height:calc(100dvh - 42px)}
.workspace.has-library{--library-width:212px}.workspace.has-inspector{--inspector-width:276px}
.studio{grid-column:2;grid-row:1;padding:0;width:100%;height:100%;overflow:hidden}
.workspace>.panel{position:static!important;grid-row:1;width:100%;height:100%;max-height:none!important;display:none!important;border-radius:0!important;box-shadow:none}
.workspace>.panel.drawer-open{display:flex!important}.library{grid-column:1}.inspector{grid-column:3}.inspector.camera-panel{width:100%}
.panel-heading{flex-shrink:0}.studio-options{flex:0 0 auto}.camera-drawer-toggle span{display:inline}.studio-toolbar{flex-wrap:nowrap;flex-shrink:0}.shot-heading{min-width:0;flex:1}.shot-heading input{width:100%;min-width:30px;max-width:190px}.stage-tools{flex-shrink:0}.stage-surround{min-height:80px}
.studio-toolbar .icon-button[aria-pressed=true],.button[aria-pressed=true]{background:var(--accent-soft);color:var(--ink);border-color:#6f8ca4}
.library-tabs,.search-box,.catalog-filters,.library-footer,.section-heading{flex-shrink:0}.catalog-scroll{flex:0 1 auto;min-height:100px;max-height:48%}.scene-section{flex:1;min-height:90px;overflow:hidden;margin:2px 0 0}.scene-section .object-list{flex:0 1 auto;min-height:0}.object-row{min-height:27px;flex-shrink:0}.object-row .icon-button{opacity:.7}.character-edit{opacity:.85}.catalog-group-label{margin-top:10px}.model-card:hover,.character-card:hover,.character-place:hover{background:#343941;border-color:#6d8192}.character-place>span{color:var(--ink)}.character-card .character-edit{background:#292c31}.model-card img{background:#e2e5e5}.model-card .card-plus{color:#677f92}.catalog-filters button{min-height:23px}.library-empty{border-color:var(--line);background:var(--paper)}.library-empty p,.scene-setup-help{color:#a6afba}.library-empty strong{color:var(--ink)}.scene-setup-help{font-size:10px;line-height:1.5}.library-footer{min-height:28px;color:#a3acb6}
.inspector-tabs{border-color:var(--line);margin:0 10px;gap:20px}.inspector-tabs button{color:#a5acb6}.inspector-tabs button[aria-selected=true]{color:var(--accent)}.selection-heading .object-name-input{background:var(--paper);color:var(--ink);border-color:var(--line);font-size:12px;padding:6px 7px;margin-bottom:6px}.character-instance-info,.property-header .object-type,.property-tip,.check-row{color:#a4aeb9}.character-instance-info .text-button{color:var(--accent)}.property-header{margin-bottom:5px}.selection-actions{padding:10px 0 3px;gap:5px}.selection-actions .button{font-size:10px}.property-section{border-color:var(--line);padding:10px 0}.property-section h3{color:var(--muted)}.preset-grid{gap:4px}.preset-grid button{font-size:10px;padding:5px 3px;background:var(--paper);color:var(--ink);border-color:var(--line)}.preset-grid button:hover{background:var(--accent-soft);border-color:#6f8ca4}.joint-select{font-size:11px;background:var(--paper);border-color:var(--line);color:var(--ink);padding:5px}.color-label{color:var(--ink);font-size:10px}.property-select select{max-width:150px}.swatch{border-color:var(--surface);outline-color:#626872}.property-tip{line-height:1.55}.empty-state{padding:20px 10px}.empty-state svg{color:var(--muted)}.empty-state .button{margin-top:12px}.number-unit input:focus,.field-label>input:focus,.field-label>select:focus{border-color:var(--accent)}input[type=checkbox]{accent-color:var(--accent)}input[type=color]{background:var(--paper);border-color:var(--line)}input[type=range]::-moz-range-track{height:2px;background:var(--line);border-radius:0}input[type=range]::-moz-range-thumb{width:8px;height:8px;background:var(--accent);border:0;border-radius:1px;box-shadow:none}
.menu-panel button:hover{background:var(--accent-soft)}.menu-panel button{min-height:28px}.toast{background:#344a5e;color:#f1f4f7;border:1px solid #657d92;border-radius:2px;padding:8px 13px}.muted{color:#a2acb8}.eyebrow{color:#9ba5b2}.pose-handle{fill:#f4f7fa}.pose-line,.selection-rect{stroke:#709cc4bb}
/* Dialogs use the same neutral controls and spacing as the workspace. */
dialog{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 15px 60px #0008}dialog::backdrop{background:#10131899;backdrop-filter:blur(2px)}.dialog-heading,.dialog-footer{border-color:var(--line);background:#24272c}.dialog-heading .eyebrow{color:#a0adbc}.dialog-heading h2{color:var(--ink)}.dialog-footer .button{min-height:28px}.guide-content{padding:16px;font-size:12px}.guide-content>p:first-child,.guide-content .guide-row p{color:#aeb8c3}.guide-row{margin:13px 0}.guide-row p{font-size:11px}.keycap,kbd{background:var(--paper);color:var(--ink);border-color:var(--line)}.guide-shortcuts{color:#a7b1bf}.asset-settings,.model-parts-column{background:var(--surface);color:var(--ink)}.asset-preview-column,.model-preview-column,.image-export-list{background:var(--paper)}.asset-preview-caption,.asset-help,.asset-field-group h3,.asset-settings>.field-label,.asset-color-field,.model-preview-footer,.part-fields>label,.triple-fields label,.part-fields h4{color:#acb6c3}.asset-field-group{border-color:var(--line)}.asset-color-field{font-size:11px}.asset-preview-column canvas,#model-preview{background:#e5e8e8;border-color:var(--line)}.asset-preview-tools .button{color:var(--ink)}.field-with-unit,.asset-field-group>select,.model-name,.part-fields input:not([type=color]),.part-fields select{background:var(--paper);color:var(--ink);border-color:var(--line)}.field-with-unit input{color:var(--ink);padding:5px 7px;font-size:11px}.field-with-unit span{color:var(--muted)}.model-part-chip{background:var(--paper);border-color:var(--line);padding:4px 7px}.model-part-chip.active{background:var(--accent-soft);color:var(--ink);border-color:#708ca4}.image-export-item .export-caption span{color:#b0bac5}.asset-field-group>select{font-size:11px;padding:5px}.model-name{padding:6px 8px}.image-export-dialog .dialog-footer .muted{color:#a7b1be}
*{scrollbar-width:thin;scrollbar-color:#565e69 transparent}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline-offset:1px}
@media(min-width:901px){.app-header .history-button{display:inline-flex}.app-header .divider{display:block}}
@media(min-width:901px) and (max-width:1150px){.workspace.has-library{--library-width:190px}.workspace.has-inspector{--inspector-width:252px}.shot-heading input{max-width:130px}.studio-toolbar{gap:5px;padding:0 8px}.camera-drawer-toggle span{display:none}.stage-tools{margin:0 2px}.studio-options{gap:3px}.project-heading span{display:none}}
@media(max-width:900px){
.app-header{height:44px;padding:0 10px;gap:12px}.brand{font-size:14px}.brand .logo{width:20px;height:20px}.brand .version{display:none}.project-heading{display:flex}.project-heading input{font-size:11px;width:100%;max-width:200px}.project-heading span{display:none}.header-actions{gap:2px}.header-actions .button{min-height:29px;padding:5px 8px}.app-header .icon-button{height:29px;width:29px}.history-button,.divider{display:none}
.workspace{height:calc(100dvh - 44px);grid-template-columns:minmax(0,1fr);--library-width:0px!important;--inspector-width:0px!important}.studio{grid-column:1;padding:0}.workspace>.panel{position:fixed!important;top:86px!important;bottom:10px!important;height:auto;max-height:calc(100dvh - 96px)!important;width:min(310px,calc(100vw - 20px));z-index:41;border:1px solid var(--line);box-shadow:0 6px 22px #0008}.workspace>.library{left:10px!important;right:auto!important}.workspace>.inspector{right:10px!important;left:auto!important}.drawer-backdrop{position:fixed;inset:79px 0 0;background:#11151a77;z-index:40}.panel-heading,.inspector .panel-heading{min-height:37px;padding:5px 10px}.panel .mobile-close{width:29px;height:29px}.panel-heading h2{font-size:12px}.studio-toolbar{height:35px;padding:0 9px;gap:6px;flex-wrap:nowrap}.shot-heading{flex:1;flex-basis:auto;order:0;gap:5px}.shot-heading input{font-size:11px;max-width:180px}.board-add{padding:4px 7px;margin-right:0;min-height:27px}.stage-tools{order:0;margin:0 3px;height:auto}.tool-button{width:29px;height:27px}.studio-options{flex:0 0 auto;flex-basis:auto;order:0;gap:4px;justify-content:flex-end}.frame-control-label{display:none}.aspect-label select{min-height:27px;font-size:10px}.camera-drawer-toggle{min-height:27px;padding:4px 6px}.camera-drawer-toggle span{display:inline}.stage-bottom{height:24px;font-size:9px;padding:0 9px}.shot-note{height:29px;padding:0 9px}.shot-strip-section{height:112px;padding:6px 9px}.shot-strip{height:77px}.shot-card{width:104px;min-width:104px}.shot-card img{height:47px}.add-shot{width:72px;min-width:72px;margin-bottom:16px}.shot-note input{font-size:11px}.library-tabs button{min-height:33px;font-size:11px}.search-box{padding:6px 7px}.search-box input{font-size:16px}.catalog-scroll{max-height:46%}.character-place>span{font-size:11px}.character-place small{font-size:9px}.object-row{min-height:31px}.object-row .object-name{font-size:11px}.object-row .icon-button{width:29px;height:27px}.inspector-tabs button{padding:9px 1px;font-size:11px}.property-fold>summary{min-height:35px;font-size:10px}.property-row-head{font-size:11px}.number-unit input{font-size:16px;width:68px;padding:3px 5px}.number-unit{font-size:10px}.property-row{margin-bottom:9px}.property-row input[type=range]{height:23px}.field-label>input,.field-label>select,.joint-select,.selection-heading .object-name-input,.property-select select,.field-with-unit input,.asset-field-group>select,.part-fields input:not([type=color]),.part-fields select,.model-name,.menu-project-title input{font-size:16px;min-height:31px}.property-select select{max-width:185px}.property-tip{font-size:10px}.saved-camera-actions .button{min-height:31px}.menu-panel{min-width:225px}.menu-panel button{min-height:34px}.menu-project-title{font-size:10px}.asset-editor-layout{grid-template-columns:1fr 1fr}.asset-preview-column,.asset-settings{padding:16px}.asset-numbers .field-label{font-size:10px}.dialog-footer .button{min-height:32px}.asset-dialog .dialog-footer{padding:10px 16px}.scene-setup-help{font-size:11px}
}
@media(max-width:580px){
.app-header{gap:8px}.brand{font-size:14px}.brand .logo{width:19px}.project-heading{display:none}.header-actions{margin-left:auto}.header-actions .button{font-size:11px;min-height:29px;padding:5px 7px;gap:4px}.header-actions .button>svg:first-child{display:none}.header-actions>#help{width:26px}.studio-toolbar{height:68px;flex-wrap:wrap;align-content:center;padding:5px 9px;gap:4px}.shot-heading{order:0;flex:1;flex-basis:calc(100% - 112px)}.shot-heading input{max-width:200px}.stage-tools{order:1;margin:0}.studio-options{order:2;flex-basis:100%;justify-content:space-between}.studio-options .aspect-label{flex:1;gap:6px}.frame-control-label{display:inline;font-size:9px}.camera-drawer-toggle span{display:inline}.studio-options .icon-button{height:27px;width:29px}.workspace>.panel{top:120px!important;max-height:calc(100dvh - 130px)!important}.drawer-backdrop{top:112px}.stage-bottom>span{max-width:70%;font-size:8px;line-height:1.3}.stage-bottom .text-button{font-size:9px}.shot-note{gap:7px}.shot-strip-section{height:110px}.shot-strip{height:75px}.shot-card{width:102px;min-width:102px}.shot-card img{height:46px}.model-builder,.asset-editor-layout{grid-template-columns:1fr;max-height:66dvh;height:auto;overflow:auto}.asset-preview-column{padding:12px;overflow:visible}.asset-preview-column canvas{max-height:180px;flex-shrink:0}.asset-settings{overflow:visible}.asset-help{margin-top:10px}.asset-preview-caption{margin-bottom:7px}.asset-preview-tools{margin-top:7px}.asset-settings>.field-label{margin-bottom:12px}.dialog-heading{padding:10px 13px;gap:12px}.dialog-heading h2{font-size:16px}.dialog-heading .icon-button{width:30px;height:30px}.dialog-footer{padding:10px 13px;gap:7px}.asset-footer-actions{width:100%;margin-left:0}.asset-dialog .dialog-footer{flex-wrap:wrap}.asset-footer-actions .button{font-size:11px}.guide-content{padding:14px}.guide-shortcuts{display:none}.model-preview-column,.model-parts-column{padding:14px}.image-export-list{padding:12px}.image-export-item .export-caption{gap:8px}.image-export-dialog .dialog-footer{padding:10px 13px}.menu-panel{max-width:calc(100vw - 18px)}
}

/* Cinema workspace — neutral tool menus, compact values, and a centered frame. */
:root{--paper:#1b2027;--surface:#232a32;--ink:#d5dfe9;--muted:#95a8bb;--line:#3b4755;--accent:#9ab6cf;--accent-soft:#394e63;--canvas:#15191e;--danger:#dd9c93;font:12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.app-header{height:35px;padding:0 12px;gap:14px;background:#191d22;border-bottom:1px solid #3a4350;z-index:50}.brand{font-size:13px;letter-spacing:-.1px;gap:7px;color:#e2e8f0;flex-shrink:0}.brand .logo{width:20px;height:20px;stroke:#9eafc2}.brand-dot{display:none}.application-menus{display:flex;align-items:center;gap:0;flex-shrink:0}.application-menus .menu>summary{min-height:33px;padding:7px 9px;border:0;border-radius:0!important;color:#b1becc;font-size:11px;background:none}.application-menus .menu[open]>summary,.application-menus .menu>summary:hover{background:#313b47;color:#edf3fa}.application-menus #file-menu summary>svg{display:none}.project-heading{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px}.project-heading input{width:210px;max-width:100%;font-size:11px;font-weight:500;color:#dbe5ef}.project-heading span{font-size:8px;color:#8295a9;white-space:nowrap}.header-actions{margin-left:auto;gap:5px}.header-actions>.button,.header-actions .menu>summary{background:transparent;border:1px solid #414f5e;color:#c2d0df;min-height:24px;height:24px;padding:3px 7px;font-size:10px;border-radius:1px!important}.header-actions .menu>summary>svg:first-child{display:none}.header-actions .button svg{width:12px;height:12px}.header-actions .icon-button{width:24px;height:24px}.header-actions .divider{height:14px;margin:0 3px}.header-actions .board-add{margin:0}.header-actions .camera-drawer-toggle span{display:inline}.header-actions .button[aria-pressed=true]{background:#34495f;border-color:#6f8daa;color:#e3effc}.menu-panel{background:#29323d;border-color:#4b5a6d;box-shadow:0 4px 14px #0008;min-width:230px;padding:3px;border-radius:1px!important}.menu-panel button{min-height:29px;padding:6px 9px;font-size:11px;color:#d2dfed;border-radius:0}.menu-panel small{font-size:9px;color:#91a6bd}.menu-panel button:hover{background:#3c536e}.menu-project-title{color:#9badc2;font-size:10px}.menu-project-title input{background:#1c252f;border-color:#445466;color:#d7e4f1}
.workspace{height:calc(100dvh - 35px)}.workspace.has-library{--library-width:205px}.workspace.has-inspector{--inspector-width:245px}.workspace>.library{background:#232b35;border-right-color:#3d4a59}.workspace>.inspector{background:#202832;border-left-color:#3d4a59}.studio-toolbar{height:35px;padding:0 10px;gap:10px;background:#20272f;border-bottom-color:#3a4655;flex-wrap:nowrap}.shot-heading{gap:8px;flex:1;min-width:75px}.shot-heading input{font-size:11px;font-weight:500;max-width:240px;min-width:35px}.shot-heading .eyebrow{font:10px ui-monospace,SFMono-Regular,Consolas,monospace;color:#91a9c1}.view-switch{display:flex;align-items:stretch;height:34px;flex-shrink:0;gap:0}.view-switch button{font-size:10px;color:#879fb7;padding:0 8px;border-bottom:2px solid transparent;white-space:nowrap}.view-switch button[aria-pressed=true]{color:#e1ecf6;border-bottom-color:#9ab8d5}.view-switch button:hover{background:#303f51}.stage-tools{height:25px;border:0;background:none;margin:0;gap:0;display:flex}.tool-button{height:25px;width:auto;min-width:29px;padding:3px 6px;gap:5px;border-radius:0!important;color:#9fb3c7;font-size:10px}.tool-button svg{width:13px;height:13px}.tool-button kbd{margin:0;border:0;padding:0;background:none;color:#748ba4;font:8px ui-monospace,Consolas,monospace}.tool-button.active{background:transparent;color:#ebf4fe;box-shadow:none;border-bottom:2px solid #a3bcd4}.tool-button[aria-pressed=true]#pan-scene{background:#3a516a;color:#eef6fd}.tool-button:hover{background:#33465b}.studio-options{flex:0 0 auto;gap:5px}.studio-options #toolbar-lens{color:#9db2c8;font:10px ui-monospace,SFMono-Regular,Consolas,monospace;min-width:37px;white-space:nowrap}.aspect-label select{height:24px;min-height:24px;width:65px;max-width:65px;padding:3px 5px;background:#1b242e;color:#bfcede;border:1px solid #3c4d60;font-size:10px}.studio-options>.icon-button{width:24px;height:24px;color:#8fa7c0}.stage-surround{background:#15191e}.stage-bottom{height:22px;padding:0 10px;background:#202933;color:#8a9fb4;border-color:#39495c;font-size:9px}.stage-bottom>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.stage-bottom .text-button{color:#91aac3;font-size:9px}.shot-note{height:28px;padding:0 10px;gap:10px;background:#242e39;border-color:#3a495b}.shot-note input{font-size:10px;color:#c1d0df}.shot-note .eyebrow{font-size:8px;color:#8199b4}.shot-strip-section{height:133px;padding:6px 10px;background:#1d2732;border-color:#39485a}.strip-heading{height:20px;margin-bottom:3px}.strip-heading h2{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:#bfcede;font-weight:600}.strip-heading h2 span{font-size:9px;text-transform:none;letter-spacing:0;color:#829bb5}.strip-heading .text-button{font-size:9px;color:#8fa9c5}.shot-strip{height:98px;gap:7px;padding:1px 0 6px}.shot-card{min-width:126px;width:126px;border-radius:0!important;padding:3px;gap:0}.shot-card img{height:62px;border-radius:0;background:#141b24}.shot-card .shot-card-caption{padding:4px 0!important;min-height:17px;font-size:9px!important;gap:6px}.shot-card-caption strong{font:8px ui-monospace,Consolas,monospace;color:#88a4c1}.shot-card.active{background:#344b62;border-color:#9eb9d3}.shot-card:hover{background:#304459}.add-shot{margin:3px 0 19px;min-width:70px;width:70px;border:1px solid #3e546d;border-radius:0!important;color:#8fa9c5;font-size:9px}
.panel-heading,.inspector .panel-heading{height:33px;min-height:33px;padding:4px 11px;background:#1e2630;border-color:#3b495b}.panel-heading h2{font-size:9px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:#bbcbdd}.panel .mobile-close{height:22px;width:22px;color:#8da6c0}.panel .mobile-close svg{width:12px;height:12px}.library-tabs{margin:0 10px 9px;gap:12px;border-color:#3d4e61}.library-tabs button{min-height:32px;font-size:10px;color:#8da6c0;border-radius:0;background:none}.library-tabs button.active{border-bottom:2px solid #9bb5d0;color:#e2edfa;background:none;box-shadow:none}.search-box{margin:0 10px 8px;padding:5px 7px;background:#1d2732;border-color:#3c4d61}.search-box input{font-size:10px;color:#bdcede}.search-box svg{color:#91a9c2}.catalog-scroll{flex:1;max-height:58%;min-height:100px;padding:0 10px 10px}.catalog-grid{gap:7px}.catalog-group-label{color:#819bb7;font-size:8px;letter-spacing:.08em;margin:8px 0 1px}.model-card,.character-card{border-color:#3d5066;border-radius:0!important;background:#273546}.model-card span{font-size:10px;color:#b9cbe0;line-height:1.4;padding:1px 3px}.model-card:hover,.character-card:hover,.character-place:hover{background:#364d65;border-color:#7c9dbd}.model-card img{background:#dce1e0}.model-card.scene-card{padding-bottom:5px}.model-card.scene-card img{aspect-ratio:16/9;object-fit:contain;background:#192330}.model-card.scene-card span{min-height:29px;font-size:9px;line-height:1.35;padding:3px 4px 0}.character-place img{aspect-ratio:1.05;background:#e2e7e5}.character-place>span{font-size:10px;padding:5px 6px 1px;color:#dae7f6}.character-place small{font-size:8px;color:#91aac6;padding:0 6px 5px}.custom-button{font-size:10px;min-height:27px;color:#b7cde3;background:#223041;border-color:#435b75}.scene-section{background:#232d39;padding:8px 5px 5px;min-height:105px;flex:1;max-height:none;border-color:#3b4c61}.scene-section .section-heading{padding:0 6px 6px}.section-heading h2{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#aabed4}.section-heading>span{font:9px ui-monospace,Consolas,monospace;background:#1d2937;color:#8ba6c4}.object-row{min-height:27px;padding:3px 5px;border-radius:0!important}.object-row .object-name{font-size:10px;color:#b5c9df}.object-row .icon-button{width:21px;height:21px;color:#6d8bad}.object-row:hover{background:#2c3e52}.object-row.active{background:#354d67;border-color:transparent;border-left-color:#a0bdd9}.library-footer{background:#1b2634;color:#8ca5c1;font-size:8px;padding:7px 10px;border-color:#3b4c61}
.inspector-content{padding:0 12px 14px}.inspector-tabs{margin:0 12px;border-color:#3d4f64}.inspector-tabs button{font-size:10px;padding:8px 0;color:#8da6c2}.inspector-tabs button[aria-selected=true]{color:#d3e5f7}.saved-camera-section,.selection-heading{padding:12px 0;border-color:#3c4d61}.field-label{font-size:10px;color:#94acc6;gap:6px;margin-bottom:9px}.field-label>input,.field-label>select,.selection-heading .object-name-input,.joint-select{border:1px solid #40536b;background:#1b2735;color:#c9dcef;border-radius:0!important;font-size:11px;min-height:26px;padding:4px 6px}.saved-camera-actions{gap:4px}.saved-camera-actions .button{font-size:10px;min-height:25px;padding:4px 6px;background:#293b50;border-color:#455e7b;color:#aec7e0}.saved-camera-actions .icon-button{border-color:#455e7b;color:#94b0cd}.property-tip{font-size:9px;line-height:1.6;color:#809ab6}.property-fold{border-bottom:1px solid #384c62}.property-fold>summary{font-size:8px;text-transform:uppercase;letter-spacing:.09em;color:#b3c9e0;min-height:35px;padding:10px 0;justify-content:space-between}.property-fold>summary svg{order:0;color:#6785a6;width:10px;height:10px;margin:0}.fold-content{padding-bottom:13px}.camera-panel .property-row>input[type=range]{display:none}.camera-panel .property-row-head{gap:5px;font-size:11px;min-height:28px}.camera-panel .number-unit{min-width:79px}.camera-panel .number-unit input{width:56px;height:26px;background:#1b2735;color:#c9dcef;border:1px solid #40536b}.camera-presets{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:9px 0 0}.camera-presets button{font:9px ui-monospace,Consolas,monospace;padding:4px 0;background:#293a4d;color:#91aecb;min-height:23px;border:0;border-radius:0!important}.camera-presets button[aria-pressed=true]{background:#476584;color:#e7f3ff}.axis-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:1px 0 7px}.axis-fields label{min-width:0;display:flex;flex-direction:column;gap:5px}.axis-fields label>span{font:9px ui-monospace,SFMono-Regular,Consolas,monospace;color:#8ca7c4}.axis-fields input{width:100%;height:27px;min-width:0;padding:4px 5px;border:1px solid #405775;border-radius:0!important;font:11px ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;text-align:right;color:#c5daef;background:#1c2b3d}.axis-fields label+label input{border-left:0}.axis-fields input:focus{position:relative;z-index:1}.axis-foot{display:flex;justify-content:space-between;color:#758fac;font-size:9px}.property-row-head{font-size:10px;color:#a9c2dc}.number-unit input{background:#1b2a3b;border-color:#405775;border-radius:0!important;color:#c5daef}.property-select{font-size:10px;color:#98b3d0;margin:3px 0 6px}.property-select select{font-size:10px;color:#bfd5ed;background:#1a293b;border-color:#405775;border-radius:0!important;padding:4px}.check-row{font-size:10px;color:#94afca}.color-label{font-size:10px;color:#a2bcd6}.selection-actions .button{font-size:10px;background:#283b52;border-color:#415b7b;color:#b4cee9;border-radius:0!important}.property-header .object-type,.character-instance-info{color:#94afcc;font-size:10px}.property-header strong{color:#cde1f5}.preset-grid button{background:#24364c;border-color:#3d5878;border-radius:0!important;color:#a9c6e4;font-size:10px;padding:5px}.text-button{color:#aac8e5}.button.primary{background:#7294b8;border-color:#7294b8;color:#132337}.button.primary:hover{background:#95b2d0;color:#132337}.toast{background:#2b4562;border-color:#597c9f;color:#edf6ff}
/* Dialogs share the viewport's control scale and neutral surfaces. */
dialog{background:#242e3a;border-color:#4a607b;border-radius:2px!important}.dialog-heading,.dialog-footer{background:#1d2835;border-color:#3e5570}.dialog-heading{padding:13px 16px}.dialog-heading h2{font-size:16px;color:#d2e5f9}.dialog-heading .eyebrow{font-size:8px;color:#7f9ab7}.dialog-footer{padding:10px 16px}.dialog-footer .button{font-size:11px;min-height:28px}.asset-preview-column,.model-preview-column,.image-export-list{background:#1b2838}.asset-settings,.model-parts-column{background:#242f3e}.asset-preview-caption,.asset-help,.asset-field-group h3,.asset-color-field,.asset-settings>.field-label{color:#96b1cd}.asset-field-group{border-color:#3e5571}.field-with-unit,.asset-field-group>select,.part-fields input:not([type=color]),.part-fields select,.model-name{background:#1b293b;border-color:#405a79;color:#bcd3ed;border-radius:0!important}.guide-content{padding:16px}.guide-content>p:first-child,.guide-content .guide-row p{color:#9bb6d1}.keycap,kbd{border-color:#4b6482;background:#1e3046;color:#a9c4e1}.muted{color:#91afce}.image-export-dialog .dialog-footer .muted{color:#94b0cd}.model-part-chip{border-radius:0!important}
@media(min-width:901px) and (max-width:1200px){.project-heading span{display:none}.app-header{gap:7px}.brand{font-size:12px}.application-menus .menu>summary{padding:7px}.header-actions{gap:3px}.project-heading input{width:160px}.workspace.has-library{--library-width:190px}.workspace.has-inspector{--inspector-width:230px}.studio-toolbar{height:64px;flex-wrap:wrap;gap:2px 8px;padding:3px 9px}.shot-heading{order:0;flex-basis:calc(100% - 232px);max-width:none}.shot-heading input{max-width:none}.stage-tools{order:1;margin-left:auto}.view-switch{order:2;height:27px}.studio-options{order:3;flex:1;justify-content:flex-end}.tool-button{font-size:9px}.tool-button kbd{display:none}.tool-button svg{width:12px;height:12px}.camera-drawer-toggle span{display:none}}
@media(max-width:900px){.app-header{height:44px;padding:0 10px;gap:9px}.brand{font-size:13px}.brand .logo{width:19px;height:19px}.application-menus .menu>summary{height:34px;padding:8px 8px;font-size:11px}.project-heading{display:none}.header-actions{gap:5px}.header-actions>.button,.header-actions .menu>summary{height:29px;min-height:29px;font-size:11px}.header-actions .icon-button{width:27px;height:29px}.workspace{height:calc(100dvh - 44px)}.studio-toolbar{height:71px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:29px 29px;gap:5px 8px;padding:4px 9px;align-content:center}.shot-heading{grid-column:1;grid-row:1;order:0;max-width:none;min-width:0;flex-basis:auto}.shot-heading input{max-width:none;font-size:12px}.stage-tools{grid-column:2;grid-row:1;order:0;margin:0;height:29px}.tool-button{height:29px;min-width:31px;padding:3px 6px;font-size:10px}.tool-button kbd{display:none}.view-switch{grid-column:1;grid-row:2;order:0;height:29px}.view-switch button{font-size:11px;padding:0 9px}.studio-options{grid-column:2;grid-row:2;order:0;flex-basis:auto;justify-content:flex-end}.studio-options #toolbar-lens{font-size:10px}.aspect-label select{height:27px;min-height:27px;font-size:11px}.studio-options>.icon-button{width:27px;height:27px}.workspace>.panel{top:123px!important;bottom:10px!important;max-height:calc(100dvh - 133px)!important;width:min(315px,calc(100vw - 20px));background:#232f3e}.drawer-backdrop{top:115px;background:#0d1828aa}.panel-heading,.inspector .panel-heading{height:37px;min-height:37px}.panel-heading h2{font-size:10px}.panel .mobile-close{height:29px;width:29px}.axis-fields input,.camera-panel .number-unit input{height:32px;font-size:16px}.axis-fields label>span{font-size:10px}.property-fold>summary{font-size:9px;min-height:38px}.camera-panel .number-unit input{width:69px}.property-tip{font-size:10px}.field-label>input,.field-label>select,.selection-heading .object-name-input,.joint-select,.property-select select{min-height:32px;font-size:16px}.saved-camera-actions .button{min-height:31px;font-size:11px}.property-select{font-size:11px}.property-select select{max-width:180px}.object-row{min-height:32px}.object-row .object-name{font-size:11px}.object-row .icon-button{width:28px;height:28px}.library-tabs button{min-height:35px;font-size:11px}.catalog-scroll{max-height:55%}.search-box{padding:6px 7px}.search-box input{font-size:16px}.scene-section{min-height:85px}.model-card.scene-card span{font-size:10px;min-height:31px}.model-card span{font-size:11px}.character-place>span{font-size:11px}.character-place small{font-size:9px}.menu-panel button{min-height:35px;font-size:12px}.menu-project-title input{font-size:16px;min-height:32px}.shot-strip-section{height:124px;padding:6px 9px}.shot-strip{height:90px}.shot-card{width:114px;min-width:114px}.shot-card img{height:55px}.shot-card .shot-card-caption{font-size:9px!important}.shot-note{height:29px}.shot-note input{font-size:11px}.stage-bottom{height:24px;font-size:9px}.stage-bottom>span{max-width:77%;white-space:nowrap;line-height:1.4}.stage-bottom .text-button{font-size:9px}.stage-surround{min-height:70px}.dialog-heading{padding:12px 15px}.dialog-footer{padding:10px 15px}.dialog-footer .button{min-height:32px}.field-with-unit input,.asset-field-group>select,.part-fields input:not([type=color]),.part-fields select,.model-name{font-size:16px;min-height:32px}}
@media(max-width:580px){.app-header{gap:6px;padding:0 9px}.application-menus #edit-menu,.application-menus #view-menu{display:none}.application-menus .menu>summary{padding:8px 5px}.header-actions{gap:4px}.header-actions .board-add{padding:4px 6px}.header-actions .board-add span{display:inline}.header-actions .camera-drawer-toggle{padding:4px 6px}.header-actions .camera-drawer-toggle span{display:none}.header-actions .menu>summary{padding:5px 6px;font-size:11px}.header-actions>#help{display:none}.header-actions .button>svg:first-child{display:block}.header-actions #export-menu summary>svg:first-child{display:none}.header-actions .camera-drawer-toggle svg{width:14px;height:14px}.stage-tools .tool-button>span{display:none}.stage-tools .tool-button svg{width:15px;height:15px}.view-switch button{padding:0 7px;font-size:10px}.studio-toolbar{gap:4px 6px}.shot-heading{gap:5px}.shot-heading input{font-size:12px}.studio-options{gap:4px}.studio-options #toolbar-lens{font-size:9px;min-width:32px}.aspect-label select{width:61px;max-width:61px}.stage-bottom>span{max-width:68%;font-size:8px}.shot-note .eyebrow{font-size:8px}.shot-strip-section{height:118px}.shot-strip{height:84px}.shot-card{min-width:108px;width:108px}.shot-card img{height:51px}.add-shot{min-width:68px;width:68px;margin-bottom:17px}.asset-editor-layout{grid-template-columns:1fr;max-height:65dvh}.asset-preview-column canvas{max-height:180px}.asset-dialog .dialog-footer{flex-wrap:wrap}.asset-footer-actions{width:100%}.guide-content{padding:14px}.dialog-heading h2{font-size:16px}.dialog-heading .eyebrow{font-size:8px}.guide-shortcuts{display:none}}
/* Precision sliders remain directly draggable; values are an optional second input. */
.axis-fields{gap:7px}.axis-field{min-width:0}.axis-field>label{display:block;font:9px ui-monospace,SFMono-Regular,Consolas,monospace;color:#92abc2;margin:0 0 5px;line-height:1.3}.axis-field>label [data-scrub]{display:block;cursor:ew-resize;touch-action:none;padding:2px 0}.axis-field>input[type=number]{height:26px;width:100%;padding:3px 5px;border:1px solid #3f5269;border-radius:1px!important;background:#1b2838;color:#c7d8e9;font:11px ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right}.axis-field>input[type=range],.camera-panel .property-row>input[type=range]{display:block;width:100%;height:22px;margin:0;padding:0;border:0!important;border-radius:0!important;background:none;cursor:ew-resize;box-shadow:none;touch-action:none}.property-row input[type=range]::-webkit-slider-runnable-track,.axis-track::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,#819fbc 0 var(--fill,50%),#3c4b5d var(--fill,50%) 100%);border-radius:0}.property-row input[type=range]::-webkit-slider-thumb,.axis-track::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:5px;height:11px;margin-top:-4px;background:#b7cbdc;border:1px solid #1e2c3b;border-radius:1px;box-shadow:0 0 0 1px #6584a3}.property-row input[type=range]:hover::-webkit-slider-thumb,.axis-track:hover::-webkit-slider-thumb{background:#f0f6fc}.property-row input[type=range]::-moz-range-track,.axis-track::-moz-range-track{height:3px;background:#3c4b5d;border-radius:0}.property-row input[type=range]::-moz-range-progress,.axis-track::-moz-range-progress{height:3px;background:#819fbc}.property-row input[type=range]::-moz-range-thumb,.axis-track::-moz-range-thumb{width:4px;height:10px;background:#b7cbdc;border:1px solid #1e2c3b;border-radius:1px}.camera-panel .camera-presets{margin-top:3px}.axis-foot{margin-top:0}.axis-fields{margin-bottom:1px}.property-row-head .number-unit input{cursor:text}
@media(max-width:900px){.axis-field>input[type=number]{height:31px;font-size:16px}.axis-field>input[type=range],.camera-panel .property-row>input[type=range]{height:29px}.axis-field>label{font-size:10px}.axis-field>label [data-scrub]{padding:4px 0}}

/* Character presets retain the compact asset library rhythm. */
.builtin-person .character-place small{font-variant-numeric:tabular-nums}.asset-size-control{display:flex;align-items:center;gap:12px;min-height:30px}.asset-size-control input[type=range]{flex:1;min-width:0;height:3px;appearance:none;background:var(--border,#46505c);border:0;padding:0;accent-color:#a7b7c9}.asset-size-control input[type=range]::-webkit-slider-thumb{appearance:none;width:8px;height:14px;border-radius:1px;background:#a7b7c9;cursor:ew-resize}.asset-size-control input[type=range]::-moz-range-thumb{width:8px;height:14px;border:0;border-radius:1px;background:#a7b7c9;cursor:ew-resize}.asset-size-control output{width:38px;text-align:right;font:11px ui-monospace,monospace;color:#bac5d1}.asset-field-group>.property-tip{margin:5px 0 12px}.library-empty{grid-column:1/-1}

.asset-preview-frames{display:flex;gap:4px;margin-right:auto}.asset-preview-frames [aria-pressed=true]{border-color:#8b9daf;background:#384b60}.asset-preview-tools{gap:8px}

/* Large libraries keep categories in a single compact, searchable control. */
#catalog-filters .catalog-category-control{display:flex;align-items:center;gap:8px;width:100%;padding:2px 0 5px}#catalog-category{width:100%;min-width:0;height:28px;background:#1c2733;color:#c1cbd7;border:1px solid #435064;padding:4px 7px;font-size:11px}#catalog-filters .catalog-category-control>span:last-child{color:#8d9aa9;font-size:10px;font-variant-numeric:tabular-nums}.demo-session-bar{height:28px;display:flex;align-items:center;gap:18px;padding:0 14px;background:#30485a;border-bottom:1px solid #58728a;color:#dae5ee;font:10px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.06em}.demo-session-bar[hidden]{display:none}.demo-session-bar>span{margin-right:auto}.demo-session-detail{color:#b8cad8;margin-left:14px;letter-spacing:0}.demo-session-bar a{color:#e5edf4;text-decoration:none;letter-spacing:0}.demo-session-bar a:hover{text-decoration:underline}.demo-session .workspace{height:calc(100dvh - 70px)}@media(max-width:650px){.demo-session-detail{display:none}.demo-session-bar{font-size:9px;gap:12px}}

/* Demos explore a fixed cast and scene collection. */
.demo-session :is(.library-tabs,#catalog-filters,#create-character,#create-model,#duplicate-shot,#delete-shot,[data-action="duplicate-selection"],[data-action="duplicate-object"],[data-action="remove-object"],[data-action="add-shot"],[data-action="open-project"],[data-action="new-project"],[data-action="add-examples"],[data-action="open-builder"],[data-action="edit-custom-model"],[data-action="save-character"],[data-action="save-camera"],[data-action="edit-camera"]) { display:none !important; }

/* Grayscale-only appearance controls never open an RGB color picker. */
.grayscale-tone{display:grid;gap:8px;margin:12px 0}.grayscale-tone-label{display:flex;justify-content:space-between;align-items:center;gap:10px}.grayscale-tone-label output{color:#b8bebe;font-variant-numeric:tabular-nums}.grayscale-tone-row{display:flex;align-items:center;gap:10px}.grayscale-tone-row input[type=range]{flex:1;min-width:0}.grayscale-tone-swatch{display:block;flex:0 0 21px;width:21px;height:21px;border:1px solid #929797;border-radius:3px}.asset-settings .grayscale-tone{margin:10px 0 16px}

/* Retina touch viewport and fullscreen controls. */
.stage{isolation:isolate}.stage canvas.interactive-preview{position:absolute;inset:0;pointer-events:none;z-index:1}.stage-overlay,.thirds,.frame-label{z-index:2}
.studio-options .fullscreen-toggle{display:inline-flex;flex-shrink:0}
body.expanded-view .app-header,body.expanded-view .demo-session-bar,body.expanded-view .shot-note,body.expanded-view .shot-strip-section{display:none!important}
body.expanded-view .workspace{height:100dvh!important;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
@media(pointer:coarse){.studio-options .icon-button,.studio-toolbar .tool-button,.view-switch button{min-height:36px}.studio-options .icon-button{min-width:36px}.stage{overscroll-behavior:contain;-webkit-touch-callout:none}}

.demo-scenes-toggle{font:inherit;letter-spacing:0;color:#e5edf4;padding:4px 2px;white-space:nowrap}.demo-scenes-toggle:hover{text-decoration:underline}

/* Phone controls share the screen with the scene instead of covering it. */
@media(max-width:600px){
  .workspace{--phone-panel-height:min(43dvh,350px)}
  .workspace.has-library>.studio,.workspace.has-inspector>.studio{padding-bottom:var(--phone-panel-height)}
  .workspace>.panel,.workspace>.inspector.camera-panel{top:auto!important;left:0!important;right:0!important;bottom:0!important;width:100%;height:var(--phone-panel-height);max-height:var(--phone-panel-height)!important;border-width:1px 0 0;box-shadow:0 -5px 20px #0004}
  .drawer-backdrop{display:none!important}
  .panel-heading,.inspector .panel-heading{min-height:44px;height:44px;padding:3px 12px}
  .panel .mobile-close{width:44px;height:40px}
  .inspector-tabs button,.library-tabs button{min-height:44px}
  .library .catalog-scroll{max-height:none;flex:1;min-height:60px}
  .library .scene-section{min-height:64px;max-height:28%}
  .library-footer{display:none}
  .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .inspector-content{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .menu[open]>.menu-panel{position:fixed;left:8px;right:8px;top:48px;width:auto;max-height:calc(100dvh - 64px);overflow:auto;overscroll-behavior:contain}
  .menu-panel button{min-height:44px}
  .shot-strip-section{height:91px;padding:4px 9px}
  .shot-strip{height:64px}.shot-card{width:88px;min-width:88px}.shot-card img{height:37px}.shot-card-caption{padding-top:2px!important}
  .shot-note{height:30px}.stage-bottom{height:24px}
  .property-row input[type=range],.axis-field>input[type=range]{min-height:36px}
  .preset-grid button,.selection-actions .button,.saved-camera-actions .button{min-height:40px}
  dialog{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto}
  .asset-editor-layout{min-height:0}.asset-preview-column{padding:12px}.asset-settings{padding:14px}
}
@media(max-width:900px) and (max-height:500px){
  .workspace.has-library>.studio,.workspace.has-inspector>.studio{padding-bottom:0;padding-right:min(44vw,300px)}
  .workspace>.panel,.workspace>.inspector.camera-panel{left:auto!important;right:0!important;top:44px!important;bottom:0!important;width:min(44vw,300px);height:auto;max-height:calc(100dvh - 44px)!important}
  .drawer-backdrop{display:none!important}.shot-strip-section{height:78px}.shot-strip{height:53px}.shot-card img{height:30px}
}
.menu-account-link{display:block;padding:12px 16px;font-size:12px;color:inherit;text-decoration:none}.menu-account-link:hover{background:var(--accent-soft)}
