/* V2.3 final-layer design system. All selectors are Studio-local. */
:root{--ux-gutter:clamp(16px,3vw,48px);--ux-gap:clamp(12px,1.6vw,24px);--ux-panel:clamp(16px,2vw,28px);--ux-section:clamp(28px,4vw,60px);--ux-radius:16px;--bg:#080f19;--panel:#101d2b;--line:#30465c;--text:#edf5ff;--muted:#b3c5d7;--blue:#70d1ff;--cinema-edge:#30465c;color-scheme:dark}
html{scroll-padding-top:100px}body{margin:0;min-width:0;background:radial-gradient(ellipse at 90% 0,#132a40 0,transparent 40%),#080f19;color:var(--text);font-size:15px;line-height:1.6}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}main,header,footer{min-width:0}main{width:100%;max-width:1600px;margin-inline:auto;padding:clamp(20px,3vw,42px) var(--ux-gutter) clamp(36px,5vw,76px);min-height:70vh}main>section,main>section>*{min-width:0}main>section:not(.hero):not(.studio-metrics)+section:not(.studio-metrics){margin-top:var(--ux-section)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.9rem,3.4vw,3.5rem);line-height:1.12;letter-spacing:-.045em;margin-bottom:14px;overflow-wrap:anywhere}h2{font-size:clamp(1.25rem,2vw,1.85rem);line-height:1.24;margin:28px 0 14px;overflow-wrap:anywhere}h3{font-size:1.12rem;line-height:1.35;margin-bottom:8px;overflow-wrap:anywhere}p{margin-bottom:14px}.lead{max-width:75ch;font-size:clamp(1rem,1.3vw,1.12rem);line-height:1.65}.eyebrow,.cinema-kicker{font-size:.7rem;letter-spacing:.12em;margin-bottom:8px;overflow-wrap:anywhere}.muted,small{color:var(--muted)}a,button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a.primary,a.secondary{min-height:44px;padding:10px 15px;border-radius:10px;line-height:1.35;white-space:normal;text-align:center;max-width:100%;overflow-wrap:anywhere}button:not(:disabled):hover,a.primary:hover,a.secondary:hover{transform:none}.primary{background:linear-gradient(120deg,#a0e6ff,#43b8f1);color:#06131e!important;box-shadow:none}.secondary,button{background:#16283a}.actions{gap:10px;margin:16px 0;align-items:center}.actions form{margin:0;min-width:0}.actions>*{min-width:0}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #a1e8ff;outline-offset:3px}img,canvas,video{max-width:100%}label{min-width:0;display:grid;gap:6px;margin:0 0 14px;line-height:1.45;font-size:.9rem}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;max-width:100%;font-size:1rem;min-height:46px;border-radius:9px;padding:10px 12px;background:#0a1522;border:1px solid #425c73;color:var(--text)}input[type=range]{min-height:32px;padding:0;cursor:pointer}input[type=file]{padding:7px;font-size:.84rem;overflow:hidden}input[type=file]::file-selector-button{font:inherit;color:#eaf6ff;background:#233e55;border:0;border-radius:6px;padding:9px;margin-inline-end:7px;cursor:pointer}.check{display:flex;align-items:flex-start;gap:10px;line-height:1.55}.check input{flex:0 0 20px;margin:3px 0 0}.panel,.tile,.viewer-box{border-radius:var(--ux-radius);border:1px solid var(--line);background:#101d2b;box-shadow:0 8px 28px #0002}.panel{padding:var(--ux-panel);margin:0;min-width:0}.panel+.panel{margin-top:var(--ux-gap)}.panel>h2:first-child,.panel>h1:first-child{margin-top:0}.notice{padding:14px 16px;margin:0 0 var(--ux-gap);border-left:3px solid #70d1ff;overflow-wrap:anywhere}.ux-location{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:.83rem;margin:0 0 20px}.ux-location a{color:#a3dfff}.ux-location span:last-child{overflow-wrap:anywhere}
/* Navigation and page shells */
body>header{display:flex;position:sticky;top:0;z-index:25;align-items:center;justify-content:space-between;gap:12px 24px;padding:12px var(--ux-gutter);background:#0a1320f7;border-bottom:1px solid var(--line);box-shadow:none;backdrop-filter:blur(12px)}header .brand{min-width:0;flex:0 1 auto;gap:12px}header .brand img{width:clamp(120px,13vw,185px);max-width:100%;height:auto}header .brand span{font-size:.7rem;letter-spacing:.12em;white-space:nowrap;padding-left:12px}#studio-nav{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0}#studio-nav a,#studio-nav button{font-size:.86rem;min-height:44px;display:inline-flex;align-items:center;padding:9px 11px;border-radius:8px;white-space:normal;box-shadow:none}#studio-nav a[aria-current=page]{background:#1b354b;color:#a6e4ff;box-shadow:inset 0 -2px #70d1ff}#studio-nav a:hover{background:#16283a}#studio-nav .navcta{background:#20415a}.menu-toggle{min-width:76px}body>footer{display:flex;gap:12px 24px;padding:24px var(--ux-gutter);background:#0a1320;font-size:.82rem;align-items:center}.studio-page-view header,.studio-page-demo header{position:relative;top:auto}.studio-page-embed main{padding:12px;min-height:0}.studio-page-embed .ux-location{display:none}
/* Overview, product discovery, library */
.studio-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,64px);padding:10px 0 var(--ux-section);align-items:center}.studio-hero h1{font-size:clamp(2.7rem,5.8vw,6rem);line-height:1.02;margin-bottom:20px}.studio-hero>div{min-width:0}.hero-stage{border-radius:var(--ux-radius)}.hero-stage model-viewer{height:clamp(260px,35vw,480px)}.hero-stage .fec-render-bar{padding:12px 16px}.stage-top,.stage-bottom{padding:12px 16px}.studio-metrics{margin:0 0 var(--ux-section);grid-template-columns:repeat(4,minmax(0,1fr));border-radius:var(--ux-radius)}.studio-metrics div{padding:var(--ux-panel)}.studio-section{margin:var(--ux-section) 0}.studio-tools,.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ux-gap)}.studio-tools a{padding:var(--ux-panel);min-height:0;border-radius:var(--ux-radius)}.studio-tools a:hover,.tile:hover,.product-grid>.panel:hover{transform:none}.studio-tools a p{margin:0}.product-hub{max-width:none}.product-grid{margin:24px 0}.product-grid>.panel{gap:12px;padding:var(--ux-panel)}.product-grid>.panel h2{font-size:clamp(1.15rem,1.65vw,1.55rem)}.product-grid>.panel p{margin:0}.product-grid>.panel a{width:100%}.product-grid>.panel .product-slab{max-height:190px}.product-family{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.product-family a{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 16px;min-height:52px;border:1px solid var(--line);border-radius:10px;background:#132436;color:var(--text);overflow-wrap:anywhere;text-decoration:none}.product-family a:hover{border-color:var(--blue)}.tiles,.studio-page-home .tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ux-gap)}.tile{max-width:none;min-width:0;overflow:hidden}.tile a{height:100%;display:flex;flex-direction:column}.tile img{width:100%;height:clamp(155px,17vw,240px);padding:14px;object-fit:contain;display:block}.tile-body{padding:18px;flex:1}.tile-body .eyebrow{font-size:.68rem}.tile-body p{font-size:.88rem}.section-head{align-items:center;gap:12px;margin-bottom:16px}.section-head h1{margin-bottom:0}.library-toolbar{padding:var(--ux-panel);display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;background:#101d2b;margin:20px 0}.library-toolbar label{margin:0}.library-toolbar p{grid-column:1;align-self:center}.cinema-density{grid-column:2;justify-self:end;flex-wrap:wrap;gap:4px}.cinema-density button{min-height:44px;padding:8px 14px}.tiles.cinema-list{grid-template-columns:minmax(0,1fr)}.cinema-list .tile a{grid-template-columns:120px minmax(0,1fr);display:grid;align-items:center}.cinema-list .tile img{height:110px}.ux-table-scroll{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:var(--ux-radius);background:#101d2b}.ux-table{border-collapse:collapse;width:100%;min-width:520px;text-align:left;font-size:.88rem}.ux-table th,.ux-table td{padding:12px 15px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}.ux-table th{background:#172b3e;color:#c4d7e9;font-size:.76rem;letter-spacing:.05em;text-transform:uppercase}.ux-table tr:last-child td{border-bottom:0}.ux-table td:first-child{width:45%}.ux-table a{color:#b4e7ff;font-weight:650}.ux-table-note{font-size:.79rem;color:var(--muted);margin:8px 0 0}.ux-empty-result{padding:24px;text-align:center;border:1px dashed var(--line);border-radius:12px;margin:12px 0}
/* Capture forms and member workspace */
.narrow{width:min(100%,500px);margin:clamp(12px,4vh,52px) auto;padding:clamp(20px,3vw,36px)}.narrow form>.primary,.narrow form>button{width:100%}.create-form,.lab-form,.product-hub>form.panel{max-width:1120px;margin-inline:auto}.form-grid,.form-grid.three,.uploads,.pro-canvas-grid,.delivery-grid{gap:var(--ux-gap);min-width:0}.form-grid>*,.uploads>*,.delivery-grid>*{min-width:0}.form-grid label{margin-bottom:8px}.uploads{grid-template-columns:repeat(3,minmax(0,1fr))}.upload,.lab-upload{padding:14px;min-width:0;min-height:0;border-radius:12px;margin:0}.upload span{flex-wrap:wrap}.upload img{height:150px}.lab-upload canvas{max-height:220px;max-width:100%;object-fit:contain}.create-form>.muted{margin-top:14px}.create-form>.panel{padding:var(--ux-panel);margin:24px 0;background:#0c1724;box-shadow:none}.cinema-workflow{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.cinema-workflow a{flex:1 1 130px;min-height:44px;display:flex;align-items:center;gap:8px}.cinema-upload-summary{margin:14px 0;padding:12px 16px}.pro-canvas-grid canvas{max-height:400px;object-fit:contain}.production-workspace,.pro-capture{overflow-wrap:anywhere}.pro-link{align-items:center;flex-wrap:wrap}.pro-link form{flex-shrink:1}.photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;max-width:1050px}.photos a{display:block;width:100%;padding:12px;background:#102033;border:1px solid var(--line);border-radius:12px;text-decoration:none}.photos img{width:100%;height:clamp(110px,14vw,190px);object-fit:contain}.photos span{padding-top:6px}.ux-image-dialog{width:min(900px,calc(100% - 24px));max-height:90dvh;padding:16px;border:1px solid #53738f;border-radius:16px;background:#0b1725;color:var(--text);overflow:auto}.ux-image-dialog::backdrop{background:#02060bd9}.ux-image-dialog img{display:block;width:100%;max-height:72dvh;object-fit:contain}.ux-image-dialog .actions{justify-content:space-between;margin:0 0 12px}.ux-image-dialog p{margin:10px 0 0}.ux-image-failed{outline:1px dashed #cba170;outline-offset:-2px}.ux-image-note{font-size:.78rem;color:#f1c995;display:block;padding:6px 8px}
/* Director: one aligned production surface, separate from the advanced renderer. */
.viewer-box{padding:var(--ux-panel);background:#0c1724;min-width:0;overflow:hidden}.viewer-box.theme-white,.viewer-box.theme-black,.viewer-box.theme-blue{background:#0c1724}.viewer-box.theme-white .fec-render-stage{background:#eaf0f6}.viewer-box.theme-black .fec-render-stage{background:#000}.viewer-box.theme-blue .fec-render-stage{background:#075b9e}.cinema-stage-head{padding:0 0 14px;gap:12px;align-items:center}.fec-director{margin:0 0 16px;padding:clamp(12px,1.6vw,24px);border-radius:14px;box-shadow:none}.fec-director-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px) auto;align-items:end;gap:12px;margin-bottom:16px}.fec-director-header label{margin:0}.fec-director-header h2{margin:0;font-size:clamp(1.3rem,2vw,1.9rem)}.fec-director-header select{width:100%;min-width:0}.fec-director-body{grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:var(--ux-gap);align-items:start}.fec-director-screen{height:clamp(320px,39vw,580px);aspect-ratio:auto;min-height:0;display:grid;place-items:center}.fec-director-screen canvas{max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain}.fec-director-sidebar{padding:12px;background:#0e1d2c;border:1px solid #29445b;border-radius:12px;gap:10px}.fec-director-sidebar>button{width:100%}.fec-director-shots{gap:8px}.fec-director-shots button{min-height:52px;padding:10px;justify-content:start}.fec-director-quick{gap:9px}.fec-director-quick label{margin:0}.fec-director-quick label:nth-child(3){grid-column:auto}.fec-director-quick input,.fec-director-quick select{font-size:.85rem;min-height:44px}.fec-director button{min-height:44px;font-size:.85rem}.fec-transport{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:10px;padding:12px 0;margin:0;align-items:center}.fec-transport label{margin:0;min-width:0}.fec-transport output{font-size:.82rem}.fec-filmstrip{gap:10px}.fec-filmstrip button{border-radius:10px;padding:6px}.fec-filmstrip button[aria-current=true]{border-color:#86dfff;box-shadow:inset 0 0 0 1px #86dfff}.fec-director-footer{padding-top:14px;border-top:1px solid #2a4055;margin-top:16px;gap:12px}.fec-director-footer p{font-size:.83rem}.fec-director-exports{gap:8px}.fec-advanced{padding:14px;margin:0;background:#101d2b}.fec-advanced summary,.pro-controls summary,.pro-capture summary{min-height:44px;padding:10px 0;cursor:pointer;line-height:1.45}.fec-advanced .fec-render-stage{border-radius:12px}.fec-advanced .controls,.fec-advanced .control-row,.fec-advanced .pro-controls{padding:14px 0;background:transparent}.fec-advanced .controls{display:flex;flex-wrap:wrap;gap:8px}.fec-advanced .control-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.fec-advanced .control-row label{min-width:0}.fec-advanced .pro-controls{border-top:1px solid var(--line)}.fec-director.ux-focus .fec-director-body{grid-template-columns:minmax(0,1fr)}.fec-director.ux-focus .fec-director-sidebar{display:none}.fec-director.ux-focus .fec-director-screen{height:clamp(320px,65vh,750px)}.viewer-box.cinema-focus .fec-director{display:none}.viewer-box:fullscreen{padding:14px;overflow:auto;display:block}.fec-render-bar{gap:10px}.fec-render-actions button{min-height:44px}.studio-page-embed .viewer-box{padding:10px}.studio-page-embed .fec-director-header{grid-template-columns:1fr}.studio-page-embed .fec-director-body{grid-template-columns:1fr}.studio-page-embed .fec-director-screen{height:clamp(200px,45vh,420px)}
@media(max-width:1100px){.studio-hero{gap:24px}.fec-director-body{grid-template-columns:minmax(0,1fr) minmax(220px,270px)}.tiles,.studio-page-home .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}body>header{position:relative}html{scroll-padding-top:20px}.js-ready .menu-toggle{display:inline-flex}.js-ready #studio-nav{display:none;flex:1 0 100%;width:100%;justify-content:start;padding-top:8px;border-top:1px solid var(--line)}.js-ready #studio-nav.is-open{display:flex}.js-ready #studio-nav a,.js-ready #studio-nav form{flex:0 1 auto}.js-ready #studio-nav form button{width:100%}}
@media(max-width:900px){.studio-hero{grid-template-columns:1fr;max-width:760px;margin:auto}.studio-hero h1{font-size:clamp(2.8rem,8vw,5rem)}.studio-tools,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid>.panel:last-child{grid-column:1/-1}.product-grid>.panel:last-child img{max-height:210px}.product-family,.tiles,.studio-page-home .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.fec-director-body{grid-template-columns:1fr}.fec-director-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.fec-director-sidebar>.cinema-kicker,.fec-director-sidebar>.fec-director-help{grid-column:1/-1}.fec-director-quick{align-self:start}.fec-director-screen{height:clamp(260px,54vw,480px)}.fec-director-header{grid-template-columns:minmax(0,1fr) minmax(130px,190px) auto}.studio-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-metrics div:nth-child(2){border-right:0}.studio-metrics div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:600px){:root{--ux-gutter:14px;--ux-panel:15px;--ux-gap:12px;--ux-section:32px}body{font-size:14px}main{padding-top:20px}body>header{padding:10px 14px;gap:10px}header .brand{gap:8px}header .brand img{width:clamp(105px,34vw,145px)}header .brand span{font-size:.61rem;padding-left:8px}.js-ready #studio-nav.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.js-ready #studio-nav a,.js-ready #studio-nav button{width:100%;justify-content:flex-start}.studio-hero h1{font-size:clamp(2.5rem,11vw,4rem)}.studio-hero p:not(.eyebrow){font-size:1rem}.studio-hero .actions a{width:100%}.studio-metrics strong{font-size:1.65rem}.studio-metrics span{font-size:.8rem}.studio-tools,.product-grid,.product-family{grid-template-columns:1fr}.product-grid>.panel:last-child{grid-column:auto}.tiles,.studio-page-home .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile img{height:140px;padding:8px}.tile-body{padding:12px}.tile-body h3{font-size:1rem}.tile-body .eyebrow{font-size:.62rem;letter-spacing:.05em}.tile-body p{font-size:.78rem}.library-toolbar{grid-template-columns:1fr;gap:12px}.library-toolbar p,.cinema-density{grid-column:1;justify-self:start}.cinema-density{width:100%}.cinema-density button{flex:1}.cinema-list .tile a{grid-template-columns:88px minmax(0,1fr)}.cinema-list .tile img{height:100px}.form-grid,.form-grid.three,.pro-control-inner .form-grid.three,.delivery-grid,.pro-canvas-grid{grid-template-columns:1fr}.uploads{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.upload,.lab-upload{padding:10px}.upload img{height:110px}.upload input{font-size:.75rem}.upload span{font-size:.82rem}.form-grid label{margin-bottom:0}.create-form>.primary,.lab-form>.primary,.product-hub>form>.primary{width:100%}.photos{grid-template-columns:repeat(2,minmax(0,1fr))}.viewer-box{padding:10px}.cinema-stage-head{padding:4px 0 12px}.fec-director{padding:10px}.fec-director-header{grid-template-columns:1fr 1fr;gap:8px;align-items:end}.fec-director-header>div{grid-column:1/-1}.fec-director-header label{width:100%;font-size:.78rem}.fec-director-header button{font-size:.76rem;padding:8px}.fec-director-screen{height:clamp(200px,76vw,360px)}.fec-director-sidebar{grid-template-columns:1fr;padding:10px}.fec-director-shots{grid-template-columns:repeat(2,minmax(0,1fr))}.fec-director-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.fec-director-shots small{font-size:.68rem}.fec-transport{grid-template-columns:1fr 1fr;gap:8px}.fec-transport label{grid-column:1/-1}.fec-transport output{grid-column:1/-1;text-align:right}.fec-filmstrip{gap:5px}.fec-filmstrip button{padding:3px}.fec-director-footer{align-items:stretch}.fec-director-exports{width:100%}.fec-director-exports button{flex:1 1 110px}.fec-advanced{padding:10px}.fec-advanced .control-row{grid-template-columns:1fr}.fec-director.ux-focus .fec-director-screen{height:clamp(240px,57vh,500px)}.fec-render-actions{width:100%}.fec-render-actions button{flex:1 1 110px}.actions>*{flex:1 1 auto}.section-head>a{flex:0 1 auto}.studio-page-embed main{padding:6px}.studio-page-embed .viewer-box{padding:6px}body>footer{align-items:flex-start;flex-direction:column}}
@media(max-width:360px){:root{--ux-gutter:10px;--ux-panel:12px}.brand span{display:none}.uploads,.tiles,.studio-page-home .tiles{grid-template-columns:1fr}.cinema-list .tile a{grid-template-columns:80px 1fr}.fec-director-header{grid-template-columns:1fr}.fec-director-header>div{grid-column:auto}.fec-director-quick{grid-template-columns:1fr}.fec-director-quick label:last-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep transport and shot strip immediately below the preview at every breakpoint. */
.ux-stage-column{min-width:0;display:grid;align-content:start;gap:10px}.ux-stage-column .fec-transport{padding:0;margin:0}.ux-stage-column .fec-filmstrip canvas{max-height:120px;object-fit:contain}.fec-director-screen{height:clamp(300px,37vw,540px)}.fec-director-quick label:nth-child(3){grid-column:1/-1}.fec-director-quick label:nth-child(3) input{width:100%}.fec-director-shots button{min-height:48px}.fec-director-sidebar{gap:8px}.fec-director-header button[data-ux-focus]{align-self:end}.fec-director.ux-focus .ux-stage-column{width:100%}@media(max-width:900px){.fec-director-screen{height:clamp(260px,54vw,480px)}}@media(max-width:600px){.fec-director-screen{height:clamp(200px,76vw,360px)}.ux-stage-column{gap:8px}.ux-stage-column .fec-filmstrip canvas{max-height:80px}.fec-director-quick label:nth-child(3){grid-column:1/-1}}@media(max-width:360px){.fec-director-quick label:nth-child(3){grid-column:auto}}
