:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #121214;
  color: #fff;
  --cv-teal: #5bff3a;
  --cv-green: #5bff3a;
  --cv-pink: #ff8ab8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    repeating-radial-gradient(circle at 48% 12%, rgba(255,255,255,0.035) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 28px),
    #121214;
}

.dashboard.cv-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.cv-masthead {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  padding: 8px 0 18px;
}

.cv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.cv-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.cv-brand strong {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cv-brand span { color: #5bff3a; }

.cv-now {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
}
.cv-now span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f8ca8;
}
.cv-now select {
  width: min(420px, 100%);
  max-width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: #16141f;
  color: #fff;
  padding: 10px 12px;
}

.cv-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.cv-nav-link {
  border: 0;
  background: transparent;
  color: #d8d6ea;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 8px;
}
.cv-nav-link.active,
.cv-nav-link:hover {
  color: #5bff3a;
  background: rgba(126, 231, 220, 0.08);
}
.cv-icon-btn { min-width: 36px; }

.cv-intro {
  margin: 0 0 22px;
}
.cv-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cv-intro p { margin: 0 0 12px; color: #b7b5ce; max-width: 720px; }
.cv-intro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--cv-teal);
  background: rgba(62, 230, 212, 0.08);
  color: var(--cv-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.cv-chip-alt {
  border-color: #7b5cff;
  color: #cbb8ff;
  background: rgba(123, 92, 255, 0.12);
}
.cv-chip-gamebanana {
  border-color: #e6c200;
  color: #111;
  background: linear-gradient(180deg, #ffe44d, #f0c400);
  box-shadow: 0 0 12px rgba(240, 196, 0, 0.28);
}
.cv-chip-gamebanana:hover {
  background: linear-gradient(180deg, #fff06a, #f5cc14);
}
.cv-intro.is-compact h1 { font-size: 18px; }
.cv-intro.is-compact .cv-intro-actions { display: none; }

.cv-guide {
  margin: 0 0 28px;
  max-width: 720px;
  color: #c8c6dc;
  font-size: 15px;
  line-height: 1.55;
}
.cv-guide h2,
.cv-guide h3 {
  color: #fff;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cv-guide h2 { margin: 0 0 12px; font-size: 18px; }
.cv-guide h3 { margin: 20px 0 8px; font-size: 13px; }
.cv-guide p { margin: 0 0 12px; }
.cv-guide ol { margin: 0 0 12px; padding-left: 1.2em; }
.cv-guide li { margin: 0 0 8px; }
.cv-guide a { color: #7ee7dc; }
body.has-pack .cv-guide { display: none; }

.cv-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: start;
}

.cv-monitor {
  position: relative;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #5a5a60 0%, #2c2c32 18%, #1a1a1e 70%, #101014 100%);
  padding: 18px 16px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -8px 18px rgba(0,0,0,0.45),
    0 28px 60px rgba(0,0,0,0.55);
}
.cv-screw {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c8c8ce, #5a5a60 55%, #2a2a2e);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 1px 2px #000;
}
.cv-screw-tl { top: 10px; left: 12px; }
.cv-screw-tr { top: 10px; right: 12px; }
.cv-screw-bl { bottom: 10px; left: 12px; }
.cv-screw-br { bottom: 10px; right: 12px; }
.cv-monitor-name {
  margin: 0 0 8px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b7b6c0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}
.cv-bezel .video-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 8px;
  border-radius: 8px;
  background: #050508;
  border: 1px solid #000;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.85);
  overflow: hidden;
}
.cv-monitor-bay {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: center;
}
.monitor-disc-slot {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 3px;
  background: #030305;
  border: 1px solid rgba(0,0,0,0.85);
  box-shadow:
    inset 0 5px 8px rgba(0,0,0,0.85),
    0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  perspective: 160px;
  pointer-events: none;
}
.monitor-disc-door {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 6px;
  display: block;
  transform-origin: top center;
  background: linear-gradient(180deg, #7a7a84, #1c1c22);
  transition: transform 0.28s ease;
  z-index: 2;
}
.monitor-disc-edge {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 5px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #9ad4ff, #e8c4ff, #9dffc8, #9ad4ff);
  box-shadow: 0 0 8px rgba(154, 212, 255, 0.4);
}
.cv-monitor.is-sucking .monitor-disc-door {
  transform: rotateX(-78deg);
}
.cv-monitor.is-loaded .monitor-disc-slot,
.cv-monitor.is-sucking .monitor-disc-slot {
  box-shadow:
    inset 0 5px 8px rgba(0,0,0,0.85),
    0 0 10px rgba(91,255,58,0.22);
}
.scene-ogv-host {
  position: absolute;
  z-index: 2;
  overflow: hidden;
}
.scene-ogv-host[hidden] { display: none !important; }
.cv-bezel .empty-frame {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(80,255,210,0.04) 0 1px, transparent 1px 4px),
    #07060c;
}
.empty-idle, .empty-scene {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.empty-idle small {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5bff3a;
  font-weight: 800;
}
.cv-import {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  cursor: pointer;
}
.cv-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 3;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 10px #000;
}
.cv-caption span,
.cv-char-chip {
  display: inline-block;
  color: #081108;
  background: var(--cv-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}
.cv-caption p {
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
}
.cv-cue {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px #000;
}
body.has-pack .cv-cue { display: flex; }
.cv-cue i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b4a;
  box-shadow: 0 0 8px #ff3b4a;
}
body:not(.has-pack) .cv-caption { display: none; }

.cv-monitor-meta {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 6px 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a98a8;
}
.cv-progress {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.cv-progress b { display: block; height: 100%; width: 0; background: #ff9a3a; box-shadow: 0 0 8px #ff9a3a; }
.cv-lamp { color: #ff7a1a; }
.cv-lamp.is-rec { color: #ff3b4a; }

.cv-wave {
  margin-top: 12px;
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: #0b0b10;
  border: 1px solid rgba(62, 230, 212, 0.45);
  box-shadow: 0 0 24px rgba(62, 230, 212, 0.08);
}
.cv-wave-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cv-wave-head strong {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cv-teal);
}
.cv-wave-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cv-wave-legend .is-ref { color: var(--cv-pink); }
.cv-wave-legend .is-take { color: var(--cv-teal); }
.cv-wave .hero-waveform {
  position: relative;
  height: 88px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 0 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 100% 14px;
}
.cv-wave .hero-waveform i {
  flex: 1;
  min-width: 3px;
  border-radius: 2px 2px 0 0;
  background: #ff7ab8;
  height: 18px;
}
.cv-wave-ref, .cv-wave-take {
  position: absolute;
  left: 8px;
  height: 6px;
  border-radius: 99px;
  pointer-events: none;
}
.cv-wave-ref { bottom: 22px; width: 100%; background: rgba(255,122,184,0.45); }
.cv-wave-take { bottom: 12px; width: 0; background: #5bff3a; }
#wavePlayhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  z-index: 3;
  pointer-events: none;
}
#wavePlayhead.is-live {
  width: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.95), 0 0 22px rgba(255,255,255,0.35);
}
#wavePlayhead.is-live.is-speaking {
  background: #5bff3a;
  box-shadow: 0 0 14px rgba(91, 255, 58, 0.95), 0 0 28px rgba(91, 255, 58, 0.45);
}
#waveStage.is-live {
  box-shadow: inset 0 0 0 1px rgba(91, 255, 58, 0.28);
}
.cv-wave-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: #8f8ca8;
}
.cv-timing-hint, .cv-wave .timing-labels { display: none; }
body.has-pack .cv-timing-hint { display: block; }
body.has-pack .cv-wave .timing-labels { display: flex; }

.cv-board {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #2a2a30, #16161a);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.cv-clip {
  text-align: center;
  padding: 8px 0 12px;
}
.cv-clip span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f8ca8;
}
.cv-clip p {
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
  color: #5bff3a;
  font-size: 28px;
  font-weight: 900;
}
.cv-clip em { color: #5a5868; font-style: normal; margin: 0 4px; }
.cv-clip b { color: #fff; font-weight: 800; }

.cv-key {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, #3a3a42, #222228);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
.cv-key:disabled { opacity: 0.38; cursor: not-allowed; }
.cv-key-rec { box-shadow: inset 0 0 0 1px rgba(255,59,74,0.35), 0 0 16px rgba(255,59,74,0.18); }
.cv-key-watch { background: linear-gradient(180deg, #3d3a20, #241f10); }
.cv-board #previewBtn { display: none; }
.cv-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cv-pref-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.22);
  cursor: pointer;
}
.cv-pref-toggle input {
  appearance: none;
  width: 42px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #2a2a32;
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cv-pref-toggle input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c9c7d4;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cv-pref-toggle input:checked {
  background: #1a6b3a;
  border-color: rgba(91,255,58,0.55);
}
.cv-pref-toggle input:checked::after {
  transform: translateX(18px);
  background: #5bff3a;
}
.cv-pref-toggle span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cv-pref-toggle strong {
  color: #f4f3f8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.cv-pref-toggle small {
  color: #8f8ca8;
  font-size: 11px;
  line-height: 1.35;
}
.cv-key-mic-settings {
  background: linear-gradient(180deg, #1e2a1e, #111814);
  border-color: rgba(91,255,58,0.25);
  color: #9af079;
  font-size: 12px;
}
.cv-key-mic-settings:hover { border-color: rgba(91,255,58,0.5); color: #5bff3a; }
.mic-settings-panel {
  background: rgba(10,18,10,0.96);
  border: 1px solid rgba(91,255,58,0.25);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.mic-settings-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5bff3a;
  margin: 0;
}
.mic-settings-label {
  font-size: 11px;
  color: #8f8ca8;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mic-settings-select {
  background: #111813;
  border: 1px solid rgba(91,255,58,0.3);
  border-radius: 8px;
  color: #e4f4e0;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}
.mic-settings-select:focus { outline: 2px solid rgba(91,255,58,0.5); }
.mic-settings-hint {
  font-size: 11px;
  color: #6a6882;
  margin: 0;
  line-height: 1.4;
}
.mic-volume-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.mic-volume-slider {
  width: 100%;
  accent-color: #5bff3a;
  cursor: pointer;
}
#micVolumeValue {
  min-width: 3.2em;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: #9af079;
  font-variant-numeric: tabular-nums;
}
.cv-meter {
  display: none !important;
}

.cv-packs {
  margin-top: 28px;
}
.cv-extras { display: none; }
.cv-sr { display: none !important; }
.cv-floor.is-hidden { display: none; }
.cv-pages { padding: 8px 0 0; min-width: 0; }
.shop-cart { display: block; }

@media (max-width: 980px) {
  .cv-masthead { grid-template-columns: 1fr; }
  .cv-nav { justify-content: flex-start; }
  .cv-desk { grid-template-columns: 1fr; }
  .cv-extras { grid-template-columns: 1fr; }
}

button, label, input, a { font: inherit; }
button, label, a { border: 0; text-decoration: none; }

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 370px;
  gap: 28px;
}

.dashboard.final-mode {
  grid-template-columns: 292px minmax(0, 1fr);
}

.dashboard.final-mode .right-rail {
  display: none;
}

.sidebar {
  min-height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid rgba(245, 46, 131, 0.16);
  background: rgba(11, 10, 27, 0.78);
  display: flex;
  flex-direction: column;
}

.side-logo {
  display: grid;
  justify-items: center;
  margin-bottom: 28px;
}

.side-logo img {
  width: min(180px, 100%);
  height: auto;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-nav button,
.howto-link,
.gamebanana-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 0 18px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.side-nav button.active,
.howto-link:hover,
.gamebanana-link:hover {
  background: linear-gradient(90deg, rgba(245, 46, 131, 0.64), rgba(245, 46, 131, 0.28));
  box-shadow: inset 0 0 0 1px rgba(245, 46, 131, 0.28);
}

.gamebanana-link {
  color: #ffd21e;
  border: 1px solid rgba(255, 210, 30, 0.18);
}

.side-cart {
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(10, 8, 28, 0.72);
  border: 1px solid rgba(245, 46, 131, 0.16);
}

.side-cart.has-items {
  border-color: rgba(91, 255, 58, 0.28);
  box-shadow: 0 0 0 1px rgba(91, 255, 58, 0.08);
}

.side-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 800;
  color: #fff;
}

.side-cart-head strong {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(91, 255, 58, 0.16);
  color: #5bff3a;
  font-size: 12px;
}

.side-cart-empty {
  margin: 0;
  color: #8f8ca8;
  font-size: 13px;
  line-height: 1.45;
}

.side-cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.side-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 10px 10px 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.side-cart-item-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.side-cart-item-meta strong {
  font-size: 13px;
  color: #fff;
}

.side-cart-item-meta span,
.side-cart-item b {
  font-size: 12px;
  color: #b7b5ce;
  font-weight: 600;
}

.side-cart-item b {
  grid-column: 1 / -1;
  color: #ffd21e;
}

.side-cart-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(245, 46, 131, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.side-cart-footer {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.side-cart-footer.is-hidden {
  display: none;
}

.side-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #b7b5ce;
}

.side-cart-total strong {
  color: #fff;
  font-size: 14px;
}

.stripe-checkout-btn {
  border: 0;
  border-radius: 10px;
  background: #635bff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 24px rgba(99, 91, 255, 0.28);
}

.stripe-checkout-btn:hover {
  background: #5851ea;
}

.stripe-checkout-btn:active {
  transform: translateY(1px);
}

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

.cart-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-currency-label {
  font-size: 12px;
  color: #8f8ca8;
}

.cart-currency-btn {
  border: 1px solid #3a3852;
  border-radius: 999px;
  background: transparent;
  color: #d8d6ea;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.cart-currency-btn.is-active {
  border-color: #635bff;
  background: rgba(99, 91, 255, 0.18);
  color: #fff;
}

.side-cart-clear {
  border: 0;
  background: transparent;
  color: #8f8ca8;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  justify-self: start;
  padding: 0;
}

.credit-card-action {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  color: #5bff3a;
  font-weight: 700;
}

.shop-cart {
  display: none;
  margin: 0 0 18px;
}

.nav-cart-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #5bff3a;
  color: #081108;
  font-size: 10px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

.side-nav button {
  position: relative;
}

.pro-card {
  margin-top: auto;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(245, 46, 131, 0.14), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(245, 46, 131, 0.2);
}

.pro-card span { color: #ff7a1a; font-weight: 950; }
.pro-card p, .topbar p, .pack-card p, .info-card p, .tips-card p, .sequence-card p {
  color: #b7b5ce;
  line-height: 1.45;
}

.content {
  padding: 70px 0 32px;
  min-width: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 34px;
}
body.needs-auth .dashboard {
  pointer-events: auto;
  user-select: auto;
}
.topbar h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-self: end;
  justify-content: flex-end;
}

.search-box {
  width: 240px;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(16, 13, 38, 0.88);
  border: 1px solid rgba(245, 46, 131, 0.2);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.ghost {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.tab-view { display: none; }
.tab-view.active { display: block; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 { margin: 0; }
.text-link {
  color: #f52e83;
  font-weight: 950;
  cursor: pointer;
}

.pack-rail {
  position: relative;
}

.pack-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 8px 10px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.pack-grid.has-no-pack {
  display: none;
}

.pack-rail-next {
  position: absolute;
  right: -6px;
  top: 58px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(18, 12, 36, 0.92);
  color: #fff;
  border: 1px solid rgba(245, 46, 131, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.pack-card {
  position: relative;
  flex: 0 0 228px;
  padding: 12px;
  scroll-snap-align: start;
}

.pack-delete {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 6, 20, 0.82);
  color: #ffb4c8;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.pack-delete:hover,
.pack-delete:focus-visible {
  background: rgba(120, 20, 48, 0.92);
  border-color: rgba(245, 46, 131, 0.55);
  color: #fff;
}

.pack-preview img,
.pack-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #35184f, #12081f);
}

.pack-preview.is-empty {
  color: #f52e83;
  font-size: 28px;
}

.pack-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.pack-card p {
  margin: 0;
  font-size: 12px;
}

.pack-card .primary {
  min-height: 40px;
  border-radius: 12px;
}

.pack-card.tone-orange .primary {
  background: linear-gradient(90deg, #db4b10, #ff7a1a);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.28);
}

.pack-card.tone-violet .primary {
  background: linear-gradient(90deg, #6d28d9, #a855f7);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
}

.pack-card.cd-pack {
  flex: 0 0 168px;
  padding: 10px 8px 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(22, 20, 32, 0.55), rgba(10, 10, 16, 0.2));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.pack-card.cd-pack.active {
  border-color: rgba(91,255,58,0.45);
  box-shadow: 0 0 22px rgba(91,255,58,0.12);
}
.pack-card.cd-pack h3 {
  font-size: 13px;
  margin-top: 8px;
}
.pack-card.cd-pack .pack-delete {
  top: 6px;
  right: 6px;
}
.cd-disc {
  position: relative;
  width: 142px;
  height: 142px;
  margin: 6px auto 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14) 0 1px, transparent 1px 6px),
    conic-gradient(from 210deg, #d7e4f5, #7ecbff, #e4b8ff, #9dffc8, #ffe08a, #d7e4f5);
  box-shadow:
    0 0 0 2px rgba(18,18,24,0.92),
    0 10px 22px rgba(0,0,0,0.42),
    inset 0 0 18px rgba(255,255,255,0.28);
}
.cd-disc-art {
  position: absolute;
  inset: 23%;
  border-radius: 50%;
  overflow: hidden;
  background: #14141c;
  display: grid;
  place-items: center;
}
.cd-disc-art img,
.cd-disc-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-disc-art.is-empty {
  color: #5bff3a;
  font-size: 28px;
}
.cd-disc-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #09090e;
  box-shadow: 0 0 0 3px rgba(220, 228, 240, 0.88), inset 0 0 6px #000;
  z-index: 2;
}
.cd-fly {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  margin: 0;
  transform-origin: center center;
  transition: transform 0.46s cubic-bezier(.2,.8,.2,1);
  will-change: transform, clip-path;
  box-shadow:
    0 0 0 2px rgba(18,18,24,0.92),
    0 18px 40px rgba(0,0,0,0.55),
    inset 0 0 18px rgba(255,255,255,0.28);
}
.cd-pack.is-giving .cd-disc {
  opacity: 0;
}

.progress-line {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  margin: 10px 0 12px;
}

.pack-empty {
  padding: 36px 28px;
  border-radius: 18px;
  background: rgba(16, 13, 38, 0.88);
  border: 1px dashed rgba(245, 46, 131, 0.35);
  text-align: center;
}

.pack-empty h3 { margin: 0 0 16px; }
.pack-empty p { max-width: 52ch; margin: 0 auto 22px; }
.pack-empty code {
  color: #ffd21e;
  font-size: 0.92em;
}
.start-steps {
  list-style: none;
  margin: 0 auto 22px;
  padding: 0;
  max-width: 42ch;
  text-align: left;
  color: #c9c6e0;
  line-height: 1.55;
  display: grid;
  gap: 10px;
}
.start-steps a {
  color: #ff8ac4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pack-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.pack-empty-actions .primary,
.pack-empty-actions .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
}
.pack-empty .primary {
  display: inline-flex;
  cursor: pointer;
}

#packCard {
  display: none;
}

.is-hidden {
  display: none !important;
}

.pack-card, .studio-card, .info-card, .score-card, .sequence-card, .tips-card {
  border-radius: 18px;
  background: rgba(16, 13, 38, 0.88);
  border: 1px solid rgba(245, 46, 131, 0.18);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.progress-line i {
  display: block;
  width: 0%;
  height: 100%;
  background: #f52e83;
}

.progress-line.pink i { width: 62%; }
.progress-line.orange i { width: 56%; background: #ff7a1a; }

.primary, .secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.primary:disabled, .secondary:disabled, .preview-stage button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.primary {
  background: linear-gradient(90deg, #d91472, #f52e83);
  box-shadow: 0 0 24px rgba(245,46,131,0.32);
}

.secondary {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

.orange-btn { background: linear-gradient(90deg, #db4b10, #ff7a1a); }
.wide { width: 100%; }

.studio-card, .info-card { padding: 18px; }

.dubbing-workspace {
  display: grid;
  gap: 28px;
}

.dubbing-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.dubbing-header h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.dubbing-header p {
  margin: 0;
  color: #b7b5ce;
}

.back-link {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
}

.dubbing-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(220px, 0.95fr) minmax(280px, 1.35fr) minmax(220px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.dub-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(20, 17, 46, 0.92), rgba(7, 7, 19, 0.96)),
    rgba(16, 13, 38, 0.9);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 18px 52px rgba(0,0,0,0.34);
}

.dub-panel h3 {
  margin: 0;
  font-size: 16px;
}

.video-frame.compact {
  aspect-ratio: 1 / 1.12;
}

.script-box,
.tips-list,
.preview-stage {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5,4,13,0.42);
}

.script-box {
  min-height: 290px;
  padding: 18px;
}

.script-box strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
}

.script-box small {
  color: #b7b5ce;
}

.tips-list {
  display: grid;
  gap: 8px;
  padding: 14px;
  color: #b7b5ce;
  font-size: 13px;
}

.tips-list strong {
  color: #fff;
}

.tips-list span::before {
  content: "• ";
  color: #f52e83;
}

.recording-panel {
  border-color: rgba(245, 46, 131, 0.28);
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-title-row span {
  color: #ff2f80;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.record-timer {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 8px;
}

.record-timer strong {
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
}

.record-timer span {
  color: #b7b5ce;
}

.recording-overlay.inline {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  min-height: 76px;
  align-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(5,4,13,0.52);
}

.hero-waveform {
  position: relative;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-waveform::after,
.hero-waveform::before {
  content: none;
}

.wave-time {
  position: absolute;
  bottom: 4px;
  color: #8c89a3;
  font-size: 12px;
  font-weight: 700;
}

.wave-time.start { left: 8px; }
.wave-time.end { right: 8px; }

.timing-labels span.is-active {
  text-shadow: 0 0 12px currentColor;
  transform: scale(1.05);
}

.timing-compare {
  display: grid;
  gap: 8px;
}

.timing-compare div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
}

.timing-compare small {
  color: #8c89a3;
  font-size: 11px;
  font-weight: 800;
}

.timing-compare i {
  display: block;
  height: 8px;
  width: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  position: relative;
}

#timingRefBar {
  width: 100%;
  background: rgba(255,255,255,0.22);
}

#timingTakeBar {
  background: #43e97b;
}

#timingTakeBar.early { background: #f52e83; }
#timingTakeBar.late { background: #ff7a1a; }
#timingTakeBar.ok { background: #43e97b; }

.hero-waveform i {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(#ff2f80, #d516b8);
  box-shadow: 0 0 14px rgba(245, 46, 131, 0.7);
}

.hero-waveform i:nth-child(1) { height: 28px; }
.hero-waveform i:nth-child(2) { height: 46px; }
.hero-waveform i:nth-child(3) { height: 62px; }
.hero-waveform i:nth-child(4) { height: 42px; }
.hero-waveform i:nth-child(5) { height: 28px; background: linear-gradient(#f52e83, #8a2dff); }
.hero-waveform i:nth-child(6) { height: 66px; background: linear-gradient(#b32dff, #7c3aed); }
.hero-waveform i:nth-child(7) { height: 78px; background: linear-gradient(#b32dff, #7c3aed); }
.hero-waveform i:nth-child(8) { height: 38px; background: linear-gradient(#b32dff, #7c3aed); }
.hero-waveform i:nth-child(9) { height: 24px; background: linear-gradient(#b32dff, #7c3aed); }
.hero-waveform i:nth-child(10) { height: 54px; background: linear-gradient(#b32dff, #7c3aed); }
.hero-waveform i:nth-child(11) { height: 70px; background: linear-gradient(#b32dff, #7c3aed); }
.hero-waveform i:nth-child(12) { height: 48px; background: linear-gradient(#ff2f80, #ff4a1a); }
.hero-waveform i:nth-child(13) { height: 34px; background: linear-gradient(#ff2f80, #ff4a1a); }
.hero-waveform i:nth-child(14) { height: 84px; background: linear-gradient(#ff7a1a, #ff3f1a); }
.hero-waveform i:nth-child(15) { height: 50px; background: linear-gradient(#ff7a1a, #ff3f1a); }

.hero-waveform b {
  position: absolute;
  top: 8px;
  bottom: 24px;
  left: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,0.7);
}

.recording-panel .mic {
  align-self: center;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border: 5px solid rgba(245, 46, 131, 0.95);
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 18%, transparent 19%),
    conic-gradient(#ff7a1a, #f52e83, #7c3aed, #ff7a1a);
  color: transparent;
  box-shadow: 0 0 32px rgba(245, 46, 131, 0.52);
}

.recording-panel .mic.recording {
  animation: recordPulse 0.9s ease-in-out infinite;
}

.mic-level {
  height: 22px;
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 3px;
  align-items: end;
}

.mic-level span {
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, #20e859, #d6e920, #ff7a1a, #ef1d4d);
  box-shadow: 0 0 8px currentColor;
}

.preview-stage {
  min-height: 252px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #b7b5ce;
}

.preview-stage button {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 24px;
}

.take-result.vertical {
  display: none;
  flex-direction: column;
}

.scene-nav {
  width: min(760px, 100%);
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(16, 13, 38, 0.78);
  border: 1px solid rgba(255,255,255,0.1);
}

.scene-top, .character-row, .recording-console, .remote-grid, .video-timeline, .take-result, .waveform-head, .timing-labels {
  display: flex;
  align-items: center;
}

.scene-top {
  justify-content: space-between;
  margin-bottom: 12px;
}

.scene-top button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  border: 0;
  font-size: 24px;
}

.session-summary {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
}

.session-summary h2 { margin: 0 0 6px; }
.session-summary p { margin: 0; color: #b7b5ce; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #05040d;
  border: 1px solid rgba(255,255,255,0.1);
}

.video-frame video, .video-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empty-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b7b5ce;
  font-weight: 850;
}

.video-shell .empty-frame small {
  color: #ffcf4a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-shell .empty-frame strong {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 950;
}

.frame-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 46px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(5, 4, 13, 0.38), rgba(5, 4, 13, 0.86));
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  pointer-events: none;
}

.frame-caption strong {
  font-size: 13px;
  color: #fff;
}

.frame-caption span {
  color: #fff;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 950;
  line-height: 1.25;
}

.recording-overlay {
  display: none;
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 52px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(5,4,13,0.72);
  text-align: center;
}

.recording-overlay strong, .recording-overlay span { display: block; }

.cv-wave .stage-state {
  position: static;
  right: auto;
  bottom: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
}

.dashboard.cv-shell,
.dashboard.cv-shell.final-mode {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none;
  min-height: auto;
  padding-bottom: 32px;
}

@media (max-width: 860px) {
  .cv-shell .user-chip { display: flex !important; }
  .cv-shell .cv-nav .lang-switch { display: flex; }
}

.stage-state.recorded { background: rgba(67,233,123,0.16); color: #43e97b; }
.stage-state.recording { background: rgba(245,46,131,0.22); color: #fff; }

.countdown-badge {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  background: rgba(5,4,13,0.62);
  color: #fff;
  font-size: clamp(64px, 14vw, 96px);
  font-weight: 950;
  letter-spacing: 0.04em;
  text-shadow: 0 0 24px rgba(91, 255, 58, 0.45), 0 4px 18px rgba(0,0,0,0.85);
  z-index: 40;
  pointer-events: none;
}
.countdown-badge.is-on {
  display: grid !important;
}

.video-timeline {
  gap: 8px;
  margin: 10px 0;
  color: #b7b5ce;
  font-size: 11px;
  font-weight: 950;
}

.video-timeline i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}

.video-timeline b {
  display: block;
  width: 0%;
  height: 100%;
  background: #f52e83;
}

.dub-desk, .waveform-panel {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
}

.character-row { gap: 10px; margin-bottom: 10px; }
.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f52e83;
}

.character-row div:nth-child(2) { flex: 1; }
.character-row small, .timer small, .hint { color: #b7b5ce; font-size: 11px; font-weight: 850; }
.character-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 950;
}

.speech { font-weight: 900; }
.recording-console { gap: 10px; }
.recording-console .secondary { flex: 1; }
.timer {
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
  text-align: center;
}
.timer strong { display: block; color: #f52e83; font-size: 28px; line-height: 1; }
.mic {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 0;
  background: #f52e83;
  font-size: 26px;
  cursor: pointer;
}
.mic.recording { background: #7c3aed; }
.hint { display: block; margin-top: 8px; }

.waveform-panel { margin-top: 12px; }
.waveform-head, .timing-labels { justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.waveform-head span, .timing-labels span { color: #b7b5ce; font-size: 11px; font-weight: 900; }
.timing-labels span:first-child { color: #f52e83; }
.timing-labels span:nth-child(2) { color: #43e97b; }
.timing-labels span:last-child { color: #ff7a1a; }

.waveform {
  position: relative;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 15px;
  background: rgba(5,4,13,0.94);
  overflow: hidden;
}

.waveform i {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: #43e97b;
  box-shadow: 0 0 12px currentColor;
}
.waveform i:nth-child(1), .waveform i:nth-child(2), .waveform i:nth-child(3) { background: #f52e83; }
.waveform i:nth-child(4), .waveform i:nth-child(5), .waveform i:nth-child(6) { background: #ffd21e; }
.waveform i:nth-child(10), .waveform i:nth-child(11), .waveform i:nth-child(12) { background: #ff7a1a; }
.waveform i:nth-child(2), .waveform i:nth-child(5), .waveform i:nth-child(8), .waveform i:nth-child(11) { height: 34px; }
.waveform b {
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: #fff;
}

.remote-grid, .take-result { gap: 10px; margin-top: 12px; }
.remote-grid > * { flex: 1; }
.take-result { display: none; }
.take-result audio { flex: 1; }
.small { min-height: 42px; }
.pulse-next {
  background: linear-gradient(90deg, #16d95a, #43e97b) !important;
  color: #07110b !important;
  box-shadow: 0 0 26px rgba(67, 233, 123, 0.65) !important;
  animation: pulseNext 1s ease-in-out infinite;
}

.listen-take {
  border-color: rgba(67, 233, 123, 0.28);
  color: #43e97b;
}

.mic.attention {
  animation: recordPulse 0.28s ease-in-out 3;
}

.right-rail {
  padding: 118px 24px 32px 0;
  display: grid;
  gap: 20px;
  align-content: start;
}

.score-card, .sequence-card, .tips-card { padding: 20px; }
.tips-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
}
.tips-card h2 span { color: #ff7a1a; }
.tips-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
  min-height: 92px;
}
.tips-body p { margin: 0 0 8px; }
.tips-body p:last-child { margin: 0; }
.tips-mic {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(245, 46, 131, 0.45));
}
.tip-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.tip-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
}
.tip-dots button.is-on {
  width: 18px;
  background: #f52e83;
}
.score-card {
  min-width: 0;
  container-type: inline-size;
}
.score-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.score-card h2 { margin: 0; font-size: 18px; }
.score-card a { color: #f52e83; white-space: nowrap; }
.score-body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.score-ring {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #100d26 58%, transparent 59%),
    conic-gradient(#ff7a1a, #f52e83, #7c3aed, #ff7a1a);
}
.score-ring-inner {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  width: 68px;
}
.score-ring strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}
.score-ring span {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #b7b5ce;
  font-weight: 700;
}
.score-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.score-metrics li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 22px;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}
.score-metrics li span {
  min-width: 0;
}
.score-metrics li b {
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 800;
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

@container (max-width: 380px) {
  .score-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .score-metrics { width: 100%; }
}
.mini-video {
  width: 88px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 10px;
  margin-bottom: 10px;
}

.local-takes { display: grid; gap: 10px; }
.take-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
}

@keyframes pulseNext {
  0%, 100% { transform: scale(1); opacity: 0.76; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes recordPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(245, 46, 131, 0.42); transform: scale(1); }
  50% { box-shadow: 0 0 46px rgba(255, 122, 26, 0.7); transform: scale(1.04); }
}

.choicer-workspace {
  display: grid;
  gap: 22px;
}

.choicer-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.choicer-topbar h2 {
  margin: 0 0 5px;
  font-size: 30px;
}

.choicer-topbar p {
  margin: 0;
  color: #b7b5ce;
}

.choicer-stage {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 210px;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.08), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, rgba(34, 34, 39, 0.92), rgba(5, 5, 12, 0.98));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.55), 0 24px 70px rgba(0,0,0,0.42);
}

.take-rail {
  display: none;
}

.rail-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.rail-dot.is-recorded {
  background: rgba(67, 233, 123, 0.85);
  color: #07110b;
}

.rail-dot.is-active {
  outline: 2px solid #f52e83;
  background: #f52e83;
}

.tv-zone {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.video-shell {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, #545457, #1d1d21);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 0 22px rgba(255,255,255,0.15),
    inset 0 0 0 10px rgba(0,0,0,0.18),
    0 16px 38px rgba(0,0,0,0.52);
  overflow: hidden;
}

.video-shell video,
.video-shell img,
.video-shell .empty-frame,
.video-shell .scene-ogv-host {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border-radius: 10px;
}

.video-shell .empty-frame {
  gap: 8px;
  background: radial-gradient(circle at 50% 28%, #2c2540, #0b0b0e 68%);
  color: #fff;
  text-align: center;
  padding: 24px;
}

.video-shell video,
.video-shell img {
  display: none;
  object-fit: cover;
  object-position: center center;
  background: #0b0b0e;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.75);
}

.scene-chip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  width: min(680px, 94%);
  color: #ffcf4a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scene-chip span + span::before {
  content: "·";
  margin-right: 14px;
  color: rgba(255, 207, 74, 0.55);
}

.subtitle-console {
  width: min(680px, 94%);
  min-height: 118px;
  display: grid;
  align-content: center;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.78));
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  box-shadow: inset 0 0 24px rgba(255,255,255,0.035);
}

.subtitle-console p {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.22;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.record-strip {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(10,10,18,0.72);
  border: 1px solid rgba(255,255,255,0.08);
}

.take-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.take-meta small {
  color: #b7b5ce;
}

.take-meta strong {
  font-size: 18px;
}

.take-meta span {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.save-panel {
  min-height: 300px;
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.16);
}

.preview-mini {
  width: 74px;
  height: 74px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 26px;
}

.save-panel > span {
  color: #b7b5ce;
  text-align: center;
  font-size: 13px;
}

.save-panel .take-result {
  margin-top: 0;
}

.save-panel audio {
  width: 100%;
}

.timing-desk {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(16, 13, 38, 0.84);
  border: 1px solid rgba(245, 46, 131, 0.16);
}

.timing-desk .hero-waveform {
  height: 96px;
  padding-inline: 24px;
  justify-content: stretch;
  border-bottom: 0;
  border-radius: 16px;
  background: rgba(5,4,13,0.6);
}

.timing-desk .hero-waveform i {
  flex: 1;
}

.timing-desk .mic-level {
  max-width: 720px;
}

.timing-desk #referenceBtnBottom {
  justify-self: end;
}

.choicer-workspace .record-timer {
  min-width: 90px;
  margin: 0;
}

.choicer-workspace .record-timer strong {
  font-size: 28px;
  color: #f52e83;
}

.choicer-workspace .record-timer small {
  color: #b7b5ce;
  font-size: 11px;
}

.voice-meter {
  display: grid;
  gap: 4px;
  width: min(220px, 100%);
  justify-items: center;
}
.voice-meter b {
  position: relative;
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      #ef1d4d 0%,
      #ff7a1a 18%,
      #20e859 32%,
      #20e859 72%,
      #ff7a1a 86%,
      #ef1d4d 100%);
  opacity: 0.35;
}
.voice-meter i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8%;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}
.voice-meter.is-low small { color: #ffd21e; }
.voice-meter.is-good small { color: #43e97b; }
.voice-meter.is-high small { color: #ff7a1a; }

.choicer-workspace .mic {
  width: 62px;
  height: 62px;
}

@media (max-width: 1120px) {
  .dashboard {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .right-rail {
    grid-column: 2;
    padding: 0 24px 96px 0;
  }
  .pricing-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-tier-grid .tier-extra,
  .pricing-tier-grid .tier-pro {
    grid-column: span 1;
  }
  .dubbing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choicer-stage {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .save-panel {
    grid-column: 2;
    min-height: auto;
  }
  .side-cart {
    padding: 12px;
  }
  .side-cart-item-meta strong {
    font-size: 12px;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .dashboard {
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 18px;
  }
  .content, .right-rail {
    padding-left: 12px;
    padding-right: 18px;
  }
  .credit-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choicer-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .save-panel {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  html, body {
    overflow-x: hidden;
  }
  .dashboard,
  .dashboard.final-mode {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    gap: 0;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
  .sidebar {
    min-height: 0;
    padding: 12px 16px 0;
    border-right: 0;
    background: transparent;
  }
  .side-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    text-align: left;
  }
  .side-logo img {
    width: 112px;
    height: auto;
    border-radius: 0;
    flex-shrink: 0;
  }
  .side-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border-radius: 22px;
    background: rgba(14,12,32,0.96);
    border: 1px solid rgba(245, 46, 131, 0.22);
    box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  }
  .side-nav button {
    min-height: 52px;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    font-size: 10px;
  }
  .side-nav .nav-ico { font-size: 16px; line-height: 1; }
  .nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gamebanana-link,
  .howto-link { display: none; }
  .side-cart { display: none; }
  .shop-cart {
    display: block;
  }
  .pro-card { display: none; }
  .content, .right-rail { padding: 8px 14px 20px; }
  .content { padding-top: 4px; }
  .topbar {
    display: block;
    margin-bottom: 16px;
  }
  .topbar h1 { font-size: 22px; }
  .search-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .search-box { width: 100%; }
  .user-chip { display: none; }
  .user-logout-btn { display: none; }
  .pack-grid { grid-template-columns: unset; }
  .dubbing-header,
  .dubbing-grid {
    grid-template-columns: 1fr;
  }
  .dub-panel { min-height: auto; }
  .choicer-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .choicer-topbar h2 { font-size: 22px; }
  .choicer-stage,
  .record-strip {
    grid-template-columns: 1fr;
  }
  .choicer-stage {
    min-height: 0;
    padding: 12px;
  }
  .video-shell {
    width: 100%;
    padding: 8px;
    border-radius: 16px;
  }
  .scene-chip,
  .subtitle-console,
  .record-strip {
    width: 100%;
  }
  .subtitle-console {
    min-height: 0;
    padding: 14px 12px;
  }
  .subtitle-console p { font-size: 16px; }
  .record-strip {
    grid-template-columns: auto 1fr auto;
    justify-items: center;
  }
  .record-strip .take-meta { display: none; }
  .take-rail { display: none; }
  .save-panel {
    grid-column: auto;
    min-height: 0;
    padding: 12px;
  }
  .scene-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }
  .scene-nav .secondary { width: 100%; }
  .right-rail { display: none; }
  .score-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .score-metrics { width: 100%; }
  .final-video-wrap {
    width: 100%;
    margin: 12px 0;
    border-radius: 14px;
  }
  .final-video-page #downloadMp4Btn:not(.is-hidden),
  .final-video-page #generateMp4Btn:not(.is-hidden),
  .export-progress {
    width: 100%;
  }
  .credit-pack-grid { grid-template-columns: 1fr; }
  .info-card { padding: 14px; }
}

.app-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 90;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 24px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #1a1028;
  border: 1px solid rgba(245, 46, 131, 0.4);
  color: #fff;
  font-weight: 700;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 13, 0.72);
}

.help-card {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 18px;
  background: #120e24;
  border: 1px solid rgba(245, 46, 131, 0.25);
}

.help-card ol {
  padding-left: 18px;
  color: #b7b5ce;
  line-height: 1.5;
}

.help-card a {
  color: #ff8ac4;
  text-underline-offset: 2px;
}

.help-card .help-gamebanana {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  text-decoration: none;
}

.help-card .primary { width: 100%; margin-top: 8px; }

.timing-hint,
.hint-copy {
  color: #b7b5ce;
  font-size: 13px;
  line-height: 1.45;
}

.nav-label { white-space: nowrap; }

.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.92;
}

.nav-svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-nav button.active .nav-ico,
.side-nav button:hover .nav-ico {
  opacity: 1;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(16, 13, 38, 0.88);
  border: 1px solid rgba(245, 46, 131, 0.22);
  color: #fff;
  cursor: pointer;
}

.user-logout-btn {
  flex-shrink: 0;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 46, 131, 0.28);
  background: rgba(245, 46, 131, 0.08);
  color: #f9a8d4;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.user-logout-btn:hover {
  background: rgba(245, 46, 131, 0.12);
}

.user-chip-meta {
  display: grid;
  gap: 2px;
  text-align: left;
  align-content: center;
}

.user-chip-meta strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.user-chip-meta small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.credit-highlight,
.credit-word {
  color: #5bff3a;
  text-shadow:
    0 0 8px rgba(91, 255, 58, 0.55),
    0 0 18px rgba(91, 255, 58, 0.28);
  font-weight: 800;
}

.credit-highlight {
  font-weight: 900;
}

.avatar-shell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(245, 46, 131, 0.22), rgba(124, 58, 237, 0.18));
  border: 1px solid rgba(245, 46, 131, 0.35);
}

.user-chip-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.avatar-fallback {
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
}

.profile-avatar .avatar-fallback {
  font-size: 34px;
}

.avatar-shell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-block { margin-top: 28px; }
.activity-list { display: grid; gap: 10px; }
.activity-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(16, 13, 38, 0.88);
  border: 1px solid rgba(245, 46, 131, 0.16);
}
.activity-thumb {
  width: 72px;
  height: 48px;
  border-radius: 10px;
  background: #100d26;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.activity-row small { color: #b7b5ce; }
.activity-score { color: #43e97b; font-weight: 900; }

.final-video-page {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0;
}
#dubTab.tab-view.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-video-page h2,
.final-video-page p {
  text-align: center;
}
.export-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(420px, 100%);
  margin: 8px auto 16px;
  text-align: left;
}
.export-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 46, 131, 0.18);
  overflow: hidden;
}
.export-progress-track b {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f52e83, #ff7a1a);
  transition: width 0.2s linear;
}
#exportProgressLabel {
  color: #ffd21e;
  font-size: 18px;
}
.final-video-page #downloadMp4Btn:not(.is-hidden),
.final-video-page #generateMp4Btn:not(.is-hidden) {
  display: flex;
  width: min(420px, 100%);
  justify-content: center;
}
.cena-banner {
  display: grid;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  max-width: 720px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(245, 46, 131, 0.35);
  background: rgba(245, 46, 131, 0.12);
}
.cena-banner.is-hidden { display: none; }
.cena-banner strong { font-size: 15px; }
.cena-banner p { margin: 0; color: #d8d6ef; font-size: 14px; }
.ready-actions {
  display: grid;
  gap: 12px;
  width: min(720px, 100%);
  margin: 0 auto 8px;
}
.ready-actions.is-hidden { display: none; }
.ready-actions h3 { margin: 0; font-size: 22px; }
.ready-lead { margin: 0; color: #c9c6e0; }
.ready-formats,
.ready-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ready-format {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(9,8,23,0.55);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
.ready-format.is-active {
  border-color: #f52e83;
  background: rgba(245, 46, 131, 0.22);
}
.vertical-framing {
  margin: 14px 0 4px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(245, 46, 131, 0.22);
  background: rgba(9, 8, 23, 0.45);
}
.vertical-framing-preview-wrap {
  width: min(180px, 42vw);
  aspect-ratio: 9 / 16;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(245, 46, 131, 0.28);
  background: #05040d;
}
.vertical-framing-preview-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  background: #05040d;
}
.vertical-framing-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}
.vertical-framing-control input[type="range"] {
  flex: 1;
  accent-color: #f52e83;
}
.final-video-wrap.is-vertical {
  aspect-ratio: 9 / 16;
  width: min(360px, 100%);
}
.final-video-wrap {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  margin: 24px auto;
  overflow: hidden;
  border-radius: 22px;
  background: #05040d;
  border: 1px solid rgba(245, 46, 131, 0.28);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.final-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05040d;
}
#exportFilm {
  position: absolute;
  inset: 0;
  display: none;
  object-fit: contain;
  background: #000;
  z-index: 2;
}
.final-video-wrap.is-exporting #exportFilm {
  display: block;
}
.final-video-wrap ogvjs {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 3;
  background: #000;
}
.final-video-wrap.is-exporting #finalVideo,
.final-video-wrap.is-exporting .empty-frame {
  visibility: hidden;
}
.final-video-wrap .empty-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.credit-shop {
  display: grid;
  gap: 16px;
  margin: 16px 0 20px;
}
.shop-lead {
  margin: 0;
  color: #b7b5ce;
  font-size: 14px;
  line-height: 1.5;
}
.shop-owner-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(91, 255, 58, 0.08);
  border: 1px solid rgba(91, 255, 58, 0.28);
  color: #d8ffd0;
  font-size: 13px;
  line-height: 1.45;
}
.pricing-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pricing-tier {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(16, 13, 38, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.22);
  min-height: 100%;
}
.pricing-tier.is-featured {
  border-color: rgba(245, 46, 131, 0.55);
  background: linear-gradient(160deg, rgba(53, 24, 79, 0.95), rgba(16, 13, 38, 0.95));
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.14);
}
.pricing-tier.is-active {
  border-color: rgba(91, 255, 58, 0.45);
  box-shadow: 0 0 20px rgba(91, 255, 58, 0.08);
}
.tier-step {
  display: inline-flex;
  align-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8d6ef;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-tier.is-featured .tier-step {
  background: rgba(245, 46, 131, 0.18);
  color: #ffd0e6;
}
.tier-title {
  font-size: 24px;
  line-height: 1.1;
}
.tier-price {
  color: #ffd21e;
  font-size: 30px;
  line-height: 1.05;
}
.tier-price-note {
  margin: 0;
  color: #b7b5ce;
  font-size: 13px;
  line-height: 1.4;
}
.tier-features {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.tier-features li {
  position: relative;
  padding-left: 18px;
  color: #d8d6ef;
  font-size: 13px;
  line-height: 1.45;
}
.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #5bff3a;
  font-weight: 900;
}
.tier-status {
  display: inline-flex;
  align-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(91, 255, 58, 0.12);
  border: 1px solid rgba(91, 255, 58, 0.35);
  color: #5bff3a;
  font-size: 12px;
  font-weight: 800;
}
.credit-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pro-plan-card {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(53, 24, 79, 0.95), rgba(16, 13, 38, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.12);
}
.pro-plan-card.is-active {
  border-color: rgba(255, 210, 30, 0.55);
  box-shadow: 0 0 24px rgba(255, 210, 30, 0.12);
}
.pro-plan-card strong {
  display: block;
  font-size: 30px;
  margin-bottom: 4px;
}
.pro-plan-card b {
  color: #ffd21e;
  font-size: 22px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(16, 13, 38, 0.88);
  border: 1px solid rgba(245, 46, 131, 0.22);
}
.lang-btn {
  min-width: 36px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b7b5ce;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 0 10px;
}
.lang-btn.active {
  background: rgba(245, 46, 131, 0.22);
  color: #fff;
}
.funnel-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(16, 13, 38, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.22);
  margin-bottom: 8px;
}
.funnel-steps {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 14px;
}
.funnel-steps li {
  display: grid;
  gap: 4px;
}
.funnel-steps strong {
  font-size: 14px;
}
.funnel-steps span {
  color: #b7b5ce;
  font-size: 13px;
  line-height: 1.45;
}
.shop-section-title {
  margin: 8px 0 0;
  font-size: 18px;
}

.credit-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(16, 13, 38, 0.88);
  border: 1px solid rgba(245, 46, 131, 0.2);
  text-align: left;
  color: #fff;
  cursor: pointer;
}
.credit-card.featured {
  border-color: rgba(255, 122, 26, 0.55);
}
.credit-card strong { display: block; font-size: 28px; }
.credit-card span { color: #b7b5ce; }
.credit-card b { color: #ffd21e; }

.profile-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-avatar-picker {
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
  color: #b7b5ce;
  font-size: 12px;
  font-weight: 700;
}

.profile-avatar-picker small {
  max-width: 10ch;
  text-align: center;
  line-height: 1.3;
}

.profile-hero h3 { margin: 0 0 4px; font-size: 24px; }

.site-footer {
  padding: 18px 24px 28px;
  text-align: center;
  color: #8c89a3;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer a,
.auth-partnership a {
  color: #c9c6e0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover,
.auth-partnership a:hover {
  color: #fff;
}

#downloadMp4Btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .user-chip { display: none; }
  .content > .topbar { display: none; }
  .choicer-topbar .back-link,
  .choicer-topbar .primary {
    width: max-content;
    justify-self: start;
  }
  .credit-pack-grid { grid-template-columns: 1fr; }
  .pricing-tier-grid { grid-template-columns: 1fr; }
  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .final-video-page #downloadMp4Btn:not(.is-hidden),
  .final-video-page #generateMp4Btn:not(.is-hidden) {
    width: 100%;
  }
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 8, 23, 0.78);
  pointer-events: auto;
}
.auth-gate.is-hidden { display: none; }

.beta-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #f9a8d4;
  background: rgba(245, 46, 131, 0.14);
  border: 1px solid rgba(245, 46, 131, 0.28);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  font-size: 13px;
  color: #b7b5ce;
  cursor: pointer;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #635bff;
  cursor: pointer;
}

.auth-card {
  width: min(480px, 100%);
  display: grid;
  gap: 12px;
  padding: 32px 28px;
  border-radius: 22px;
  background: #1c1633;
  border: 1px solid rgba(245, 46, 131, 0.45);
  position: relative;
  color: #fff;
  isolation: isolate;
  pointer-events: auto;
}
.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.auth-brand img { display: none; }
.auth-brand strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.auth-brand span { color: #f52e83; }
.auth-brand em {
  max-width: 28ch;
  font-style: normal;
  color: #b7b5ce;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}
.auth-card h1 { margin: 8px 0 0; font-size: 22px; text-align: center; }
.auth-card p, .auth-card small {
  margin: 0;
  color: #b7b5ce;
  line-height: 1.45;
  text-align: center;
}
.auth-card label {
  display: grid;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.auth-card input {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 46, 131, 0.28);
  background: #0b0a1b;
  color: #fff;
}
.auth-password-field {
  position: relative;
  display: block;
}
.auth-password-field input {
  width: 100%;
  padding-right: 46px;
}
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b7b5ce;
  cursor: pointer;
}
.auth-password-toggle:hover,
.auth-password-toggle.is-visible {
  color: #fff;
  background: rgba(245, 46, 131, 0.12);
}
.auth-eye {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-eye-closed { display: none; }
.auth-password-toggle.is-visible .auth-eye-open { display: none; }
.auth-password-toggle.is-visible .auth-eye-closed { display: block; }
.auth-card input.is-invalid {
  border-color: #ff4d7a;
}
.auth-error {
  margin: -4px 0 0;
  color: #ff6b8a;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}
.auth-forgot {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: #ffd21e;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.auth-forgot:hover { text-decoration: underline; }
.auth-forgot.is-alert {
  color: #f52e83;
  font-size: 16px;
}
.auth-partnership {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: #8c89a3;
  line-height: 1.4;
}
#logoutBtn { margin-top: 10px; }
body:not(.in-studio) .site-footer { display: none; }

.cv-wave .hero-waveform {
  position: relative;
  height: 112px;
  display: block;
  padding: 0;
  overflow: hidden;
  border-bottom: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 100% 12px,
    #08070f;
}
.cv-wave .hero-waveform canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.cv-wave .hero-waveform i { display: none; }
.roles-card { width: min(440px, 92vw); }
.roles-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
  max-height: 46vh;
  overflow: auto;
}
.roles-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8,7,16,0.7);
  color: #fff;
  cursor: pointer;
}
.roles-row input { accent-color: #5bff3a; width: 18px; height: 18px; }
.roles-row strong { flex: 1; }
.roles-row span { color: #b7b5ce; font-size: 13px; }
.roles-actions { display: flex; gap: 8px; }
.cv-key.mic,
.cv-board .mic {
  width: 100%;
  height: auto;
  min-height: 46px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(180deg, #4a2430, #221018);
}
.voice-meter[hidden] { display: none !important; }

.import-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.62);
  padding: 24px;
}
.import-modal.is-hidden { display: none; }
.import-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #1a1a20;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.import-card h2 {
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.import-card p {
  margin: 0 0 16px;
  text-align: center;
  color: #b7b5ce;
}
.import-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.import-drop {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 160px;
  place-content: center;
  border: 2px dashed var(--cv-teal);
  border-radius: 14px;
  background: rgba(62, 230, 212, 0.04);
  margin-bottom: 14px;
}
.import-drop.is-over { background: rgba(62, 230, 212, 0.14); }
.import-reel {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 6px solid var(--cv-teal);
  box-shadow: inset 0 0 0 8px #1a1a20, 0 0 0 2px rgba(62,230,212,0.3);
}
.import-choose {
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.import-choose span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--cv-teal);
  border-radius: 10px;
  color: var(--cv-teal);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.import-progress { margin-top: 16px; display: grid; gap: 8px; }
.import-progress.is-hidden { display: none; }
.import-progress span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cv-teal); }
.import-progress i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(62,230,212,0.15);
  overflow: hidden;
}
.import-progress b { display: block; height: 100%; width: 0; background: var(--cv-teal); }

.cv-dock {
  position: sticky;
  bottom: 10px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.cv-pill {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(20,20,24,0.92);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.cv-status {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16,16,20,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 800;
}
.cv-status-track {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.cv-status-track b { display: block; height: 100%; width: 0; background: var(--cv-teal); }
#packStatusLamp { color: var(--cv-teal); letter-spacing: 0.08em; text-transform: uppercase; }
#packStatusPack { color: #8f8ca8; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.studio-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  grid-template-areas:
    "adleft studio adright"
    "adleft adbottom adright";
  align-items: start;
  gap: 12px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 12px 24px;
}
.studio-ad-left,
.studio-ad-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.studio-ad-left { grid-area: adleft; }
#studioApp { grid-area: studio; }
.studio-ad-right { grid-area: adright; }
.studio-ad-bottom { grid-area: adbottom; }
.studio-ad {
  position: sticky;
  top: 12px;
}
.studio-ad-bottom,
.studio-ad-masthead,
.studio-ad-footer { position: static; }
.studio-ad-masthead {
  margin: 0 0 14px;
}
.studio-ad-mobile {
  display: none;
  margin: 0 0 12px;
  padding: 0 12px;
}
.studio-ad-footer {
  max-width: 1600px;
  margin: 0 auto 16px;
  padding: 0 12px;
}
.studio-ad-rail {
  position: static;
  margin-bottom: 14px;
}
.studio-ad-rail:last-child { margin-bottom: 0; }
.studio-ad-unit {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(8, 8, 12, 0.72);
  color: #8f8ca8;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.studio-ad-left .studio-ad-unit:first-child,
.studio-ad-right .studio-ad-unit:first-child {
  min-height: 520px;
}
.studio-ad-unit-wide {
  min-height: 90px;
}
.studio-ad-rail .studio-ad-unit-wide {
  min-height: 200px;
}
.studio-ad-unit.has-live-ad {
  border-color: transparent;
  background: transparent;
  min-height: 0;
  padding: 0;
}
.studio-ad-slot {
  width: 100%;
  min-height: inherit;
}
.studio-ad-slot:empty + .studio-ad-fallback { display: grid; }
.studio-ad-unit.has-live-ad .studio-ad-pro { display: none; }
.studio-ad-pro {
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  font-weight: 800;
  color: #5bff3a;
  background: transparent;
  border: 1px solid rgba(126, 231, 220, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
body.hide-ads .studio-ad,
body:not(.ads-screen) .studio-ad { display: none !important; }
body.hide-ads .studio-layout,
body:not(.ads-screen) .studio-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "studio";
  max-width: 1280px;
}

@media (max-width: 1180px) {
  .studio-ad-left,
  .studio-ad-right { display: none; }
  .studio-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "studio"
      "adbottom";
  }
}

@media (max-width: 860px) {
  .studio-ad-bottom,
  .studio-ad-masthead { display: none; }
  .studio-ad-mobile { display: block; }
  .studio-layout {
    grid-template-areas: "studio";
    padding: 0;
  }
}

@media (max-width: 860px) {
  .cv-dock { grid-template-columns: 1fr 1fr; }
  .cv-status { grid-column: 1 / -1; grid-template-columns: 1fr; }
}

.create-pack-page {
  --dp-pink: #f52e83;
  --dp-magenta: #ff4fa3;
  --dp-purple: #7b3cff;
  --dp-orange: #ff8a3d;
  --dp-yellow: #ffd36a;
  --dp-ink: #12081a;
  --dp-panel: rgba(24, 10, 32, 0.78);
  --dp-grad: linear-gradient(110deg, #7b3cff 0%, #f52e83 48%, #ff8a3d 78%, #ffd36a 100%);
  --dp-grad-soft: linear-gradient(135deg, rgba(123, 60, 255, 0.22), rgba(245, 46, 131, 0.12) 45%, rgba(255, 138, 61, 0.08));
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
}
.create-pack-page.is-active,
#createTab.active {
  display: block;
}
.create-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
  gap: 28px 40px;
  align-items: stretch;
  min-height: min(62vh, 560px);
  padding: 18px 18px 28px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(245, 46, 131, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 50% at 88% 72%, rgba(123, 60, 255, 0.16), transparent 50%),
    radial-gradient(ellipse 40% 35% at 70% 12%, rgba(255, 138, 61, 0.1), transparent 45%),
    var(--dp-grad-soft),
    linear-gradient(180deg, #160b1f 0%, #0d0712 100%);
  border: 1px solid rgba(245, 46, 131, 0.22);
  overflow: hidden;
}
.create-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,0.015) 22px 23px);
  pointer-events: none;
  opacity: 0.55;
}
.create-hero-copy,
.create-drop {
  position: relative;
  z-index: 1;
}
.create-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 520px;
}
.create-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.create-brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(245, 46, 131, 0.35);
}
.create-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--dp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.create-hero h1 {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 900;
  color: #fff;
}
.create-hero-brand {
  display: inline-block;
}
.create-hero-dub { color: #f4f2ff; }
.create-hero-pack {
  background: var(--dp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.create-hero-lead {
  margin: 0;
  color: #d7c9df;
  font-size: 16px;
  line-height: 1.45;
  max-width: 42ch;
}
.create-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.create-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.create-cta-primary {
  border: 0;
  color: #fff;
  background: var(--dp-grad);
  box-shadow: 0 8px 28px rgba(245, 46, 131, 0.35);
}
.create-cta-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.create-cta-secondary {
  border: 1px solid rgba(255, 143, 196, 0.45);
  color: #ffd0e4;
  background: rgba(18, 8, 26, 0.55);
}
.create-cta-secondary:hover {
  border-color: var(--dp-pink);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(245, 46, 131, 0.25);
}
.create-limits {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 143, 196, 0.78);
}
.create-legal {
  margin: 0;
  font-size: 12px;
  color: #9b8aa6;
  max-width: 46ch;
  line-height: 1.4;
}
.create-drop {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  width: 100%;
  min-height: 420px;
  padding: 28px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(var(--dp-ink), var(--dp-ink)) padding-box,
    var(--dp-grad) border-box;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 0 60px rgba(245, 46, 131, 0.08);
}
.create-drop-glow {
  position: absolute;
  inset: auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.28), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.create-drop:hover,
.create-drop.is-over {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(123, 60, 255, 0.22),
    inset 0 0 80px rgba(245, 46, 131, 0.14);
}
.create-drop-icon {
  font-size: 28px;
  line-height: 1;
  background: var(--dp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.create-drop strong {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
.create-drop small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dp-magenta);
}
.create-workspace {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(245, 46, 131, 0.12), transparent 50%),
    linear-gradient(180deg, #160b1f 0%, #0d0712 100%);
  border: 1px solid rgba(245, 46, 131, 0.2);
}
.create-workspace.is-hidden,
.create-hero.is-hidden { display: none !important; }
.create-workspace-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 10px;
}
.create-workspace-bar strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}
.create-workspace-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.create-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.create-field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c49bb3;
}
.create-field input,
.create-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(245, 46, 131, 0.22);
  background: rgba(12, 6, 18, 0.85);
  color: #f4f2ff;
  padding: 12px 14px;
  font: inherit;
}
.create-field input:focus,
.create-field textarea:focus {
  outline: none;
  border-color: var(--dp-pink);
  box-shadow: 0 0 0 3px rgba(245, 46, 131, 0.18);
}
.create-field-wide { grid-column: 1 / -1; }
.create-video-block {
  display: grid;
  gap: 12px;
  margin: 8px 0 20px;
}
.create-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.create-scene-box {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 143, 196, 0.22);
  background: rgba(245, 46, 131, 0.06);
}
.create-vocals-box {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 143, 196, 0.18);
  background: rgba(120, 48, 160, 0.12);
}
.create-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}
.create-file-btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.create-scene-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.create-scene-length {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffd0e4;
}
.create-scrub {
  display: grid;
  gap: 8px;
  margin: 4px 0 8px;
  touch-action: none;
}
.create-player-wrap {
  display: grid;
  gap: 0;
  margin: 8px 0 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245, 46, 131, 0.28);
  background: #09050e;
}
.create-player-wrap .create-video {
  max-height: 420px;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.create-scrub-on-player {
  margin: 0;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(18, 8, 26, 0.96), rgba(12, 6, 18, 0.98));
  border-top: 1px solid rgba(255, 143, 196, 0.18);
}
.create-scrub-on-player .create-scrub-track {
  height: 52px;
}
.create-scrub-labels {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #ffd0e4;
}
.create-scrub-labels span:nth-child(2) {
  text-align: center;
  color: #c49bb3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.create-scrub-track {
  position: relative;
  height: 44px;
  border-radius: 999px;
  background: rgba(8, 4, 12, 0.9);
  border: 1px solid rgba(255, 143, 196, 0.25);
  overflow: hidden;
}
.create-scrub-selection {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20%;
  background: linear-gradient(90deg, rgba(123, 60, 255, 0.35), rgba(245, 46, 131, 0.45), rgba(255, 138, 61, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 208, 228, 0.25);
  cursor: grab;
}
.create-scrub-selection.is-dragging { cursor: grabbing; }
.create-scrub-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 0;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 2;
}
.create-scrub-handle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--dp-grad);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(245, 46, 131, 0.45);
}
.create-scrub-handle:focus-visible {
  outline: 2px solid #ffd0e4;
  outline-offset: 2px;
}
.create-detect-btn {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: var(--dp-grad);
  box-shadow: 0 8px 22px rgba(245, 46, 131, 0.3);
}
.create-detect-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.create-detect-btn:not(:disabled):hover {
  filter: brightness(1.06);
}
.create-video {
  width: 100%;
  max-height: 420px;
  border-radius: 14px;
  background: #09050e;
  border: 1px solid rgba(245, 46, 131, 0.2);
}
.create-line-form {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 46, 131, 0.18);
  background: var(--dp-panel);
}
.create-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.create-line-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.create-line-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 143, 196, 0.16);
  background: rgba(18, 8, 26, 0.7);
}
.create-line-main {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.create-play-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  background: var(--dp-grad);
  box-shadow: 0 6px 18px rgba(245, 46, 131, 0.35);
}
.create-play-btn.is-playing {
  background: #2a1420;
  box-shadow: inset 0 0 0 1px rgba(255, 143, 196, 0.45);
}
.create-play-btn:hover { filter: brightness(1.06); }
.create-line-item p {
  margin: 4px 0;
  color: #e8d7ea;
}
.create-line-item small { color: #b08aa4; }
.create-line-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 110px;
}
.create-confirm-box,
.create-captions-box {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(91, 255, 58, 0.22);
  background: rgba(18, 40, 16, 0.45);
}
.create-confirm-box.is-hidden,
.create-captions-box.is-hidden,
.create-line-form.is-hidden {
  display: none;
}
.create-confirm-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  color: #081108;
  background: #5bff3a;
  box-shadow: 0 0 0 1px rgba(91, 255, 58, 0.35), 0 8px 24px rgba(91, 255, 58, 0.2);
}
.create-confirm-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.create-confirm-btn:not(:disabled):hover { filter: brightness(1.05); }
.create-transcribe-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  color: #081108;
  background: #5bff3a;
  box-shadow: 0 0 0 1px rgba(91, 255, 58, 0.35), 0 8px 24px rgba(91, 255, 58, 0.2);
  justify-self: start;
}
.create-transcribe-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.create-transcribe-btn:not(:disabled):hover { filter: brightness(1.05); }
.create-lang-toggle {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.create-lang-toggle button {
  border: 1px solid rgba(255, 143, 196, 0.28);
  background: rgba(18, 8, 26, 0.85);
  color: #f3e7f4;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.create-lang-toggle button.is-active {
  border-color: #5bff3a;
  color: #081108;
  background: #5bff3a;
}
.create-line-item.is-captioning {
  align-items: flex-start;
}
.create-line-caption-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.create-line-index {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffd0e4;
}
.create-line-caption-fields .create-field span {
  font-size: 11px;
}
.create-line-caption-fields input,
.create-line-caption-fields textarea {
  width: 100%;
}
.create-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  grid-template-columns: 1fr 1fr;
}
.create-pack-page .primary {
  background: var(--dp-grad);
  border: 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(245, 46, 131, 0.28);
}
.create-pack-page .secondary {
  border-color: rgba(255, 143, 196, 0.4);
  color: #ffd0e4;
  background: rgba(18, 8, 26, 0.55);
}
#createStatus { min-height: 1.2em; color: #d7c9df; }

.cv-nav-link[data-tab="create"].active,
.cv-nav-link[data-tab="create"]:hover {
  color: #ff8fc4;
  background: rgba(245, 46, 131, 0.12);
}

@media (max-width: 980px) {
  .create-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .create-drop { min-height: 260px; }
}
@media (max-width: 640px) {
  .create-times { grid-template-columns: 1fr; }
  .create-line-item { flex-direction: column; }
  .create-actions { grid-template-columns: 1fr; }
  .create-hero-actions { flex-direction: column; }
  .create-cta { width: 100%; justify-content: center; }
  .create-hero { padding: 14px; border-radius: 18px; }
}
