/* fx98 */
html body #mobileToolbar,html body nav#mobileToolbar.mobile-tools-after95{background:#2a2d34!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-top:1px solid #4a505b!important;box-shadow:0 -6px 18px rgba(0,0,0,.35)!important}
html body #mobileToolbar button,html body #mobileToolbar a{color:#f3f5f8!important}
html body #previewDock .transport #play.mobile-play-icon,html body #previewDock .transport #play,html body #play.mobile-play-icon,html body #play{background:none!important;background-image:none!important;box-shadow:none!important;border:0!important;filter:none!important;color:#fff!important}
html body #previewDock .transport #play svg{color:#fff!important;fill:#fff!important;stroke:none;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6))}
html body .transport,html body .transport *{text-shadow:none}
html body #name,html body #saveRow133,html body #mobileSaveState,html body #recoverDraft,html body #draftStatus,html body #draftControls,html body #autoDraft,html body label[for="autoDraft"]{display:none!important}
/* export dialog */
#exportDialog[open]{display:flex!important;flex-direction:column}
#exportDialog>*{order:20}
#exportDialog>.x170{order:0}
#exportDialog>h2{order:1}
#exportDialog>.exportTop98{order:2;display:flex;gap:10px;margin:6px 0 10px;direction:rtl}
html[lang]:not([lang=he]) #exportDialog>.exportTop98{direction:ltr}
#exportDialog>#exportStage{order:3}#exportDialog>#progress{order:4}#exportDialog>#exportStatus{order:5}#exportDialog>#exportEstimate{order:5}
#exportDialog>#shareExport{order:6}
#exportDialog>#checkBeforeExport{order:7}
#exportDialog>label{order:8}
#exportDialog>#socialPresets136{order:30}
#exportDialog>#mobileSocialOpen{order:40}
.exportTop98 button{flex:1;min-height:48px;margin:0!important;border-radius:14px;font-weight:700;font-size:16px}
html body #beginExport.gold{background:#1f9d55!important;background-image:none!important;border:0!important;color:#fff!important;box-shadow:none!important}
html body #beginExport.gold:disabled{opacity:.5}
html body #beginExport:before{content:'';display:inline-block;width:20px;height:20px;margin-inline-end:8px;vertical-align:-4px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='4'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E")}
html body #cancelExport{background:#3a4150!important;color:#fff!important;border:0!important}
/* text bar */
#textTools128 #textCancel98{margin-right:6px}
#textTools128 #textClose128{margin-left:auto}
html body .text-clip128 .text-clip-body128{touch-action:pan-x pan-y}
.text-clip128.lift98{transform:scale(1.04);box-shadow:0 4px 14px rgba(0,0,0,.5);z-index:5}
html body .text-clip128 .text-edge128{width:26px;min-width:26px}
.text-edge128:after{left:11px}

html body #mobileToolbar::before,html body #mobileToolbar::after{display:none!important}
html body #mobileToolbar{opacity:1!important}
html body #mobileToolbar button{background:transparent}
#musicLibrary>.x170{top:2px!important}
#musicLibrary #chooseLocalMusic{margin-top:0}
html[dir=ltr] #exportDialog>h2{margin-left:48px}
#musicLibrary .musicHead148>.x170{position:static!important;top:auto!important;left:auto!important;margin:0!important;flex:0 0 40px;align-self:center}
#musicLibrary .musicHead148{align-items:center!important;min-height:48px}
#musicLibrary .musicHead148>#chooseLocalMusic{position:static!important;flex:0 0 40px;align-self:center;margin:0!important}
#musicLibrary .musicHead148>.x170{border-radius:50%!important;width:40px!important;height:40px!important;min-height:40px!important;background:rgba(255,255,255,.14)!important;border:0!important}

.exportTop98 #download{flex:1;display:flex;align-items:center;justify-content:center;min-height:48px;margin:0;border-radius:14px;background:#2f6df6;color:#fff!important;font-weight:700;font-size:16px;text-decoration:none}
.exportTop98 #download[hidden]{display:none!important}
.exportTop98 button{font-size:15px}
#exportOverlay98{position:fixed;inset:0;z-index:60;background:#2b2d31;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:#fff;border-radius:inherit}
#exportOverlay98[hidden]{display:none!important}
#exportOverlay98 .ring98{--p:0%;width:170px;height:170px;border-radius:50%;background:conic-gradient(#22c55e var(--p),#4a4e57 0);display:grid;place-items:center;position:relative}
#exportOverlay98 .ring98:before{content:'';position:absolute;inset:12px;border-radius:50%;background:#2b2d31}
#exportOverlay98 .ring98 b{position:relative;font-size:38px;font-weight:700}
#exportOverlay98 p{margin:0;font-size:18px;font-weight:600;text-align:center;padding:0 24px}
#exportOverlay98 small{opacity:.75;font-size:14px;min-height:18px}
#exportOverlay98 button{margin-top:10px;min-height:46px;padding:0 28px;border:0;border-radius:14px;background:#3a4150;color:#fff;font-size:16px;font-weight:700}
html body #beginExport.gold{font-size:14px!important;padding-inline:6px!important;white-space:nowrap}html body #beginExport:before{width:16px;height:16px;margin-inline-end:5px}

/* fx100: one theme token for every modal / bottom sheet */
:root{--sheet98:#1E1E26;--sheet98-line:rgba(255,255,255,.10)}
html body dialog,html body dialog[open],html body #exportDialog,html body #musicLibrary,html body #mobileToolSheet,html body #effectsDialog113,html body #effectsDialog119,html body #speedDialog122,html body #colorDialog122,html body #animationsDialog122,html body #mobileSocialDialog,html body #mobileAbout,html body #library,html body #importMedia115,html body #slideshow110,html body #titleCardDialog,html body #transcribeDialog,html body #adminDialog182{background:var(--sheet98)!important;background-image:none!important;border-radius:20px!important}
html body #mobileToolSheet,html body #mobileToolWindow,html body #mobileToolWindow>*,html body dialog.sheet98{background:var(--sheet98)!important;background-image:none!important}
html body #mobileToolSheet,html body #mobileToolWindow{border-top-left-radius:20px!important;border-top-right-radius:20px!important}
html body #textEditor128,html body #textEditor128 #textSettings128{background:var(--sheet98)!important}
html body #musicLibrary .musicHead148{background:var(--sheet98)!important;border-bottom:1px solid var(--sheet98-line)!important}
html body dialog::backdrop{background:rgba(8,9,14,.62)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html body dialog>.x170,html body dialog .musicHead148>.x170{color:#fff!important;background:rgba(255,255,255,.14)!important}
#authBox144:not([hidden]){margin-top:46px!important}

/* fx102 auto edit */
#autoEditDialog99{width:min(94vw,520px);max-height:88vh;overflow:auto;padding:16px;color:#fff}
#autoEditDialog99 h2{margin:0 48px 12px 0;font-size:20px}
html[dir=ltr] #autoEditDialog99 h2{margin:0 0 12px 48px}
#autoPrompt99{width:100%;box-sizing:border-box;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:16px;padding:12px;resize:vertical;min-height:96px}
#autoTags99{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#autoTags99 button{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);color:#fff;border-radius:999px;padding:8px 12px;font-size:14px}
#autoSteps99{display:grid;gap:6px;margin:10px 0;font-size:15px}
#autoSteps99 .done{color:#6ee7a0}#autoSteps99 .on{color:#fff;font-weight:700}#autoSteps99 .off{opacity:.55}
#autoRes99{white-space:pre-line;font-size:15px;line-height:1.5;margin:8px 0}
.autoRow99{display:flex;gap:10px}.autoRow99 button{flex:1;min-height:48px;border-radius:14px;border:0;font-weight:700;font-size:16px}
#autoRun99{background:#1f9d55;color:#fff}#autoUndo99{background:#3a4150;color:#fff}
#autoTags99 button[aria-pressed=true]{background:rgba(31,157,85,.28);border-color:#1f9d55}
#batchSmart99{display:block;width:100%;min-height:52px;margin:6px 0 12px;border-radius:14px;border:0;background:linear-gradient(135deg,#7c5cff,#c24df0);color:#fff;font-size:16px;font-weight:700}
#autoEditDialog99 [hidden]{display:none!important}
#autoFollow99{display:flex;flex-direction:column;gap:8px;margin:6px 0}#autoFollow99 button{min-height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;font-size:15px;font-weight:600}
#autoLang99{display:grid;gap:8px;margin:8px 0}#autoLang99 label{display:grid;gap:4px;font-size:14px}#autoLang99 select{min-height:42px;border-radius:12px;background:rgba(255,255,255,.07);color:#fff;border:1px solid rgba(255,255,255,.16);font-size:16px;padding:0 8px}#autoLang99 select option{color:#000}
.caption-bar{touch-action:none}
/* fx110: easier caption dragging */
#captionLane{height:46px!important;touch-action:pan-x}
.caption-bar{top:4px!important;height:38px!important;min-height:38px!important;touch-action:none!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;background-image:linear-gradient(90deg,#fff6 0 3px,transparent 3px calc(100% - 3px),#fff6 calc(100% - 3px));padding:2px 8px!important}
#captionNudge110{display:flex;gap:8px;align-items:center;margin:10px 0}
#captionNudge110 span{flex:1;font-size:13px}
#captionNudge110 button{flex:0 0 auto;min-width:54px;min-height:40px}
