#editor header { margin-bottom: 1.4rem; }
.editor-demo {
  border: 1px solid #b9bfce;
  border-radius: 7px;
  background: var(--card);
  overflow: hidden;
}
.editor-toolbar, .editor-inspector, #editor .cut-demo { padding: clamp(.85rem, 2vw, 1.5rem); }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.editor-demo label { font-size: .92rem; font-weight: 600; }
.editor-toolbar > label:not(.editor-check) { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.editor-demo select {
  display: block;
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  padding: .4rem .55rem;
  color: var(--ink);
  background: white;
  border: 1px solid #9ca6bc;
  border-radius: 4px;
}
.editor-check { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; cursor: pointer; }
.editor-check input { width: 1.05rem; height: 1.05rem; margin: 0; padding: 0; accent-color: var(--blue); }
.editor-workbench { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.editor-monitor {
  --monitor-height: clamp(16rem, 32vw, 25rem);
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  padding: .6rem;
  background: #172138;
}
.editor-frame {
  --ratio: 1.77778;
  position: relative;
  width: min(100%, calc(var(--monitor-height) * var(--ratio)));
  aspect-ratio: var(--ratio);
  overflow: hidden;
  background: #080b13;
}
#editor #cut-video {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: #080b13;
  object-view-box: inset(var(--crop, 0%));
}
#cut-video[data-caption="classic"]::cue { color: white; background: #141b29e6; }
#cut-video[data-caption="signal"]::cue { color: #ffef48; font-weight: 800; background: #111; }
#cut-video[data-caption="paper"]::cue { color: #172138; font-weight: 700; background: #fff6d6; }
#editor-safe-guide { position: absolute; pointer-events: none; inset: 12% 9% 17%; border: 1px dashed white; box-shadow: 0 0 0 1px #121b32a6; }
#editor-zoom-transport {
  position: absolute; inset: auto .6rem .6rem; display: flex; align-items: center; gap: .6rem;
  padding: .35rem; border-radius: 4px; background: #111a2eea; color: white;
}
#editor-zoom-transport label { flex: 1; display: flex; gap: .4rem; align-items: center; }
.editor-tools { border: 0; padding: 0; margin: 0 0 1rem; }
.editor-tools legend { font-size: 1.3rem; font-weight: 700; letter-spacing: -.04em; margin-bottom: .7rem; }
.editor-tools > div { display: flex; flex-wrap: wrap; gap: .23rem; border-bottom: 1px solid var(--line); }
.editor-tools label {
  position: relative; display: grid; align-items: center;
  min-height: 44px; padding: .45rem .65rem; border-bottom: 3px solid transparent; cursor: pointer;
}
.editor-tools input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.editor-tools label:has(:checked) { color: var(--blue); background: #edf0ff; border-bottom-color: var(--blue); }
.editor-tools label:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.editor-fields { display: grid; align-content: start; gap: .75rem; }
.editor-fields select { margin-top: .25rem; width: 100%; }
.editor-fields small { color: var(--muted); }
.editor-fields output { float: right; font-weight: 500; color: var(--muted); }
.editor-demo input[type="range"] { display: block; width: 100%; min-height: 28px; margin: .1rem 0 0; padding: 0; accent-color: var(--blue); }
.editor-fields button, #editor-zoom-transport button {
  justify-self: start; min-height: 44px; padding: .45rem .85rem;
  background: white; color: var(--ink); border: 1px solid #9ca6bc; border-radius: 4px;
}
#editor .cut-demo { border: 0; border-top: 1px solid var(--line); }
#editor .trim-ruler { height: 1.15rem; margin: .75rem 0; }
#editor .cut-fields { max-width: 32rem; margin-bottom: .85rem; }
@media (max-width: 720px) {
  .editor-workbench { grid-template-columns: 1fr; }
  .editor-monitor { min-height: 15rem; --monitor-height: 16rem; }
}
@media (max-width: 480px) {
  .editor-toolbar > label:not(.editor-check) { flex-direction: column; align-items: stretch; gap: .25rem; width: 100%; }
  .editor-tools label { flex: 1 1 auto; justify-content: center; padding-inline: .4rem; }
}
