/*
 * Local UI/UX refresh for the existing voiceover tool.
 * Presentation only: no endpoints, identifiers, business rules or runtime flows.
 */

:root {
  --studio-bg: #f3f8ff;
  --studio-surface: #ffffff;
  --studio-surface-soft: #f7faff;
  --studio-surface-blue: #eef5ff;
  --studio-ink: #07164f;
  --studio-ink-soft: #50618a;
  --studio-muted: #7483a8;
  --studio-line: #dfe8f7;
  --studio-blue: #0b63f6;
  --studio-blue-strong: #1244dc;
  --studio-blue-soft: #dceaff;
  --studio-purple: #6d49f7;
  --studio-purple-soft: #eee8ff;
  --studio-pink: #f43f8f;
  --studio-orange: #ff7a18;
  --studio-orange-deep: #ff4f16;
  --studio-green: #16a66a;
  --studio-danger: #df3455;
  --studio-radius-sm: 14px;
  --studio-radius: 22px;
  --studio-radius-lg: 30px;
  --studio-shadow-sm: 0 8px 24px rgba(23, 69, 145, 0.07);
  --studio-shadow: 0 18px 48px rgba(23, 69, 145, 0.1);
  --studio-shadow-blue: 0 15px 32px rgba(11, 99, 246, 0.22);
  --studio-shadow-orange: 0 18px 34px rgba(255, 91, 20, 0.25);
  --studio-space-1: 6px;
  --studio-space-2: 10px;
  --studio-space-3: 16px;
  --studio-space-4: 22px;
  --studio-space-5: 30px;
  --studio-space-6: 42px;
}

html {
  background: var(--studio-bg);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--studio-bg);
  color: var(--studio-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
a,
input,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, textarea, [role="button"]):focus-visible {
  outline: 3px solid rgba(11, 99, 246, 0.38) !important;
  outline-offset: 3px !important;
}

::selection {
  background: rgba(59, 109, 246, 0.22);
  color: var(--studio-ink);
}

.premium-studio-theme {
  position: relative;
  min-height: 100vh;
  padding-bottom: 30px !important;
  overflow: clip;
  background:
    radial-gradient(circle at 14% 5%, rgba(91, 174, 255, 0.2), transparent 27%),
    radial-gradient(circle at 85% 11%, rgba(137, 92, 246, 0.14), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eff6ff 44%, #f8fbff 100%) !important;
  color: var(--studio-ink) !important;
  font-family: inherit !important;
}

.premium-studio-theme::before {
  position: absolute;
  inset: 0 0 auto;
  height: 360px;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 12% 30%, rgba(120, 206, 255, 0.18), transparent 34%),
    radial-gradient(ellipse at 52% 0%, rgba(119, 108, 255, 0.13), transparent 32%),
    radial-gradient(ellipse at 84% 30%, rgba(255, 167, 118, 0.12), transparent 30%);
}

.premium-studio-theme > * {
  position: relative;
  z-index: 1;
}

/* Header and navigation */
.premium-studio-theme .studio-header {
  position: sticky !important;
  top: 0;
  z-index: 80 !important;
  margin: 0 0 28px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(211, 225, 246, 0.88) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 8px 28px rgba(26, 64, 132, 0.06) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.premium-studio-theme .studio-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 1240px);
  min-height: 76px;
  margin: 0 auto;
  padding: 10px 28px !important;
}

.premium-studio-theme .studio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--studio-ink);
}

.premium-studio-theme .studio-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--studio-blue), var(--studio-purple));
  box-shadow: 0 11px 24px rgba(24, 86, 226, 0.24);
}

.premium-studio-theme .studio-brand-mark::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 12px;
  content: "";
}

.premium-studio-theme .studio-brand-mark svg {
  position: relative;
  z-index: 2;
  width: 25px;
  height: 25px;
}

.premium-studio-theme .studio-brand-mark-ring,
.premium-studio-theme .studio-brand-mark-pulse {
  opacity: 0.35;
}

.premium-studio-theme .studio-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: right;
}

.premium-studio-theme .studio-brand-copy strong {
  color: var(--studio-ink) !important;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.premium-studio-theme .studio-brand-copy span {
  color: var(--studio-ink-soft) !important;
  font-size: 11px;
  font-weight: 650;
}

.premium-studio-theme .studio-navigation {
  display: contents;
}

.premium-studio-theme .studio-lighting-control,
.premium-studio-theme .sp-entry-button {
  min-height: 46px;
  border: 1px solid var(--studio-line) !important;
  border-radius: 15px !important;
  color: var(--studio-ink) !important;
  background: rgba(248, 251, 255, 0.96) !important;
  box-shadow: none !important;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.premium-studio-theme .studio-lighting-control:hover,
.premium-studio-theme .sp-entry-button:hover {
  border-color: #bcd2f5 !important;
  transform: translateY(-1px);
  box-shadow: var(--studio-shadow-sm) !important;
}

.premium-studio-theme .studio-lighting-control {
  position: absolute;
  left: 28px;
  top: 15px;
  display: flex;
  align-items: center;
  min-width: 150px;
  padding: 6px 9px;
}

.premium-studio-theme .studio-lighting-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--studio-purple);
  background: var(--studio-purple-soft);
}

.premium-studio-theme .studio-lighting-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-inline: 9px auto;
  line-height: 1.15;
}

.premium-studio-theme .studio-lighting-copy small {
  color: var(--studio-muted);
  font-size: 9px;
}

.premium-studio-theme .studio-lighting-copy strong {
  color: var(--studio-ink);
  font-size: 12px;
}

.premium-studio-theme .studio-lighting-meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}

.premium-studio-theme .studio-lighting-meter i {
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--studio-blue), var(--studio-purple));
}

.premium-studio-theme .studio-lighting-meter i:nth-child(1) { height: 35%; }
.premium-studio-theme .studio-lighting-meter i:nth-child(2) { height: 85%; }
.premium-studio-theme .studio-lighting-meter i:nth-child(3) { height: 58%; }

.premium-studio-theme .studio-header-actions {
  position: absolute;
  top: 15px;
  right: 28px;
}

.premium-studio-theme .sp-entry-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
}

.premium-studio-theme .sp-entry-button > svg {
  width: 19px;
  color: var(--studio-blue);
}

.premium-studio-theme .sp-entry-button > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.premium-studio-theme .sp-entry-button small {
  color: var(--studio-muted);
  font-size: 9px;
}

.premium-studio-theme .sp-entry-button strong {
  color: var(--studio-ink) !important;
  font-size: 12px;
}

.studio-menu-toggle,
.studio-menu-backdrop {
  display: none;
}

/* Main layout */
.premium-studio-theme .studio-main {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 28px !important;
  width: min(100%, 1220px);
  max-width: none !important;
  margin: 0 auto;
  padding: 0 24px 24px !important;
}

.premium-studio-theme .studio-main > .flex-1 {
  min-width: 0;
}

.premium-studio-theme .studio-main .space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 22px !important;
  margin-bottom: 0 !important;
}

/* Hero */
.premium-studio-theme .studio-hero {
  position: relative;
  min-height: 350px;
  padding: 58px 46px 44px 305px !important;
  overflow: hidden;
  border: 1px solid rgba(206, 222, 248, 0.92) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 17% 37%, rgba(81, 160, 255, 0.22), transparent 26%),
    radial-gradient(circle at 36% 17%, rgba(162, 112, 255, 0.17), transparent 27%),
    linear-gradient(145deg, #fff 0%, #f4f8ff 62%, #eef5ff 100%) !important;
  box-shadow: var(--studio-shadow) !important;
  text-align: right !important;
  isolation: isolate;
}

.premium-studio-theme .studio-hero::before {
  position: absolute;
  left: 38px;
  top: 52px;
  width: 222px;
  height: 222px;
  z-index: -1;
  border-radius: 50%;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%231171ff'/%3E%3Cstop offset='1' stop-color='%236d49f7'/%3E%3C/linearGradient%3E%3Cfilter id='s'%3E%3CfeDropShadow dx='0' dy='10' stdDeviation='8' flood-color='%231142b0' flood-opacity='.25'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M37 93v-9c0-34 21-60 53-60s53 26 53 60v9' fill='none' stroke='url(%23g)' stroke-width='15' stroke-linecap='round' filter='url(%23s)'/%3E%3Crect x='23' y='83' width='34' height='61' rx='17' fill='url(%23g)' transform='rotate(-8 40 113)'/%3E%3Crect x='123' y='83' width='34' height='61' rx='17' fill='url(%23g)' transform='rotate(8 140 113)'/%3E%3Cpath d='M54 136c14 14 58 14 72 0' fill='none' stroke='%23a8c8ff' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center/176px no-repeat,
    radial-gradient(circle at 50% 50%, rgba(221, 235, 255, 0.92), rgba(245, 239, 255, 0.68) 58%, transparent 59%);
  filter: drop-shadow(0 22px 22px rgba(33, 83, 180, 0.13));
}

.premium-studio-theme .studio-hero::after {
  position: absolute;
  left: 22px;
  bottom: 29px;
  width: 250px;
  height: 78px;
  z-index: -2;
  content: "";
  opacity: 0.7;
  background:
    linear-gradient(90deg, transparent 2%, rgba(31, 113, 252, 0.28) 2% 4%, transparent 4% 8%, rgba(109, 73, 247, 0.3) 8% 11%, transparent 11% 16%, rgba(31, 113, 252, 0.3) 16% 19%, transparent 19% 25%, rgba(109, 73, 247, 0.25) 25% 28%, transparent 28% 35%, rgba(31, 113, 252, 0.32) 35% 38%, transparent 38% 45%, rgba(109, 73, 247, 0.28) 45% 48%, transparent 48% 55%, rgba(31, 113, 252, 0.32) 55% 58%, transparent 58% 66%, rgba(109, 73, 247, 0.27) 66% 69%, transparent 69% 77%, rgba(31, 113, 252, 0.3) 77% 80%, transparent 80% 88%, rgba(109, 73, 247, 0.24) 88% 91%, transparent 91%);
  clip-path: polygon(0 55%, 4% 45%, 8% 63%, 12% 34%, 16% 72%, 20% 25%, 24% 59%, 28% 13%, 32% 72%, 36% 29%, 40% 62%, 44% 8%, 48% 75%, 52% 21%, 56% 59%, 60% 34%, 64% 68%, 68% 20%, 72% 56%, 76% 34%, 80% 67%, 84% 40%, 88% 61%, 92% 48%, 96% 58%, 100% 53%, 100% 100%, 0 100%);
}

.premium-studio-theme .hero-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 650px;
  color: var(--studio-ink) !important;
  font-size: clamp(34px, 4.1vw, 56px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -0.048em;
}

.premium-studio-theme .hero-title span,
.premium-studio-theme .hero-title strong {
  color: var(--studio-ink) !important;
}

.premium-studio-theme .hero-title strong {
  background: linear-gradient(90deg, var(--studio-blue), var(--studio-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.premium-studio-theme .hero-value-proposition {
  max-width: 650px;
  margin-top: 24px;
  color: var(--studio-ink-soft) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.premium-studio-theme .hero-free-badge {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-purple));
  box-shadow: 0 8px 18px rgba(66, 88, 236, 0.2);
}

.premium-studio-theme .hero-explanation {
  max-width: 640px;
  margin-top: 11px;
  color: var(--studio-muted) !important;
  font-size: 14px;
  line-height: 1.65;
}

.premium-studio-theme .hero-payment-message {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  max-width: 520px;
  margin-top: 23px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 125, 38, 0.2);
  border-radius: 999px;
  color: #9b3d08 !important;
  background: linear-gradient(135deg, rgba(255, 245, 228, 0.96), rgba(255, 232, 220, 0.92));
  box-shadow: 0 9px 22px rgba(255, 102, 23, 0.1);
  font-size: 12px;
}

.premium-studio-theme .hero-price-amount {
  color: #d64e0e;
  font-weight: 900;
}

.premium-studio-theme .hero-price-note {
  padding-inline-start: 8px;
  border-inline-start: 1px solid rgba(202, 78, 13, 0.24);
  color: #995025 !important;
  font-size: 10px;
}

.premium-studio-theme .hero-benefits {
  display: none !important;
}

/* Process */
.premium-studio-theme .process-stepper {
  margin: 0 !important;
  padding: 0 24px !important;
}

.premium-studio-theme .process-stepper > div {
  min-height: 72px;
  padding: 12px 18px;
  border: 1px solid var(--studio-line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--studio-shadow-sm);
}

.premium-studio-theme .process-stepper-line {
  right: 8% !important;
  left: 8% !important;
  height: 2px !important;
  background: linear-gradient(90deg, #dce6f7, #b9d4ff, #dce6f7) !important;
}

.premium-studio-theme .process-step-number {
  width: 30px !important;
  height: 30px !important;
  border: 2px solid #cbd9ee !important;
  color: var(--studio-muted) !important;
  background: #fff !important;
  box-shadow: 0 4px 11px rgba(36, 72, 128, 0.08);
}

.premium-studio-theme .process-step[data-state="active"] .process-step-number,
.premium-studio-theme .process-step[data-state="completed"] .process-step-number {
  border-color: var(--studio-blue) !important;
  color: #fff !important;
  background: linear-gradient(145deg, var(--studio-blue), var(--studio-blue-strong)) !important;
  box-shadow: 0 7px 17px rgba(11, 99, 246, 0.23);
}

.premium-studio-theme .process-step-label {
  color: var(--studio-muted) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.premium-studio-theme .process-step[data-state="active"] .process-step-label,
.premium-studio-theme .process-step[data-state="completed"] .process-step-label {
  color: var(--studio-blue-strong) !important;
}

/* Shared cards */
.premium-studio-theme .studio-panel,
.premium-studio-theme .checkout-card {
  border: 1px solid var(--studio-line) !important;
  border-radius: var(--studio-radius-lg) !important;
  color: var(--studio-ink) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--studio-shadow) !important;
}

.premium-studio-theme .studio-panel {
  padding: 28px !important;
}

.premium-studio-theme .studio-panel > h2,
.premium-studio-theme .checkout-card > h3 {
  color: var(--studio-ink) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em;
}

.premium-studio-theme .studio-panel > h2 > span:first-child {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px;
  border-radius: 13px !important;
  color: var(--studio-blue) !important;
  background: var(--studio-blue-soft) !important;
  font-size: 12px !important;
}

.premium-studio-theme .studio-panel[data-checkout-section="music"] > h2 > span:first-child {
  color: var(--studio-purple) !important;
  background: var(--studio-purple-soft) !important;
}

/* Text area */
.premium-studio-theme .studio-panel[data-checkout-section="text"] .relative {
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

.premium-studio-theme .studio-panel[data-checkout-section="text"] textarea {
  min-height: 174px;
  border: 1.5px solid #dbe6f5 !important;
  border-radius: 20px !important;
  color: var(--studio-ink) !important;
  background: #fbfdff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.75;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.premium-studio-theme .studio-panel[data-checkout-section="text"] textarea::placeholder {
  color: #99a7c1;
}

.premium-studio-theme .studio-panel[data-checkout-section="text"] textarea:focus {
  border-color: var(--studio-blue) !important;
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.1) !important;
}

.premium-studio-theme .studio-panel[data-checkout-section="text"] .absolute.bottom-3 {
  left: 14px !important;
  bottom: 11px !important;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--studio-muted) !important;
  background: #fff;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 700;
}

.premium-studio-theme .script-writing-help {
  margin: 13px 4px 0;
  color: var(--studio-muted) !important;
  font-size: 12px;
}

.premium-studio-theme .script-writing-help strong {
  color: var(--studio-ink-soft) !important;
}

.premium-studio-theme .script-writing-help a {
  color: var(--studio-blue) !important;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Expandable libraries */
.premium-studio-theme .library-panel {
  overflow: hidden;
}

.premium-studio-theme .library-panel-title {
  display: grid !important;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px !important;
  margin-bottom: 0 !important;
}

.premium-studio-theme .library-panel-name {
  white-space: nowrap;
}

.premium-studio-theme .library-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 12px;
  border: 1px solid var(--studio-line);
  border-radius: 15px;
  color: var(--studio-ink-soft);
  background: var(--studio-surface-soft);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.premium-studio-theme .library-collapse-toggle:hover {
  border-color: #b9cff2;
  background: #f0f6ff;
}

.premium-studio-theme .library-current-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-inline-start: auto;
  color: var(--studio-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.premium-studio-theme .library-current-value small {
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 700;
}

.premium-studio-theme .library-toggle-action {
  color: var(--studio-blue);
  font-size: 12px;
  font-weight: 850;
}

.premium-studio-theme .library-chevron {
  width: 17px;
  height: 17px;
  color: var(--studio-muted);
  transition: transform 0.2s ease;
}

.premium-studio-theme .library-chevron.is-open {
  transform: rotate(180deg);
}

.premium-studio-theme .library-content {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--studio-line);
}

/* Voice tabs and carousel */
.premium-studio-theme .voice-gender-tabs,
.premium-studio-theme .music-category-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 6px;
  border: 1px solid var(--studio-line);
  border-radius: 17px;
  background: #f5f8fe;
}

.premium-studio-theme .voice-gender-tabs {
  width: min(100%, 440px);
  margin-bottom: 20px;
}

.premium-studio-theme .voice-gender-tabs button,
.premium-studio-theme .music-category-button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--studio-ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.premium-studio-theme .voice-gender-tabs button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-blue-strong));
  box-shadow: var(--studio-shadow-blue);
}

.premium-studio-theme .voice-category-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.premium-studio-theme .voice-category-grid,
.premium-studio-theme .music-grid {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(176px, 1fr);
  grid-template-columns: none !important;
  gap: 12px !important;
  padding: 3px 3px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #c6d6ee transparent;
  scrollbar-width: thin;
}

.premium-studio-theme .voice-category-grid::-webkit-scrollbar,
.premium-studio-theme .music-grid::-webkit-scrollbar {
  height: 7px;
}

.premium-studio-theme .voice-category-grid::-webkit-scrollbar-thumb,
.premium-studio-theme .music-grid::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #cad9ef;
}

.premium-studio-theme .voice-selection-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 178px;
  padding: 94px 16px 16px !important;
  scroll-snap-align: start;
  border: 1.5px solid var(--studio-line) !important;
  border-radius: 22px !important;
  color: var(--studio-ink) !important;
  background: linear-gradient(180deg, #fff, #f8fbff) !important;
  box-shadow: var(--studio-shadow-sm) !important;
}

.premium-studio-theme .voice-selection-card::before {
  position: absolute;
  top: 16px;
  right: 50%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 6px solid #f4f7fd;
  border-radius: 50%;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b63f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M12 17v5M8 22h8'/%3E%3C/svg%3E") center/28px no-repeat,
    radial-gradient(circle at 35% 28%, #fff, transparent 21%),
    linear-gradient(145deg, #dceaff, #ece8ff);
  box-shadow: 0 9px 20px rgba(43, 89, 166, 0.13);
  font-size: 27px;
  transform: translateX(50%);
}

.premium-studio-theme .voice-selection-card[aria-pressed="true"] {
  border-color: var(--studio-blue) !important;
  background: linear-gradient(180deg, #fff, #ecf4ff) !important;
  box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.08), var(--studio-shadow-blue) !important;
}

.premium-studio-theme .voice-selection-card[aria-pressed="true"]::after {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E") center/15px no-repeat,
    var(--studio-blue);
  box-shadow: 0 5px 12px rgba(11, 99, 246, 0.25);
  font-size: 12px;
  font-weight: 900;
}

.premium-studio-theme .voice-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.premium-studio-theme .voice-card-name {
  color: var(--studio-ink) !important;
  font-size: 15px;
  font-weight: 900;
}

.premium-studio-theme .voice-selection-card > p {
  margin-top: 6px;
  color: var(--studio-muted) !important;
  font-size: 11px;
  line-height: 1.45;
}

.premium-studio-theme .voice-preview-button,
.premium-studio-theme .music-preview-button,
.premium-studio-theme .sketch-play-button {
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px;
  border: 1px solid #dbe6f7 !important;
  border-radius: 50% !important;
  color: var(--studio-blue) !important;
  background: #fff !important;
  box-shadow: 0 8px 16px rgba(34, 73, 140, 0.1) !important;
}

.premium-studio-theme .voice-preview-button:hover,
.premium-studio-theme .music-preview-button:hover,
.premium-studio-theme .sketch-play-button:hover {
  color: #fff !important;
  background: var(--studio-blue) !important;
}

/* Music carousel */
.premium-studio-theme .studio-panel[data-checkout-section="music"] .library-toggle-action {
  color: var(--studio-purple);
}

.premium-studio-theme .music-category-filter {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  width: 100%;
  margin-bottom: 20px;
}

.premium-studio-theme .music-category-button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, #8a58fb, var(--studio-purple));
  box-shadow: 0 12px 24px rgba(109, 73, 247, 0.2);
}

.premium-studio-theme .music-grid {
  grid-auto-columns: minmax(184px, 216px);
}

.premium-studio-theme .music-grid .selection-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-end !important;
  min-height: 142px;
  padding: 64px 14px 14px !important;
  scroll-snap-align: start;
  border: 1.5px solid var(--studio-line) !important;
  border-radius: 21px !important;
  color: var(--studio-ink) !important;
  background: linear-gradient(180deg, #fff, #fbf9ff) !important;
  box-shadow: var(--studio-shadow-sm) !important;
}

.premium-studio-theme .music-grid .selection-card::before {
  position: absolute;
  top: 18px;
  right: 16px;
  left: 58px;
  overflow: hidden;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32'%3E%3Cg fill='%236d49f7'%3E%3Crect x='1' y='12' width='5' height='8' rx='2.5'/%3E%3Crect x='11' y='6' width='5' height='20' rx='2.5'/%3E%3Crect x='21' y='10' width='5' height='12' rx='2.5'/%3E%3Crect x='31' y='2' width='5' height='28' rx='2.5'/%3E%3Crect x='41' y='8' width='5' height='16' rx='2.5'/%3E%3Crect x='51' y='4' width='5' height='24' rx='2.5'/%3E%3Crect x='61' y='11' width='5' height='10' rx='2.5'/%3E%3Crect x='71' y='5' width='5' height='22' rx='2.5'/%3E%3Crect x='81' y='1' width='5' height='30' rx='2.5'/%3E%3Crect x='91' y='9' width='5' height='14' rx='2.5'/%3E%3Crect x='101' y='5' width='5' height='22' rx='2.5'/%3E%3Crect x='111' y='12' width='5' height='8' rx='2.5'/%3E%3C/g%3E%3C/svg%3E") center/100% 32px no-repeat;
}

.premium-studio-theme .music-grid .selection-card:nth-child(3n + 1)::before { filter: hue-rotate(304deg) saturate(1.2); }
.premium-studio-theme .music-grid .selection-card:nth-child(3n + 2)::before { filter: none; }
.premium-studio-theme .music-grid .selection-card:nth-child(3n + 3)::before { filter: hue-rotate(35deg) saturate(1.25); }

.premium-studio-theme .music-grid .selection-card[aria-pressed="true"] {
  border-color: var(--studio-purple) !important;
  background: linear-gradient(180deg, #fff, #f3efff) !important;
  box-shadow: 0 0 0 3px rgba(109, 73, 247, 0.08), 0 15px 30px rgba(109, 73, 247, 0.17) !important;
}

.premium-studio-theme .music-grid .selection-card[aria-pressed="true"]::after {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  content: "" !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E") center/14px no-repeat,
    var(--studio-purple);
  box-shadow: 0 5px 12px rgba(109, 73, 247, 0.25);
}

.premium-studio-theme .music-grid .selection-card > span {
  color: var(--studio-ink) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.premium-studio-theme .music-grid .music-preview-button {
  position: absolute;
  top: 13px;
  left: 13px;
  color: var(--studio-purple) !important;
}

.premium-studio-theme .music-grid .music-preview-button:hover {
  background: var(--studio-purple) !important;
}

.premium-studio-theme .custom-music-card {
  margin: 0 0 18px !important;
  border: 1.5px dashed #c9d9ef !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #f8fbff, #fbf9ff) !important;
}

.premium-studio-theme .custom-music-card.is-selected,
.premium-studio-theme .custom-music-card.is-dragging {
  border-style: solid !important;
  border-color: var(--studio-purple) !important;
  background: var(--studio-purple-soft) !important;
}

.premium-studio-theme .custom-music-icon {
  color: var(--studio-purple) !important;
  background: var(--studio-purple-soft) !important;
}

.premium-studio-theme .custom-music-copy strong,
.premium-studio-theme .custom-music-heading strong {
  color: var(--studio-ink) !important;
}

.premium-studio-theme .custom-music-copy span,
.premium-studio-theme .custom-music-copy small,
.premium-studio-theme .custom-music-rights {
  color: var(--studio-muted) !important;
}

.premium-studio-theme .custom-music-upload-button,
.premium-studio-theme .custom-music-action {
  border-color: rgba(109, 73, 247, 0.25) !important;
  color: var(--studio-purple) !important;
  background: #fff !important;
}

/* Main CTA, trust and generated result */
.premium-studio-theme .preview-panel {
  padding: 24px 28px 26px !important;
}

.premium-studio-theme [data-runtime-primary-preview="true"] {
  position: relative;
  width: 100%;
  min-height: 76px;
  justify-content: center;
  margin: 0 !important;
  padding: 18px 32px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(100deg, var(--studio-orange), var(--studio-orange-deep)) !important;
  box-shadow: var(--studio-shadow-orange) !important;
  font-size: clamp(20px, 2.2vw, 30px) !important;
  font-weight: 950 !important;
  letter-spacing: -0.025em;
  transform: translateZ(0);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease !important;
}

.premium-studio-theme [data-runtime-primary-preview="true"]::after {
  margin-inline-start: 10px;
  content: "←";
  font-size: 28px;
  font-weight: 500;
}

.premium-studio-theme [data-runtime-primary-preview="true"]:hover:not(:disabled) {
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 40px rgba(255, 82, 18, 0.31) !important;
}

.premium-studio-theme [data-runtime-primary-preview="true"]:active:not(:disabled) {
  transform: translateY(1px) scale(0.995) !important;
}

.premium-studio-theme [data-runtime-primary-preview="true"]:disabled {
  opacity: 0.66 !important;
  box-shadow: none !important;
}

.premium-studio-theme .studio-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 21px;
}

.premium-studio-theme .studio-trust-bar > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 5px 10px;
  color: var(--studio-ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.premium-studio-theme .studio-trust-bar > span + span {
  border-inline-start: 1px solid var(--studio-line);
}

.premium-studio-theme .studio-trust-bar i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: var(--studio-blue);
  background: var(--studio-blue-soft);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.premium-studio-theme .studio-trust-bar span:nth-child(1) i { color: var(--studio-pink); background: #ffe8f2; }
.premium-studio-theme .studio-trust-bar span:nth-child(2) i { color: var(--studio-orange); background: #fff0df; }
.premium-studio-theme .studio-trust-bar span:nth-child(3) i { color: var(--studio-blue); background: var(--studio-blue-soft); }

.premium-studio-theme .preview-panel audio,
.premium-studio-theme .sketch-card audio {
  color-scheme: light;
}

.premium-studio-theme .preview-panel .text-xs,
.premium-studio-theme .preview-panel .text-\[11px\] {
  color: var(--studio-muted) !important;
  border-color: var(--studio-line) !important;
  background: var(--studio-surface-soft) !important;
}

.premium-studio-theme .sketch-generation,
.premium-studio-theme .sketch-completion {
  color: var(--studio-ink) !important;
  background: linear-gradient(145deg, #f5f9ff, #f5f0ff) !important;
  border-color: var(--studio-line) !important;
}

.premium-studio-theme .generation-eyebrow,
.premium-studio-theme .completion-eyebrow {
  color: var(--studio-blue) !important;
}

.premium-studio-theme .generation-active-description,
.premium-studio-theme .generation-patience,
.premium-studio-theme .sketch-completion p {
  color: var(--studio-muted) !important;
}

.premium-studio-theme .sketch-card {
  flex-wrap: wrap;
  border: 1px solid var(--studio-line) !important;
  border-radius: 18px !important;
  color: var(--studio-ink) !important;
  background: #fff !important;
  box-shadow: var(--studio-shadow-sm);
}

.premium-studio-theme .sketch-card[data-selected="true"] {
  border-color: var(--studio-blue) !important;
  background: var(--studio-surface-blue) !important;
}

.premium-studio-theme .sketch-card-title {
  color: var(--studio-ink) !important;
}

.premium-studio-theme .sketch-card-description,
.premium-studio-theme .sketch-card-meta {
  color: var(--studio-muted) !important;
}

/* Checkout */
.premium-studio-theme .studio-main > .w-full.lg\:w-\[360px\] {
  width: 340px !important;
}

.premium-studio-theme .checkout-card {
  top: 104px !important;
  padding: 25px !important;
}

.premium-studio-theme .checkout-card > h3 {
  margin-bottom: 20px !important;
  padding-bottom: 17px !important;
  border-color: var(--studio-line) !important;
}

.premium-studio-theme .checkout-card > h3 svg {
  color: var(--studio-blue) !important;
}

.premium-studio-theme .checkout-card input,
.premium-studio-theme .sp-portal input,
.premium-studio-theme .sp-portal textarea,
.premium-studio-theme .admin-dialog input,
.premium-studio-theme .admin-dialog textarea {
  min-height: 48px;
  border: 1px solid #dbe5f3 !important;
  border-radius: 14px !important;
  color: var(--studio-ink) !important;
  background: #fbfdff !important;
}

.premium-studio-theme .checkout-card input:focus,
.premium-studio-theme .sp-portal input:focus,
.premium-studio-theme .sp-portal textarea:focus,
.premium-studio-theme .admin-dialog input:focus,
.premium-studio-theme .admin-dialog textarea:focus {
  border-color: var(--studio-blue) !important;
  box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.09) !important;
}

.premium-studio-theme .checkout-card .text-sm,
.premium-studio-theme .checkout-card .text-xs,
.premium-studio-theme .checkout-card .text-\[10px\] {
  color: var(--studio-muted) !important;
}

.premium-studio-theme .checkout-card > button,
.premium-studio-theme .checkout-card button[aria-label^="לתשלום"] {
  border: 0 !important;
  border-radius: 18px !important;
  color: #fff !important;
  background: linear-gradient(100deg, var(--studio-orange), var(--studio-orange-deep)) !important;
  box-shadow: var(--studio-shadow-orange) !important;
}

.premium-studio-theme .checkout-security-note {
  border-color: var(--studio-line) !important;
}

.premium-studio-theme .checkout-requirement-notice,
.premium-studio-theme [data-checkout-missing="true"]::before {
  border-color: #f4c5cf !important;
  color: #a61e3a !important;
  background: #fff4f6 !important;
}

/* Studio Pro, account, pricing, admin and history */
.premium-studio-theme .sp-portal {
  --sp-bg: #f3f8ff;
  --sp-card: #fff;
  color: var(--studio-ink) !important;
  background: rgba(9, 31, 79, 0.32) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.premium-studio-theme .sp-login-card,
.premium-studio-theme .sp-content,
.premium-studio-theme .sp-section,
.premium-studio-theme .sp-history-card,
.premium-studio-theme .sp-admin-member,
.premium-studio-theme .sp-payment-list > *,
.premium-studio-theme .sp-offer-account-list > *,
.premium-studio-theme .sp-regular-order-list > *,
.premium-studio-theme .sp-credit-pack-card,
.premium-studio-theme .sp-google-completion-card {
  border: 1px solid var(--studio-line) !important;
  border-radius: 24px !important;
  color: var(--studio-ink) !important;
  background: #fff !important;
  box-shadow: var(--studio-shadow-sm) !important;
}

.premium-studio-theme .sp-login-card,
.premium-studio-theme .sp-content {
  box-shadow: 0 28px 72px rgba(19, 53, 113, 0.18) !important;
}

.premium-studio-theme .sp-header {
  border-bottom: 1px solid var(--studio-line) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.premium-studio-theme .sp-brand strong,
.premium-studio-theme .sp-section-heading h2,
.premium-studio-theme .sp-section-heading h3,
.premium-studio-theme .sp-history-card strong,
.premium-studio-theme .sp-login-card h2,
.premium-studio-theme .sp-login-card h3,
.premium-studio-theme .sp-admin-title,
.premium-studio-theme .sp-price {
  color: var(--studio-ink) !important;
}

.premium-studio-theme .sp-login-hero {
  border: 0 !important;
  border-radius: 25px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #0e62ef, #6d49f7) !important;
  box-shadow: 0 20px 40px rgba(44, 83, 198, 0.2) !important;
}

.premium-studio-theme .sp-login-hero :is(h1, h2, h3, strong, p, span, small),
.premium-studio-theme .sp-login-hero .sp-kicker {
  color: #fff !important;
}

.premium-studio-theme .sp-primary,
.premium-studio-theme .sp-email-login-button,
.premium-studio-theme .studio-pro-generate-button,
.premium-studio-theme .admin-login-submit,
.premium-studio-theme .assisted-primary,
.premium-studio-theme .assisted-studio-save {
  border: 0 !important;
  border-radius: 15px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-purple)) !important;
  box-shadow: var(--studio-shadow-blue) !important;
}

.premium-studio-theme .sp-google-auth-button,
.premium-studio-theme .sp-existing-account-toggle,
.premium-studio-theme .sp-back,
.premium-studio-theme .sp-logout,
.premium-studio-theme .sp-account-actions button,
.premium-studio-theme .sp-history-actions :is(a, button),
.premium-studio-theme .sp-admin-link-button,
.premium-studio-theme .sp-offer-collapse-button,
.premium-studio-theme .studio-pro-account-button,
.premium-studio-theme .studio-pro-download-link {
  border: 1px solid var(--studio-line) !important;
  border-radius: 13px !important;
  color: var(--studio-blue-strong) !important;
  background: var(--studio-surface-soft) !important;
  box-shadow: none !important;
}

.premium-studio-theme .sp-google-auth-button:hover,
.premium-studio-theme .sp-existing-account-toggle:hover,
.premium-studio-theme .sp-account-actions button:hover,
.premium-studio-theme .sp-history-actions :is(a, button):hover,
.premium-studio-theme .sp-admin-link-button:hover {
  border-color: #b8cff2 !important;
  background: var(--studio-surface-blue) !important;
}

.premium-studio-theme .sp-kicker,
.premium-studio-theme .sp-profile-line,
.premium-studio-theme .sp-section p,
.premium-studio-theme .sp-section small,
.premium-studio-theme .sp-history-card small,
.premium-studio-theme .sp-reason,
.premium-studio-theme .sp-empty {
  color: var(--studio-muted) !important;
}

.premium-studio-theme .sp-metric-grid > *,
.premium-studio-theme .sp-summary-grid > *,
.premium-studio-theme .sp-status-grid > *,
.premium-studio-theme .sp-offer-summary-grid > *,
.premium-studio-theme .sp-admin-business-totals > *,
.premium-studio-theme .sp-permission-grid > * {
  border: 1px solid var(--studio-line) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #fbfdff, #f3f7ff) !important;
}

.premium-studio-theme .sp-admin-tabs,
.premium-studio-theme .sp-admin-secondary-nav,
.premium-studio-theme .sp-admin-crm-overview,
.premium-studio-theme .sp-regular-admin-toolbar,
.premium-studio-theme .sp-inline-options {
  border-color: var(--studio-line) !important;
  border-radius: 18px !important;
  background: var(--studio-surface-soft) !important;
}

.premium-studio-theme .sp-admin-tabs button[aria-pressed="true"],
.premium-studio-theme .sp-inline-options button[aria-pressed="true"],
.premium-studio-theme .sp-admin-dashboard-home[aria-pressed="true"] {
  color: #fff !important;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-purple)) !important;
  box-shadow: var(--studio-shadow-blue) !important;
}

.premium-studio-theme .sp-credit-pack-card.is-bonus-offer,
.premium-studio-theme .sp-bonus5-highlight,
.premium-studio-theme .sp-premium-admin {
  border-color: rgba(109, 73, 247, 0.28) !important;
  background: linear-gradient(145deg, #fff, #f5f1ff) !important;
}

.premium-studio-theme .studio-pro-live-strip {
  width: min(calc(100% - 32px), 1120px);
  margin: -10px auto 22px;
  border: 1px solid #c9dcf8 !important;
  border-radius: 17px !important;
  color: var(--studio-ink) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--studio-shadow-sm) !important;
}

.premium-studio-theme .studio-pro-active-banner,
.premium-studio-theme .studio-pro-credit-balance,
.premium-studio-theme .admin-mode-banner,
.premium-studio-theme .assisted-studio-work-card {
  border: 1px solid var(--studio-line) !important;
  border-radius: 18px !important;
  color: var(--studio-ink) !important;
  background: linear-gradient(145deg, #eef5ff, #f4f0ff) !important;
  box-shadow: none !important;
}

/* Dialogs, assisted flow and administrative layers */
.premium-studio-theme .admin-dialog-backdrop {
  background: rgba(9, 31, 79, 0.32) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.premium-studio-theme .admin-dialog,
.assisted-theme .assisted-request-card,
.assisted-theme .assisted-state-card,
.assisted-theme .assisted-sketch-card,
.assisted-theme .assisted-revision-box,
.assisted-theme .assisted-admin-overview,
.assisted-theme .assisted-admin-list-card,
.assisted-theme .assisted-admin-detail {
  border: 1px solid var(--studio-line) !important;
  border-radius: 24px !important;
  color: var(--studio-ink) !important;
  background: #fff !important;
  box-shadow: var(--studio-shadow) !important;
}

.assisted-theme,
.assisted-app {
  color: var(--studio-ink) !important;
  background:
    radial-gradient(circle at 12% 3%, rgba(74, 155, 255, 0.17), transparent 26%),
    linear-gradient(180deg, #f8fbff, #eff6ff) !important;
}

.assisted-theme :is(h1, h2, h3, h4, strong, label) {
  color: var(--studio-ink) !important;
}

.assisted-theme :is(p, span, small) {
  color: var(--studio-muted);
}

/* Footer and floating tools */
.premium-studio-theme .support-whatsapp {
  left: max(14px, env(safe-area-inset-left)) !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  min-height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px !important;
  color: #fff !important;
  background: #16aa67 !important;
  box-shadow: 0 15px 28px rgba(22, 170, 103, 0.22) !important;
}

.premium-studio-theme .accessibility-trigger {
  right: max(14px, env(safe-area-inset-right)) !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  border-radius: 15px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--studio-blue), var(--studio-blue-strong)) !important;
  box-shadow: var(--studio-shadow-blue) !important;
}

.premium-studio-theme .legal-footer {
  width: min(calc(100% - 48px), 1172px);
  margin: 26px auto 0;
  border: 1px solid var(--studio-line);
  border-radius: 22px;
  color: var(--studio-muted) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: var(--studio-shadow-sm);
}

.premium-studio-theme .legal-footer-inner {
  color: inherit !important;
  background: transparent !important;
}

.premium-studio-theme .legal-footer a {
  color: var(--studio-ink-soft) !important;
}

/* Night keeps the same design language without reverting to neon. */
.premium-studio-theme[data-theme="night"] {
  --studio-bg: #0d1730;
  --studio-surface: #15213e;
  --studio-surface-soft: #192746;
  --studio-surface-blue: #1b315d;
  --studio-ink: #f4f7ff;
  --studio-ink-soft: #cad5eb;
  --studio-muted: #9eacc8;
  --studio-line: #2a3a5b;
  --studio-blue-soft: #173466;
  --studio-purple-soft: #2d2754;
  background:
    radial-gradient(circle at 12% 4%, rgba(22, 103, 246, 0.24), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(109, 73, 247, 0.2), transparent 25%),
    #0d1730 !important;
}

.premium-studio-theme[data-theme="night"] :is(.studio-header, .studio-panel, .checkout-card, .process-stepper > div, .legal-footer, .studio-pro-live-strip),
.premium-studio-theme[data-theme="night"] :is(.sp-login-card, .sp-content, .sp-section, .sp-history-card, .sp-admin-member) {
  background: rgba(21, 33, 62, 0.96) !important;
}

.premium-studio-theme[data-theme="night"] .studio-hero {
  background:
    radial-gradient(circle at 17% 37%, rgba(81, 160, 255, 0.24), transparent 27%),
    linear-gradient(145deg, #192746, #121d38) !important;
}

.premium-studio-theme[data-theme="night"] :is(input, textarea, .library-collapse-toggle, .voice-gender-tabs, .music-category-filter, .voice-selection-card, .music-grid .selection-card, .sketch-card, .custom-music-card) {
  color: var(--studio-ink) !important;
  background: var(--studio-surface-soft) !important;
}

/* Responsive */
@media (max-width: 1023px) {
  .premium-studio-theme .studio-main {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 820px);
  }

  .premium-studio-theme .studio-main > .w-full.lg\:w-\[360px\] {
    width: 100% !important;
  }

  .premium-studio-theme .checkout-card {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 767px) {
  .premium-studio-theme .studio-header {
    margin-bottom: 15px !important;
  }

  .premium-studio-theme .studio-header-inner {
    justify-content: flex-start;
    min-height: 70px;
    padding: 8px 15px !important;
  }

  .premium-studio-theme .studio-brand {
    order: 2;
    gap: 9px;
    margin-inline-start: auto;
  }

  .premium-studio-theme .studio-brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  .premium-studio-theme .studio-brand-copy strong { font-size: 15px; }
  .premium-studio-theme .studio-brand-copy span { font-size: 9px; }

  .premium-studio-theme .studio-menu-toggle {
    position: relative;
    order: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid var(--studio-line);
    border-radius: 14px;
    color: var(--studio-ink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--studio-shadow-sm);
  }

  .premium-studio-theme .studio-menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .premium-studio-theme .studio-navigation {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    width: min(84vw, 330px);
    height: 100dvh;
    padding: 92px 20px 24px;
    border-inline-end: 1px solid var(--studio-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: -22px 0 50px rgba(18, 48, 104, 0.18);
    transform: translateX(110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.23s ease;
  }

  .premium-studio-theme[data-theme="night"] .studio-navigation {
    background: rgba(21, 33, 62, 0.98);
  }

  .premium-studio-theme .studio-navigation.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .premium-studio-theme .studio-navigation::before {
    margin-bottom: 4px;
    content: "אזור אישי והגדרות";
    color: var(--studio-ink);
    font-size: 17px;
    font-weight: 900;
  }

  .premium-studio-theme .studio-navigation .studio-lighting-control,
  .premium-studio-theme .studio-navigation .studio-header-actions {
    position: static;
    width: 100%;
  }

  .premium-studio-theme .studio-navigation .studio-lighting-control,
  .premium-studio-theme .studio-navigation .sp-entry-button {
    width: 100%;
    min-height: 58px;
    justify-content: flex-start;
  }

  .premium-studio-theme .studio-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 22, 79, 0.28);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .premium-studio-theme .studio-main {
    gap: 17px !important;
    padding: 0 12px 18px !important;
  }

  .premium-studio-theme .studio-main .space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 15px !important;
  }

  .premium-studio-theme .studio-hero {
    min-height: 440px;
    padding: 44px 23px 195px !important;
    border-radius: 28px !important;
    text-align: right !important;
  }

  .premium-studio-theme .studio-hero::before {
    top: auto;
    bottom: 13px;
    left: 50%;
    width: 190px;
    height: 190px;
    transform: translateX(-50%);
  }

  .premium-studio-theme .studio-hero::after {
    bottom: 23px;
    left: 50%;
    width: 250px;
    transform: translateX(-50%);
  }

  .premium-studio-theme .hero-title {
    max-width: 100%;
    font-size: clamp(32px, 9.4vw, 43px);
    line-height: 1.08;
  }

  .premium-studio-theme .hero-value-proposition {
    margin-top: 18px;
    font-size: 15px;
  }

  .premium-studio-theme .hero-explanation {
    font-size: 12px;
  }

  .premium-studio-theme .hero-payment-message {
    margin-top: 16px;
    border-radius: 17px;
  }

  .premium-studio-theme .process-stepper {
    padding: 0 !important;
  }

  .premium-studio-theme .process-stepper > div {
    min-height: 66px;
    padding: 10px 5px;
    border-radius: 18px;
  }

  .premium-studio-theme .process-step-number {
    width: 27px !important;
    height: 27px !important;
    font-size: 10px !important;
  }

  .premium-studio-theme .process-step-label {
    max-width: 58px;
    font-size: 8px !important;
  }

  .premium-studio-theme .studio-panel,
  .premium-studio-theme .checkout-card {
    padding: 20px !important;
    border-radius: 25px !important;
  }

  .premium-studio-theme .studio-panel > h2,
  .premium-studio-theme .checkout-card > h3 {
    font-size: 20px !important;
  }

  .premium-studio-theme .library-panel-title {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .premium-studio-theme .library-panel-title .library-collapse-toggle {
    grid-column: 1 / -1;
    width: 100%;
  }

  .premium-studio-theme .voice-gender-tabs,
  .premium-studio-theme .music-category-filter {
    width: 100%;
  }

  .premium-studio-theme .voice-category-grid {
    grid-auto-columns: 72%;
  }

  .premium-studio-theme .music-grid {
    grid-auto-columns: 75%;
  }

  .premium-studio-theme [data-runtime-primary-preview="true"] {
    min-height: 66px;
    padding: 15px 18px !important;
    font-size: 22px !important;
  }

  .premium-studio-theme .studio-trust-bar {
    grid-template-columns: 1fr;
    gap: 3px;
    margin-top: 15px;
  }

  .premium-studio-theme .studio-trust-bar > span {
    justify-content: flex-start;
    min-height: 34px;
  }

  .premium-studio-theme .studio-trust-bar > span + span {
    border-inline-start: 0;
  }

  .premium-studio-theme .legal-footer {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .premium-studio-theme .legal-footer-inner {
    align-items: center;
    gap: 10px;
    padding: 18px !important;
    text-align: center;
  }

  .premium-studio-theme .legal-footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .premium-studio-theme .support-whatsapp span {
    display: none;
  }

  .premium-studio-theme .support-whatsapp {
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 0 !important;
  }

  .premium-studio-theme .accessibility-trigger {
    width: 50px;
    min-width: 50px;
    height: 50px;
    padding: 0 !important;
  }

  .premium-studio-theme .accessibility-trigger span {
    display: none;
  }

  .premium-studio-theme .sp-login-card,
  .premium-studio-theme .sp-content {
    width: calc(100% - 18px) !important;
    max-height: calc(100dvh - 18px) !important;
    border-radius: 24px !important;
  }

  .premium-studio-theme .sp-history-card,
  .premium-studio-theme .sp-regular-order-list > *,
  .premium-studio-theme .sp-offer-account-list > * {
    padding: 15px !important;
  }
}

/* Unified post-generation flow: listen, payment, or changes. */
html body .premium-studio-theme .public-result-flow {
  width: min(100%, 700px);
  margin-inline: auto;
  color: #10205f;
  text-align: center;
}

html body .premium-studio-theme .public-result-flow h2 {
  margin: 8px 0 4px;
  color: #07135f !important;
  font-size: clamp(30px, 5vw, 48px) !important;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

html body .premium-studio-theme .public-result-kicker {
  display: inline-flex;
  color: #155fe9;
  font-size: 14px;
  font-weight: 900;
}

html body .premium-studio-theme .public-result-lead {
  margin: 0 auto 20px;
  color: #52618c;
  font-size: 17px;
  line-height: 1.55;
}

html body .premium-studio-theme .public-selected-sketch {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 26px;
  border: 1px solid #dbe8f8;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(246,250,255,.94));
  box-shadow: 0 18px 50px rgba(38, 107, 190, .12);
}

html body .premium-studio-theme .public-selected-badge {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #07926f;
  background: #e4faf3;
  font-size: 14px;
  font-weight: 900;
}

html body .premium-studio-theme .public-selected-badge svg {
  width: 17px;
  height: 17px;
}

html body .premium-studio-theme .public-selected-meta {
  margin: 0;
  color: #53618c;
  font-size: 15px;
  font-weight: 700;
}

html body .premium-studio-theme .public-result-audio {
  width: 100% !important;
  max-width: none !important;
  min-height: 54px;
  accent-color: #0b64f4;
}

html body .premium-studio-theme .public-result-watermark,
html body .premium-studio-theme .public-result-file-note,
html body .premium-studio-theme .public-payment-file-note {
  margin: 0;
  color: #5b688e;
  font-size: 14px;
  line-height: 1.55;
}

html body .premium-studio-theme .public-result-primary {
  width: 100%;
  min-height: 66px;
  margin-top: 18px;
  border: 0;
  border-radius: 19px;
  color: white;
  background: linear-gradient(120deg, #1478ff, #034bd7);
  box-shadow: 0 16px 34px rgba(4, 87, 225, .28);
  font-size: 21px;
  font-weight: 900;
  transition: transform .18s ease, filter .18s ease;
}

html body .premium-studio-theme .public-result-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

html body .premium-studio-theme .public-result-primary:disabled {
  cursor: progress;
  opacity: .65;
  transform: none;
}

html body .premium-studio-theme .public-result-revision-note {
  margin: 12px 0 0;
  padding: 11px 14px;
  border: 1px solid #a8c9fa;
  border-radius: 13px;
  color: #123f99;
  background: #eef5ff;
  font-size: 14px;
  line-height: 1.5;
}

html body .premium-studio-theme[data-theme="night"] .public-result-revision-note {
  border-color: #4265a3;
  color: #d6e6ff;
  background: #19315a;
}

html body .premium-studio-theme .public-result-price,
html body .premium-studio-theme .public-payment-price {
  display: block;
  margin: 14px 0 3px;
  color: #0b175e;
  font-size: 18px;
  font-weight: 900;
}

html body .premium-studio-theme .public-result-secondary {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  border: 2px solid #1768f0;
  border-radius: 17px;
  color: #0b5ce4;
  background: transparent;
  font-size: 17px;
  font-weight: 900;
}

html body .premium-studio-theme .public-result-regenerate {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid #c6d8f5;
  border-radius: 15px;
  color: #155bd7;
  background: #eff5ff;
  font-size: 15px;
  font-weight: 800;
}

html body .premium-studio-theme .public-result-regenerate:hover,
html body .premium-studio-theme .public-result-regenerate:focus-visible {
  background: #e0edff;
  border-color: #86b5f9;
}

html body .premium-studio-theme .public-result-regenerate:disabled {
  cursor: not-allowed;
  opacity: .55;
}

html body .premium-studio-theme .public-result-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  margin: 0 0 14px;
  padding: 8px 18px;
  border: 2px solid #1768f0;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(120deg, #1478ff, #0754dc);
  box-shadow: 0 13px 28px rgba(4, 87, 225, .22);
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

html body .premium-studio-theme .public-result-back > span:first-child {
  font-size: 25px;
  line-height: 1;
}

html body .premium-studio-theme .public-result-back > span:last-child {
  display: grid;
  gap: 1px;
}

html body .premium-studio-theme .public-result-back strong {
  color: inherit;
  font-size: 16px;
  line-height: 1.25;
}

html body .premium-studio-theme .public-result-back small {
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  font-weight: 700;
}

html body .premium-studio-theme .public-change-options {
  display: grid;
  gap: 12px;
}

html body .premium-studio-theme .public-change-card {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 15px 18px;
  border: 1px solid #dce8f7;
  border-radius: 20px;
  color: #10205f;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(30, 104, 185, .09);
  text-align: right;
  text-decoration: none;
}

html body .premium-studio-theme .public-change-card > i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #0961e9;
  background: #eaf4ff;
  font-style: normal;
  font-size: 24px;
}

html body .premium-studio-theme .public-change-card > span {
  display: grid;
  gap: 2px;
}

html body .premium-studio-theme .public-change-card strong {
  font-size: 18px;
  line-height: 1.25;
}

html body .premium-studio-theme .public-change-card small {
  color: #5a678d;
  font-size: 14px;
  line-height: 1.4;
}

html body .premium-studio-theme .public-change-card > b {
  color: #0764ee;
  font-size: 34px;
  line-height: 1;
}

html body .premium-studio-theme .public-previous-sketches {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #d9e8f8;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  text-align: right;
}

html body .premium-studio-theme .public-previous-sketches h3 {
  margin: 0 0 12px;
  color: #10205f;
  font-size: 17px;
  font-weight: 900;
}

html body .premium-studio-theme .public-previous-sketch-list {
  display: grid;
  gap: 9px;
}

html body .premium-studio-theme .public-previous-sketch {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: white;
}

html body .premium-studio-theme .public-previous-sketch audio {
  display: none;
}

html body .premium-studio-theme .public-previous-play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #1269ee;
}

html body .premium-studio-theme .public-previous-play svg {
  width: 16px;
  height: 16px;
}

html body .premium-studio-theme .public-previous-copy {
  display: grid;
  min-width: 0;
}

html body .premium-studio-theme .public-previous-copy strong {
  overflow: hidden;
  color: #142260;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .premium-studio-theme .public-previous-copy small {
  overflow: hidden;
  color: #657092;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .premium-studio-theme .public-previous-select,
html body .premium-studio-theme .public-selected-mini-badge {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: #0961e9;
  background: #e8f3ff;
  font-size: 11px;
  font-weight: 900;
}

html body .premium-studio-theme .public-selected-mini-badge {
  color: #078b6a;
  background: #e3faf2;
}

html body .premium-studio-theme .public-full-service {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid #ccefe4;
  border-radius: 15px;
  background: linear-gradient(145deg, #f7fffc, #effbf7);
  text-align: right;
}

html body .premium-studio-theme .public-full-service > i {
  font-style: normal;
  font-size: 21px;
}

html body .premium-studio-theme .public-full-service > span {
  display: grid;
  min-width: 0;
}

html body .premium-studio-theme .public-full-service h3 {
  margin: 0;
  color: #123064;
  font-size: 13px;
  font-weight: 900;
}

html body .premium-studio-theme .public-full-service p {
  margin: 1px 0 0;
  color: #536889;
  font-size: 10px;
}

html body .premium-studio-theme .public-full-service button {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #0aa37c;
  border-radius: 10px;
  color: #078562;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
}

html body .premium-studio-theme .studio-main[data-checkout-visible="true"] {
  z-index: 700;
}

html:has(.public-payment-overlay),
body:has(.public-payment-overlay) {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html body .public-payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100% !important;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: max(10px, env(safe-area-inset-top)) 10px 0;
  overflow: hidden;
  isolation: isolate;
  background: rgba(4, 13, 46, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overscroll-behavior: contain;
  direction: rtl;
  font-family: inherit;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

html body .public-payment-overlay *,
html body .public-payment-overlay *::before,
html body .public-payment-overlay *::after {
  box-sizing: border-box;
}

html body .public-payment-card {
  position: relative !important;
  top: auto !important;
  width: min(100%, 520px);
  max-height: min(calc(100dvh - max(10px, env(safe-area-inset-top))), 720px);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px !important;
  border: 1px solid #dce8f6 !important;
  border-bottom: 0 !important;
  border-radius: 28px 28px 0 0 !important;
  color: #10205f;
  background: #fff !important;
  box-shadow: 0 -18px 60px rgba(2, 20, 70, .22) !important;
}

html body .public-payment-card::before {
  content: "";
  display: block;
  width: 46px;
  height: 5px;
  margin: -9px auto 16px;
  border-radius: 999px;
  background: #c9d4e4;
}

html body .public-payment-card > h3 {
  justify-content: center;
  margin: 0 0 18px !important;
  padding: 0 34px 17px !important;
  border-color: #e7eef7 !important;
  color: #0b175e !important;
  font-size: 24px !important;
  font-weight: 900;
}

html body .public-payment-close {
  position: absolute;
  top: 23px;
  left: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #142260;
  background: #edf3fa;
  font-size: 28px;
  line-height: 1;
}

html body .public-payment-fields label {
  display: block;
  color: #13205f;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

html body .public-payment-fields input {
  min-height: 52px;
  border-color: #cddbeb !important;
  color: #12205e !important;
  background: #f9fbfe !important;
}

html body .public-payment-price {
  margin: 0;
  text-align: center;
}

html body .public-payment-file-note {
  margin: 5px auto 13px;
  text-align: center;
}

html body .public-packages-option {
  margin: 12px 0 0;
  overflow: hidden;
  border: 1px solid #d9e5f2;
  border-radius: 15px;
}

html body .public-packages-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  border: 0;
  color: #142260;
  background: #f9fbfe;
  text-align: right;
}

html body .public-packages-toggle span {
  display: grid;
}

html body .public-packages-toggle strong {
  font-size: 14px;
  font-weight: 900;
}

html body .public-packages-toggle small {
  color: #697590;
  font-size: 11px;
}

html body .public-packages-link {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-top: 1px solid #d9e5f2;
  color: #075fdf;
  background: #f1f7ff;
  font-size: 13px;
  font-weight: 900;
}

html body .public-payment-card > .public-payment-primary {
  min-height: 58px;
  border-radius: 16px !important;
  color: white !important;
  background: linear-gradient(120deg, #ff9b22, #ff5b25) !important;
  box-shadow: 0 13px 28px rgba(255, 99, 35, .25) !important;
  font-size: 16px !important;
}

html body .premium-studio-theme[data-theme="night"] .public-result-flow h2,
html body .premium-studio-theme[data-theme="night"] .public-result-price,
html body .premium-studio-theme[data-theme="night"] .public-change-card,
html body .premium-studio-theme[data-theme="night"] .public-previous-sketches h3,
html body .premium-studio-theme[data-theme="night"] .public-previous-copy strong,
html body .premium-studio-theme[data-theme="night"] .public-full-service h3 {
  color: #f3f7ff !important;
}

html body .premium-studio-theme[data-theme="night"] .public-selected-sketch,
html body .premium-studio-theme[data-theme="night"] .public-change-card,
html body .premium-studio-theme[data-theme="night"] .public-previous-sketches,
html body .premium-studio-theme[data-theme="night"] .public-previous-sketch {
  border-color: #28436b;
  background: linear-gradient(145deg, #101e3d, #0c1730);
}

html body .premium-studio-theme[data-theme="night"] :is(.public-result-lead, .public-selected-meta, .public-result-watermark, .public-result-file-note, .public-change-card small, .public-previous-copy small, .public-full-service p) {
  color: #abb9d8;
}

html body .premium-studio-theme[data-theme="night"] .public-result-regenerate {
  border-color: #355b94;
  color: #c6dcff;
  background: #142b50;
}

html body .premium-studio-theme[data-theme="night"] .public-result-regenerate:hover,
html body .premium-studio-theme[data-theme="night"] .public-result-regenerate:focus-visible {
  background: #1b3966;
}

html body .premium-studio-theme[data-theme="night"] .public-full-service {
  border-color: #176354;
  background: linear-gradient(145deg, #102f32, #0d252b);
}

@media (min-width: 768px) {
  html body .public-payment-overlay {
    align-items: center;
    padding: 24px;
  }

  html body .public-payment-card {
    border: 1px solid #dce8f6 !important;
    border-radius: 28px !important;
  }
}

@media (max-width: 767px) {
  html body .premium-studio-theme .preview-panel:has(.public-result-flow) {
    padding: 18px 12px !important;
  }

  html body .premium-studio-theme .public-result-flow h2 {
    font-size: 30px !important;
  }

  html body .premium-studio-theme .public-result-lead {
    margin-bottom: 14px;
    font-size: 15px;
  }

  html body .premium-studio-theme .public-selected-sketch {
    gap: 10px;
    padding: 16px 12px;
    border-radius: 20px;
  }

  html body .premium-studio-theme .public-result-primary {
    min-height: 58px;
    margin-top: 14px;
    font-size: 18px;
  }

  html body .premium-studio-theme .public-result-price {
    font-size: 16px;
  }

  html body .premium-studio-theme .public-result-secondary {
    min-height: 50px;
    margin-top: 14px;
    font-size: 15px;
  }

  html body .premium-studio-theme .public-change-card {
    grid-template-columns: 44px 1fr 18px;
    gap: 10px;
    min-height: 78px;
    padding: 11px 12px;
    border-radius: 17px;
  }

  html body .premium-studio-theme .public-change-card > i {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  html body .premium-studio-theme .public-change-card strong {
    font-size: 15px;
  }

  html body .premium-studio-theme .public-change-card small {
    font-size: 12px;
  }

  html body .premium-studio-theme .public-full-service {
    margin-top: 14px;
    padding: 9px 10px;
  }

  html body .public-payment-card {
    padding: 17px 14px max(14px, env(safe-area-inset-bottom)) !important;
  }

  html body .public-payment-card > h3 {
    margin-bottom: 13px !important;
    padding-bottom: 13px !important;
    font-size: 20px !important;
  }

  html body .public-payment-fields {
    margin-bottom: 13px !important;
  }

  html body .public-payment-card > .public-payment-primary {
    min-height: 56px;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  html body .public-payment-overlay {
    align-items: stretch;
  }

  html body .public-payment-card {
    max-height: 100%;
    margin-top: auto;
  }
}

/* Conversion-focused creative refresh: richer hero, real voice avatars and music artwork. */
.premium-studio-theme .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  margin-bottom: 13px;
  padding: 6px 11px;
  border: 1px solid rgba(11, 99, 246, 0.14);
  border-radius: 999px;
  color: var(--studio-blue-strong) !important;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 7px 20px rgba(35, 85, 160, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.premium-studio-theme .hero-eyebrow svg {
  width: 14px;
  height: 14px;
  color: var(--studio-purple);
}

.premium-studio-theme .hero-start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  margin-top: 18px;
  padding: 11px 22px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(115deg, var(--studio-blue), var(--studio-blue-strong) 58%, var(--studio-purple));
  box-shadow: 0 14px 28px rgba(11, 99, 246, 0.25);
  font-size: 15px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.premium-studio-theme .hero-start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(11, 99, 246, 0.31);
}

.premium-studio-theme .hero-start-button span {
  font-size: 20px;
  line-height: 1;
}

html body .premium-studio-theme .studio-hero::before {
  background: url("/assets/visuals/hero-headphones-v2.png") center/contain no-repeat !important;
  filter: drop-shadow(0 24px 24px rgba(33, 71, 157, 0.18));
}

html body .premium-studio-theme .studio-hero::after {
  border-radius: 50%;
  clip-path: none;
  opacity: 0.72;
  background: radial-gradient(ellipse at center, rgba(88, 159, 255, 0.18), rgba(127, 87, 247, 0.08) 52%, transparent 70%);
  filter: blur(2px);
}

html body .premium-studio-theme .hero-payment-message {
  align-items: center !important;
  width: fit-content !important;
  min-height: 40px;
  padding: 7px 13px !important;
  border-color: rgba(255, 122, 24, 0.24) !important;
  background: rgba(255, 248, 240, 0.94) !important;
  box-shadow: 0 8px 20px rgba(255, 104, 24, 0.1) !important;
}

/* The generated sheets keep the page fast while giving every voice a distinct portrait. */
html body .premium-studio-theme .voice-selection-card {
  min-height: 220px;
  padding: 132px 15px 15px !important;
  overflow: hidden;
}

html body .premium-studio-theme .voice-selection-card::before {
  display: none !important;
}

.premium-studio-theme .voice-avatar {
  position: absolute;
  top: 14px;
  right: 50%;
  display: block;
  width: 104px;
  height: 104px;
  border: 5px solid #fff;
  border-radius: 30px;
  background-repeat: no-repeat;
  background-size: 300% 400%;
  background-position: var(--avatar-x) var(--avatar-y);
  box-shadow: 0 12px 26px rgba(26, 68, 143, 0.18);
  transform: translateX(50%);
  transition: transform 0.2s ease;
}

.premium-studio-theme .voice-avatar-male {
  background-image: url("/assets/visuals/voice-avatars-male-v2.jpg");
}

.premium-studio-theme .voice-avatar-female {
  background-image: url("/assets/visuals/voice-avatars-female-v2.jpg");
}

.premium-studio-theme .voice-selection-card:hover .voice-avatar,
.premium-studio-theme .voice-selection-card[aria-pressed="true"] .voice-avatar {
  transform: translateX(50%) scale(1.035);
}

.premium-studio-theme .voice-selection-card[aria-pressed="true"] .voice-avatar {
  border-color: #dceaff;
}

.premium-studio-theme .voice-card-name {
  font-size: 17px !important;
}

.premium-studio-theme .voice-selection-card > p {
  min-height: 32px;
}

/* Each music mood receives purpose-made cover art without changing the audio catalogue. */
html body .premium-studio-theme .music-grid .selection-card {
  min-height: 176px;
  padding: 112px 14px 14px !important;
  overflow: hidden;
}

html body .premium-studio-theme .music-grid .selection-card::before {
  display: none !important;
}

html body .premium-studio-theme .music-grid .selection-card .music-cover {
  position: absolute;
  inset: 0 0 auto;
  display: block !important;
  width: 100%;
  height: 98px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.54);
  background-image: url("/assets/visuals/music-moods-v2.jpg");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  box-shadow: inset 0 -22px 30px rgba(10, 31, 86, 0.1);
}

.premium-studio-theme .music-grid .selection-card[data-mood="calm"] .music-cover { background-position: 0 0; }
.premium-studio-theme .music-grid .selection-card[data-mood="professional"] .music-cover { background-position: 50% 0; }
.premium-studio-theme .music-grid .selection-card[data-mood="modern"] .music-cover { background-position: 100% 0; }
.premium-studio-theme .music-grid .selection-card[data-mood="elegant"] .music-cover { background-position: 0 100%; }
.premium-studio-theme .music-grid .selection-card[data-mood="event"] .music-cover { background-position: 50% 100%; }
.premium-studio-theme .music-grid .selection-card[data-mood="neutral"] .music-cover { background-position: 100% 100%; }

html body .premium-studio-theme .music-grid .music-preview-button {
  top: 67px;
  left: 11px;
  border-color: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 8px 20px rgba(22, 39, 96, 0.2) !important;
}

.premium-studio-theme .music-category-button:nth-child(2) { --mood-accent: #0ea5e9; }
.premium-studio-theme .music-category-button:nth-child(3) { --mood-accent: #245edb; }
.premium-studio-theme .music-category-button:nth-child(4) { --mood-accent: #7247ef; }
.premium-studio-theme .music-category-button:nth-child(5) { --mood-accent: #a63c86; }
.premium-studio-theme .music-category-button:nth-child(6) { --mood-accent: #f06454; }

.premium-studio-theme .music-category-button:not([aria-pressed="true"]) span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-inline-end: 4px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--mood-accent, var(--studio-purple)) 12%, white);
}

@media (max-width: 767px) {
  html body .premium-studio-theme .studio-hero {
    min-height: 344px;
    padding: 19px 16px 78px !important;
    border-radius: 26px !important;
  }

  .premium-studio-theme .hero-eyebrow {
    min-height: 27px;
    margin-bottom: 9px;
    padding: 4px 9px;
    font-size: 9px;
  }

  .premium-studio-theme .hero-title {
    max-width: 330px;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.03;
  }

  .premium-studio-theme .hero-value-proposition {
    max-width: 285px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
  }

  .premium-studio-theme .hero-start-button {
    min-height: 43px;
    margin-top: 10px;
    padding: 8px 15px;
    border-radius: 13px;
    font-size: 13px;
  }

  html body .premium-studio-theme .hero-payment-message {
    position: absolute;
    right: 14px;
    bottom: 13px;
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: 245px;
    min-height: 40px;
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 13px !important;
    font-size: 9px !important;
  }

  html body .premium-studio-theme .hero-payment-message > strong {
    display: none !important;
  }

  html body .premium-studio-theme .hero-payment-message > span {
    width: auto !important;
  }

  html body .premium-studio-theme .hero-price-note {
    padding-inline-start: 6px;
    font-size: 8px !important;
  }

  html body .premium-studio-theme .studio-hero::before {
    top: auto;
    right: auto;
    bottom: -3px;
    left: 6px;
    width: 112px;
    height: 112px;
    background-size: 108px !important;
    transform: none;
  }

  html body .premium-studio-theme .studio-hero::after {
    right: auto;
    bottom: -8px;
    left: -6px;
    width: 138px;
    height: 82px;
    transform: none;
  }

  html body .premium-studio-theme .voice-selection-card {
    min-height: 205px;
    padding: 119px 13px 13px !important;
    flex-basis: 66%;
  }

  .premium-studio-theme .voice-avatar {
    top: 12px;
    width: 92px;
    height: 92px;
    border-width: 4px;
    border-radius: 27px;
  }

  .premium-studio-theme .voice-card-name {
    font-size: 16px !important;
  }

  html body .premium-studio-theme .music-grid .selection-card {
    min-height: 163px;
    padding-top: 102px !important;
    flex-basis: 69%;
  }

  html body .premium-studio-theme .music-grid .selection-card .music-cover {
    height: 89px;
  }

  html body .premium-studio-theme .music-grid .music-preview-button {
    top: 59px;
  }

  .premium-studio-theme .music-category-filter {
    display: flex;
    gap: 7px;
    padding: 4px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
  }

  .premium-studio-theme .music-category-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 6px 10px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
}

/* Keep the opening section compact on tablets and smaller laptops. */
@media (min-width: 768px) and (max-width: 1100px) {
  .premium-studio-theme .studio-hero {
    min-height: 340px;
    padding: 40px 34px 36px 198px !important;
  }

  .premium-studio-theme .studio-hero::before {
    top: 50%;
    left: 22px;
    width: 154px;
    height: 154px;
    background-size: 144px;
    transform: translateY(-58%);
  }

  .premium-studio-theme .studio-hero::after {
    left: 13px;
    bottom: 30px;
    width: 176px;
    height: 58px;
  }

  .premium-studio-theme .hero-title {
    font-size: clamp(32px, 3.6vw, 42px);
  }

  .premium-studio-theme .hero-value-proposition {
    margin-top: 16px;
    font-size: 15px;
  }

  .premium-studio-theme .hero-explanation {
    margin-top: 7px;
    font-size: 12px;
  }

  .premium-studio-theme .hero-payment-message {
    margin-top: 14px;
    padding: 8px 14px;
    font-size: 11px;
  }
}

/* The hamburger is the single scalable home for current and future studio products. */
html body .premium-studio-theme .studio-menu-toggle {
  position: absolute !important;
  top: 15px;
  right: 28px;
  z-index: 104;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--studio-line);
  border-radius: 15px;
  color: var(--studio-ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--studio-shadow-sm);
}

html body .premium-studio-theme .studio-menu-toggle span {
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

html body .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] {
  position: fixed !important;
  top: 15px;
  right: 18px;
}

html body .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html body .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
html body .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

html body .premium-studio-theme .studio-brand {
  order: initial;
  margin: 0 auto !important;
}

html body .premium-studio-theme .studio-navigation {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 102;
  display: flex !important;
  flex-direction: column;
  width: min(92vw, 410px);
  height: 100dvh;
  padding: 86px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-inline-start: 1px solid var(--studio-line);
  color: var(--studio-ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -24px 0 60px rgba(18, 48, 104, 0.2);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(110%);
  transition: transform 0.24s ease, visibility 0.24s ease;
}

html body .premium-studio-theme[data-theme="night"] .studio-navigation {
  background: rgba(15, 27, 52, 0.99);
}

html body .premium-studio-theme .studio-navigation.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

html body .premium-studio-theme .studio-navigation::before {
  display: none !important;
  content: none !important;
}

html body .premium-studio-theme .studio-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(7, 22, 79, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

html body:has(.premium-studio-theme .studio-navigation.is-open) {
  overflow: hidden;
}

.premium-studio-theme .studio-menu-heading {
  margin-bottom: 17px;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--studio-line);
}

.premium-studio-theme .studio-menu-heading > span {
  color: var(--studio-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.premium-studio-theme .studio-menu-heading h2 {
  margin-top: 3px;
  color: var(--studio-ink);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.premium-studio-theme .studio-menu-heading p {
  margin-top: 5px;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.5;
}

html body .premium-studio-theme .studio-navigation .studio-header-actions {
  position: static;
  display: grid;
  gap: 10px;
  width: 100%;
}

html body .premium-studio-theme .studio-menu-card,
html body .premium-studio-theme .sp-entry-button.studio-menu-card {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 92px;
  padding: 13px !important;
  border: 1px solid var(--studio-line) !important;
  border-radius: 19px !important;
  text-align: right;
  background: linear-gradient(145deg, #fff, #f7faff) !important;
  box-shadow: 0 10px 25px rgba(24, 67, 140, 0.07) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

html body .premium-studio-theme .studio-menu-card:hover {
  transform: translateY(-2px);
  border-color: #b9cef2 !important;
  box-shadow: 0 15px 30px rgba(24, 67, 140, 0.12) !important;
}

.premium-studio-theme .studio-menu-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--studio-blue);
  background: var(--studio-blue-soft);
}

.premium-studio-theme .studio-menu-card-icon svg {
  width: 22px;
  height: 22px;
}

.premium-studio-theme .studio-menu-card.is-pro .studio-menu-card-icon {
  color: var(--studio-purple);
  background: var(--studio-purple-soft);
}

.premium-studio-theme .studio-menu-card.is-premium .studio-menu-card-icon {
  color: #c14d0b;
  background: #fff0df;
}

.premium-studio-theme .studio-menu-card-copy {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  min-width: 0;
}

.premium-studio-theme .studio-menu-card-copy small {
  color: var(--studio-muted);
  font-size: 9px;
  font-weight: 750;
}

.premium-studio-theme .studio-menu-card-copy strong {
  color: var(--studio-ink) !important;
  font-size: 15px !important;
  font-weight: 950;
}

.premium-studio-theme .studio-menu-card-copy em {
  margin-top: 2px;
  color: var(--studio-ink-soft);
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.premium-studio-theme .studio-menu-card-arrow {
  color: var(--studio-muted);
  font-size: 18px;
  font-weight: 900;
}

html body .premium-studio-theme .studio-navigation .studio-lighting-control {
  position: static;
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
}

.premium-studio-theme .studio-menu-future-note {
  margin-top: auto;
  padding: 15px 5px 0;
  color: var(--studio-muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

/* Two unambiguous full-width conversion rows in the hero. */
@media (min-width: 768px) {
  html body .premium-studio-theme .studio-hero {
    min-height: 400px;
    padding-bottom: 32px !important;
  }

  html body .premium-studio-theme .hero-start-button,
  html body .premium-studio-theme .hero-payment-message {
    position: static;
    width: min(100%, 520px) !important;
    max-width: 520px;
  }

  html body .premium-studio-theme .hero-payment-message {
    justify-content: center;
    margin-top: 9px;
  }
}

@media (max-width: 767px) {
  html body .premium-studio-theme .studio-menu-toggle {
    top: 8px;
    right: 14px;
    width: 46px;
    height: 46px;
  }

  html body .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] {
    top: 10px;
    right: 14px;
  }

  html body .premium-studio-theme .studio-navigation {
    width: min(92vw, 390px);
    padding: 78px 15px 20px;
  }

  html body .premium-studio-theme .studio-menu-card,
  html body .premium-studio-theme .sp-entry-button.studio-menu-card {
    min-height: 84px;
    padding: 11px !important;
  }

  html body .premium-studio-theme .studio-hero {
    min-height: 316px;
    padding: 19px 16px 15px !important;
  }

  html body .premium-studio-theme .hero-start-button,
  html body .premium-studio-theme .hero-payment-message {
    position: static;
    width: 100% !important;
    max-width: none;
  }

  html body .premium-studio-theme .hero-start-button {
    margin-top: 10px;
  }

  html body .premium-studio-theme .hero-payment-message {
    justify-content: center;
    margin-top: 8px !important;
  }

  html body .premium-studio-theme .studio-hero::before {
    display: none;
  }

  html body .premium-studio-theme .studio-hero::after {
    display: none;
  }
}

@media (max-width: 430px) {
  .premium-studio-theme .studio-brand-copy span { display: none; }
  .premium-studio-theme .studio-brand-mark { width: 40px; height: 40px; }
  .premium-studio-theme .studio-hero { padding-inline: 18px !important; }
  .premium-studio-theme .hero-title { font-size: clamp(30px, 9vw, 38px); }
  .premium-studio-theme .hero-value-proposition { font-size: 14px; }
  .premium-studio-theme .studio-panel,
  .premium-studio-theme .checkout-card { padding: 18px !important; }
  .premium-studio-theme .voice-category-grid { grid-auto-columns: 78%; }
  .premium-studio-theme .music-grid { grid-auto-columns: 80%; }
}

@media (max-width: 375px) {
  .premium-studio-theme .studio-main { padding-inline: 8px !important; }
  .premium-studio-theme .studio-hero { min-height: 452px; border-radius: 24px !important; }
  .premium-studio-theme .hero-title { font-size: 30px; }
  .premium-studio-theme .hero-payment-message { padding: 9px 12px; }
  .premium-studio-theme .process-step-label { display: none; }
  .premium-studio-theme .process-stepper > div { min-height: 48px; }
  .premium-studio-theme .studio-panel > h2,
  .premium-studio-theme .checkout-card > h3 { font-size: 18px !important; }
  .premium-studio-theme [data-runtime-primary-preview="true"] { font-size: 20px !important; }
}

@media (min-width: 1280px) {
  .premium-studio-theme .studio-main {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px !important;
  }

  .premium-studio-theme .studio-main > .w-full.lg\:w-\[360px\] {
    width: 360px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .premium-studio-theme *,
  .premium-studio-theme *::before,
  .premium-studio-theme *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* The legacy day theme uses highly specific declarations; keep the local refresh authoritative. */
html body .premium-studio-theme[data-theme="day"] {
  background:
    radial-gradient(circle at 14% 5%, rgba(91, 174, 255, 0.2), transparent 27%),
    radial-gradient(circle at 85% 11%, rgba(137, 92, 246, 0.14), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eff6ff 44%, #f8fbff 100%) !important;
  color: var(--studio-ink) !important;
}

html body .premium-studio-theme[data-theme="day"] .studio-header {
  border: 0 !important;
  border-bottom: 1px solid rgba(211, 225, 246, 0.88) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 8px 28px rgba(26, 64, 132, 0.06) !important;
}

html body .premium-studio-theme[data-theme="day"] .studio-hero {
  border: 1px solid rgba(206, 222, 248, 0.92) !important;
  background:
    radial-gradient(circle at 17% 37%, rgba(81, 160, 255, 0.22), transparent 26%),
    radial-gradient(circle at 36% 17%, rgba(162, 112, 255, 0.17), transparent 27%),
    linear-gradient(145deg, #fff 0%, #f4f8ff 62%, #eef5ff 100%) !important;
  box-shadow: var(--studio-shadow) !important;
}

html body .premium-studio-theme[data-theme="day"] .studio-brand-copy strong,
html body .premium-studio-theme[data-theme="day"] .studio-brand-copy span,
html body .premium-studio-theme[data-theme="day"] .hero-title span,
html body .premium-studio-theme[data-theme="day"] .studio-panel > h2,
html body .premium-studio-theme[data-theme="day"] .checkout-card > h3 {
  color: var(--studio-ink) !important;
}

html body .premium-studio-theme[data-theme="day"] .hero-title strong {
  color: transparent !important;
}

html body .premium-studio-theme[data-theme="day"] .hero-value-proposition,
html body .premium-studio-theme[data-theme="day"] .hero-explanation {
  color: var(--studio-ink-soft) !important;
}

html body .premium-studio-theme[data-theme="day"] .support-whatsapp {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
}

/* Horizontal libraries keep the first RTL option visible without expanding the page. */
html body .premium-studio-theme .voice-category-grid,
html body .premium-studio-theme .music-grid {
  display: flex !important;
  flex-direction: row;
  direction: rtl;
  grid-template-columns: none !important;
  overflow-x: auto;
}

html body .premium-studio-theme .voice-selection-card {
  flex: 0 0 190px;
}

html body .premium-studio-theme .music-grid .selection-card {
  flex: 0 0 210px;
}

@media (max-width: 767px) {
  .premium-studio-theme .studio-menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: 12px;
    right: 15px;
    z-index: 104;
  }

  /* Compact default flow: the expandable libraries retain their full content on demand. */
  .premium-studio-theme .studio-header-inner {
    min-height: 62px;
  }

  .premium-studio-theme .studio-header {
    margin-bottom: 10px !important;
  }

  .premium-studio-theme .studio-main {
    gap: 10px !important;
  }

  .premium-studio-theme .studio-main .space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 10px !important;
  }

  .premium-studio-theme .studio-hero {
    min-height: 318px;
    padding: 30px 18px 112px !important;
  }

  .premium-studio-theme .studio-hero::before {
    bottom: -1px;
    width: 118px;
    height: 118px;
    background-size: 108px;
  }

  .premium-studio-theme .studio-hero::after {
    bottom: 3px;
    width: 176px;
    height: 52px;
  }

  .premium-studio-theme .hero-title {
    font-size: clamp(28px, 8.2vw, 35px);
  }

  .premium-studio-theme .hero-value-proposition {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.45;
  }

  .premium-studio-theme .hero-explanation {
    display: none;
  }

  .premium-studio-theme .hero-payment-message {
    flex-direction: row !important;
    justify-content: center !important;
    width: auto !important;
    margin-top: 10px;
    padding: 7px 12px;
    font-size: 10px;
  }

  .premium-studio-theme .hero-payment-message > strong {
    display: none !important;
  }

  .premium-studio-theme .hero-payment-message > span {
    width: auto !important;
  }

  .premium-studio-theme .process-stepper > div {
    min-height: 43px;
    padding: 6px 5px;
  }

  .premium-studio-theme .process-step-number {
    width: 25px !important;
    height: 25px !important;
  }

  .premium-studio-theme .process-step-label {
    display: none;
  }

  .premium-studio-theme .studio-panel,
  .premium-studio-theme .checkout-card {
    padding: 16px !important;
    border-radius: 22px !important;
  }

  .premium-studio-theme .studio-panel > h2,
  .premium-studio-theme .checkout-card > h3 {
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }

  .premium-studio-theme .studio-panel > h2 > span:first-child {
    width: 31px !important;
    height: 31px !important;
    flex-basis: 31px;
    border-radius: 11px !important;
  }

  .premium-studio-theme .studio-panel[data-checkout-section="text"] textarea {
    min-height: 118px;
    height: 118px !important;
  }

  .premium-studio-theme .script-writing-help {
    margin-top: 8px;
    font-size: 10px;
  }

  .premium-studio-theme .library-panel[data-collapsed="true"] {
    padding-block: 13px !important;
  }

  .premium-studio-theme .library-panel-title {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .premium-studio-theme .library-panel-title .library-collapse-toggle {
    grid-column: auto;
    min-height: 40px;
    padding: 5px 9px;
  }

  .premium-studio-theme .library-current-value small,
  .premium-studio-theme .library-toggle-action {
    display: none;
  }

  .premium-studio-theme .library-panel-name {
    font-size: 18px;
  }

  .premium-studio-theme .library-content {
    margin-top: 14px;
    padding-top: 14px;
  }

  html body .premium-studio-theme .voice-selection-card {
    flex-basis: 72%;
  }

  html body .premium-studio-theme .music-grid .selection-card {
    flex-basis: 75%;
  }

  .premium-studio-theme .preview-panel {
    padding: 14px 16px 13px !important;
  }

  .premium-studio-theme [data-runtime-primary-preview="true"] {
    min-height: 56px;
    padding: 12px 16px !important;
    font-size: 19px !important;
  }

  .premium-studio-theme [data-runtime-primary-preview="true"]::after {
    font-size: 22px;
  }

  .premium-studio-theme .studio-trust-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 10px;
  }

  .premium-studio-theme .studio-trust-bar > span {
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    padding: 3px 4px;
    font-size: 9px;
    text-align: center;
  }

  .premium-studio-theme .studio-trust-bar > span + span {
    border-inline-start: 1px solid var(--studio-line);
  }

  .premium-studio-theme .studio-trust-bar i {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    border-radius: 7px;
    font-size: 12px;
  }

  .premium-studio-theme .checkout-card > h3 {
    margin-bottom: 12px !important;
  }

  .premium-studio-theme .checkout-card .space-y-4 {
    margin-bottom: 12px !important;
  }

  .premium-studio-theme .checkout-card .text-sm {
    margin-bottom: 10px !important;
    font-size: 11px !important;
  }
}

/* Final mobile authority for the v2 creative layout. */
@media (max-width: 767px) {
  html body .premium-studio-theme .studio-hero {
    min-height: 344px;
    padding: 19px 16px 78px !important;
    border-radius: 26px !important;
  }

  html body .premium-studio-theme .hero-title {
    max-width: 330px;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.03;
  }

  html body .premium-studio-theme .hero-value-proposition {
    max-width: 285px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
  }

  html body .premium-studio-theme .hero-payment-message {
    position: absolute;
    right: 14px;
    bottom: 13px;
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    max-width: 245px;
    min-height: 40px;
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 13px !important;
    font-size: 9px !important;
  }

  html body .premium-studio-theme .hero-payment-message > strong {
    display: none !important;
  }

  html body .premium-studio-theme .hero-payment-message > span {
    width: auto !important;
  }

  html body .premium-studio-theme .hero-price-note {
    padding-inline-start: 6px;
    font-size: 8px !important;
  }

  html body .premium-studio-theme .studio-hero::before {
    top: auto;
    right: auto;
    bottom: -3px;
    left: 6px;
    width: 112px;
    height: 112px;
    background-size: 108px !important;
    transform: none;
  }

  html body .premium-studio-theme .studio-hero::after {
    right: auto;
    bottom: -8px;
    left: -6px;
    width: 138px;
    height: 82px;
    transform: none;
  }

  html body .premium-studio-theme .voice-selection-card {
    min-height: 205px;
    padding: 119px 13px 13px !important;
    flex: 0 0 66%;
  }

  html body .premium-studio-theme .music-grid .selection-card {
    min-height: 163px;
    padding-top: 102px !important;
    flex: 0 0 69%;
  }

  html body .premium-studio-theme .music-category-filter {
    display: flex;
    gap: 7px;
    padding: 4px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
  }
}

html body .premium-studio-theme .hero-price-amount {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .premium-studio-theme .hero-price-note {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

html body .premium-studio-theme .hero-payment-message {
  color: #fff !important;
  background: linear-gradient(110deg, var(--studio-orange), var(--studio-orange-deep)) !important;
  box-shadow: 0 11px 25px rgba(255, 90, 20, 0.2) !important;
}

html body .premium-studio-theme .music-grid .selection-card > span:not(.music-cover) {
  color: var(--studio-ink) !important;
}

@media (min-width: 768px) {
  html body .premium-studio-theme .studio-hero {
    min-height: 380px;
    padding: 40px 46px 70px 305px !important;
  }

  html body .premium-studio-theme .hero-value-proposition {
    margin-top: 15px;
    font-size: 16px;
  }

  html body .premium-studio-theme .hero-explanation {
    display: none;
  }

  html body .premium-studio-theme .hero-start-button {
    margin-top: 14px;
  }

  html body .premium-studio-theme .hero-payment-message {
    position: absolute;
    right: 46px;
    bottom: 24px;
    min-height: 39px;
    margin: 0;
  }

  html body .premium-studio-theme .hero-payment-message > strong {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  html body .premium-studio-theme .studio-hero {
    min-height: 360px;
    padding: 34px 28px 68px 178px !important;
  }

  html body .premium-studio-theme .hero-payment-message {
    right: 28px;
    bottom: 22px;
  }
}

/* Authoritative full-row hero actions after all legacy responsive rules. */
@media (min-width: 768px) {
  html body .premium-studio-theme .studio-hero {
    min-height: 400px;
    padding-bottom: 32px !important;
  }

  html body .premium-studio-theme .hero-start-button,
  html body .premium-studio-theme .hero-payment-message {
    position: static;
    width: min(100%, 520px) !important;
    max-width: 520px;
  }

  html body .premium-studio-theme .hero-payment-message {
    justify-content: center;
    margin-top: 9px;
  }
}

@media (max-width: 767px) {
  html body .premium-studio-theme .studio-hero {
    min-height: 316px;
    padding: 19px 16px 15px !important;
  }

  html body .premium-studio-theme .hero-start-button,
  html body .premium-studio-theme .hero-payment-message {
    position: static;
    width: 100% !important;
    max-width: none;
  }

  html body .premium-studio-theme .hero-start-button {
    margin-top: 10px;
  }

  html body .premium-studio-theme .hero-payment-message {
    justify-content: center;
    margin-top: 8px !important;
  }

  html body .premium-studio-theme .studio-hero::before,
  html body .premium-studio-theme .studio-hero::after {
    display: none;
  }
}

/* Larger, more legible hero conversion copy. */
html body .premium-studio-theme .hero-start-button {
  min-height: 52px;
  font-size: 18px !important;
}

html body .premium-studio-theme .hero-payment-message {
  min-height: 48px;
  font-size: 14px !important;
}

html body .premium-studio-theme .hero-price-amount {
  font-size: 14px !important;
  font-weight: 950;
}

html body .premium-studio-theme .hero-price-note {
  font-size: 11px !important;
  font-weight: 800;
}

@media (max-width: 767px) {
  html body .premium-studio-theme .studio-hero {
    min-height: 334px;
  }

  html body .premium-studio-theme .hero-start-button {
    min-height: 50px;
    font-size: 17px !important;
  }

  html body .premium-studio-theme .hero-payment-message {
    min-height: 47px;
  }
}

/* One connected opening: promise, journey and the first input share a single card. */
html body .premium-studio-theme .studio-opening-flow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(206, 222, 248, 0.96);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--studio-shadow);
}

html body .premium-studio-theme .studio-opening-flow .studio-hero {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body .premium-studio-theme .studio-opening-flow .process-stepper {
  position: relative;
  z-index: 3;
  margin: -18px 22px 0 !important;
  padding: 0 !important;
}

html body .premium-studio-theme .studio-opening-flow .process-stepper > div {
  min-height: 58px;
  border: 1px solid rgba(190, 208, 238, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(28, 74, 150, 0.13);
}

html body .premium-studio-theme .studio-opening-flow > [data-checkout-section="text"] {
  margin: 0 !important;
  padding-top: 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  html body .premium-studio-theme .studio-opening-flow {
    border-radius: 25px;
  }

  html body .premium-studio-theme .studio-opening-flow .studio-hero {
    min-height: 0;
    padding: 15px 16px 29px !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-title {
    font-size: clamp(27px, 7.4vw, 31px);
    line-height: 1.02;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-value-proposition {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-start-button {
    margin-top: 9px;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-payment-message {
    margin-top: 7px !important;
  }

  html body .premium-studio-theme .studio-opening-flow .process-stepper {
    margin: -18px 12px 0 !important;
  }

  html body .premium-studio-theme .studio-opening-flow .process-stepper > div {
    min-height: 45px;
    padding: 6px 4px;
    border-radius: 15px;
  }

  html body .premium-studio-theme .studio-opening-flow > [data-checkout-section="text"] {
    padding: 25px 16px 16px !important;
  }

  html body .premium-studio-theme .studio-opening-flow > [data-checkout-section="text"] > h2 {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }
}

/* Biz AI signature: custom voice-wave B mark with restrained studio motion. */
html body .premium-studio-theme .studio-brand {
  direction: ltr;
  gap: 10px;
}

html body .premium-studio-theme .studio-brand-mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 45% 42%, rgba(51, 187, 255, 0.17), rgba(61, 76, 239, 0.06) 58%, transparent 72%);
  box-shadow: 0 12px 25px rgba(33, 78, 204, 0.16);
  isolation: isolate;
  transition: transform 0.28s ease, filter 0.28s ease;
}

html body .premium-studio-theme .studio-brand:hover .studio-brand-mark {
  transform: translateY(-1px) rotate(-2deg) scale(1.025);
  filter: saturate(1.08);
}

html body .premium-studio-theme .studio-brand-mark::after {
  inset: 4px;
  z-index: -1;
  border: 1px solid rgba(73, 128, 255, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(237, 244, 255, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html body .premium-studio-theme .studio-brand-mark img {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(18, 61, 182, 0.22));
  animation: biz-ai-logo-breathe 4.8s ease-in-out infinite;
}

html body .premium-studio-theme .studio-brand-mark-ring {
  position: absolute;
  inset: -3px;
  z-index: 0;
  border: 1px solid rgba(41, 112, 255, 0.22);
  border-radius: 20px;
  opacity: 0;
  animation: biz-ai-logo-ring 3.6s ease-out infinite;
}

html body .premium-studio-theme .studio-brand-mark-pulse {
  position: absolute;
  top: 5px;
  right: 3px;
  z-index: 3;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #38dcff;
  box-shadow: 0 0 0 4px rgba(56, 220, 255, 0.12), 0 0 11px rgba(56, 220, 255, 0.75);
  opacity: 1;
  animation: biz-ai-logo-pulse 2.5s ease-in-out infinite;
}

html body .premium-studio-theme .studio-brand-copy {
  direction: rtl;
  align-items: flex-start;
  min-width: 98px;
  text-align: left;
}

html body .premium-studio-theme .studio-brand-copy strong {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 25px;
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

html body .premium-studio-theme .studio-brand-copy strong b {
  font: inherit;
}

html body .premium-studio-theme .biz-ai-word-biz {
  color: #07194f;
}

html body .premium-studio-theme .biz-ai-word-ai {
  background: linear-gradient(120deg, #086eff 8%, #6548f7 62%, #9a47f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html body .premium-studio-theme .studio-brand-copy > span {
  margin-top: 4px;
  color: #536789 !important;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

@keyframes biz-ai-logo-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes biz-ai-logo-ring {
  0%, 48% { transform: scale(0.9); opacity: 0; }
  58% { opacity: 0.45; }
  86%, 100% { transform: scale(1.14); opacity: 0; }
}

@keyframes biz-ai-logo-pulse {
  0%, 100% { transform: scale(0.78); opacity: 0.58; }
  50% { transform: scale(1.1); opacity: 1; }
}

@media (max-width: 767px) {
  html body .premium-studio-theme .studio-brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
  }

  html body .premium-studio-theme .studio-brand-mark::after {
    inset: 3px;
    border-radius: 13px;
  }

  html body .premium-studio-theme .studio-brand-mark img {
    width: 42px;
    height: 42px;
  }

  html body .premium-studio-theme .studio-brand-copy {
    min-width: 86px;
  }

  html body .premium-studio-theme .studio-brand-copy strong {
    gap: 4px;
    font-size: 22px;
  }

  html body .premium-studio-theme .studio-brand-copy > span {
    display: block;
    margin-top: 3px;
    font-size: 8.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .premium-studio-theme .studio-brand-mark img,
  html body .premium-studio-theme .studio-brand-mark-ring,
  html body .premium-studio-theme .studio-brand-mark-pulse {
    animation: none !important;
  }
}

/* Reveal checkout only after a real sketch exists in the public flow. */
html body .premium-studio-theme .studio-main:not([data-checkout-visible="true"]) {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 930px);
}

html body .premium-studio-theme .checkout-column {
  animation: studio-checkout-reveal 0.42s cubic-bezier(0.2, 0.72, 0.28, 1) both;
}

@keyframes studio-checkout-reveal {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Final contrast pass for conversion copy and the complete night navigation. */
html body .premium-studio-theme .hero-payment-message {
  background: linear-gradient(110deg, #cc4b12, #b43a10) !important;
}

html body .premium-studio-theme .hero-price-note {
  border-inline-start-color: rgba(255, 255, 255, 0.42);
  color: #fff !important;
}

html body .premium-studio-theme[data-theme="night"] .studio-opening-flow {
  border-color: #31476e;
  background: #15213e;
}

html body .premium-studio-theme[data-theme="night"] .studio-menu-toggle {
  border-color: #3a4f76 !important;
  color: #f7f9ff !important;
  background: #172747 !important;
  box-shadow: 0 10px 24px rgba(2, 8, 24, 0.28) !important;
}

html body .premium-studio-theme[data-theme="night"] .studio-menu-card,
html body .premium-studio-theme[data-theme="night"] .sp-entry-button.studio-menu-card {
  border-color: #33486e !important;
  color: #f4f7ff !important;
  background: linear-gradient(145deg, #1d2d50, #162442) !important;
  box-shadow: 0 12px 27px rgba(2, 8, 24, 0.26) !important;
}

html body .premium-studio-theme[data-theme="night"] .studio-menu-card-copy small,
html body .premium-studio-theme[data-theme="night"] .studio-menu-card-arrow {
  color: #aebbd3 !important;
}

html body .premium-studio-theme[data-theme="night"] .studio-menu-card-copy strong {
  color: #f8faff !important;
}

html body .premium-studio-theme[data-theme="night"] .studio-menu-card-copy em {
  color: #cad5e9 !important;
}

html body .premium-studio-theme[data-theme="night"] .studio-navigation .studio-lighting-control {
  border-color: #354b72 !important;
  color: #f5f8ff !important;
  background: #1a2a4a !important;
}

html body .premium-studio-theme[data-theme="night"] .studio-navigation .studio-lighting-copy small {
  color: #aebbd3 !important;
}

html body .premium-studio-theme[data-theme="night"] .studio-navigation .studio-lighting-copy strong {
  color: #f7f9ff !important;
}

html body .premium-studio-theme[data-theme="night"] .biz-ai-word-biz {
  color: #f7f9ff;
}

html body .premium-studio-theme[data-theme="night"] .studio-brand-copy > span {
  color: #b8c7df !important;
}

@media (prefers-reduced-motion: reduce) {
  html body .premium-studio-theme .checkout-column {
    animation: none;
  }
}

/* Floating support stays anchored in both lighting modes and while the drawer is open. */
html body .premium-studio-theme .support-whatsapp {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  left: max(14px, env(safe-area-inset-left)) !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
}

/* 2026-09-11 — compact mobile-first progressive studio flow */
html body .premium-studio-theme .studio-main > .flex-1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

html body .premium-studio-theme .studio-main > .flex-1 > * {
  margin-top: 0 !important;
}

html body .premium-studio-theme .studio-opening-flow {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid #d8e6fb;
  background: linear-gradient(180deg, #f4f9ff 0%, #edf7ff 100%);
  box-shadow: 0 22px 55px rgba(42, 88, 156, 0.12);
}

html body .premium-studio-theme .studio-opening-flow .studio-hero {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body .premium-studio-theme .studio-opening-flow .studio-hero > * {
  position: relative;
  z-index: 2;
}

html body .premium-studio-theme .studio-opening-flow > [data-checkout-section="text"] {
  border-inline: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 -12px 35px rgba(37, 91, 163, 0.08) !important;
}

html body .premium-studio-theme .studio-opening-flow .process-stepper {
  order: 3;
  margin: 0 !important;
  padding: 0 16px 14px !important;
  background: #fff;
}

html body .premium-studio-theme .studio-opening-flow .process-stepper > div {
  min-height: 58px;
  border: 1px solid #dfe9f8;
  background: linear-gradient(135deg, #fbfdff, #f3f7ff);
  box-shadow: 0 8px 20px rgba(38, 83, 151, 0.08);
}

html body .premium-studio-theme .script-writing-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #61708c;
}

html body .premium-studio-theme .script-writing-help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #7fdfaf;
  border-radius: 999px;
  color: #087b44 !important;
  background: #eafff3;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

html body .premium-studio-theme .script-writing-help a svg {
  width: 17px;
  height: 17px;
}

html body .premium-studio-theme .library-panel {
  overflow: hidden;
  border-color: #dbe7f8 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 16px 38px rgba(43, 88, 157, 0.1) !important;
}

html body .premium-studio-theme .library-guidance {
  margin: 0 0 12px;
  color: #687a9b;
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

html body .premium-studio-theme .voice-gender-tabs,
html body .premium-studio-theme .music-intent-tabs {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

html body .premium-studio-theme .voice-gender-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html body .premium-studio-theme .music-intent-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html body .premium-studio-theme .voice-gender-tabs button,
html body .premium-studio-theme .music-intent-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid #cad9ef;
  border-radius: 16px;
  color: #16275f;
  background: linear-gradient(145deg, #fff, #f2f7ff);
  box-shadow: 0 7px 18px rgba(39, 78, 139, 0.08);
  font-size: 16px;
  font-weight: 850;
  transition: 0.2s ease;
}

html body .premium-studio-theme .voice-gender-tabs button[aria-selected="true"] {
  border-color: #126dff;
  color: #fff;
  background: linear-gradient(135deg, #149cff, #0752ef);
  box-shadow: 0 12px 25px rgba(18, 103, 255, 0.28);
}

html body .premium-studio-theme .music-intent-tabs button[aria-pressed="true"] {
  border-color: #8157ff;
  color: #fff;
  background: linear-gradient(135deg, #a668ff, #6c3cf1);
  box-shadow: 0 12px 25px rgba(116, 71, 239, 0.26);
}

html body .premium-studio-theme .music-intent-tabs button > span {
  font-size: 20px;
}

html body .premium-studio-theme .music-upload-reveal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 7px 3px;
  border: 0;
  color: #607295;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

html body .premium-studio-theme .music-upload-reveal svg {
  width: 15px;
  height: 15px;
}

html body .premium-studio-theme .voice-category-group,
html body .premium-studio-theme #music-library-content {
  position: relative;
}

html body .premium-studio-theme .voice-category-title {
  margin: 13px 4px 8px;
  color: #5c6e91;
  font-size: 12px;
}

html body .premium-studio-theme .voice-category-grid,
html body .premium-studio-theme .music-grid {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 31%);
  gap: 10px !important;
  overflow-x: auto;
  padding: 4px 4px 8px !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

html body .premium-studio-theme .voice-category-grid::-webkit-scrollbar,
html body .premium-studio-theme .music-grid::-webkit-scrollbar {
  display: none;
}

html body .premium-studio-theme .voice-selection-card,
html body .premium-studio-theme .music-grid .selection-card {
  scroll-snap-align: start;
}

html body .premium-studio-theme .voice-selection-card {
  min-height: 150px !important;
  padding: 10px !important;
  border-color: #dbe5f5 !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #fff, #f5f9ff) !important;
}

html body .premium-studio-theme .voice-selection-card .voice-avatar {
  width: 66px;
  height: 66px;
  margin-bottom: 5px;
  border: 3px solid #fff;
  box-shadow: 0 7px 17px rgba(34, 75, 139, 0.18);
}

html body .premium-studio-theme .voice-selection-card > p {
  display: -webkit-box;
  min-height: 30px;
  margin-top: 3px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #687996 !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}

html body .premium-studio-theme .carousel-arrow {
  position: absolute;
  top: 58%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d4e1f3;
  border-radius: 50%;
  color: #1237a1;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 17px rgba(30, 70, 133, 0.18);
  font: 900 25px/1 sans-serif;
}

html body .premium-studio-theme .carousel-next {
  right: -7px;
}

html body .premium-studio-theme .carousel-prev {
  left: -7px;
}

html body .premium-studio-theme .carousel-position-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

html body .premium-studio-theme .carousel-position-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbd6e8;
}

html body .premium-studio-theme .carousel-position-indicator i.is-active {
  width: 18px;
  background: linear-gradient(90deg, #146eff, #7749f4);
}

html body .premium-studio-theme .music-grid .selection-card {
  display: grid !important;
  grid-template-columns: 1fr auto;
  min-height: 112px !important;
  padding: 9px !important;
  border-color: #dbe5f5 !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #fff, #f6f8ff) !important;
}

html body .premium-studio-theme .music-grid .selection-card .music-cover {
  position: relative !important;
  inset: auto !important;
  grid-column: 1 / -1;
  width: 100%;
  height: 48px;
  border-radius: 12px;
}

html body .premium-studio-theme .music-grid .selection-card > span:not(.music-cover) {
  display: block;
  min-width: 0;
  color: #152660 !important;
  font-size: 10px !important;
  line-height: 1.35;
}

html body .premium-studio-theme .music-grid .music-preview-button {
  position: static !important;
  width: 30px;
  height: 30px;
}

html body .premium-studio-theme .music-carousel-arrow {
  top: auto;
  bottom: 55px;
}

html body .premium-studio-theme .preview-panel [data-runtime-primary-preview="true"] {
  width: min(100%, 560px);
  justify-content: center;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(110deg, #ffad27, #ff6b1b) !important;
  box-shadow: 0 16px 32px rgba(255, 112, 25, 0.3) !important;
}

html body .premium-studio-theme .hero-payment-message {
  background: linear-gradient(110deg, #ff9d22, #ff6b1b) !important;
}

html body .premium-studio-theme[data-theme="night"] .library-panel {
  border-color: #334b73 !important;
  background: #172642 !important;
}

html body .premium-studio-theme[data-theme="night"] :is(.voice-gender-tabs button, .music-intent-tabs button) {
  border-color: #405579;
  color: #edf3ff;
  background: linear-gradient(145deg, #223557, #192946);
}

html body .premium-studio-theme[data-theme="night"] :is(.voice-selection-card, .music-grid .selection-card) {
  border-color: #3b527a !important;
  color: #f3f6ff !important;
  background: linear-gradient(145deg, #203354, #182843) !important;
}

html body .premium-studio-theme[data-theme="night"] .library-guidance,
html body .premium-studio-theme[data-theme="night"] .voice-category-title,
html body .premium-studio-theme[data-theme="night"] .music-upload-reveal {
  color: #bdc9dd;
}

@media (max-width: 767px) {
  html body .premium-studio-theme {
    padding-bottom: 58px !important;
  }

  html body .premium-studio-theme .studio-header {
    margin-bottom: 8px !important;
  }

  html body .premium-studio-theme .studio-header-inner {
    min-height: 62px;
    padding: 8px 13px !important;
  }

  html body .premium-studio-theme .studio-brand {
    position: absolute;
    right: auto;
    left: 13px;
  }

  html body .premium-studio-theme .studio-main {
    gap: 12px !important;
    padding-inline: 9px !important;
  }

  html body .premium-studio-theme .studio-main > .flex-1 {
    gap: 12px;
  }

  html body .premium-studio-theme .studio-opening-flow {
    border-radius: 25px !important;
  }

  html body .premium-studio-theme .studio-opening-flow .studio-hero {
    min-height: 238px !important;
    padding: 18px 15px 12px !important;
    text-align: right !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-eyebrow,
  html body .premium-studio-theme .studio-opening-flow .hero-explanation,
  html body .premium-studio-theme .studio-opening-flow .hero-benefits,
  html body .premium-studio-theme .studio-opening-flow .hero-start-button {
    display: none !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-title {
    width: 61%;
    margin: 28px auto 7px 0 !important;
    font-size: clamp(25px, 6.9vw, 30px) !important;
    line-height: 1.06 !important;
    text-align: right !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-value-proposition {
    width: 100%;
    margin: 16px 0 8px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-free-badge {
    display: inline !important;
    margin: 0 3px !important;
    padding: 0 !important;
    color: #165de9 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body .premium-studio-theme .studio-opening-flow .studio-hero::before {
    display: block !important;
    right: -3px !important;
    left: auto !important;
    top: 21px !important;
    width: 39% !important;
    height: 156px !important;
    background-size: contain !important;
    opacity: 1 !important;
    z-index: 1 !important;
  }

  html body .premium-studio-theme .studio-opening-flow .studio-hero::after {
    display: block !important;
    right: -18px !important;
    left: auto !important;
    top: 32px !important;
    bottom: auto !important;
    width: 48% !important;
    height: 164px !important;
    opacity: 0.7 !important;
    z-index: 0 !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-payment-message {
    width: 100% !important;
    min-height: 46px;
    margin: 8px 0 0 !important;
    padding: 8px 12px !important;
    border-radius: 15px !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-payment-message > strong {
    font-size: 12px !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-payment-message .hero-price-amount {
    font-size: 17px !important;
  }

  html body .premium-studio-theme .studio-opening-flow .hero-payment-message .hero-price-note {
    font-size: 11px !important;
  }

  html body .premium-studio-theme .studio-opening-flow > [data-checkout-section="text"] {
    padding: 13px 14px 10px !important;
  }

  html body .premium-studio-theme .studio-opening-flow > [data-checkout-section="text"] > h2 {
    margin-bottom: 9px !important;
    font-size: 17px !important;
  }

  html body .premium-studio-theme [data-checkout-section="text"] textarea {
    height: 110px !important;
    padding: 12px 13px 25px !important;
    border-radius: 15px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  html body .premium-studio-theme .script-writing-help {
    margin-top: 8px;
    font-size: 11px;
  }

  html body .premium-studio-theme .script-writing-help a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 11px;
  }

  html body .premium-studio-theme .studio-opening-flow .process-stepper {
    padding: 0 10px 10px !important;
  }

  html body .premium-studio-theme .studio-opening-flow .process-stepper > div {
    min-height: 48px !important;
    padding: 7px 5px !important;
    border-radius: 15px !important;
  }

  html body .premium-studio-theme .process-step-number {
    width: 23px !important;
    height: 23px !important;
    border-width: 1px !important;
  }

  html body .premium-studio-theme .process-step-label {
    margin-top: 3px !important;
    font-size: 9px !important;
  }

  html body .premium-studio-theme .library-panel {
    padding: 13px !important;
    border-radius: 22px !important;
  }

  html body .premium-studio-theme .library-panel[data-collapsed="true"] {
    min-height: 72px !important;
  }

  html body .premium-studio-theme .library-panel-title {
    min-height: 44px;
    margin-bottom: 10px !important;
    gap: 7px !important;
    font-size: 16px !important;
  }

  html body .premium-studio-theme .library-panel-title .library-collapse-toggle {
    min-width: 0;
    min-height: 40px;
    padding: 5px 8px !important;
  }

  html body .premium-studio-theme .library-current-value {
    overflow: hidden;
    font-size: 10px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body .premium-studio-theme .library-toggle-action {
    font-size: 10px !important;
  }

  html body .premium-studio-theme .voice-gender-tabs button,
  html body .premium-studio-theme .music-intent-tabs button {
    min-height: 54px;
    border-radius: 14px;
    font-size: 14px;
  }

  html body .premium-studio-theme .voice-category-grid,
  html body .premium-studio-theme .music-grid {
    grid-auto-columns: minmax(132px, 45%) !important;
  }

  html body .premium-studio-theme .voice-selection-card {
    min-height: 142px !important;
  }

  html body .premium-studio-theme .voice-selection-card .voice-avatar {
    width: 60px;
    height: 60px;
  }

  html body .premium-studio-theme .custom-music-card {
    margin-top: 8px;
    padding: 12px !important;
  }

  html body .premium-studio-theme .preview-panel {
    padding: 14px !important;
    border-radius: 23px !important;
  }

  html body .premium-studio-theme .preview-panel [data-runtime-primary-preview="true"] {
    min-height: 58px;
    padding: 14px 20px !important;
    border-radius: 18px !important;
    font-size: 18px !important;
  }

  html body .premium-studio-theme .studio-trust-bar {
    gap: 6px !important;
    margin-top: 10px !important;
    font-size: 9px !important;
  }

  html body .premium-studio-theme .support-whatsapp {
    width: 47px !important;
    height: 47px !important;
    padding: 0 !important;
    justify-content: center;
  }

  html body .premium-studio-theme .support-whatsapp > span {
    display: none;
  }
}

/* 2026-09-11 v2 — rebuilt hero layout: real columns, no decorative overlap */
html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .studio-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-areas:
    "title visual"
    "value visual";
  gap: 10px 24px;
  align-items: center;
  min-height: 290px !important;
  padding: 30px 32px 24px !important;
  direction: ltr;
  background:
    radial-gradient(circle at 82% 30%, rgba(56, 155, 255, 0.18), transparent 28%),
    radial-gradient(circle at 66% 5%, rgba(137, 87, 255, 0.2), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f4f8ff 60%, #eef7ff 100%) !important;
}

html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .studio-hero::before,
html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .studio-hero::after {
  display: none !important;
}

html body .premium-studio-theme .hero-product-visual {
  position: relative;
  grid-area: visual;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  isolation: isolate;
}

html body .premium-studio-theme .hero-product-visual img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 225px);
  height: auto;
  filter: drop-shadow(0 25px 24px rgba(29, 70, 167, 0.22));
  animation: hero-headphones-float 5.5s ease-in-out infinite;
}

html body .premium-studio-theme .hero-visual-glow {
  position: absolute;
  z-index: 0;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.82) 0 18%, rgba(70,150,255,0.24) 38%, rgba(139,79,246,0.12) 54%, transparent 70%);
  filter: blur(2px);
}

html body .premium-studio-theme .hero-visual-spark {
  position: absolute;
  z-index: 3;
  color: #ff9f17;
  text-shadow: 0 4px 13px rgba(255, 143, 15, 0.42);
  animation: hero-spark-twinkle 2.8s ease-in-out infinite;
}

html body .premium-studio-theme .hero-visual-spark-one {
  top: 12%;
  right: 8%;
  font-size: 25px;
}

html body .premium-studio-theme .hero-visual-spark-two {
  bottom: 19%;
  left: 5%;
  font-size: 16px;
  animation-delay: -1.3s;
}

html body .premium-studio-theme .hero-visual-signature {
  position: absolute;
  z-index: 4;
  right: -12px;
  bottom: 0;
  color: #173b94;
  font-family: "Segoe Print", "Bradley Hand", "Arial Hebrew", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 3px 12px rgba(255, 255, 255, 0.9);
  transform: rotate(-7deg);
}

html body .premium-studio-theme .hero-visual-signature b {
  color: #f42367;
  font-size: 16px;
}

html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-title {
  grid-area: title;
  align-self: end;
  width: 100% !important;
  margin: 0 !important;
  direction: rtl;
  color: #0a205f;
  font-size: clamp(31px, 4.1vw, 46px) !important;
  line-height: 1.04 !important;
  text-align: right !important;
}

html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-title span,
html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-title strong {
  display: block;
}

html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-title strong {
  margin-top: 5px;
  background: linear-gradient(100deg, #0874ff 4%, #5259f4 53%, #8d45ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-value-proposition {
  grid-area: value;
  align-self: start;
  width: 100% !important;
  margin: 2px 0 0 !important;
  direction: rtl;
  color: #51698e !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  text-align: right !important;
}

html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-free-badge {
  display: inline !important;
  margin: 0 3px !important;
  padding: 0 !important;
  color: #1267ef !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 900;
}

html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-payment-message {
  grid-area: price;
  justify-self: stretch;
  width: 100% !important;
  max-width: none !important;
  min-height: 48px;
  margin: 5px 0 0 !important;
  padding: 9px 18px !important;
  direction: rtl;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 17px !important;
  color: #fff !important;
  background: linear-gradient(105deg, #ffb12a 0%, #ff861b 45%, #ff681c 100%) !important;
  box-shadow: 0 15px 31px rgba(255, 105, 23, 0.25), inset 0 1px 0 rgba(255,255,255,0.44) !important;
}

html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-payment-message > strong {
  color: rgba(255,255,255,0.88) !important;
}

@keyframes hero-headphones-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes hero-spark-twinkle {
  0%, 100% { transform: scale(0.72) rotate(0); opacity: 0.48; }
  50% { transform: scale(1.08) rotate(12deg); opacity: 1; }
}

html body .premium-studio-theme[data-theme="night"] .hero-product-visual {
  filter: saturate(1.06) brightness(1.03);
}

html body .premium-studio-theme[data-theme="night"]:not([data-studio-pro-mode="true"]) .studio-opening-flow .studio-hero {
  background:
    radial-gradient(circle at 82% 30%, rgba(45, 134, 255, 0.2), transparent 30%),
    radial-gradient(circle at 64% 0%, rgba(126, 76, 245, 0.22), transparent 34%),
    linear-gradient(145deg, #172847, #121f39) !important;
}

html body .premium-studio-theme[data-theme="night"]:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-title {
  color: #f5f8ff !important;
}

html body .premium-studio-theme[data-theme="night"]:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-value-proposition {
  color: #c7d3e7 !important;
}

@media (max-width: 767px) {
  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .studio-hero {
    grid-template-columns: minmax(0, 1fr) 138px;
    grid-template-areas:
      "title visual"
      "value value";
    gap: 8px 8px;
    min-height: 0 !important;
    padding: 18px 14px 13px !important;
  }

  html body .premium-studio-theme .hero-product-visual {
    min-height: 118px;
  }

  html body .premium-studio-theme .hero-product-visual img {
    width: 132px;
  }

  html body .premium-studio-theme .hero-visual-glow {
    width: 146px;
  }

  html body .premium-studio-theme .hero-visual-spark-one {
    top: 7px;
    right: 0;
    font-size: 20px;
  }

  html body .premium-studio-theme .hero-visual-spark-two {
    bottom: 13px;
    left: 2px;
    font-size: 13px;
  }

  html body .premium-studio-theme .hero-visual-signature {
    right: -5px;
    bottom: -10px;
    font-size: 10px;
    line-height: 1.12;
  }

  html body .premium-studio-theme .hero-visual-signature b {
    font-size: 12px;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-title {
    align-self: end;
    padding-bottom: 9px;
    font-size: clamp(24px, 6.3vw, 29px) !important;
    line-height: 1.08 !important;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-title strong {
    margin-top: 4px;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-value-proposition {
    margin: 0 !important;
    padding: 0 6px;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-payment-message {
    min-height: 45px;
    margin-top: 3px !important;
    padding: 8px 9px !important;
    border-radius: 15px !important;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-payment-message .hero-price-amount {
    font-size: 16px !important;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-payment-message .hero-price-note {
    font-size: 9px !important;
  }
}

@media (max-width: 390px) {
  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .studio-hero {
    grid-template-columns: minmax(0, 1fr) 116px;
    padding-inline: 12px !important;
  }

  html body .premium-studio-theme .hero-product-visual {
    min-height: 108px;
  }

  html body .premium-studio-theme .hero-product-visual img {
    width: 116px;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-title {
    font-size: 23px !important;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-payment-message > strong {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .premium-studio-theme .hero-product-visual img,
  html body .premium-studio-theme .hero-visual-spark {
    animation: none !important;
  }
}

/* Quiet panel controls: selection buttons, not the header, carry the visual emphasis. */
html body .premium-studio-theme .library-collapse-toggle {
  border: 1px solid #d7e2f3 !important;
  color: #4e6287 !important;
  background: linear-gradient(145deg, #ffffff, #f3f7fd) !important;
  box-shadow: none !important;
}

html body .premium-studio-theme .library-collapse-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

html body .premium-studio-theme .library-panel:not([data-collapsed="true"]) .library-collapse-toggle {
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0 !important;
  border-radius: 50% !important;
}

html body .premium-studio-theme .library-panel:not([data-collapsed="true"]) .library-current-value,
html body .premium-studio-theme .library-panel:not([data-collapsed="true"]) .library-toggle-action {
  display: none !important;
}

html body .premium-studio-theme .library-panel:not([data-collapsed="true"]) .library-chevron {
  margin: 0 auto;
  color: #496083;
}

html body .premium-studio-theme[data-theme="night"] .library-collapse-toggle {
  border-color: #40577e !important;
  color: #d7e2f5 !important;
  background: #203352 !important;
}

html body .premium-studio-theme .library-panel[data-collapsed="true"] {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

html body .premium-studio-theme .library-panel[data-collapsed="true"]:not([data-disabled="true"]):hover {
  transform: translateY(-2px);
  border-color: #96b9ee !important;
  box-shadow: 0 18px 40px rgba(37, 85, 157, 0.15) !important;
}

html body .premium-studio-theme .library-panel[data-collapsed="true"]:not([data-disabled="true"]):focus-visible {
  outline: 3px solid rgba(25, 109, 255, 0.24);
  outline-offset: 3px;
}

html body .premium-studio-theme .library-panel[data-collapsed="true"] .library-collapse-toggle {
  display: none !important;
}

html body .premium-studio-theme .library-panel[data-collapsed="true"] .library-panel-title {
  width: 100%;
  min-height: 45px;
  margin: 0 !important;
}

html body .premium-studio-theme .library-panel[data-collapsed="true"] .library-panel-name {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 44px;
  padding-inline-end: 34px;
}

html body .premium-studio-theme .library-panel[data-collapsed="true"] .library-panel-name::after {
  position: absolute;
  inset-inline-end: 2px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  content: "‹";
  color: #1a61e7;
  background: #edf4ff;
  font: 900 21px/1 sans-serif;
  transform: translateY(-50%);
}

html body .premium-studio-theme .library-panel[data-disabled="true"] {
  cursor: default;
  opacity: 0.7;
}

html body .premium-studio-theme .library-panel[data-disabled="true"] .library-panel-name::after {
  content: "🔒";
  color: #8493aa;
  background: #f1f4f8;
  font-size: 12px;
}

html body .premium-studio-theme .library-panel .library-panel-title .library-collapse-toggle {
  display: none !important;
}

html body .premium-studio-theme .library-panel:not([data-collapsed="true"]) .library-panel-title {
  width: 100%;
}

html body .premium-studio-theme .library-panel:not([data-collapsed="true"]) .library-panel-name {
  flex: 1;
}

html body .premium-studio-theme[data-theme="night"] .library-panel[data-collapsed="true"] .library-panel-name::after {
  color: #b9d0ff;
  background: #243a61;
}

@media (max-width: 767px) {
  html body .premium-studio-theme .library-panel[data-collapsed="true"] {
    min-height: 70px !important;
    padding-block: 10px !important;
  }

  html body .premium-studio-theme .library-panel[data-collapsed="true"] .library-panel-name {
    padding-inline-end: 31px;
    font-size: 14px !important;
    line-height: 1.35;
  }

  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .hero-value-proposition {
    padding-bottom: 7px;
  }
}

/* 2026-09-11 v3 — compact mobile libraries and a clear always-available CTA */
@media (max-width: 767px) {
  html body .premium-studio-theme .library-panel-title {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 40px;
    column-gap: 8px !important;
    row-gap: 3px !important;
  }

  html body .premium-studio-theme .library-panel-title > span:first-child {
    align-self: start;
    margin-top: 4px;
  }

  html body .premium-studio-theme .library-panel-name {
    min-width: 0;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html body .premium-studio-theme .voice-category-grid,
  html body .premium-studio-theme .music-grid {
    gap: 8px !important;
    padding-inline: 2px !important;
  }

  html body .premium-studio-theme .voice-selection-card,
  html body .premium-studio-theme .music-grid .selection-card {
    flex: 0 0 calc((100% - 16px) / 3) !important;
    min-width: 102px;
  }

  html body .premium-studio-theme .voice-selection-card {
    min-height: 122px !important;
    padding: 8px !important;
    border-radius: 15px !important;
  }

  html body .premium-studio-theme .voice-selection-card .voice-avatar {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 50px;
    height: 50px;
    margin: 0 auto 5px;
    border-width: 2px;
    border-radius: 17px;
    transform: none !important;
  }

  html body .premium-studio-theme .voice-card-heading {
    gap: 4px;
  }

  html body .premium-studio-theme .voice-card-name {
    min-width: 0;
    font-size: 12px !important;
    line-height: 1.2;
  }

  html body .premium-studio-theme .voice-selection-card > p {
    min-height: 25px;
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  html body .premium-studio-theme .voice-preview-button,
  html body .premium-studio-theme .music-preview-button {
    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px;
  }

  html body .premium-studio-theme .music-grid .selection-card {
    min-height: 96px !important;
    padding: 7px !important;
    border-radius: 15px !important;
  }

  html body .premium-studio-theme .music-grid .selection-card .music-cover {
    height: 38px;
    border-radius: 9px;
  }

  html body .premium-studio-theme .music-grid .selection-card > span:not(.music-cover) {
    font-size: 9px !important;
  }

  html body .premium-studio-theme .preview-panel {
    margin-top: 0 !important;
  }

  html body .premium-studio-theme .preview-panel [data-runtime-primary-preview="true"] {
    min-height: 56px;
    font-size: 17px !important;
  }
}

@media (max-width: 360px) {
  html body .premium-studio-theme .voice-selection-card,
  html body .premium-studio-theme .music-grid .selection-card {
    flex-basis: calc((100% - 8px) / 2.35) !important;
  }
}

@media (max-width: 767px) {
  html body .premium-studio-theme:not([data-studio-pro-mode="true"]) .studio-opening-flow .studio-hero {
    border-bottom: 7px solid #eaf3ff !important;
  }

  html body .premium-studio-theme .studio-panel[data-checkout-missing="true"][data-checkout-message]::before {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 10px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }
}
