/* PV LAB Video: wider playback stage and slim scene inspector.
   Presentation only. Keep History, downloads, job state, pricing and
   controls connected to their existing handlers. */
@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,21vw,350px) minmax(0,1fr) clamp(224px,13.2vw,245px)!important;
    gap:10px!important;
    min-width:0!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .workspace.video-layout > .video-inspector{
    min-width:0!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .video-inspector-heading{
    padding:12px 13px 10px!important;
    min-height:44px!important;
    font-size:13px!important;
    line-height:1.25!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .pv-video-create-inspector{
    padding:11px 13px!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .video-inspector-body{
    padding:13px!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .pv-video-scene-model{
    min-height:64px!important;gap:7px!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .pv-video-sidebar-section{
    margin-top:17px!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .pv-video-sidebar-section h3{
    font-size:11.5px!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .pv-video-sidebar-section p,
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .pv-video-current-settings > div{
    font-size:11.5px!important;
  }
  html body #app.video-studio-active.pv-video-approved-ready.pv-video-state-ready.pv-video-compact .pv-video-current-settings{
    gap:7px!important;
  }
}
@media(min-width:821px){
  /* Preserve the video player, canvas dimensions, source-frame controls and
     independent gallery scroll. Only the working area's presentation changes. */
  html body #app.video-studio-active .video-feed-center > .stage{
    min-width:0;
    overflow:hidden;
  }
}
#app.video-studio-active .video-job-stage[hidden]{display:none!important}
#app.video-studio-active .video-job-stage{
  padding:18px 20px 17px;
  background:#17191b;
}
#app.video-studio-active .video-job-stage-status{
  gap:9px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #373a3e;
  background:#242629;
  color:#e6e8e9;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0;
  box-shadow:0 1px 9px #0002;
}
#app.video-studio-active .video-job-stage-indicator{
  width:12px;height:12px;
  border:2px solid #737a7e;
  border-top-color:#f1f2ef;
}
#app.video-studio-active .video-job-stage-meta{
  align-self:flex-end;
  max-width:90%;
  text-align:right;
  color:#85898f;
  font-size:10px;
}
/* The compact status pill is the primary live feedback for active jobs.
   Keep full live-region copy available to assistive technology. */
#app.video-studio-active .video-job-stage:is([data-phase="submitting"],[data-phase="queued"],[data-phase="running"],[data-phase="saving"]) .video-job-stage-main{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
@media(max-width:820px){
  #app.video-studio-active .video-job-stage{padding:13px}
  #app.video-studio-active .video-job-stage-status{padding:7px 10px}
}

/* Saved-video details: readable short prompt and compact output metadata.
   The Create inspector, player, gallery and generation controls are untouched. */
html body #app.video-studio-active #video-inspector-selected .video-inspector-body{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt{
  flex:0 0 auto;
  margin:12px 0 0!important;
  font-size:12px!important;
  line-height:1.55!important;
  color:#adb3bb!important;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt:not(.is-expanded){
  max-height:7.75em;
  overflow:hidden!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt.is-expanded{
  max-height:none!important;
  overflow:visible!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt-toggle{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:26px;
  margin:3px 0 1px;
  padding:1px 0!important;
  border:0!important;
  background:transparent!important;
  color:#d1d5da!important;
  font:600 11px/1.4 'DM Sans',Arial,sans-serif!important;
  cursor:pointer;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt-toggle:after{
  content:"⌄";
  display:inline-block;
  font-size:14px;
  line-height:1;
  transition:transform .16s ease;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt-toggle[aria-expanded="true"]:after{
  transform:rotate(180deg);
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt-toggle:hover{
  color:#fff!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-prompt-toggle:focus-visible{
  outline:2px solid #b5bbc2;
  outline-offset:3px;
  border-radius:2px;
}
html body #app.video-studio-active #video-inspector-selected .pv-video-details-section-title{
  display:none!important;
}
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data{
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:5px!important;
  width:100%;
  min-width:0;
  margin:14px 0 0!important;
  padding:0!important;
  border:0!important;
}
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data>div{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  flex:0 0 auto;
  width:auto!important;
  min-width:0;
  min-height:27px;
  margin:0!important;
  padding:5px 7px!important;
  border:1px solid #373a3f!important;
  border-radius:7px!important;
  background:#232528!important;
  white-space:nowrap;
}
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data dt{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0!important;
  color:#9da4ad!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-data dt svg{
  display:block;
  width:12px;
  height:12px;
  flex:0 0 12px;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-data dt span{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip-path:inset(50%);
  white-space:nowrap;
}
html body #app.video-studio-active.pv-video-approved-ready #video-inspector-selected .video-detail-data dd{
  margin:0!important;
  color:#d8dce2!important;
  font-size:10.5px!important;
  font-weight:600!important;
  line-height:1.2!important;
}
html body #app.video-studio-active #video-inspector-selected .video-detail-created{
  margin:0;
  margin-top:auto;
  padding:17px 0 0;
  color:#8f969f;
  font:400 10px/1.5 'DM Sans',Arial,sans-serif;
}
@media(prefers-reduced-motion:reduce){
  html body #app.video-studio-active #video-inspector-selected .video-detail-prompt-toggle:after{transition:none}
}
