[data-edit-studio] {
  --edit-progress: 0;
  --edit-shot-progress: 0;
  --edit-level: 0;
  container-type: inline-size;
  position: relative;
  color: #fafaf8;
  background: #141414;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.45;
}
[data-edit-studio] *, [data-edit-studio] *::before, [data-edit-studio] *::after { box-sizing: border-box; }
[data-edit-studio] [hidden] { display: none !important; }
[data-edit-studio] button, [data-edit-studio] input { font: inherit; }
[data-edit-studio] button { cursor: pointer; }
[data-edit-studio] :focus-visible { outline: 3px solid #ed3f2e; outline-offset: 3px; }
.edit-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: .8rem clamp(1rem, 3cqw, 2rem); border-bottom: 1px solid #444443; font-size: .875rem; }
.edit-topline > span:last-child { color: #bcbcb9; }
.edit-workspace { display: grid; }
.edit-preview { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #303030; isolation: isolate; }
.edit-scene { position: absolute; inset: 0; overflow: hidden; }
.edit-scene--portrait, .edit-scene--detail { background: #737371; }
.edit-scene--portrait > img, .edit-scene--detail > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; transform-origin: 53% 54%; }
.edit-scene--portrait > img { transform: translateX(calc(var(--edit-shot-progress) * -1.6%)) scale(calc(1.025 + var(--edit-shot-progress) * .06)); }
.edit-scene--detail > img { transform: translateX(calc(var(--edit-shot-progress) * 1.5% - 1%)) scale(calc(1.46 + var(--edit-shot-progress) * .04)); }
.edit-scene--space > svg { display: block; width: 100%; height: 100%; transform: translateX(calc(var(--edit-shot-progress) * -1.5%)) scale(calc(1.025 + var(--edit-shot-progress) * .025)); }
.edit-scene--end { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); background: #141414; }
.edit-end-copy { display: flex; flex-direction: column; align-items: start; justify-content: space-between; min-width: 0; min-height: 0; padding: 6% 8%; }
.edit-end-copy > img { width: 32%; height: auto; min-width: 3rem; }
.edit-end-copy > p { margin: .5em 0; font-size: clamp(1.45rem, 7.2cqw, 5rem); font-weight: 550; line-height: .94; letter-spacing: -.055em; }
.edit-end-copy > span { color: #bcbcb9; font-size: clamp(.5625rem, 1.3cqw, .8125rem); }
.edit-end-portrait { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; object-fit: cover; object-position: 50% 58%; border-left: 2px solid #ed3f2e; transform-origin: right center; transform: scale(calc(1.01 + var(--edit-shot-progress) * .035)); }
.edit-transport { padding: 1rem clamp(1rem, 3cqw, 2rem); border-bottom: 1px solid #444443; }
.edit-play-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.edit-play { display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: .65rem 1rem; color: #141414; background: #fafaf8; border: 1px solid #fafaf8; border-radius: 0; font-size: .875rem; font-weight: 600; }
.edit-play:hover { background: #dfdfdc; border-color: #dfdfdc; }
.edit-clock { flex-shrink: 0; color: #fafaf8; font-size: .875rem; font-variant-numeric: tabular-nums; }
.edit-clock > span:last-child { color: #bcbcb9; }
.edit-seek-label { display: grid; gap: .2rem; margin-top: .9rem; color: #bcbcb9; font-size: .875rem; }
.edit-seek { width: 100%; min-height: 2.75rem; margin: 0; accent-color: #ed3f2e; cursor: pointer; }
.edit-utility-row { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; }
.edit-quiet-button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 0; color: #fafaf8; background: transparent; border: 0; border-radius: 0; font-size: .875rem; text-decoration: underline; text-underline-offset: .3em; }
.edit-quiet-button:hover { color: #bcbcb9; }
.edit-quiet-button:disabled { color: #aaa9a5; cursor: default; text-decoration: none; }
.edit-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: 1rem clamp(1rem, 3cqw, 2rem); }
.edit-chapters > p { grid-column: 1 / -1; margin: 0 0 .25rem; color: #bcbcb9; font-size: .875rem; }
.edit-chapters > button { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-width: 0; min-height: 2.875rem; padding: .65rem .75rem; color: #fafaf8; background: #242424; border: 1px solid #444443; border-radius: 0; font-size: .875rem; text-align: left; }
.edit-chapters > button > span:last-child { color: #bcbcb9; font-size: .75rem; font-variant-numeric: tabular-nums; }
.edit-chapters > button > span:first-child { min-width: 0; }
.edit-chapters > button[aria-pressed="true"] { color: #141414; background: #fafaf8; border-color: #fafaf8; box-shadow: inset 3px 0 #ed3f2e; }
.edit-chapters > button[aria-pressed="true"] > span:last-child { color: #5c5c5b; }
.edit-chapters > button:hover { border-color: #fafaf8; }
.edit-timeline-area { padding: 1rem clamp(1rem, 3cqw, 2rem) 1.25rem; border-top: 1px solid #444443; }
.edit-track-heading { display: flex; justify-content: space-between; gap: .75rem; color: #bcbcb9; font-size: .75rem; }
.edit-timeline { position: relative; margin-top: .65rem; }
.edit-ruler { display: flex; justify-content: space-between; gap: .5rem; color: #bcbcb9; font-size: .625rem; font-variant-numeric: tabular-nums; }
.edit-video-clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding-top: .5rem; }
.edit-video-clip { position: relative; display: flex; align-items: end; min-width: 0; height: clamp(2.5rem, 8cqw, 4.25rem); padding: .3rem .4rem; overflow: hidden; color: #fafaf8; background-color: #373737; border-top: 2px solid transparent; font-size: clamp(.625rem, 1.6cqw, .8125rem); }
.edit-video-clip > span { position: relative; z-index: 1; padding: .1em .25em; background: rgba(20, 20, 20, .82); white-space: nowrap; }
.edit-video-clip::before { position: absolute; inset: 0; background-image: url("approved-portrait.webp"); background-size: cover; background-position: center 58%; opacity: .6; content: ""; }
.edit-video-clip--space::before { background-image: linear-gradient(125deg, transparent 45%, #ececea 46% 64%, transparent 65%), linear-gradient(#777775 0 73%, #373737 74%); opacity: 1; }
.edit-video-clip--detail::before { transform: scale(1.4); }
.edit-video-clip--end::before { background-image: linear-gradient(90deg, #141414 0 55%, transparent 56%), url("approved-portrait.webp"); opacity: 1; }
.edit-video-clip[data-edit-active="true"] { border-top-color: #ed3f2e; }
.edit-audio-wave { display: block; width: 100%; height: 2.25rem; margin-top: .3rem; color: #92928f; background: #222; }
.edit-playhead { position: absolute; top: .9rem; bottom: 0; left: calc(var(--edit-progress) * 100%); z-index: 2; width: 2px; background: #ed3f2e; transform: translateX(-1px); pointer-events: none; }
.edit-playhead::before { position: absolute; top: 0; left: 50%; width: 7px; height: 7px; background: #ed3f2e; transform: translate(-50%, -50%) rotate(45deg); content: ""; }
.edit-bottom-note { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.25rem; padding: 1rem clamp(1rem, 3cqw, 2rem); border-top: 1px solid #444443; color: #bcbcb9; font-size: .8125rem; }
.edit-bottom-note p { margin: 0; }
.edit-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.edit-noscript { margin: 0; padding: 1rem; color: #bcbcb9; font-size: .875rem; }
[data-edit-studio][data-edit-motion="cuts"] .edit-scene-motion { transform: none !important; }
[data-edit-studio][data-edit-motion="cuts"] .edit-scene--detail > img { transform: scale(1.46) !important; }
@container (min-width: 46rem) {
  .edit-workspace { grid-template-columns: minmax(0, 1fr) minmax(12rem, .29fr); }
  .edit-preview { grid-column: 1; grid-row: 1; }
  .edit-transport { grid-column: 1; grid-row: 2; border-bottom: 0; }
  .edit-chapters { grid-column: 2; grid-row: 1 / 3; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 1.25rem 1rem; border-left: 1px solid #444443; }
  .edit-chapters > p { margin-bottom: .5rem; }
  .edit-chapters > button { min-height: 3.25rem; }
  .edit-end-copy > p { font-size: clamp(2rem, 5.3cqw, 5rem); }
}
@media (prefers-reduced-motion: reduce) {
  [data-edit-studio] .edit-scene-motion { transform: none !important; }
  [data-edit-studio] .edit-scene--detail > img { transform: scale(1.46) !important; }
}
