/* Video Studio: black working surfaces, blood orange signal, quiet glass edges. */
.vs-dialog {
  --vs-orange: #ff4b20;
  --vs-soft: #aaa6a4;
  --vs-line: #ffffff1b;
  color-scheme: dark;
  width: min(1140px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid #ffffff24;
  border-radius: 24px;
  background: radial-gradient(ellipse 54% 260px at 105% -8%, #fa32002e, transparent 76%), #000;
  color: #f7f7f5;
  box-shadow: inset 0 1px #ffffff10, 0 32px 120px #000d;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #393332 #080808;
  font-family: inherit;
}
.vs-dialog::backdrop { background: #000c; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.vs-dialog * { box-sizing: border-box; }
.vs-dialog [hidden] { display: none !important; }
.vs-dialog button, .vs-dialog input, .vs-dialog select { font: inherit; }
.vs-dialog button { cursor: pointer; touch-action: manipulation; }
.vs-dialog button:disabled { opacity: .4; cursor: default; }
.vs-dialog :is(button, input, select):focus-visible { outline: 2px solid #ff7954; outline-offset: 4px; }
.vs-dialog svg { width: 20px; height: 20px; flex-shrink: 0; }
.vs-shell { padding: 32px; }
.vs-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 30px; }
.vs-eyebrow { font-size: 10px !important; letter-spacing: .13em; font-weight: 650; color: #b9b3af !important; margin: 0 0 12px !important; }
.vs-eyebrow span { font-size: 9px; letter-spacing: .05em; border: 1px solid #ff4b2042; color: #ff7954; padding: 3px 6px; border-radius: 4px; margin-left: 7px; }
.vs-header h2 { font-size: clamp(26px, 3.3vw, 38px); line-height: 1.08; letter-spacing: -.045em; margin: 0; font-weight: 600; }
.vs-dialog h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; font-weight: 600; }
.vs-dialog p { line-height: 1.55; }
.vs-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid transparent; background: transparent; color: #b9b7b5; border-radius: 10px; padding: 8px; transition: background .16s, color .16s, border-color .16s; }
.vs-header > .vs-icon { border-color: #ffffff1d; background: #ffffff04; border-radius: 50%; }
.vs-primary, .vs-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 12px !important; font-weight: 650 !important; line-height: 1.35; white-space: nowrap; transition: background .16s, border-color .16s, box-shadow .16s; }
.vs-primary { background: linear-gradient(125deg, #ff692e, #ff3b0a 65%, #f52a0a); color: #100400; border-color: #ff6f414d; box-shadow: inset 0 1px #ffffff32, 0 4px 22px #ff310012; }
.vs-secondary { color: #e4e3e1; background: linear-gradient(150deg, #ffffff0b, #ffffff03), #080808; border-color: #ffffff23; box-shadow: inset 0 1px #ffffff05; }
.vs-primary:active:enabled, .vs-secondary:active:enabled, .vs-icon:active:enabled { transform: translateY(1px); }
.vs-upload { position: relative; isolation: isolate; text-align: center; min-height: 366px; padding: 62px 24px 44px; border: 1px dashed #ffffff2c; border-radius: 18px; background: radial-gradient(ellipse 75% 130% at 103% 120%, #ff37002b, transparent 67%), #060606; overflow: hidden; }
.vs-upload-mark { color: #ff4b20; display: flex; justify-content: center; margin-bottom: 24px; }
.vs-upload-mark svg { width: 46px; height: 46px; }
.vs-upload h3 { font-size: 30px; font-weight: 580; letter-spacing: -.04em; }
.vs-upload > p:not(.vs-note) { font-size: 14px; color: #b9b5b2; margin: 12px 0 24px; }
.vs-note { color: #a7a29e !important; font-size: 11px !important; line-height: 1.65 !important; margin: 12px 0 0 !important; }
.vs-upload .vs-note { margin-top: 24px !important; }
.vs-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.vs-work-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.vs-viewer { min-width: 0; }
.vs-screen { position: relative; display: grid; place-items: center; height: 326px; border-radius: 14px; background: #000; overflow: hidden; border: 1px solid var(--vs-line); }
.vs-screen video { width: 100%; height: 100%; max-height: 326px; object-fit: contain; background: #000; }
.vs-file-label { position: absolute; bottom: 12px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; line-height: 1.4; color: #ddd; background: #000b; padding: 5px 8px; border: 1px solid #ffffff15; border-radius: 5px; pointer-events: none; }
.vs-transport { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.vs-round { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #ffffff4d; background: #f2f2ef; color: #080808; border-radius: 50%; display: grid; place-items: center; }
.vs-round svg { width: 25px; height: 25px; }
.vs-transport output { font-size: 12px; font-variant-numeric: tabular-nums; color: #c1bebc; }
.vs-transport-spacer { flex: 1; }
.vs-timeline { position: relative; padding-top: 0; }
.vs-markers { height: 44px; position: relative; background: linear-gradient(90deg, #ffffff0b 1px, transparent 1px), #080808; background-size: 10% 100%; border: 1px solid #ffffff0c; overflow: hidden; border-radius: 6px; }
.vs-marker { position: absolute; top: 8px; height: 27px; min-width: 6px; padding: 0 !important; border: 1px solid #ff642866; border-radius: 4px; background: linear-gradient(135deg, #fa4a2070, #7f160660); opacity: .95; }
.vs-marker:nth-child(3n) { top: 4px; }
.vs-marker:nth-child(3n+1) { top: 16px; height: 21px; }
.vs-timeline::after { content: ''; position: absolute; left: clamp(0px, var(--vs-progress, 0%), calc(100% - 1px)); width: 1px; height: 44px; top: 0; background: #ffb198; pointer-events: none; box-shadow: 0 0 9px #ff3b0a80; }
.vs-dialog input[type=range] { width: 100%; min-width: 0; height: 28px; margin: 0; accent-color: var(--vs-orange); cursor: pointer; }
.vs-dialog #vs-seek { height: 24px; display: block; }
.vs-ruler { display: flex; justify-content: space-between; font-size: 10px; color: #96918e; font-variant-numeric: tabular-nums; }
.vs-design { border: 1px solid var(--vs-line); border-radius: 15px; padding: 20px; background: linear-gradient(150deg, #ffffff07, transparent 45%), #080808; box-shadow: inset 0 1px #ffffff05; }
.vs-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.vs-section-title h3 { font-size: 15px; }
.vs-dot { width: 5px; height: 5px; border-radius: 50%; background: #ff4b20; box-shadow: 0 0 10px #ff3b0a60; }
.vs-control { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; font-size: 12px; color: #b1adaa; }
.vs-dialog select { appearance: none; -webkit-appearance: none; width: 100%; height: 44px; min-width: 0; color: #eee; border: 1px solid #ffffff25; background-color: #0c0c0c; border-radius: 8px; padding: 0 36px 0 12px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; background-image: url("/icons/chevron-down.svg?v=22"); background-position: right 12px center; background-repeat: no-repeat; background-size: 16px; }
.vs-dialog select:focus { border-color: #ff5a3566; }
.vs-ai-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin: 18px 0; font-size: 12px; line-height: 1.4; color: #e4e1df; cursor: pointer; }
.vs-ai-choice input { accent-color: var(--vs-orange); margin: 1px 0 0; width: 17px; height: 17px; flex-shrink: 0; }
.vs-ai-choice small { display: block; color: #aaa4a0; font-size: 11px; line-height: 1.55; margin-top: 5px; }
.vs-design-button { width: 100%; margin-top: 2px; }
.vs-design > .vs-note { font-size: 11px !important; margin-top: 12px !important; }
.vs-mix { margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--vs-line); }
.vs-mix label { display: flex; justify-content: space-between; font-size: 11px; color: #bcb7b3; margin: 5px 0 1px; }
.vs-mix output { font-variant-numeric: tabular-nums; color: #a9a39f; }
.vs-cues { margin-top: 30px; }
.vs-cue-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.vs-cue-heading h3 { font-size: 16px; }
.vs-cue-heading h3 span { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border: 1px solid #ffffff1c; background: #ffffff05; color: #b7b1ad; font-size: 11px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.vs-cue-heading > div { display: flex; gap: 8px; align-items: center; }
.vs-cue-heading .vs-secondary { min-height: 40px; padding: 9px 13px; }
.vs-cue-heading .vs-secondary svg { width: 17px; height: 17px; }
.vs-cue { display: grid; grid-template-columns: 40px minmax(100px, 1fr) 80px 108px 40px 40px; align-items: center; gap: 12px; min-height: 74px; border-top: 1px solid #ffffff12; padding: 11px 4px; transition: background .16s; }
.vs-cue-playing { background: linear-gradient(90deg, #ff3b0a16, #ff3b0a04); box-shadow: inset 2px 0 #ff4b20; }
.vs-cue-name { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vs-cue-name strong { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-cue-name > span { font-size: 10px; color: #a39b95; }
.vs-cue-time { display: flex; align-items: center; min-width: 0; color: #aaa39d; font-size: 11px; }
.vs-cue-time input { width: 64px; min-width: 0; min-height: 36px; padding: 7px 6px; color: #ddd8d4; background: #080808; border: 1px solid #ffffff24; border-radius: 6px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.vs-cue-time input::-webkit-inner-spin-button { opacity: .6; }
.vs-cue-time > span:not(.vs-sr) { margin-left: 5px; }
.vs-cue-level { min-width: 0; }
.vs-cue .vs-icon { width: 40px; height: 40px; }
.vs-cue .vs-icon svg { width: 18px; height: 18px; }
.vs-cue .vs-icon:first-child { background: #ffffff05; border-color: #ffffff17; border-radius: 50%; color: #e9e6e3; }
.vs-cue .vs-icon:first-child svg { width: 24px; height: 24px; }
.vs-empty { font-size: 12px; color: #a9a29c; padding: 28px 18px; text-align: center; border: 1px dashed #ffffff20; border-radius: 10px; background: #ffffff02; }
.vs-picker { border: 1px solid #ff4b2045; border-radius: 14px; background: linear-gradient(135deg, #ff3b0a07, transparent 50%), #080808; padding: 18px; margin-top: 22px; }
.vs-picker-header { display: flex; align-items: center; gap: 12px; }
.vs-search { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.vs-search > svg { width: 19px; height: 19px; color: #aaa19a; }
.vs-search input { height: 42px; width: 100%; min-width: 0; border: none; border-bottom: 1px solid #ffffff2b; border-radius: 0; outline-offset: 0; padding: 8px 0; background: transparent; color: #eeeae7; font-size: 13px; }
.vs-search input::placeholder { color: #a29a94; }
#vs-search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; max-height: 300px; overflow: auto; overscroll-behavior: contain; margin-top: 12px; scrollbar-color: #3a3330 #080808; }
.vs-result { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ffffff10; min-width: 0; }
.vs-result > span { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.vs-result strong { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-result small { font-size: 10px; color: #a39b95; }
.vs-result .vs-icon { width: 36px; height: 36px; }
.vs-result .vs-icon:first-child svg { width: 23px; height: 23px; }
.vs-result [data-add-id] { color: #ff7851; background: #ff3b0a0a; border-color: #ff4b202c; border-radius: 50%; }
.vs-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px 28px; padding-top: 26px; border-top: 1px solid #ffffff18; margin-top: 22px; }
.vs-export-intro { min-width: 0; max-width: 410px; }
.vs-export-intro h3 { font-size: 17px; font-weight: 550; letter-spacing: -.025em; }
.vs-export-intro > .vs-note { margin: 8px 0 0 !important; }
.vs-export { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.vs-export button { min-height: 44px; padding: 11px 14px; }
.vs-export .vs-primary { min-height: 48px; padding: 13px 18px; }
.vs-export .vs-secondary { background: transparent; border-color: #ffffff1d; color: #bab3ae; box-shadow: none; }
.vs-export svg { width: 18px; height: 18px; }
.vs-premiere { grid-column: 1/-1; min-width: 0; border: 1px solid #ffffff1a; border-radius: 12px; background: #060606; }
.vs-premiere > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 13px 16px; border-radius: 11px; list-style: none; cursor: pointer; touch-action: manipulation; color: #c6bfb9; font-size: 12px; font-weight: 550; line-height: 1.5; }
.vs-premiere > summary::-webkit-details-marker { display: none; }
.vs-premiere > summary::marker { content: ''; }
.vs-premiere > summary:focus-visible { outline: 2px solid #ff7954; outline-offset: 4px; }
.vs-premiere > summary > svg { width: 18px; height: 18px; flex-shrink: 0; }
.vs-premiere > summary > svg:last-child { margin-left: auto; color: #9f958c; transition: transform .18s; }
.vs-premiere[open] > summary { color: #eee5de; border-bottom: 1px solid #ffffff10; border-radius: 11px 11px 0 0; }
.vs-premiere[open] > summary > svg:last-child { transform: rotate(180deg); }
.vs-premiere > .vs-note { margin: 14px 16px 0 !important; max-width: 640px; }
.vs-premiere-controls { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); align-items: end; gap: 16px; padding: 16px; }
.vs-premiere-controls .vs-control { margin: 0; }
.vs-premiere-controls > button { justify-self: start; min-height: 44px; white-space: normal; }
.vs-status-bar { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-top: 22px; min-height: 24px; }
.vs-status-bar p { color: #b5aaa3; font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.vs-status-bar .vs-secondary { flex-shrink: 0; min-height: 40px; }
.vs-dialog progress { height: 4px; width: 100%; border: none; appearance: none; accent-color: #ff4b20; margin-top: 14px; border-radius: 3px; overflow: hidden; }
.vs-dialog progress::-webkit-progress-bar { background: #29211e; border-radius: 3px; }
.vs-dialog progress::-webkit-progress-value { background: linear-gradient(90deg, #c31b00, #ff5720); border-radius: 3px; }
.vs-dialog progress::-moz-progress-bar { background: #ff4b20; }
.vs-busy .vs-screen::after { content: ''; position: absolute; inset: 0; border: 1px solid #ff572070; border-radius: 13px; pointer-events: none; }
.vs-dragging .vs-shell { outline: 2px solid #ff582d; outline-offset: -6px; }
.vs-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (hover:hover) {
  .vs-icon:hover:enabled { background: #ffffff09; border-color: #ffffff24; color: #fff; }
  .vs-primary:hover:enabled { background: linear-gradient(125deg, #ff7c45, #ff4b20 65%, #ff360e); box-shadow: inset 0 1px #ffffff42, 0 4px 24px #ff3b0026; }
  .vs-secondary:hover:enabled { background: #ffffff0e; border-color: #ffffff3b; }
  .vs-round:hover:enabled { background: #fff; }
  .vs-marker:hover { background: #ff4b20; border-color: #ff906c; }
  .vs-cue:hover { background-color: #ffffff03; }
  .vs-cue [data-cue-action=delete]:hover { color: #ff8c70; background: #ff3b0a0c; }
  .vs-premiere > summary:hover { color: #fff; background: #ffffff04; }
}
@media (max-width: 900px) {
  .vs-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .vs-shell { padding: 24px; }
  .vs-work-grid { grid-template-columns: minmax(0, 1fr); }
  .vs-screen { height: min(48dvh, 370px); }
  .vs-screen video { max-height: min(48dvh, 370px); }
  .vs-design { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
  .vs-section-title { grid-column: 1/-1; margin-bottom: 4px; }
  .vs-ai-choice, .vs-design-button, .vs-design > .vs-note { grid-column: 1/-1; }
  .vs-ai-choice { margin: 14px 0; }
  .vs-mix { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; margin-top: 18px; }
  .vs-mix label[for=vs-original] { grid-column: 1; grid-row: 1; }
  .vs-mix #vs-original { grid-column: 1; grid-row: 2; }
  .vs-mix label[for=vs-effects] { grid-column: 2; grid-row: 1; }
  .vs-mix #vs-effects { grid-column: 2; grid-row: 2; }
  .vs-footer { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
  .vs-export-intro { max-width: none; }
  .vs-export { width: 100%; justify-content: flex-start; }
  .vs-cue { gap: 8px; grid-template-columns: 40px minmax(80px, 1fr) 78px 88px 40px 40px; }
}
@media (max-width: 600px) {
  .vs-dialog { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .vs-shell { padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
  .vs-header { gap: 12px; margin-bottom: 24px; }
  .vs-eyebrow { font-size: 9px !important; letter-spacing: .09em; }
  .vs-header h2 { font-size: clamp(25px, 6.8vw, 32px); }
  .vs-header > .vs-icon { width: 44px; height: 44px; }
  .vs-upload { min-height: 340px; padding: 54px 16px 36px; }
  .vs-upload h3 { font-size: 28px; }
  .vs-upload > p:not(.vs-note) { font-size: 13px; }
  .vs-screen { height: clamp(205px, 57vw, 315px); }
  .vs-screen video { max-height: clamp(205px, 57vw, 315px); }
  .vs-work-grid { gap: 22px; }
  .vs-design { padding: 18px; gap: 0 12px; }
  .vs-dialog select, .vs-search input { font-size: 16px; }
  .vs-control { font-size: 11px; }
  .vs-cue { grid-template-columns: 44px minmax(76px, 1fr) 44px 44px; gap: 6px 8px; min-height: 100px; padding: 10px 0; }
  .vs-cue > button:first-child { grid-column: 1; grid-row: 1; }
  .vs-cue-name { grid-column: 2; grid-row: 1; }
  .vs-cue-name strong { font-size: 12px; }
  .vs-cue-name > span { font-size: 10px; }
  .vs-cue-time { grid-column: 2; grid-row: 2; }
  .vs-cue-time input { width: 67px; min-height: 36px; font-size: 16px; padding: 6px; }
  .vs-cue-level { grid-column: 3/5; grid-row: 2; width: 100%; }
  .vs-cue .vs-icon { width: 44px; height: 44px; }
  .vs-cue > button[data-cue-action=swap] { grid-column: 3; grid-row: 1; }
  .vs-cue > button[data-cue-action=delete] { grid-column: 4; grid-row: 1; }
  .vs-cue-heading .vs-icon, .vs-cue-heading .vs-secondary { min-height: 44px; }
  .vs-cue-heading .vs-icon { width: 44px; }
  .vs-picker { padding: 14px; }
  #vs-search-results { grid-template-columns: 1fr; max-height: 320px; }
  .vs-result .vs-icon { width: 44px; height: 44px; }
  .vs-result { gap: 8px; }
  .vs-export { flex-direction: column; align-items: stretch; gap: 10px; }
  .vs-export .vs-primary { width: 100%; min-height: 50px; padding: 13px 14px; }
  .vs-export .vs-secondary { align-self: flex-start; min-height: 42px; padding: 10px 12px; }
  .vs-premiere > summary { padding: 13px 14px; }
  .vs-premiere > .vs-note { margin-inline: 14px !important; }
  .vs-premiere-controls { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 14px; }
  .vs-premiere-controls > button { justify-self: stretch; width: 100%; }
  .vs-status-bar { gap: 12px; }
}
@media (prefers-reduced-transparency: reduce) {
  .vs-dialog::backdrop { background: #000e; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .vs-design, .vs-picker, .vs-upload { background: #080808; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-dialog * { scroll-behavior: auto !important; transition: none !important; }
  .vs-primary:active:enabled, .vs-secondary:active:enabled, .vs-icon:active:enabled { transform: none; }
}
