/* Studio home: a compact, touch-first launchpad. Editor state remains in its own panels. */
.studio-panel{display:none;min-width:0}
.studio-panel{scroll-margin-top:20px}
.hub-photo-library{grid-column:1/-1;border-top:1px solid #e1e9ef;padding-top:18px;margin-top:20px}.hub-photo-library>summary{font-weight:650;padding:10px 0}.hub-photo-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.hub-photo-list button{margin:0;font-size:.82rem}.photo-controls>p{grid-column:1/-1}.photo-controls button[aria-pressed=true]{background:#d4eafb;color:#183e54;border-color:#88b8d2}
body[data-studio-view='home'] #studio-home,body[data-studio-view='tools'] #studio-tools,body[data-studio-view='auto'] #studio-auto,body[data-studio-view='photo'] #studio-photo,body[data-studio-view='cover'] #studio-photo,body[data-studio-view='templates'] #studio-templates,body[data-studio-view='my-templates'] #studio-my-templates,body[data-studio-view='captions'] #studio-captions{display:block}
body:is([data-studio-view='home'],[data-studio-view='tools'],[data-studio-view='auto'],[data-studio-view='photo'],[data-studio-view='cover'],[data-studio-view='templates'],[data-studio-view='my-templates'],[data-studio-view='captions']) :is(.studio-welcome,.studio-workbench,#studio-history-panel,#studio-characters,#studio-advanced){display:none!important}
body[data-studio-view='home'] .studio-session:has(#customer-status:not([data-error='true'])){display:none}
.studio-hub{max-width:1100px;margin:auto;padding:0 28px 28px;border-radius:28px;background:linear-gradient(180deg,#5c9fcf 0,#b4d9ef 55%,#ecf8fc 82%,#fff 100%);color:#152c36;overflow:hidden}
.hub-hero{position:relative;min-height:345px;margin:0 -28px;padding:25px 28px 70px;isolation:isolate}
.hub-hero>img{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 44%;border:0;border-radius:0}
.hub-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#163f5510 35%,#458cbea6 67%,#77b4df 100%),linear-gradient(90deg,#073049a6,transparent 65%)}
.hub-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.hub-plan{padding:9px 16px;background:#ecfbffed;border:1px solid #d4edf8;border-radius:30px;color:#153947;font-weight:700;font-size:.9rem;text-decoration:none;line-height:1.4;box-shadow:0 4px 20px #06476614}.hub-search{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:50%;background:#e9f8fbe8;color:#173b4b}.hub-search svg{width:23px;height:23px}
.hub-hero-copy{max-width:55%;margin-top:58px;color:white;text-shadow:0 1px 8px #173b4b55}.hub-hero-copy p{margin:0 0 7px;font-size:.88rem;font-weight:600}.hub-hero-copy h1{font-size:clamp(1.6rem,3.4vw,2.5rem);line-height:1.18;color:#fff;margin:0 0 12px;letter-spacing:-.035em}.hub-hero-copy a{color:white;font-weight:700;text-decoration:none;display:inline-flex;gap:16px;align-items:center;padding:7px 0}.hub-carousel{display:flex;gap:7px;position:absolute;bottom:52px;right:28px}.hub-carousel button{margin:0;padding:0;width:30px;min-height:32px;border:0;border-radius:0;background:transparent;position:relative}.hub-carousel button::before{content:'';position:absolute;inset:14px 0;border-radius:5px;background:#ffffff6b}.hub-carousel button[aria-pressed=true]::before{background:white}
.hub-actions{position:relative;display:grid;grid-template-columns:1.35fr 1fr;gap:14px;margin-top:-34px;margin-bottom:24px}.hub-actions>a{min-height:166px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:linear-gradient(145deg,#e7f6ffeb,#ffffffef);border:1px solid #ffffff8c;border-radius:24px;text-decoration:none;color:#152833;padding:22px;text-align:center;box-shadow:0 8px 22px #1e73a10b}.hub-actions>a:first-child{background:linear-gradient(150deg,#bbdef7,#f6fcff)}.hub-actions svg{width:35px;height:35px}.hub-actions strong{font-size:1.25rem;line-height:1.3;font-weight:750}
.hub-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 18px}.hub-tool{display:flex;align-items:center;flex-direction:column;text-align:center;gap:9px;text-decoration:none;color:#19323d;min-width:0}.hub-tool>span{display:grid;place-items:center;width:100%;min-height:86px;border:1px solid #ffffff80;background:#f4fbffe6;border-radius:20px;transition:background .15s,transform .15s}.hub-tool svg{width:31px;height:31px}.hub-tool strong{font-size:.92rem;font-weight:650;line-height:1.35;overflow-wrap:anywhere}.hub-tool:hover>span{background:#fff;transform:translateY(-2px)}.hub-tool:focus-visible{outline:3px solid #2e7298;outline-offset:4px;border-radius:14px}
.hub-inspiration{margin-top:30px}.hub-inspiration h2{font-size:1.3rem;color:#172c38;margin:0 0 16px}.hub-inspiration-card{display:flex;gap:18px;align-items:center;background:#f0f5f8;padding:12px;border:1px solid #eaf0f3;border-radius:18px;color:#182f39;text-decoration:none}.hub-inspiration-card img{width:104px;height:92px;object-fit:cover;border-radius:12px}.hub-inspiration-card>span:nth-child(2){flex:1;min-width:0;display:grid;gap:7px}.hub-inspiration-card strong{font-size:1.1rem}.hub-inspiration-card small{color:#526b77;font-size:.86rem}
.hub-tools-panel,.hub-utility{max-width:960px;margin:auto;padding:24px;background:white;border:1px solid #e4edf2;border-radius:24px}.hub-tools-panel .hub-tool-grid{margin-top:24px}.hub-utility h1,.hub-tools-panel h1{font-size:1.8rem;margin-top:0}.hub-utility p{max-width:70ch}.studio-panel:focus{outline:none}.studio-dock{display:none}
#studio-templates{max-width:1100px;margin:auto}#studio-templates .ready-templates{margin-top:0}#studio-templates>h1{font-size:1.8rem}
.photo-editor{max-width:1100px;margin:auto;background:white;border:1px solid #e3eaf1;border-radius:24px;padding:24px}.photo-editor h1{font-size:1.6rem;margin:0}.photo-editor .section-heading{gap:12px}.photo-editor button{margin:0}.photo-workbench{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:24px;margin-top:20px}.photo-preview{border-radius:18px;min-height:300px;display:flex;justify-content:center;align-items:center;overflow:hidden;background:repeating-conic-gradient(#f1f4f8 0% 25%,#fafcff 0% 50%) 50%/24px 24px;border:1px solid #dfe7ee;align-self:start}.photo-preview canvas{display:block;max-width:100%;width:auto;height:auto;max-height:72vh;object-fit:contain}.photo-preview p{padding:28px;text-align:center;color:#647581}.photo-controls{min-width:0}.photo-controls label{display:block;font-size:.9rem;font-weight:600;margin:0 0 14px}.photo-controls label>output{float:right;font-weight:400;color:#6a7680}.photo-controls input[type=range]{padding:0;min-height:32px;margin:2px 0 0;width:100%;accent-color:#4c93bb}.photo-controls select{margin:6px 0 0;width:100%}.photo-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.photo-row>*{flex:1;min-width:0}.photo-row button{padding:9px;font-size:.85rem}.photo-controls .photo-check{display:flex;align-items:center;gap:10px}.photo-check input{width:20px;min-height:20px;margin:0}.photo-export{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.photo-editor [data-error=true],#hub-import-status[data-error=true]{color:#a11e3b}.photo-editor #photo-status:empty{display:none}
@media(min-width:761px){.hub-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-hub{max-width:960px}.hub-hero{min-height:390px}.hub-actions>a{min-height:145px}.hub-tool>span{min-height:92px}}
@media(max-width:760px),(max-width:1024px) and (max-height:500px){
 .studio-panel{scroll-margin-top:80px}
 body[data-app-design='top-menu']{padding-bottom:calc(var(--mobile-navigation-height,76px) + var(--mobile-creator-action-height,0px) + var(--mobile-keyboard-gap,0px) + 20px)}
 body[data-studio-view='home'][data-app-design='top-menu'] main{padding:0}body[data-studio-view='home'] .studio-hub{border-radius:0}
 .studio-hub{padding:0 16px 24px}.hub-hero{margin:0 -16px;padding:18px 16px 62px;min-height:300px}.hub-hero>img{object-position:62% 45%}.hub-hero-copy{margin-top:56px;max-width:62%}.hub-hero-copy h1{font-size:1.55rem}.hub-hero-copy p{font-size:.72rem}.hub-hero-copy a{font-size:.85rem}.hub-hero::after{background:linear-gradient(180deg,#15394b00 28%,#458cbea6 70%,#77b4df),linear-gradient(90deg,#103c5470,transparent 85%)}
 .hub-plan{font-size:.75rem;padding:9px 12px;max-width:calc(100% - 52px)}.hub-carousel{right:16px;bottom:45px}.hub-actions{gap:10px;margin-top:-28px;margin-bottom:22px}.hub-actions>a{padding:18px 10px;min-height:129px;border-radius:19px;gap:13px}.hub-actions strong{font-size:1.05rem}.hub-actions svg{width:29px;height:29px}
 .hub-tool-grid{gap:18px 10px}.hub-tool>span{min-height:66px;border-radius:15px}.hub-tool svg{width:27px;height:27px}.hub-tool strong{font-size:.73rem;line-height:1.3}.hub-inspiration{margin-top:28px}.hub-inspiration h2{font-size:1.15rem}.hub-inspiration-card{gap:11px;padding:9px}.hub-inspiration-card img{width:72px;height:76px}.hub-inspiration-card strong{font-size:.92rem}.hub-inspiration-card small{font-size:.75rem}
 .studio-dock{position:fixed;bottom:0;left:0;right:0;z-index:70;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;background:#fffffff5;border-top:1px solid #e6edf2;padding:6px max(5px,env(safe-area-inset-right,0px)) max(6px,env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));backdrop-filter:blur(18px);box-shadow:0 -3px 15px #1d354508}
 .studio-dock a{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0;min-height:51px;padding:5px 1px 0;text-align:center;text-decoration:none;color:#7b8792;font-size:.63rem;font-weight:600;line-height:1.25}.studio-dock svg{width:23px;height:23px}.studio-dock a[aria-current]{color:#182f3d}.studio-dock a[aria-current] svg{stroke-width:2.3}.studio-dock a:focus-visible{outline:2px solid #458caf;border-radius:8px}
 body[data-keyboard-open='true'] .studio-dock{display:none}body[data-menu-open=true] .studio-dock{visibility:hidden}
 body[data-mobile-section='create'] .creator-action-bar{bottom:calc(var(--mobile-navigation-height,70px) + var(--mobile-keyboard-gap,0px))}
 body[data-mobile-section='create'] .video-edit-actions{bottom:calc(var(--mobile-navigation-height,70px) + var(--mobile-keyboard-gap,0px))}
 body[data-studio-view='montage'] .montage-export-bar{bottom:calc(var(--mobile-navigation-height,70px) + var(--mobile-keyboard-gap,0px))}
 .hub-tools-panel,.hub-utility,.photo-editor{padding:16px;border-radius:20px}.photo-workbench{grid-template-columns:minmax(0,1fr);gap:20px}.photo-preview{min-height:220px}.photo-preview canvas{max-height:55vh}.photo-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.photo-controls>.photo-row,#photo-frame-field,#photo-text-controls{grid-column:1/-1}.photo-export button{flex:1;min-width:130px;font-size:.84rem}.photo-editor h1{font-size:1.3rem}.photo-editor .section-heading button{font-size:.83rem;padding:9px}
}
@media(prefers-reduced-motion:reduce){.hub-tool>span{transition:none}}
