/* DARKMOVIE workspaces. Content colors inside the rendered frame stay untouched. */
.clips-app,
body > .clips-dialog {
  --vv-bg: #08080b;
  --vv-surface: #111115;
  --vv-raised: #17171d;
  --vv-text: #f3f2f6;
  --vv-muted: #9a98a5;
  --vv-border: rgb(255 255 255 / .095);
  --vv-shadow: transparent;
  --vv-accent: #9766f1;
  --vv-accent-hover: #a87bf4;
  --vv-accent-soft: rgb(151 102 241 / .13);
  --vv-on-accent: #fff;
  --vv-highlight: #c0a9f1;
  --vv-highlight-soft: rgb(151 102 241 / .13);
  --dm-font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dm-font-ui: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vv-success: #a7d9bc;
  --vv-success-soft: rgb(104 177 138 / .1);
  --vv-warning: #e5c79a;
  --vv-warning-soft: rgb(211 167 102 / .09);
  --vv-danger: #eea8b7;
  --vv-danger-soft: rgb(212 100 126 / .1);
  --vv-overlay: rgb(5 4 8 / .8);
  --clip-ink: var(--vv-text);
  --clip-orange: var(--vv-accent);
  --clip-paper: var(--vv-surface);
  --clip-panel: var(--vv-raised);
  --clip-sky: var(--vv-raised);
  --clip-muted: var(--vv-muted);
  --clip-line: var(--vv-border);
  --clip-rule: var(--vv-border);
  --clip-waveform: #c0a9f1;
  color: var(--vv-text);
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}
.clips-app *, body > .clips-dialog * { box-sizing: border-box; }
.clips-app :is(button, input, select, textarea), body > .clips-dialog :is(button, input, select, textarea) { font-family: inherit; }
.clips-app :is(h2, h3, h4), body > .clips-dialog :is(h2, h3, h4) { letter-spacing: -.035em; }
.clips-app :is(button, a, summary, input, select, textarea):focus-visible,
body > .clips-dialog :is(button, a, summary, input, select, textarea):focus-visible {
  outline: 2px solid #c0a9f1;
  outline-offset: 3px;
}
body.platform .clips-app .button,
body.platform > .clips-dialog .button {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--vv-border);
  border-radius: 10px;
  background: var(--vv-raised);
  color: var(--vv-text);
  box-shadow: none;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  white-space: normal;
}
body.platform .clips-app .button:hover:not(:disabled),
body.platform > .clips-dialog .button:hover:not(:disabled) { background: #211d2b; border-color: #a78ac64d; }
body.platform .clips-app :is(.button.primary, .button.clips-download),
body.platform > .clips-dialog .button.primary {
  background: linear-gradient(115deg, #9766f1, #8050db);
  color: #fff;
  border: 1px solid #b18ae34a;
  box-shadow: inset 0 1px 0 #ffffff18;
}
body.platform .clips-app :is(.button.primary, .button.clips-download):hover:not(:disabled),
body.platform > .clips-dialog .button.primary:hover:not(:disabled) { background: linear-gradient(115deg, #a77af4, #8c5ce0); }
body.platform .clips-app :is(.text-button, .clips-range),
body.platform > .clips-dialog .text-button { color: #c0a9f1; }
body.platform .clips-app .button:disabled, body.platform > .clips-dialog .button:disabled { opacity: .45; cursor: not-allowed; }
body.platform .clips-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
body.platform .clips-app :is(select, textarea),
body.platform > .clips-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not(.vv-editor-title),
body.platform > .clips-dialog :is(select, textarea) {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--vv-border);
  border-radius: 10px;
  background: var(--vv-raised);
  color: var(--vv-text);
  box-shadow: none;
  font-size: 13px;
  line-height: 1.5;
}
.clips-app input::placeholder, body > .clips-dialog :is(input, textarea)::placeholder { color: #85828f; opacity: 1; }
.clips-app :is(input[type="checkbox"], input[type="radio"], input[type="range"], progress),
body > .clips-dialog :is(input[type="checkbox"], input[type="radio"], input[type="range"], progress) { accent-color: #9766f1; }
.clips-app :is(.clips-project, .clips-candidate, .clips-original, .clips-config-source, .clips-config-section, .clips-config-checkout, .clips-preparation-card, .clips-automation, .clips-notice),
.clips-app .clips-home .clips-project {
  border: 1px solid var(--vv-border);
  border-radius: 20px;
  background: var(--vv-surface);
  box-shadow: none;
}
.clips-app .clips-project-body, .clips-app .clips-card-body { padding: 16px; }
.clips-app .clips-project-title, .clips-app .clips-candidate h4 { font-weight: 600; }
.clips-app .clips-candidate .clips-card-cover { border-radius: 19px 19px 0 0; }
.clips-app :is(.clips-count, .clips-badge, .clips-expiry, .clips-score, .clips-project-source) { border-radius: 6px; font-weight: 500; }
.clips-app :is(.clips-empty, .clips-home .clips-home-empty) { background: var(--vv-surface); border: 1px dashed #ffffff21; border-radius: 20px; }
.clips-app .clips-status-filters { gap: 6px; }
.clips-app .clips-status-filters button { border: 1px solid transparent; border-radius: 9px; color: var(--vv-muted); background: transparent; padding: 8px 13px; }
.clips-app .clips-status-filters button:is(.selected, [aria-pressed="true"]) { border-color: #9766f138; color: #d5c1f7; background: var(--vv-accent-soft); }
.clips-app :is(.clips-selection, .clips-storage-status, .clips-channel-items > li) { background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 14px; }
.clips-app .clips-limits { border-color: var(--vv-border); background: transparent; }
.clips-app .clips-limits summary { color: var(--vv-muted); }
.clips-app .clips-original, .clips-app .clips-config-source { gap: 20px; padding: 20px; }
.clips-app .clips-history { border-top: 1px solid var(--vv-border); padding-top: 12px; }
.clips-app .clips-card-menu-list { background: #1b1822; border-color: #ffffff1c; border-radius: 12px; box-shadow: 0 16px 48px #0008; }
.clips-app .clips-menu-item:hover:not(:disabled) { background: #9766f114; }
.clips-app .clips-card-select, .clips-app .clips-project-select { background: #111115de; border: 1px solid #ffffff26; border-radius: 10px; }
.clips-app .clips-auto-steps .is-current > span { color: #fff; background: #8050db; border-color: #9766f1; }
.clips-app .clips-auto-steps .is-complete > span { color: #c0a9f1; background: #9766f118; border-color: #9766f140; }
.clips-app .clips-review { border-radius: 10px; }
.clips-app .clips-review.is-approved { border-color: #a7d9bc25; background: var(--vv-success-soft); }
.clips-app .clips-automation.needs-attention { background: var(--vv-warning-soft); border-color: #e5c79a28; }
.clips-app .clips-config-section-title > span { color: #c0a9f1; background: #9766f118; border-radius: 9px; }
.clips-app .clips-strategy { background: var(--vv-raised); border: 1px solid var(--vv-border); border-radius: 12px; }
.clips-app .clips-strategy.is-selected { border: 1px solid #9766f180; background: #9766f116; box-shadow: inset 0 0 0 1px #9766f130; }
.clips-app .clips-strategy.is-selected :is(strong, .clips-strategy-symbol) { color: #d5c1f7; }
.clips-app .clips-config-checkout { background: linear-gradient(145deg, #18151f, #111115 70%); }
body.platform .clips-app .clips-config-cost { color: #c0a9f1; }
body.platform .clips-app .clips-redesign .clips-home-create {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--vv-border);
  border-radius: 20px;
  background: linear-gradient(120deg, #17151d, #101014 70%);
}
body.platform .clips-app .clips-redesign .clips-home-create h2 { color: var(--vv-text); font-size: clamp(26px, 3vw, 36px); font-weight: 650; letter-spacing: -.045em; }
body.platform .clips-app .clips-redesign .clips-home-url-field input { background: #08080ba6; border: 1px solid #ffffff1c; border-radius: 10px; box-shadow: none; }
body.platform .clips-app .clips-redesign #clips-home-generate { margin: 0; }
body.platform .clips-app .clips-redesign .clips-home-file { border: 1px solid var(--vv-border); background: #ffffff03; border-radius: 10px; }
.clips-app .clips-import-art { border-radius: 14px; }
/* The earlier source composer has ID-based artwork rules. Keep its layout,
   while replacing the charcoal, lime and pink treatments with studio tokens. */
body.platform #clips-home { --clip-pink: #9766f1; }
body.platform #clips-home .clips-home-create { background: linear-gradient(120deg, #17151d, #101014 70%); border-color: #ffffff18; border-radius: 20px; }
body.platform #clips-home #clips-home-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 650; }
body.platform #clips-home .clips-import-description { font-size: 13px; color: #9a98a5; }
body.platform #clips-home .clips-home-url-field input { background: #08080ba6; border-color: #ffffff21; }
body.platform #clips-home .clips-home-file { border-color: #ffffff21; }
body.platform #clips-home .clips-home-library { border-color: #ffffff14; }
body.platform #clips-home .clips-home-library-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.035em; }
body.platform #clips-home .clips-status-filters [aria-pressed="true"] { background: #9766f11c; color: #d5c1f7; border-color: #9766f138; }
body.platform #clips-home .clips-project { background: #111115; border-color: #ffffff18; border-radius: 20px; }
body.platform #clips-home .clips-project-body { padding: 16px; }
body.platform #clips-home .clips-project-title { font-size: 13px; font-weight: 550; }
body.platform #clips-home .clips-project-footer .text-button { border-color: #ffffff21; border-radius: 9px; color: #c0a9f1; font-weight: 500; }

/* All project dialogs are mounted on body, outside the application shell. */
body > dialog.clips-dialog {
  max-height: calc(100dvh - 40px);
  padding: 26px;
  border: 1px solid #ffffff1c;
  border-radius: 20px;
  background: linear-gradient(145deg, #19161f, #111115 65%);
  box-shadow: 0 28px 100px #0009;
}
body > dialog.clips-dialog::backdrop { background: #050408c9; backdrop-filter: blur(8px); }
body > .clips-dialog .clips-dialog-head { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--vv-border); }
body > .clips-dialog .clips-dialog-head h2 { font-size: 23px; font-weight: 600; }
body > .clips-dialog .clips-dialog-head [data-close-clips] { width: 40px; min-width: 40px; padding: 0; }
body > .clips-dialog :is(label, .clips-youtube-kids legend) { font-size: 12px; font-weight: 550; }
body > .clips-dialog :is(p, .fine) { line-height: 1.65; }
body > .clips-dialog :is(.fine, .clips-help > summary) { color: var(--vv-muted); }
body > .clips-dialog .error { color: var(--vv-danger); }
body > .clips-dialog .clips-file-label { border: 1px dashed #9766f150; background: #9766f108; border-radius: 14px; }
body > .clips-dialog .clips-source-choice .is-selected { color: #d5c1f7; border-color: #9766f16b; background: #9766f118; box-shadow: none; }
body > .clips-dialog .clips-transcribe { border: 1px solid #9766f13d; border-radius: 14px; background: #9766f10d; }
body > .clips-dialog .clips-transcript-preview { background: #08080b; border: 1px solid var(--vv-border); border-radius: 12px; color: var(--vv-muted); }
body > .clips-dialog .clips-analysis-price { padding-top: 16px; border-top: 1px solid var(--vv-border); }
body > .clips-dialog .clips-player { border-radius: 12px; overflow: hidden; background: #08080b; }
body > .clips-dialog :is(.clips-player video, .clips-video-frame) { max-width: 100%; }
body > .clips-dialog .clips-youtube-history { padding-left: 18px; overflow-wrap: anywhere; }

/* Editor chrome only: the video, caption, title and rendered layer styles are excluded. */
body > .clips-dialog.vv-editor-page { background: #08080b; color: #f3f2f6; }
.vv-editor-page .vv-editor { min-width: 0; }
.vv-editor-page :is(.vv-editor-bar, .vv-editor-rail, .vv-editor-panel, .vv-editor-inspector, .vv-editor-timeline) { background: #111115; border-color: #ffffff14; border-width: 1px; }
.vv-editor-page .vv-editor-bar { padding: 12px 18px; gap: 12px; }
body.platform > .vv-editor-page .vv-editor-title { background: transparent; border-color: transparent; border-radius: 8px; font-size: 14px; font-weight: 550; }
body.platform > .vv-editor-page .vv-editor-title:focus { border-color: #9766f180; background: #17171d; }
.vv-editor-page .vv-editor-status { color: #b8b1c6; font-size: 11px; opacity: 1; min-width: 90px; }
.vv-editor-page .vv-editor-status:is([data-state="error"], [data-state="conflict"]) { color: #eea8b7; }
.vv-editor-page .vv-editor-main { grid-template-columns: 76px 272px minmax(0, 1fr) 264px; }
.vv-editor-page .vv-editor-main:has(> .vv-editor-inspector[hidden]) { grid-template-columns: 76px 292px minmax(0, 1fr); }
.vv-editor-page :is(.vv-editor-panel, .vv-editor-inspector) { padding: 18px 16px; min-width: 0; }
.vv-editor-page :is(.vv-editor-panel, .vv-editor-inspector) :is(h3, h4) { color: #f3f2f6; font-weight: 600; }
.vv-editor-page :is(.vv-editor-panel, .vv-editor-inspector) .fine { font-size: 11px; line-height: 1.6; }
.vv-editor-page .vv-editor-rail { padding: 10px 7px; gap: 4px; }
.vv-editor-page .vv-editor-rail button { min-height: 48px; border-radius: 10px; color: #aaa5b5; font-size: 9px; gap: 5px; opacity: 1; }
.vv-editor-page .vv-editor-rail button[aria-pressed="true"] { color: #d1b8f5; background: #9766f11f; font-weight: 600; box-shadow: inset 0 0 0 1px #9766f121; }
.vv-editor-page .vv-editor-rail button:hover { background: #ffffff08; color: #f3f2f6; }
.vv-editor-page .vv-editor-stage { background: #08080b; padding: 24px; }
.vv-editor-page .vv-editor-frame { border: 1px solid #ffffff21; border-radius: 12px; box-shadow: 0 10px 38px #0005; }
.vv-editor-page :is(.vv-editor-chips button, .vv-editor-segment, .vv-editor-layer-item, .vv-editor-audio-item, .vv-editor-part) { border-color: #ffffff1c; background: #17171d; }
.vv-editor-page .vv-editor-chips button { font-size: 11px; line-height: 1.4; min-height: 32px; }
.vv-editor-page .vv-editor-chips button:hover:not(:disabled) { color: #d1b8f5; border-color: #9766f180; background: #9766f110; }
.vv-editor-page .vv-editor-subtabs { background: #08080b; }
.vv-editor-page .vv-editor-subtabs button { min-height: 36px; font-size: 12px; }
.vv-editor-page .vv-editor-subtabs button[aria-pressed="true"] { color: #d1b8f5; background: #9766f11f; }
.vv-editor-page .vv-editor-segment.is-current { border-color: #9766f17a; }
.vv-editor-page .vv-editor-word { background: #9766f124; }
.vv-editor-page .vv-editor-word.is-chosen { background: #8050db; color: #fff; }
.vv-editor-page .vv-editor-layer-item.is-selected { background: #9766f120; border-color: #9766f17a; color: #d5c1f7; }
.vv-editor-page .vv-editor-picker-item:is(:hover, :focus-visible) { border-color: #9766f1; }
.vv-editor-page .vv-editor-layer-box { border-color: #c0a9f1; }
.vv-editor-page .vv-editor-layer-resize { background: #9766f1; border-color: #f3f2f6; }
.vv-editor-page .vv-editor-timeline { padding: 12px 18px; min-width: 0; }
.vv-editor-page .vv-editor-timebar { gap: 10px; margin-bottom: 10px; }
.vv-editor-page .vv-editor-track { background: #24212c; border: 1px solid #ffffff21; border-radius: 9px; }
.vv-editor-page .vv-editor-selection { border-color: #b494ef; background: #9766f119; box-shadow: 0 0 0 9999px #08080b80; }
.vv-editor-page .vv-editor-handle { background: #9766f1; }
.vv-editor-page .vv-editor-playhead { background: #f3f2f6; }
.vv-editor-page .vv-editor-cuts span { background: repeating-linear-gradient(135deg, #08080bcc, #08080bcc 4px, #9766f180 4px, #9766f180 8px); }
.vv-editor-page .vv-editor-blocks span { border-color: #9766f180; }
.vv-editor-page .vv-editor-blocks span.is-selected { border-color: #d7c1ff; box-shadow: inset 0 0 0 1px #9766f1; }
.vv-editor-page .vv-editor-caption-lane button { background: #bda7db; color: #17131e; }
.vv-editor-page .vv-editor-audio-lane button { background: #9dbbcf; color: #10151b; }
.vv-editor-page .vv-editor-layer-bar { background: #aca0c5; color: #15111e; border-color: #ffffff20; }
.vv-editor-page .vv-editor-layer-bar.is-selected { background: #9766f1; color: #fff; }
.vv-editor-page .vv-editor-timetools button { min-width: 34px; min-height: 34px; }
.vv-editor-page .vv-editor-range { font-size: 10px; color: var(--vv-muted); overflow-wrap: anywhere; }
.vv-editor-page .vv-editor-ruler { overflow: hidden; height: 22px; }

@media (max-width: 1150px) and (min-width: 861px) {
  .vv-editor-page .vv-editor-main, .vv-editor-page .vv-editor-main:has(> .vv-editor-inspector[hidden]) { grid-template-columns: 72px 250px minmax(0, 1fr); }
  .vv-editor-page .vv-editor-inspector { grid-column: 2 / -1; border-left: 0; border-top: 1px solid #ffffff14; max-height: 32dvh; }
  .vv-editor-page .vv-editor-status { min-width: 70px; max-width: 100px; }
}
@media (max-width: 860px) {
  body > .clips-dialog.vv-editor-page { overflow-y: auto; overflow-x: clip; }
  .vv-editor-page .vv-editor-main, .vv-editor-page .vv-editor-main:has(> .vv-editor-inspector[hidden]) { display: contents; }
  .vv-editor-page .vv-editor-stage { height: clamp(240px, 42dvh, 440px); padding: 18px; }
  .vv-editor-page .vv-editor-bar { padding: 12px; }
  .vv-editor-page .vv-editor-tools { flex-wrap: wrap; gap: 8px; min-width: 0; }
  .vv-editor-page .vv-editor-status { min-width: 0; }
  .vv-editor-page .vv-editor-rail { overflow-x: auto; max-width: 100%; padding: 8px; gap: 4px; }
  .vv-editor-page .vv-editor-rail button { flex: 0 0 64px; min-height: 48px; }
  .vv-editor-page :is(.vv-editor-panel, .vv-editor-inspector) { overflow: visible; max-height: none; width: 100%; padding: 20px 16px; }
  .vv-editor-page .vv-editor-timebar { flex-wrap: wrap; }
  .vv-editor-page .vv-editor-timetools { flex-wrap: wrap; max-width: 100%; min-width: 0; }
  .vv-editor-page .vv-editor-timetools button { min-width: 38px; min-height: 38px; }
  .vv-editor-page .vv-editor-timeline { overflow-x: clip; }
}
@media (max-width: 600px) {
  .clips-app .clips-config-source { padding: 14px; gap: 12px; }
  .clips-app .clips-config-cover { width: 96px; }
  .clips-app .clips-original { padding: 16px; gap: 14px; }
  .clips-app .clips-gallery-filters { gap: 10px; }
  .clips-app .clips-gallery-filters label { min-width: 0; }
  .clips-app .clips-gallery-filters select { max-width: 100%; }
  .clips-app .clips-home-library-tools { width: 100%; }
  .clips-app :is(.clips-config-section, .clips-config-checkout) { padding: 18px; }
  .clips-app .clips-home-limits .clips-home-rights { white-space: normal; }
  .clips-app .clips-job { flex-wrap: wrap; gap: 12px; }
  .clips-app .clips-job .clips-actions { justify-content: flex-start; }
  .clips-app .clips-auto-steps { flex-wrap: wrap; gap: 12px; }
  .clips-app .clips-auto-steps li { flex: 1 1 calc(50% - 12px); }
  body > dialog.clips-dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px 16px; border-radius: 18px; }
  body > .clips-dialog .clips-dialog-head h2 { font-size: 20px; }
  body > .clips-dialog .clips-field-grid { grid-template-columns: minmax(0, 1fr); }
  body > .clips-dialog .clips-field-grid label { min-width: 0; }
  body > .clips-dialog .clips-source-choice { gap: 8px; }
  body > .clips-dialog .clips-actions > .button { flex: 1 1 auto; }
  body > .clips-dialog .clips-file-label { padding: 14px; }
  .vv-editor-page .vv-editor-title { flex-basis: calc(100% - 65px); }
  .vv-editor-page .vv-editor-tools > select { flex: 1 1 110px; }
  .vv-editor-page .vv-editor-transport { gap: 10px; font-size: 11px; }
  .vv-editor-page .vv-editor-template-save { grid-template-columns: minmax(0, 1fr); }
  .vv-editor-page .vv-editor-timetools input[type="range"] { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .clips-app *, body > .clips-dialog :is(button, a, input, select) { transition: none; scroll-behavior: auto; }
}
