﻿:root {
  --vs-bg: #0d0f13;
  --vs-panel: #15181f;
  --vs-panel-2: #1b1f28;
  --vs-card: #20242e;
  --vs-card-soft: #252a35;
  --vs-line: rgba(255, 255, 255, 0.075);
  --vs-line-strong: rgba(255, 255, 255, 0.14);
  --vs-text: #f3f7ff;
  --vs-muted: #8d95a6;
  --vs-faint: #596171;
  --vs-cyan: #22d3ee;
  --vs-cyan-2: #0ea5b7;
  --vs-green: #8df5c7;
  --vs-red: #ff7b7b;
  --vs-yellow: #ffd27a;
  --vs-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --vs-radius: 22px;
  --vs-font: "MiSans", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --vs-prompt-max-height: 220px;
  --vs-composer-safe-area: 320px;
  --vs-composer-motion: 420ms cubic-bezier(0.16, 1, 0.3, 1);
  --vs-composer-motion-fast: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body[data-page="video-studio"] {
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
  color: var(--vs-text);
  background: var(--vs-bg);
  font-family: var(--vs-font);
}

body[data-composer-collapsed="true"] {
  --vs-composer-safe-area: 260px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.vs-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 54% 38%, rgba(34, 211, 238, 0.07), transparent 28rem),
    radial-gradient(circle at 88% 84%, rgba(141, 245, 199, 0.08), transparent 26rem),
    linear-gradient(180deg, #101216 0%, #0b0d11 100%);
}

.vs-glow {
  position: absolute;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.22;
}

.vs-glow-a {
  right: 18vw;
  bottom: 6vh;
  background: #1fb6d1;
}

.vs-glow-b {
  top: -12vw;
  left: 16vw;
  background: #6effd2;
}

.vs-noise {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 45%, black 0%, transparent 76%);
}

.vs-app {
  display: grid;
  grid-template-columns: 62px 192px minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  transition: grid-template-columns 180ms ease;
}

body[data-conversations-collapsed="true"] .vs-app {
  grid-template-columns: 62px 42px minmax(0, 1fr);
}

.vs-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  padding: 18px 10px;
  border-right: 1px solid var(--vs-line);
  background: rgba(15, 18, 24, 0.86);
}

.vs-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  text-decoration: none;
}

.vs-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.vs-rail-nav {
  display: grid;
  gap: 16px;
  margin-top: auto;
  margin-bottom: auto;
}

.vs-rail-item {
  display: grid;
  width: 42px;
  min-height: 54px;
  place-items: center;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  color: var(--vs-muted);
  background: transparent;
  cursor: pointer;
}

.vs-rail-item span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 16px;
}

.vs-rail-item small {
  font-size: 11px;
  font-weight: 800;
}

.vs-rail-item:hover,
.vs-rail-item.is-active {
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.06);
}

.vs-rail-item.is-active span {
  color: var(--vs-cyan);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.7);
}

.vs-credit-card {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 44px;
  margin-top: auto;
  padding: 8px 4px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 13px;
  color: var(--vs-text);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.vs-credit-card:hover,
.vs-credit-card:focus-visible {
  border-color: rgba(34, 211, 238, 0.52);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.2), rgba(255, 255, 255, 0.065));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(34, 211, 238, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.vs-credit-icon {
  color: var(--vs-cyan);
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.72);
}

.vs-credit-copy {
  display: grid;
  justify-items: center;
  line-height: 1.1;
}

.vs-credit-copy strong {
  max-width: 38px;
  overflow: hidden;
  color: var(--vs-cyan);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-credit-copy small {
  color: var(--vs-muted);
  font-size: 10px;
  font-weight: 800;
}

.vs-credit-hint {
  display: none;
}

.vs-rail-bottom {
  display: grid;
  gap: 12px;
}

.vs-rail-bottom a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--vs-line);
  border-radius: 12px;
  color: var(--vs-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.vs-conversations {
  overflow: visible;
  padding: 22px 14px;
  border-right: 1px solid var(--vs-line);
  background: rgba(19, 22, 29, 0.78);
  transition: padding 180ms ease, background 180ms ease;
}

body[data-conversations-collapsed="true"] .vs-conversations {
  padding: 22px 7px;
}

.vs-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vs-panel-head strong {
  font-size: 13px;
}

.vs-panel-head button,
.vs-primary-soft,
.vs-side-section button {
  border: 1px solid var(--vs-line);
  border-radius: 10px;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.vs-panel-head button {
  width: 28px;
  height: 28px;
  font-size: 0;
}

.vs-panel-head button::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-left-width: 5px;
  border-radius: 4px;
}

.vs-collapse-panel {
  display: grid;
  place-items: center;
}

body[data-conversations-collapsed="true"] .vs-collapse-panel::before {
  border-right-width: 5px;
  border-left-width: 2px;
}

body[data-conversations-collapsed="true"] .vs-panel-head {
  justify-content: center;
}

body[data-conversations-collapsed="true"] .vs-panel-head strong,
body[data-conversations-collapsed="true"] .vs-new-chat,
body[data-conversations-collapsed="true"] .vs-recent-block {
  display: none;
}

.vs-new-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.vs-new-chat span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.vs-new-chat strong {
  font-size: 13px;
}

.vs-recent-block {
  margin-top: 18px;
}

.vs-recent-block p {
  margin: 0 0 10px;
  color: var(--vs-faint);
  font-size: 12px;
  font-weight: 900;
}

.vs-conversation-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.vs-conversation-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  color: var(--vs-text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.vs-conversation-item:hover,
.vs-conversation-item.is-active {
  z-index: 10;
  background: rgba(255, 255, 255, 0.075);
}

.vs-conversation-item[data-conversation-title]:hover::after,
.vs-conversation-item[data-conversation-title]:focus-visible::after {
  content: attr(data-conversation-title);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  z-index: 30;
  max-width: min(420px, calc(100vw - 300px));
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: #f6f8fb;
  background: rgba(30, 34, 44, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  pointer-events: none;
  transform: translateY(-50%);
  white-space: nowrap;
}

.vs-conversation-item:has(.vs-conversation-more:hover)::after {
  content: none;
}

.vs-conversation-thumb {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--vs-line);
  border-radius: 7px;
  color: var(--vs-cyan);
  background:
    radial-gradient(circle at 38% 32%, rgba(34, 211, 238, 0.2), transparent 1.6rem),
    rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 950;
}

.vs-conversation-thumb.has-preview {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.18);
  background: #111822;
}

.vs-conversation-thumb img,
.vs-conversation-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-conversation-item strong {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-conversation-more {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 7px;
  color: var(--vs-muted);
  background: transparent;
  cursor: pointer;
  opacity: 0;
}

.vs-conversation-item:hover .vs-conversation-more,
.vs-conversation-item.is-active .vs-conversation-more {
  opacity: 1;
}

.vs-conversation-more:hover {
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.08);
}

.vs-side-section {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--vs-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.vs-side-section p {
  margin: 0 0 8px;
  color: var(--vs-text);
  font-size: 12px;
  font-weight: 900;
}

.vs-side-section small {
  color: var(--vs-muted);
  font-size: 12px;
  line-height: 1.65;
}

.vs-workspace {
  position: relative;
  overflow: hidden;
}

.vs-view {
  display: none;
  height: 100vh;
  overflow: auto;
  padding: 42px 42px var(--vs-composer-safe-area);
}

.vs-view.is-active {
  display: block;
}

#vs-view-generate {
  position: relative;
  display: none;
  place-items: center;
}

#vs-view-generate.is-active {
  display: grid;
}

.vs-generate-empty {
  display: grid;
  max-width: 760px;
  place-items: center;
  margin-top: -8vh;
  text-align: center;
}

.vs-generate-empty h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.vs-generate-empty p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--vs-muted);
  font-size: 14px;
  line-height: 1.9;
}

.vs-thread {
  display: grid;
  width: min(920px, 100%);
  gap: 18px;
}

.vs-thread:not(:empty) {
  align-self: start;
  margin-top: 20px;
}

.vs-message {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--vs-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.16);
}

.vs-message-user {
  position: relative;
  margin-left: auto;
  width: min(640px, 92%);
  background: rgba(34, 211, 238, 0.08);
}

.vs-message-result {
  width: min(840px, 100%);
}

.vs-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--vs-muted);
  font-size: 12px;
}

.vs-message p {
  margin: 0;
  color: var(--vs-text);
  font-size: 14px;
  line-height: 1.8;
}

.vs-result-use-prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  color: var(--vs-cyan);
  background: rgba(34, 211, 238, 0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 4px, 0) scale(0.96);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, background 160ms ease;
}

.vs-result-details:hover .vs-result-use-prompt,
.vs-result-details:focus-within .vs-result-use-prompt {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.vs-result-use-prompt:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.13);
}

.vs-video-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.18), transparent 18rem),
    linear-gradient(135deg, #1b2029, #101318);
}

.vs-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-result-actions,
.vs-result-actions-row,
.vs-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vs-result-actions,
.vs-video-actions {
  margin-top: 2px;
}

.vs-video-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(8, 11, 16, 0.52);
  backdrop-filter: blur(16px);
}

.vs-result-action,
.vs-result-preview,
.vs-result-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--vs-line);
  border-radius: 10px;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.vs-result-preview {
  color: var(--vs-cyan);
  background: rgba(34, 211, 238, 0.08);
}

.vs-result-download,
.vs-image-viewer-download {
  color: #eaf6ff;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(141, 245, 199, 0.12));
}

.vs-result-action:hover,
.vs-result-preview:hover,
.vs-result-download:hover,
.vs-image-viewer-download:hover {
  border-color: rgba(34, 211, 238, 0.32);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.vs-result-details {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  color: var(--vs-muted);
  font-size: 12px;
}

.vs-result-prompt,
.vs-result-detail-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 0;
  color: #dfe9f6;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.vs-result-prompt {
  max-width: min(320px, 100%);
  padding: 0 9px;
  overflow: hidden;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-result-prompt:hover,
.vs-result-detail-trigger:hover,
.vs-result-detail-trigger:focus-visible {
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.085);
  outline: none;
}

.vs-result-info {
  color: #8e98a8;
  font-weight: 800;
}

.vs-result-detail-trigger {
  padding: 0 8px;
  border-radius: 8px;
  color: #a9b5c7;
}

.vs-result-detail-trigger::after {
  content: "鈸?;
  margin-left: 5px;
  color: var(--vs-muted);
  font-size: 11px;
}

.vs-result-detail-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 12;
  display: grid;
  width: min(320px, calc(100vw - 48px));
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--vs-line-strong);
  border-radius: 16px;
  background: rgba(27, 30, 38, 0.98);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 10px, 0) scale(0.98);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vs-result-detail-trigger:hover ~ .vs-result-detail-popover,
.vs-result-detail-trigger:focus-visible ~ .vs-result-detail-popover {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.vs-result-detail-popover span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vs-result-detail-popover em {
  color: var(--vs-muted);
  font-style: normal;
}

.vs-result-detail-popover strong {
  max-width: 180px;
  overflow: hidden;
  color: var(--vs-text);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-result-detail-popover p {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--vs-line);
  color: #cdd6e3;
  font-size: 12px;
  line-height: 1.7;
}

.vs-processing {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #08aee1;
}

.vs-processing:has(> strong) {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 123, 123, 0.16), transparent 18rem),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.06), transparent 12rem),
    linear-gradient(180deg, rgba(22, 26, 34, 0.98), rgba(16, 19, 25, 0.98));
  backdrop-filter: blur(10px);
}

.vs-processing:has(> strong)::before,
.vs-processing:has(> strong)::after,
.vs-processing:has(> strong) .vs-loading-grid {
  display: none;
}

.vs-processing:has(> strong) strong {
  color: #f7fbff;
  font-size: 16px;
  font-weight: 950;
}

.vs-processing:has(> strong) small {
  color: var(--vs-muted);
  font-size: 13px;
  line-height: 1.7;
}

.vs-error-card,
.vs-message-error .vs-processing,
.vs-message.is-error .vs-processing,
.vs-message[data-status="failed"] .vs-processing {
  position: relative;
  inset: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 123, 123, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 123, 123, 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(23, 26, 32, 0.98), rgba(18, 21, 27, 0.98));
}

.vs-message.is-error .vs-video-card,
.vs-message[data-status="failed"] .vs-video-card {
  aspect-ratio: auto;
  min-height: 0;
  background: transparent;
}

.vs-error-card::before,
.vs-message-error .vs-processing::before,
.vs-message.is-error .vs-processing::before,
.vs-message[data-status="failed"] .vs-processing::before,
.vs-error-card::after,
.vs-message-error .vs-processing::after,
.vs-message.is-error .vs-processing::after,
.vs-message[data-status="failed"] .vs-processing::after {
  display: none;
}

.vs-error-card strong,
.vs-message-error .vs-processing strong,
.vs-message.is-error .vs-processing strong,
.vs-message[data-status="failed"] .vs-processing strong {
  color: #ffd0d0;
}

.vs-error-card small,
.vs-message-error .vs-processing small,
.vs-message.is-error .vs-processing small,
.vs-message[data-status="failed"] .vs-processing small {
  color: var(--vs-muted);
}

.vs-processing::before {
  content: "";
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(ellipse at 72% 24%, rgba(255, 252, 226, 0.86), transparent 24%),
    radial-gradient(ellipse at 90% 56%, rgba(221, 245, 250, 0.6), transparent 26%),
    radial-gradient(ellipse at 24% 72%, rgba(254, 224, 214, 0.45), transparent 24%),
    radial-gradient(ellipse at 44% 50%, rgba(25, 192, 238, 0.78), transparent 31%),
    linear-gradient(112deg, #018dbe 0%, #04b7e8 34%, #2dc8ec 58%, #a4dddf 100%);
  filter: blur(20px) saturate(1.2);
  opacity: 0.98;
  transform: scale(1.16) translate3d(-3.2%, -2.4%, 0);
  animation: vs-loading-dream-pan 5.8s cubic-bezier(0.45, 0, 0.25, 1) infinite alternate;
}

.vs-processing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(255, 255, 255, 0.18), transparent 26%, rgba(255, 255, 255, 0.1) 52%, transparent 78%),
    radial-gradient(ellipse at 68% 38%, rgba(255, 255, 255, 0.18), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px);
  opacity: 0.34;
  mix-blend-mode: screen;
  backdrop-filter: blur(20px);
  animation: vs-loading-gauze 4.2s ease-in-out infinite alternate;
}

.vs-loading-grid {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vs-loading-card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  border-radius: inherit;
}

.vs-loading-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.vs-loading-animation-wrapper {
  position: absolute;
  inset: 0;
  overflow: visible;
  background: rgba(0, 0, 0, 0.6);
}

.vs-loading-animation {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-progress-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 7px;
  color: rgba(15, 20, 25, 0.92);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 650;
  line-height: 20px;
}

.vs-progress-badge small {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.vs-progress-tips {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  max-width: calc(100% - 24px);
  align-items: center;
  gap: 6px;
  color: rgba(230, 249, 255, 0.82);
  font-size: 13px;
  line-height: 20px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.48);
}

.vs-progress-tips::before {
  content: "";
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(13, 17, 23, 0.88) 0 34%, transparent 35%),
    linear-gradient(135deg, rgba(141, 245, 199, 0.95), rgba(34, 211, 238, 0.95));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.vs-loading-shot {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.vs-loading-shot::before,
.vs-loading-shot::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.vs-loading-shot::before {
  inset: -4%;
  z-index: 3;
  background:
    radial-gradient(ellipse 31rem 24rem at 3% 62%, rgba(2, 5, 11, 0.98) 0%, rgba(3, 7, 14, 0.88) 34%, rgba(3, 7, 14, 0.34) 58%, transparent 76%),
    radial-gradient(ellipse 20rem 14rem at 52% 0%, rgba(2, 5, 10, 0.96) 0%, rgba(3, 5, 10, 0.78) 36%, rgba(3, 5, 10, 0.2) 63%, transparent 78%),
    radial-gradient(ellipse 24rem 24rem at 101% 55%, rgba(5, 8, 14, 0.9) 0%, rgba(5, 8, 14, 0.62) 38%, rgba(5, 8, 14, 0.22) 61%, transparent 80%),
    radial-gradient(ellipse 40rem 13rem at 40% 103%, rgba(6, 10, 17, 0.42), transparent 72%);
  filter: blur(18px);
  opacity: 0.98;
  transform: translate3d(-1.5%, 0, 0) scale(1.04);
  animation: vs-loading-shadow-drift 8.4s ease-in-out infinite alternate;
}

.vs-loading-shot::after {
  inset: -18%;
  z-index: 2;
  background:
    radial-gradient(ellipse at 64% 12%, rgba(255, 255, 238, 0.64), transparent 20%),
    radial-gradient(ellipse at 77% 62%, rgba(241, 249, 240, 0.42), transparent 24%),
    radial-gradient(ellipse at 22% 72%, rgba(255, 225, 215, 0.32), transparent 19%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: vs-loading-light-breathe 6.4s ease-in-out infinite alternate;
}

.vs-loading-shot span {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 4;
  padding: 0;
  color: rgba(237, 253, 255, 0.96);
  background: transparent;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 10px rgba(21, 203, 255, 0.76),
    0 1px 14px rgba(0, 0, 0, 0.5);
}

.vs-loading-shot i {
  position: absolute;
  inset: -36% -28%;
  z-index: 2;
  background:
    linear-gradient(104deg, transparent 18%, rgba(255, 255, 255, 0.16) 38%, transparent 58%),
    radial-gradient(ellipse at 55% 46%, rgba(255, 255, 255, 0.2), transparent 20%);
  filter: blur(18px);
  opacity: 0.62;
  transform: translateX(-28%) rotate(0.001deg);
  animation: vs-loading-sweep 7.8s ease-in-out infinite alternate;
}

.vs-processing-copy {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dce9f8;
  opacity: 0.92;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.vs-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto 22px;
}

.vs-page-title p {
  margin: 0 0 8px;
  color: var(--vs-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-page-title h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.vs-primary-soft {
  min-height: 40px;
  padding: 0 16px;
  font-weight: 900;
}

.vs-role-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.vs-role-uploader,
.vs-card-grid,
.vs-task-list {
  border: 1px solid var(--vs-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--vs-shadow);
}

.vs-role-uploader {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.vs-form-label {
  margin: 0 0 6px;
  color: var(--vs-cyan);
  font-size: 12px;
  font-weight: 900;
}

.vs-role-uploader h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.vs-role-uploader small {
  color: var(--vs-muted);
  line-height: 1.7;
}

.vs-role-rule-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 210, 122, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 210, 122, 0.08), rgba(34, 211, 238, 0.035));
}

.vs-role-rule-card strong {
  color: #ffe0a2;
  font-size: 13px;
}

.vs-role-rule-card span {
  color: var(--vs-muted);
  font-size: 12px;
  line-height: 1.65;
}

.vs-face-drop {
  position: relative;
  display: grid;
  min-height: 210px;
  overflow: hidden;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(34, 211, 238, 0.32);
  border-radius: 20px;
  text-align: center;
  background: rgba(34, 211, 238, 0.035);
  cursor: pointer;
}

.vs-face-drop > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: var(--vs-cyan);
  background: rgba(34, 211, 238, 0.12);
  font-size: 30px;
}

.vs-face-drop strong {
  font-size: 15px;
}

.vs-face-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-field {
  display: grid;
  gap: 8px;
}

.vs-field span,
.vs-check span {
  color: var(--vs-muted);
  font-size: 12px;
  font-weight: 800;
}

.vs-field input,
.vs-field select,
.vs-popover input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--vs-line);
  border-radius: 12px;
  outline: none;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.055);
}

.vs-field input:focus,
.vs-popover input:focus {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.vs-composer textarea:focus {
  border-color: transparent;
  box-shadow: none;
}

.vs-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vs-check input {
  margin-top: 2px;
}

.vs-generate-btn,
.vs-submit {
  border: 0;
  color: #001114;
  background: linear-gradient(135deg, var(--vs-cyan), var(--vs-green));
  cursor: pointer;
  font-weight: 950;
}

.vs-generate-btn {
  min-height: 44px;
  border-radius: 14px;
}

.vs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-content: start;
  align-items: start;
  gap: 14px;
  padding: 18px;
}

.vs-role-card {
  overflow: hidden;
  border: 1px solid var(--vs-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.vs-role-cover {
  display: grid;
  height: 170px;
  place-items: center;
  color: var(--vs-faint);
  background:
    radial-gradient(circle at 50% 36%, rgba(34, 211, 238, 0.16), transparent 8rem),
    linear-gradient(135deg, #252b35, #151920);
}

.vs-role-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-role-sample-cover {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.055);
}

.vs-face-sample {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(34, 211, 238, 0.2), transparent 4.8rem),
    linear-gradient(180deg, rgba(31, 39, 50, 0.96), rgba(14, 18, 24, 0.96));
}

.vs-face-sample em {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #dce7f4;
  background: rgba(0, 0, 0, 0.42);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.vs-face-head,
.vs-face-hair,
.vs-face-neck {
  position: absolute;
  display: block;
}

.vs-face-head {
  top: 44px;
  width: 38px;
  height: 46px;
  border-radius: 48% 48% 44% 44%;
  background: linear-gradient(180deg, #f0c8a8, #c98865);
  box-shadow: inset 0 -8px 14px rgba(82, 42, 28, 0.22);
}

.vs-face-hair {
  top: 36px;
  width: 46px;
  height: 40px;
  border-radius: 46% 46% 30% 30%;
  background: linear-gradient(180deg, #2b1d1b, #111);
}

.vs-face-neck {
  top: 86px;
  width: 26px;
  height: 52px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #c98865, #293241 54%);
}

.vs-face-sample-2 .vs-face-head,
.vs-face-sample-3 .vs-face-head {
  width: 31px;
  border-radius: 44% 56% 48% 40%;
}

.vs-face-sample-2 .vs-face-head,
.vs-face-sample-2 .vs-face-hair,
.vs-face-sample-2 .vs-face-neck {
  transform: translateX(5px) rotateY(38deg);
}

.vs-face-sample-3 .vs-face-head,
.vs-face-sample-3 .vs-face-hair,
.vs-face-sample-3 .vs-face-neck {
  transform: translateX(-5px) rotateY(-38deg);
}

.vs-role-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.vs-role-body h3 {
  margin: 0;
  font-size: 15px;
}

.vs-role-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.vs-role-card-actions button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  color: var(--vs-muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.vs-role-card-actions button:hover {
  color: var(--vs-text);
  border-color: rgba(34, 211, 238, 0.28);
}

.vs-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.vs-status.approved {
  color: #012319;
  background: var(--vs-green);
}

.vs-status.sample {
  color: #03171c;
  background: var(--vs-cyan);
}

.vs-status.pending {
  color: #2a1b00;
  background: var(--vs-yellow);
}

.vs-status.rejected {
  color: #2a0404;
  background: var(--vs-red);
}

.vs-task-list {
  display: grid;
  width: min(1120px, 100%);
  gap: 12px;
  margin: 0 auto;
  padding: 16px;
}

.vs-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--vs-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.vs-task-row.has-video {
  grid-template-columns: 88px minmax(0, 1fr) auto auto;
}

.vs-task-main {
  min-width: 0;
}

.vs-task-thumb {
  position: relative;
  display: grid;
  width: 88px;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--vs-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--vs-muted);
  font-size: 12px;
  font-weight: 800;
}

.vs-task-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-task-thumb.has-image span {
  visibility: hidden;
}

.vs-task-row h3 {
  overflow: hidden;
  margin: 0 0 6px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-task-row p {
  margin: 0;
  color: var(--vs-muted);
  font-size: 12px;
}

.vs-task-row a {
  color: var(--vs-cyan);
  font-weight: 900;
  text-decoration: none;
}

.vs-composer-wrap {
  position: fixed;
  right: 0;
  bottom: 74px;
  left: 254px;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition:
    left var(--vs-composer-motion),
    transform var(--vs-composer-motion),
    opacity var(--vs-composer-motion-fast);
  will-change: transform;
}

.vs-scroll-bottom {
  position: absolute;
  top: -46px;
  right: 8px;
  z-index: 4;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--vs-line);
  border-radius: 999px;
  color: #cfd8e7;
  background: rgba(28, 32, 41, 0.92);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  animation: vs-pop 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vs-scroll-bottom:hover,
.vs-scroll-bottom:focus-visible {
  color: var(--vs-text);
  border-color: rgba(34, 211, 238, 0.3);
  outline: none;
}

.vs-scroll-bottom::after {
  content: "v";
  margin-left: 5px;
  color: var(--vs-cyan);
}

body[data-conversations-collapsed="true"] .vs-composer-wrap {
  left: 104px;
}

body[data-composer-collapsed="true"] .vs-composer-wrap {
  bottom: 74px;
  transform: translate3d(0, 56px, 0);
}

body[data-video-view="roles"] .vs-composer-wrap,
body[data-video-view="tasks"] .vs-composer-wrap {
  display: none;
}

.vs-composer {
  position: relative;
  width: min(760px, calc(100vw - 310px));
  padding: 12px;
  border: 1px solid var(--vs-line);
  border-radius: 22px;
  background: rgba(31, 35, 45, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: bottom center;
  transition:
    width var(--vs-composer-motion),
    padding var(--vs-composer-motion),
    border-color var(--vs-composer-motion-fast),
    border-radius var(--vs-composer-motion-fast),
    background var(--vs-composer-motion-fast),
    box-shadow var(--vs-composer-motion),
    transform var(--vs-composer-motion),
    opacity var(--vs-composer-motion-fast);
  will-change: transform;
}

body[data-composer-collapsed="true"] .vs-composer {
  width: min(700px, calc(100vw - 290px));
  padding: 9px 10px;
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(24, 28, 36, 0.86);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  opacity: 0.96;
  transform: translate3d(0, 0, 0) scale(0.985);
}

.vs-reference-strip {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-height: 94px;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  transition:
    max-height var(--vs-composer-motion),
    padding var(--vs-composer-motion),
    opacity var(--vs-composer-motion-fast),
    transform var(--vs-composer-motion-fast);
}

body[data-composer-collapsed="true"] .vs-reference-strip {
  max-height: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, 8px, 0);
}

.vs-reference-strip::-webkit-scrollbar {
  display: none;
}

.vs-reference-card,
.vs-reference-slot {
  position: relative;
  display: grid;
  width: 58px;
  height: 68px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--vs-line);
  border-radius: 9px;
  color: var(--vs-muted);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.vs-reference-card {
  overflow: visible;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.vs-reference-card:hover,
.vs-reference-slot:hover {
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(255, 255, 255, 0.095);
  transform: translateY(-1px);
}

.vs-reference-card img,
.vs-reference-card video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.vs-reference-card video {
  background: #10151c;
}

.vs-reference-type {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 7px;
  color: #e8f7ff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 10px;
  font-weight: 900;
}

.vs-reference-slot span,
.vs-reference-card-placeholder {
  display: grid;
  gap: 4px;
  place-items: center;
  color: #828b9c;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.vs-reference-slot span::before,
.vs-reference-card-placeholder::before {
  content: "+";
  font-size: 18px;
}

.vs-reference-badge,
.vs-reference-duration,
.vs-reference-remove,
.vs-reference-motion {
  position: absolute;
  z-index: 2;
}

.vs-reference-badge {
  top: -30px;
  left: 50%;
  display: none;
  min-width: max-content;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--vs-text);
  background: rgba(31, 35, 45, 0.98);
  font-size: 12px;
  font-weight: 900;
  transform: translateX(-50%);
}

.vs-reference-card:hover .vs-reference-badge {
  display: block;
}

.vs-reference-duration {
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 7px;
  color: #cbd3df;
  background: rgba(0, 0, 0, 0.58);
  font-size: 10px;
  font-weight: 900;
}

.vs-reference-remove {
  top: -7px;
  right: -7px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--vs-text);
  background: rgba(84, 92, 106, 0.98);
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.vs-reference-card:hover .vs-reference-remove {
  opacity: 1;
}

.vs-reference-card:focus-within .vs-reference-remove {
  opacity: 1;
}

.vs-reference-remove:hover {
  transform: scale(1.08);
}

.vs-reference-motion {
  right: -4px;
  bottom: -9px;
  max-width: 72px;
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid var(--vs-line);
  border-radius: 999px;
  color: #c6ccd8;
  background: rgba(25, 29, 37, 0.96);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-reference-duration,
.vs-reference-motion {
  border: 0;
  cursor: pointer;
}

.vs-frame-link {
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--vs-muted);
  font-size: 15px;
}

.vs-frame-gap {
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--vs-line);
  border-radius: 999px;
  color: #c6ccd8;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.vs-frame-gap:hover {
  color: var(--vs-text);
  border-color: rgba(34, 211, 238, 0.3);
}

.vs-composer-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  transition: gap var(--vs-composer-motion-fast);
}

body[data-composer-collapsed="true"] .vs-composer-main {
  gap: 8px;
  padding-right: 42px;
}

.vs-reference-add {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  align-self: start;
  gap: 1px;
  border: 1px solid var(--vs-line);
  border-radius: 15px;
  color: var(--vs-muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transform: rotate(-6deg);
  transition:
    width var(--vs-composer-motion-fast),
    height var(--vs-composer-motion-fast),
    border-color var(--vs-composer-motion-fast),
    background var(--vs-composer-motion-fast),
    transform var(--vs-composer-motion-fast),
    opacity var(--vs-composer-motion-fast);
}

.vs-reference-add span {
  font-size: 20px;
}

body[data-composer-collapsed="true"] .vs-reference-add {
  width: 46px;
  height: 50px;
  opacity: 0.72;
  transform: rotate(-4deg) scale(0.92);
}

body[data-composer-collapsed="true"] .vs-reference-add span {
  font-size: 19px;
}

.vs-reference-add small {
  font-size: 10px;
  font-weight: 900;
}

body[data-composer-collapsed="true"] .vs-reference-add small {
  display: none;
}

.vs-composer textarea {
  width: 100%;
  max-height: var(--vs-prompt-max-height);
  min-height: 74px;
  padding: 8px 4px;
  resize: none;
  border: 1px solid transparent;
  outline: none;
  color: var(--vs-text);
  background: transparent;
  font-size: 14px;
  line-height: 1.7;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  transition:
    min-height var(--vs-composer-motion),
    max-height var(--vs-composer-motion),
    padding var(--vs-composer-motion-fast),
    color var(--vs-composer-motion-fast),
    opacity var(--vs-composer-motion-fast);
}

body[data-composer-collapsed="true"] .vs-composer textarea {
  min-height: 54px;
  max-height: 150px;
  padding-top: 4px;
  padding-bottom: 4px;
  color: rgba(243, 247, 255, 0.94);
}

.vs-composer textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.vs-composer textarea::placeholder {
  color: #747d8d;
}

.vs-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  transition:
    gap var(--vs-composer-motion-fast),
    margin-top var(--vs-composer-motion-fast),
    opacity var(--vs-composer-motion-fast),
    transform var(--vs-composer-motion-fast);
}

body[data-composer-collapsed="true"] .vs-toolbar {
  position: absolute;
  right: 12px;
  bottom: 12px;
  gap: 5px;
  margin-top: 0;
  transform: translate3d(0, 0, 0);
}

body[data-composer-collapsed="true"] .vs-toolbar .vs-pill,
body[data-composer-collapsed="true"] .vs-toolbar .vs-cost-tip {
  max-width: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, 5px, 0) scale(0.72);
  transition:
    max-width var(--vs-composer-motion-fast),
    min-height var(--vs-composer-motion-fast),
    padding var(--vs-composer-motion-fast),
    border-width var(--vs-composer-motion-fast),
    opacity var(--vs-composer-motion-fast),
    transform var(--vs-composer-motion-fast);
}

body[data-composer-collapsed="true"] .vs-submit {
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.14);
}

.vs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--vs-line);
  border-radius: 9px;
  color: var(--vs-muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.vs-pill:hover,
.vs-pill.is-active {
  color: var(--vs-text);
  border-color: rgba(34, 211, 238, 0.28);
}

.vs-pill.is-blue {
  color: var(--vs-cyan);
  background: rgba(34, 211, 238, 0.08);
}

.vs-creation-trigger {
  gap: 5px;
}

.vs-creation-trigger i {
  color: var(--vs-cyan);
  font-size: 11px;
  font-style: normal;
  transform: translateY(-1px);
}

.vs-cost-tip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 30px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--vs-muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.vs-cost-tip strong {
  color: var(--vs-text);
  font-size: 13px;
}

.vs-cost-tip small {
  color: var(--vs-cyan);
  font-size: 12px;
  font-weight: 900;
}

.vs-submit {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
}

.vs-submit:disabled,
.vs-generate-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.55;
}

.vs-popover {
  position: fixed;
  z-index: 80;
  width: min(320px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--vs-line-strong);
  border-radius: 14px;
  color: var(--vs-text);
  background: rgba(28, 32, 41, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  animation: vs-pop 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: bottom left;
}

.vs-frame-popover {
  width: min(420px, calc(100vw - 24px));
}

.vs-compact-popover {
  width: 168px;
}

.vs-role-popover {
  width: min(260px, calc(100vw - 24px));
}

.vs-role-popover.is-mention-popover {
  width: min(240px, calc(100vw - 24px));
  padding: 9px;
}

.vs-role-source-popover {
  width: min(420px, calc(100vw - 24px));
}

.vs-creation-popover {
  width: min(202px, calc(100vw - 24px));
}

.vs-popover h3 {
  margin: 4px 4px 10px;
  font-size: 13px;
}

.vs-popover-list {
  display: grid;
  gap: 6px;
}

.vs-role-popover .vs-popover-list {
  max-height: min(328px, calc(100vh - 120px));
  overflow-y: auto;
}

.vs-creation-list {
  gap: 4px;
}

.vs-creation-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: var(--vs-text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.vs-creation-option:hover,
.vs-creation-option.is-selected {
  background: rgba(255, 255, 255, 0.08);
}

.vs-creation-option:disabled {
  cursor: default;
  opacity: 0.52;
}

.vs-creation-option strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-creation-icon,
.vs-creation-option em {
  color: var(--vs-cyan);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.vs-menu-list,
.vs-role-source-menu,
.vs-role-row-menu {
  display: grid;
  gap: 4px;
}

.vs-menu-list button,
.vs-role-source-menu button,
.vs-role-row-menu button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: var(--vs-text);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 850;
}

.vs-menu-list button:hover,
.vs-role-source-menu button:hover,
.vs-role-row-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.vs-role-create,
.vs-role-manage-link,
.vs-role-select-row {
  width: 100%;
  border: 0;
  border-radius: 10px;
  color: var(--vs-text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.vs-role-create {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 10px;
}

.vs-role-create:hover,
.vs-role-manage-link:hover,
.vs-role-select-row:hover,
.vs-role-select-row.is-selected {
  background: rgba(255, 255, 255, 0.08);
}

.vs-role-create span {
  font-size: 22px;
  line-height: 1;
}

.vs-role-create strong {
  font-size: 13px;
}

.vs-role-select-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px;
}

.vs-role-select-avatar,
.vs-role-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  color: #03171c;
  background: var(--vs-cyan);
  font-size: 12px;
  font-weight: 950;
}

.vs-role-select-avatar img,
.vs-role-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-role-select-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-role-empty {
  min-height: 36px;
  padding: 10px;
  color: var(--vs-muted);
  font-size: 12px;
  font-weight: 800;
}

.vs-role-row-more {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--vs-muted);
  background: transparent;
  cursor: pointer;
}

.vs-role-row-more:hover {
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.08);
}

.vs-role-manage-link {
  min-height: 36px;
  padding: 0 10px;
  color: var(--vs-muted);
  font-size: 13px;
  font-weight: 850;
}

.vs-role-source-menu,
.vs-role-row-menu {
  position: absolute;
  right: -174px;
  bottom: 12px;
  width: 160px;
  padding: 8px;
  border: 1px solid var(--vs-line);
  border-radius: 12px;
  background: rgba(28, 32, 41, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.vs-role-row-menu {
  right: -168px;
  bottom: 10px;
}

.vs-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vs-ratio-option {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  color: var(--vs-muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.vs-ratio-option:hover,
.vs-ratio-option.is-selected {
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.09);
}

.vs-ratio-icon {
  display: block;
  width: 24px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.vs-ratio-icon[data-ratio="21-9"] {
  width: 30px;
  height: 12px;
}

.vs-ratio-icon[data-ratio="4-3"] {
  width: 22px;
  height: 16px;
}

.vs-ratio-icon[data-ratio="1-1"] {
  width: 17px;
  height: 17px;
}

.vs-ratio-icon[data-ratio="3-4"] {
  width: 16px;
  height: 22px;
}

.vs-ratio-icon[data-ratio="9-16"] {
  width: 13px;
  height: 24px;
}

.vs-popover-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--vs-muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.vs-popover-option:hover,
.vs-popover-option.is-selected {
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.07);
}

.vs-popover-note {
  margin: 10px 4px 4px;
  color: var(--vs-muted);
  font-size: 12px;
  line-height: 1.6;
}

.vs-settings-grid {
  display: grid;
  gap: 10px;
}

.vs-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 90;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid var(--vs-line);
  border-radius: 14px;
  color: var(--vs-text);
  background: rgba(28, 32, 41, 0.98);
  box-shadow: var(--vs-shadow);
  font-size: 13px;
  transform: translateX(-50%);
  animation: vs-toast-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vs-role-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.vs-role-dialog {
  position: relative;
  display: grid;
  width: min(540px, 92vw);
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--vs-line);
  border-radius: 18px;
  color: var(--vs-text);
  background: rgba(24, 28, 36, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
}

.vs-role-dialog h3 {
  margin: 0;
  font-size: 18px;
}

.vs-role-dialog p {
  margin: 0;
  color: var(--vs-muted);
  line-height: 1.7;
}

.vs-role-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 24px;
}

.vs-role-preview-card,
.vs-role-preview-wide {
  display: grid;
  min-height: 210px;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 36%, rgba(34, 211, 238, 0.14), transparent 10rem),
    rgba(255, 255, 255, 0.04);
}

.vs-role-preview-avatar {
  display: grid;
  width: min(260px, 72vw);
  height: 210px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  color: #03171c;
  background: linear-gradient(135deg, var(--vs-cyan), var(--vs-green));
  font-size: 54px;
  font-weight: 950;
}

.vs-role-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-role-settings textarea {
  min-height: 90px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--vs-line);
  border-radius: 12px;
  outline: none;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.055);
}

.vs-role-dialog-primary {
  justify-self: end;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #001114;
  background: linear-gradient(135deg, var(--vs-cyan), var(--vs-green));
  cursor: pointer;
  font-weight: 950;
}

@keyframes vs-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes vs-loading-dream-pan {
  from {
    transform: scale(1.16) translate3d(-5.2%, -3.6%, 0);
    filter: blur(21px) saturate(1.15) hue-rotate(-3deg);
  }
  to {
    transform: scale(1.28) translate3d(5.8%, 3.8%, 0);
    filter: blur(17px) saturate(1.32) hue-rotate(7deg);
  }
}

@keyframes vs-loading-gauze {
  from {
    opacity: 0.32;
    transform: translateX(-4.6%) scale(1.04);
  }
  to {
    opacity: 0.58;
    transform: translateX(4.6%) scale(1.08);
  }
}

@keyframes vs-loading-shadow-drift {
  from {
    opacity: 0.82;
    transform: translate3d(-3.2%, 1%, 0) scale(1.04);
  }
  to {
    opacity: 0.95;
    transform: translate3d(2.2%, -1.6%, 0) scale(1.08);
  }
}

@keyframes vs-loading-light-breathe {
  from {
    opacity: 0.58;
    transform: translate3d(-1.5%, 0.8%, 0) scale(1);
  }
  to {
    opacity: 0.86;
    transform: translate3d(1.8%, -1.2%, 0) scale(1.06);
  }
}

@keyframes vs-loading-sweep {
  from {
    transform: translateX(-34%) rotate(0.001deg);
  }
  to {
    transform: translateX(34%) rotate(0.001deg);
  }
}

@keyframes vs-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes vs-viewer-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes vs-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.vs-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  animation: vs-viewer-in 160ms ease;
}

.vs-image-viewer img,
.vs-image-viewer video {
  max-width: min(920px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.vs-image-viewer video {
  width: min(920px, 92vw);
  background: #05070a;
}

.vs-image-viewer-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--vs-line);
  border-radius: 50%;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 22px;
}

.vs-image-viewer-actions {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.vs-image-viewer-download {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.vs-frame-editor {
  display: grid;
  width: 100%;
  gap: 12px;
}

.vs-frame-editor .vs-field {
  gap: 7px;
}

.vs-frame-editor textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--vs-line);
  border-radius: 12px;
  outline: none;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.65;
}

.vs-frame-editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.vs-frame-editor-row button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--vs-line);
  border-radius: 10px;
  color: var(--vs-text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

@media (max-width: 960px) {
  :root {
    --vs-composer-safe-area: 240px;
  }

  body[data-composer-collapsed="true"] {
    --vs-composer-safe-area: 200px;
  }

  body[data-page="video-studio"] {
    overflow: auto;
  }

  .vs-app {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .vs-rail {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-direction: row;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--vs-line);
  }

  .vs-rail-nav,
  .vs-rail-bottom {
    display: flex;
    margin: 0;
  }

  .vs-credit-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 64px;
    margin: 0;
    padding: 7px 9px;
  }

  .vs-credit-copy {
    justify-items: start;
  }

  .vs-rail-item {
    width: auto;
    min-height: 40px;
    padding: 0 10px;
    grid-auto-flow: column;
  }

  .vs-conversations {
    display: none;
  }

  .vs-view {
    height: auto;
    min-height: calc(100vh - 64px);
    padding: 28px 14px var(--vs-composer-safe-area);
  }

  .vs-composer-wrap {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px;
  }

  .vs-scroll-bottom {
    top: -40px;
    right: 14px;
    bottom: auto;
  }

  body[data-composer-collapsed="true"] .vs-composer-wrap {
    bottom: 0;
    transform: translate3d(0, 8px, 0);
  }

  .vs-composer {
    width: 100%;
    border-radius: 20px;
  }

  .vs-role-layout {
    grid-template-columns: 1fr;
  }

  .vs-task-row {
    grid-template-columns: 1fr;
  }

  .vs-task-row.has-video {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
  }

  .vs-task-thumb {
    grid-row: span 3;
    width: 76px;
  }

  .vs-task-row.has-video .vs-status,
  .vs-task-row.has-video .vs-task-actions {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --vs-prompt-max-height: 180px;
    --vs-composer-safe-area: 184px;
  }

  body[data-composer-collapsed="true"] {
    --vs-composer-safe-area: 152px;
  }

  .vs-rail-bottom {
    display: none;
  }

  .vs-composer-main {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  body[data-composer-collapsed="true"] .vs-composer {
    width: 100%;
    padding: 8px 9px;
    transform: translate3d(0, 0, 0) scale(0.988);
  }

  body[data-composer-collapsed="true"] .vs-reference-strip {
    display: none;
  }

  .vs-reference-add {
    width: 46px;
    height: 50px;
  }

  .vs-toolbar {
    gap: 6px;
  }

  .vs-cost-tip {
    order: 8;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .vs-pill {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vs-submit {
    margin-left: 0;
  }

  .vs-page-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

