/* V36 — compact playback timeline and fullscreen-height tool workspace.
   The picture never changes size when the user opens an editing tool. */
.v34-timeline-scroller{scroll-behavior:auto!important;scroll-snap-type:none!important;contain:layout paint;}
.v34-filmline,.v34-clip-group,.v34-frame{backface-visibility:hidden;-webkit-backface-visibility:hidden;}
.v35-caption-cue textarea[data-caption-edit="text"]{display:block;width:100%;height:auto;min-height:60px;resize:vertical;padding:9px 10px;background:#111e30!important;color:#fff!important;border:1px solid #526f8f!important;border-radius:10px;font-family:inherit;line-height:1.4;font-size:14px!important;}
.v36-caption-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;color:#d9b77b;font-size:10px;font-weight:700;letter-spacing:.07em}
.v36-caption-title button{min-height:30px;border:1px solid #6a9ac7;border-radius:8px;padding:5px 9px;background:#1a3854;color:#e6f4ff;font-size:11px}
.v35-caption-cue{padding:11px!important;gap:8px!important}
.v35-caption-cue label input{font-size:13px!important;min-height:38px!important}
@media(max-width:650px){
 /* Keep editor canvas and stage proportions precisely as they were in V35. */
 body .mode-editor.v24-tool-open .editor-layout>.stage-panel{
  flex:0 0 clamp(350px,55dvh,560px)!important;height:clamp(350px,55dvh,560px)!important;
  min-height:350px!important;max-height:560px!important;order:1!important;
 }
 /* Tool occupies the timeline's area while it is open. */
 body .mode-editor.v24-tool-open .editor-layout>.timeline-panel,
 body .mode-editor.v24-tool-open.v27-visual-panel .editor-layout>.timeline-panel{
  display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;
  max-height:0!important;flex-basis:0!important;padding:0!important;margin:0!important;
 }
 body .mode-editor.v24-tool-open .editor-layout>.tab-row{display:none!important;height:0!important;min-height:0!important;flex-basis:0!important;padding:0!important;}
 body .mode-editor.v24-tool-open .editor-layout>.properties-panel{
  display:flex!important;flex-direction:column!important;order:2!important;position:relative!important;
  flex:1 1 auto!important;min-height:220px!important;max-height:none!important;height:auto!important;
  padding:7px 13px 20px!important;margin:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin!important;border-radius:15px 15px 0 0!important;z-index:5!important;
  border:1px solid #6b8ba6!important;box-shadow:0 -7px 28px #000a!important;
 }
 body .mode-editor.v24-tool-open .properties-panel .v24-tool-head{
  position:sticky!important;z-index:22!important;top:-7px!important;order:0!important;flex:0 0 44px!important;
  display:flex!important;align-items:center!important;height:44px!important;min-height:44px!important;
  margin:0 0 8px!important;background:#0c1d30!important;border-bottom:1px solid #3e516d!important;
 }
 body .mode-editor.v24-tool-open .properties-panel .v24-tool-head button{
  flex:0 0 42px!important;min-height:39px!important;font-size:27px!important;border-radius:9px!important;
 }
 body .mode-editor.v24-tool-open .properties-panel .v24-tool-head .v27-done{
  margin-left:auto!important;font-size:22px!important;color:#12202d!important;background:#e9c486!important;border:0!important;
 }
 body .mode-editor.v24-tool-open .properties-panel .v24-tool-label{color:#f0d5a5!important;font-size:15px!important}
 body .mode-editor.v24-tool-open .properties-panel .v24-tool-advice{font-size:10px!important;color:#a3b8ca!important}
 body .mode-editor.v24-tool-open .properties-panel .v19-tool-caption,
 body .mode-editor.v24-tool-open .properties-panel .v11-tool-head,
 body .mode-editor.v24-tool-open .properties-panel > h3,
 body .mode-editor.v24-tool-open .properties-panel .properties-footer{display:none!important}
 body .mode-editor.v24-tool-open .properties-panel #control-panel{
  display:block!important;order:1!important;flex:1 0 auto!important;padding:3px 2px 28px!important;
  overflow:visible!important;min-height:170px!important;max-height:none!important;font-size:13px!important;
 }
 body .mode-editor.v24-tool-open #control-panel .panel-heading{margin-bottom:10px!important}
 body .mode-editor.v24-tool-open #control-panel .control-set{gap:14px!important}
 body .mode-editor.v24-tool-open #control-panel .ctrl label{font-size:13px!important}
 body .mode-editor.v24-tool-open #control-panel input[type=range]{min-height:35px!important;}
 body .mode-editor.v24-tool-open #control-panel .v22-rail{height:106px!important;max-height:106px!important}
 body .mode-editor.v24-tool-open #control-panel .v22-rail>.ctrl{min-height:87px!important}
 body .mode-editor.v24-tool-open #control-panel .v24-adjust-picker{height:36px!important;min-height:36px!important;max-height:36px!important}
 body .mode-editor.v24-tool-open #control-panel .v24-adjust-chip{height:32px!important;min-height:32px!important;max-height:32px!important;font-size:12px!important}
 body .mode-editor.v24-tool-open .v35-caption-cue{margin-bottom:6px!important}
}
@media(max-width:380px){
 body .mode-editor.v24-tool-open .editor-layout>.stage-panel{flex:0 0 clamp(310px,52dvh,490px)!important;height:clamp(310px,52dvh,490px)!important;min-height:310px!important;}
}

.v36-caption-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:7px 0 11px}
.v36-caption-actions .btn{height:auto!important;min-height:46px!important;font-size:12px!important;line-height:1.3!important;padding:8px!important;white-space:normal!important;}


/* V37 refinements */
body.splash-active .splash-screen{padding-top:env(safe-area-inset-top,0px)}
body.splash-active .splash-center{padding-top:calc(env(safe-area-inset-top,0px) + 10px)}
.chooser-page-premium{padding-top:calc(env(safe-area-inset-top,0px) + 18px)!important}
.chooser-page-premium .mode-card.ai-mode.jarvis-speaking{box-shadow:0 0 0 1px #f0c57a80,0 0 26px #2e8dff55,0 0 50px #f0b85a33}
.chooser-page-premium .mode-card.ai-mode.jarvis-speaking .mode-media img{animation:v37JarvisPulse .92s ease-in-out infinite;filter:drop-shadow(0 0 16px #2f90ff88) drop-shadow(0 0 30px #f1bf6b35)}
.chooser-page-premium.jarvis-speaking .chooser-diamond-signature img{animation:v37JarvisPulse 1s ease-in-out infinite}
@keyframes v37JarvisPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:.88}}
.chooser-page-clean .mode-card.video-mode .mode-media img.v28-showcase-img{object-fit:cover!important;object-position:center center!important}
.v37-music-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
.v37-music-grid .music-choice{min-height:76px;justify-content:flex-start;align-items:flex-start;text-align:left}
.v37-music-grid .music-choice strong{display:block}
.v37-music-grid .music-choice small{display:block;opacity:.85;line-height:1.35}
.v37-music-mix{margin-top:12px}
@media(max-width:620px){
  .splash-center{transform:none!important;padding-top:calc(env(safe-area-inset-top,0px) + 12px)!important}
  .chooser-page-premium{padding-top:calc(env(safe-area-inset-top,0px) + 24px)!important}
  .v37-music-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){
  .v37-music-grid{grid-template-columns:1fr}
}
