/* Phone layout: one page scroll, compact navigation, comfortable touch controls. */
.mobile-studio-menu{display:none}
@media(max-width:600px){
:root body.studio-refresh{overflow-x:hidden;overflow-y:auto;height:auto;min-height:100dvh}:root body.studio-refresh .shell{height:auto;min-height:100dvh}:root body.studio-refresh .main{height:auto;overflow:visible;padding:10px 12px 24px}
:root body.studio-refresh .topbar{position:relative;display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:8px!important;padding:0 0 10px;background:var(--studio-canvas);border-bottom:1px solid var(--studio-line);margin:0}
.mobile-studio-menu{display:block;grid-column:1;grid-row:1}.mobile-studio-menu>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 10px;list-style:none;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-surface);color:var(--studio-text);font-size:12px;cursor:pointer}.mobile-studio-menu>summary::-webkit-details-marker{display:none}
:root body.studio-refresh .workspace-title{grid-column:2;grid-row:1;min-width:0;text-align:right}:root body.studio-refresh .workspace-title strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
:root body.studio-refresh .top-actions{grid-column:1/-1;display:flex!important;flex-wrap:nowrap!important;gap:7px!important;justify-content:space-between!important;width:100%;min-width:0;padding:0!important;background:transparent!important;border:0!important}
:root body.studio-refresh .top-actions #new-project{display:none!important}:root body.studio-refresh .studio-language{margin:0;min-width:0;padding:3px 6px}:root body.studio-refresh .studio-language select{width:100%;max-width:110px;font-size:12px!important}:root body.studio-refresh .studio-language label{font-size:0}:root body.studio-refresh .dashboard-theme{padding:3px 6px;min-width:0}:root body.studio-refresh .dashboard-theme select{font-size:12px!important;max-width:80px}:root body.studio-refresh #toggle-results{min-height:44px;border-radius:12px;font-size:12px;padding:8px 12px}
:root body.studio-refresh .mobile-studio-menu .mobile-nav{position:absolute;top:52px;left:0;z-index:40;display:grid;grid-template-columns:1fr 1fr;gap:6px;max-width:100%;width:100%;padding:10px;margin:0;background:var(--studio-surface);border:1px solid var(--studio-line);border-radius:16px;box-shadow:0 14px 36px #0004;overflow:visible}
.mobile-studio-menu:not([open]) .mobile-nav{display:none!important}:root body.studio-refresh .mobile-nav :is(a,button){min-height:44px;display:flex;align-items:center;justify-content:flex-start;padding:10px 12px;border:0;border-radius:10px;background:var(--studio-raised);color:var(--studio-text);text-decoration:none;font-size:12px}.mobile-nav [hidden]{display:none!important}:root body.studio-refresh .mobile-nav .mobile-new-chat{color:var(--studio-accent);background:var(--studio-tint)}
:root body.studio-refresh .creator-workbench{height:auto!important;min-height:0!important;display:block}:root body.studio-refresh .creator-center{height:auto;overflow:visible!important;padding:0}:root body.studio-refresh .chat-studio,:root body.studio-refresh .chat-layout{height:auto!important;min-height:0!important}
:root body.studio-refresh .chat-head{padding:20px 2px 12px!important}:root body.studio-refresh .chat-head h2{font-size:25px;line-height:1.2}:root body.studio-refresh .chat-head p{font-size:12px;margin-top:6px}:root body.studio-refresh .chat-save-status{font-size:10px;margin-left:10px}:root body.studio-refresh .chat-main{padding:0 0 12px!important}
:root body.studio-refresh .creative-business-context{margin-bottom:12px}:root body.studio-refresh .creative-business-context summary{min-height:44px;padding:12px 0;font-size:11px}:root body.studio-refresh :is(input,textarea,select){font-size:16px!important}:root body.studio-refresh #chat-marketing-task{font-size:14px!important;min-height:50px!important}
:root body.studio-refresh .chat-form{padding:10px!important}:root body.studio-refresh .chat-form textarea{min-height:100px;font-size:16px!important;line-height:1.5}:root body.studio-refresh .chat-thread{padding:12px 10px!important}:root body.studio-refresh .chat-message{max-width:96%;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
:root body.studio-refresh .composer-toolbar{gap:8px;margin-top:4px}:root body.studio-refresh .composer-tools{gap:6px}:root body.studio-refresh .composer-toolbar :is(#chat-add-reference,#chat-voice){width:44px!important;height:44px;min-height:44px;flex:0 0 44px!important;border-radius:12px}
:root body.studio-refresh .composer-type-tabs{flex:1;min-width:0;display:flex}:root body.studio-refresh .composer-type-tab{flex:1;min-width:0;min-height:38px;font-size:12px;padding:6px}
:root body.studio-refresh .composer-choices{gap:7px;align-items:center}:root body.studio-refresh .composer-model{flex:1;min-width:140px;min-height:44px}:root body.studio-refresh .composer-model select{width:100%;max-width:none;font-size:12px!important;min-height:40px}:root body.studio-refresh .composer-duration{min-height:44px}:root body.studio-refresh .composer-duration select{font-size:12px!important;min-height:40px}
:root body.studio-refresh .composer-more>summary{min-height:44px}:root body.studio-refresh .main #chat-send{min-height:44px!important;border-radius:12px!important;padding:9px 14px!important;font-size:12px!important}
:root body.studio-refresh .composer-more-content{width:min(280px,calc(100vw - 48px));max-height:65dvh;overflow:auto}:root body.studio-refresh .composer-attachment-menu{width:min(300px,calc(100vw - 48px))}:root body.studio-refresh .composer-attachment-menu button{min-height:48px}
:root body.studio-refresh #chat-ready-action{width:100%;min-height:46px;margin-top:10px}:root body.studio-refresh .chat-generate-settings{text-align:center;margin-top:6px;font-size:11px}:root body.studio-refresh .studio-inspiration{margin-top:20px}:root body.studio-refresh .task-shortcuts button img{height:108px}:root body.studio-refresh .task-shortcuts strong{font-size:12px}
:root body.studio-refresh .creator-results{width:100vw!important;max-width:100vw;height:100dvh!important;z-index:60;padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}:root body.studio-refresh #close-results{width:44px;min-height:44px;border-radius:12px}:root body.studio-refresh .studio-result-tabs button{min-height:44px}
}

/* Short language labels stay compact on every workspace surface. */
:root body .studio-language select{width:62px!important;max-width:62px!important;min-width:0}:root body .studio-language{gap:5px}

:root body.studio-refresh button.dashboard-theme{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-height:38px;flex:0 0 38px;padding:0!important;border-radius:12px!important;background:var(--studio-surface);color:var(--studio-text);border:1px solid var(--studio-line);cursor:pointer}
:root body.studio-refresh button.dashboard-theme:hover{background:var(--studio-raised)}:root body.studio-refresh button.dashboard-theme:focus-visible{outline:2px solid var(--studio-accent);outline-offset:3px}
@media(max-width:600px){:root body.studio-refresh button.dashboard-theme{width:44px;height:44px;min-height:44px;flex-basis:44px}}

.mobile-studio-brand{display:none}
@media(max-width:600px){
:root body.studio-refresh .topbar{grid-template-columns:minmax(0,1fr) auto}
.mobile-studio-brand{display:flex;align-items:center;gap:9px;grid-column:1;grid-row:1;min-height:44px;min-width:0;color:var(--studio-text);font:750 15px 'Manrope',sans-serif;letter-spacing:-.025em}
.mobile-studio-brand img{width:34px;height:34px;object-fit:contain;flex-shrink:0}.mobile-studio-brand span{white-space:nowrap}
:root body.studio-refresh .workspace-title{display:none}.mobile-studio-menu{grid-column:2;grid-row:1}.mobile-studio-menu>summary{width:44px;padding:0}.mobile-studio-menu>summary span{display:none}
}

/* Creation-focused phone workspace, with secondary tools behind the menu. */
.mobile-studio-tabs,.mobile-menu-preferences{display:none}
@media(max-width:600px){
:root body.studio-refresh .main{padding:8px 12px calc(92px + env(safe-area-inset-bottom))}
:root body.studio-refresh .topbar{position:sticky;top:0;z-index:35;grid-template-columns:minmax(0,1fr) auto;padding:0 0 8px;gap:0!important;min-height:56px}
:root body.studio-refresh .top-actions{display:none!important}
.mobile-menu-preferences{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-top:1px solid var(--studio-line);background:var(--studio-surface);border-radius:0 0 16px 16px}
.mobile-studio-menu[open]{position:static}.mobile-studio-menu[open] .mobile-menu-preferences{position:absolute;left:0;top:calc(52px + 6 * 50px + 20px);width:100%;z-index:41;border:1px solid var(--studio-line)}
:root body.studio-refresh .mobile-studio-menu .mobile-nav{border-radius:16px 16px 0 0;box-shadow:0 14px 36px #0003}
:root body.studio-refresh .chat-head{padding:22px 2px 18px!important}:root body.studio-refresh .chat-head h2{font-size:24px;letter-spacing:-.035em}:root body.studio-refresh .chat-head p,:root body.studio-refresh .chat-head .chat-mode,:root body.studio-refresh .chat-head .chat-save-status{display:none}
:root body.studio-refresh .creative-business-context{display:none!important}:root body.studio-refresh .creative-business-context.is-mobile-open{display:block!important}
:root body.studio-refresh .marketing-task-bar{padding:10px 10px 8px!important;border-radius:20px 20px 0 0;border-bottom:0!important;gap:0;background:var(--studio-surface)!important}
:root body.studio-refresh .task-picker-heading,:root body.studio-refresh #marketing-task-hint{display:none!important}:root body.studio-refresh #chat-marketing-task{min-height:44px!important;padding-top:10px!important;padding-bottom:10px!important;font-size:13px!important;background:var(--studio-raised)!important;border:0!important;border-radius:12px!important}
:root body.studio-refresh .chat-form{border-radius:0 0 20px 20px!important;padding:8px 10px 12px!important;box-shadow:0 6px 24px #00000008}:root body.studio-refresh .chat-form textarea{min-height:128px;padding:8px 2px 14px;font-size:16px!important}
:root body.studio-refresh .composer-toolbar{border-top:0;gap:8px}:root body.studio-refresh .composer-toolbar :is(#chat-add-reference,#chat-voice){background:transparent!important;border:0!important;color:var(--studio-muted)!important}
:root body.studio-refresh .composer-type-tabs{border:0!important;background:var(--studio-raised)!important;border-radius:12px}:root body.studio-refresh .composer-type-tab[aria-selected=true]{background:var(--studio-surface)!important;color:var(--studio-text)!important;border-radius:9px}
:root body.studio-refresh .composer-model{background:transparent!important;border:0!important;padding-left:2px;gap:5px}:root body.studio-refresh .composer-duration{background:transparent!important;border:0!important;padding-left:3px}:root body.studio-refresh .composer-more>summary{border:0!important;background:var(--studio-raised)!important;border-radius:12px!important}
:root body.studio-refresh .studio-composer-note{font-size:10px;line-height:1.5;margin:12px 10px}:root body.studio-refresh .studio-inspiration{margin-top:24px}:root body.studio-refresh .studio-inspiration-heading{font-size:12px;margin:0 2px 12px}
:root body.studio-refresh .task-shortcuts{gap:10px}:root body.studio-refresh .task-shortcuts button{border:0;border-radius:16px}:root body.studio-refresh .task-shortcuts button img{height:120px}:root body.studio-refresh .task-shortcuts button>span{padding:10px}
:root body.studio-refresh :is(.studio-get-started,#video-analysis-panel){display:none!important}:root body.studio-refresh #video-analysis-panel.is-mobile-open{display:block!important}
.mobile-studio-tabs{position:fixed;bottom:0;left:0;right:0;z-index:45;display:flex;align-items:center;justify-content:space-around;gap:4px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--studio-surface);border-top:1px solid var(--studio-line);box-shadow:0 -6px 24px #00000008}
.mobile-studio-tabs button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:46px;border:0;background:transparent;border-radius:12px;color:var(--studio-muted);font:600 10px 'DM Sans',sans-serif;cursor:pointer}.mobile-studio-tabs svg{width:21px;height:21px}.mobile-studio-tabs button[aria-current]{color:var(--studio-accent);background:var(--studio-tint)}.mobile-studio-tabs button:focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px}
:root body.studio-refresh .creator-results{z-index:60}
}

@media(max-width:600px){
.mobile-studio-menu .mobile-menu-sheet{position:absolute;left:0;top:52px;width:100%;max-height:calc(100dvh - 140px);overflow:auto;z-index:41;background:var(--studio-surface);border:1px solid var(--studio-line);border-radius:16px;box-shadow:0 14px 36px #0003}
.mobile-studio-menu:not([open]) .mobile-menu-sheet{display:none}
:root body.studio-refresh .mobile-studio-menu .mobile-nav{position:static;width:100%;border:0;box-shadow:none;border-radius:0;margin:0}
.mobile-studio-menu[open] .mobile-menu-preferences{position:static;width:100%;border:0;border-top:1px solid var(--studio-line);border-radius:0}
}
