/* Viroopa Audio — единая светлая дизайн-система Viroopa (без внешних CDN) */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/manrope-cyrillic.woff2?v=5') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/manrope-latin.woff2?v=5') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[hidden] {
  display: none !important;
}

:root {
  --white: #ffffff;
  --mist: #f8fafd;
  --ice: #eef5fb;
  --ice-deep: #e2eef9;
  --surface: #ffffff;
  --surface-soft: #f5f9fd;

  --ink: #172d42;
  --muted: #54677a;
  --quiet: #5e7285;
  --line: #dfe7ee;
  --line-strong: #c6d4e1;

  --navy: #16364d;
  --navy-light: #244960;
  --blue: #236eaf;
  --focus: #256caf;

  /* Фирменные акценты бутона Viroopa */
  --bud-indigo-dark: #312E81;
  --bud-indigo: #4F46E5;
  --bud-cyan: #06B6D4;
  --bud-gold: #FBBF24;
  --bud-gradient: linear-gradient(118deg, #312E81 0%, #4F46E5 56%, #06B6D4 100%);

  /* Семантика состояний */
  --ok: #14633a;
  --ok-bg: #e6f6ec;
  --ok-border: #bfe5cd;
  --warn: #8f4e0c;
  --warn-bg: #fef4e2;
  --warn-border: #f6d59c;
  --danger: #9f1f24;
  --danger-bg: #fdecec;
  --danger-border: #f5c2c4;
  --info: #1e5799;
  --info-bg: #eaf3fd;
  --info-border: #c5dcf7;

  /* Тёпло-сланцевый тон для режима «До · с шумом» */
  --before-ink: #7c4a24;
  --before-accent: #b86935;
  --before-bg: #fdf5ee;
  --before-border: #ebd2be;
  --before-bar-idle: #d5dde6;
  --before-bar-played: linear-gradient(180deg, #d98245 0%, #a85624 100%);

  --after-bar-idle: #cbdcf0;
  --after-bar-played: linear-gradient(180deg, #06B6D4 0%, #4F46E5 58%, #312E81 100%);

  --serif: Georgia, "Times New Roman", serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

  --radius-pill: 999px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;

  --shadow-xs: 0 1px 2px rgba(23, 45, 66, 0.05);
  --shadow-sm: 0 6px 20px rgba(22, 54, 77, 0.06);
  --shadow-card: 0 18px 46px rgba(22, 54, 77, 0.09), 0 2px 8px rgba(22, 54, 77, 0.04);
  --shadow-btn: 0 6px 18px rgba(22, 54, 77, 0.16);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.vp-body {
  margin: 0;
  padding: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, figure {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

button, input, select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  flex: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: #d7eafb;
  color: var(--ink);
}

.ad-hidden,
[hidden] {
  display: none !important;
}

.vp-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== Фирменный бутон Viroopa ==================== */

.vp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.vp-brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.vp-brand-mark {
  display: block;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(49, 46, 129, 0.14));
}

.vp-bud-svg {
  overflow: visible;
}

.vp-bud-svg .vp-bud-host,
.vp-bud-svg .vp-p-top,
.vp-bud-svg .vp-p-left,
.vp-bud-svg .vp-p-right,
.vp-bud-svg .vp-p-core {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-box: view-box;
  transform-origin: 0px 0px;
}

.vp-bud-svg .vp-p-top { transform: rotate(0deg); }
.vp-bud-svg .vp-p-left { transform: rotate(120deg); }
.vp-bud-svg .vp-p-right { transform: rotate(240deg); }

.vp-brand:hover .vp-bud-svg .vp-bud-host,
.vp-brand:focus-visible .vp-bud-svg .vp-bud-host,
.vp-hero-bud-link:hover .vp-bud-svg .vp-bud-host,
.vp-hero-bud-link:focus-visible .vp-bud-svg .vp-bud-host,
.vp-bud-svg:hover .vp-bud-host {
  transform: translateY(8px) rotate(-13deg) scale(1.05);
}

.vp-brand:hover .vp-bud-svg .vp-p-top,
.vp-brand:focus-visible .vp-bud-svg .vp-p-top,
.vp-hero-bud-link:hover .vp-bud-svg .vp-p-top,
.vp-hero-bud-link:focus-visible .vp-bud-svg .vp-p-top,
.vp-bud-svg:hover .vp-p-top {
  transform: rotate(0deg) scale(1.03);
}

.vp-brand:hover .vp-bud-svg .vp-p-left,
.vp-brand:focus-visible .vp-bud-svg .vp-p-left,
.vp-hero-bud-link:hover .vp-bud-svg .vp-p-left,
.vp-hero-bud-link:focus-visible .vp-bud-svg .vp-p-left,
.vp-bud-svg:hover .vp-p-left {
  transform: rotate(26deg) translateY(1px);
}

.vp-brand:hover .vp-bud-svg .vp-p-right,
.vp-brand:focus-visible .vp-bud-svg .vp-p-right,
.vp-hero-bud-link:hover .vp-bud-svg .vp-p-right,
.vp-hero-bud-link:focus-visible .vp-bud-svg .vp-p-right,
.vp-bud-svg:hover .vp-p-right {
  transform: rotate(334deg) translateY(1px);
}

.vp-brand:hover .vp-bud-svg .vp-p-core,
.vp-brand:focus-visible .vp-bud-svg .vp-p-core,
.vp-hero-bud-link:hover .vp-bud-svg .vp-p-core,
.vp-hero-bud-link:focus-visible .vp-bud-svg .vp-p-core,
.vp-bud-svg:hover .vp-p-core {
  transform: scale(1.12);
}

.vp-brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.vp-brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: 0.22em;
  margin-right: -0.22em;
  color: var(--ink);
}

.vp-brand-sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  margin-top: 3px;
  color: var(--quiet);
  text-transform: uppercase;
}

/* ==================== Фирменные кнопки-пилюли ==================== */

.vp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.vp-btn:hover:not(:disabled) {
  background: var(--ice);
  border-color: #9bb3c7;
  color: var(--ink);
  text-decoration: none;
}

.vp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vp-btn .vp-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.16s ease;
}

.vp-btn:hover:not(:disabled) .vp-arrow {
  transform: translateX(3px);
}

.vp-btn-primary {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-light), var(--navy));
  box-shadow: var(--shadow-btn);
}

.vp-btn-primary:hover:not(:disabled) {
  color: var(--white);
  background: linear-gradient(145deg, #2d5a76, #1d425c);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(22, 54, 77, 0.22);
}

.vp-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(22, 54, 77, 0.16);
}

.vp-btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-color: #a8bccd;
  box-shadow: var(--shadow-xs);
}

.vp-btn-secondary:hover:not(:disabled) {
  background: var(--ice);
  border-color: #7995ad;
}

.vp-btn-soft {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info);
}

.vp-btn-soft:hover:not(:disabled) {
  background: #dcebfb;
  border-color: #9ec4ee;
  color: var(--navy);
}

.vp-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.vp-btn-ghost:hover:not(:disabled) {
  background: var(--ice);
  border-color: transparent;
  color: var(--ink);
}

.vp-btn-danger-ghost {
  background: var(--white);
  border-color: var(--danger-border);
  color: var(--danger);
}

.vp-btn-danger-ghost:hover:not(:disabled) {
  background: var(--danger-bg);
  border-color: #e89fa2;
  color: var(--danger);
}

.vp-btn-danger {
  background: #c62828;
  border-color: #c62828;
  color: var(--white);
}

.vp-btn-danger:hover:not(:disabled) {
  background: #a51e1e;
  border-color: #a51e1e;
  color: var(--white);
}

.vp-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  gap: 6px;
}

.vp-btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  min-height: 48px;
}

.vp-btn-block {
  width: 100%;
  padding: 12px 20px;
  min-height: 46px;
  font-size: 14.5px;
  font-weight: 600;
}

/* ==================== Формы, поля, алерты, пилюли ==================== */

.vp-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vp-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.vp-input,
.vp-select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vp-input:focus,
.vp-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 110, 175, 0.14);
}

.vp-input-sm {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.vp-hint {
  font-size: 12.5px;
  color: var(--quiet);
}

.vp-alert {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.45;
  border: 1px solid transparent;
}

.vp-alert-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.vp-alert-warning {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn);
}

.vp-alert-success {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}

.vp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  white-space: nowrap;
}

.vp-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.vp-pill-soft {
  background: var(--mist);
  border-color: var(--line);
  color: var(--muted);
}

.vp-pill-quota {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info);
}

.vp-pill-online {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}

.vp-pill-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn);
}

.vp-pill-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.vp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.vp-badge-queued { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.vp-badge-processing,
.vp-badge-muxing { background: #ede9fe; color: #4338ca; border-color: #c7d2fe; }
.vp-badge-done { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-border); }
.vp-badge-failed { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.vp-badge-cancelled,
.vp-badge-expired { background: #f1f5f9; color: var(--quiet); border-color: var(--line); }
.vp-badge-sso {
  background: linear-gradient(120deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.12));
  color: #3730a3;
  border-color: rgba(79, 70, 229, 0.24);
}
.vp-badge-local { background: #f1f5f9; color: var(--muted); border-color: var(--line); }

/* ==================== ОДНОЭКРАННЫЙ ЛЕНДИНГ (100dvh, горный макет) ==================== */

body.vp-body-landing {
  background: #eef3fb url('/static/brand/hero-bg.webp') center center / cover no-repeat;
  min-height: 100dvh;
  color: #0f172a;
}

.vp-landing-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 960px) and (min-height: 540px) {
  html:has(body.vp-body-landing),
  body.vp-body-landing {
    height: 100dvh;
    overflow: hidden;
  }

  .vp-landing-shell {
    height: 100dvh;
    overflow: hidden;
  }
}

.vp-landing-header {
  position: absolute;
  top: clamp(16px, 2.5vh, 28px);
  right: clamp(20px, 5vw, 76px);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.vp-landing-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vp-glass-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 46px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 18px rgba(99, 102, 241, 0.08);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.vp-glass-pill-btn:hover {
  background: rgba(255, 255, 255, 0.76);
  border-color: #ffffff;
  color: #0b1220;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 24px rgba(99, 102, 241, 0.12);
}

.vp-landing-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2.6vh, 30px) clamp(16px, 3vw, 40px) clamp(16px, 2.4vh, 28px);
  position: relative;
  z-index: 2;
}

/* Центральная шапка контента */

.vp-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 880px;
}

.vp-hero-bud-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 0;
  margin-bottom: 4px;
  text-decoration: none;
  border-radius: 50%;
}

@media (min-width: 960px) {
  .vp-hero-bud-link {
    margin-top: clamp(4px, 0.8vh, 10px);
    margin-bottom: -10px;
  }
}

.vp-hero-bud-link .vp-brand-mark {
  width: clamp(72px, 9.2vh, 92px);
  height: clamp(72px, 9.2vh, 92px);
  flex: none;
  filter: drop-shadow(0 6px 18px rgba(79, 70, 229, 0.22));
}

.vp-hero-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.35rem, 3.85vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: #0b1220;
}

.vp-hero-subline {
  margin-top: clamp(4px, 0.65vh, 8px);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #7c63f6;
  font-weight: 600;
  font-size: clamp(1.3rem, 1.9vw, 1.78rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.vp-hero-subline::before,
.vp-hero-subline::after {
  content: "";
  width: 54px;
  height: 1.5px;
  background: rgba(124, 99, 246, 0.52);
  border-radius: 2px;
}

.vp-hero-lead {
  margin-top: clamp(8px, 1.2vh, 14px);
  font-size: clamp(1.02rem, 1.32vw, 1.28rem);
  line-height: 1.38;
  color: #111827;
  font-weight: 400;
  max-width: 780px;
}

.vp-hero-lead strong {
  font-weight: 700;
  color: #090f1d;
}

.vp-feature-pills {
  list-style: none;
  padding: 0;
  margin: clamp(12px, 1.8vh, 20px) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
  flex-wrap: wrap;
}

.vp-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: clamp(44px, 5.2vh, 52px);
  padding: 7px clamp(18px, 1.9vw, 26px);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  color: #0f172a;
  font-size: clamp(13.5px, 1.02vw, 15.2px);
  font-weight: 500;
  line-height: 1.2;
}

.vp-feature-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.vp-feature-pill-mint {
  background: rgba(225, 250, 240, 0.88);
}

.vp-feature-pill-mint .vp-feature-icon {
  color: #059669;
}

.vp-feature-pill-lavender {
  background: rgba(238, 232, 255, 0.88);
}

.vp-feature-pill-lavender .vp-feature-icon {
  color: #6d28d9;
}

.vp-feature-pill-sky {
  background: rgba(224, 242, 254, 0.88);
}

.vp-feature-pill-sky .vp-feature-icon {
  color: #0284c7;
}

.vp-feature-pill-lines {
  text-align: left;
  font-size: clamp(12.5px, 0.94vw, 13.8px);
  line-height: 1.18;
}

/* ==================== Стеклянная карточка-плеер 15 сек «До / После» ==================== */

.vp-demo-card {
  margin-top: clamp(14px, 2.1vh, 26px);
  width: min(1040px, 100%, 134dvh);
  max-width: 1040px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  padding: clamp(16px, 2vh, 22px);
  box-shadow: 0 22px 55px rgba(79, 70, 229, 0.12), 0 4px 16px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(18px, 2.2vw, 26px);
  align-items: stretch;
}

/* Левая половина: превью видео */

.vp-demo-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0c1118;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  user-select: none;
}

.vp-demo-video-img,
.vp-demo-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.vp-demo-card:not(.is-playing) .vp-demo-video:hover .vp-demo-video-img,
.vp-demo-card:not(.is-playing) .vp-demo-video:hover .vp-demo-video-el {
  transform: scale(1.015);
}

.vp-demo-video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  background: rgba(24, 32, 48, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f8fafc;
  font-size: clamp(12.5px, 0.92vw, 13.8px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.vp-demo-cam-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Правая половина: A/B-плеер */

.vp-demo-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 1.15vh, 12px);
  min-width: 0;
  padding: 2px 4px 2px 0;
}

.vp-demo-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #edf1f7;
  border: 1px solid rgba(203, 213, 225, 0.45);
}

.vp-demo-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: var(--radius-pill);
  padding: clamp(9px, 1.1vh, 11px) 14px;
  font-size: clamp(13.5px, 1vw, 15px);
  font-weight: 500;
  line-height: 1.2;
  background: transparent;
  color: #1e293b;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.vp-demo-side-btn strong {
  font-weight: 700;
}

.vp-demo-side-btn:hover:not(.is-active) {
  color: #0b1220;
  background: rgba(255, 255, 255, 0.55);
}

.vp-demo-side-btn.is-active {
  background: linear-gradient(90deg, #8b5cf6 0%, #5b5ef7 55%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(91, 94, 247, 0.32);
}

.vp-demo-side-btn.is-active strong {
  font-weight: 600;
}

/* Индикаторы Музыка -> Речь */

.vp-demo-phases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.vp-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: clamp(13px, 0.98vw, 14.5px);
  font-weight: 600;
  color: #0f172a;
  border: 1.5px solid transparent;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.vp-phase-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.vp-phase-music {
  background: rgba(225, 250, 240, 0.92);
}

.vp-phase-music .vp-phase-icon {
  color: #059669;
}

.vp-phase-speech {
  background: rgba(238, 232, 255, 0.92);
}

.vp-phase-speech .vp-phase-icon {
  color: #7c3aed;
}

.vp-phase-music.is-active-phase {
  border-color: rgba(16, 185, 129, 0.62);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.vp-phase-speech.is-active-phase {
  border-color: rgba(124, 58, 237, 0.56);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.vp-phase-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #64748b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Симметричная звуковая волна и шкала времени */

.vp-wave-stage {
  display: flex;
  flex-direction: column;
}

.vp-wave-viewport {
  position: relative;
  height: clamp(62px, 8.8vh, 84px);
  padding: 6px 0 4px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.vp-wave-bars {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}

.vp-wave-bar {
  flex: 1 1 0;
  min-width: 1.5px;
  max-width: 4px;
  height: 4%;
  border-radius: var(--radius-pill);
  opacity: 0.78;
  transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease, filter 0.22s ease;
  will-change: height;
}

.vp-wave-bar.vp-bar-music {
  background: linear-gradient(180deg, #10b981 0%, #06b6d4 100%);
}

.vp-wave-bar.vp-bar-speech {
  background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
}

.vp-wave-bar.is-played {
  opacity: 1;
}

.vp-demo-card[data-side="before"] .vp-wave-bar.vp-bar-pause {
  opacity: 0.56;
  filter: saturate(0.42);
}

.vp-demo-card[data-side="before"] .vp-wave-bar.vp-bar-pause.is-played {
  opacity: 0.8;
  filter: saturate(0.55);
}

.vp-wave-playhead {
  position: absolute;
  top: 4px;
  bottom: -2px;
  left: 0%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.42);
  z-index: 3;
  pointer-events: none;
  transform: translateX(-1px);
}

.vp-wave-playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4f46e5;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 2px 5px rgba(79, 70, 229, 0.45);
}

.vp-wave-axis {
  position: relative;
  height: 21px;
  border-top: 1px solid #cbd5e1;
  margin-top: 2px;
}

.vp-axis-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  padding-top: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.vp-axis-tick::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6px;
  background: #94a3b8;
}

.vp-axis-tick-start {
  transform: none;
}

.vp-axis-tick-start::before {
  left: 0;
  transform: none;
}

.vp-axis-tick-end {
  transform: translateX(-100%);
}

.vp-axis-tick-end::before {
  left: auto;
  right: 0;
  transform: none;
}

/* Нижняя панель управления плеером */

.vp-demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vp-demo-left-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.vp-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.34);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.16s ease;
}

.vp-play-circle:hover {
  transform: scale(1.05);
  filter: brightness(1.04);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.42);
}

.vp-play-circle:active {
  transform: scale(0.97);
}

.vp-play-icon {
  width: 20px;
  height: 20px;
}

/* Надёжное переключение Play <-> Pause по классу .is-playing */

.vp-play-circle .vp-icon-pause {
  display: none;
}

.vp-play-circle.is-playing .vp-icon-play {
  display: none;
}

.vp-play-circle.is-playing .vp-icon-pause {
  display: block;
}

.vp-demo-time {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
}

.vp-demo-error {
  font-size: 12px;
  color: var(--danger);
  line-height: 1.25;
}

/* Громкость справа */

.vp-demo-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.vp-vol-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.vp-vol-btn:hover {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.14);
}

.vp-vol-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-vol-btn .vp-icon-vol-off {
  display: none;
}

.vp-vol-btn.is-muted .vp-icon-vol-on {
  display: none;
}

.vp-vol-btn.is-muted .vp-icon-vol-off {
  display: block;
}

.vp-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: clamp(74px, 7.6vw, 108px);
  height: 4px;
  border-radius: var(--radius-pill);
  --vol-pct: 90%;
  background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 var(--vol-pct), #e2e8f0 var(--vol-pct), #e2e8f0 100%);
  cursor: pointer;
}

.vp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.vp-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  border-color: #6366f1;
}

.vp-vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.vp-vol-slider::-moz-range-track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: transparent;
}

/* Ошибка авторизации и нижний CTA */

.vp-landing-error {
  margin-top: 12px;
  width: 100%;
  max-width: 520px;
  padding: 9px 14px;
  font-size: 13px;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* ==================== Встроенная светлая карточка входа на горном фоне ==================== */

.vp-demo-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.vp-landing-shell[data-view="auth"] .vp-demo-intro,
.vp-landing-shell[data-view="auth"] .vp-demo-card,
.vp-landing-shell[data-view="auth"] .vp-landing-cta {
  display: none !important;
}

.vp-landing-shell[data-view="demo"] .vp-inline-auth-card {
  display: none !important;
}

@keyframes vpCardReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vp-inline-auth-card {
  margin-top: clamp(16px, 2.4vh, 26px);
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  padding: clamp(22px, 2.8vh, 28px) clamp(22px, 2.8vw, 30px) clamp(18px, 2.2vh, 22px);
  box-shadow: 0 24px 60px rgba(79, 70, 229, 0.14), 0 4px 16px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: vpCardReveal 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vp-inline-auth-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vp-inline-auth-title {
  font-family: var(--sans);
  font-size: clamp(1.22rem, 1.5vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
  line-height: 1.2;
}

.vp-inline-auth-sub {
  font-size: 13.5px;
  color: #475569;
  font-weight: 500;
  line-height: 1.35;
}

.vp-inline-auth-sub strong {
  color: #5b21b6;
  font-weight: 700;
}

.vp-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #dbe4f0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.vp-google-btn:hover {
  background: #ffffff;
  border-color: #b7c8e0;
  color: #0b1220;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1);
}

.vp-google-icon {
  width: 19px;
  height: 19px;
  flex: none;
}

.vp-inline-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 500;
}

.vp-inline-divider::before,
.vp-inline-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.34);
}

.vp-inline-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vp-inline-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vp-inline-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: left;
}

.vp-inline-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid #d5e0ee;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.vp-inline-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.vp-inline-input:focus,
.vp-inline-input:focus-visible {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.16);
}

.vp-inline-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vp-inline-pass-wrap .vp-inline-input {
  padding-right: 44px;
}

.vp-inline-eye-btn {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.vp-inline-eye-btn:hover {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.14);
}

.vp-eye-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-inline-auth-alert {
  margin: 0;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13px;
  text-align: left;
  line-height: 1.4;
}

.vp-inline-mfa-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: underline;
}

.vp-inline-auth-submit {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin-top: 2px;
  border-radius: 13px;
  font-size: 16.5px;
  gap: 10px;
}

.vp-inline-auth-submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.vp-inline-auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 12.5px;
}

.vp-inline-back-link {
  border: none;
  background: transparent;
  padding: 2px 0;
  color: #4f46e5;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.vp-inline-back-link:hover {
  color: #312e81;
  text-decoration: underline;
}

.vp-inline-help-link {
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
}

.vp-inline-help-link:hover {
  color: #334155;
  text-decoration: underline;
}

.vp-landing-cta {
  margin-top: clamp(14px, 2.2vh, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(11px, 1.5vh, 16px);
}

.vp-trial-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(9px, 1.15vh, 12px) clamp(22px, 2.2vw, 32px);
  border-radius: var(--radius-pill);
  background: rgba(238, 232, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.08);
  font-size: clamp(14.5px, 1.12vw, 17px);
  color: #334155;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.vp-trial-pill strong {
  color: #5b21b6;
  font-weight: 700;
}

.vp-trial-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #6d28d9;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.vp-cta-gradient-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: clamp(310px, 27vw, 405px);
  height: clamp(52px, 6.2vh, 62px);
  padding: 0 36px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(90deg, #9844f5 0%, #6c5ce7 48%, #2094f3 100%);
  color: #ffffff;
  font-size: clamp(17.5px, 1.32vw, 20.5px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 14px 32px rgba(108, 92, 231, 0.34), 0 4px 14px rgba(32, 148, 243, 0.24);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.16s ease;
}

.vp-cta-gradient-btn:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1.5px);
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 18px 36px rgba(108, 92, 231, 0.42), 0 6px 18px rgba(32, 148, 243, 0.3);
}

.vp-cta-gradient-btn:active {
  transform: translateY(0);
}

.vp-cta-arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(0.5px);
  transition: transform 0.16s ease;
}

.vp-cta-gradient-btn:hover .vp-cta-arrow {
  transform: translate(3px, 0.5px);
}

/* Бережная подстройка на средних и компактных десктопных экранах (1440×780, 1536×735, 1366×650, 1280×620, 1024×600) */

@media (min-width: 960px) and (max-height: 820px) {
  .vp-landing-header {
    top: 14px;
  }

  .vp-glass-pill-btn {
    min-width: 112px;
    height: 40px;
    padding: 0 26px;
    font-size: 14.5px;
  }

  .vp-landing-main {
    padding-block: 10px 14px;
  }

  .vp-hero-bud-link {
    margin-top: 0;
    margin-bottom: -6px;
  }

  .vp-hero-bud-link .vp-brand-mark {
    width: 64px;
    height: 64px;
  }

  .vp-hero-title {
    font-size: clamp(2.2rem, 3.25vw, 3.0rem);
  }

  .vp-hero-subline {
    margin-top: 3px;
    font-size: 1.35rem;
  }

  .vp-hero-lead {
    margin-top: 6px;
    font-size: 1.04rem;
    line-height: 1.34;
  }

  .vp-feature-pills {
    margin-top: 10px;
    gap: 12px;
  }

  .vp-feature-pill {
    min-height: 40px;
    padding: 5px 18px;
    font-size: 13.5px;
  }

  .vp-demo-card {
    margin-top: 13px;
    width: min(920px, 100%, 126dvh);
    padding: 14px 16px;
    gap: 18px;
    border-radius: 22px;
  }

  .vp-wave-viewport {
    height: 58px;
  }

  .vp-landing-cta {
    margin-top: 12px;
    gap: 9px;
  }

  .vp-trial-pill {
    padding: 7px 22px;
    font-size: 14.2px;
  }

  .vp-cta-gradient-btn {
    min-width: 310px;
    height: 50px;
    font-size: 17.5px;
  }
}

@media (min-width: 960px) and (max-height: 685px) {
  .vp-landing-header {
    top: 10px;
  }

  .vp-glass-pill-btn {
    min-width: 102px;
    height: 36px;
    padding: 0 22px;
    font-size: 13.5px;
  }

  .vp-landing-main {
    padding-block: 8px 10px;
  }

  .vp-hero-bud-link {
    margin-top: 0;
    margin-bottom: -4px;
  }

  .vp-hero-bud-link .vp-brand-mark {
    width: 50px;
    height: 50px;
  }

  .vp-hero-title {
    font-size: clamp(1.85rem, 2.75vw, 2.35rem);
  }

  .vp-hero-subline {
    margin-top: 2px;
    font-size: 1.12rem;
    gap: 14px;
  }

  .vp-hero-subline::before,
  .vp-hero-subline::after {
    width: 40px;
  }

  .vp-hero-lead {
    margin-top: 5px;
    font-size: 0.94rem;
    line-height: 1.3;
  }

  .vp-feature-pills {
    margin-top: 8px;
    gap: 10px;
  }

  .vp-feature-pill {
    min-height: 34px;
    padding: 4px 14px;
    font-size: 12.5px;
    gap: 7px;
  }

  .vp-feature-icon {
    width: 17px;
    height: 17px;
  }

  .vp-feature-pill-lines {
    font-size: 11.8px;
  }

  .vp-demo-card {
    margin-top: 10px;
    width: min(820px, 100%, 124dvh);
    padding: 11px 13px;
    gap: 15px;
    border-radius: 20px;
  }

  .vp-demo-video {
    border-radius: 13px;
  }

  .vp-demo-video-caption {
    padding: 7px 12px;
    font-size: 12px;
  }

  .vp-demo-panel {
    gap: 6px;
  }

  .vp-demo-side-btn {
    padding: 7px 11px;
    font-size: 13px;
  }

  .vp-phase-pill {
    padding: 4px 13px;
    font-size: 12.5px;
  }

  .vp-wave-viewport {
    height: 46px;
    padding: 4px 0 2px;
  }

  .vp-wave-axis {
    height: 17px;
  }

  .vp-play-circle {
    width: 36px;
    height: 36px;
  }

  .vp-play-icon {
    width: 17px;
    height: 17px;
  }

  .vp-demo-time {
    font-size: 13px;
  }

  .vp-landing-cta {
    margin-top: 9px;
    gap: 7px;
  }

  .vp-trial-pill {
    padding: 6px 18px;
    font-size: 13px;
    gap: 8px;
  }

  .vp-trial-icon {
    width: 17px;
    height: 17px;
  }

  .vp-cta-gradient-btn {
    min-width: 280px;
    height: 44px;
    padding: 0 28px;
    border-radius: 13px;
    font-size: 16px;
    gap: 10px;
  }

  .vp-cta-arrow {
    width: 19px;
    height: 19px;
  }

  /* Встроенная форма входа на компактном экране по высоте */
  .vp-inline-auth-card {
    margin-top: 10px;
    padding: 16px 22px 14px;
    gap: 10px;
    border-radius: 22px;
  }

  .vp-inline-auth-title {
    font-size: 1.15rem;
  }

  .vp-inline-auth-sub {
    font-size: 12.5px;
  }

  .vp-google-btn {
    height: 40px;
    font-size: 14px;
  }

  .vp-inline-auth-form {
    gap: 9px;
  }

  .vp-inline-label {
    font-size: 12px;
  }

  .vp-inline-input {
    height: 38px;
    font-size: 14px;
  }

  .vp-inline-auth-submit {
    height: 42px;
    font-size: 15.5px;
  }

  .vp-inline-auth-foot {
    padding-top: 8px;
    font-size: 12px;
  }
}

/* ==================== ШАПКА И СЕТКА КАБИНЕТА / АДМИНКИ ==================== */

body.vp-body-app {
  background: linear-gradient(180deg, #f6f9fd 0%, #f8fafd 40%, #f3f7fc 100%);
  min-height: 100dvh;
}

.vp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.vp-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.vp-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.vp-app-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vp-app-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vp-app-nav a:hover {
  background: var(--ice);
  color: var(--ink);
}

.vp-app-nav a[aria-current="page"] {
  background: var(--ice);
  color: var(--navy);
  font-weight: 600;
}

.vp-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vp-user-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  border: 1px solid var(--line);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 32px) 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.vp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.vp-page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--ink);
}

.vp-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.38rem;
  line-height: 1.22;
  color: var(--ink);
}

.vp-card-sub {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--quiet);
}

/* ==================== Загрузка в студии ==================== */

.vp-upload-controls {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.vp-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.vp-segmented {
  display: inline-flex;
  background: #edf2f7;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}

.vp-seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.vp-seg-btn:hover {
  color: var(--ink);
}

.vp-seg-btn.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(22, 54, 77, 0.1);
}

.vp-preview-start-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vp-preview-start-wrap .vp-input {
  width: 108px;
}

.vp-dropzone {
  border: 1.5px dashed #b9cde0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.vp-dropzone:hover,
.vp-dropzone.is-dragover {
  border-color: var(--bud-indigo);
  background: linear-gradient(180deg, #f6f8ff 0%, #ecf5fd 100%);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.vp-dropzone-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.vp-dropzone-icon .vp-icon {
  width: 22px;
  height: 22px;
}

.vp-dropzone-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.vp-dropzone-sub {
  font-size: 13px;
  color: var(--quiet);
  margin-bottom: 16px;
}

.vp-upload-queue {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vp-upload-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.vp-upload-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 15px;
  background: var(--mist);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vp-upload-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vp-upload-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  word-break: break-word;
}

.vp-upload-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--quiet);
}

.vp-notice-line {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Прогресс-бар */

.vp-progress-track {
  width: 100%;
  height: 7px;
  background: #e2ebf3;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.vp-progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.vp-progress-fill.is-done {
  background: #1a8a4c;
}

.vp-progress-fill.is-error {
  background: #c62828;
}

.vp-progress-fill.is-active {
  background: linear-gradient(90deg, #312E81 0%, #4F46E5 35%, #06B6D4 65%, #312E81 100%);
  background-size: 220% 100%;
  animation: vp-shimmer 2.1s linear infinite;
}

@keyframes vp-shimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

/* ==================== Встроенный A/B-плеер в студии ==================== */

.vp-ab-card {
  border: 1px solid rgba(79, 70, 229, 0.24);
  background: linear-gradient(165deg, #ffffff 0%, #f6f9ff 65%, #eef7fc 100%);
  box-shadow: var(--shadow-card);
}

.vp-ab-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vp-ab-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
  word-break: break-word;
}

.vp-ab-sub {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--quiet);
}

.vp-ab-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 16px;
}

.vp-ab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 460px;
  background: #eaf0f7;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 5px;
}

.vp-ab-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.vp-ab-side-btn.is-active-before {
  background: var(--white);
  color: var(--before-ink);
  border-color: var(--before-border);
  box-shadow: 0 3px 10px rgba(124, 74, 36, 0.12);
}

.vp-ab-side-btn.is-active-after {
  background: var(--bud-gradient);
  color: var(--white);
  box-shadow: 0 5px 16px rgba(79, 70, 229, 0.28);
}

.vp-ab-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vp-ab-seek {
  flex: 1;
  accent-color: var(--bud-indigo);
  cursor: pointer;
  height: 6px;
}

.vp-ab-time {
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  min-width: 92px;
  text-align: right;
}

.vp-ab-foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== Список задач ==================== */

.vp-jobs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vp-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vp-filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.vp-filter-btn:hover {
  background: var(--ice);
  color: var(--ink);
}

.vp-filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.vp-batch-filter-wrap {
  min-width: 220px;
}

.vp-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vp-job-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 18px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.vp-job-card:hover {
  border-color: #c2d4e4;
  box-shadow: 0 4px 14px rgba(22, 54, 77, 0.05);
}

.vp-job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vp-job-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.vp-job-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vp-media-kind-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ice);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.vp-media-kind-icon .vp-icon {
  width: 14px;
  height: 14px;
}

.vp-job-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  word-break: break-word;
}

.vp-batch-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.vp-job-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--quiet);
}

.vp-job-progress-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vp-job-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.vp-job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vp-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--quiet);
  font-size: 14px;
  background: var(--mist);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

/* ==================== Админка ==================== */

.vp-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vp-stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vp-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--quiet);
}

.vp-stat-value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--ink);
  line-height: 1.15;
}

.vp-stat-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.vp-invite-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.vp-invite-created {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vp-invite-url-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
  color: var(--ok);
}

.vp-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.vp-table-spaced {
  margin-top: 18px;
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.vp-table th,
.vp-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.vp-table th {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--quiet);
  background: var(--mist);
  white-space: nowrap;
}

.vp-table tr:last-child td {
  border-bottom: none;
}

.vp-table-empty {
  text-align: center !important;
  color: var(--quiet);
  padding: 24px !important;
}

.vp-user-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vp-user-head-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.vp-user-email {
  font-size: 12.5px;
  color: var(--blue);
  word-break: break-all;
}

.vp-quota-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vp-quota-editor .vp-select {
  width: auto;
  min-width: 158px;
}

.vp-quota-editor .vp-input {
  width: 82px;
}

/* ==================== Резервный вход и приглашение ==================== */

body.vp-body-auth {
  min-height: 100dvh;
  background: linear-gradient(130deg, #ffffff 0%, #f8fafd 46%, #ebf3fb 100%);
}

.vp-auth-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
  position: relative;
}

.vp-auth-topbar {
  width: 100%;
  max-width: 440px;
  margin-bottom: 14px;
}

.vp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}

.vp-back-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.vp-back-link .vp-icon {
  width: 16px;
  height: 16px;
}

.vp-auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}

.vp-auth-brand {
  margin-bottom: 18px;
}

.vp-auth-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--ink);
}

.vp-auth-desc {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.vp-sso-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vp-sso-note {
  font-size: 12px;
  color: var(--quiet);
  text-align: center;
}

.vp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
  color: var(--quiet);
  font-size: 12px;
}

.vp-divider::before,
.vp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.vp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vp-auth-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vp-invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.vp-auth-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 12.75px;
  color: var(--quiet);
  line-height: 1.55;
}

/* ==================== Модалки и тосты ==================== */

.vp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 45, 66, 0.42);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vp-modal {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(23, 45, 66, 0.24);
}

.vp-modal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.vp-modal-body {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.55;
}

.vp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.vp-toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.vp-toast {
  background: var(--navy);
  color: var(--white);
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: 0 12px 30px rgba(22, 54, 77, 0.26);
}

.vp-toast-success { background: #14633a; }
.vp-toast-error { background: #a51e1e; }

/* ==================== Адаптивность ==================== */

@media (max-width: 1080px) {
  .vp-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vp-invite-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 959px) {
  .vp-landing-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .vp-landing-header {
    position: relative;
    top: auto;
    right: auto;
    padding: 14px 18px 0;
    justify-content: flex-end;
  }

  .vp-landing-main {
    justify-content: flex-start;
    padding: 4px 18px 34px;
  }

  .vp-demo-card {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 16px;
  }

  .vp-demo-panel {
    padding: 0;
  }
}

@media (max-width: 780px) {
  .vp-upload-controls {
    grid-template-columns: 1fr;
  }

  .vp-ab-controls {
    flex-wrap: wrap;
  }

  .vp-ab-time {
    text-align: left;
  }

  .vp-card {
    padding: 18px 16px;
  }

  .vp-lead-br {
    display: none;
  }
}

@media (max-width: 560px) {
  .vp-admin-grid {
    grid-template-columns: 1fr;
  }

  .vp-invite-form-grid {
    grid-template-columns: 1fr;
  }

  .vp-landing-header {
    padding: 12px 16px 0;
  }

  .vp-glass-pill-btn {
    min-width: 96px;
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
  }

  .vp-landing-main {
    padding: 2px 14px 28px;
  }

  .vp-hero-bud-link {
    margin-top: 0;
    margin-bottom: 4px;
  }

  .vp-hero-bud-link .vp-brand-mark {
    width: 62px;
    height: 62px;
  }

  .vp-hero-title {
    font-size: clamp(2rem, 8.8vw, 2.55rem);
  }

  .vp-hero-subline {
    font-size: 1.25rem;
    gap: 14px;
  }

  .vp-hero-subline::before,
  .vp-hero-subline::after {
    width: 36px;
  }

  .vp-hero-lead {
    font-size: 0.96rem;
    line-height: 1.42;
    margin-top: 8px;
  }

  .vp-feature-pills {
    gap: 8px;
    margin-top: 14px;
  }

  .vp-feature-pill {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 13px;
    gap: 7px;
  }

  .vp-feature-icon {
    width: 18px;
    height: 18px;
  }

  .vp-feature-pill-lines {
    font-size: 12.2px;
  }

  .vp-demo-card {
    margin-top: 16px;
    padding: 13px;
    border-radius: 22px;
    gap: 14px;
  }

  .vp-demo-video {
    border-radius: 14px;
  }

  .vp-demo-video-caption {
    padding: 8px 12px;
    font-size: 12px;
    gap: 7px;
  }

  .vp-demo-cam-icon {
    width: 16px;
    height: 16px;
  }

  .vp-demo-switch {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 3px;
  }

  .vp-demo-side-btn {
    padding: 9px 6px;
    font-size: 12.2px;
    line-height: 1.15;
    white-space: normal;
    flex-wrap: wrap;
    text-align: center;
  }

  .vp-phase-pill {
    padding: 5px 14px;
    font-size: 12.5px;
  }

  .vp-wave-viewport {
    height: 62px;
  }

  .vp-wave-bars {
    gap: 1.5px;
  }

  .vp-wave-bar {
    min-width: 1px;
  }

  .vp-demo-controls {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .vp-play-circle {
    width: 42px;
    height: 42px;
  }

  .vp-demo-time {
    font-size: 13px;
  }

  .vp-vol-slider {
    width: 72px;
  }

  .vp-landing-cta {
    width: 100%;
    margin-top: 16px;
    gap: 11px;
  }

  .vp-trial-pill {
    font-size: 13.5px;
    padding: 9px 16px;
    gap: 8px;
  }

  .vp-trial-icon {
    width: 18px;
    height: 18px;
  }

  .vp-cta-gradient-btn {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 22px;
    font-size: 17px;
    border-radius: 14px;
    gap: 11px;
  }

  .vp-inline-auth-foot {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .vp-inline-back-link,
  .vp-inline-help-link {
    white-space: nowrap;
  }

  .vp-auth-card {
    padding: 24px 20px;
  }
}

/* ==================== НОВЫЙ ЛИЧНЫЙ КАБИНЕТ /studio (горно-стеклянный макет v3) ==================== */

body.vp-body-studio {
  min-height: 100dvh;
  background: #edf1fb url('/static/brand/studio-bg.webp?v=9') center top / cover no-repeat fixed;
  color: #0f172a;
}

.vp-st-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: clamp(10px, 1.8vh, 22px) clamp(16px, 2.8vw, 34px) clamp(12px, 2vh, 26px);
  display: flex;
  flex-direction: column;
}

/* Прозрачная верхняя шапка */

.vp-st-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vp-st-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #0b1220;
  border-radius: 14px;
  padding: 2px 4px 2px 0;
}

.vp-st-brand:hover {
  color: #0b1220;
  text-decoration: none;
}

.vp-st-brand .vp-brand-mark {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.22));
}

.vp-st-brand:hover .vp-bud-svg .vp-bud-host,
.vp-st-brand:focus-visible .vp-bud-svg .vp-bud-host {
  transform: translateY(8px) rotate(-13deg) scale(1.05);
}

.vp-st-brand:hover .vp-bud-svg .vp-p-top,
.vp-st-brand:focus-visible .vp-bud-svg .vp-p-top {
  transform: rotate(0deg) scale(1.03);
}

.vp-st-brand:hover .vp-bud-svg .vp-p-left,
.vp-st-brand:focus-visible .vp-bud-svg .vp-p-left {
  transform: rotate(26deg) translateY(1px);
}

.vp-st-brand:hover .vp-bud-svg .vp-p-right,
.vp-st-brand:focus-visible .vp-bud-svg .vp-p-right {
  transform: rotate(334deg) translateY(1px);
}

.vp-st-brand:hover .vp-bud-svg .vp-p-core,
.vp-st-brand:focus-visible .vp-bud-svg .vp-p-core {
  transform: scale(1.12);
}

.vp-st-brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.1;
}

.vp-st-brand-main {
  font-family: var(--sans);
  font-size: clamp(1.16rem, 1.45vw, 1.38rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0b1220;
}

.vp-st-brand-dash {
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  color: rgba(124, 99, 246, 0.52);
  font-weight: 500;
}

.vp-st-brand-sub {
  font-size: clamp(1.12rem, 1.38vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #7c63f6;
}

.vp-st-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vp-st-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px 0 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 16px rgba(79, 70, 229, 0.06);
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
}

.vp-st-quota-pill strong {
  font-weight: 700;
  color: #0b1220;
}

.vp-st-quota-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #10b981;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.vp-st-quota-pill.is-soft .vp-st-quota-icon {
  stroke: #6366f1;
}

.vp-st-quota-pill.is-warn {
  background: rgba(254, 249, 235, 0.82);
  border-color: rgba(251, 191, 36, 0.55);
}

.vp-st-quota-pill.is-warn .vp-st-quota-icon {
  stroke: #d97706;
}

.vp-st-quota-pill.is-danger {
  background: rgba(254, 242, 242, 0.86);
  border-color: rgba(248, 113, 113, 0.55);
  color: #991b1b;
}

.vp-st-quota-pill.is-danger strong {
  color: #7f1d1d;
}

.vp-st-quota-pill.is-danger .vp-st-quota-icon {
  stroke: #dc2626;
}

/* Выпадающее меню аккаунта */

.vp-st-account-wrap {
  position: relative;
}

.vp-st-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 4px 12px 4px 5px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background: rgba(255, 255, 255, 0.24);
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 600;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.vp-st-account-btn:hover,
.vp-st-account-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}

.vp-st-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ede9fe 0%, #dbeafe 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
  color: #4338ca;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.vp-st-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #475569;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.vp-st-account-btn[aria-expanded="true"] .vp-st-chevron {
  transform: rotate(180deg);
}

.vp-st-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 248px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.16), 0 4px 14px rgba(15, 23, 42, 0.06);
  animation: vpCardReveal 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vp-st-account-head {
  padding: 10px 12px 11px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 6px;
}

.vp-st-account-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0b1220;
  line-height: 1.25;
  word-break: break-word;
}

.vp-st-account-sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: #64748b;
  word-break: break-all;
}

.vp-st-worker-line {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.vp-st-worker-line.is-online {
  background: rgba(209, 250, 229, 0.8);
  color: #047857;
}

.vp-st-worker-line.is-offline {
  background: rgba(254, 243, 199, 0.9);
  color: #b45309;
}

.vp-st-worker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.vp-st-menu-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vp-st-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.8px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.vp-st-menu-item .vp-icon {
  width: 17px;
  height: 17px;
  color: #64748b;
}

.vp-st-menu-item:hover {
  background: rgba(237, 233, 254, 0.65);
  color: #0b1220;
  text-decoration: none;
}

.vp-st-menu-item:hover .vp-icon {
  color: #5b21b6;
}

.vp-st-menu-item.is-danger {
  color: #b91c1c;
}

.vp-st-menu-item.is-danger .vp-icon {
  color: #dc2626;
}

.vp-st-menu-item.is-danger:hover {
  background: rgba(254, 226, 226, 0.72);
  color: #991b1b;
}

.vp-st-menu-sep {
  height: 1px;
  margin: 6px 8px;
  background: rgba(148, 163, 184, 0.2);
}

/* Основная секция и заголовок «Мои файлы» */

.vp-st-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.vp-st-page-title {
  margin: clamp(8px, 1.5vh, 20px) 0 clamp(8px, 1.3vh, 16px);
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.25vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #0b1220;
}

/* Главная единая стеклянная карточка */

.vp-st-card {
  position: relative;
  background: rgba(255, 255, 255, 0.79);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  box-shadow: 0 24px 64px rgba(79, 70, 229, 0.11), 0 4px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.vp-st-card.is-dragover {
  border-color: rgba(124, 58, 237, 0.72);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14), 0 24px 64px rgba(79, 70, 229, 0.18);
}

.vp-st-drag-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(245, 243, 255, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.vp-st-card.is-dragover .vp-st-drag-overlay {
  opacity: 1;
}

.vp-st-drag-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 44px;
  border-radius: 22px;
  border: 2px dashed rgba(124, 58, 237, 0.65);
  background: rgba(255, 255, 255, 0.86);
  color: #4c1d95;
  font-size: 17px;
  font-weight: 700;
}

.vp-st-drag-overlay-box svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #7c3aed;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Верхняя панель загрузки */

.vp-st-upload-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.6vw, 22px);
  padding: clamp(10px, 1.5vh, 16px) clamp(16px, 2vw, 26px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.vp-st-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  min-width: 0;
  flex: 1 1 auto;
  padding: 4px 6px 4px 2px;
  border-radius: 14px;
  transition: background-color 0.15s ease;
}

.vp-st-drop-trigger:hover {
  background: rgba(237, 233, 254, 0.36);
}

.vp-st-cloud-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #7c5cf6;
}

.vp-st-cloud-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-st-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vp-st-drop-title {
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0b1220;
  line-height: 1.2;
}

.vp-st-drop-sub {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.25;
}

.vp-st-mode-area {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.vp-st-mode-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 3px;
  border-radius: var(--radius-pill);
  background: rgba(233, 236, 251, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.45);
}

.vp-st-mode-btn {
  border: none;
  background: transparent;
  color: #1e293b;
  font-size: 13.8px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.vp-st-mode-btn:hover:not(.is-active) {
  color: #0b1220;
  background: rgba(255, 255, 255, 0.58);
}

.vp-st-mode-btn.is-active {
  background: linear-gradient(90deg, #9352f8 0%, #635bf7 55%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(99, 91, 247, 0.3);
}

.vp-st-preview-start {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(167, 139, 250, 0.45);
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.vp-st-start-input {
  width: 56px;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0b1220;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.vp-st-start-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2.5px rgba(99, 102, 241, 0.16);
}

.vp-st-vdiv {
  width: 1px;
  height: 34px;
  background: rgba(148, 163, 184, 0.24);
  flex: none;
}

/* Главная градиентная кнопка-пилюля */

.vp-st-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: clamp(38px, 5.2vh, 44px);
  padding: 0 clamp(18px, 1.9vw, 26px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(90deg, #a855f7 0%, #6d5dfc 50%, #2196f3 100%);
  color: #ffffff;
  font-size: clamp(13.5px, 1.05vw, 15px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px rgba(109, 93, 252, 0.3), 0 3px 10px rgba(33, 150, 243, 0.2);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.16s ease;
}

.vp-st-primary-btn:hover:not(:disabled) {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 14px 28px rgba(109, 93, 252, 0.38), 0 5px 14px rgba(33, 150, 243, 0.26);
}

.vp-st-primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.vp-st-primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vp-st-primary-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Вторичная светло-лавандовая кнопка-пилюля (Скачать аудио) */

.vp-st-soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: clamp(38px, 5.2vh, 44px);
  padding: 0 clamp(16px, 1.7vw, 24px);
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(139, 92, 246, 0.32);
  background: rgba(238, 234, 255, 0.78);
  color: #5b21b6;
  font-size: clamp(13.5px, 1.05vw, 15px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.vp-st-soft-btn:hover:not(:disabled) {
  background: rgba(233, 226, 255, 0.96);
  border-color: rgba(124, 58, 237, 0.52);
  color: #4c1d95;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.14);
}

.vp-st-soft-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Системное предупреждение (показывается только при проблеме) */

.vp-st-system-alert {
  padding: 10px clamp(18px, 2.2vw, 28px);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.vp-st-system-alert.is-warn {
  background: rgba(254, 243, 199, 0.72);
  color: #92400e;
}

.vp-st-system-alert.is-danger {
  background: rgba(254, 226, 226, 0.76);
  color: #991b1b;
}

/* Двухколоночная рабочая область: Очередь + Детали */

.vp-st-workspace {
  display: grid;
  grid-template-columns: clamp(256px, 25vw, 316px) minmax(0, 1fr);
  min-height: 0;
}

/* Левая колонка: Очередь */

.vp-st-queue-col {
  padding: clamp(14px, 1.9vh, 20px) 14px clamp(14px, 1.9vh, 18px) clamp(16px, 1.8vw, 22px);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.1vh, 12px);
  min-width: 0;
}

.vp-st-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.vp-st-section-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
  line-height: 1.2;
}

.vp-st-queue-count {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(226, 232, 240, 0.65);
}

.vp-st-queue-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 2px;
}

.vp-st-filter-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.vp-st-filter-chip {
  border: 1px solid rgba(203, 213, 225, 0.65);
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  transition: all 0.14s ease;
}

.vp-st-filter-chip:hover {
  background: #ffffff;
  color: #0b1220;
}

.vp-st-filter-chip.is-active {
  background: linear-gradient(90deg, #8b5cf6 0%, #5b5ef7 100%);
  border-color: transparent;
  color: #ffffff;
}

.vp-st-batch-select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: rgba(255, 255, 255, 0.86);
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 500;
}

.vp-st-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.vp-st-queue-skeleton,
.vp-st-detail-placeholder {
  padding: 28px 14px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* Карточка элемента очереди */

.vp-q-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: clamp(8px, 1.1vh, 10px) 11px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  outline: none;
}

.vp-q-item + .vp-q-item::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: rgba(148, 163, 184, 0.14);
  pointer-events: none;
}

.vp-q-item.is-selected + .vp-q-item::after,
.vp-q-item.is-selected::after {
  display: none;
}

.vp-q-item:hover {
  background: rgba(237, 233, 254, 0.4);
}

.vp-q-item:focus-visible {
  box-shadow: 0 0 0 2.5px rgba(99, 102, 241, 0.45);
}

.vp-q-item.is-selected {
  background: rgba(234, 228, 255, 0.66);
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: 0 4px 16px rgba(109, 93, 252, 0.08);
}

.vp-q-item.is-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #9352f8 0%, #5b5ef7 100%);
}

/* Миниатюра видео в очереди */

.vp-q-thumb-video {
  position: relative;
  width: 76px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  flex: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

.vp-q-thumb-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-q-thumb-video.is-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
  color: #4f46e5;
}

.vp-q-thumb-video.is-fallback svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-q-thumb-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 5px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.vp-q-thumb-overlay svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Иконка аудио в очереди — единые габариты 76×50 с видео-превью для ровной вертикали */

.vp-q-thumb-audio {
  position: relative;
  width: 76px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2fa 0%, #e4eaf6 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.vp-q-thumb-audio.has-duration {
  padding-bottom: 14px;
}

.vp-q-thumb-audio.is-accent {
  background: linear-gradient(135deg, #f0ecff 0%, #e4dcff 100%);
  border-color: rgba(139, 92, 246, 0.22);
  color: #7c5cf6;
  box-shadow: 0 3px 10px rgba(109, 93, 252, 0.1);
}

.vp-q-thumb-audio > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-q-thumb-overlay.is-audio {
  justify-content: flex-end;
  padding: 2px 6px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.12) 100%);
  color: #334155;
}

.vp-q-thumb-audio.is-accent .vp-q-thumb-overlay.is-audio {
  background: linear-gradient(180deg, rgba(91, 94, 247, 0.03) 0%, rgba(91, 94, 247, 0.16) 100%);
  color: #4338ca;
}

.vp-q-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vp-q-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0b1220;
  line-height: 1.24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-q-meta {
  font-size: 12.5px;
  color: #475569;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.vp-q-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.vp-q-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
}

.vp-q-status svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.vp-q-status.is-done {
  color: #059669;
}

.vp-q-status.is-active {
  color: #6d4aff;
}

.vp-q-status.is-queued {
  color: #475569;
  font-weight: 500;
}

.vp-q-status.is-error {
  color: #dc2626;
}

.vp-q-status.is-muted {
  color: #64748b;
  font-weight: 500;
}

.vp-q-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.vp-q-track {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(199, 210, 254, 0.56);
  overflow: hidden;
}

.vp-q-fill {
  position: relative;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #9352f8 0%, #635bf7 58%, #3b82f6 100%);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.vp-q-fill.is-live::after,
.vp-det-progress-fill.is-live::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: vp-progress-shimmer 1.75s ease-in-out infinite;
}

@keyframes vp-progress-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vp-q-fill.is-live::after,
  .vp-det-progress-fill.is-live::after {
    animation: none;
    display: none;
  }
}

.vp-q-fill.is-error {
  background: #dc2626;
}

.vp-q-cancel-link {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #5b48e8;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex: none;
}

.vp-q-cancel-link:hover {
  color: #3b28c4;
}

.vp-q-icon-x {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.vp-q-icon-x:hover {
  background: rgba(226, 232, 240, 0.8);
  color: #0f172a;
}

.vp-q-icon-x svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Правая колонка: детали выбранного файла */

.vp-st-detail-col {
  padding: clamp(14px, 2vh, 22px) clamp(18px, 2.1vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(10px, 1.6vh, 16px);
  min-width: 0;
}

.vp-det-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vp-det-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.vp-det-title {
  font-family: var(--sans);
  font-size: clamp(1.18rem, 1.48vw, 1.38rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
  line-height: 1.2;
  word-break: break-word;
}

.vp-det-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.vp-det-status-pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-det-status-pill.is-done {
  background: rgba(213, 246, 232, 0.92);
  color: #047857;
}

.vp-det-status-pill.is-active {
  background: rgba(235, 229, 255, 0.92);
  color: #5b21b6;
}

.vp-det-status-pill.is-queued {
  background: rgba(226, 232, 240, 0.78);
  color: #334155;
}

.vp-det-status-pill.is-error {
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
}

.vp-det-meta-chip {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

/* Медиа-секция (видео + карточка «Сравните звучание») */

.vp-det-media {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(12px, 1.5vw, 18px);
  align-items: stretch;
}

.vp-det-media.is-audio-only {
  grid-template-columns: minmax(0, 1fr);
}

.vp-det-video {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13);
}

.vp-det-video-el,
.vp-det-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vp-det-video-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 500;
}

.vp-det-video-fallback svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.vp-det-video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.74) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  pointer-events: none;
}

.vp-det-video-caption svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Внутренняя белая карточка «Сравните звучание» */

.vp-det-compare {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: clamp(11px, 1.6vh, 15px) clamp(14px, 1.5vw, 18px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.08), 0 2px 8px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(7px, 1.1vh, 10px);
  min-width: 0;
  overflow: hidden;
}

.vp-det-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vp-det-compare-title {
  font-size: clamp(13.5px, 1.05vw, 15px);
  font-weight: 700;
  color: #0b1220;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.vp-det-compare-range {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.vp-st-ab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: #eeeffa;
  border: 1px solid rgba(203, 213, 225, 0.42);
}

.vp-st-ab-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: clamp(5px, 0.8vh, 8px) 12px;
  font-size: clamp(13px, 0.95vw, 14px);
  font-weight: 600;
  background: transparent;
  color: #1e293b;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.vp-st-ab-btn:hover:not(.is-active) {
  color: #0b1220;
  background: rgba(255, 255, 255, 0.55);
}

.vp-st-ab-btn.is-active {
  background: linear-gradient(90deg, #9352f8 0%, #5b5ef7 56%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(91, 94, 247, 0.3);
}

/* Интерактивная звуковая волна в кабинете */

.vp-st-wave-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(46px, 7.2vh, 62px);
  padding: 4px 2px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.vp-st-wave-bars {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5px;
  overflow: hidden;
}

.vp-st-wave-bar {
  flex: 1 1 0;
  min-width: 1px;
  max-width: 4.5px;
  height: 10%;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #9d7af8 0%, #6366f1 100%);
  opacity: 0.62;
  transition: height 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.14s ease, filter 0.2s ease;
}

.vp-st-wave-bar.is-played {
  opacity: 1;
}

.vp-det-compare[data-side="before"] .vp-st-wave-bar {
  background: linear-gradient(180deg, #a78bfa 0%, #818cf8 100%);
  filter: saturate(0.55);
}

.vp-det-compare[data-side="before"] .vp-st-wave-bar.is-played {
  filter: saturate(0.75);
}

.vp-st-wave-playhead {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.42);
  pointer-events: none;
  transform: translateX(-1px);
  z-index: 3;
}

.vp-st-wave-playhead::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4f46e5;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 2px 6px rgba(79, 70, 229, 0.45);
}

.vp-st-player-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vp-st-player-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.vp-st-play-btn {
  width: clamp(34px, 4.6vh, 38px);
  height: clamp(34px, 4.6vh, 38px);
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #9352f8 0%, #4f46e5 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 7px 18px rgba(99, 102, 241, 0.34);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.15s ease;
}

.vp-st-play-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.vp-st-play-btn svg {
  width: 18px;
  height: 18px;
}

.vp-st-play-btn .vp-icon-pause {
  display: none;
}

.vp-st-play-btn.is-playing .vp-icon-play {
  display: none;
}

.vp-st-play-btn.is-playing .vp-icon-pause {
  display: block;
}

.vp-st-time {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vp-st-player-error {
  font-size: 12px;
  color: #b91c1c;
  line-height: 1.3;
}

.vp-st-player-error:empty {
  display: none;
}

/* Нижняя панель действий правой колонки */

.vp-det-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
}

.vp-det-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vp-det-dl-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vp-det-del-group {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.vp-det-del-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vp-det-del-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-det-del-btn:hover {
  background: rgba(254, 226, 226, 0.72);
  color: #b91c1c;
}

.vp-det-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #475569;
}

.vp-det-retention {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vp-det-retention svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #64748b;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.vp-det-text-action {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #5b48e8;
  cursor: pointer;
  transition: color 0.14s ease;
}

.vp-det-text-action:hover {
  color: #3b28c4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Карточки состояний в правой колонке (в работе, в очереди, загрузка, ошибка) */

.vp-det-state-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 24px 24px;
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vp-det-state-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.vp-det-state-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  position: relative;
}

.vp-det-state-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-det-state-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.vp-det-state-heading {
  font-size: 16px;
  font-weight: 700;
  color: #0b1220;
}

.vp-det-state-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.vp-det-progress-bar {
  width: 100%;
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(199, 210, 254, 0.56);
  overflow: hidden;
}

.vp-det-progress-fill {
  position: relative;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #9352f8 0%, #635bf7 52%, #2196f3 100%);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.vp-det-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  font-variant-numeric: tabular-nums;
}

/* Пустое состояние первого входа */

.vp-st-empty-state {
  padding: clamp(22px, 5vh, 60px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.5vh, 14px);
}

.vp-st-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(237, 233, 254, 0.95), rgba(219, 234, 254, 0.92));
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(109, 93, 252, 0.14);
  color: #6d4aff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vp-st-empty-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-st-empty-title {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.vp-st-empty-desc {
  max-width: 520px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 4px;
}

/* Подвал карточки */

.vp-st-card-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: clamp(9px, 1.3vh, 13px) 24px;
  text-align: center;
  font-size: clamp(12.5px, 0.95vw, 13.5px);
  font-weight: 500;
  color: #475569;
}

/* Модалка в стиле кабинета */

body.vp-body-studio .vp-modal-backdrop {
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(6px);
}

body.vp-body-studio .vp-modal {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(79, 70, 229, 0.18), 0 4px 16px rgba(15, 23, 42, 0.08);
}

body.vp-body-studio .vp-modal-title {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1220;
}

/* Одноэкранный десктопный режим кабинета (без пролистывания страницы, скроллится только длинная очередь) */

@media (min-width: 960px) and (min-height: 540px) {
  html:has(body.vp-body-studio),
  body.vp-body-studio {
    height: 100dvh;
    overflow: hidden;
  }

  .vp-st-shell {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .vp-st-header,
  .vp-st-page-title {
    flex: none;
  }

  .vp-st-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .vp-st-upload-bar,
  .vp-st-system-alert,
  .vp-st-card-footer {
    flex: none;
  }

  .vp-st-workspace {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }

  .vp-st-queue-col {
    min-height: 0;
    overflow: hidden;
  }

  .vp-st-queue-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .vp-st-detail-col {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
  }

  .vp-det-head-left {
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
  }

  .vp-det-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .vp-st-empty-state {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: center;
  }
}

/* Компактная подстройка кабинета на невысоких/узких десктопных окнах (1024×600..1280×650) */

@media (min-width: 960px) and (max-width: 1120px) {
  .vp-st-upload-bar {
    gap: 12px;
    padding-inline: 16px;
  }

  .vp-st-drop-trigger {
    gap: 10px;
  }

  .vp-st-cloud-icon {
    width: 34px;
    height: 34px;
  }

  .vp-st-cloud-icon svg {
    width: 30px;
    height: 30px;
  }

  .vp-st-drop-title {
    font-size: 14.5px;
  }

  .vp-st-drop-sub {
    font-size: 12.2px;
  }

  .vp-st-mode-btn {
    padding: 7px 13px;
    font-size: 13px;
  }

  .vp-st-vdiv {
    display: none;
  }
}

@media (min-width: 960px) and (max-height: 685px) {
  .vp-st-brand .vp-brand-mark {
    width: 34px;
    height: 34px;
  }

  .vp-st-quota-pill,
  .vp-st-account-btn {
    height: 36px;
    font-size: 13px;
  }

  .vp-st-avatar {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .vp-st-page-title {
    margin: 7px 0 7px;
    font-size: 1.45rem;
  }

  .vp-st-card {
    border-radius: 22px;
  }

  .vp-st-mode-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .vp-st-section-title {
    font-size: 16.5px;
  }

  .vp-q-thumb-video,
  .vp-q-thumb-audio {
    width: 68px;
    height: 44px;
  }

  .vp-q-thumb-audio.has-duration {
    padding-bottom: 13px;
  }

  .vp-det-title {
    font-size: 1.12rem;
  }

  .vp-det-status-pill {
    padding: 4px 10px;
    font-size: 12px;
  }

  .vp-det-del-btn {
    padding: 7px 11px;
    font-size: 13.5px;
  }

  .vp-det-foot {
    font-size: 12px;
  }
}

/* Адаптивность кабинета для планшетов и мобильных */

@media (max-width: 959px) {
  .vp-st-upload-bar {
    flex-wrap: wrap;
    gap: 14px;
  }

  .vp-st-vdiv {
    display: none;
  }

  .vp-st-workspace {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .vp-det-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .vp-det-video {
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 270px;
  }
}

@media (max-width: 820px) {
  .vp-st-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .vp-st-queue-col {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 18px 16px;
  }

  .vp-st-queue-list {
    max-height: 290px;
    padding-bottom: 4px;
  }

  .vp-st-detail-col {
    padding: 18px;
  }

  .vp-det-state-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .vp-st-shell {
    padding: 14px 12px 24px;
  }

  .vp-st-header {
    gap: 10px;
  }

  .vp-st-brand .vp-brand-mark {
    width: 34px;
    height: 34px;
  }

  .vp-st-brand-main,
  .vp-st-brand-sub {
    font-size: 1.05rem;
  }

  .vp-st-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .vp-st-quota-pill {
    height: 38px;
    padding: 0 13px 0 10px;
    font-size: 12.8px;
  }

  .vp-st-account-label {
    display: none;
  }

  .vp-st-account-btn {
    padding: 3px 8px 3px 4px;
    gap: 5px;
  }

  .vp-st-page-title {
    margin: 14px 0 12px;
    font-size: 1.65rem;
  }

  .vp-st-card {
    border-radius: 22px;
  }

  .vp-st-upload-bar {
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
  }

  .vp-st-mode-area {
    flex-direction: column;
    align-items: stretch;
  }

  .vp-st-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vp-st-mode-btn {
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
  }

  .vp-st-primary-btn,
  .vp-st-soft-btn {
    width: 100%;
    height: 44px;
    font-size: 14.5px;
  }

  .vp-det-dl-group {
    width: 100%;
  }

  .vp-det-del-group {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .vp-det-del-group .vp-st-vdiv {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
