/* Original creator text fonts; licences in modules/creator/media/director-fonts. */
@font-face { font-family:"VV Marker";src:url("/fonts/permanent-marker.ttf") format("truetype");font-weight:400;font-display:swap; }
@font-face { font-family:"VV Inter";src:url("/fonts/inter.ttf") format("truetype");font-weight:100 900;font-display:swap; }
@font-face { font-family:"VV DejaVu";src:url("/caption-fonts/DejaVuSans.ttf") format("truetype");font-weight:400;font-display:swap; }
@font-face { font-family:"VV DejaVu";src:url("/caption-fonts/DejaVuSans-Bold.ttf") format("truetype");font-weight:700;font-display:swap; }
/* Layer fonts: the same files the clip worker registers (public/clip-scene.js). */
@font-face { font-family: "VV Montserrat"; src: url("/fonts/Montserrat-ExtraBold.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VV Anton"; src: url("/fonts/Anton-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VV DM Sans"; src: url("/fonts/dm-sans-400-normal.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VV DM Sans"; src: url("/fonts/dm-sans-700-normal.ttf") format("truetype"); font-weight: 700; font-display: swap; }
.clips-app { --clip-ink: var(--vv-text); --clip-orange: var(--vv-accent); min-width: 0; }
.clips-app h3 { margin: 0 0 10px; }
.clips-app button, .clips-dialog button, .clips-app a { touch-action: manipulation; }
.clips-intro, .clips-toolbar, .clips-project-heading, .clips-selection, .clips-job, .clips-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.clips-intro { margin: 18px 0 28px; }
.clips-intro h3 { font-size: clamp(27px, 3vw, 40px); margin-top: 10px; }
.clips-intro p, .clips-toolbar p, .clips-project-body p { margin: 8px 0; }
.clips-usage { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--vv-muted); padding: 14px 0; border-block: 1px solid var(--vv-border); }
.clips-steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 28px 0; gap: 16px; }
.clips-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.clips-steps b { width: 30px; height: 30px; display: grid; place-items: center; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 50%; flex-shrink: 0; }
.clips-project-grid, .clips-candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; margin: 24px 0; }
.clips-project, .clips-candidate { overflow: hidden; border: 2px solid var(--vv-border); background: var(--vv-surface); border-radius: 18px; box-shadow: 0 4px var(--vv-shadow); min-width: 0; }
.clips-project-art { height: 120px; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--vv-surface), var(--vv-surface) 26px, var(--vv-surface) 26px, var(--vv-surface) 28px); font-size: 58px; position: relative; }
.clips-project-art span { position: absolute; right: 12px; bottom: 12px; font-size: 12px; background: var(--vv-surface); border: 1px solid var(--vv-border); padding: 4px 8px; border-radius: 8px; }
.clips-project-body { padding: 20px; }
.clips-project-body h3 { margin-top: 16px; overflow-wrap: anywhere; }
.clips-badge { display: inline-block; border-radius: 6px; background: var(--vv-surface); color: var(--vv-success); font-size: 11px; font-weight: 750; padding: 5px 8px; }
.clips-badge.is-failed { background: var(--vv-danger-soft); color: var(--vv-danger); }
.clips-empty { border: 2px dashed var(--vv-border); border-radius: 20px; text-align: center; margin-top: 24px; padding: 48px 24px; background: var(--vv-surface); }
.clips-empty > span { display: block; font-size: 58px; margin-bottom: 16px; }
.clips-empty h3 { font-size: 27px; }
.clips-empty p { max-width: 520px; margin: 12px auto 24px; line-height: 1.6; }
.clips-empty.compact { padding: 30px 20px; }
.clips-empty.compact h3 { font-size: 22px; }
.clips-empty.compact p { margin-bottom: 0; }
.clips-back { margin-bottom: 20px; }
.clips-project-heading { margin-bottom: 20px; align-items: start; }
.clips-project-heading h3 { font-size: clamp(24px, 3vw, 34px); overflow-wrap: anywhere; }
.clips-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--vv-muted); font-size: 12px; }
.clips-delete { white-space: nowrap; }
.clips-notice { padding: 24px; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 15px; margin: 24px 0; }
.clips-notice p { margin: 8px 0 0; }
.clips-automation { margin: 24px 0; padding: 24px; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 15px; }
.clips-automation.needs-attention { background: var(--vv-warning-soft); }
.clips-automation-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.clips-automation-heading > div { min-width: 0; }
.clips-automation-heading strong { font-size: 18px; }
.clips-automation-heading p { margin: 8px 0 0; line-height: 1.6; }
.clips-automation-heading .fine { font-size: 12px; }
.clips-automation-heading > button { flex-shrink: 0; max-width: 180px; text-align: left; }
.clips-auto-steps { display: flex; padding: 18px 0 0; margin: 20px 0 0; gap: 18px; border-top: 1px solid var(--vv-border); list-style: none; }
.clips-auto-steps li { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 12px; color: var(--vv-muted); }
.clips-auto-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--vv-border); flex-shrink: 0; }
.clips-auto-steps .is-current { color: var(--vv-text); font-weight: 750; }
.clips-auto-steps .is-current > span { background: var(--vv-surface); border-color: var(--vv-border); }
.clips-auto-steps .is-complete > span { background: var(--vv-success-soft); color: var(--vv-text); border-color: var(--vv-success); }
.clips-toolbar { margin: 32px 0 18px; align-items: start; flex-wrap: wrap; }
.clips-toolbar h3, .clips-exports h3 { font-size: 25px; }
.clips-count { display: inline-flex; background: var(--vv-surface); padding: 3px 8px; border-radius: 8px; font: 700 15px system-ui; vertical-align: middle; }
.clips-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.clips-selection { margin: 24px 0 16px; padding: 16px; background: var(--vv-raised); border-radius: 12px; }
.clips-selection .check { margin: 0; }
.clips-candidate { padding: 20px; display: flex; flex-direction: column; }
.clips-candidate-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.clips-candidate-top .check { margin: 0; font-size: 13px; }
.clips-candidate h4 { font-size: 19px; line-height: 1.4; margin: 18px 0 6px; overflow-wrap: anywhere; }
.clips-candidate p { font-size: 13px; line-height: 1.65; }
.clips-candidate .clips-range { margin: 0; font-variant-numeric: tabular-nums; color: var(--vv-accent); font-weight: 700; }
.clips-candidate > button { align-self: start; margin-top: auto; }
.clips-review { margin: 8px 0 18px; padding: 12px; border: 1px solid var(--vv-border); border-radius: 10px; background: var(--vv-warning-soft); color: var(--vv-warning); overflow-wrap: anywhere; }
.clips-review.is-approved { background: var(--vv-surface); border-color: var(--vv-border); color: var(--vv-success); }
.clips-review.is-comparison { border-style: dashed; }
.clips-review strong { display: block; font-size: 12px; line-height: 1.5; }
.clips-review p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.clips-review .clips-review-note { padding-top: 8px; border-top: 1px solid currentColor; margin-top: 10px; }
.clips-exports { margin-top: 36px; }
.clips-job { padding: 20px 0; border-bottom: 1px solid var(--vv-border); }
.clips-job strong { font-size: 15px; overflow-wrap: anywhere; }
.clips-job p { margin: 6px 0 0; font-size: 13px; }
.clips-error:not([hidden]) { padding: 16px; border: 1px solid var(--vv-danger); border-radius: 10px; background: var(--vv-danger-soft); }
.clips-dialog { width: min(620px, calc(100vw - 32px)); max-width: 620px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 2px solid var(--vv-border); border-radius: 20px; background: var(--vv-surface); color: var(--vv-text); }
.clips-dialog.is-wide { max-width: 1080px; width: min(1080px, calc(100vw - 32px)); }
.clips-dialog::backdrop { background: var(--vv-overlay); }
.clips-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.clips-dialog-head h2 { margin: 0; font-size: 27px; line-height: 1.2; }
.clips-dialog-head button { flex-shrink: 0; }
.clips-dialog label { display: grid; gap: 8px; margin: 16px 0; font-size: 14px; }
.clips-dialog label.check { display: flex; align-items: start; gap: 10px; line-height: 1.6; }
.clips-dialog input[type=checkbox] { flex-shrink: 0; margin-top: 4px; }
.clips-dialog input:not([type=checkbox]):not([type=range]), .clips-dialog select, .clips-dialog textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--vv-border); border-radius: 9px; background: var(--vv-raised); color: var(--vv-text); padding: 12px; font: inherit; }
.clips-dialog input[type=range] { width: 100%; accent-color: var(--vv-accent); }
.clips-dialog .clips-file-label { border: 2px dashed var(--vv-border); padding: 20px; border-radius: 12px; background: var(--vv-surface); }
.clips-dialog .clips-file-label input { background: transparent; border: 0; padding: 0; }
.clips-dialog .clips-srt { font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.6; resize: vertical; }
.clips-dialog .fine { font-size: 12px; line-height: 1.6; }
.clips-upload-intro { font-size: 14px; line-height: 1.65; margin: 0 0 20px; }
.clips-source-choice { display: flex; gap: 12px; }
.clips-source-choice > button { flex: 1; }
.clips-source-choice .is-selected { background: var(--vv-raised); box-shadow: inset 0 0 0 1px var(--vv-shadow); }
.clips-auto-option { padding: 0 16px; margin: 20px 0; border: 1px solid var(--vv-border); border-radius: 12px; background: var(--vv-surface); }
.clips-auto-option label.check { margin: 16px 0; }
.clips-auto-option small { display: block; font-size: 12px; line-height: 1.6; margin-top: 4px; }
.clips-auto-option details { border-top: 1px solid var(--vv-border); padding: 14px 0; }
.clips-auto-option summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.clips-auto-resume-note { padding: 16px; border-radius: 12px; background: var(--vv-surface); font-size: 13px; line-height: 1.6; }
.clips-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clips-field-grid .text-button { justify-self: start; font-size: 11px; padding: 0; }
.clips-upload-progress { padding: 16px 0; }
.clips-upload-progress progress { width: 100%; accent-color: var(--vv-accent); height: 12px; }
.clips-upload-progress p { font-size: 13px; }
.clips-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.clips-editor-media { min-width: 0; position: sticky; top: 0; }
.clips-video-frame { --clip-ratio: .5625; aspect-ratio: 9 / 16; width: min(100%, calc(450px * var(--clip-ratio))); max-width: 100%; margin: 0 auto; border: 2px solid var(--vv-border); border-radius: 12px; background: var(--vv-bg); overflow: hidden; }
.clips-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clips-preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.clips-preview-actions span { font-size: 12px; font-variant-numeric: tabular-nums; }
.clips-transcript-preview { max-height: 170px; overflow-y: auto; font-size: 13px; line-height: 1.8; color: var(--vv-muted); white-space: pre-line; }
.clips-transcript-preview:not(:empty) { border-top: 1px solid var(--vv-border); padding-top: 14px; }
.clips-app .check input, .clips-dialog .check input { accent-color: var(--vv-accent); }
@media (max-width: 900px) { .clips-toolbar { display: block; } .clips-toolbar .clips-actions { margin-top: 18px; } }
@media (max-width: 760px) { body.platform .platform-bottom:has([data-view="clips"]) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .clips-intro, .clips-notice, .clips-selection, .clips-job { align-items: stretch; flex-direction: column; gap: 16px; }
  .clips-automation { padding: 20px; }
  .clips-automation-heading { flex-direction: column; gap: 16px; }
  .clips-automation-heading > button { max-width: none; }
  .clips-auto-steps { gap: 10px; }
  .clips-auto-steps li { flex-direction: column; align-items: center; text-align: center; font-size: 11px; }
  .clips-source-choice { gap: 8px; }
  .clips-source-choice > button { padding-inline: 8px; }
  .clips-intro > button { align-self: start; }
  .clips-steps { gap: 10px; }
  .clips-steps li { font-size: 11px; flex-direction: column; text-align: center; }
  .clips-project-heading { flex-direction: column; gap: 8px; }
  .clips-toolbar .clips-actions { gap: 10px; }
  .clips-dialog { padding: 20px; width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .clips-dialog.is-wide { width: calc(100vw - 20px); }
  .clips-dialog-head h2 { font-size: 23px; }
  .clips-editor { grid-template-columns: 1fr; gap: 20px; }
  .clips-editor-media { position: static; }
  .clips-video-frame { width: min(100%, calc(330px * var(--clip-ratio))); }
  .clips-field-grid { gap: 10px; }
  .clips-empty { padding: 30px 16px; }
  body:not(.landing) .platform-bottom { overflow-x: auto; }
  body:not(.landing) .platform-bottom button { flex: 1 0 54px; min-width: 54px; }
}

.clips-hook { margin-block: 12px; padding: 12px; border-left: 3px solid var(--vv-accent); background: var(--vv-surface); border-radius: 4px; }
.clips-hook strong { font-size: 12px; }
.clips-hook blockquote { margin: 8px 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.clips-hook small { font-size: 11px; opacity: .75; }

/* Compact Cortes layouts inherit the existing app shell and VideoViral identity. */
body.platform:has(.clips-app.clips-layout) .studio { padding: 26px clamp(18px, 2.1vw, 36px) 48px; }
body.platform:has(.clips-app.clips-layout) .studio-top { display: none; }
.clips-layout { --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); color: var(--vv-text); color-scheme: dark; }
.clips-app.clips-layout { max-width: 1440px; margin-inline: auto; }
body.platform .clips-layout p { color: var(--vv-muted); }
body.platform .clips-layout .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-size: 12px; padding: 10px 14px; min-height: 36px; }
body.platform .clips-layout .button.small { padding: 8px 11px; min-height: 33px; }
body.platform .clips-layout .button.clips-download { background: var(--vv-accent); border-color: var(--vv-accent); color: var(--vv-on-accent); }
body.platform .clips-layout .button.clips-download:hover { background: var(--vv-accent); border-color: var(--vv-accent); }
body.platform .clips-layout .text-button { font-size: 12px; text-decoration: none; }
body.platform .clips-layout .text-button:hover { color: var(--vv-accent); }
body.platform .clips-layout :is(button, a, summary, input, select):focus-visible { outline: 2px solid var(--vv-accent); outline-offset: 3px; }
.clips-layout svg { flex-shrink: 0; }
.clips-layout .clips-page-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.clips-layout .clips-page-heading > span { color: var(--vv-muted); letter-spacing: 1.8px; font-size: 9px; font-weight: 700; }
.clips-layout .clips-back { margin: 0; padding: 0; }
.clips-layout .clips-delete { margin-left: auto; padding: 0; font-size: 11px; }
.clips-layout .clips-original { display: flex; gap: 22px; align-items: center; padding: 18px; background: var(--vv-raised); border: 2px solid var(--vv-border); border-radius: 11px; box-shadow: 0 3px var(--vv-shadow); }
.clips-layout .clips-original-cover { flex: 0 0 176px; width: 176px; aspect-ratio: 16 / 9; border: 0; border-radius: 7px; background: var(--vv-bg); padding: 0; overflow: hidden; position: relative; }
.clips-layout .clips-original-cover:disabled { opacity: 1; cursor: default; }
.clips-layout .clips-original-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.clips-layout .clips-original-cover .clips-cover-play { width: 34px; height: 34px; z-index: 2; }
.clips-layout .clips-original-info { flex: 1; min-width: 0; }
.clips-layout .clips-original-label { font-size: 9px; letter-spacing: 1.5px; color: var(--vv-accent); font-weight: 700; }
.clips-layout .clips-original h3 { font-size: clamp(17px, 1.5vw, 23px); line-height: 1.35; margin: 7px 0 9px; overflow-wrap: anywhere; letter-spacing: -.02em; }
.clips-layout .clips-original p { font-size: 11px; margin: 9px 0 0; }
.clips-layout .clips-meta { color: var(--vv-muted); font-size: 10px; gap: 9px; }
.clips-layout .clips-badge { background: var(--vv-surface); color: var(--vv-success); font-size: 10px; font-weight: 600; padding: 4px 7px; border-radius: 4px; }
.clips-layout .clips-badge.is-failed { background: var(--vv-danger-soft); color: var(--vv-danger); }
.clips-layout .clips-original-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 160px; }
.clips-layout .clips-original-actions .button { width: 100%; }
.clips-layout .clips-limits { color: var(--vv-muted); font-size: 10px; margin: 10px 2px 0; }
.clips-layout .clips-limits summary { cursor: pointer; width: fit-content; }
.clips-layout .clips-usage { color: var(--vv-muted); border-color: var(--vv-border); font-size: 11px; margin-top: 8px; padding: 10px 0; }
.clips-layout .clips-toolbar { margin: 16px 0 10px; gap: 12px; align-items: center; display: flex; }
.clips-layout .clips-toolbar h3 { font-size: 19px; letter-spacing: -.02em; margin: 0; }
.clips-layout .clips-count { font-size: 11px; background: var(--vv-raised); color: var(--vv-text); padding: 3px 7px; margin-left: 4px; border-radius: 5px; }
.clips-layout .clips-toolbar p { font-size: 11px; margin: 6px 0 0; }
.clips-layout .clips-gallery-bar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-block: 1px solid var(--vv-border); padding: 8px 0; }
.clips-layout .clips-gallery-filters { display: flex; align-items: center; gap: 16px; }
.clips-layout .clips-gallery-filters label { display: flex; align-items: center; gap: 8px; color: var(--vv-muted); font-size: 10px; margin: 0; }
body.platform .clips-layout select { background: var(--vv-raised); color: var(--vv-text); border: 1px solid var(--vv-border); border-radius: 6px; font-size: 11px; padding: 7px 24px 7px 9px; max-width: 100%; }
.clips-layout .clips-selection { background: none; margin: 0; padding: 0; gap: 14px; border-radius: 0; flex-direction: row; }
.clips-layout .clips-selection .check { color: var(--vv-muted); font-size: 10px; display: flex; align-items: center; gap: 7px; white-space: nowrap; margin: 0; }
.clips-layout input[type=checkbox] { accent-color: var(--vv-accent); width: 15px; height: 15px; margin: 0; cursor: pointer; }
.clips-layout .clips-gallery-count { font-size: 10px; margin: 8px 0; color: var(--vv-muted); }
.clips-layout .clips-candidate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; align-items: start; }
.clips-layout .clips-candidate { background: var(--vv-surface); border: 2px solid var(--vv-border); border-radius: 9px; box-shadow: 0 4px var(--vv-shadow); padding: 0; overflow: hidden; }
.clips-layout .clips-card-cover { position: relative; aspect-ratio: 9 / 16; background: var(--vv-bg); isolation: isolate; overflow: hidden; }
.clips-layout .clips-card-cover::after { content: ''; pointer-events: none; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--vv-bg) 0%, transparent 28%, transparent 65%, var(--vv-bg) 100%); }
.clips-layout .clips-card-cover > img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.clips-layout [data-clip-poster][hidden] { display: none; }
.clips-layout .clips-poster-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--vv-surface), var(--vv-surface)); color: var(--vv-muted); font-size: 10px; text-align: center; padding: 12px; }
.clips-layout .clips-poster-fallback svg { width: 27px; height: 27px; opacity: .6; }
.clips-layout .clips-card-cover .clips-poster-fallback { padding-bottom: 95px; }
.clips-layout .clips-card-overlays { position: absolute; inset: 9px 9px auto; display: flex; align-items: start; justify-content: space-between; gap: 8px; z-index: 3; }
.clips-layout .clips-card-select { background: var(--vv-raised); border: 1px solid var(--vv-border); border-radius: 5px; padding: 6px; display: flex; align-items: center; }
.clips-layout .clips-card-select input { width: 14px; height: 14px; }
.clips-layout .clips-duration { background: var(--vv-raised); padding: 5px 7px; border-radius: 5px; color: var(--vv-text); font-size: 11px; font-variant-numeric: tabular-nums; }
.clips-layout .clips-cover-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 45px; height: 45px; padding: 0; border: 2px solid var(--vv-border); border-radius: 50%; background: var(--vv-surface); color: var(--vv-text); box-shadow: 0 3px var(--vv-shadow); z-index: 3; cursor: pointer; transition: background .15s, scale .15s; }
.clips-layout .clips-cover-play svg { width: 21px; height: 21px; margin-left: 1px; }
.clips-layout .clips-cover-play:hover:not(:disabled) { background: var(--vv-hover); scale: 1.06; }
.clips-layout .clips-cover-play:disabled { background: var(--vv-surface); color: var(--vv-muted); border-color: var(--vv-border); cursor: default; opacity: .65; box-shadow: none; }
.clips-layout .clips-cover-format, .clips-layout .clips-cover-status { position: absolute; bottom: 10px; z-index: 2; border-radius: 4px; padding: 4px 6px; font-size: 9px; background: var(--vv-surface); color: var(--vv-text); }
.clips-layout .clips-cover-format { left: 9px; }
.clips-layout .clips-cover-status { right: 9px; }
.clips-layout .clips-cover-status.is-ready { background: var(--vv-surface); color: var(--vv-success); }
.clips-layout .clips-cover-status.is-processing { background: var(--vv-surface); color: var(--vv-accent); }
.clips-layout .clips-card-body { padding: 13px 12px 12px; min-width: 0; }
.clips-layout .clips-card-kicker { font-size: 9px; line-height: 1.5; color: var(--vv-accent); letter-spacing: .2px; margin-bottom: 5px; }
.clips-layout .clips-candidate h4 { color: var(--vv-text); font-size: 13px; line-height: 1.5; font-weight: 650; margin: 0 0 7px; min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clips-layout .clips-candidate .clips-card-description { font-size: 11px; line-height: 1.55; min-height: 34px; margin: 0 0 9px; color: var(--vv-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clips-layout .clips-candidate .clips-range { color: var(--vv-muted); font-size: 9px; font-weight: 400; margin: 0; }
.clips-layout .clips-card-details { margin: 10px 0 0; }
.clips-layout .clips-card-details > summary { cursor: pointer; color: var(--vv-accent); font-size: 10px; }
.clips-layout .clips-card-tools, .clips-layout .clips-card-actions { display: flex; gap: 7px; }
.clips-layout .clips-card-tools { margin-top: 14px; }
.clips-layout .clips-card-actions { margin-top: 7px; }
body.platform .clips-layout .clips-card-tools .button, body.platform .clips-layout .clips-card-actions .button { flex: 1; font-size: 10px; padding: 7px 5px; min-width: 0; min-height: 31px; gap: 5px; }
.clips-layout .clips-card-tools svg, .clips-layout .clips-card-actions svg { width: 13px; height: 13px; }
.clips-layout .clips-card-actions > .button:only-child { flex: auto; }
.clips-layout .clips-hook { border-color: var(--vv-accent); background: var(--vv-surface); padding: 9px; }
.clips-layout .clips-hook strong, .clips-layout .clips-hook small { font-size: 10px; }
.clips-layout .clips-hook blockquote { font-size: 11px; line-height: 1.6; color: var(--vv-text); }
.clips-layout .clips-review { background: var(--vv-raised); border-color: var(--vv-border); color: var(--vv-warning); padding: 9px; }
.clips-layout .clips-review.is-approved { background: var(--vv-surface); border-color: var(--vv-border); color: var(--vv-success); }
.clips-layout .clips-review strong { font-size: 10px; }
body.platform .clips-layout .clips-review p { font-size: 10px; color: inherit; }
.clips-layout .clips-automation, .clips-layout .clips-notice { background: var(--vv-raised); border: 1px solid var(--vv-border); border-radius: 9px; padding: 17px; margin: 18px 0; }
.clips-layout .clips-automation.needs-attention { background: var(--vv-raised); border-color: var(--vv-border); }
.clips-layout .clips-automation-heading strong, .clips-layout .clips-notice strong { font-size: 13px; color: var(--vv-text); }
.clips-layout .clips-automation-heading p, .clips-layout .clips-notice p { font-size: 11px; line-height: 1.6; margin-top: 5px; }
.clips-layout .clips-auto-steps { border-color: var(--vv-border); margin-top: 12px; padding-top: 12px; gap: 12px; }
.clips-layout .clips-auto-steps li { color: var(--vv-muted); font-size: 10px; }
.clips-layout .clips-auto-steps li > span { width: 19px; height: 19px; border-color: var(--vv-border); }
.clips-layout .clips-auto-steps .is-current { color: var(--vv-text); }
.clips-layout .clips-auto-steps .is-current > span { background: var(--vv-raised); border-color: var(--vv-border); }
.clips-layout .clips-auto-steps .is-complete > span { background: var(--vv-success-soft); border-color: var(--vv-success); color: var(--vv-text); }
.clips-layout .clips-history { margin-top: 32px; border-top: 1px solid var(--vv-border); padding-top: 18px; }
.clips-layout .clips-history > summary { font-size: 13px; color: var(--vv-text); cursor: pointer; font-weight: 600; }
.clips-layout .clips-history > summary > span { color: var(--vv-muted); font-size: 10px; margin-left: 6px; }
.clips-layout .clips-history .fine { font-size: 11px; line-height: 1.6; }
.clips-layout .clips-job { border-color: var(--vv-border); padding: 16px 0; gap: 18px; }
.clips-layout .clips-job strong { font-size: 12px; color: var(--vv-text); }
.clips-layout .clips-job p { font-size: 10px; line-height: 1.6; }
.clips-layout .clips-job .clips-actions { flex-shrink: 0; gap: 8px; }
.clips-layout .clips-empty { background: var(--vv-surface); border: 1px dashed var(--vv-border); border-radius: 10px; }
.clips-layout .clips-empty h3 { color: var(--vv-text); font-size: 19px; }
.clips-layout .clips-empty p { font-size: 12px; }
body.platform .clips-layout .error { color: var(--vv-danger); }
.clips-layout .clips-error:not([hidden]) { background: var(--vv-danger-soft); border-color: var(--vv-danger); font-size: 12px; }
.clips-dialog.clips-layout { background: var(--vv-surface); border: 2px solid var(--vv-border); border-radius: 13px; color: var(--vv-text); box-shadow: 0 6px var(--vv-shadow); }
.clips-dialog.clips-layout::backdrop { background: var(--vv-overlay); backdrop-filter: blur(3px); }
.clips-dialog.clips-layout .clips-dialog-head h2 { font-size: 22px; letter-spacing: -.02em; }
.clips-dialog.clips-layout label { color: var(--vv-text); font-size: 12px; }
body.platform .clips-dialog.clips-layout input:not([type=checkbox]):not([type=range]), body.platform .clips-dialog.clips-layout textarea, body.platform .clips-dialog.clips-layout select { background: var(--vv-raised); border-color: var(--vv-border); color: var(--vv-text); border-radius: 7px; font-size: 13px; padding: 11px; }
.clips-dialog.clips-layout input[type=range], .clips-dialog.clips-layout .check input { accent-color: var(--vv-accent); }
.clips-dialog.clips-layout .clips-transcript-preview { border-color: var(--vv-border); color: var(--vv-muted); }
.clips-dialog.clips-layout .clips-video-frame { border-color: var(--vv-border); }
.clips-dialog.clips-layout .clips-file-label, .clips-dialog.clips-layout .clips-auto-option, .clips-dialog.clips-layout .clips-auto-resume-note { background: var(--vv-raised); border-color: var(--vv-border); }
.clips-dialog.clips-layout .clips-auto-option details { border-color: var(--vv-border); }
.clips-dialog.clips-layout .clips-source-choice .is-selected { background: var(--vv-raised); border-color: var(--vv-border); }
.clips-dialog.clips-player-dialog { width: min(600px, calc(100vw - 24px)); }
.clips-dialog.clips-player-dialog .clips-dialog-head h2 { font-size: 17px; line-height: 1.5; }
.clips-player { background: var(--vv-bg); border: 1px solid var(--vv-border); border-radius: 9px; overflow: hidden; }
.clips-player video { display: block; width: 100%; max-height: min(68dvh, 720px); object-fit: contain; }
@media (min-width: 1500px) { .clips-layout .clips-candidate-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 1090px) and (min-width: 761px) {
  .clips-layout .clips-candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clips-layout .clips-original { gap: 15px; flex-wrap: wrap; }
  .clips-layout .clips-original-actions { flex: 0 0 100%; flex-direction: row; justify-content: flex-end; }
  .clips-layout .clips-original-actions .button { width: auto; }
  .clips-layout .clips-original-cover { flex-basis: 136px; width: 136px; }
}
@media (max-width: 760px) {
  body.platform:has(.clips-app.clips-layout) .studio { padding: 20px 16px 110px; }
  .clips-layout .clips-candidate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .clips-layout .clips-original { flex-wrap: wrap; gap: 14px; padding: 14px; }
  .clips-layout .clips-original-cover { flex-basis: 120px; width: 120px; }
  .clips-layout .clips-original-actions { flex-basis: 100%; flex-direction: row; }
  .clips-layout .clips-original-actions .button { flex: 1; width: auto; }
  .clips-layout .clips-original h3 { font-size: 16px; }
  .clips-layout .clips-page-heading > span { display: none; }
  .clips-layout .clips-selection { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .clips-layout .clips-gallery-filters { flex-wrap: wrap; gap: 12px; }
  .clips-layout .clips-gallery-bar { gap: 12px; }
  .clips-layout .clips-job { align-items: flex-start; }
}
@media (max-width: 480px) {
  .clips-layout .clips-candidate-grid { grid-template-columns: minmax(0, 1fr); max-width: 390px; margin-inline: auto; gap: 18px; }
  .clips-layout .clips-card-body { padding: 15px; }
  .clips-layout .clips-candidate h4 { font-size: 15px; min-height: auto; }
  .clips-layout .clips-candidate .clips-card-description { font-size: 12px; }
  .clips-layout .clips-card-kicker { font-size: 10px; }
  body.platform .clips-layout .clips-card-tools .button, body.platform .clips-layout .clips-card-actions .button { font-size: 12px; min-height: 36px; }
  .clips-layout .clips-original-cover { flex-basis: 92px; width: 92px; }
  .clips-layout .clips-original h3 { font-size: 14px; }
  .clips-layout .clips-original-label { font-size: 8px; }
  .clips-layout .clips-original p { font-size: 10px; }
  .clips-layout .clips-toolbar { align-items: start; }
  .clips-layout .clips-toolbar > .button { flex-shrink: 0; }
  .clips-layout .clips-toolbar p { max-width: 200px; }
  .clips-layout .clips-automation-heading { gap: 10px; }
  .clips-layout .clips-auto-steps li { font-size: 9px; }
  .clips-layout .clips-gallery-filters label { flex: 1; }
  .clips-layout .clips-gallery-filters { width: 100%; }
  .clips-layout .clips-gallery-filters select { width: 100%; min-width: 0; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .clips-layout *, .clips-layout *::before, .clips-layout *::after { transition: none !important; } }

/* Cortes home keeps the original VideoViral palette and compact source composer. */
.clips-home { min-width: 0; }
.clips-home-create { max-width: 768px; margin: 8px auto 28px; padding: 8px 0 0; text-align: center; }
.clips-home-eyebrow { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--vv-border); border-radius: 30px; color: var(--vv-text); background: var(--vv-raised); padding: 7px 11px; font-size: 9px; letter-spacing: 1px; font-weight: 700; }
body.platform .clips-home-create h3 { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; margin: 13px 0 8px; }
body.platform .clips-home-create > p { font-size: 12px; line-height: 1.5; color: var(--vv-muted); margin: 0 0 18px; }
.clips-home-url-label, .clips-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.clips-home-url-field { position: relative; display: flex; align-items: center; }
.clips-home-url-field > span { position: absolute; left: 14px; pointer-events: none; color: var(--vv-muted); font-size: 17px; }
body.platform .clips-layout .clips-home-url-field input { width: 100%; height: 44px; background: var(--vv-raised); border: 2px solid var(--vv-border); border-radius: 8px; padding: 12px 15px 12px 39px; color: var(--vv-text); font-size: 13px; box-shadow: 0 3px var(--vv-shadow); }
body.platform .clips-layout .clips-home-url-field input::placeholder { color: var(--vv-muted); font-weight: 400; }
body.platform .clips-layout .clips-home-url-field input:disabled { border-color: var(--vv-border); opacity: .65; }
body.platform .clips-layout #clips-home-generate { display: flex; width: 100%; margin-top: 8px; height: 40px; font-size: 12px; font-weight: 650; }
body.platform .clips-layout #clips-home-generate > span { margin-left: 3px; }
.clips-home-divider { display: flex; align-items: center; gap: 12px; color: var(--vv-muted); font-size: 11px; margin: 14px 0 7px; }
.clips-home-divider::before, .clips-home-divider::after { content: ''; height: 1px; flex: 1; background: var(--vv-surface); }
.clips-home-file { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--vv-text); background: transparent; border: 0; padding: 9px 20px; font-size: 12px; cursor: pointer; border-radius: 7px; }
.clips-home-file:hover { color: var(--vv-accent); background: var(--vv-raised); }
body.platform .clips-home-create > .clips-home-rights { font-size: 10px; color: var(--vv-muted); margin: 10px 0 4px; }
body.platform .clips-home-create > .clips-home-limits { font-size: 10px; color: var(--vv-muted); margin: 0; }
body.platform .clips-home-create > .clips-home-capability { font-size: 11px; color: var(--vv-accent); margin: 10px 0 0; }
.clips-home-library { margin-top: 22px; }
.clips-home-library-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
body.platform .clips-home-library-head h3 { font-size: 21px; margin: 0; letter-spacing: -.025em; }
.clips-home-library-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.clips-home-library-tools label { margin: 0; }
.clips-home-search { display: flex; align-items: center; position: relative; width: 190px; min-width: 0; }
.clips-home-search svg { position: absolute; left: 10px; color: var(--vv-muted); pointer-events: none; width: 14px; height: 14px; }
body.platform .clips-layout .clips-home-search input { width: 100%; height: 34px; border: 1px solid var(--vv-border); border-radius: 7px; background: var(--vv-raised); color: var(--vv-text); padding: 7px 10px 7px 31px; font-size: 11px; font-weight: 400; }
body.platform .clips-layout .clips-home-search input::placeholder { color: var(--vv-muted); }
body.platform .clips-layout .clips-home-sort select { height: 34px; font-size: 11px; border-color: var(--vv-border); background: var(--vv-raised); padding: 7px 22px 7px 11px; }
body.platform .clips-layout #clips-project-refresh { height: 34px; background: var(--vv-surface); font-size: 11px; }
body.platform .clips-layout #clips-project-refresh:hover { background: var(--vv-raised); }
body.platform .clips-home-results { color: var(--vv-muted); font-size: 11px; margin: -3px 0 12px; }
.clips-home-results:empty { display: none; }
.clips-home .clips-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; align-items: start; }
.clips-home .clips-project { border: 2px solid var(--vv-border); border-radius: 9px; background: var(--vv-surface); box-shadow: 0 4px var(--vv-shadow); overflow: hidden; }
.clips-home .clips-project-cover { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--vv-bg); padding: 0; border: 0; border-radius: 0; overflow: hidden; isolation: isolate; cursor: pointer; }
.clips-home .clips-project-cover::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--vv-bg), transparent 40%, var(--vv-bg)); pointer-events: none; }
.clips-home .clips-project-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clips-home .clips-project-cover .clips-duration { position: absolute; bottom: 8px; right: 8px; z-index: 2; font-size: 10px; padding: 4px 6px; }
.clips-home .clips-project-source { position: absolute; top: 8px; left: 8px; border-radius: 5px; background: var(--vv-surface); color: var(--vv-text); font-size: 9px; padding: 4px 7px; z-index: 2; }
.clips-home .clips-project-open { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; background: var(--vv-raised); color: var(--vv-text); border: 1px solid var(--vv-border); border-radius: 30px; font-size: 11px; padding: 10px 14px; z-index: 3; opacity: 0; white-space: nowrap; transition: opacity .15s; }
.clips-home .clips-project-cover:hover .clips-project-open, .clips-home .clips-project-cover:focus-visible .clips-project-open { opacity: 1; }
.clips-home .clips-project-body { padding: 12px; }
body.platform .clips-home .clips-project-body h3 { margin: 0 0 11px; letter-spacing: -.01em; font-size: 13px; line-height: 1.45; }
.clips-home .clips-project-title { color: var(--vv-text); padding: 0; background: none; border: 0; font: inherit; font-weight: 650; text-align: left; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; overflow-wrap: anywhere; }
.clips-home .clips-project-title:hover { color: var(--vv-accent); }
.clips-home .clips-project-facts { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 10px; }
.clips-home .clips-project-status { display: inline-flex; align-items: center; gap: 5px; color: var(--vv-muted); min-width: 0; line-height: 1.5; }
.clips-home .clips-project-status > i { display: block; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: var(--vv-bg); }
.clips-home .clips-project-status.is-ready > i { background: var(--vv-success); }
.clips-home .clips-project-status.is-processing > i { background: var(--vv-accent); }
.clips-home .clips-project-status.is-failed > i { background: var(--vv-accent); }
.clips-home .clips-project-status.is-pending > i { background: var(--vv-warning); }
.clips-home .clips-project-ready { white-space: nowrap; color: var(--vv-text); font-size: 10px; }
.clips-home .clips-project-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--vv-muted); font-size: 9px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--vv-border); }
.clips-home .clips-home-empty { grid-column: 1 / -1; margin: 0; padding: 35px 18px; border-color: var(--vv-border); background: var(--vv-surface); }
.clips-home .clips-home-empty > span { display: inline-flex; padding: 12px; border-radius: 50%; background: var(--vv-raised); color: var(--vv-text); font-size: 16px; margin-bottom: 16px; }
.clips-home .clips-home-empty svg { width: 23px; height: 23px; }
.clips-home .clips-home-empty h3 { font-size: 18px; }
.clips-home .clips-home-usage { margin-top: 22px; }
.clips-home .clips-project { position: relative; }
.clips-home .clips-project.is-selected { outline: 3px solid var(--vv-accent); outline-offset: 3px; }
.clips-project-select { position: absolute; top: 6px; right: 6px; z-index: 4; display: grid; place-items: center; width: 38px; height: 38px; margin: 0; border: 1px solid var(--vv-border); border-radius: 8px; background: var(--vv-raised); cursor: pointer; }
.clips-project-select input, .clips-project-selection input { width: 20px; height: 20px; margin: 0; accent-color: var(--vv-accent); cursor: pointer; }
.clips-project-select:focus-within { outline: 3px solid var(--vv-accent); outline-offset: 2px; }
.clips-project-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0 18px; }
.clips-project-selection label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; cursor: pointer; min-height: 38px; }
.clips-project-selection [role="status"] { color: var(--vv-muted); font-size: 12px; }
.clips-project-selection .clips-bulk-delete { margin-left: auto; }
body.platform .clips-layout .button.clips-bulk-delete { border-color: var(--vv-accent); background: var(--vv-surface); color: var(--vv-accent); }
body.platform .clips-layout .button.clips-bulk-delete:hover:not(:disabled) { background: var(--vv-accent); color: var(--vv-text); }
.clips-delete-summary { max-height: 190px; overflow: auto; padding-left: 24px; overflow-wrap: anywhere; }
.clips-delete-summary li { margin: 8px 0; }
.clips-project-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; font-size: 12px; }
.clips-project-pagination:empty { display: none; }
.clips-storage-status { padding: 12px 14px; margin: 0 0 18px; border: 1px solid var(--vv-border); border-radius: 8px; background: var(--vv-raised); color: var(--vv-text); font-size: 13px; }
.clips-storage-status[hidden], #clips-upload-storage:empty { display: none; }
@media (max-width: 480px) { .clips-project-selection .clips-bulk-delete { width: 100%; margin-left: 0; } }
.clips-dialog.clips-layout .clips-chosen-file { padding: 10px 12px; border: 1px solid var(--vv-border); border-radius: 7px; color: var(--vv-text); background: var(--vv-raised); font-size: 12px; overflow-wrap: anywhere; }
.clips-dialog.clips-layout .clips-chosen-file[hidden] { display: none; }
@media (min-width: 1500px) { .clips-home .clips-project-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 1090px) { .clips-home .clips-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clips-home-search { width: 160px; } }
@media (max-width: 760px) {
  .clips-home-create { margin-top: 0; max-width: 100%; padding-top: 0; }
  body.platform .clips-home-create h3 { font-size: 25px; }
  .clips-home-library { margin-top: 26px; }
  .clips-home-library-head { align-items: start; }
  .clips-home-library-tools { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .clips-home-search { width: 100%; }
  .clips-home .clips-project-grid { gap: 12px; }
}
@media (max-width: 480px) {
  .clips-home .clips-project-grid { grid-template-columns: minmax(0, 1fr); }
  .clips-home-create { margin-bottom: 28px; }
  body.platform .clips-home-create h3 { font-size: 23px; }
  body.platform .clips-home-create > p { font-size: 11px; max-width: 290px; margin-inline: auto; }
  body.platform .clips-layout .clips-home-url-field input { font-size: 11px; padding-left: 31px; }
  .clips-home-url-field > span { left: 10px; }
  .clips-home-library-tools { grid-template-columns: minmax(0, 1fr) auto; }
  .clips-home-search { grid-column: 1 / -1; }
  .clips-home-sort select { width: 100%; }
  .clips-home .clips-project-title { min-height: 0; }
  .clips-home .clips-project-cover .clips-duration { font-size: 11px; }
  .clips-home .clips-project-body { padding: 14px; }
  .clips-home .clips-project-facts { font-size: 11px; }
}

/* Prepare the source first, then configure the complete creation on one page. */
.clips-config-page { max-width: 1240px; margin: 0 auto; min-width: 0; }
.clips-config-source { display: flex; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--vv-border); border-radius: 16px; background: var(--vv-surface); }
.clips-config-source>div { min-width: 0; }
body.platform .clips-config-source h3 { font-size: 18px; line-height: 1.45; margin: 5px 0 8px; overflow-wrap: anywhere; }
body.platform .clips-config-source p { margin: 0; font-size: 12px; color: var(--vv-muted); }
.clips-config-cover { position: relative; width: 176px; aspect-ratio: 16 / 9; flex-shrink: 0; border: 0; border-radius: 10px; padding: 0; background: var(--vv-surface); overflow: hidden; }
.clips-config-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clips-config-cover .clips-cover-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.clips-config-cover:disabled { cursor: default; opacity: 1; }
.clips-config-heading { padding: 28px 0 20px; }
body.platform .clips-config-heading h3 { font-size: 27px; margin: 8px 0; }
body.platform .clips-config-heading p { margin: 0; color: var(--vv-muted); font-size: 13px; }
.clips-config-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.clips-config-options { display: grid; gap: 18px; min-width: 0; }
.clips-config-section { padding: 24px; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 16px; min-width: 0; }
.clips-config-section-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.clips-config-section-title>span { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; border-radius: 9px; background: var(--vv-accent-soft); color: var(--vv-accent); font-size: 11px; font-weight: 750; }
body.platform .clips-config-section-title h4 { margin: 1px 0 6px; font-size: 16px; font-weight: 700; }
body.platform .clips-config-section-title p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--vv-muted); }
body.platform .clips-config-section .clips-field-grid > label.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
body.platform .clips-config-section .clips-field-grid > label.check input { width: auto; flex: none; }
.clips-presets { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.clips-presets label { flex: 1 1 240px; margin: 0; }
.clips-strategy-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.clips-strategy { padding: 15px 12px; display: grid; gap: 9px; text-align: left; color: var(--vv-text); background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 12px; min-width: 0; }
.clips-strategy strong { font-size: 13px; }
.clips-strategy span { font-size: 11px; line-height: 1.6; color: var(--vv-muted); }
.clips-strategy.is-selected { background: var(--vv-raised); border: 2px solid var(--vv-accent); padding: 14px 11px; }
body.platform .clips-config-section label { font-size: 12px; font-weight: 650; display: grid; gap: 8px; margin-bottom: 16px; }
body.platform .clips-config-section label:last-child { margin-bottom: 0; }
body.platform .clips-config-section input:not([type=range]),body.platform .clips-config-section select,body.platform .clips-config-section textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--vv-border); border-radius: 9px; background: var(--vv-raised); color: var(--vv-text); font: 12px/1.5 inherit; }
body.platform .clips-config-section .fine { color: var(--vv-muted); font-size: 11px; line-height: 1.6; margin: 0 0 18px; }
.clips-config-section .clips-field-grid { gap: 16px; }
.clips-config-section [hidden] { display: none !important; }
.clips-range-sliders { display: grid; gap: 12px; margin: 20px 0; }
.clips-range-sliders input { width: 100%; min-width: 0; accent-color: var(--vv-accent); }
body.platform .clips-config-section .clips-range-summary { font: 600 12px/1.5 "DM Sans",system-ui,sans-serif; color: var(--vv-accent); margin: 16px 0 0; }
.clips-config-checkout { position: sticky; top: 92px; padding: 24px; border: 1px solid var(--vv-border); border-radius: 16px; background: var(--vv-surface); min-width: 0; }
.clips-config-checkout h4 { margin: 9px 0 24px; font-size: 19px; }
.clips-config-checkout dl { display: grid; gap: 14px; margin: 0 0 20px; font-size: 12px; }
.clips-config-checkout dl>div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.clips-config-checkout dt { color: var(--vv-muted); }
.clips-config-checkout dd { text-align: right; margin: 0; font-weight: 650; }
.clips-config-price { display: grid; gap: 7px; padding: 20px 0; border-block: 1px solid var(--vv-border); }
.clips-config-price>span { font-size: 12px; }
.clips-config-price>strong { font-size: 29px; color: var(--vv-text); line-height: 1.25; letter-spacing: -.04em; }
.clips-config-price>small { color: var(--vv-muted); font-size: 10px; line-height: 1.6; }
body.platform .clips-config-checkout .fine { margin: 16px 0; font-size: 11px; line-height: 1.7; color: var(--vv-muted); }
body.platform .clips-config-checkout .clips-config-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.6; }
.clips-config-consent input { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--vv-accent); }
body.platform .clips-config-checkout .error { font-size: 11px; line-height: 1.6; }
.clips-config-checkout button { width: 100%; white-space: normal; margin-top: 10px; }
.clips-config-checkout .text-button { font-size: 11px; padding: 7px 0; }
.clips-config-checkout [hidden] { display: none !important; }
.clips-preparation-card { max-width: 700px; margin: 30px auto; padding: 40px; text-align: center; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 20px; }
.clips-preparation-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 16px; background: var(--vv-accent-soft); color: var(--vv-accent); font-size: 26px; }
.clips-preparation-icon svg { width: 26px; height: 26px; }
body.platform .clips-preparation-card h3 { font-size: 25px; margin: 12px 0; }
body.platform .clips-preparation-card p { font-size: 13px; line-height: 1.7; color: var(--vv-muted); }
.clips-preparation-card progress { width: 100%; height: 8px; margin: 20px 0 0; accent-color: var(--vv-accent); }
body.platform .clips-preparation-card .clips-preparation-free { background: var(--vv-surface); border-radius: 12px; padding: 16px; margin-top: 24px; font-size: 12px; }
.clips-preparation-free strong { display: block; color: var(--vv-text); }
@media(max-width:1150px) { .clips-config-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; } .clips-config-section,.clips-config-checkout { padding: 18px; } .clips-strategy-options { grid-template-columns: minmax(0, 1fr); } .clips-strategy { gap: 5px; } }
@media(max-width:950px) { .clips-config-grid { grid-template-columns: minmax(0, 1fr); } .clips-config-checkout { position: static; } .clips-strategy-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width:600px) { .clips-config-source { align-items: flex-start; gap: 13px; padding: 13px; } .clips-config-cover { width: 110px; } body.platform .clips-config-source h3 { font-size: 13px; } body.platform .clips-config-source p { font-size: 10px; } body.platform .clips-config-heading h3 { font-size: 24px; } .clips-strategy-options { grid-template-columns: minmax(0, 1fr); } .clips-config-section .clips-field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .clips-config-section,.clips-config-checkout { padding: 17px; } .clips-preparation-card { padding: 24px 18px; } body.platform .clips-preparation-card h3 { font-size: 22px; } }
/* Retention, interest score and batch download (Fase 5). */
.clips-expiry { display: inline-block; margin-left: 6px; border-radius: 4px; background: var(--vv-surface); color: var(--vv-muted); font-size: 10px; font-weight: 600; padding: 3px 6px; white-space: nowrap; }
.clips-expiry.is-soon { background: var(--vv-surface); color: var(--vv-accent); }
.clips-score { display: inline-block; margin-left: 6px; border-radius: 4px; background: var(--vv-surface); color: var(--vv-muted); font-size: 10px; font-weight: 700; padding: 2px 6px; }
#clips-download-all { margin-left: 8px; }
.clips-layout .clips-card-tools { flex-wrap: wrap; }
.clips-layout .clips-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; }
body.platform .clips-layout .clips-card-tools .clips-feedback .button { flex: 0 0 auto; min-width: 38px; }
.clips-layout .clips-feedback .button[aria-pressed="true"] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.clips-layout .clips-feedback-reason { display: flex; flex-direction: column; gap: 4px; flex-basis: 100%; font-size: 11px; }

/* Timeline editor (clip-editor.js). */
body:has(> .vv-editor-page) > :not(.vv-editor-page, .vv-library-preview, .vv-template-dialog, #toast, script, dialog, [popover]) { display: none !important; }
body.platform:has(> .vv-editor-page) { display: block; padding: 0; margin: 0; }
body > .clips-dialog.vv-editor-page { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; box-shadow: none; }
.vv-editor-page .vv-editor { width: 100%; max-width: none; padding: 0; }
.vv-editor-page .vv-editor-bar { position: static; width: 100%; max-width: none; margin: 0; }

.vv-editor { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; margin: 0; }
.vv-editor [hidden] { display: none !important; }
.vv-editor-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 2px solid #18213f; }
.vv-editor-bar > .button { flex: 0 0 auto; width: auto; }
.clips-dialog .vv-editor-title { flex: 1; min-width: 0; max-width: 520px; margin: 0 auto; padding: 6px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 16px; font-weight: 700; text-align: center; text-overflow: ellipsis; }
.clips-dialog .vv-editor-title:hover, .clips-dialog .vv-editor-title:focus { border-color: color-mix(in srgb, currentColor 35%, transparent); }
.vv-editor-tools { display: flex; align-items: center; gap: 8px; }
.vv-editor-tools > * { flex: none; }
.vv-editor-tools > .button { width: auto; }
.clips-dialog .vv-editor-bar-select { width: auto; min-width: 0; padding: 6px 8px; font-size: 13px; }
.vv-editor-status { font-size: 12px; opacity: .7; min-width: 150px; text-align: right; }
.vv-editor-status[data-state="error"], .vv-editor-status[data-state="conflict"] { color: #973817; font-weight: 700; }
.vv-editor-main { display: grid; grid-template-columns: 78px 300px minmax(0, 1fr) 300px; min-height: 0; }
.vv-editor-main:has(> .vv-editor-inspector[hidden]) { grid-template-columns: 78px 320px minmax(0, 1fr); }
/* Tool rail: one icon per panel, like a desktop editor. */
.vv-editor-rail { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; overflow-y: auto; border-right: 2px solid #18213f; }
.vv-editor-rail button { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 10px; line-height: 1.1; cursor: pointer; opacity: .78; }
.vv-editor-rail button:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.vv-editor-rail button[aria-pressed="true"] { opacity: 1; color: #f2673f; background: #f2673f1f; font-weight: 700; }
.vv-editor-rail svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vv-editor-tab:not(.is-active) { display: none; }
.vv-editor-tab > h3 { margin: 4px 0 10px; font-size: 16px; }
.vv-editor-tab > .button { width: auto; }
.vv-editor-inspector { padding: 12px 16px 18px; overflow-y: auto; border-left: 2px solid #18213f; align-content: start; }
.vv-editor-inspector label { margin: 0; }
.vv-editor-timebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 2px; }
.vv-editor-stage { container-type: size; display: grid; grid-template-rows: minmax(0, 1fr); padding: 18px; min-height: 0; background: color-mix(in srgb, currentColor 5%, transparent); }
.vv-editor-frame { container-type: size; position: relative; justify-self: center; align-self: center; aspect-ratio: var(--frame-ratio); width: calc(min(100cqw, 100cqh * var(--frame-ratio)) * var(--preview-scale, 1)); overflow: hidden; background: #10192f; border: 2px solid #18213f; border-radius: 14px; box-shadow: 0 4px #18213f; }
.vv-editor-frame video { position: absolute; inset: 0; width: 100%; height: 100%; }
.vv-editor-frame.has-retention > video { bottom: 40%; height: 60%; }
.vv-editor-retention { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; border-top: 2px solid #18213f; background-size: 200% 200%; animation: vv-retention 6s linear infinite alternate; }
.vv-editor-retention[data-kind="life"] { background-color: #10192f; background-image: radial-gradient(#f2673f 30%, transparent 32%); background-size: 14px 14px; animation-duration: 2s; }
.vv-editor-retention[data-kind="mandelbrot"] { background-image: radial-gradient(circle at 40% 50%, #ffd23f, #f2673f 20%, #18213f 45%, #22d3ee 70%, #10192f); }
.vv-editor-retention[data-kind="gradients"] { background-image: linear-gradient(120deg, #f2673f, #18213f, #22d3ee, #ffd23f); }
.vv-editor-retention[data-kind="cellauto"] { background-color: #fff; background-image: repeating-linear-gradient(45deg, #10192f 0 6px, transparent 6px 12px), repeating-linear-gradient(-45deg, #10192f 0 6px, transparent 6px 12px); background-size: 24px 24px; animation-duration: 3s; }
@keyframes vv-retention { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .vv-editor-retention { animation: none; } }
.vv-editor-hook { position: absolute; left: 8%; right: 8%; top: 14%; padding: 8px 10px; background: #e5262b; color: white; font-weight: 900; text-transform: uppercase; text-align: center; font-size: clamp(8px, 6.5cqw, 22px); line-height: 1.15; }
.vv-editor-caption { position: absolute; left: 6%; right: 6%; bottom: 18%; color: white; font-weight: 900; text-align: center; font-size: clamp(9px, 8cqw, 26px); text-shadow: 0 0 3px #000, 0 2px 4px #000; }
.vv-editor-caption[data-position="middle"] { bottom: auto; top: 50%; transform: translateY(-50%); }
.vv-editor-caption[data-position="top"] { bottom: auto; top: 30%; }
.vv-editor-transport { display: flex; justify-content: center; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; font-size: 13px; }
.vv-editor-transport .button { flex: 0 0 auto; width: auto; padding: 6px 14px; min-height: 0; font-size: 13px; }
.vv-editor-transport span { white-space: nowrap; }
.vv-editor-panel { padding: 12px 16px 18px; overflow-y: auto; border-right: 2px solid #18213f; }
.vv-editor-panel label { margin: 12px 0; }
.vv-editor-panel .error { color: #973817; }
.vv-editor-timeline { max-height: 36dvh; overflow-y: auto; padding: 6px 18px 8px; border-top: 2px solid #18213f; }
.vv-editor-ruler { position: relative; height: 16px; font-size: 10px; opacity: .7; font-variant-numeric: tabular-nums; }
.vv-editor-ruler span { position: absolute; transform: translateX(-50%); }
.vv-editor-track { position: relative; height: 64px; border: 2px solid #18213f; border-radius: 10px; overflow: hidden; background: #e8e3d6; cursor: pointer; touch-action: none; user-select: none; }
.vv-editor-thumbs { display: flex; height: 32px; overflow: hidden; }
.vv-editor-thumbs span { flex: 1 0 0; background-repeat: no-repeat; filter: saturate(.8); }
.vv-editor-wave { display: block; width: 100%; height: 32px; }
.vv-editor-selection { position: absolute; top: 0; bottom: 0; border: 3px solid #f2673f; border-radius: 8px; background: #f2673f1f; box-shadow: 0 0 0 9999px #10192f66; cursor: grab; }
.vv-editor-handle { position: absolute; top: 0; bottom: 0; width: 14px; padding: 0; border: 0; border-radius: 0; background: #f2673f; cursor: ew-resize; }
.vv-editor-handle.is-in { left: -3px; border-radius: 6px 0 0 6px; }
.vv-editor-handle.is-out { right: -3px; border-radius: 0 6px 6px 0; }
.vv-editor-handle:focus-visible { outline: 3px solid #18213f; outline-offset: 1px; }
.vv-editor-cuts span { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, #10192fcc, #10192fcc 4px, #f2673f99 4px, #f2673f99 8px); pointer-events: none; z-index: 1; }
.vv-editor-pauses { margin: 14px 0 4px; }
.vv-editor-pauses h3 { margin: 0; font-size: 15px; }
.vv-editor-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #18213f; pointer-events: none; }
.vv-editor-range { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.vv-editor-assist { padding: 2px 0; }
.vv-editor-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.vv-editor-chips button { padding: 5px 10px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.vv-editor-chips button:hover:not(:disabled) { border-color: #f2673f; color: #f2673f; }
.vv-editor-chips button:disabled { opacity: .5; cursor: default; }
.vv-editor-assist h4 { margin: 14px 0 6px; font-size: 13px; opacity: .7; }
.vv-editor-assist-log { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vv-editor-assist-log li { display: grid; gap: 2px; padding: 6px 8px; border-left: 3px solid #4fbf8b; border-radius: 4px; background: color-mix(in srgb, currentColor 6%, transparent); }
.vv-editor-assist-log li.is-failed { border-left-color: color-mix(in srgb, currentColor 30%, transparent); }
.vv-editor-assist-log .text-button { justify-self: start; text-align: left; }
.vv-editor-assist-log .fine { margin: 0; }
.vv-editor-assist label { margin: 0 0 8px; }
.clips-dialog .vv-editor-assist textarea { resize: vertical; padding: 8px 10px; }
.vv-editor-template-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.vv-editor-templates details { margin-top: 10px; font-size: 13px; }
.vv-editor-template-save { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 8px; }
.vv-editor-words { margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.vv-editor-words h3 { margin: 0; font-size: 15px; }
.clips-dialog .vv-editor-replace { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.vv-editor-replace .button { grid-column: 1 / -1; }
/* Caption segments: text, word blocks on the segment's own time scale, split and join. */
.vv-editor-subtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 10px; background: color-mix(in srgb, currentColor 7%, transparent); }
.vv-editor-subtabs button { padding: 7px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.vv-editor-subtabs button[aria-pressed="true"] { background: #f2673f26; color: #f2673f; font-weight: 700; }
[data-editor-caption-pane].is-off { display: none; }
.vv-editor-segments { display: grid; gap: 8px; }
.vv-editor-segment { display: grid; gap: 6px; padding: 8px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 10px; }
.vv-editor-segment.is-current { border-color: #f2673f; }
.vv-editor-segment-head { display: flex; align-items: center; gap: 6px; }
.vv-editor-segment-head button { padding: 3px 8px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.vv-editor-segment-head button:first-child { margin-right: auto; border-color: transparent; font-variant-numeric: tabular-nums; }
.vv-editor-segment-head button:disabled { opacity: .4; cursor: default; }
.clips-dialog .vv-editor-segment input { padding: 7px 9px; }
.vv-editor-word-row { position: relative; height: 30px; border-radius: 6px; background: color-mix(in srgb, currentColor 6%, transparent); touch-action: none; }
.vv-editor-word { position: absolute; top: 2px; bottom: 2px; min-width: 2px; padding: 0 4px; overflow: hidden; border: 0; border-left: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 4px; background: #5b5bd633; color: inherit; font: inherit; font-size: 11px; text-align: left; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.vv-editor-word.is-chosen { background: #f2673f; color: #fffaf0; }
.vv-editor-word-edge { position: absolute; left: -3px; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
/* Timeline tracks above and below the video: captions and audio. */
.vv-editor-timetools { display: flex; align-items: center; gap: 4px; }
.vv-editor-timetools button { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.vv-editor-timetools button:hover:not(:disabled) { background: color-mix(in srgb, currentColor 10%, transparent); }
.vv-editor-timetools button:disabled { opacity: .35; cursor: default; }
.vv-editor-timetools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clips-dialog .vv-editor-timetools input[type="range"] { width: 110px; height: 20px; margin: 0; padding: 0; }
.vv-editor-lane { position: relative; height: 20px; margin: 3px 0; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, currentColor 6%, transparent); }
.vv-editor-lane button { position: absolute; top: 2px; bottom: 2px; min-width: 3px; padding: 0 6px; overflow: hidden; border: 0; border-radius: 5px; color: #10192f; font: inherit; font-size: 10px; line-height: 1; text-align: left; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.vv-editor-caption-lane button { background: #4fbf8b; }
.vv-editor-audio-lane button { background: #8ecae6; }
.vv-editor-blocks span { position: absolute; top: 0; bottom: 0; z-index: 1; box-sizing: border-box; padding: 2px 6px; border: 2px solid #5b5bd6; border-radius: 8px; color: #fffaf0; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px #000; pointer-events: none; }
.vv-editor-blocks span.is-selected { border-color: #fffaf0; box-shadow: inset 0 0 0 2px #f2673f; }
@media (max-width: 1100px) {
  .vv-editor-main, .vv-editor-main:has(> .vv-editor-inspector[hidden]) { grid-template-columns: 78px 280px minmax(0, 1fr); }
  .vv-editor-main:has(> .vv-editor-inspector:not([hidden])) { grid-template-rows: minmax(0, 1fr) auto; }
  .vv-editor-inspector { grid-column: 2 / -1; border-left: 0; border-top: 2px solid #18213f; max-height: 40dvh; }
}
@media (max-width: 860px) {
  .vv-editor-main, .vv-editor-main:has(> .vv-editor-inspector[hidden]) { display: flex; flex-direction: column; overflow-y: auto; }
  .vv-editor-main > * { flex: none; }
  .vv-editor-stage { order: -1; height: 48dvh; }
  .vv-editor-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-top: 2px solid #18213f; border-bottom: 2px solid #18213f; }
  .vv-editor-timebar { flex-wrap: wrap; gap: 4px 12px; }
  .vv-editor-range { text-align: left; }
  .vv-editor-rail button { flex: 0 0 64px; }
  .vv-editor-title { max-width: none; text-align: left; }
  .vv-editor-tools { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
  .vv-editor-panel, .vv-editor-inspector { grid-column: auto; border: 0; overflow: visible; max-height: none; }
  .vv-editor-inspector { border-top: 2px solid #18213f; }
  .vv-editor-status { min-width: 0; }
  .vv-editor-page .vv-editor { display: flex; flex-direction: column; height: auto; min-height: 100%; }
  body > .clips-dialog.vv-editor-page { overflow: auto; }
  .vv-editor-page .vv-editor-stage { order: -3; height: clamp(220px, 42dvh, 440px); }
  .vv-editor-page .vv-editor-main, .vv-editor-page .vv-editor-main:has(> .vv-editor-inspector[hidden]) { display: contents; }
  .vv-editor-page .vv-editor-bar { order: -4; }
  .vv-editor-page .vv-editor-timeline { order: -2; max-height: none; padding-inline: 10px; }
  .vv-editor-page .vv-editor-rail { order: -1; width: 100%; max-width: 100%; min-width: 0; }
  .vv-editor-page .vv-editor-timetools input[type="range"] { width: clamp(64px, 23vw, 110px); }
  .vv-editor-page .vv-editor-tools { width: 100%; justify-content: flex-start; gap: 5px; }
  .vv-editor-page .vv-editor-bar { gap: 6px; padding: 8px 10px; }
  .vv-editor-page .vv-editor-tools > select { flex: 1 1 100px; }
  .vv-editor-page .vv-editor-tools > .button { min-height: 36px; }
  .vv-editor-page .vv-editor-status { margin-left: auto; }
  .vv-editor-bar { flex-wrap: wrap; }
}

/* Captions dialog: downloads and transcription only. */
.clips-transcript-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.clips-transcribe { margin: 0 0 20px; padding: 16px 18px; border: 2px solid #18213f; border-radius: 14px; background: #e1f4ff; }
.clips-transcribe h3 { margin: 0 0 6px; font-size: 18px; }
.clips-transcribe p { margin: 6px 0; line-height: 1.5; }

/* Publish to YouTube dialog. */
.clips-youtube-kids { border: 0; padding: 0; margin: 12px 0; }
.clips-youtube-kids legend { font-size: 14px; margin-bottom: 4px; }
.clips-youtube-kids label.check { display: inline-flex; margin: 4px 16px 4px 0; }
.clips-youtube-history { padding-left: 18px; line-height: 1.6; font-size: 14px; }

.clips-channels { margin: 24px 0; }
.clips-channel-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.clips-channel-items > li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--clip-line); border-radius: 12px; }
.clips-channel-items ul { margin: 8px 0 0; padding-left: 18px; }
.clips-channel-actions { display: flex; align-items: flex-start; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .clips-channel-items > li { flex-direction: column; } }

/* Free layers in the clip editor (public/clip-editor.js). */
.vv-editor-layers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
/* Same order as the export: video, vignette, layers, then captions and the opening title. */
.vv-editor-frame .vv-editor-hook, .vv-editor-frame .vv-editor-caption { z-index: 3; }
.vv-editor-layer-box { position: absolute; z-index: 4; box-sizing: border-box; border: 2px dashed #f2673f; cursor: move; transform-origin: 50% 50%; touch-action: none; }
.vv-editor-layer-box.is-off { opacity: .45; }
.vv-editor-layer-resize { position: absolute; right: -7px; bottom: -7px; width: 12px; height: 12px; background: #f2673f; border: 2px solid #fffaf0; border-radius: 3px; cursor: nwse-resize; }
.vv-editor-layer-panel { display: grid; gap: 10px; }
.vv-editor-layer-panel h3 { margin: 0; font-size: 15px; }
.vv-editor-layer-list { display: grid; gap: 4px; }
.vv-editor-layer-item { text-align: left; padding: 6px 10px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-editor-layer-item.is-selected { border-color: #f2673f; background: #f2673f26; font-weight: 700; }
.vv-editor-layer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; align-items: end; }
.vv-editor-layer-grid input[type="color"] { width: 100%; min-height: 32px; padding: 2px; }
[data-editor-layer-fields] { display: grid; gap: 10px; }
.vv-editor-layer-lanes { display: grid; gap: 2px; margin-top: 4px; }
.vv-editor-layer-lanes[hidden] { display: none; }
.vv-editor-layer-lane { position: relative; height: 18px; border-radius: 6px; background: color-mix(in srgb, currentColor 10%, transparent); overflow: hidden; touch-action: none; }
.vv-editor-lane-label { position: absolute; left: 4px; top: 3px; font-size: 11px; opacity: .6; pointer-events: none; }
.vv-editor-layer-bar { position: absolute; top: 2px; bottom: 2px; min-width: 6px; padding: 0 6px; border: 1px solid #18213f; border-radius: 5px; background: #8ecae6; color: #10192f; font: inherit; font-size: 10px; line-height: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; }
.vv-editor-layer-bar.is-selected { background: #f2673f; color: #fffaf0; }
.vv-editor-picker { display: grid; gap: 14px; }
.vv-editor-picker section { display: grid; gap: 8px; }
.vv-editor-picker h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.vv-editor-upload { justify-self: start; cursor: pointer; }
.vv-editor-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.vv-editor-picker-item { padding: 0; aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, currentColor 10%, transparent); cursor: pointer; }
.vv-editor-picker-item:hover, .vv-editor-picker-item:focus-visible { border-color: #f2673f; }
.vv-editor-picker-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vv-editor-svg { position: absolute; width: 0; height: 0; }
.vv-editor-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; width: 100%; height: 100%; }
.vv-editor-filter { padding: 12px 0; border-top: 1px solid #18213f25; display: grid; gap: 10px; }
.vv-editor-filter h3 { margin: 0; font-size: 15px; }
.vv-editor-picker-video { aspect-ratio: 16 / 9; padding: 8px; font: inherit; font-size: 12px; color: inherit; text-align: left; }
.vv-editor-audio-item { display: grid; gap: 8px; padding: 10px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 10px; }
.vv-editor-part { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 4px 8px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 8px; }
.clips-translate { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.clips-translate p { flex-basis: 100%; margin: 0; }

/* Fewer words, more action: 44 px targets, folded help and the card menu. */
.clips-help > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--vv-muted); font-size: 12px; width: fit-content; }
.clips-help > summary::before { content: '›'; margin-right: 8px; font-size: 16px; transition: rotate .15s; }
.clips-help[open] > summary::before { rotate: 90deg; }
.clips-layout .clips-limits > summary, .clips-layout .clips-card-details > summary, .clips-layout .clips-history > summary, .vv-editor-tab details > summary { display: flex; align-items: center; min-height: 44px; }

body.platform .clips-layout .button, body.platform .clips-layout .button.small { min-height: 44px; padding: 8px 14px; font-size: 13px; }
body.platform .clips-layout .text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; }
body.platform .clips-layout select, body.platform .clips-dialog.clips-layout select { min-height: 44px; font-size: 13px; }
body.platform .clips-dialog.clips-layout input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) { min-height: 44px; }
.clips-layout label.check, .clips-dialog.clips-layout label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 4px 0; line-height: 1.4; }
.clips-dialog.clips-layout input[type=checkbox], .clips-dialog.clips-layout input[type=radio] { margin: 0; }
.clips-dialog.clips-layout .clips-dialog-head [data-close-clips] { min-width: 44px; }
body.platform .clips-app .clips-redesign #clips-home-generate, body.platform .clips-app .clips-redesign .clips-home-file { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
body.platform .clips-app .clips-redesign .clips-home-search input, body.platform .clips-app .clips-redesign .clips-home-sort select { min-height: 44px; }
.clips-app .clips-status-filters button { min-height: 44px; }
body.platform .clips-app .clips-redesign .clips-project-select { width: 44px; height: 44px; top: 4px; right: 4px; }
body.platform .clips-app .clips-redesign .clips-project-selection label { min-height: 44px; }
body.platform .clips-app .clips-redesign .clips-project-footer .text-button { min-height: 44px; font-size: 13px; }
body.platform .clips-layout .clips-card-select { justify-content: center; width: 44px; height: 44px; padding: 0; }
body.platform .clips-layout .clips-card-select input { width: 18px; height: 18px; }
body.platform .clips-layout .clips-config-checkout .text-button { justify-content: center; font-size: 13px; }

/* Start screen: one sentence, a link field, a discreet "ou", one file button. */
body.platform .clips-app .clips-redesign .clips-home-create h3 { margin: 0 0 16px; font-size: 24px; }
.clips-app #clips-home-url-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.clips-home-url-field > span svg { display: block; }
body.platform .clips-app .clips-redesign .clips-home-divider { margin: 10px 0; font-size: 11px; }
.clips-home-divider::before, .clips-home-divider::after { background: var(--vv-border); }
body.platform .clips-app .clips-redesign .clips-home-limits { margin: 10px 0 0; font-size: 11px; text-align: left; line-height: 1.5; }
.clips-home-limits .clips-home-rights { white-space: nowrap; }
body.platform .clips-app .clips-redesign .clips-import-art { max-height: 240px; }
.clips-app .clips-home-empty > span { font-size: 0; margin-bottom: 8px; color: var(--vv-muted); }
.clips-app .clips-home-empty > span svg { width: 28px; height: 28px; }
body.platform .clips-app .clips-redesign .clips-home-empty { padding: 24px 16px; margin-top: 0; }
body.platform .clips-app .clips-redesign .clips-home-empty h3 { font-size: 15px; font-weight: 600; margin: 0; }
.clips-app .clips-channels { margin-top: 24px; }
body.platform .clips-app .clips-redesign .clips-channels .clips-home-library-head h3 { font-size: 17px; letter-spacing: -.2px; }
.clips-app .clips-channels > div[aria-live] > .fine { margin: 0; }

/* Configuration. */
.clips-strategy-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.clips-strategy { min-height: 44px; justify-items: center; text-align: center; padding: 12px 6px; gap: 4px; }
.clips-strategy.is-selected { padding: 11px 5px; }
.clips-strategy .clips-strategy-symbol { color: var(--vv-text); margin-bottom: 0; font-size: 20px; line-height: 1; }
@media (max-width: 1150px) { .clips-strategy-options { grid-template-columns: repeat(5, minmax(0, 1fr)); } .clips-strategy { display: grid; } }
@media (max-width: 640px) { .clips-strategy-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clips-strategy { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; padding: 10px; text-align: left; } .clips-strategy.is-selected { padding: 9px; } .clips-strategy .clips-strategy-symbol { font-size: 16px; } }
.clips-config-section .clips-help { margin-top: 4px; }
.clips-config-section-title { margin-bottom: 12px; align-items: center; }
body.platform .clips-config-section-title h4 { margin: 0; }
.clips-config-checkout h4 { margin: 0 0 16px; }
body.platform .clips-config-heading { padding: 18px 0 14px; }
.clips-preparation-card .eyebrow, .clips-config-heading .eyebrow { letter-spacing: 0; text-transform: none; font-size: 12px; }

/* Project and cut cards. The menu must escape the card, so only the cover clips. */
.clips-layout .clips-page-heading { justify-content: space-between; }
.clips-layout .clips-delete { margin-left: auto; color: var(--vv-muted); }
@media (min-width: 1091px) { .clips-layout .clips-original-actions { flex: 0 0 180px; } }
.clips-layout .clips-gallery-filters { flex-wrap: wrap; }
.clips-layout .clips-gallery-filters label, .clips-layout .clips-selection .check { font-size: 12px; }
.clips-layout .clips-gallery-count { font-size: 12px; }
.clips-layout .clips-candidate { overflow: visible; }
.clips-layout .clips-candidate.is-menu-open { position: relative; z-index: 20; }
.clips-layout .clips-card-cover { border-radius: 7px 7px 0 0; }
.clips-layout .clips-card-body { padding: 12px; }
.clips-layout .clips-candidate h4 { min-height: 0; font-size: 14px; margin-bottom: 4px; }
.clips-layout .clips-candidate .clips-range { font-size: 12px; }
.clips-layout .clips-card-kicker { font-size: 11px; }
.clips-layout .clips-candidate .clips-card-description { min-height: 0; -webkit-line-clamp: unset; font-size: 12px; margin: 0 0 8px; }
.clips-layout .clips-card-details { margin: 4px 0 0; }
.clips-layout .clips-card-details > summary { font-size: 12px; color: var(--vv-muted); }
body.platform .clips-layout p.clips-card-flag { margin: 8px 0 0; padding: 6px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--vv-warning); background: var(--vv-warning-soft); }
.clips-layout .clips-card-actions { align-items: stretch; margin-top: 10px; gap: 8px; }
body.platform .clips-layout .clips-card-actions > .button { flex: 1; min-height: 44px; font-size: 13px; padding: 8px 10px; gap: 7px; }
.clips-layout .clips-card-actions svg { width: 16px; height: 16px; }
.clips-layout .clips-card-menu { position: relative; flex: 0 0 44px; }
body.platform .clips-layout .button.clips-card-menu-toggle { width: 44px; min-height: 44px; padding: 0; }
.clips-layout .clips-card-menu-toggle[aria-expanded="true"] { border-color: var(--vv-accent); color: var(--vv-accent); }
.clips-layout .clips-card-menu-list { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; display: grid; width: 216px; padding: 6px; background: var(--vv-surface); border: 1px solid var(--vv-border); border-radius: 10px; box-shadow: 0 8px 24px var(--vv-shadow); }
.clips-layout .clips-card-menu-list[hidden] { display: none; }
.clips-layout .clips-menu-item { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--vv-text); font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.clips-layout .clips-menu-item:hover:not(:disabled), .clips-layout .clips-menu-item:focus-visible { background: var(--vv-raised); }
.clips-layout .clips-menu-item:disabled { color: var(--vv-muted); opacity: .6; cursor: default; }
.clips-layout .clips-menu-item[aria-pressed="true"] { color: var(--vv-accent); font-weight: 650; }
.clips-layout .clips-card-menu-list .clips-feedback { display: grid; gap: 0; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--vv-border); }
.clips-layout .clips-card-menu-list .clips-feedback-reason { padding: 4px 6px; font-size: 12px; }
.clips-layout .clips-job .clips-actions { flex-wrap: wrap; justify-content: flex-end; }
.clips-analysis-price { margin: 12px 0 4px; }

/* Channels and lives. */
.clips-channel-actions { align-items: center; flex-wrap: wrap; }

/* Editor: real targets for every control except the timeline's own drag handles. */
.vv-editor-dialog .vv-editor-bar .button, .vv-editor-dialog .vv-editor-tab .button, .vv-editor-dialog .vv-editor-inspector .button, .vv-editor-dialog .vv-editor-transport .button, .vv-editor-dialog .vv-editor-rail button, .vv-editor-dialog .vv-editor-subtabs button, .vv-editor-dialog .vv-editor-chips button, .vv-editor-dialog .vv-editor-timetools button, .vv-editor-dialog .vv-editor-segment-head button, .vv-editor-dialog .vv-editor-upload { min-height: 44px; }
.vv-editor-dialog .vv-editor-timetools button { min-width: 44px; }
.vv-editor-dialog .vv-editor-bar > .button, .vv-editor-dialog .vv-editor-tools > .button:not(.primary) { min-width: 44px; }
.vv-editor-dialog .vv-editor-bar-select, .vv-editor-dialog .vv-editor-tab select { min-height: 44px; }
.vv-editor-dialog [data-editor-export] { display: inline-flex; align-items: center; gap: 6px; }
body.platform .clips-app .clips-redesign .clips-project-title { min-height: 44px; }
body.platform .clips-layout input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]) { min-height: 44px; }

/* Covers without a poster: the play button replaces the placeholder, never overlaps it. */
.clips-layout .clips-card-cover .clips-poster-fallback { padding-bottom: 150px; }
.clips-config-cover:not(:disabled) .clips-poster-fallback, .clips-layout .clips-original-cover:not(:disabled) .clips-poster-fallback { color: transparent; }
.clips-config-cover:not(:disabled) .clips-poster-fallback svg, .clips-layout .clips-original-cover:not(:disabled) .clips-poster-fallback svg { display: none; }
.clips-card-kicker .clips-score:first-child { margin-left: 0; }
.clips-layout .clips-limits { font-size: 12px; }

/* Forms: equal field heights, real radio buttons, nothing truncated on a phone. */
body.platform .clips-config-section .clips-field-grid input:not([type=checkbox]), body.platform .clips-config-section .clips-field-grid select { height: 44px; box-sizing: border-box; margin: 0; }
.clips-dialog input[type=radio], .clips-dialog.clips-layout input[type=radio] { width: 18px; height: 18px; flex: none; accent-color: var(--vv-accent); }
.clips-youtube-kids { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; border: 0; padding: 0; margin: 8px 0; }
.clips-youtube-kids legend { padding: 0; margin-bottom: 2px; font-size: 12px; font-weight: 650; }
.clips-dialog .clips-translate { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 16px 0; }
.clips-dialog .clips-translate label { margin: 0; }
.clips-dialog .clips-translate > p { flex-basis: 100%; margin: 0; }
.clips-dialog .clips-translate > p:empty { display: none; }
#clips-analysis-form > .clips-field-grid:first-of-type { grid-template-columns: minmax(0, 1fr) 104px; }
.clips-channel-items > li { font-size: 13px; }
.clips-channel-items ul, .clips-channel-items .error { font-size: 13px; }
@media (max-width: 480px) {
  .clips-app #clips-home-url-form { grid-template-columns: minmax(0, 1fr); }
  .clips-layout .clips-gallery-filters { width: 100%; }
  .clips-layout .clips-gallery-filters label { flex: 1 1 100%; justify-content: space-between; }
  .clips-layout .clips-gallery-filters select { flex: 1; min-width: 0; max-width: none; }
  .clips-layout .clips-gallery-filters .button { flex: 1 1 100%; }
  .clips-layout .clips-selection { width: 100%; justify-content: space-between; }
}

/* Editor bar: the shared header rule must not narrow or pad it. */
.vv-editor-dialog header.vv-editor-bar { position: static; width: auto; max-width: none; height: auto; margin: 0; padding: 8px 16px; }
@media (max-width: 860px) {
  .vv-editor-dialog .vv-editor-timetools { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .vv-editor-dialog .vv-editor-tools { row-gap: 6px; }
}
@media (max-width: 480px) {
  /* The format stays in the Quadro tab; the bar keeps a single row of actions. */
  .vv-editor-dialog .vv-editor-tools [data-editor-bar-format] { display: none; }
  .vv-editor-dialog .vv-editor-tools { width: 100%; margin-left: 0; flex-wrap: nowrap; justify-content: space-between; }
}

/* Opening titles scale with the video, including on narrow touch screens. */
.vv-editor-frame .vv-editor-hook { font-family: "VV Montserrat", sans-serif; font-weight: 400; font-size: 8cqw; padding: .35em; overflow-wrap: anywhere; cursor: text; pointer-events: auto; }
.vv-editor-hook:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }
.vv-editor-title-actions { display: grid; gap: 10px; margin-top: 16px; }
.vv-editor-title-actions .button { white-space: normal; min-height: 44px; }
.vv-editor-tab[data-editor-tab="titulo"] input[type="color"] { width: 100%; min-height: 44px; }
.vv-editor-tab[data-editor-tab="titulo"] input[type="range"] { min-height: 32px; }

/* ASS subtitles are rendered by the same engine/font files as the export. */
.vv-editor-caption-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:3; }
.vv-editor-caption-error { position:absolute; bottom:4%; left:5%; right:5%; padding:8px; background:#17171fee; color:#fff; font-size:12px; z-index:5; }
.vv-editor-frame .vv-editor-hook { z-index:4; }

.vv-editor-final { padding:16px; background:#101014; border:1px solid #38323e; border-radius:14px; max-height:75vh; overflow:auto; }
.vv-editor-final>div { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.vv-editor-final video { display:block; width:auto; max-width:100%; height:55vh; margin:auto; background:#000; }
.vv-editor-final[hidden],.vv-editor-final video[hidden] { display:none; }

.vv-editor-branding { position:absolute; z-index:5; overflow:hidden; pointer-events:none; }
/* Trim the same transparent source margins as writeClipBranding: 323x43 at 2,7. */
.vv-editor-branding img { position:absolute; width:120.743%; max-width:none; height:auto; left:-.6192%; top:-16.2791%; }

/* Visual templates use the same DarkMovie controls, without changing navigation. */
.vv-template-dialog{width:min(960px,calc(100vw - 32px));max-width:960px;max-height:90dvh;padding:0;border:1px solid #39343f;border-radius:18px;background:#111115;color:#f5f3f7;overflow:auto;box-sizing:border-box}
.vv-template-dialog::backdrop{background:#000b}
.vv-template-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:24px 24px 12px}
.vv-template-heading h2{margin:0;font-size:24px}.vv-template-heading p{margin:6px 0;color:#aaa5b5}
.vv-template-tools{display:flex;justify-content:space-between;gap:16px;padding:8px 24px}.vv-template-tools>div{display:flex;gap:6px}.vv-template-tools input{min-width:0;width:240px}
.vv-template-dialog button[aria-pressed=true]{border-color:#ac81ed;background:#271d36}
.vv-template-example,.vv-template-message{margin:10px 24px;color:#aaa5b5;font-size:13px}.vv-template-message:empty{display:none}
.vv-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:8px 24px 24px}
.vv-template-card{display:flex;flex-direction:column;gap:9px;text-align:left;padding:8px;border:2px solid #302d36;border-radius:12px;background:#17171c;color:inherit;cursor:pointer;min-width:0;font:inherit}
.vv-template-card:focus-visible{outline:3px solid #c6a4ff;outline-offset:3px}.vv-template-card strong{font-size:14px}.vv-template-description{font-size:12px;line-height:1.5;color:#aaa5b5}
.vv-template-scene{container-type:inline-size;position:relative;isolation:isolate;display:block;overflow:hidden;width:100%;aspect-ratio:9/14;border-radius:6px;background:radial-gradient(ellipse at 50% 40%,#706478 0 20%,transparent 21%),linear-gradient(120deg,#272631,#504657);color:white}
.vv-template-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}.vv-template-scene.has-zoom img{transform:scale(1.15)}
.vv-template-brand{position:absolute;top:7px;left:6px;font-size:8px;font-weight:700}.vv-template-title{position:absolute;top:15%;left:5%;width:90%;padding:6px;box-sizing:border-box;background:#e73526;text-transform:uppercase;font-size:13px;line-height:1.2;font-weight:800;text-align:center}
.vv-template-caption{position:absolute;bottom:23%;left:5%;width:90%;text-align:center;font-weight:800;font-size:16px;line-height:1.15;text-shadow:1px 1px 2px #000,-1px -1px 2px #000}
.vv-template-scene[data-caption=karaoke] .vv-template-caption{color:#ffe14a}.vv-template-scene[data-accent=green] .vv-template-caption{color:#6df28b}.vv-template-scene[data-accent=red] .vv-template-caption{color:#ff6868}
.vv-template-scene[data-caption=minimal] .vv-template-caption{font-size:12px;font-weight:500}.vv-template-scene[data-caption=highlight] .vv-template-caption{background:#67508b}.vv-template-scene[data-caption=classic] .vv-template-caption{font-size:12px;background:#0008}
.vv-template-scene.has-retention{background:linear-gradient(180deg,#514b63 0 52%,#202d3c 52%)}.vv-template-scene.has-retention img{height:52%}.vv-template-scene.has-retention .vv-template-caption{bottom:45%}.vv-template-scene[data-format="16:9"] img{top:30%;height:40%}.vv-template-scene[data-format="1:1"] img{top:15%;height:70%}
.vv-template-format{position:absolute;bottom:6px;right:6px;background:#111b;border-radius:4px;padding:3px 5px;font-size:10px}
.vv-template-footer{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-top:1px solid #39343f;background:#17171c}.vv-template-footer>div:first-child{max-width:440px}.vv-template-footer p{font-size:12px;line-height:1.5;color:#aaa5b5;margin:6px 0 0}.vv-template-footer-actions{display:flex;gap:8px;flex-shrink:0}
.clips-selection{flex-wrap:wrap}
@media(max-width:620px){.vv-template-dialog{width:calc(100vw - 16px);max-height:94dvh;border-radius:12px}.vv-template-heading{padding:18px 16px 8px}.vv-template-tools{padding:8px 16px;flex-wrap:wrap}.vv-template-tools input{width:100%;box-sizing:border-box}.vv-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 16px 16px;gap:10px}.vv-template-example,.vv-template-message{margin:8px 16px}.vv-template-footer{padding:12px 16px;display:block}.vv-template-footer-actions{margin-top:12px;display:grid;grid-template-columns:auto 1fr}.vv-template-footer-actions .button{padding:10px}.vv-template-heading h2{font-size:21px}}

.vv-library-categories{display:flex;flex-wrap:wrap;gap:6px}.vv-library-categories .button{padding:6px 9px;font-size:12px}.vv-library-categories [aria-pressed=true]{background:#332248;border-color:#a477ed}
.vv-editor-picker .vv-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.vv-library-grid .vv-editor-picker-item{position:relative;aspect-ratio:4/5;border-color:#39343f}.vv-library-grid .vv-editor-picker-item:hover,.vv-library-grid .vv-editor-picker-item:focus-visible{border-color:#ad83ed}
.vv-library-card-label{position:absolute;bottom:0;left:0;right:0;padding:18px 8px 7px;background:linear-gradient(transparent,#000d);color:white;text-align:left;font-size:11px;line-height:1.4;pointer-events:none}
.vv-library-preview{width:min(600px,calc(100vw - 24px));max-width:600px;max-height:90dvh;overflow:auto;box-sizing:border-box;background:#151419;color:#f5f3f7;border:1px solid #453b50;border-radius:16px;padding:20px}.vv-library-preview::backdrop{background:#000b}.vv-library-preview h3{margin:0 0 14px}.vv-library-preview>img,.vv-library-preview>video{width:100%;max-height:50dvh;object-fit:contain;background:#08080b;border-radius:8px}.vv-library-preview p{font-size:13px;line-height:1.5}.vv-library-preview a{color:#c7a7fc}.vv-library-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.vv-library-preview button{min-height:44px}
@media(max-width:600px){.vv-library-preview{padding:16px}.vv-library-actions{display:grid;grid-template-columns:auto 1fr}.vv-library-actions .button{padding:10px}}

/* Audio library: compact rows keep listening, favorites and insertion distinct. */
.vv-audio-library { display:grid; gap:12px; min-width:0; }
.vv-audio-tabs { display:flex; gap:8px; }
.vv-audio-tabs [aria-pressed="true"] { background:#302040; border-color:#a879e6; }
.vv-audio-results { display:grid; gap:8px; }
.vv-audio-result { display:grid; grid-template-columns:40px minmax(0,1fr) 36px 40px; gap:7px; align-items:center; padding:10px 4px; border-bottom:1px solid #303038; }
.vv-audio-info { display:grid; gap:5px; min-width:0; }
.vv-audio-info strong { font-size:13px; overflow-wrap:anywhere; }
.vv-audio-info small { color:#a9a6b5; font-size:11px; }
.vv-audio-play,.vv-audio-favorite { min-height:40px; border:1px solid #393541; border-radius:8px; background:#1b1821; color:#d2b3ff; cursor:pointer; }
.vv-audio-favorite[aria-pressed="true"] { color:#f2cc67; }
.vv-audio-result .button { min-height:40px; padding:8px; }
.vv-audio-library .vv-editor-replace { flex-wrap:wrap; }
.vv-audio-library input,.vv-audio-library select { min-width:0; max-width:100%; }
@media(max-width:600px){ .vv-audio-result { grid-template-columns:44px minmax(0,1fr) 40px 44px; } .vv-audio-play,.vv-audio-favorite,.vv-audio-result .button { min-height:44px; } }

.vv-elements-library { display:grid; gap:12px; min-width:0; }
.vv-elements-categories { display:flex; gap:6px; flex-wrap:wrap; }
.vv-elements-categories [aria-pressed="true"] { background:#302040; border-color:#a879e6; }
.vv-elements-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:14px; }
.vv-element-card { display:grid; gap:8px; justify-items:center; align-content:start; min-width:0; padding:10px; color:#eeeaf5; background:#19171f; border:1px solid #35313c; border-radius:10px; cursor:pointer; }
.vv-element-card:hover,.vv-element-card:focus-visible { border-color:#b482ef; background:#251d30; }
.vv-element-card img { width:100%; max-width:100px; height:88px; object-fit:contain; }
.vv-element-card span { font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
@media(prefers-reduced-motion:reduce){.vv-element-card img[src$=".gif"] { visibility:hidden; } .vv-element-card:has(img[src$=".gif"])::before { content:'▶ GIF'; height:88px; display:grid; place-items:center; } .vv-element-card img[src$=".gif"] { display:none; }}

/* Transition cards stay touch-sized in the compact editor drawer. */
.vv-transition-card{display:grid;gap:8px;min-width:0;padding:10px;border:1px solid #37313f;border-radius:12px;background:#15131a;color:#efedf3;text-align:left;cursor:pointer;font:inherit;font-size:13px}
.vv-transition-card small{color:#aaa3b5;font-size:11px}.vv-transition-card[aria-pressed="true"]{border-color:#ae85ed;background:#281d39}.vv-transition-card:focus-visible{outline:2px solid #c6a3ff;outline-offset:2px}.vv-transition-card:disabled{opacity:.4;cursor:default}
.vv-transition-demo{position:relative;display:grid;place-items:center;overflow:hidden;aspect-ratio:1.6;background:#9b7ce7;border-radius:6px;color:#211738;font-size:27px;font-weight:800}.vv-transition-demo i{position:absolute;inset:-1%;background:#000;opacity:0;animation:vv-transition-dip 2s -.5s infinite paused}.vv-transition-card:hover i,.vv-transition-card:focus i{animation-play-state:running}.vv-transition-demo[data-kind="white"] i,.vv-transition-demo[data-kind="flash"] i{background:white}.vv-transition-demo[data-kind^="curtain"] i{opacity:1;background:#17131f;animation-name:vv-transition-x}.vv-transition-demo[data-kind="curtain-left"] i{animation-direction:reverse}.vv-transition-demo[data-kind="curtain-up"] i{animation-name:vv-transition-y;animation-direction:reverse}.vv-transition-demo[data-kind="curtain-down"] i{animation-name:vv-transition-y}
@keyframes vv-transition-dip{0%,100%{opacity:0}50%{opacity:1}}@keyframes vv-transition-x{0%{transform:translateX(-101%)}100%{transform:translateX(101%)}}@keyframes vv-transition-y{0%{transform:translateY(-101%)}100%{transform:translateY(101%)}}
@media(prefers-reduced-motion:reduce){.vv-transition-demo i{animation:none!important;opacity:.35;transform:translateX(50%)}}

.vv-editor-retention[data-kind^="asset:"]{animation:none;background:#000;border:0}.vv-editor-retention video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.vv-library-categories{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}

.vv-retention-targets{display:grid;gap:12px;max-height:45vh;overflow:auto;padding:12px 0}.vv-retention-targets .check{display:flex;align-items:center;gap:10px;overflow-wrap:anywhere}
/* Paused, lazy-loaded frames keep drafts and older exports recognizable. */
.clips-card-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; pointer-events:none; }
.clips-card-video.is-loaded { opacity:1; }
.clips-draft-label { position:absolute; top:8%; left:5%; right:5%; z-index:2; text-align:center; font-size:10px; color:white; background:#0009; border-radius:5px; padding:3px; pointer-events:none; }
.clips-export-review { max-width:min(620px,calc(100vw - 32px)); max-height:85dvh; overflow:auto; }
.clips-export-review li { margin-block:12px; overflow-wrap:anywhere; }
.clips-export-review li[data-severity=error] { color:#fb7185; }
.clips-export-review > button { margin:6px; }

#clips-channel-form fieldset { min-width: 0; border: 1px solid var(--clip-line); border-radius: 12px; padding: 16px; margin: 16px 0; }
#clips-channel-form label { min-width: 0; }
@media (max-width: 600px) {
  #clips-channel-form .clips-field-grid { grid-template-columns: minmax(0, 1fr); }
  #clips-channel-form fieldset { padding: 12px; }
}

.creator-finished-exports { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:16px; margin-top:16px; }
.creator-finished-exports article { display:grid; gap:12px; min-width:0; padding:16px; border:1px solid var(--clip-line); border-radius:12px; }
.creator-finished-exports video { width:100%; max-height:420px; background:#000; }

body:has(> .vv-finished-video-editor) > :not(.vv-editor-page, .vv-library-preview, .vv-template-dialog, #toast, script, dialog, [popover]) { display:none !important; }
body > .clips-dialog.vv-finished-video-editor { height:100dvh; }

.vv-editor-scene-media {position:absolute;inset:0;z-index:0;pointer-events:none;}
.vv-scenes-panel select {width:100%;max-width:100%;margin:8px 0 14px;}
.vv-scenes-panel .vv-scene-actions {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0;}
.vv-scenes-panel p {overflow-wrap:anywhere;}

.vv-editor-radar-frame { position: absolute; inset: 0 auto auto 0; transform-origin: 0 0; pointer-events: none; }
.vv-editor-branding.is-radar img { inset: 0; width: 100%; height: 100%; }

/* The same full-screen workspace hosts cuts and finished Creator videos. */
.vv-workstation.vv-editor-page {
  --ws-shell: var(--studio-shell, #09090c);
  --ws-panel: var(--studio-panel, #101014);
  --ws-stage: var(--studio-canvas, #17171d);
  --ws-rule: var(--studio-line, #292930);
  --ws-text: var(--studio-text, #f4f3f7);
  --ws-muted: var(--studio-muted, #a6a4b3);
  --ws-accent: var(--studio-accent, #9c8cf4);
  --ws-rail: var(--studio-rail-width, clamp(72px, 6.55vw, 98px));
  --ws-properties: var(--studio-inspector-width, clamp(260px, 22vw, 344px));
  --ws-gutter: clamp(98px, 10.8vw, 164px);
  color: var(--ws-text);
  background: var(--ws-shell);
  color-scheme: dark;
}
.vv-workstation.vv-editor-page .vv-editor {
  display: grid;
  grid-template:
    "bar bar bar" var(--studio-header-height, 52px)
    "rail stage properties" minmax(0, 1fr)
    "rail timeline timeline" var(--studio-timeline-height, clamp(186px, 34dvh, 370px))
    / var(--ws-rail) minmax(0, 1fr) var(--ws-properties);
  height: 100%; min-height: 0; overflow: hidden;
}
.vv-workstation.vv-panel-closed .vv-editor { --ws-properties: 0px; }
.vv-workstation.vv-panel-closed .vv-editor-panel { display: none; }
.vv-workstation.vv-editor-page .vv-editor-main { display: contents; }
.vv-workstation.vv-editor-page .vv-editor-bar {
  grid-area: bar; display: grid; align-items: center; justify-content: stretch;
  grid-template-columns: var(--ws-rail) minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px; padding: 0 12px 0 0; border: 0; border-bottom: 1px solid var(--ws-rule);
  background: var(--ws-shell);
}
.vv-workstation :is(.vv-studio-nav, .vv-studio-project, .vv-studio-scale, .vv-studio-saved) { display: flex; align-items: center; min-width: 0; }
.vv-workstation .vv-studio-nav { justify-content: center; height: 100%; gap: 2px; background: var(--ws-panel); border-right: 1px solid var(--ws-rule); }
.vv-workstation .vv-studio-project { gap: 4px; }
.vv-workstation .vv-studio-scale { gap: 2px; }
.vv-workstation .vv-studio-icon { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.vv-workstation .vv-studio-tool {
  display: inline-grid; flex: none; place-items: center; width: 32px; min-height: 32px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--ws-muted); font: inherit; cursor: pointer;
}
.vv-workstation .vv-studio-tool:hover:not(:disabled) { background: #ffffff0c; color: var(--ws-text); }
.vv-workstation .vv-studio-tool:disabled { opacity: .35; cursor: default; }
.vv-workstation .vv-studio-saved { gap: 5px; color: var(--ws-muted); }
.vv-workstation.vv-editor-page .vv-editor-status { min-width: 0; max-width: none; color: inherit; white-space: normal; }
.vv-workstation.vv-editor-page .vv-editor-tools { width: auto; justify-content: end; gap: 6px; flex-wrap: nowrap; }
.vv-workstation.vv-editor-page .vv-editor-tools > .button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 13px; border: 1px solid transparent; border-radius: 8px; background: var(--ws-accent); color: #171426; box-shadow: none; }
.vv-workstation.vv-editor-page .vv-editor-bar .vv-editor-title { width: 0; min-width: 0; max-width: 360px; margin: 0 0 0 6px; padding: 4px; color: var(--ws-text); text-align: left; font-weight: 550; }
.vv-workstation.vv-editor-page .vv-editor-bar select, .vv-workstation.vv-editor-page .vv-studio-zoom select {
  width: auto; max-width: 100%; min-height: 30px; margin: 0; padding: 3px 4px; border: 0; border-radius: 4px; background: var(--ws-shell); color: var(--ws-muted); font: inherit; font-size: 12px;
}
.vv-workstation.vv-editor-page :focus-visible { outline: 2px solid var(--ws-accent); outline-offset: -2px; }
.vv-workstation.vv-editor-page .vv-editor-rail {
  grid-area: rail; min-width: 0; min-height: 0; width: 100%; overflow: auto;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 7px 5px;
  border: 0; border-right: 1px solid var(--ws-rule); background: var(--ws-panel);
  scrollbar-width: thin; scrollbar-color: #37363f transparent;
}
.vv-workstation.vv-editor-page .vv-editor-rail button { flex: 0 0 auto; align-content: center; justify-items: center; min-height: 43px; gap: 3px; padding: 3px; font-size: 11px; line-height: 1.2; color: var(--ws-muted); border: 0; border-radius: 6px; }
.vv-workstation.vv-editor-page .vv-editor-rail button[aria-pressed="true"] { color: var(--ws-accent); background: #201e30; box-shadow: none; }
.vv-workstation .vv-editor-rail button:is([data-editor-rail="ia"], [data-editor-rail="titulo"], [data-editor-rail="audio"]) { margin-bottom: 4px; }
.vv-workstation .vv-editor-rail svg { width: 18px; height: 18px; }
.vv-workstation.vv-editor-page .vv-editor-stage { grid-area: stage; order: 0; min-height: 0; min-width: 0; height: auto; padding: clamp(12px, 2.6dvh, 30px); background: var(--ws-stage); }
.vv-workstation.vv-editor-page .vv-editor-frame { border: 0; border-radius: 0; box-shadow: none; }
.vv-workstation.vv-editor-page .vv-editor-panel {
  grid-area: properties; min-width: 0; min-height: 0; width: auto; max-height: none;
  overflow: auto; overscroll-behavior: contain; padding: 14px 15px;
  border: 0; border-left: 1px solid var(--ws-rule); background: var(--ws-panel);
}
.vv-workstation .vv-editor-tab > h3:first-child { padding-bottom: 12px; border-bottom: 1px solid var(--ws-rule); margin: 0 0 14px; font-size: 14px; }
.vv-workstation .vv-editor-layer-panel { align-content: start; }
.vv-workstation .vv-editor-panel .error:empty { display: none; }
.vv-workstation .vv-editor-final:not([hidden]) { position: absolute; z-index: 10; top: calc(var(--studio-header-height, 52px) + 8px); left: 50%; transform: translateX(-50%); width: min(620px, 95%); box-shadow: 0 16px 60px #0008; }
.vv-workstation.vv-editor-page .vv-editor-timeline {
  grid-area: timeline; min-width: 0; min-height: 0; max-height: none; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; background: var(--ws-shell); border: 0; border-top: 1px solid var(--ws-rule);
}
.vv-workstation.vv-editor-page .vv-editor-timebar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; min-height: 42px; gap: 8px; margin: 0; padding: 3px 10px; border-bottom: 1px solid #ffffff09;
}
.vv-workstation.vv-editor-page .vv-editor-timetools { gap: 2px; flex-wrap: nowrap; }
.vv-workstation.vv-editor-page .vv-editor-timetools button { min-width: 28px; min-height: 28px; height: 28px; padding: 0 5px; color: var(--ws-muted); }
.vv-workstation.vv-editor-page .vv-studio-zoom { justify-self: end; }
.vv-workstation.vv-editor-page .vv-studio-zoom input[type="range"] { width: clamp(56px, 6.5vw, 104px); accent-color: var(--ws-accent); }
.vv-workstation.vv-editor-page .vv-editor-transport { gap: 9px; font-size: 13px; }
.vv-workstation.vv-editor-page .vv-editor-transport .button { display: grid; place-items: center; width: 31px; height: 29px; min-height: 0; padding: 0; border: 0; border-radius: 7px; background: #efeef2; color: #141318; font-size: 12px; box-shadow: none; }
.vv-workstation .vv-studio-monitor { display: inline-grid; align-items: center; }
.vv-workstation .vv-studio-monitor > svg { display: none; }
body.platform > .vv-workstation .vv-editor-transport button[data-editor-play] { background: #f2f1f5; color: #16151b; }
.vv-workstation .vv-studio-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vv-workstation .vv-editor-lanes-scroll { overflow: auto; min-height: 0; min-width: 0; scrollbar-width: thin; }
.vv-workstation .vv-editor-trackboard { position: relative; min-height: 100%; isolation: isolate; }
.vv-workstation .vv-track-row { display: grid; grid-template-columns: var(--ws-gutter) minmax(0, 1fr); align-items: stretch; min-height: 26px; border-bottom: 2px solid var(--ws-shell); }
.vv-workstation .vv-track-label { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ws-muted); background: var(--ws-shell); border-right: 1px solid var(--ws-rule); font-size: 11px; }
.vv-workstation .vv-track-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-workstation .vv-track-label svg { width: 15px; height: 15px; }
.vv-workstation.vv-editor-page .vv-editor-ruler { height: 24px; overflow: hidden; background: repeating-linear-gradient(90deg, #53515f 0 1px, transparent 1px 100%) bottom left / var(--tick-width, 16px) 4px repeat-x; opacity: 1; color: var(--ws-muted); font-size: 10px; cursor: crosshair; touch-action: none; user-select: none; }
.vv-workstation .vv-editor-ruler span { top: 2px; transform: none; padding-left: 4px; }
.vv-workstation.vv-editor-page :is(.vv-editor-lane, .vv-editor-layer-lane) { height: 28px; margin: 0; border: 0; border-radius: 0; background: #15151a; }
.vv-workstation.vv-editor-page .vv-editor-layer-lanes { display: block; margin: 0; }
.vv-workstation.vv-editor-page .vv-editor-lane button, .vv-workstation.vv-editor-page .vv-editor-layer-bar {
  top: 2px; bottom: 2px; padding: 0 6px; border: 0; border-radius: 4px; color: #f6f4fc; font-size: 11px; line-height: 1.2;
}
.vv-workstation.vv-editor-page .vv-editor-caption-lane button { background: #345e51; box-shadow: inset 0 2px #65b693; }
.vv-workstation.vv-editor-page .vv-editor-audio-lane button { background: #314957; box-shadow: inset 0 2px #65a9b1; }
.vv-workstation.vv-editor-page .vv-editor-layer-bar { background: #48445e; box-shadow: inset 0 2px #9991bf; }
.vv-workstation.vv-editor-page .vv-editor-layer-bar.is-selected { background: #675e9b; box-shadow: inset 0 0 0 2px #b1a5ff; }
.vv-workstation.vv-editor-page .vv-editor-track { height: 62px; min-width: 0; border: 0; border-radius: 0; background: #1a1a22; }
.vv-workstation.vv-editor-page .vv-editor-selection { border: 2px solid #9489c9; background: transparent; border-radius: 4px; }
.vv-workstation.vv-editor-page .vv-editor-blocks span { border: 1px solid #887cad; border-radius: 4px; color: white; }
.vv-workstation .vv-editor-wave { height: 30px; background: #514c66; }
.vv-workstation .vv-editor-handle { width: 8px; }
.vv-workstation .vv-studio-needle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--ws-gutter); right: 0; overflow: hidden; pointer-events: none; }
.vv-workstation.vv-editor-page .vv-editor-playhead { width: 1px; background: #f1eff8; }
.vv-workstation .vv-editor-playhead::before { content: ""; display: block; width: 10px; height: 9px; background: inherit; transform: translateX(-4px); clip-path: polygon(0 0,100% 0,50% 100%); }
@media (max-width: 1090px) {
  .vv-workstation.vv-editor-page { --ws-rail: 68px; --ws-properties: 258px; --ws-gutter: 88px; }
  .vv-workstation.vv-editor-page .vv-editor-bar { gap: 6px; }
  .vv-workstation .vv-studio-project { gap: 0; }
  .vv-workstation.vv-editor-page .vv-studio-zoom select { max-width: 112px; }
}
@media (max-width: 740px) {
  body > .clips-dialog.vv-workstation.vv-editor-page { overflow: hidden; }
  .vv-workstation.vv-editor-page { --ws-gutter: 68px; }
  .vv-workstation.vv-editor-page .vv-editor {
    --compact-properties: clamp(130px, 24dvh, 230px);
    display: grid; height: 100%; min-height: 0; overflow: hidden;
    grid-template: "bar" auto "stage" minmax(0, 1fr) "timeline" clamp(118px, 22dvh, 210px)
      "rail" 49px "properties" var(--compact-properties) / minmax(0,1fr);
  }
  .vv-workstation.vv-editor-page .vv-editor-bar { order: -4; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 44px; padding-right: 6px; gap: 4px; }
  .vv-workstation .vv-studio-nav { padding: 0 2px; }
  .vv-workstation .vv-studio-nav .vv-studio-tool { width: 28px; }
  .vv-workstation.vv-editor-page .vv-studio-scale { grid-column: 1; grid-row: 2; gap: 0; justify-content: center; }
  .vv-workstation.vv-editor-page .vv-studio-scale button { display: none; }
  .vv-workstation.vv-editor-page .vv-editor-tools { grid-column: 2 / -1; grid-row: 2; justify-content: end; }
  .vv-workstation .vv-studio-project { grid-column: 2 / -1; }
  .vv-workstation.vv-editor-page .vv-editor-bar .vv-editor-title { flex: 1; min-width: 2em; max-width: none; }
  .vv-workstation.vv-panel-closed .vv-editor { --compact-properties: 0px; }
  .vv-workstation.vv-editor-page .vv-editor-stage { height: auto; padding: 9px; }
  .vv-workstation.vv-editor-page .vv-editor-timeline { height: auto; }
  .vv-workstation.vv-editor-page .vv-editor-timebar { min-height: 32px; grid-template-columns: auto 1fr auto; gap: 4px; padding: 2px 5px; }
  .vv-workstation.vv-editor-page .vv-editor-transport { justify-self: center; gap: 5px; font-size: 10px; }
  .vv-workstation .vv-studio-monitor { position: relative; width: 22px; height: 26px; place-items: center; color: var(--ws-muted); }
  .vv-workstation .vv-studio-monitor > svg { display: block; width: 15px; height: 15px; }
  .vv-workstation.vv-editor-page .vv-studio-monitor select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  .vv-workstation .vv-studio-monitor:focus-within { outline: 2px solid var(--ws-accent); }
  .vv-workstation .vv-editor-trackboard { display: flex; flex-direction: column; }
  .vv-workstation .vv-ruler-row { order: -3; }
  .vv-workstation [data-caption-row] { order: -2; }
  .vv-workstation .vv-picture-row { order: -1; }
  .vv-workstation.vv-editor-page .vv-track-row { flex: 0 0 auto; min-height: 20px; }
  .vv-workstation.vv-editor-page :is(.vv-editor-lane, .vv-editor-layer-lane, .vv-editor-ruler) { height: 21px; }
  .vv-workstation.vv-editor-page .vv-editor-track { height: 43px; }
  .vv-workstation .vv-editor-thumbs { height: 26px; }
  .vv-workstation .vv-editor-wave { height: 17px; }
  .vv-workstation.vv-editor-page .vv-studio-zoom input[type="range"] { width: 42px; }
  .vv-workstation.vv-editor-page .vv-editor-timetools button { min-width: 22px; }
  .vv-workstation.vv-editor-page .vv-editor-rail { order: -1; flex-direction: row; padding: 4px; gap: 2px; border: 0; border-block: 1px solid var(--ws-rule); }
  .vv-workstation.vv-editor-page .vv-editor-rail button { flex: 0 0 57px; margin: 0; }
  .vv-workstation.vv-editor-page .vv-editor-panel { overflow: auto; padding: 12px; border: 0; }
  .vv-workstation.vv-editor-page .vv-editor-rail { overflow-y: hidden; }
  .vv-workstation .vv-track-label { padding-inline: 4px; gap: 3px; font-size: 9px; }
  .vv-workstation .vv-track-label svg { width: 12px; height: 12px; }
  .vv-workstation .vv-editor-final:not([hidden]) { top: 80px; }
}
@media (max-width: 370px) {
  .vv-workstation.vv-editor-page .vv-studio-zoom [data-editor-zoom-step] { display: none; }
}
@media (max-width: 740px) and (max-height: 480px) {
  .vv-workstation.vv-editor-page .vv-editor {
    grid-template: "bar bar" auto "stage properties" minmax(0,1fr)
      "timeline timeline" 105px "rail rail" 45px / minmax(0,1fr) minmax(175px,36vw);
  }
  .vv-workstation.vv-panel-closed .vv-editor { grid-template-columns: minmax(0,1fr) 0; }
  .vv-workstation.vv-editor-page .vv-editor-bar { grid-template-columns: auto minmax(0,1fr) auto auto; }
  .vv-workstation.vv-editor-page .vv-editor-bar > * { grid-column: auto; grid-row: auto; }
  .vv-workstation.vv-editor-page .vv-editor-stage { padding: 3px; }
}
