/* Video editor — extends studio shell */
body.video-editor-layout .app.video-editor-app {
  grid-template: 52px minmax(0, 1fr) / 168px minmax(0, 1fr);
  min-height: 100vh;
}

.video-editor-panel {
  grid-column: 2;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: var(--d-bg,#0b101b);
  overflow: hidden;
}

.video-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--d-border,#2c3446);
  background: var(--d-bg,#0b101b);
}

.video-editor-back {
  border: 1px solid var(--d-border,#2c3446);
  background: var(--c-text,#191f28);
  color: var(--c-gray-300,#c5cbe0);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.video-editor-back:hover {
  border-color: #6878ff;
  color: #fff;
}

.video-editor-title-input {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  border: 1px solid var(--d-border,#2c3446);
  background: var(--d-surface,#121725);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  font: inherit;
}

.video-editor-title-input:focus {
  outline: none;
  border-color: #6878ff;
}

.video-editor-save-status {
  color: var(--d-text-3,#8492ad);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.video-editor-export {
  margin-left: auto;
  border: 0;
  background: linear-gradient(115deg, #704bff, #287cf0);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.video-editor-export:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.video-editor-export-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 6, 12, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}

.video-editor-export-modal[hidden] {
  display: none;
}

.video-editor-export-dialog {
  width: min(440px, 100%);
  background: var(--d-surface,#121725);
  border: 1px solid var(--d-border,#2c3446);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px #000a;
}

.video-editor-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-editor-export-head h2 {
  margin: 0;
  font-size: 16px;
}

.video-editor-export-close {
  border: 0;
  background: transparent;
  color: var(--d-text-2,#aab4ca);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.video-editor-export-note {
  margin: 10px 0 14px;
  color: var(--d-text-3,#8492ad);
  font-size: 12px;
  line-height: 1.5;
}

.video-editor-export-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--d-border,#2c3446);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13px;
}

.video-editor-export-status {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--d-bg,#0b101b);
  border: 1px solid var(--d-border,#2c3446);
}

.video-editor-export-state {
  font-weight: 800;
  font-size: 13px;
  color: var(--d-link,#8ea8ff);
}

.video-editor-export-state.failed {
  color: #ff8e8e;
}

.video-editor-export-state.succeeded {
  color: #7dffb0;
}

.video-editor-export-msg {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--d-text-2,#aab4ca);
  line-height: 1.5;
}

.video-editor-export-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--d-primary,#7094ff);
  font-weight: 700;
  font-size: 12px;
}

.video-editor-export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.video-editor-export-go {
  border: 0;
  background: linear-gradient(115deg, #704bff, #287cf0);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.video-editor-export-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.video-editor-undo {
  border: 1px solid var(--d-border,#2c3446);
  background: var(--c-text,#191f28);
  color: var(--c-gray-300,#c5cbe0);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  font: inherit;
}

.video-editor-undo:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.video-editor-preview-badge {
  font-size: 11px;
  font-weight: 700;
  color: #9b80ff;
  background: var(--c-navy,#172140);
  border: 1px solid #4a3d78;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.video-editor-clip-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--d-border,#2c3446);
}

.video-editor-ctl {
  border: 1px solid var(--d-border,#2c3446);
  background: var(--c-text,#191f28);
  color: var(--c-gray-300,#c5cbe0);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.video-editor-ctl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.video-editor-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--d-text-2,#aab4ca);
}

.video-editor-vol input {
  width: 72px;
}

.video-editor-speeds {
  display: flex;
  gap: 4px;
}

.video-editor-speed {
  border: 1px solid var(--d-border,#2c3446);
  background: var(--c-text,#191f28);
  color: var(--c-gray-300,#c5cbe0);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.video-editor-speed.on {
  border-color: #6878ff;
  background: #243158;
  color: #fff;
}

.video-editor-speed:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.video-editor-modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--d-border,#2c3446);
  background: var(--d-bg,#0b101b);
}

.video-editor-modes a {
  border: 1px solid var(--d-border,#2c3446);
  background: var(--c-text,#191f28);
  color: var(--c-gray-300,#c5cbe0);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  text-decoration: none;
  font-weight: 700;
}

.video-editor-modes a.active {
  background: var(--c-navy,#172140);
  color: #fff;
  border-color: #6878ff;
}

.video-editor-shell {
  min-height: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 302px;
  background: radial-gradient(circle at 50% -30%, #202450 0, transparent 36%), var(--d-bg,#0b101b);
}

.video-editor-assets {
  padding: 17px 11px;
  border-right: 1px solid var(--d-border,#2c3446);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.video-editor-clip {
  width: 56px;
  height: 74px;
  border-radius: 9px;
  background: linear-gradient(155deg, #f2a06f, #583d5b 38%, var(--c-navy,#172140) 68%, var(--d-bg,#0b101b));
  position: relative;
  overflow: hidden;
  border: 2px solid #6a7eff;
}

.video-editor-clip:after {
  content: "";
  position: absolute;
  inset: 43% 0 0;
  background: linear-gradient(150deg, transparent 20%, var(--d-surface,#121725) 23% 26%, transparent 29%);
  opacity: 0.9;
}

.video-editor-add {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--d-surface,#121725);
  border: 1px dashed var(--c-text-2,#4e5968);
  color: var(--d-text-2,#aab4ca);
  font-size: 23px;
  cursor: pointer;
}
.video-editor-layer-count{font-size:10px;color:var(--d-primary,#7094ff);white-space:nowrap;writing-mode:vertical-rl;transform:rotate(180deg)}
.video-editor-layer-count.is-full{color:var(--d-text,#e8edf7)}

.video-editor-workspace {
  min-width: 0;
  padding: 24px 27px 18px;
  display: grid;
  grid-template-rows: minmax(340px, 1fr) auto;
  gap: 17px;
}

.video-editor-stage {
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-editor-preview {
  width: min(83%, 1040px);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 265px);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(142deg, #e3aa89 0%, #a66c5d 20%, #343c5c 54%, var(--d-surface,#121725) 100%);
  box-shadow: 0 17px 50px #0009;
  position: relative;
}

.video-editor-preview:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 36%, #ffdbac 0 3%, transparent 13%),
    linear-gradient(113deg, transparent 0 25%, #291a26b8 27% 40%, transparent 44%),
    linear-gradient(0deg, #0c172ba3, transparent 56%);
}

.video-editor-preview:after {
  content: "AI MOV · PREVIEW";
  position: absolute;
  left: 16px;
  top: 14px;
  border-radius: 6px;
  padding: 5px 8px;
  background: #0e1225bd;
  color: #c7cffd;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
}

.video-editor-prompt {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: min(690px, 82%);
  padding: 11px 13px 13px;
  border: 1px solid var(--d-border,#2c3446);
  border-radius: 17px;
  background: #191c26f3;
  box-shadow: 0 10px 22px #0008;
}

.video-editor-tools {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.video-editor-tool {
  padding: 7px 11px;
  border-radius: 8px;
  background: transparent;
  color: var(--d-text-2,#aab4ca);
  font-size: 13px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.video-editor-tool.active {
  background: var(--d-border,#2c3446);
  color: #fff;
}

.video-editor-promptrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--d-text-3,#8492ad);
  font-size: 14px;
}

.video-editor-promptrow input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  flex: 1;
  font: inherit;
  min-width: 0;
}

.video-editor-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-violet,#6a4cf0);
  color: #fff;
  font-size: 16px;
  border: 0;
  cursor: pointer;
}

.video-editor-timeline {
  background: var(--d-bg,#0b101b);
  border: 1px solid var(--d-border,#2c3446);
  border-radius: 14px;
  padding: 13px 16px;
  position: relative;
}

.video-editor-timeline-head {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 750;
  font-size: 14px;
}

.video-editor-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-bg-subtle,#eef1f4);
  color: var(--d-bg,#0b101b);
  border: 0;
  cursor: pointer;
}

.video-editor-time {
  color: var(--d-text-3,#8492ad);
  font-weight: 500;
}

.video-editor-tracks {
  position: relative;
  height: 53px;
  min-height: 53px;
}

.video-editor-tl-clip {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  background: linear-gradient(147deg, #e6a77c, #805a62 42%, var(--d-border,#2c3446) 58%, var(--d-bg,#0b101b));
  border-top: 2px solid #8f79ff;
  overflow: hidden;
  cursor: pointer;
  min-width: 6px;
}

.video-editor-tl-clip.audio {
  top: 28px;
  height: 22px;
  background: linear-gradient(147deg, #6a8fd8, #243158);
  border-top-color: var(--d-primary,#7094ff);
  cursor:grab;
}
.video-editor-tl-clip.audio.is-dragging{
  cursor:grabbing;
  opacity:.85;
}

.video-editor-tl-clip.image {
  background: linear-gradient(147deg, #c8a0e8, #584868 42%, var(--d-border,#2c3446));
}

.video-editor-tl-clip.on {
  box-shadow: inset 0 0 0 2px #fff, 0 0 12px #8b76ff88;
  z-index: 2;
}

.video-editor-tl-label {
  position: absolute;
  left: 6px;
  top: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px #000a;
  pointer-events: none;
}

.video-editor-frame {
  height: 53px;
  min-width: 52px;
  flex: 1 0 52px;
  background: linear-gradient(147deg, #e6a77c, #805a62 42%, var(--d-border,#2c3446) 58%, var(--d-bg,#0b101b));
  position: relative;
}

.video-editor-frame:nth-child(3n) {
  filter: saturate(0.65) brightness(0.8);
}

.video-editor-frame:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 2px solid #8f79ff;
}

.video-editor-scrubber {
  position: absolute;
  top: 0;
  left: 0;
  height: 53px;
  width: 0;
  z-index: 4;
  pointer-events: none;
}

.video-editor-scrubber:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: #ff8c42;
  box-shadow: 0 0 10px rgba(255, 120, 40, 0.55);
  pointer-events: none;
}

.video-editor-scrubber-hit {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0;
  width: 20px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.video-editor-scrubber-hit:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #ff8c42;
  border: 2px solid var(--c-warning-soft,#fff4e5);
  box-shadow: 0 0 10px rgba(255, 120, 40, 0.75);
}

.video-editor-scrubber-hit:active,
.video-editor-scrubber.dragging .video-editor-scrubber-hit {
  cursor: grabbing;
}

.video-editor-trim-wrap.cut-mode .video-editor-scrubber:before {
  width: 3px;
  margin-left: -1.5px;
  background: #ff6b1a;
  box-shadow: 0 0 14px rgba(255, 90, 20, 0.75);
}

.video-editor-trim-wrap.cut-mode .video-editor-scrubber-hit:before {
  background: #ff6b1a;
  border-color: #fff;
  transform: scale(1.12);
}

.video-editor-preview.has-video:before,
.video-editor-preview.has-video:after {
  display: none;
}

.video-editor-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.video-editor-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.video-editor-audio {
  display: none;
}

.video-editor-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: #c7cffd;
  font-size: 14px;
  line-height: 1.6;
  z-index: 2;
}

.video-editor-empty a {
  color: var(--d-primary,#7094ff);
  font-weight: 700;
}
.video-editor-load-assets{border:1px solid var(--d-primary,#7094ff);border-radius:9px;background:var(--c-navy,#172140);color:var(--d-text,#e8edf7);padding:9px 13px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.video-editor-load-assets:hover{background:var(--d-primary,#7094ff);color:var(--c-navy,#172140)}
.video-editor-owned-assets{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;width:min(560px,100%);max-height:190px;overflow-y:auto;margin-top:12px;padding:2px;scrollbar-width:thin;scrollbar-color:var(--d-primary,#7094ff) var(--c-navy,#172140)}
.video-editor-owned-assets[hidden]{display:none}
.video-editor-owned-assets::-webkit-scrollbar{width:7px}
.video-editor-owned-assets::-webkit-scrollbar-track{background:var(--c-navy,#172140);border-radius:8px}
.video-editor-owned-assets::-webkit-scrollbar-thumb{background:var(--d-primary,#7094ff);border-radius:8px}
.video-editor-owned-asset{display:flex;flex-direction:column;gap:5px;min-width:0;padding:0;border:1px solid var(--d-primary,#7094ff);border-radius:8px;background:var(--c-navy,#172140);color:var(--d-text,#e8edf7);overflow:hidden;text-align:left;cursor:pointer}
.video-editor-owned-asset:hover{background:var(--d-primary,#7094ff);color:var(--c-navy,#172140)}
.video-editor-owned-asset video{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--d-bg,#0b101b);display:block}
.video-editor-owned-asset span{padding:0 7px 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700}

.video-editor-title-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--d-text,#e8edf7);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
}

.video-editor-title-input:focus {
  outline: 1px solid #6878ff;
  background: var(--d-surface,#121725);
}

.video-editor-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--d-border,#2c3446);
  background: var(--d-surface,#121725);
  color: var(--d-text,#e8edf7);
  cursor: pointer;
  font: inherit;
}

.video-editor-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.video-editor-trim-wrap {
  margin-top: 11px;
  position: relative;
  cursor: pointer;
}

.video-editor-trim-wrap .video-editor-tracks {
  margin-top: 0;
}

.video-editor-trim-wrap .video-editor-scrubber {
  top: 0;
  height: 53px;
  bottom: auto;
}

.video-editor-trim-wrap .video-editor-trim-track {
  position: relative;
}

.video-editor-trim-track {
  position: relative;
  height: 53px;
  border-radius: 7px;
  background: var(--d-surface-2,#1d2230);
  overflow: hidden;
  touch-action: none;
}

.video-editor-trim-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(8, 10, 18, 0.72);
  pointer-events: none;
}

.video-editor-trim-shade.left {
  left: 0;
}

.video-editor-trim-shade.right {
  right: 0;
}

.video-editor-trim-range {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(147deg, #e6a77c, #805a62 42%, var(--d-border,#2c3446) 58%, var(--d-bg,#0b101b));
  border-top: 2px solid #8f79ff;
  pointer-events: none;
}

.video-editor-trim-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  margin-left: -7px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  z-index: 3;
  touch-action: none;
}

.video-editor-trim-handle:before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 8px #8b76ff;
}

.video-editor-export:disabled,
.video-editor-send:disabled,
.video-editor-play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.video-editor-inspector {
  border-left: 1px solid var(--d-border,#2c3446);
  padding: 20px 18px;
  background: var(--d-bg,#0b101b);
  overflow-y: auto;
}

.video-editor-inspector-title {
  font-size: 13px;
  color: var(--d-primary,#7094ff);
  font-weight: 800;
  letter-spacing: 0.07em;
  margin: 4px 0 16px;
}

.video-editor-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 15px;
  background: var(--d-surface,#121725);
  border-radius: 12px;
  margin-bottom: 10px;
  text-align: left;
  font-weight: 700;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.video-editor-option small {
  margin-left: auto;
  color: #df6cc2;
  background: #3b2038;
  border-radius: 5px;
  padding: 4px 6px;
}

.video-editor-option .chev {
  margin-left: auto;
  color: var(--d-text-2,#aab4ca);
}

.video-editor-option.open {
  border: 1px solid #5d5ee8;
  background: linear-gradient(110deg, var(--c-navy,#172140), var(--d-surface,#121725));
}

.video-editor-sub {
  margin: -3px 0 10px;
  padding: 13px 15px;
  background: var(--d-surface,#121725);
  border: 1px solid var(--d-border,#2c3446);
  border-radius: 10px;
  color: var(--d-text-2,#aab4ca);
  font-size: 13px;
  line-height: 1.55;
}

.video-editor-sub b {
  color: var(--c-primary-tint,#dbe4ff);
}

.video-editor-crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--d-text-2,#aab4ca);
  font-size: 14px;
  min-width: 0;
  padding: 0 14px 10px;
}

.video-editor-crumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--d-text,#e8edf7);
}

.video-editor-export {
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(115deg, #704bff, #287cf0);
  font-weight: 750;
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.video-editor-mobile-actions {
  display: none;
}

@media (max-width: 1100px) {
  body.video-editor-layout .app.video-editor-app {
    grid-template-rows: 52px minmax(0, 1fr);
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .video-editor-shell {
    grid-template-columns: 58px 1fr;
  }

  .video-editor-inspector {
    display: none;
  }

  .video-editor-workspace {
    padding: 18px 12px 12px;
    grid-template-rows: minmax(330px, 1fr) auto;
  }

  .video-editor-preview {
    width: 100%;
    max-height: none;
  }

  .video-editor-prompt {
    width: 92%;
    bottom: -68px;
  }

  .video-editor-stage {
    padding-bottom: 54px;
  }

  .video-editor-mobile-actions {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding-bottom: 3px;
  }

  .video-editor-icon-btn {
    width: 40px;
    height: 40px;
  }

  .video-editor-trim-handle {
    width: 22px;
    margin-left: -11px;
  }

  .video-editor-trim-handle:before {
    width: 4px;
    margin-left: -2px;
  }
}

.video-editor-model {
  max-width: 140px;
  border: 1px solid var(--d-border,#2c3446);
  background: var(--c-text,#191f28);
  color: var(--c-primary-tint,#dbe4ff);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 11px;
}

.video-editor-estimate {
  font-size: 11px;
  font-weight: 800;
  color: var(--d-link,#8ea8ff);
  white-space: nowrap;
}

.video-editor-ai-meta {
  font-size: 13px;
  color: var(--d-text-2,#aab4ca);
  line-height: 1.55;
  margin: 8px 0 12px;
}

.video-editor-ai-preview {
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  background: #000;
  margin: 8px 0 14px;
}

.video-editor-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-editor-ai-actions .video-editor-export-go,
.video-editor-ai-actions .video-editor-ctl {
  flex: 1 1 140px;
}

.video-editor-panel-note {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--d-text-2,#aab4ca);
}

.video-editor-panel-note.warn {
  color: #c9b8a8;
}

.video-editor-panel-note b {
  color: var(--c-primary-tint,#dbe4ff);
}

.video-editor-panel-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.video-editor-panel-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-border-strong,#dbe2ea);
  cursor: pointer;
}

.video-editor-panel-opt small {
  color: var(--d-text-3,#8492ad);
  font-size: 11px;
}

.video-editor-panel-estimate {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--d-link,#8ea8ff);
}

.video-editor-inspector-go {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(115deg, #704bff, #287cf0);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.video-editor-inspector-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.video-editor-option.open + .video-editor-sub {
  display: block;
}

.video-editor-sub[hidden] {
  display: none !important;
}

.video-editor-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--c-gray-300,#c5cbe0);
}

.video-editor-slider input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
}

.video-editor-slider span {
  font-size: 11px;
  font-weight: 800;
  color: var(--d-link,#8ea8ff);
}

.video-editor-talk {
  width: 100%;
  min-height: 72px;
  margin-bottom: 10px;
  border: 1px solid var(--d-border,#2c3446);
  border-radius: 8px;
  background: var(--d-surface,#121725);
  color: #fff;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}

.video-editor-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
}
