/* CLIPVIDE modern theme: deeper palette, soft glass surfaces, one violet-to-pink accent. Colors only: layout is untouched. */
:root{--bg:#090d16;--surface:#111827;--surface2:#172033;--line:rgba(255,255,255,.09);--text:#eef1f8;--muted:#8f9bb3;--accent1:#7c5cff;--accent2:#ff5d93;--grad:linear-gradient(135deg,#7c5cff 0%,#c24df0 55%,#ff5d93 100%)}
html body,html body.mobile-focus-editor{background:radial-gradient(120% 60% at 50% -10%,#1b1f3d 0%,var(--bg) 55%) fixed,var(--bg)!important;color:var(--text)!important;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Heebo","Arial Hebrew",sans-serif!important;letter-spacing:.005em!important}
/* header */
html body header{background:transparent!important;border-bottom:1px solid var(--line)!important;}
html body header .mobile-header-icon,html body header button{border-radius:14px!important;background:rgba(255,255,255,.05)!important;border:1px solid var(--line)!important;color:var(--text)!important;box-shadow:none!important}
html body header #export,html body header .gold{background:var(--grad)!important;color:#fff!important;border:0!important;box-shadow:0 6px 18px rgba(194,77,240,.35)!important}
html body header #export svg,html body header .gold svg{color:#fff!important}
/* preview */
html body #canvas{border-radius:18px!important}
html body #previewDock{border-radius:20px!important}
html body .transport button,html body #previewDock .transport button{border-radius:14px!important;background:transparent!important;border:0!important;color:var(--text)!important}
html body #previewDock .transport #play,html body #previewDock .transport .mobile-play-icon,html body #play{background:var(--grad)!important;color:#fff!important;border:0!important;border-radius:50%!important;box-shadow:0 8px 22px rgba(194,77,240,.4)!important}
html body #previewDock .transport #play svg,html body #play svg{color:#fff!important;fill:#fff!important}
/* timeline */
html body #timelineScroll{background:rgba(255,255,255,.035)!important;border:1px solid var(--line)!important;border-radius:18px!important}
html body #timelineTools button{border-radius:14px!important;background:transparent!important;border:0!important}
html body .clip{border-radius:10px!important;border:1px solid rgba(124,92,255,.55)!important;background:linear-gradient(180deg,#26214a,#1a2040)!important}
html body .clip.active{border-color:#ff5d93!important;box-shadow:0 0 0 2px rgba(255,93,147,.35)!important}
html body #playhead,html body #playheadStem{background:#ff5d93!important}
html body #addMediaInline125{background:var(--grad)!important;border-radius:16px!important;box-shadow:0 8px 20px rgba(194,77,240,.4)!important}
/* empty state */
html body.mobile-focus-editor #empty::before{background:var(--grad)!important;box-shadow:0 10px 30px rgba(194,77,240,.45)!important}
/* bottom tools */
html body nav,html body nav.mobile-tools-after95{background:rgba(13,18,30,.88)!important;border-top:1px solid var(--line)!important}
html body #mobileToolStrip button,html body nav button{background:rgba(255,255,255,.04)!important;border:1px solid transparent!important;border-radius:16px!important;color:var(--muted)!important}
html body #mobileToolStrip button:active,html body nav button:active{background:rgba(124,92,255,.22)!important;color:#fff!important}
html body #mobileToolStrip #add{background:rgba(124,92,255,.18)!important;border-color:rgba(124,92,255,.5)!important;color:#fff!important}
html body #mobileToolStrip button b{color:inherit!important}
/* dialogs */
html body dialog{background:#101626!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:0 30px 80px rgba(0,0,0,.6)!important}
html body dialog::backdrop{background:rgba(5,8,16,.62)!important;}
html body dialog h2{color:var(--text)!important;font-weight:700!important}
html body dialog button,html body dialog select,html body dialog input[type=text],html body dialog input[type=search],html body dialog input[type=number],html body dialog input[type=password],html body dialog input[type=email],html body dialog textarea{border-radius:12px!important}
html body dialog button{background:rgba(255,255,255,.07)!important;border:1px solid var(--line)!important;color:var(--text)!important}
html body dialog input,html body dialog select,html body dialog textarea{background:rgba(255,255,255,.05)!important;border:1px solid var(--line)!important;color:var(--text)!important}
html body dialog input[type=range]{accent-color:#c24df0!important;background:transparent!important;border:0!important}
html body #effectsDialog119>div:first-child{background:#101626!important;box-shadow:none!important;border-bottom:1px solid var(--line)!important}
html body #effectsDialog119 button[data-effect119]{background:rgba(255,255,255,.04)!important;border-radius:16px!important;overflow:hidden!important}
html body #effectsDialog119 button[data-effect119].active,html body #effectsDialog119 button[data-effect119][aria-pressed="true"]{border:2px solid #ff5d93!important;box-shadow:0 0 0 3px rgba(255,93,147,.25)!important}
html body #effectsDialog119 button[data-effect119] img,html body #effectsDialog119 button[data-effect119] canvas{border-radius:10px!important}
html body #applyEffect119,html body #effectsDialog119 > div:first-child > div button:first-child{background:var(--grad)!important;color:#fff!important;border:0!important;font-weight:700!important}
html body #applySpeed122{background:var(--grad)!important;color:#fff!important;border:0!important;font-weight:700!important}
/* status text */
html body #status,html body #playStatus,html body .hint{color:var(--muted)!important}
/* focus */
html body :focus-visible{outline:2px solid #c24df0!important;outline-offset:2px!important}

html body #mobileToolStrip button svg{width:24px!important;height:24px!important;stroke-width:1.7!important}
html body #mobileToolStrip button b{display:grid!important;place-items:center!important;font-size:0!important;line-height:0!important}
html body #speedOpen122::before,html body #colorOpen122::before,html body #animationsOpen122::before,html body #speedOpen122::after,html body #colorOpen122::after,html body #animationsOpen122::after{content:none!important;display:none!important}
html body #speedOpen122,html body #colorOpen122,html body #animationsOpen122{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important}
html body #slideshowOpen110{font-weight:500!important}
/* touch: no keyboard-style focus ring on auto-focused dialog buttons */
@media (hover:none){html body dialog :focus-visible,html body dialog button:focus{outline:none!important}}
/* primary dialog actions */
html body #beginExport,html body dialog button.primary,html body dialog button.gold{background:var(--grad)!important;color:#fff!important;border:0!important;font-weight:700!important;box-shadow:0 8px 22px rgba(194,77,240,.35)!important}
/* export choices */
html body #exportDialog [aria-pressed="true"],html body #exportDialog .active,html body #exportDialog .selected{border:2px solid #ff5d93!important;box-shadow:0 0 0 3px rgba(255,93,147,.22)!important}
/* text / caption editor strip: soft pill buttons */
html body #mobileToolWindow button,html body .mobile-tool-window button{border-radius:12px!important}
html body textarea,html body input[type=text],html body input[type=search]{border-radius:14px!important;background:rgba(255,255,255,.05)!important;border:1px solid var(--line)!important;color:var(--text)!important}
html body textarea:focus,html body input:focus{border-color:#c24df0!important;box-shadow:0 0 0 3px rgba(194,77,240,.22)!important;outline:none!important}
/* Fix: the tool sheet (captions, text, audio...) collapsed to a thin strip in newer Chrome/Android because the content area had flex-basis 0. */
html body #mobileToolSheet #mobileToolWindow{flex:1 1 auto!important;min-height:0!important}
/* Safety net: even if a browser mis-sizes the flex content, the tool sheet keeps a usable height. */
html body #mobileToolSheet[open]{min-height:min(320px,48dvh)!important;min-height:min(320px,48vh)!important;height:auto!important}
html body #mobileToolSheet[open] #mobileToolWindow{overflow-y:auto!important;-webkit-overflow-scrolling:touch}

/* fx28: player controls float over the bottom of the picture (video-player style) - frees a whole row for the picture */
html body.mobile-focus-editor #previewDock{position:relative!important}
html body.mobile-focus-editor #previewDock .transport{position:absolute!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;z-index:7!important;padding:0 6px!important;border-radius:0 0 8px 8px!important;background:linear-gradient(to top,rgba(5,8,14,.78),rgba(5,8,14,0))!important}
html body.mobile-focus-editor #previewDock .monitor{margin-bottom:0!important}
