/* Focused workspaces: media first, one contextual tool panel at a time. */
.editor-heading{display:flex;align-items:center;gap:14px;margin:0 0 20px;min-width:0}
.editor-heading :is(h1,h2,h3){flex:1;min-width:0;margin:0;font-size:1.35rem;line-height:1.4;overflow-wrap:anywhere}
.editor-heading>button{margin:0;flex-shrink:0;min-height:44px;font-size:.9rem;padding:10px 16px}
.editor-back,.editor-heading>.editor-back{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;border:1px solid #dce5ec;border-radius:12px;background:#fff;color:#203847;text-decoration:none;font:30px/1 sans-serif;padding:0}
.editor-project-settings,.editor-help{border:0;background:transparent;padding:0;margin:12px 0}
.editor-project-settings>summary,.editor-help>summary{cursor:pointer;color:var(--muted);font-size:.85rem;padding:9px 0}
.editor-project-settings[open]{padding:12px 16px;background:#f7f9fc;border:1px solid #e2e8ee;border-radius:14px}
.editor-project-settings input{max-width:100%}.editor-project-settings .montage-toolbar{margin:8px 0}
.editor-toolstrip{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;min-width:0;padding:10px 2px;margin:0 0 14px;border-bottom:1px solid #e3e9ef}
.editor-toolstrip>button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:66px;min-height:68px;margin:0;padding:8px 6px;background:transparent;border:0;border-radius:10px;color:#627380;font-size:.76rem;line-height:1.3;text-align:center}
.editor-toolstrip svg{width:24px;height:24px;flex-shrink:0}
.editor-toolstrip>button[aria-pressed=true]{background:#e8f5fb;color:#163f55;box-shadow:inset 0 -3px #51b7cf}
.photo-workbench{grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);align-items:start;gap:28px;margin-top:0}
.photo-stage{min-width:0}.photo-preview{background:#171d27;min-height:370px;border:0;border-radius:16px;padding:14px}.photo-preview p{color:#b1becb}.photo-preview canvas{max-height:65vh}
.photo-stage-actions{display:flex;justify-content:space-between;gap:10px;margin:12px 0}.photo-stage-actions button{font-size:.82rem;padding:8px 11px;min-height:44px}
.photo-controls{display:block;background:#fff;min-width:0}.photo-tool-panel{padding:4px 0 12px;min-height:180px}.photo-tool-panel textarea{width:100%;min-height:84px}
.photo-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 20px}.photo-presets button{display:flex;align-items:center;flex-direction:column;gap:6px;border:0;background:#f5f8fb;padding:8px 3px;font-size:.7rem;color:#354c5c;overflow-wrap:anywhere}.preset-swatch{display:block;width:100%;aspect-ratio:1;border-radius:8px;background:linear-gradient(135deg,#d8c8c2,#acc2c9 48%,#8daa90)}.preset-bright{filter:brightness(1.12)}.preset-soft{filter:contrast(.92) saturate(.92)}.preset-vivid{filter:contrast(1.12) saturate(1.25)}
#photo-export-dialog{border:0;border-radius:24px;padding:0;max-width:min(480px,94vw);width:480px;max-height:90dvh;background:white;color:#243b49}#photo-export-dialog::backdrop{background:#10222eb3}.editor-export-sheet{padding:24px;overflow:auto}.editor-close{float:right;min-width:44px;min-height:44px;padding:0;font-size:24px}.editor-export-sheet h2{font-size:1.4rem;margin:6px 0 14px}.editor-export-sheet .photo-export{display:grid;gap:10px}.editor-export-sheet .field-help{font-size:.8rem}.editor-export-sheet button{margin:0;min-height:44px}
.montage-editor .editor-heading{margin-bottom:2px}.montage-layout{grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);gap:24px}.montage-preview{background:#171d27;padding:14px;border:0;border-radius:16px}.montage-preview :is(video,img){height:460px;max-height:65vh;border-radius:8px;object-fit:contain;background:#171d27}.montage-preview p{color:#b1becb}.montage-preview #montage-empty{min-height:270px;display:grid;place-items:center;text-align:center}.montage-preview .field-help{font-size:.74rem;margin:10px 2px 0}
.montage-sequence{background:#eff4f8;border:1px solid #e0e8ef;border-radius:16px;padding:10px}.sequence-toolbar{flex-wrap:nowrap;justify-content:flex-end;gap:6px;margin:0 0 10px}.sequence-toolbar #montage-duration{margin-right:auto;font-size:.74rem;color:#516676;white-space:nowrap}.sequence-toolbar button{font-size:.74rem;padding:7px;min-width:40px}.montage-timeline{padding:0 0 4px;gap:7px}.montage-clip{flex-basis:108px;padding:4px;border-radius:10px;font-size:.72rem}.montage-clip strong{font-size:.69rem;line-height:1.3;display:block;max-width:98px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px}.montage-clip>span:last-child{font-size:.64rem;padding:0 4px 4px;margin:0}.montage-clip .montage-clip-visual{position:relative;display:grid;place-items:center;margin:0;height:62px;border-radius:6px;overflow:hidden;background:linear-gradient(145deg,#9ed1e0,#c0d7e3,#d8cdee);font-size:25px;color:#3e6276}.montage-clip-visual img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.montage-tabs{position:static;flex-wrap:nowrap;margin-top:16px}.montage-clip-tabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 16px;padding-bottom:4px;scrollbar-width:thin}.montage-clip-tabs button{flex:0 0 auto;border:1px solid #dfe6ed;padding:8px 12px;min-height:40px;font-size:.78rem;white-space:nowrap}.montage-clip-tabs button[aria-pressed=true]{background:#173f55;color:white;border-color:#173f55}.montage-fields{gap:12px}.montage-fields>div.montage-fields{margin:0}.montage-fields label{font-size:.82rem}.montage-fields .montage-toolbar{margin:0}.montage-fields input,.montage-fields select{min-height:44px}
.montage-item>summary{cursor:pointer;overflow-wrap:anywhere;font-size:.84rem;font-weight:600;line-height:1.6}.montage-item[open]>summary{margin-bottom:18px}.montage-export-bar{position:static;margin:12px 0;padding:12px 16px;box-shadow:none;background:#edf5f9;border:0}.montage-export-bar .field-help{display:block;margin-top:3px}.montage-renders{margin:24px 0 0;border-top:1px solid #e2e9ee;padding:16px 0}.montage-renders>summary{cursor:pointer;font-weight:650}.montage-renders .montage-toolbar h2{display:none}.montage-render h3{font-size:1rem}
.hub-tool-category{border-top:1px solid #e5ecf1;margin-top:24px;padding-top:16px}.hub-tool-category h2{font-size:1.1rem;margin:0}.hub-tool-category .hub-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.hub-tools-panel>input{max-width:620px}
.auto-selection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.auto-selection>p{grid-column:1/-1;border:1px dashed #b7cad7;border-radius:16px;padding:34px;text-align:center;color:#637c8b;background:#f6fafc}.auto-media-card{min-width:0;border:1px solid #dfe8ef;border-radius:14px;padding:8px;background:#f7fbfd}.auto-media-card :is(img,video){display:block;width:100%;height:120px;object-fit:cover;background:#183244;border-radius:8px}.auto-media-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;margin:10px 0}.auto-item-actions{display:flex;gap:3px;flex-wrap:wrap}.auto-item-actions button{font-size:.65rem;margin:0;padding:7px 5px;min-height:36px}.auto-item-actions button:last-child{flex-basis:100%}#hub-auto-options{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#hub-auto-options select{width:auto;min-width:150px}#hub-auto-options button{margin-left:auto}
.caption-entry{padding:36px 22px;background:#f0f7fb;border:1px dashed #a9c7d9;border-radius:20px;text-align:center;max-width:640px;margin:24px auto}.caption-entry>svg{width:54px;height:54px;color:#427b9b}.caption-entry p{max-width:44ch;margin:16px auto 24px}.caption-entry .button,.caption-entry button{display:block;width:100%;margin:12px 0 0;min-height:48px}.caption-entry .secondary{background:white}#hub-caption-availability{font-size:.83rem;color:#637581}
#studio-templates .ready-templates{border:0;background:transparent;padding:0}#studio-templates .ready-templates>summary{display:none}#studio-templates .ready-templates>p{font-size:.9rem;color:#627481}#ready-search{max-width:600px}.ready-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:2px 0 8px}.ready-filters button{flex-shrink:0;min-height:44px}.ready-grid{max-height:none;overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr))}.ready-card img{aspect-ratio:3/4}.ready-card strong{font-size:.86rem}.ready-compose{background:#fff;border:1px solid #e1e9ee;padding:20px}.ready-compose .editor-heading{margin-bottom:12px}.ready-compose>.editor-heading h3{font-size:1.15rem}.ready-compose>p{font-size:.85rem;color:#677b8a}.ready-composer-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:24px}.ready-media-stage{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}.ready-media-stage figure{margin:0;min-width:0}.ready-media-stage figcaption{font-size:.76rem;color:#5c7181;margin-bottom:8px}.ready-media-stage #ready-example,.ready-own-media{display:block;width:100%;height:360px;object-fit:contain;background:#17232e;border-radius:14px}.ready-own-media{display:grid;place-items:center;overflow:hidden}.ready-own-media :is(img,video){width:100%;height:100%;max-height:360px;object-fit:contain;background:#17232e}.ready-own-media p{padding:18px;color:#d5e1ea;font-size:.8rem;text-align:center}.ready-composer-controls{min-width:0}.ready-composer-controls button{margin:0 0 12px;min-height:44px}.ready-composer-controls>label{display:block;margin-top:20px}.ready-composer-controls .button{margin-top:12px}.ready-composer-controls .field-help{font-size:.8rem}
@media(max-width:760px),(max-width:1024px) and (max-height:500px){
 body:is([data-studio-view=photo],[data-studio-view=cover])>header,body[data-studio-view=montage]:has(#customer-studio:not([hidden]))>header{display:none}
 body:is([data-studio-view=photo],[data-studio-view=cover]) .studio-dock,body[data-studio-view=montage]:has(#customer-studio:not([hidden])) .studio-dock{display:none}
 body:is([data-studio-view=photo],[data-studio-view=cover],[data-studio-view=montage])>footer{display:none}
 body:is([data-studio-view=photo],[data-studio-view=cover],[data-studio-view=montage]) .studio-welcome{display:none!important}
 body:is([data-studio-view=photo],[data-studio-view=cover],[data-studio-view=montage]) .studio-session:has(#customer-status:not([data-error=true])){display:none}
 body[data-app-design=top-menu]:is([data-studio-view=photo],[data-studio-view=cover],[data-studio-view=montage]) main{padding:0 12px 20px}
 .photo-editor{padding:0;border:0;background:transparent;border-radius:0}.focused-editor>.editor-heading{position:sticky;top:0;z-index:15;min-height:66px;background:#fafcffff;padding:8px 0;margin-bottom:8px;border-bottom:1px solid #e2e8ef;gap:10px}.editor-heading h1{font-size:1.02rem}.editor-heading>button{font-size:.76rem;padding:9px 12px;max-width:45%;white-space:normal}.editor-heading>.editor-back{flex-basis:38px;width:38px;max-width:38px}
 .photo-workbench,.montage-layout{grid-template-columns:minmax(0,1fr);gap:8px}.photo-preview{min-height:240px;height:36dvh;padding:8px;border-radius:12px}.photo-preview canvas{max-height:calc(36dvh - 16px);max-width:100%}.photo-stage-actions{margin:9px 0 0}.photo-stage #photo-hint{font-size:.7rem;line-height:1.45;margin:8px 0}.photo-controls{display:block;background:transparent}.editor-toolstrip{margin:0 0 12px;padding:8px 0 12px;gap:4px}.editor-toolstrip>button{font-size:.69rem;min-height:64px;padding:7px 4px;min-width:65px}.editor-toolstrip svg{width:23px;height:23px}.photo-tool-panel{min-height:110px;padding:0 4px}.photo-tool-panel label{font-size:.82rem;margin-bottom:14px}.photo-presets{margin-bottom:14px}.photo-presets .preset-swatch{height:40px;aspect-ratio:auto}.photo-presets button{font-size:.67rem}.photo-tool-panel input[type=range]{min-height:36px}.photo-controls .photo-row{margin-bottom:10px}.photo-controls select{font-size:.85rem}.photo-export button{flex:none;width:100%;font-size:.9rem}
 #studio-montage{scroll-margin-top:0}.montage-preview{position:static;padding:8px;border-radius:12px}.montage-preview :is(video,img){height:31dvh;max-height:340px;min-height:190px}.montage-preview #montage-empty{min-height:190px}.montage-preview .field-help{font-size:.65rem;line-height:1.5;margin:7px 4px 2px}.montage-editor .editor-project-settings{margin:0 0 9px}.montage-editor .editor-project-settings>summary{font-size:.75rem;padding:5px 0}.montage-sequence{border-radius:12px;padding:8px}.montage-timeline .montage-clip{min-height:0;flex-basis:102px;padding:4px}.montage-clip .montage-clip-visual{height:50px}.montage-clip strong{max-width:92px}.montage-workarea>.editor-help{margin:3px 0}.montage-workarea>.editor-help>summary{font-size:.72rem;padding:4px 0}.montage-clip-tabs{margin-bottom:12px}.montage-clip-tabs button{font-size:.74rem;min-height:40px;padding:8px 11px}.montage-fields input,.montage-fields select{font-size:.85rem}.montage-fields label{font-size:.76rem}.montage-export-bar{margin:12px 0 4px;padding:10px 12px}.montage-export-bar p{font-size:.8rem}.montage-export-bar .field-help{font-size:.7rem}.montage-item{margin:10px 0;padding:12px}.montage-item .montage-fields{margin-top:12px}.montage-item>summary{font-size:.8rem}.montage-renders{margin-top:16px}
 .hub-tools-panel .editor-heading,.hub-utility .editor-heading{margin-bottom:18px}.hub-tool-category{margin-top:20px;padding-top:16px}.hub-tool-category h2{font-size:1rem}.hub-tool-category .hub-tool-grid{gap:14px}.hub-tool-category .hub-tool>span{min-height:76px}.hub-tool-category strong{font-size:.76rem}.auto-selection{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.auto-selection>p{padding:24px 14px;font-size:.9rem}.auto-media-card :is(img,video){height:110px}.auto-item-actions button{min-height:44px;flex:1;font-size:.7rem}#hub-auto-options{display:block}#hub-auto-options select{width:100%}#hub-auto-options button{width:100%;margin:12px 0 0}.caption-entry{padding:24px 14px}.caption-entry p{font-size:.9rem}
 .ready-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ready-card img{aspect-ratio:3/4}.ready-compose{padding:12px;border-radius:16px}.ready-composer-layout{grid-template-columns:minmax(0,1fr);gap:16px}.ready-compose .editor-heading{gap:8px}.ready-compose .editor-heading h3{font-size:.88rem}.ready-compose .editor-heading>button:not(.editor-back){max-width:36%;font-size:.72rem;padding:9px 10px}.ready-media-stage #ready-example,.ready-own-media{height:240px}.ready-own-media :is(img,video){max-height:240px}.ready-composer-controls>label{margin-top:10px}.ready-composer-controls>button{width:100%}.ready-filters button{font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){.focused-editor *{scroll-behavior:auto!important}}
