/* VMET mobile redline. Unslop by Damir Sokolovsky, CC BY 4.0.
   Keep film in the content; navigation and controls have their own space. */
.public-menu-toggle{display:none}
.mobile-navigation{width:min(360px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);inset:0 0 0 auto;margin:12px;padding:20px;background:#181818;color:#f5f5f3;border:1px solid #383838;border-radius:16px;overflow-y:auto;overscroll-behavior:contain}
.mobile-navigation::backdrop{background:#000b}
.mobile-navigation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}
.mobile-navigation-heading h2{font-size:20px;margin:0}
.mobile-navigation-close{width:44px;min-width:44px;min-height:44px;padding:0;font-size:26px;border:1px solid #444;background:transparent;color:inherit;border-radius:8px}
.mobile-navigation nav{display:flex!important;flex-direction:column;gap:4px;width:100%;margin:0;padding:0}
.mobile-navigation nav a{display:flex;align-items:center;gap:12px;padding:14px 12px;min-height:48px;font-size:16px;border-radius:8px;line-height:1.4;color:#bdbdbd;text-decoration:none}
.mobile-navigation nav a:is([aria-current=page],.active){color:#fff;background:#292929}
.mobile-navigation nav svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor}
.mobile-navigation-extra{display:grid;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #333}
.mobile-navigation-extra>a{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #444;border-radius:8px;padding:12px;font-size:14px;text-decoration:none;color:inherit}
html.navigation-open{overflow:hidden}
.editor-more-actions{display:grid;gap:12px}.editor-more-actions :is(a,button){display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:48px;padding:12px 16px;font-size:15px;text-decoration:none;border:1px solid #3b3b3b;border-radius:8px;background:#202020;color:#eee}
@media(max-width:1023px){
 :root{--mobile-gutter:24px}
 .container,.wrap{max-width:100%;min-width:0}
 :is(.site-header.container,.site-header.container.nav,body:has(.homepage-film) .site-header.nav){position:relative;inset:auto;display:flex;justify-content:space-between;gap:12px;min-height:72px;height:auto;padding:12px var(--mobile-gutter);background:#111;mix-blend-mode:normal;z-index:25}
 .site-header:has(.public-menu-toggle) .main-nav{display:none}
 .site-header .home-brand{min-width:0;flex:1 1 auto}
 .site-header .header-actions{display:flex;gap:4px;flex-shrink:0}
 .site-header .public-menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:10px;color:#fff;background:transparent;border:0}
 .public-menu-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
 .site-header .account-button,body:has(.homepage-film) .site-header .account-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:12px}
 .site-header .editor-link,body:has(.homepage-film) .site-header .editor-link{width:44px;min-width:44px;min-height:44px;padding:12px;font-size:0!important;justify-content:center}
 .site-header .editor-link svg{display:block;width:20px;height:20px;min-width:20px}
 .homepage-film.ref-hero.taste-intro{height:auto;aspect-ratio:16/9;min-height:0;margin:0!important}
 .ws-shell{display:block!important;min-height:100dvh}
 .ws-sidebar,.ws-sidebar.shown{display:none!important}
 .ws-main{width:100%!important;margin:0!important;min-width:0}
 .ws-main .ws-header{height:auto;min-height:72px;padding:12px var(--mobile-gutter);gap:12px;position:relative;z-index:15}
 .ws-menu{display:inline-flex!important;min-width:44px;width:44px;min-height:44px;padding:10px}
 .ws-header-actions{min-width:0;gap:8px}
 .ws-header .ws-local{display:none}
 .ws-main>main{padding:28px var(--mobile-gutter) 0!important;max-width:100%;min-width:0}
 .ws-heading{margin-bottom:24px}.ws-heading h1{font-size:32px;line-height:1.2}
 .ws-toolbar{flex-wrap:wrap;gap:16px}
 .ws-tabs{max-width:100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:4px}
 .ws-tabs button{flex-shrink:0;min-height:44px}
 .ws-search{min-height:48px}
 .ws-form-row,.ai-settings-grid,.brand-form{min-width:0}
 .app-layout{display:block!important;height:auto!important;min-height:0!important;max-width:100%;padding-bottom:calc(80px + env(safe-area-inset-bottom))}
 body:not(.mobile-media) .app-layout>.media-panel,body:not(.mobile-chat) .app-layout>.chat-panel{display:none!important}
 body.mobile-media .app-layout>.media-panel{display:block!important}
 body.mobile-chat .app-layout>.chat-panel{display:flex!important}
 body:is(.mobile-media,.mobile-chat) .app-layout>.edit-panel{display:none!important}
 .app-layout>.edit-panel{height:auto!important;min-height:0;overflow:visible;padding:0 0 16px}
 .app-layout>.media-panel{height:auto!important;min-height:calc(100dvh - 190px);padding:24px var(--mobile-gutter);border:0}
 .app-layout .chat-panel{position:relative!important;inset:auto!important;height:calc(100dvh - 196px)!important;min-height:420px!important;max-height:none;overflow:hidden!important;border:0;padding:16px var(--mobile-gutter)!important}
 body .app-layout .chat-panel .chat-messages{min-height:100px!important;flex:1 1 auto!important}
 body .app-layout .chat-composer textarea{font-size:16px!important;min-height:80px!important;max-height:140px!important;height:auto!important}
 body .app-layout .chat-panel :is(.ai-picker select,.prompt-ideas button,.voice-editor-action button){min-height:44px!important;height:auto!important;font-size:13px!important}
 .mobile-panels{position:fixed!important;inset:auto 0 0!important;z-index:40;display:flex!important;gap:8px;padding:8px 16px calc(8px + env(safe-area-inset-bottom))!important;background:#181818;border:0;border-top:1px solid #333}
 .mobile-panels button{flex:1;min-width:0;min-height:48px!important;font-size:13px!important;border:0;padding:10px 6px!important;border-radius:8px}
 .mobile-panels button[aria-pressed=true]{background:#333;color:#fff}
 .topbar{height:auto!important;min-height:112px;display:grid!important;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:8px 12px!important;padding:12px var(--mobile-gutter)!important}
 .topbar .brand{grid-column:1;grid-row:1;margin:0}.topbar .brand img{width:28px;height:28px}.topbar .brand span{display:none}
 .topbar .project-heading{grid-column:2;grid-row:1;min-width:0;max-width:none!important;border:0;padding:0}
 .topbar .project-heading input{width:100%;max-width:none;font-size:16px!important;min-height:32px;padding:0!important}
 .topbar #save-status{font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .topbar .top-actions{grid-row:2;grid-column:1/-1;display:flex;align-items:center;gap:8px;margin:0;max-width:100%;overflow-x:auto;padding-bottom:2px}
 .topbar .top-actions button,.topbar .top-actions a{display:inline-flex!important;flex-shrink:0;min-height:44px!important;min-width:44px;font-size:12px!important;padding:10px 12px!important;align-items:center;justify-content:center;border-radius:8px;white-space:nowrap}
 .topbar .top-actions #undo,.topbar .top-actions #redo{font-size:20px!important;width:44px;padding:8px!important}
 .topbar .top-actions #export-open{position:sticky;right:0;margin-left:auto;background:#f5f5f3;color:#111;border:1px solid #f5f5f3}
 .viewer-toolbar{height:auto!important;padding:16px var(--mobile-gutter) 12px!important;gap:12px;align-items:flex-start}
 .viewer-toolbar>div:first-child{flex-basis:100%;justify-content:space-between}
 .viewer-toolbar>div:last-child{flex:1 1 100%;display:flex;gap:8px!important;justify-content:flex-start}
 .viewer-toolbar .local-badge{display:none}
 .viewer-toolbar #check-project{min-height:40px!important;font-size:12px;padding:8px 12px;width:auto}
 .viewer{height:clamp(220px,34dvh,400px)!important;margin:0 var(--mobile-gutter)!important;background:#080808}
 .viewer-empty h1{font:500 28px/1.2 'Golos Text',sans-serif}
 .playback{height:auto;min-height:68px;padding:12px var(--mobile-gutter);gap:8px;flex-wrap:wrap}
 .playback>button{width:44px;height:44px;min-height:44px}
 .playback .timecode{font-size:12px;min-width:84px}
 .playback>input[type=range]{height:32px;flex:1 1 100%;order:3}
 #render-size{font-size:11px;margin-left:auto}
 .timeline-panel,.inspector{margin:0!important;padding:20px var(--mobile-gutter)!important;min-width:0}
 .timeline-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}
 .timeline-heading>div{max-width:100%;gap:8px}
 .timeline-heading button{min-height:44px;font-size:12px;padding:8px 12px}
 .timeline-clips{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%}
 .inspector-tabs{flex-wrap:nowrap!important;overflow-x:auto;gap:4px;padding-bottom:8px;max-width:100%}
 .inspector-tabs button{flex-shrink:0;min-height:44px;font-size:13px;padding:10px 12px}
 .inspector-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .visual-grid{gap:20px 16px}
 .resizer,.panel-resize,.panel-resizer{display:none!important}
}
@media(max-width:639px){
 :root{--mobile-gutter:20px}
 body{font-size:15px;line-height:1.6}
 input:not([type=range]):not([type=checkbox]):not([type=color]):not([type=file]),select,textarea{font-size:16px!important}
 :is(.site-header .brand-lockup,body:has(.homepage-film) .site-header .brand-lockup){gap:8px}
 :is(.site-header .brand-lockup>span,body:has(.homepage-film) .site-header .brand-lockup>span){font-size:14px}
 .site-header .brand-lockup small{font-size:10px}
 .site-header .brand-lockup img,body:has(.homepage-film) .site-header .brand-lockup img{width:24px;height:28px}
 .container,.wrap{padding-inline:var(--mobile-gutter)!important}
 .ref-section{padding-block:40px!important}
 .ref-section h2,.page-intro h1{font-size:30px!important;line-height:1.2;letter-spacing:-.025em}
 .page-intro{padding-top:28px;padding-bottom:28px}
 .page-intro>p,.taste-section-copy p{font-size:15px;line-height:1.7}
 .taste-workflow>.wrap,.taste-faq>.wrap{grid-template-columns:minmax(0,1fr);gap:24px}
 .taste-price-grid,.examples-grid,.project-grid,.template-grid,.quick-actions,.pricing-grid,.profile-grid,.account-grid,.ws-form-row,.ai-settings-grid,.brand-form{grid-template-columns:minmax(0,1fr)!important}
 .ws-form-row{display:grid;gap:16px}
 .brand-form .ws-form-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .taste-price-grid>article,.ws-card.pricing-card{padding:24px}
 .site-footer.closing .footer-mast{font-size:clamp(44px,12vw,72px);line-height:1.05}
 .taste-legal,.ws-footer{flex-wrap:wrap;gap:16px}
 .taste-legal nav{flex-wrap:wrap;gap:12px 20px}
 .site-footer.closing{padding-block:40px 24px}
 .filter-bar{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}
 .filter-bar button{flex-shrink:0;min-height:44px}
 .ws-header .ws-crumb>span,.ws-header .header-account{display:none}
 .ws-header .ws-primary{min-height:44px;font-size:13px;padding:10px 14px}
 .ws-main .ws-header{min-height:68px}
 .ws-heading h1,.workspace-hero h1{font-size:30px!important;line-height:1.18!important;letter-spacing:-.025em}
 .workspace-hero{text-align:left!important;padding:0!important}
 .workspace-hero>p{font-size:14px;line-height:1.65;margin-top:12px}
 .start-composer{padding:16px!important;margin-top:24px!important;gap:12px}
 .start-composer textarea{padding:0!important;min-height:132px!important}
 .start-composer .workspace-model{width:100%;max-width:none}
 .start-composer-bottom{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:8px}
 .start-composer-bottom>.ws-primary{width:100%;min-height:48px}
 .start-composer-bottom span{font-size:12px}
 .idea-chips{justify-content:flex-start;gap:8px}
 .idea-chips button{min-height:44px!important;font-size:12px;padding:10px 12px!important}
 .quick-actions{gap:12px;margin-block:24px}
 .quick-card{padding:16px;gap:4px 12px;min-height:80px}
 .quick-card strong{font-size:14px}.quick-card small{font-size:12px;line-height:1.5}
 .section-title{gap:12px;align-items:flex-start}.section-title h2{font-size:20px;line-height:1.3}.section-title a{font-size:12px;min-height:44px;display:flex;align-items:center;white-space:nowrap}
 .ws-toolbar{display:flex;flex-direction:column;align-items:stretch;margin-block:24px}
 .ws-search{width:100%;max-width:none;padding:12px}
 .template-preview-button{right:12px;bottom:12px;min-height:44px;padding:10px 14px}
 .template-body{padding:20px}.template-body h3{font-size:18px}.template-body p,.template-tag{font-size:12px}.template-body button{min-height:48px;font-size:14px}
 .brand-form .ws-card,.brand-form .brand-preview{padding:20px!important}
 .brand-preview{min-height:240px!important}.brand-kit-actions{display:grid;grid-template-columns:1fr;gap:12px}.brand-kit-actions>*{width:100%;min-height:48px}
 .brand-kit-list{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}.brand-kit-list button{flex-shrink:0;min-height:44px}
 :is(.ws-dialog,.template-preview-dialog,.editor-control-dialog,dialog:not(.mobile-navigation)){width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;height:auto!important;margin:auto!important;padding:20px!important;border-radius:14px;overscroll-behavior:contain;overflow-y:auto}
 .ws-dialog-head,.dialog-heading,.control-heading{gap:12px;margin-bottom:20px;align-items:center}
 :is(.ws-dialog-head,.dialog-heading,.control-heading) h2{font-size:22px;line-height:1.25}
 :is(.dialog-close,.control-close,.ws-dialog-head>button){width:44px;min-width:44px;min-height:44px;padding:0!important}
 .export-grid,.cover-editor,.enhance-comparison{grid-template-columns:minmax(0,1fr)!important;gap:20px}
 .cover-preview{position:static;grid-row:1;max-height:32dvh}
 .control-footer,.ws-dialog-actions{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px}
 .control-footer button,.ws-dialog-actions button{width:100%;min-height:48px}
 .caption-row{grid-template-columns:20px minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px}
 .caption-row>.control-field:has(textarea){grid-column:1/-1}.caption-index{padding-top:34px}
 .caption-row-actions{grid-column:1/-1;gap:8px}.caption-row-actions button{flex:1;min-height:44px;font-size:12px}
 .caption-style-grid{gap:16px}.control-field{font-size:13px}
 .voice-card,.voice-options{min-width:0}.voice-card audio,audio{max-width:100%}
 .ws-toast,.toast{bottom:calc(84px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:calc(100vw - 32px);width:auto;font-size:13px}
 .mobile-navigation{padding:20px;padding-top:calc(20px + env(safe-area-inset-top));padding-bottom:calc(20px + env(safe-area-inset-bottom))}
 .mobile-navigation nav{padding:0!important}
}
@media(max-width:359px){:root{--mobile-gutter:16px}.site-header .brand-lockup>span,body:has(.homepage-film) .site-header .brand-lockup>span{font-size:12px}.site-header .header-actions{gap:0}.ws-heading h1,.workspace-hero h1{font-size:28px!important}.viewer-toolbar>div:last-child{gap:6px!important;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.mobile-navigation{scroll-behavior:auto}}
/* Measured header height also covers a subscription notice and large text settings. */
@media(max-width:1023px){
 .topbar .top-actions{flex-wrap:nowrap!important;scrollbar-width:none;overflow:visible}
 .topbar .top-actions::-webkit-scrollbar{display:none}
 .topbar .top-actions .editor-more-toggle{flex:1;min-width:56px}
 .topbar .top-actions #export-open{position:static;margin-left:0;flex:1}
 .app-layout .chat-panel{height:calc(var(--editor-viewport-height,100dvh) - var(--editor-header-height,140px) - 80px - env(safe-area-inset-bottom))!important;min-height:400px!important}
 body .viewer-toolbar>div:last-child{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) 76px 44px;gap:6px!important;align-items:stretch}
 body .viewer-toolbar>div:last-child button:not(#fullscreen){width:100%!important;min-width:0!important;min-height:44px;padding:6px!important;white-space:normal;font-size:11px!important;overflow-wrap:normal}
 body .viewer-toolbar>div:last-child #fullscreen{width:44px;min-width:44px;min-height:44px;padding:8px}
 body .viewer-toolbar>div:last-child select{min-width:0;width:76px;min-height:44px;font-size:13px!important;padding:8px}
 .playback #scrubber{width:100%;flex-basis:100%;min-height:32px;order:3}
 .container .wrap{padding-inline:0!important}
 .editor-keyboard-open .mobile-panels{display:none!important}
 body.editor-keyboard-open .chat-panel{min-height:260px!important}
 body.editor-keyboard-open .chat-panel .ai-picker,body.editor-keyboard-open .chat-panel .voice-editor-action,body.editor-keyboard-open .chat-panel .prompt-ideas{display:none!important}
}
