/* Presentation only. Loaded after page styles; no workflow/PWA infrastructure changes. */
:root{--app-purple:#653296;--app-ink:#2c193e;--app-muted:#786984;--app-line:#e8dfef;--app-surface:#fff;--app-bottom:calc(94px + env(safe-area-inset-bottom,0px))}
.studio-updates-backdrop{display:none;position:fixed;inset:0;background:#1d0f38a3;backdrop-filter:blur(4px);z-index:109}
.studio-updates-backdrop[hidden]{display:none}
.studio-recovery-panel:focus{outline:none}
:where(.studio-shell,.studio-auth,.login-page) :where(button,a,input,textarea,select,[tabindex]):focus-visible{outline:3px solid #b78cdb;outline-offset:3px}
.studio-ui-sheet[aria-hidden="true"]{pointer-events:none}
.story-mobile-ai-action{display:none!important}
@media(max-width:767.98px){
 /* Schools uses one vertical content scroller, like the other agency screens.
    Directory and profile must not compete for a fixed-height phone viewport. */
 .studio-page-manage_schools .studio-page{padding:16px;overflow-y:auto;overflow-x:hidden;padding-bottom:var(--app-bottom);scroll-padding-bottom:var(--app-bottom);display:block}
 .studio-page-manage_schools .school-centre{display:block;overflow:visible;min-width:0}
 .studio-page-manage_schools :is(.school-directory-panel,.school-profile-panel){min-height:0;width:100%;border-radius:18px}
 .studio-page-manage_schools .school-directory-head{padding:16px}
 .studio-page-manage_schools .school-directory-panel{margin-bottom:14px}
 .studio-page-manage_schools .school-directory-list{display:flex;flex:none;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity}
 .studio-page-manage_schools .school-directory-item{width:calc(100vw - 76px);min-width:0;flex:0 0 calc(100vw - 76px);scroll-snap-align:start}
 .studio-page-manage_schools .school-directory-copy strong{white-space:normal;overflow-wrap:anywhere}
 .studio-page-manage_schools .school-profile-hero{padding:16px;gap:14px;flex-direction:column;align-items:flex-start}
 .studio-page-manage_schools .school-profile-title{align-items:flex-start;gap:12px;width:100%}
 .studio-page-manage_schools .school-profile-title h3{font-size:18px;line-height:1.4}
 .studio-page-manage_schools .school-profile-title .school-avatar{width:44px;height:44px;font-size:14px}
 .studio-page-manage_schools .school-profile-metrics{margin-left:0;gap:6px;justify-content:flex-start}
 .studio-page-manage_schools .school-profile-metrics span{padding:7px 8px}
 .studio-page-manage_schools .school-drive-link{min-height:36px;padding:8px 10px;font-size:10px}
 .studio-page-manage_schools .school-profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0 6px;overflow:visible}
 .studio-page-manage_schools .school-profile-tabs button{min-width:0;min-height:56px;padding:10px 4px;white-space:normal;font-size:11px;line-height:1.4}
 .studio-page-manage_schools .school-profile-scroll{overflow:visible;flex:none}
 .studio-page-manage_schools .profile-section-head{flex-direction:column;gap:12px}
 .studio-page-manage_schools .profile-section-head>button{width:100%;justify-content:center}
 .studio-page-manage_schools :is(.profile-field,.user-card,.user-card>div){min-width:0}
 .studio-page-manage_schools :is(.profile-grid,.asset-grid,.user-card){grid-template-columns:minmax(0,1fr)}
 .studio-page-manage_schools .profile-field-wide{grid-column:auto}
 .studio-page-manage_schools .user-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .studio-page-manage_schools .user-actions input{grid-column:1/-1;width:100%}
 .studio-page-manage_schools .user-actions button{min-width:0;white-space:normal;padding:10px 6px}
 body.studio-keyboard-open.studio-page-manage_schools .studio-page{padding-bottom:24px}
 .studio-updates-backdrop:not([hidden]){display:block}
 .studio-story-editor>header .studio-eyebrow,.studio-story-editor>header p:not(.studio-eyebrow){display:none}
 .studio-story-editor>footer #storyAskAI{display:none!important}
 .studio-story-editor .story-mobile-ai-action{display:inline-flex!important;width:100%;margin-top:12px}
 .story-word-actions{gap:10px!important;display:flex;flex-wrap:wrap}.story-word-actions button{flex:1;min-width:100px}
 html{height:100%;scroll-padding-top:16px}
 body.studio-shell{width:100%;max-width:100%;height:100dvh!important;min-height:0;overflow:hidden!important;background:#f6f3f9!important;color:var(--app-ink);-webkit-tap-highlight-color:transparent}
 .studio-shell *{box-sizing:border-box}
 .studio-content,.studio-shell>main{min-width:0;max-width:100%;height:100%;padding-bottom:0!important}
 .studio-shell :where(.studio-workspace,.studio-flow-workspace,.studio-brief-workspace){min-width:0;max-width:100%}
 .studio-shell :where(h1,h2,h3,h4,p,small,strong,dd){overflow-wrap:anywhere}
 .studio-shell :where(button,[role="button"],summary){min-height:44px!important;touch-action:manipulation}
 .studio-shell :where(button,[role="button"]){font-size:13px;line-height:1.4;flex-shrink:0}
 .studio-shell :where(button:disabled){cursor:not-allowed}
 .studio-shell :where(input,textarea,select,.studio-select-trigger){font-size:16px!important;line-height:1.5;max-width:100%;min-width:0}
 .studio-shell :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),select,.studio-select-trigger){min-height:48px!important;border-radius:12px}
 .studio-select-menu{max-width:calc(100vw - 24px)!important;border-radius:16px;overscroll-behavior:contain}.studio-select-option{min-height:44px!important;font-size:14px!important;padding:12px!important}
 .studio-shell :where(input[type="checkbox"],input[type="radio"]){width:20px;height:20px;accent-color:var(--app-purple);flex-shrink:0}
 .studio-shell input[type="range"]{min-height:40px;touch-action:pan-x;accent-color:var(--app-purple)}
 .studio-shell textarea{padding:12px!important;scroll-margin:100px 0 24px;resize:vertical}
 .studio-shell label{line-height:1.5}
 .studio-shell :where(.studio-button-primary,.studio-button-secondary,.story-labelled){min-height:46px!important;font-size:13px!important;padding:11px 14px!important;border-radius:12px;white-space:normal;justify-content:center}
 .studio-shell :where(.studio-button-primary,.story-save){box-shadow:0 5px 14px #65329626}
 /* Keep agency mobile chrome in two aligned groups; desktop/client chrome is unchanged. */
 .studio-mobile-header{min-height:64px!important;height:auto;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px!important;background:linear-gradient(115deg,#352049,#653296)!important;gap:8px;display:flex;align-items:center;justify-content:space-between}
 .studio-mobile-header .studio-mobile-wordmark{width:138px!important;height:36px!important;min-width:64px;max-width:138px;flex:0 1 138px;object-fit:contain;object-position:left center}
 .studio-mobile-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0;flex:0 0 auto}
 .studio-mobile-header-actions .studio-user-avatar{width:28px;height:28px;margin:0;border-radius:9px;font-size:11px;flex:0 0 28px}
 .studio-mobile-header .studio-mobile-header-actions button{min-height:44px!important;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
 .studio-mobile-header #mobileLogoutBtn{width:44px;min-width:44px;padding:0;color:#fff!important;border:1px solid #ffffff33;background:#ffffff0a}
 .studio-mobile-header #mobileLogoutBtn svg{width:19px;height:19px}
 .studio-mobile-header .studio-mobile-header-actions .studio-version-pill{font-size:10px;line-height:1.2;padding:5px 8px;min-width:0;max-width:110px;border-radius:999px;white-space:nowrap}
 .studio-mobile-header .studio-mobile-header-actions .studio-mobile-updates{position:relative;width:44px;min-width:44px;padding:0;margin:0;border:1px solid #ffffff33;background:#ffffff0a;color:#fff}
 .studio-mobile-updates>svg{width:20px;height:20px}
 .studio-mobile-header .studio-mobile-updates [data-recovery-count]:not(:empty){position:absolute;right:1px;top:1px;min-width:14px;min-height:14px;padding:0 3px;font-size:9px;line-height:14px;border-radius:99px;background:#f9b313;color:#352049}
 #studioMobileNavigation,.studio-client-nav{height:70px!important;padding:8px!important;left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;background:#fffffff2!important;border:1px solid #e8dfef!important;backdrop-filter:blur(18px);box-shadow:0 8px 32px #25133624;z-index:100;border-radius:24px!important}
 .studio-mobile-nav-row{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:4px;width:100%;height:100%;min-height:0;padding:0!important;margin:0}
 #studioMobileNavigation.studio-team-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px}
 .studio-team-nav .studio-team-nav-entry{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:52px;height:100%;padding:5px 2px;border:0;border-radius:14px;background:transparent;color:#796987;text-decoration:none;font-size:11px;font-weight:700}
 .studio-team-nav .studio-team-nav-entry>svg{width:22px;height:22px;flex:0 0 22px}
 .studio-team-nav .studio-team-nav-entry>span:last-child{font-size:10px;line-height:1}
 .studio-team-nav .studio-team-nav-entry.is-active{background:#eee3f8;color:#653296}
 .studio-team-nav .studio-team-nav-upload-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(120deg,#653296,#8746b3);color:#fff;box-shadow:0 4px 12px #65329626}
 .studio-team-nav .studio-team-nav-upload-icon svg{width:22px;height:22px}
 #studioMobileNavigation .studio-mobile-nav-entry{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-width:0;min-height:0!important;height:100%;margin:0;border:0;border-radius:15px!important;padding:5px 2px!important;color:#796987;background:transparent;box-shadow:none!important;font-size:11px!important;text-decoration:none;transition:none!important;transform:none!important}
 #studioMobileNavigation .studio-mobile-nav-entry svg{display:block;width:22px;height:22px;flex:0 0 22px}
 #studioMobileNavigation .studio-mobile-nav-entry span{font-size:10px;font-weight:700;line-height:1}
 #studioMobileNavigation .studio-mobile-nav-entry:is(.is-active,.is-open){background:#eee3f8!important;color:#653296!important;box-shadow:none!important}
 #studioMobileNavigation .studio-mobile-nav-entry:focus-visible{outline:2px solid #a77ac9;outline-offset:-3px}
 .studio-mobile-more-menu{bottom:calc(var(--app-bottom) + 8px)!important;left:12px!important;right:12px!important;padding:10px 16px 18px;border-radius:24px;max-height:calc(100dvh - var(--app-bottom) - 90px);overflow:auto}
 /* A translated closed sheet can still expose its edge/shadow beneath the bar. */
 #studioMobileMoreMenu:not(.is-open){visibility:hidden;opacity:0;pointer-events:none}
 #studioMobileMoreMenu.is-open{visibility:visible;opacity:1}
 #studioMobileMoreBackdrop:not(.is-open){visibility:hidden;pointer-events:none}
 #studioMobileMoreBackdrop.is-open{visibility:visible}
 .studio-mobile-more-module{min-height:86px!important;font-size:13px!important}
 body.studio-ui-overlay #studioMobileNavigation,body.studio-ui-overlay .studio-client-nav,body.studio-keyboard-open #studioMobileNavigation,body.studio-keyboard-open .studio-client-nav{visibility:hidden;pointer-events:none}
 body.studio-ui-overlay #studioMobileMoreButton.is-open{visibility:visible}
 body.studio-ui-more #studioMobileNavigation{visibility:visible;pointer-events:auto}
 body.studio-keyboard-open .studio-content,body.studio-keyboard-open.studio-client>main{padding-bottom:0!important}
 .studio-workspace{padding:18px 16px 28px!important}
 /* Clearance belongs at the end of the scrollable content, not on the fixed
    shell: content can move behind the floating bar and the last item clears it. */
 .studio-shell #swipeZone,
 .studio-shell>.studio-content>.studio-workspace,
 .studio-shell>.studio-content>.flex-1.overflow-y-auto{min-height:0;padding-bottom:var(--app-bottom)!important;scroll-padding-bottom:var(--app-bottom)}
 /* Pipeline has its own nested scroller, not #swipeZone. Keep its cards at
    natural height and put navigation clearance on that scroll area. */
 .studio-page-production_pipeline #pipelineSwipeZone{min-height:0;padding-inline:12px!important;padding-bottom:var(--app-bottom)!important;scroll-padding-bottom:var(--app-bottom)}
 .studio-page-production_pipeline #pipelineContentWrapper{flex:0 0 auto;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
 .studio-page-production_pipeline .studio-mobile-pipeline-main{grid-template-columns:minmax(0,1fr) 44px}
 .studio-page-production_pipeline .studio-mobile-card-chevron{width:44px;height:44px;padding:0;display:grid;place-items:center;line-height:1}
 .studio-page-production_pipeline .studio-mobile-card-chevron svg{display:block;width:20px;height:20px}
 body.studio-keyboard-open #swipeZone,
 body.studio-keyboard-open>.studio-content>.studio-workspace,
 body.studio-keyboard-open>.studio-content>.flex-1.overflow-y-auto{padding-bottom:24px!important}
 body.studio-keyboard-open.studio-page-production_pipeline #pipelineSwipeZone{padding-bottom:24px!important}
 :is(.studio-page-admin_calendar,.studio-client) .studio-calendar-board{overflow:visible;background:transparent;border:0;box-shadow:none}
 :is(.studio-page-admin_calendar,.studio-client) :is(#calendarGrid,#clientCalendarGrid).studio-week-grid{display:grid;grid-template-columns:minmax(0,1fr);min-width:0!important;height:auto!important;gap:10px}
 :is(.studio-page-admin_calendar,.studio-client) .studio-week-day{min-height:0!important;display:grid;grid-template-columns:60px minmax(0,1fr);border:1px solid #e8dfef!important;border-radius:16px;overflow:hidden}
 :is(.studio-page-admin_calendar,.studio-client) .studio-week-day-head{padding:14px 10px;border:0;text-align:center}:is(.studio-page-admin_calendar,.studio-client) .studio-week-day-head strong{margin:6px auto 0}
 :is(.studio-page-admin_calendar,.studio-client) .studio-week-items{min-width:0;align-items:center;padding:10px}:is(.studio-page-admin_calendar,.studio-client) .studio-week-items .studio-empty{padding:12px!important;font-size:12px!important}
 :is(.studio-page-admin_calendar,.studio-client) .studio-calendar-item{min-height:64px;padding:12px}.studio-calendar-item strong{font-size:13px!important}.studio-calendar-item span,.studio-calendar-item-time{font-size:11px!important}
 :is(.studio-page-admin_calendar,.studio-client) .studio-calendar-board:has(:is(#calendarGrid,#clientCalendarGrid).grid){background:#fff;border:1px solid #e8dfef;overflow:auto}
 :is(.studio-page-admin_calendar,.studio-client) .studio-calendar-nav button{min-width:44px}
 .studio-queue-grid--workflow{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.studio-queue-grid--workflow .studio-kpi-label{font-size:11px!important;line-height:1.5}
 .studio-inbox-card-actions{flex-wrap:wrap;gap:8px!important}.studio-inbox-card-actions :is(button,a){min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:12px!important}
 .studio-workspace :where(.studio-section-heading,.studio-page-heading){gap:12px;flex-wrap:wrap}
 .studio-section-heading h2,.studio-section-heading h3{font-size:18px!important;line-height:1.4}
 .studio-section-heading p:not(.studio-eyebrow){font-size:12px!important;line-height:1.6}
 .studio-hero-panel,.studio-hero,.studio-dashboard-hero{min-width:0;max-width:100%}
 .studio-hero-panel h1,.studio-dashboard-hero h1{font-size:24px!important;letter-spacing:-.5px;line-height:1.3}
 .studio-kpi-grid,.studio-queue-kpis{gap:10px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .studio-kpi{min-width:0!important;padding:16px!important}
 .studio-kpi small{font-size:11px!important}
 .studio-queue-page,.studio-queue-job,.studio-output-card,.studio-school-card{min-width:0;max-width:100%}
 .studio-queue-job{border-radius:20px;padding:16px!important}
 .studio-queue-job :where(.studio-section-heading,.studio-queue-actions){flex-wrap:wrap;gap:10px}
 .studio-queue-job :where(p,small){font-size:12px;line-height:1.6}
 .studio-production-header{flex-wrap:wrap;gap:12px!important}
 .studio-production-progress{overflow-x:auto;scrollbar-width:thin}
 .studio-production-progress ol{min-width:460px}
 .studio-production-workspace,.studio-production-detail-grid,.studio-production-body{min-width:0}
 .studio-production-summary :where(input,select){width:100%}
 .studio-production-actions{flex-wrap:wrap;gap:8px!important}
 .studio-mobile-header~.mobile-sub-nav{overflow-x:auto;flex-shrink:0}
 .studio-modal,.studio-client :where(#uploadModal){padding:0!important;align-items:flex-end!important;background:#21113299;backdrop-filter:blur(5px)}
 .studio-modal>div,.studio-client :where(#uploadModal)>div{width:100%!important;max-width:100%!important;margin:0!important;max-height:calc(var(--studio-visual-height,100dvh) - env(safe-area-inset-top,0px) - 12px)!important;border-radius:24px 24px 0 0!important;display:flex;flex-direction:column;overflow:auto!important;padding-bottom:env(safe-area-inset-bottom,0px)}
 .studio-modal>div>form{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .studio-modal>div>div:first-child,.studio-client :where(#uploadModal)>div>div:first-child{flex-shrink:0}
 .studio-modal :where(h2,h3){font-size:20px!important;line-height:1.35}
 .studio-modal :where(.grid-cols-2,.grid-cols-3),#fileViewerGrid{grid-template-columns:minmax(0,1fr)!important}
 .studio-modal button:has(svg):not(:has(span)){min-width:44px}
 #fileViewerModal>div,#mediaPreviewModal>div,#postModal>div,#assetPreviewModal>div{height:calc(var(--studio-visual-height,100dvh) - env(safe-area-inset-top,0px) - 12px)!important}
 .studio-modal :where(video,img){max-width:100%;object-fit:contain}
 .studio-recovery-panel{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 22px)!important;border:0;border-radius:26px 26px 0 0;padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -12px 60px #160c4138;overscroll-behavior:contain}
 .studio-recovery-panel>header{padding:20px 18px 14px;gap:12px;background:#fff}
 .studio-recovery-title strong{font-size:18px;line-height:1.4}
 .studio-recovery-title small{font-size:12px;line-height:1.6}
 .studio-recovery-panel [data-recovery-close]{width:44px;height:44px;font-size:26px;border-radius:14px;flex-shrink:0;background:#f5eefb}
 .studio-recovery-guide{margin:0 16px 12px;padding:12px;grid-template-columns:1fr;gap:12px;border-radius:16px;background:#f7f2fb}
 .studio-recovery-guide strong{font-size:12px}.studio-recovery-guide small{font-size:11px;line-height:1.6}
 #studioRecoveryList{padding:0 16px 20px}
 .studio-recovery-notice{padding:16px!important;border-radius:16px;margin-top:12px;font-size:13px!important;line-height:1.6}
 .studio-recovery-notice strong{font-size:14px!important}.studio-recovery-notice small{display:block;font-size:11px!important}
 .studio-recovery-notice a{display:inline-flex;align-items:center;min-height:44px;font-size:13px!important;font-weight:700;padding:10px 14px;margin:10px 0;background:#eee3f8;border-radius:12px;color:#653296}
 .studio-recovery-notice button{min-width:74px;font-size:12px!important}
 .studio-page-edit_plan_review .studio-content,.studio-page-prepare_production .studio-content{padding-bottom:0!important}
 .studio-page-edit_plan_review :is(.studio-mobile-header,#studioMobileNavigation,#studioMobileMoreMenu,#studioMobileMoreBackdrop){display:none!important}
 .studio-page-prepare_production #studioMobileNavigation{display:none!important}
 .studio-plan-header{padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px!important;flex-wrap:wrap}
 .studio-plan-title-row h1{font-size:20px!important;max-width:none!important;white-space:normal!important}
 .studio-plan-header-actions{gap:8px!important;flex-wrap:wrap}
 .studio-flow-left{padding:10px 12px!important;background:#fff}
 .studio-flow-left nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px!important;overflow:visible!important}
 .studio-flow-step{min-width:0!important;min-height:72px!important;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;padding:8px 4px!important;text-align:center;border-radius:12px}
 .studio-flow-step i{flex:0 0 24px!important;width:24px;height:24px}.studio-flow-step>span{width:100%;min-width:0}.studio-flow-step strong{font-size:11px!important;line-height:1.35;overflow-wrap:normal}
 .studio-flow-left .studio-flow-support{display:none!important}
 .studio-flow-centre{padding:18px 14px 0!important;overscroll-behavior:contain}
 .studio-flow-card{padding:16px!important;border-radius:18px!important}
 .studio-flow-card :where(p,small){font-size:12px!important;line-height:1.6}
 .studio-caption-row{padding:13px 0!important;font-size:13px!important;align-items:start}
 .studio-flow-footer{bottom:0!important;margin:20px -14px 0!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))!important;gap:10px;z-index:8}
 .studio-flow-centre:has(>.studio-flow-footer){padding:0!important;overflow:hidden}
 .studio-flow-centre:has(>.studio-flow-footer)>.studio-flow-stage{padding:18px 14px;scroll-padding-bottom:18px;overflow-x:hidden}
 .studio-flow-centre:has(>.studio-flow-footer)>.studio-flow-footer{margin:0!important;flex-shrink:0;min-width:0}
 .studio-flow-centre:has(>.studio-flow-footer)>.studio-flow-mobile-progress{display:none}
 .studio-flow-card-actions{gap:8px}.studio-flow-card-actions>button{margin:0!important;flex:1 1 150px;min-width:0;white-space:normal;line-height:1.4}
 .studio-flow-footer>.studio-final-actions{grid-template-columns:minmax(0,1fr)!important}
 .studio-final-actions:empty{display:none!important}
 .studio-flow-reference{width:100vw;max-width:100vw;max-height:90dvh;border-radius:24px;padding-bottom:env(safe-area-inset-bottom,0px)}
 .studio-flow-reference>[data-reference-body]{max-height:calc(90dvh - 90px)}
 .studio-plan-sheet-card{max-height:calc(var(--studio-visual-height,100dvh) - env(safe-area-inset-top,0px) - 12px)!important;border-radius:24px 24px 0 0!important;padding-bottom:env(safe-area-inset-bottom,0px)}
 .studio-caption-editor-card{display:flex;flex-direction:column;overflow:hidden}.studio-caption-editor-rows{min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .studio-brief-main{padding-bottom:112px!important;overscroll-behavior:contain}
 .studio-brief-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important;gap:10px;flex-wrap:wrap}
 .studio-brief-footer button{flex:1;min-width:0}
 .studio-music-search{flex-wrap:wrap}.studio-music-search input{width:100%!important}
 .studio-music-track{grid-template-columns:minmax(0,1fr)!important;min-width:0}
 .studio-music-upload-grid{grid-template-columns:minmax(0,1fr)}
 .studio-story-editor{inset:0;margin:0!important;width:100vw!important;max-width:100vw!important;height:var(--studio-visual-height,100dvh)!important;max-height:100dvh!important;border:0!important;border-radius:0!important}
 .studio-story-editor>header{padding:calc(12px + env(safe-area-inset-top,0px)) 14px 12px!important;gap:12px;background:#fff}
 .studio-story-editor h2{font-size:19px!important}.studio-story-editor>header p:not(.studio-eyebrow){font-size:11px!important}
 .studio-story-editor-grid{display:flex!important;flex-direction:column;min-height:0}
 .studio-story-cut-list{height:170px!important;flex-shrink:0;border-right:0;border-bottom:1px solid #e8dfef;background:#faf7fd}
 .studio-story-pane-heading{padding:8px 12px!important;display:flex;align-items:center;gap:8px}
 .studio-story-pane-heading h3{font-size:13px!important}.studio-story-pane-heading p{display:none}
 .studio-story-pane-heading .story-labelled{min-height:44px!important;margin:0 0 0 auto!important;font-size:11px!important;padding:8px 10px!important}
 #storyCutList{display:flex!important;gap:8px;padding:8px 12px!important;overflow:auto!important;scroll-snap-type:x proximity;scrollbar-width:thin}
 .studio-story-cut{min-width:210px!important;max-width:210px!important;margin:0;flex-shrink:0;scroll-snap-align:center;overflow:visible;display:flex;flex-direction:column;align-items:stretch}
 .studio-story-cut-select{padding:10px!important;min-width:0;flex:1}
 .studio-story-cut-select strong{font-size:12px!important;margin-left:25px;min-height:20px}
 .studio-story-cut-select>span:not(.story-section-badge){display:none}
 .studio-story-cut-select small{font-size:10px!important}
 .story-card-actions{display:flex;flex-direction:row;width:100%;padding:0 8px 4px!important;gap:4px;justify-content:space-between}
 .studio-story-editor .story-card-actions .story-icon{min-height:44px!important;width:44px!important;height:44px!important;min-width:44px!important;border:0;background:transparent}
 .story-card-actions .story-icon svg{width:14px;height:14px}
 .story-transition{padding:0;display:flex;align-items:center;flex-shrink:0}
 .story-transition-trigger{display:grid;place-items:center;flex:0 0 44px;width:44px!important;height:44px!important;min-height:44px!important;font-size:0!important;padding:0!important;border-radius:12px}
 .story-transition-trigger svg{width:20px;height:20px;flex-shrink:0}.story-transition-trigger>span{display:none}
 .story-transition-picker{position:fixed!important;top:auto!important;bottom:calc(100px + env(safe-area-inset-bottom,0px))!important;left:12px!important;right:12px!important;width:auto!important;max-height:60dvh;overflow:auto;z-index:10;padding:14px}
 .story-transition-picker button{min-height:44px!important;font-size:13px!important}
 .studio-story-cut-work{padding:14px!important;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .studio-story-work-heading{gap:10px;margin-bottom:12px}.studio-story-work-heading>div:last-child{gap:6px;display:flex}
 .studio-story-work-heading h3{font-size:15px!important}.studio-story-work-heading .story-next{font-size:11px!important;padding:8px!important}
 .studio-story-media-transcript{grid-template-columns:minmax(0,1fr)!important;gap:14px}
 .studio-story-media video{height:auto!important;max-height:30dvh;min-height:120px;width:100%;aspect-ratio:16/9;background:#181321;border-radius:16px}
 .studio-story-media>p{font-size:10px!important;margin-top:6px}
 .story-timeline-shell{padding:12px!important;border-radius:18px}
 .story-transport{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:8px;align-items:start;min-width:0}
 .story-transport-history{display:grid!important;grid-template-columns:44px;gap:4px!important;justify-self:start}
 .story-transport-playback{grid-template-columns:44px 44px 44px;gap:4px!important;justify-self:center}
 .studio-story-editor .story-timeline-shell #storyTransportButton{width:44px!important;height:44px!important;min-width:44px;border-radius:50%}
 .studio-story-editor .story-context-preview{justify-self:end;max-width:44px;padding:0!important}
 .story-transport>div{gap:4px;flex-wrap:wrap}.story-transport .story-history{flex-direction:column;align-items:flex-start}
 .studio-story-editor .story-icon{width:44px!important;height:44px!important;min-width:44px;min-height:44px!important;border-radius:12px}
 .studio-story-editor .story-icon svg{width:19px;height:19px}
 .story-transport .story-context{justify-content:flex-end}.story-transport .story-transport-main{gap:4px}
 .story-transport-main .story-icon{width:44px!important;min-width:44px;height:44px!important}
 .story-transport-main .story-play{width:46px!important;min-width:46px}
 .story-transport output{font-size:11px!important;line-height:1.6;text-align:center}
 #storyTimeline{height:116px;touch-action:none}.story-edge{width:16px!important;min-height:44px!important}
 .story-edge:before{content:"";position:absolute;inset:-5px -10px}
 .story-timeline-viewport{overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b789d8 #3b2d48}
 .story-timeline-pan{min-height:40px!important;margin:4px 0 8px}.story-timeline-pan input{min-height:40px!important;height:40px!important}
 .story-timeline-tools{gap:6px;flex-wrap:wrap}.story-timeline-tools>span{font-size:10px!important;flex-basis:100%;order:2;margin-top:6px}
 .story-timeline-legend{font-size:10px!important;gap:5px}.story-timeline-legend>span:last-child{display:none}
 .story-zoom{gap:5px!important}.story-zoom output{font-size:12px!important}
 .studio-story-editor .story-zoom .story-icon{width:44px!important;min-width:44px;height:44px!important}
 .studio-story-transcript-pane{position:static!important;max-height:none!important;padding:16px!important;border-radius:18px}
 .studio-story-transcript-pane h3{font-size:16px!important}.studio-story-transcript-pane p,.studio-story-transcript-pane small{font-size:11px!important;line-height:1.6}
 #storyCutText{font-size:14px!important;line-height:1.8;max-height:240px;overflow:auto}
 #storyCutText button{min-height:40px!important;font-size:14px!important;padding:7px 5px!important;border-radius:8px}
 .studio-story-word-actions{gap:10px!important;display:flex;flex-wrap:wrap}.studio-story-word-actions button{flex:1;min-width:100px}
 .studio-story-editor>footer{display:grid!important;grid-template-columns:1fr 1fr;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;gap:8px;background:#fff}
 .studio-story-editor>footer p{grid-column:1/-1;font-size:10px!important;line-height:1.3;margin:0;min-height:13px}
 .studio-story-editor>footer #storyAskAI{grid-column:1/-1;order:3;min-height:40px!important;font-size:11px!important;padding:7px!important}
 .studio-story-editor>footer .story-labelled{font-size:12px!important;padding:9px!important}
 .studio-story-editor>footer #storySaveExact{background:linear-gradient(120deg,#653296,#8746b3)}
 .studio-story-editor .story-block-summary{font-size:11px!important}
 .studio-auth{padding:24px 16px!important;min-height:100dvh;overflow-y:auto;background:#f7f3fa}
 .studio-auth-card{width:100%;max-width:440px;padding:26px 22px;border-radius:24px}
 .studio-auth-card input{font-size:16px;min-height:48px;max-width:100%}
 .studio-auth-card button{min-height:48px;width:100%}
 .login-page{height:auto!important;min-height:100vh!important;min-height:100svh!important;overflow:auto!important;overscroll-behavior-y:none}
 .login-shell{min-height:100vh;min-height:100svh;max-width:100%;width:100%;padding:0!important;gap:0!important;display:flex!important;flex-direction:column}
 .login-page .studio-hero{padding:calc(24px + env(safe-area-inset-top,0px)) 24px 28px!important;min-height:0!important;border-radius:0 0 28px 28px!important}
 .login-page .hero-art{display:none!important}.login-page .hero-copy h1{font-size:28px!important;line-height:1.2}
 .login-page .hero-copy p{font-size:13px!important;line-height:1.7}.login-page .hero-logo img{max-width:190px}
 .login-page .hero-logo{min-height:60px}
 .login-page .login-panel{padding:26px 20px calc(26px + env(safe-area-inset-bottom,0px))!important;min-height:0!important;width:min(100%,468px);margin:0 auto}
 .login-page input{font-size:16px!important;min-height:50px!important}.login-page button{min-height:48px!important}
}
@media(max-width:359px){.studio-mobile-header{gap:6px}.story-timeline-tools{gap:3px}.studio-story-editor>header p:not(.studio-eyebrow){display:none}}
@media(max-width:950px) and (max-height:500px) and (orientation:landscape){.studio-story-editor{height:100dvh;max-height:100dvh;width:100vw;max-width:100vw;margin:0;border-radius:0}.studio-story-editor>header{padding:8px 14px}.studio-story-editor>header p:not(.studio-eyebrow){display:none}.studio-story-cut-list{width:180px}.studio-story-editor-grid{grid-template-columns:180px minmax(0,1fr)}.studio-story-media-transcript{grid-template-columns:minmax(0,1fr) minmax(230px,1fr)}.studio-story-media video{height:140px}.studio-story-editor>footer{padding:6px 12px}.studio-story-editor>footer p{flex-basis:auto}.studio-story-transcript-pane{position:static;max-height:none}}
@media(prefers-reduced-motion:reduce){.studio-shell *,.login-page *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
