/* PV LAB | Film dossier 2026.11.01
   Inspired by the approved second editorial mockup.
   Video Studio only. Preserve model capabilities, credits, real result aspect
   ratio, attached sources, job status, selection and download behavior. */
@media (min-width:1161px){
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact >.workspace.video-layout{
    grid-template-columns:clamp(310px,20.5vw,350px) minmax(0,1fr) clamp(232px,15.2vw,275px)!important;
    gap:14px!important;
  }
}
@media (min-width:821px){
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact{
    /* The same preview geometry for Seedance, Kling, Wan and every mode. */
    --pv-video-stage-height:clamp(420px,calc(100dvh - 244px),750px);
  }
  html body #app.video-studio-active .video-feed-center{
    padding:0 0 12px!important;
    background:#0b0c0e!important;
    scrollbar-gutter:stable!important;
  }
  html body #app.video-studio-active .video-feed-center>.stage{
    height:var(--pv-video-stage-height)!important;
    min-width:0!important;
    border:1px solid #272a2d!important;
    border-radius:12px!important;
    background:#0b0c0e!important;
    overflow:hidden!important;
  }
  /* Actual videos are always shown in their original proportions. In particular,
     never zoom or crop a 9:16 film to imitate a 16:9 mockup. */
  html body #app.video-studio-active .video-feed-center .canvas video:not([hidden]),
  html body #app.video-studio-active .video-feed-center .canvas img#preview:not([hidden]){
    max-width:100%!important;
    max-height:100%!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  /* The saved film owns the entire viewing area; its controls sit on the film,
     rather than in a separate header/footer band. */
  html body #app.video-studio-active.pv-video-history-selected .video-feed-center>.stage{
    display:grid!important;
    grid-template-rows:minmax(0,1fr)!important;
    position:relative;
  }
  html body #app.video-studio-active.pv-video-history-selected .video-feed-center>.stage>.canvas{
    grid-row:1;
    min-width:0;
    min-height:0;
    height:100%;
    padding:0!important;
    background:#0b0c0e!important;
  }
  html body #app.video-studio-active.pv-video-history-selected .video-feed-center>.stage>.stagehead{
    position:absolute!important;
    top:0;left:0;right:0;
    z-index:4;
    min-height:46px!important;
    background:linear-gradient(180deg,#070808bd,transparent)!important;
    border:0!important;
    padding:6px 12px!important;
  }
  html body #app.video-studio-active.pv-video-history-selected .video-feed-center>.stage>.stagehead .eyebrow{
    color:#c8cbcf!important;
    font-size:10px!important;
  }
  html body #app.video-studio-active.pv-video-history-selected .video-feed-center>.stage>.stagefoot{
    display:none!important;
  }
  html body #app.video-studio-active.pv-video-history-selected #pv-video-history-back{
    background:#222529e5!important;
    border-color:#41454b!important;
    border-radius:8px!important;
  }
  html body #app.video-studio-active.pv-video-history-selected .video-feed-center>.stage #clear{
    background:#222529e5!important;
    border-color:#41454b!important;
  }
}
/* Consistent unloaded stage. Mode and provider change instructions and the
   actual upload affordances, not canvas dimensions or decorative styling. */
html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .video-feed-center>.stage:has(#empty:not([hidden])){
  border-color:#282b2f!important;
  border-radius:12px!important;
  background:#0c0d10!important;
}
html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact:not(.pv-video-has-input)
.video-feed-center .canvas:has(>#empty:not([hidden])):before{
  background:linear-gradient(180deg,#0002 12%,#0008 75%,#000a),url('./visuals/video-android-trio-original.png') center/cover no-repeat!important;
}
html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .video-feed-center .canvas #empty{
  max-width:100%!important;
  box-sizing:border-box;
}
html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .video-feed-center .empty-title{
  font-size:clamp(23px,2.1vw,28px)!important;
  font-weight:550!important;
}
html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .video-feed-center .empty-actions>button{
  border-radius:24px!important;
  min-height:40px!important;
  padding:10px 17px!important;
}
html body #app.video-studio-active .workspace.video-layout>.controls,
html body #app.video-studio-active .workspace.video-layout>.video-inspector{
  background:#0c0d0f!important;
  border-color:#292b2e!important;
  box-shadow:none!important;
}
html body #app.video-studio-active .workspace.video-layout>.video-inspector{
  overflow:hidden!important;
  position:relative!important;
  border-radius:12px!important;
}
/* Film dossier: typography first, controls mostly out of sight. */
html body #app.video-studio-active .video-inspector-heading{
  display:flex!important;
  align-items:center!important;
  gap:9px;
  padding:13px 15px!important;
  font-size:13px!important;
  background:transparent!important;
  border:0!important;
}
html body #app.video-studio-active .video-detail-status{
  position:absolute!important;
  width:1px!important;height:1px!important;
  overflow:hidden!important;
  clip-path:inset(50%);
  white-space:nowrap;
}
html body #app.video-studio-active #video-inspector-selected .video-inspector-body{
  padding:7px 15px 17px!important;
  gap:0!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-model{
  align-self:flex-start;
  margin:0 0 23px!important;
  padding:5px 9px!important;
  background:#181a1d!important;
  border:1px solid #363a3f!important;
  color:#d9dcdf!important;
  border-radius:7px!important;
  font-size:11px!important;
  font-weight:600!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-dossier-label{
  margin:0!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.3!important;
  color:#f0f0f0!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt{
  margin:11px 0 0!important;
  color:#b7b9bc!important;
  font-size:12px!important;
  line-height:1.6!important;
  letter-spacing:0!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt:not(.is-expanded){
  max-height:8em!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt-toggle{
  font-weight:550!important;
  font-size:11px!important;
  margin:6px 0 11px!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-detail-references{
  margin:10px 0 0!important;
  padding:18px 0 0!important;
  border-top:1px solid #272a2e!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-detail-references h3{
  margin:0 0 11px!important;
  color:#ebebed!important;
  font-size:12px!important;
  font-weight:600!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-detail-reference-strip{
  gap:7px!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-ref-thumb{
  flex-basis:52px!important;
  width:52px!important;
  height:65px!important;
  border-radius:6px!important;
  border:1px solid #34373b!important;
  background:#141517!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-data{
  gap:6px!important;
  margin:14px 0 0!important;
  padding:0!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-data>div{
  background:#1a1c1f!important;
  border:1px solid #303237!important;
  border-radius:8px!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-created{
  margin-top:auto!important;
  border-top:1px solid #292b30;
  padding:17px 0 3px!important;
  color:#8c9299!important;
}
html body #app.video-studio-active .video-inspector-empty.pv-video-create-inspector{
  padding:7px 15px 16px!important;
}
html body #app.video-studio-active .pv-video-scene-model{
  background:#15171a!important;
  border-color:#303338!important;
  box-shadow:none!important;
}
html body #app.video-studio-active .pv-video-sidebar-section{
  border-color:#292b30!important;
}
html body #app.video-studio-active .pv-video-current-settings dd{
  color:#dbdce0!important;
}
/* Secondary saved-video actions live in a keyboard-accessible menu. */
html body #app.video-studio-active .pv-video-scene-actions{
  display:block;
  margin-left:auto;
  flex:0 0 auto;
  position:relative;
  z-index:30;
}
html body #app.video-studio-active .pv-video-scene-actions[hidden]{
  display:none!important;
}
html body #app.video-studio-active .pv-video-scene-actions>summary{
  display:grid;place-items:center;
  min-width:31px;min-height:31px;
  cursor:pointer;
  color:#e4e6e8;
  font:650 22px/1 Arial,sans-serif;
  border:1px solid transparent;
  border-radius:7px;
  list-style:none;
}
html body #app.video-studio-active .pv-video-scene-actions>summary::-webkit-details-marker{display:none}
html body #app.video-studio-active .pv-video-scene-actions>summary:hover,
html body #app.video-studio-active .pv-video-scene-actions[open]>summary{
  background:#25272b;
  border-color:#3b3e42;
}
html body #app.video-studio-active .pv-video-scene-actions>summary:focus-visible{
  outline:2px solid #c6c8cb;outline-offset:2px;
}
html body #app.video-studio-active .pv-video-scene-actions>.video-inspector-actions{
  position:absolute!important;
  z-index:50;
  top:38px;right:0;
  width:205px;min-width:205px;
  max-height:min(420px,65dvh);
  overflow-y:auto;
  padding:8px!important;
  display:grid;gap:5px!important;
  background:#1b1d20!important;
  border:1px solid #42454a!important;
  border-radius:9px!important;
  box-shadow:0 18px 40px #000a;
}
html body #app.video-studio-active .pv-video-scene-actions:not([open])>.video-inspector-actions{display:none!important}
html body #app.video-studio-active .pv-video-scene-actions>.video-inspector-actions button{
  background:transparent!important;
  color:#eaebee!important;
  border:0!important;
  text-align:left!important;
  min-height:35px!important;
  font-size:11.5px!important;
  border-radius:6px!important;
}
html body #app.video-studio-active .pv-video-scene-actions>.video-inspector-actions button:hover{
  background:#303339!important;
}
html body #app.video-studio-active .pv-video-scene-actions #video-detail-reuse{
  color:#fff!important;
}
html body #app.video-studio-active .pv-video-scene-actions #video-detail-delete{
  color:#c79999!important;
}
/* Preserve the original Video History grid and card interactions.
   All gallery layout, overflow, previews and paging remain in video-refresh.css. */
/* Small screens retain the existing stacked workspace, real movie player and
   original vertical History layout for touch/selection ergonomics. */
@media(max-width:820px){
  html body #app.video-studio-active .workspace.video-layout>.video-inspector{
    border-radius:10px!important;
    overflow:visible!important;
  }
  html body #app.video-studio-active .pv-video-scene-actions>.video-inspector-actions{
    right:0;
  }
}
@media(prefers-reduced-motion:reduce){
  html body #app.video-studio-active #history .card{transition:none!important}
}

/* Processing pill remains legible and unobstructed below the overlaid header. */
@media(min-width:821px){
  html body #app.video-studio-active.pv-video-history-selected
  .stage:has(#video-job-stage:not([hidden])) .stagehead .eyebrow{
    visibility:hidden!important;
  }
}
/* No saved movie: same model-neutral dossier across all providers. The actual
   model label, enabled input modes, duration and resolution remain live data. */
html body #app.video-studio-active .pv-video-create-inspector .pv-video-scene-model{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:10px!important;
  width:100%;
  min-height:45px!important;
  height:auto!important;
  padding:7px 0!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid #2c2e31!important;
  border-radius:0!important;
  background:transparent!important;
  text-align:left;
}
html body #app.video-studio-active .pv-video-create-inspector .pv-video-scene-model img{
  display:none!important;
}
html body #app.video-studio-active .pv-video-create-inspector .pv-video-scene-model-copy{
  flex:1!important;
  min-width:0!important;
}
html body #app.video-studio-active .pv-video-create-inspector .pv-video-current-model{
  color:#ededed!important;
  font-size:13px!important;
}
html body #app.video-studio-active .pv-video-create-inspector .pv-video-current-settings{
  gap:10px!important;
}

/* Saved-film actions return to the inspector footer, always visible.
   Preserve the existing authenticated Reuse and Download handlers. */
html body #app.video-studio-active #video-inspector-selected{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}
html body #app.video-studio-active #video-inspector-selected .video-inspector-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;
  flex:0 0 auto;
  padding:12px 13px 13px!important;
  border-top:1px solid #292b30!important;
  background:#101113!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:39px!important;
  margin:0!important;
  padding:9px 11px!important;
  font:600 11.5px/1.3 'DM Sans',Arial,sans-serif!important;
  border-radius:7px!important;
  box-shadow:none!important;
  cursor:pointer;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-reuse{
  background:#e8e8e6!important;
  border:1px solid #e8e8e6!important;
  color:#171819!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-reuse:hover:not(:disabled){
  background:#fff!important;
  border-color:#fff!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-download{
  background:#222428!important;
  border:1px solid #3b3e44!important;
  color:#eeeef0!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-download:hover:not(:disabled){
  background:#303237!important;
  border-color:#686b72!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions button:disabled{
  opacity:.42!important;
  cursor:not-allowed!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions button:focus-visible{
  outline:2px solid #f4f4f4!important;
  outline-offset:2px;
}
/* More distinctive editorial technical metadata, without stock-style icons
   or faux badges: the three authentic output values and hairline separators. */
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:0!important;
  margin:16px 0 7px!important;
  padding:0!important;
}
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data>div{
  display:inline-flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  flex:0 0 auto!important;
  min-height:24px!important;
  width:auto!important;
  margin:0!important;
  padding:0 10px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data>div:first-child{
  padding-left:0!important;
}
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data>div+div{
  border-left:1px solid #45484d!important;
}
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data dd{
  font:650 12px/1.3 'DM Sans',Arial,sans-serif!important;
  letter-spacing:.015em!important;
  color:#dadcdf!important;
  text-transform:uppercase!important;
}

/* Mobile returns to its original document flow, not a nested inspector scroll. */
@media(max-width:820px){
  html body #app.video-studio-active #video-inspector-selected .video-inspector-body{
    flex:0 0 auto!important;
    overflow:visible!important;
  }
}

/* Desktop composer fit, 2026-11-01.
   The old flex:1 0 auto prompt plus 64px Generate footer forced a scrollbar
   at ordinary laptop heights. Let the writing area use the remaining room.
   On genuinely short windows, independent controls scrolling still works. */
@media(min-width:821px){
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  .workspace.video-layout>.controls{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  .workspace.video-layout .controls-body{
    flex:1 1 auto!important;
    min-height:0!important;
    gap:7px!important;
    padding:10px 11px 6px!important;
    overflow-y:auto!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  #pv-video-prompt-box{
    flex:1 1 0!important;
    min-height:106px!important;
    max-height:none!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  .workspace.video-layout .controls #pv-video-prompt-box textarea#prompt{
    flex:1 1 0!important;
    height:auto!important;
    min-height:69px!important;
    max-height:none!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  .workspace.video-layout>.controls>.generate-zone{
    flex:0 0 54px!important;
    height:54px!important;
    min-height:54px!important;
    padding:0 11px 8px!important;
    box-sizing:border-box!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  .workspace.video-layout #generate{
    height:45px!important;
    min-height:45px!important;
    border-radius:12px!important;
  }
  /* No persistent Windows scrollbar rail: wheel, keyboard and touch scrolling
     stay available whenever attached references or expanded fields need it. */
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  .workspace.video-layout .controls-body{
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  .workspace.video-layout .controls-body::-webkit-scrollbar{display:none!important}
}
@media(min-width:821px) and (max-height:900px){
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  #video-model-control{
    height:110px!important;
    min-height:110px!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact
  .workspace.video-layout .controls-body{gap:6px!important;padding-top:8px!important}
}

/* PV LAB Video | quiet scene actions and on-demand prompt copying.
   Only the right Scene details inspector is restyled here. */
html body #app.video-studio-active #video-inspector-selected .video-detail-model{
  display:block!important;
  align-self:stretch!important;
  max-width:100%;
  margin:0 0 20px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
  color:#dcdddf!important;
  font:550 12px/1.45 'DM Sans',Arial,sans-serif!important;
  overflow-wrap:anywhere;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-model:before{
  content:"MODEL";
  display:block;
  margin:0 0 5px;
  color:#898d93;
  font:500 9px/1.3 'DM Sans',Arial,sans-serif;
  letter-spacing:.09em;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-saved-prompt{
  position:relative;
  min-width:0;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-saved-prompt .pv-video-dossier-label{
  padding-right:35px!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt{
  position:absolute;
  top:-7px;right:0;
  display:grid!important;
  place-items:center!important;
  width:31px!important;
  height:31px!important;
  min-height:31px!important;
  margin:0!important;
  padding:6px!important;
  border:1px solid #43464b!important;
  border-radius:7px!important;
  background:#25272b!important;
  color:#d8dadd!important;
  cursor:pointer;
  opacity:0;
  transform:translateY(2px);
  pointer-events:none;
  transition:opacity .13s ease,transform .13s ease,background .13s ease;
  z-index:3;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt[hidden]{
  display:none!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt svg{
  display:block;
  width:16px;height:16px;
  pointer-events:none;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-saved-prompt:hover .pv-video-copy-prompt,
html body #app.video-studio-active #video-inspector-selected .pv-video-saved-prompt:focus-within .pv-video-copy-prompt{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt:hover{
  background:#36383d!important;
  color:#fff!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt.is-copied{
  border-color:#73777d!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt:focus-visible{
  opacity:1!important;
  transform:none!important;
  pointer-events:auto;
  outline:2px solid #dedfe1!important;
  outline-offset:2px;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt:after{
  content:attr(data-tip);
  position:absolute;
  right:0;
  bottom:calc(100% + 7px);
  padding:5px 7px;
  border-radius:5px;
  background:#323438;
  color:#f1f1f1;
  font:500 10px/1.3 'DM Sans',Arial,sans-serif;
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  transform:translateY(3px);
  transition:opacity .12s ease,transform .12s ease;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt:is(:hover,:focus-visible):after{
  opacity:1;
  transform:none;
}
/* Small utility row. Reuse restores parameters, it does not generate anything. */
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto 32px!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0;
  padding:10px 12px 11px!important;
  border-top:1px solid #292b30!important;
  background:#101113!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  height:34px!important;
  min-height:34px!important;
  padding:5px 7px!important;
  margin:0!important;
  border-radius:7px!important;
  box-shadow:none!important;
  background:transparent!important;
  color:#c2c4c8!important;
  font:550 10.5px/1.2 'DM Sans',Arial,sans-serif!important;
  white-space:nowrap;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions button svg{
  display:block;
  width:14px;height:14px;
  flex:0 0 14px;
  pointer-events:none;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-reuse{
  justify-self:start!important;
  justify-content:flex-start!important;
  background:transparent!important;
  border:1px solid transparent!important;
  color:#b7bbc0!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-reuse:hover:not(:disabled){
  background:#222428!important;
  border-color:transparent!important;
  color:#fff!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-download{
  justify-self:end!important;
  padding:5px 8px!important;
  background:#222428!important;
  border:1px solid #393b41!important;
  color:#e4e5e7!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-download:hover:not(:disabled){
  background:#303238!important;
  border-color:#656870!important;
  color:#fff!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-delete{
  justify-self:end!important;
  width:32px!important;
  height:34px!important;
  padding:5px!important;
  background:transparent!important;
  border:1px solid transparent!important;
  color:#a9adb3!important;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-primary-actions #video-detail-delete:hover:not(:disabled){
  background:#282a2f!important;
  border-color:#3c3f45!important;
  color:#e2e3e5!important;
}
@media(hover:none){
  html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt:not([hidden]){
    opacity:1!important;
    transform:none!important;
    pointer-events:auto!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt,
  html body #app.video-studio-active #video-inspector-selected .pv-video-copy-prompt:after{transition:none}
}

/* The explicit selection state must beat the inspector's flex layout. */
html body #app.video-studio-active #video-inspector-selected[hidden]{
  display:none!important;
}

/* iPhone video preview: Safari scroll chrome changes the dynamic viewport
   height (dvh). A width-based stage is stable while scrolling the page.
   Do not stretch, crop or reframe portrait/landscape user videos. */
@media(max-width:820px){
  html body #app.video-studio-active .video-feed-center>.stage{
    height:clamp(340px,112vw,560px)!important;
    min-height:0!important;
    flex-shrink:0!important;
  }
  html body #app.video-studio-active .video-feed-center>.stage .canvas video:not([hidden]){
    width:100%!important;height:100%!important;object-fit:contain!important;
  }
  html body #app.video-studio-active .video-feed-center>.stage:has(#save-video-photos:not([hidden])){
    grid-template-rows:43px minmax(0,1fr) auto!important;
  }
  html body #app.video-studio-active .video-feed-center .stagefoot:has(#save-video-photos:not([hidden])){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:7px;
    align-items:center;
    height:auto!important;
    min-height:76px;
    padding:7px 10px!important;
  }
  html body #app.video-studio-active .video-feed-center .stagefoot:has(#save-video-photos:not([hidden])) #settings-summary{
    grid-column:1/-1;min-width:0;
  }
  html body #app.video-studio-active .video-feed-center .stagefoot:has(#save-video-photos:not([hidden])) button{
    min-width:0;min-height:35px!important;
    margin:0!important;padding:7px 8px!important;
    font-size:11px!important;white-space:nowrap;
  }
}
#app:not(.video-studio-active) #save-video-photos{display:none!important}
