.editor-full {
  width: min(1600px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.75rem 0 2rem;
}

.editor-full .tool-page-header {
  margin-bottom: 0.75rem;
}

.editor-full .tool-page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.editor-full .panel {
  padding: 1rem;
}

.cap-wrap {
  display: grid;
  gap: 0.85rem;
}

.cap-preview {
  background: #0b0d12;
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  height: min(72vh, calc(100vh - 280px));
  display: grid;
  place-items: center;
  position: relative;
}

.cap-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.cap-preview .placeholder {
  color: #9aa3af;
  text-align: center;
  padding: 2rem;
}

.cap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cap-toolbar input[type="text"],
.cap-toolbar select,
.cap-toolbar input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 600;
  background: #fff;
}

.time-input {
  width: 6.2rem;
  text-align: center;
}

.tl {
  background: #12151c;
  color: #e8eaed;
  border-radius: 14px;
  padding: 0.75rem;
  overflow: auto;
  max-height: none;
}

.tl-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.tl-zoom label {
  font-size: 0.8rem;
  color: #9aa3af;
  font-weight: 700;
}

.tl-body {
  position: relative;
  min-width: 100%;
}

.tl-ruler-wrap {
  position: relative;
  height: 30px;
  margin-left: 78px;
  border-bottom: 1px solid #2a3140;
  overflow: hidden;
}

.tl-ruler {
  position: relative;
  height: 100%;
}

.tl-ruler span {
  position: absolute;
  top: 6px;
  font-size: 10px;
  color: #8b93a7;
  transform: translateX(-50%);
  pointer-events: none;
}

.tl-tracks {
  position: relative;
  margin-top: 0.35rem;
}

.tl-track {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  min-height: 64px;
}

.tl-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 8px;
  background: #1c2230;
  color: #c9d0dc;
}

.tl-label.v { color: #7dd3fc; }
.tl-label.a { color: #86efac; }
.tl-label.t { color: #fcd34d; }
.tl-label.fx { color: #e879f9; }
.tl-label.tr { color: #fb7185; }

.tl-lane {
  position: relative;
  height: 64px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 48px
    ),
    #0e1118;
  border: 1px solid #2a3140;
  overflow: hidden;
}

.tl-lane.text-lane,
.tl-lane.fx-lane,
.tl-lane.tr-lane {
  height: 48px;
}

.tl-clip {
  position: absolute;
  top: 8px;
  height: 48px;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.tl-clip.video { background: linear-gradient(90deg, #0369a1, #0ea5e9); }
.tl-clip.audio { background: linear-gradient(90deg, #15803d, #22c55e); }
.tl-clip.text { background: linear-gradient(90deg, #a16207, #f59e0b); }
.tl-clip.fx { background: linear-gradient(90deg, #a21caf, #e879f9); }
.tl-clip.tr { background: linear-gradient(90deg, #be123c, #fb7185); }

.tl-lane.fx-lane .tl-clip,
.tl-lane.tr-lane .tl-clip,
.tl-lane.text-lane .tl-clip {
  top: 6px;
  height: 36px;
}

.tl-clip.selected {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px rgba(229, 50, 45, 0.75);
  z-index: 3;
}

.tl-clip .name {
  font-size: 11px;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.tl-handle {
  position: absolute;
  top: 0;
  width: 10px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  cursor: ew-resize;
}

.tl-handle.left { left: 0; }
.tl-handle.right { right: 0; }

.tl-playhead-layer {
  position: absolute;
  inset: 0 0 0 78px;
  pointer-events: none;
  z-index: 8;
}

.tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  pointer-events: auto;
  cursor: ew-resize;
}

.tl-playhead .hit {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  width: 30px;
  cursor: ew-resize;
}

.tl-playhead .knob {
  position: absolute;
  top: -1px;
  left: -9px;
  width: 20px;
  height: 20px;
  border-radius: 4px 4px 6px 6px;
  background: #ef4444;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tl-help {
  margin-top: 0.65rem;
  color: #9aa3af;
  font-size: 0.82rem;
  line-height: 1.45;
}

.side-opts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.side-opts label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.side-opts select,
.side-opts input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 600;
  background: #fff;
  width: 100%;
}

.inline-add {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.inline-add select,
.inline-add input {
  flex: 1;
  min-width: 0;
}

.volume-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
}

.volume-title {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
}

.volume-grid label {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}

.volume-grid input[type="range"] {
  width: 100%;
}

.volume-grid span {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 2.6rem;
  text-align: right;
}

@media (max-width: 900px) {
  .side-opts {
    grid-template-columns: 1fr 1fr;
  }
  .volume-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cap-preview {
    height: min(55vh, calc(100vh - 260px));
    min-height: 280px;
  }
}

.editor-full .tool-page-header p {
  margin-bottom: 0.35rem;
}

.add-video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
