.ve { max-width: 1280px; margin: 0 auto; padding: 24px clamp(14px, 3vw, 44px) 0; }
.ve [hidden] { display: none !important; }
.ve h1, .ve h2, .ve p { margin: 0; }
.ve h1 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); letter-spacing: -.055em; line-height: 1.1; }
.ve h2 { font-size: 1.15rem; letter-spacing: -.035em; }
.ve-head, .ve-section-head, .ve-actions, .ve-voice-row, .ve-meta, .ve-transport, .ve-original, .ve-export-state, .ve-clip-actions { display: flex; align-items: center; gap: 10px; }
.ve-head, .ve-section-head, .ve-meta { justify-content: space-between; }
.ve-head { margin-bottom: 20px; }
.ve-session-note { display: flex; align-items: flex-start; gap: 9px; margin: -5px 0 14px; padding: 9px 12px; border-radius: 8px; background: #fff5df; color: #674719; font-size: .87rem; }
.ve-session-note svg { width: 17px; margin-top: 1px; }
.ve-icon { display: inline-block; width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ve button, .ve a, .ve select, .ve input[type=range] { touch-action: manipulation; }
.ve button:focus-visible, .ve a:focus-visible, .ve input:focus-visible, .ve select:focus-visible, .ve textarea:focus-visible, .ve summary:focus-visible { outline: 3px solid var(--accent-400); outline-offset: 2px; }
.ve button:disabled { opacity: .50; cursor: default; }
.ve .btn, .ve-tool { gap: 7px; }
.ve-work { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(305px, 1fr); gap: 16px; }
.ve-panel, .ve-monitor { min-width: 0; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-sm); overflow: hidden; }
.ve-panel { background: var(--white); }
.ve-monitor { background: #181a28; color: #fff; display: grid; grid-template-rows: 1fr auto; }
.ve-screen { display: grid; place-items: center; min-height: 252px; height: 100%; max-height: 46vh; overflow: hidden; position: relative; background: #141622; }
.ve-screen:has(.ve-drop:not([hidden])) { background: radial-gradient(ellipse at 50% 30%, #303750 0, #1a1d2f 72%); }
.ve-screen.dragging { outline: 3px solid var(--accent-300); outline-offset: -5px; }
.ve-screen video, .ve-still { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; object-fit: contain; background: black; }
.ve-transition-preview { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 1; }
.ve-drop { text-align: center; padding: 25px 12px; display: grid; justify-items: center; gap: 8px; }
.ve-drop .ve-drop-icon { width: 48px; height: 48px; margin-bottom: 6px; stroke-width: 1.35; color: #acb8ff; }
.ve-drop h2 { color: white; font-size: 1.45rem; }
.ve-drop p { color: #cbd0e1; font-size: .9rem; }
.ve-drop .btn { background: #f8f9ff; color: #242841; margin-top: 5px; }
.ve-demo { background: transparent; color: #c6cfff; border: 0; cursor: pointer; padding: 4px 8px; text-decoration: underline; text-underline-offset: 4px; }
.ve-transport { min-height: 50px; padding: 6px 14px; background: #222635; font-variant-numeric: tabular-nums; font-size: .85rem; }
.ve-play { color: #262b48; background: white; border: none; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; flex: none; }
.ve-transport input { flex: 1; min-width: 25px; }
.ve input[type=range] { accent-color: var(--accent-500); cursor: pointer; padding: 0; }
.ve-compose { padding: 16px 18px; overflow: visible; z-index: 5; position: relative; }
.ve-tabs { display: flex; padding: 4px; background: var(--surface-tint); border-radius: 10px; gap: 4px; margin-bottom: 14px; }
.ve-tabs button { background: transparent; flex: 1; min-height: 34px; border: none; color: var(--slate); font: inherit; font-size: .9rem; font-weight: 600; border-radius: 7px; cursor: pointer; }
.ve-tabs [aria-pressed=true] { background: white; color: var(--accent-700); box-shadow: var(--sh-xs); }
.ve-field { display: grid; gap: 4px; margin-bottom: 9px; }
.ve-field label, .ve-inspector label, .ve-original label { font-weight: 600; font-size: .88rem; }
.ve select, .ve textarea, .ve input[type=number] { font: inherit; border-radius: 8px; border: 1px solid var(--line); background-color: white; color: var(--ink); padding: 7px 10px; max-width: 100%; min-width: 0; }
.ve select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23515a7c' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.ve textarea { width: 100%; height: 80px; resize: vertical; line-height: 1.4; min-height: 68px; }
.ve-voice-row { gap: 6px; }
.ve-voice-picker { position: relative; }
#voice-label { font-size: .88rem; font-weight: 600; }
.ve-voice-trigger { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 42px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.ve-voice-trigger strong { flex: 1; font-size: .95rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ve-voice-trigger > svg { width: 16px; color: var(--slate); }
.ve-voice-trigger[aria-expanded=true] { border-color: var(--accent-500); }
.ve-portrait { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--accent-100); color: var(--accent-700); font-weight: 700; overflow: hidden; border-radius: 9px; }
.ve-portrait img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
#voice-face .ve-portrait { width: 30px; height: 30px; border-radius: 7px; }
.ve-voice-menu { position: absolute; z-index: 6; inset: calc(100% + 4px) 0 auto; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 36px #22264429; }
.ve-voice-menu .ve-tabs { margin-bottom: 7px; }
.ve-voice-menu input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font: inherit; font-size: .88rem; }
.ve-voice-options { overflow-y: auto; overscroll-behavior: contain; max-height: min(290px, 38vh); margin-top: 6px; }
.ve-voice-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 2px; }
.ve-choice { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 5px; cursor: pointer; color: var(--ink); background: transparent; border: 0; border-radius: 7px; text-align: left; font: inherit; }
.ve-choice[aria-pressed=true], .ve-choice:hover:enabled { color: var(--accent-700); background: var(--accent-50); }
.ve-choice > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.ve-choice strong, .ve-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-choice strong { font-size: .89rem; }
.ve-choice small, .ve-voice-empty { color: var(--text-muted); font-size: .8rem; }
.ve-voice-empty { padding: 8px 2px; }
.ve-voice-option .ve-audition { width: 36px; min-height: 36px; padding: 5px; }
.ve-audition[aria-pressed=true] { color: var(--accent-700); background: var(--accent-50); }
.ve-audition, .ve-tool { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--slate); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: .86rem; min-height: 36px; padding: 6px 11px; }
.ve-tool:hover:enabled, .ve-audition:hover:enabled { color: var(--accent-700); background: var(--accent-50); }
.ve-meta, .ve-hint, .ve-section-head p { font-size: .84rem; color: var(--text-muted); }
.ve-meta { margin: 5px 0 10px; }
#speak { width: 100%; min-height: 40px; }
.ve-hint { margin-top: 7px; }
.ve-hint:empty { display: none; }
.ve-takes { max-height: 270px; overflow-y: auto; display: grid; gap: 6px; }
.ve-take { width: 100%; display: grid; gap: 3px; text-align: left; background: var(--surface-soft); cursor: pointer; border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); }
.ve-take span { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; color: var(--text-muted); font-size: .85rem; }
.ve-timeline { margin-top: 16px; padding: 18px; }
.ve-tips { margin-top: 16px; scroll-margin-top: 5rem; }
.ve-tips summary { padding-block: 12px; font-size: 1rem; }
.ve-tips summary::before, .ve-tips summary::after { top: calc(12px + .7em); }
.ve-tips details > p { padding-bottom: 14px; }
.ve-section-head { margin-bottom: 12px; align-items: flex-start; flex-wrap: wrap; }
.ve-section-head p { margin-top: 2px; }
.ve-actions { flex-wrap: wrap; }
.ve-tracks { --gutter: 137px; display: grid; grid-template-columns: var(--gutter) minmax(0,1fr); row-gap: 5px; position: relative; isolation: isolate; }
.ve-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.ve-label, .ve-tracks > span:first-child { position: sticky; left: 0; z-index: 3; background: white; }
.ve-label { display: flex; align-items: center; gap: 6px; padding-right: 9px; font-weight: 600; font-size: .86rem; color: var(--slate); }
.ve-label .ve-icon { width: 16px; }
.ve-add { width: 30px; height: 30px; padding: 4px; margin-left: auto; flex: none; display: grid; place-items: center; border: 1px solid var(--accent-200); color: var(--accent-700); background: var(--accent-50); border-radius: 7px; cursor: pointer; }
.ve-add:hover:enabled { background: var(--accent-100); }
.ve-add .ve-icon { width: 18px; height: 18px; stroke-width: 2.2; }
.ve-zoom { display: flex; gap: 6px; align-items: center; font-size: .86rem; color: var(--slate); }
.ve-zoom > svg { width: 16px; }
.ve-zoom .ve-tool { width: 32px; min-height: 32px; padding: 3px; }
.ve-zoom output { min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
.ve-ruler { position: relative; height: 23px; margin-inline: 0; border-bottom: 1px solid var(--line); cursor: crosshair; }
.ve-tick { position: absolute; color: var(--text-muted); font: .75rem/1.1 "Onest", sans-serif; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.ve-tick:first-child { transform: none; }
.ve-tick:last-child { transform: translateX(-100%); }
.ve-lane { min-height: 35px; position: relative; overflow: hidden; border-radius: 5px; background: repeating-linear-gradient(to right, var(--line-soft) 0 1px, transparent 1px 25%), var(--surface-soft); cursor: crosshair; }
.ve-strip, .ve-clip { position: absolute; height: 29px; top: 3px; border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ve-strip { background: #3d4564; color: white; padding: 0; min-width: 0; font: 500 .83rem "Onest", sans-serif; text-align: left; border: 1px solid #fff; cursor: pointer; }
.ve-strip[aria-pressed=true] { background: #465584; box-shadow: inset 0 0 0 1px #cad3ff; }
.ve-strip > span { position: absolute; top: 4px; left: 8px; right: 5px; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ve-strip .ve-grip { width: min(18px, 25%); touch-action: none; color: #fff; }
.ve-strip:has(.ve-grip) > span { margin-left: 10px; right: 16px; }
.ve-trim-footprint { position: absolute; top: 3px; height: 29px; border: 1px dashed #a1aac4; border-radius: 4px; background: repeating-linear-gradient(135deg, #e6e9f1 0 4px, #d5dae7 4px 6px); pointer-events: none; }
.ve-strip.ve-trimming { z-index: 1; border-color: #869bff; cursor: ew-resize; }
#trim-readout { position: absolute; top: 0; padding: 2px 8px; border-radius: 4px; background: #303950; color: white; white-space: nowrap; font: 600 .76rem/1.4 "Onest", sans-serif; font-variant-numeric: tabular-nums; }
.ve-film-edit { flex-basis: 100%; display: grid; gap: 6px; }
#film-range { color: var(--text-muted); font-size: .83rem; font-variant-numeric: tabular-nums; }
.ve-film-thumb { width: 28px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 5px; border-radius: 2px; background: #171b28; }
.ve-join-label { color: var(--text-muted); }
.ve-join-lane { position: relative; min-height: 30px; }
.ve-join { position: absolute; height: 28px; max-width: 100%; padding: 2px 9px; border: 1px dashed var(--accent-300); border-radius: 6px; background: white; color: var(--accent-700); font: 600 .77rem "Onest", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ve-join[data-active=true] { border-style: solid; background: var(--accent-50); }
.ve-join[aria-expanded=true], .ve-join.ve-grouped, .ve-transition-options [aria-pressed=true] { background: var(--accent-100); border: 1px solid var(--accent-500); color: var(--accent-700); }
.ve-join:hover:enabled { background: var(--accent-50); }
.ve-clip { height: 51px; margin: 0; display: block; min-width: 3px; border: 1px solid #a5b1f7; background: #edf0ff; color: #202b76; text-align: left; font: 600 .81rem "Onest", sans-serif; cursor: grab; padding: 0 6px; touch-action: none; }
.ve-clip canvas { position: absolute; left: 0; bottom: 2px; width: 100%; height: 26px; pointer-events: none; }
.ve-clip > span { position: absolute; z-index: 1; top: 3px; left: 8px; right: 8px; overflow: hidden; text-overflow: ellipsis; line-height: 17px; pointer-events: none; }
.ve-fade-mark { position: absolute; top: 0; bottom: 0; background: currentColor; opacity: .1; pointer-events: none; }
.ve-fade-in { clip-path: polygon(0 0, 100% 0, 0 100%); }
.ve-fade-out { clip-path: polygon(0 0, 100% 0, 100% 100%); }
#lane-music .ve-clip { border-color: #86c8b3; background: #d9f3e9; color: #154f45; }
.ve-clip[aria-pressed=true] { outline: 2px solid var(--accent-600); outline-offset: -2px; }
.ve-clip:active { cursor: grabbing; }
.ve-clip[aria-pressed=true] { padding-inline: 12px; }
.ve-grip { position: absolute; z-index: 2; inset-block: 0; width: 12px; cursor: ew-resize; background: linear-gradient(90deg, transparent 4px, currentColor 4px 6px, transparent 6px) center/100% 12px no-repeat; }
.ve-grip[data-edge=from] { left: 0; }.ve-grip[data-edge=to] { right: 0; }
.ve-cursor-area { position: absolute; inset: 0 0 0 var(--gutter); pointer-events: none; z-index: 2; }
#cursor { position: absolute; top: 11px; bottom: 0; width: 2px; background: #cc4e3c; }
#cursor::before { content: ""; position: absolute; left: -3px; border-top: 6px solid #cc4e3c; border-inline: 4px solid transparent; }
.ve-original { margin-top: 10px; font-size: .83rem; }
.ve-original input { width: 110px; }
.ve-inspector { --control-height: 2.25rem; min-width: 0; margin: 14px 0 0; padding: 9px 12px 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 9px; }
.ve-inspector legend { font-weight: 600; font-size: .89rem; padding: 0 5px; max-width: 100%; overflow-wrap: anywhere; }
.ve-inspector label, .ve-fade-field { display: grid; gap: 4px; font-size: .81rem; }
.ve-inspector input, .ve-inspector .ve-tool { box-sizing: border-box; height: var(--control-height); min-height: var(--control-height); }
.ve-inspector input, .ve-inspector select { width: 98px; }
.ve-clip-actions { flex-wrap: wrap; gap: 6px; }
.ve-fade { min-width: 6rem; justify-content: space-between; padding-inline: 9px; }
.ve-fade strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.ve-fade .ve-icon { width: 14px; height: 14px; }
.ve-fade-options { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: .85rem; }
.ve-fade-options > span { margin-right: 5px; }
.ve-fade-options [aria-pressed=true], .ve-fade[aria-expanded=true] { border-color: var(--accent-400); background: var(--accent-50); }
.ve-delete { color: #a43336; }
.ve-message, .ve-export-state { background: #fff; border: 1px solid var(--accent-200); color: var(--ink); border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.ve-message[data-error=true] { color: #992d36; border-color: #f0c1c2; }
.ve-export-state { flex-wrap: wrap; }
.ve-export-state progress { accent-color: var(--accent-500); max-width: 100%; }
@media (max-width: 760px) {
  .ve { padding-top: 14px; }
  .ve-work { grid-template-columns: 1fr; gap: 10px; }
  .ve-screen { min-height: 210px; height: min(53vw, 340px); max-height: 45vh; }
  .ve-drop { padding: 12px; gap: 4px; }
  .ve-drop .ve-drop-icon { width: 32px; height: 32px; margin: 0; }
  .ve-head { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
  .ve-compose, .ve-timeline { padding: 12px; }
  .ve-tracks { --gutter: 100px; }
  .ve-label { font-size: .8rem; }
  .ve-label > svg { display: none; }
  .ve-transport { min-height: 44px; }
  .ve-actions { gap: 5px; }
  .ve-head .btn { font-size: .86rem; padding: 8px 12px; }
}
