/* Real camera stills in an editorial timeline. CSS is the complete end state. */
.tt-editor { display: contents; }
.tt-monitor {
  grid-area: monitor; min-width: 0; width: 100%; max-width: 520px;
  justify-self: end; align-self: center; border: 1px solid var(--ink);
  background: var(--ink); color: var(--night-text);
}
.tt-monitor__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.tt-monitor__frame {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
}
.tt-monitor__frame.is-current { opacity: 1; }
.tt-monitor__chrome {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 34px; padding: 8px 12px; gap: 16px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .025em;
}
.tt-monitor__format { color: #b7bdc8; }
.tt-monitor__badge {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 30px; height: 30px; background: var(--signal-ink); color: #fff;
}
.tt-monitor__badge svg { width: 16px; height: 16px; }
.tt-editor.is-playing:not(.has-verdict) .tt-monitor__badge { opacity: 0; }
.tt-timeline {
  --label-w: 34px; --ruler-h: 24px; --v2-h: 23px; --v1-h: 80px; --a1-h: 32px; --track-gap: 8px;
  grid-area: timeline; min-width: 0; position: relative;
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr);
  grid-template-rows: var(--ruler-h) var(--v2-h) var(--v1-h) var(--a1-h);
  gap: var(--track-gap) 0;
}
.tt-ruler {
  grid-column: 2; position: relative; display: flex; align-items: end;
  justify-content: space-between; border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px; color: var(--muted);
  font: 12px / 1 var(--font-mono); font-variant-numeric: tabular-nums;
}
.tt-ruler__ticks { position: absolute; inset: auto 0 0; width: 100%; height: 7px; color: var(--line-strong); }
.tt-track-label { grid-column: 1; display: flex; align-items: center; font: 12px / 1 var(--font-mono); color: var(--muted); }
.tt-track-label--v2 { grid-row: 2; }
.tt-track-label--v1 { grid-row: 3; }
.tt-track-label--a1 { grid-row: 4; }
.tt-titles { grid-column: 2; grid-row: 2; position: relative; }
.tt-titles::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid var(--line); }
.tt-title-clip {
  position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: calc(var(--w) * 1%);
  background: var(--label); border: 1px solid rgb(15 19 31 / .10);
}
.tt-filmstrip { grid-column: 2; grid-row: 3; display: flex; gap: 2px; min-width: 0; }
.tt-shot { flex: var(--w) 1 0; position: relative; min-width: 0; overflow: hidden; background: var(--surface); padding: 0; border: 0; border-radius: 0; appearance: none; }
.tt-shot__bar { position: absolute; inset: 0 0 auto; height: 5px; z-index: 2; background: var(--label); }
.tt-shot__images { display: flex; width: 100%; height: 100%; padding-top: 5px; overflow: hidden; }
.tt-shot__images img {
  height: 100%; width: auto; max-width: none; flex: 0 0 auto;
  aspect-ratio: 16 / 9; object-fit: cover; border-right: 1px solid rgb(255 255 255 / .2);
}
.tt-shot__check, .tt-shot__cross {
  position: absolute; right: 5px; bottom: 5px; width: 18px; height: 18px; z-index: 3;
  padding: 3px; background: var(--paper); color: var(--jade-ink);
}
.tt-shot__cross { display: none; background: var(--signal-ink); color: #fff; }
.tt-shot[data-failed] { outline: 2px solid var(--signal-ink); outline-offset: -2px; z-index: 2; }
.tt-shot[data-failed] .tt-shot__bar { background: var(--signal-ink); }
.tt-shot[data-failed] .tt-shot__check { display: none; }
.tt-shot[data-failed] .tt-shot__cross { display: block; }
.tt-editor.is-playing .tt-shot:not(.is-placed), .tt-editor.is-playing .tt-title-clip:not(.is-placed) { opacity: 0; }
.tt-editor.is-playing .tt-shot:not(.is-done) .tt-shot__check { opacity: 0; }
.tt-editor.is-playing .tt-shot[data-failed]:not(.is-failed) { outline-color: transparent; }
.tt-editor.is-playing .tt-shot[data-failed]:not(.is-failed) .tt-shot__bar { background: var(--label); }
.tt-editor.is-playing .tt-shot[data-failed]:not(.is-failed) .tt-shot__check { display: block; }
.tt-editor.is-playing .tt-shot[data-failed]:not(.is-failed) .tt-shot__cross { display: none; }
.tt-waveform { grid-column: 2; grid-row: 4; min-width: 0; overflow: hidden; background: var(--cobalt-tint); border-top: 3px solid #a6bff8; }
.tt-waveform svg { width: 100%; height: 100%; color: #557ed1; }
.tt-playhead-space { position: absolute; left: var(--label-w); right: 1px; top: 20px; bottom: 0; pointer-events: none; z-index: 5; }
.tt-playhead { position: absolute; top: 0; bottom: 0; left: 100%; width: 0; }
.tt-editor.is-playing .tt-playhead { left: 0; }
.tt-playhead::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.tt-playhead svg { position: absolute; width: 10px; height: 9px; left: -5px; top: -6px; color: var(--ink); }
.tt-monitor__controls { display: flex; align-items: center; gap: 4px; }
.tt-monitor__controls[hidden], .tt-timeline__hint[hidden], .tt-monitor__badge[hidden] { display: none; }
.tt-step {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; border-radius: 0; color: inherit; cursor: pointer;
}
.tt-step svg { width: 16px; height: 16px; }
.tt-step:hover { background: rgb(255 255 255 / .12); }
.tt-step:focus-visible { outline: 2px solid var(--night-cobalt); outline-offset: -4px; }
.is-interactive .tt-monitor__chrome { padding-block: 0; }
.is-interactive .tt-monitor__format { display: none; }
.is-interactive .tt-shot { cursor: pointer; }
.is-interactive .tt-shot:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -3px; z-index: 6; }
.is-interactive .tt-shot.is-selected::after {
  content: ""; position: absolute; inset: 6px 3px 3px; border: 1px solid #fff;
  box-shadow: 0 0 0 1px rgb(15 19 31 / .6); pointer-events: none;
}
.tt-timeline__hint { font-size: 10px; font-style: normal; letter-spacing: .02em; }
@media (max-width: 1199px) { .tt-timeline { --v1-h: 70px; --a1-h: 28px; } }
@media (max-width: 899px) {
  .tt-monitor { justify-self: start; width: min(100%, 520px); }
  .tt-timeline { --v1-h: 64px; --v2-h: 18px; --a1-h: 26px; }
}
@media (max-width: 639px) {
  .tt-timeline { --label-w: 26px; --v1-h: 50px; --v2-h: 16px; --a1-h: 24px; --track-gap: 6px; }
  .tt-monitor__chrome { min-height: 30px; padding: 8px 10px; }
  .tt-shot__bar { height: 3px; }
  .tt-shot__images { padding-top: 3px; }
  .tt-shot__check, .tt-shot__cross { width: 13px; height: 13px; padding: 2px; bottom: 3px; right: 2px; }
  .tt-monitor__badge { width: 26px; height: 26px; top: 10px; right: 10px; }
}
@media (forced-colors: active) {
  .tt-shot[data-failed] { outline-color: Highlight; }
  .tt-monitor__badge, .tt-shot__cross { forced-color-adjust: none; }
}
