:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: rgba(23, 25, 31, 0.88);
  --panel-solid: #17191f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f3ea;
  --muted: #aaa6a0;
  --teal: #39d7c8;
  --coral: #ff7468;
  --amber: #ffc766;
  --green: #72e89b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  --top-control-height: 48px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  overflow: hidden;
}

body.is-voice-embed {
  background: #1a1b21;
}

body.is-voice-embed .topbar,
body.is-voice-embed main,
body.is-voice-embed #voiceModal {
  display: none !important;
}

body.is-voice-embed .app-shell {
  min-height: 100dvh;
}

body.is-voice-embed .voice-record-modal {
  padding: 0;
  background: #1a1b21;
}

body.is-hum-embed {
  background: #0f1015;
}

body.is-hum-embed .topbar,
body.is-hum-embed .hero-media,
body.is-hum-embed .hero-copy,
body.is-hum-embed .mode-tabs {
  display: none !important;
}

body.is-hum-advanced-embed .generator-form > .section-inserts,
body.is-hum-advanced-embed .generator-form > .pro-feature-grid,
body.is-hum-advanced-embed .generator-form > .selected-voice-strip,
body.is-hum-advanced-embed .generator-form > .voice-name-field,
body.is-hum-advanced-embed .generator-form > .form-grid,
body.is-hum-advanced-embed .generator-form > .generation-note {
  display: none !important;
}

body.is-hum-picker-embed .generator-form > :not(.hum-workspace) {
  display: none !important;
}

body.is-hum-picker-embed .generator {
  padding: 16px;
}

body.is-hum-embed .app-shell,
body.is-hum-embed main,
body.is-hum-embed .hero {
  min-height: 100dvh;
}

body.is-hum-embed .hero {
  align-items: stretch;
  padding: 0;
}

body.is-hum-embed .hero-content {
  width: 100%;
  max-width: none;
  align-items: stretch;
  gap: 0;
}

body.is-hum-embed .generator {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: #0f1015;
  box-shadow: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(16, 17, 20, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.top-actions,
.nav-links,
.mode-tab,
.mini-btn,
.generate-btn,
.status-header,
.track-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand .xlike-logo-shell {
  --xlike-logo-size: 44px;
  border-radius: 11px;
}

.brand-mark,
.icon-btn,
.play-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.brand-mark {
  color: #06100f;
  background: linear-gradient(135deg, var(--teal), var(--amber));
}

.brand svg,
.icon-btn svg,
.play-btn svg,
.mode-tab svg,
.mini-btn svg,
.generate-btn svg,
.cover svg,
.extras-grid svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  margin-left: auto;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
  align-items: center;
}

.nav-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  line-height: 1;
}

.nav-links a,
.nav-button,
.language-picker,
.member-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--top-control-height);
  box-sizing: border-box;
  min-height: var(--top-control-height);
  max-height: var(--top-control-height);
  margin: 0;
  padding: 0 22px;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.nav-links a,
.nav-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.nav-links a:hover,
.nav-button:hover,
.language-picker:hover,
.member-button:hover {
  color: #091311;
  border-color: rgba(57, 215, 200, 0.82);
  background: linear-gradient(135deg, var(--teal), var(--amber));
  box-shadow:
    0 0 0 1px rgba(57, 215, 200, 0.18),
    0 12px 30px rgba(57, 215, 200, 0.2);
  transform: translateY(-2px);
}

.nav-links a.is-current,
.nav-links a:focus,
.nav-links a:active,
.nav-button:focus,
.nav-button:active {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.top-actions {
  gap: 10px;
  align-items: center;
}

.language-picker,
.member-button {
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.language-menu-wrap {
  position: relative;
  width: 106px;
}

.language-picker {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  justify-content: center;
  border-color: rgba(56, 189, 248, 0.52);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(124, 58, 237, 0.28)),
    rgba(17, 17, 20, 0.92);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.language-picker span {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.language-picker strong {
  min-width: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.language-picker svg {
  width: 16px;
  height: 16px;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 8px;
  background: rgba(9, 7, 13, 0.99);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 28px rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(18px);
}

.language-dropdown button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 0 12px;
}

.language-dropdown button:last-child {
  border-bottom: 0;
}

.language-dropdown button:hover,
.language-dropdown button.is-active {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
}

.member-wrap {
  position: relative;
}

.member-button {
  min-width: 100px;
  padding: 0 16px;
  justify-content: center;
  line-height: 1;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #071211;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  font-size: 13px;
  font-weight: 900;
}

.member-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.member-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  z-index: 40;
  width: min(236px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 25, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.member-panel[hidden] {
  display: none;
}

.member-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  left: auto;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(18, 20, 25, 0.96);
  transform: rotate(45deg);
}

.member-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.member-panel-head strong {
  font-size: 16px;
}

.member-panel-head span,
.member-stat span {
  color: var(--muted);
  font-size: 12px;
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.member-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.member-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.member-panel a,
.member-panel button {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #e9e3d8;
  background: transparent;
  text-align: left;
  line-height: 38px;
}

.member-panel a:hover,
.member-panel button:hover {
  background: rgba(57, 215, 200, 0.12);
}

.badge-member-panel {
  padding: 6px 0;
  overflow: hidden;
}

.badge-member-row,
.badge-member-name,
.member-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 24px);
  min-height: 42px;
  margin: 0 12px;
  padding: 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(246, 240, 232, 0.86);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-member-meta {
  flex-direction: column;
  gap: 4px;
  min-height: 52px;
  line-height: 1.1;
}

.badge-member-label {
  color: rgba(246, 240, 232, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.badge-member-meta strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-member-name {
  color: var(--text);
  font-size: 15px;
}

.member-panel .member-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 24px);
  min-height: 42px;
  margin: 0 12px;
  padding: 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  line-height: normal;
  text-align: center;
}

.badge-member-row:last-of-type {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.member-panel .member-dropdown-item:last-child {
  border-bottom: 0;
}

.member-button.is-member {
  width: 42px;
  padding: 0;
  justify-content: center;
  border-color: rgba(57, 215, 200, 0.45);
}

.member-button.is-member .member-name {
  display: none;
}

.icon-btn,
.ghost-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.ghost-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #efe8dc;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 118px clamp(20px, 5vw, 72px) 72px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, 0.82), rgba(16, 17, 20, 0.35) 45%, rgba(16, 17, 20, 0.78)),
    linear-gradient(180deg, rgba(16, 17, 20, 0.25), var(--bg) 96%),
    url("assets/studio-bg.png") center / cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(700px, 820px);
  gap: clamp(24px, 3vw, 42px);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}

.generator {
  margin-top: -22px;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 560px;
  color: #d8d2c8;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.generator,
.status-panel,
.track-card,
.plan {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.generator {
  border-radius: 8px;
  padding: 20px;
  overflow: visible;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -2px -2px 18px;
  padding: 2px;
  overflow: visible;
}

.mode-tab {
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.mode-tab.is-active {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.mode-tab.is-active:hover,
.mode-tab:hover {
  color: #091311 !important;
  border-color: rgba(57, 215, 200, 0.82) !important;
  background: linear-gradient(135deg, var(--teal), var(--amber)) !important;
  box-shadow:
    0 0 0 1px rgba(57, 215, 200, 0.18),
    0 12px 30px rgba(57, 215, 200, 0.2) !important;
  transform: translateY(-2px) !important;
  font-weight: 800;
}

.lyrics-source {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.lyrics-source.is-visible {
  display: flex;
}

.source-btn,
.template-cloud button,
.section-inserts button,
.settings-toggle,
.language-pills button,
.style-cats button,
.style-tags button,
.mode-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.source-btn:hover,
.template-cloud button:hover,
.section-inserts button:hover,
.settings-toggle:hover,
.language-pills button:hover,
.style-cats button:hover,
.style-tags button:hover,
.mode-tab:hover {
  color: var(--text);
  border-color: rgba(57, 215, 200, 0.72);
  background: rgba(57, 215, 200, 0.08);
  box-shadow:
    0 0 0 1px rgba(57, 215, 200, 0.14),
    0 10px 26px rgba(57, 215, 200, 0.16);
  transform: translateY(-2px);
}

.source-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
}

.source-btn.is-active {
  color: #071211;
  border-color: transparent;
  background: var(--green);
  font-weight: 800;
}

.template-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 78px;
  margin: -2px -2px 12px;
  padding: 2px;
  overflow: hidden;
}

.template-cloud.is-expanded {
  max-height: none;
}

.template-cloud button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
}

.section-inserts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.section-inserts button {
  min-height: 30px;
  padding: 0 10px;
}

.field-label,
.control-field span {
  display: block;
  margin-bottom: 8px;
  color: #e8e0d4;
  font-size: 13px;
  font-weight: 700;
}

.prompt-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 11, 14, 0.72);
  overflow: hidden;
}

textarea {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 16px;
  border: 0;
  resize: vertical;
  color: var(--text);
  background: transparent;
  outline: none;
  line-height: 1.7;
}

textarea::placeholder {
  color: #7c7770;
}

.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mini-btn[hidden],
.prompt-style-control[hidden] {
  display: none !important;
}

.prompt-style-control {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  width: 100%;
  min-height: 78px;
  margin-top: 10px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(15, 18, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.prompt-style-control span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.prompt-style-control :is(input, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  height: 76px;
  padding: 15px 16px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}

.prompt-style-control :is(input, textarea)::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.prompt-footer > span:last-child {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.prompt-footer > span:last-child strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.settings-toggle {
  --settings-angle: 0deg;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  color: #e9e2d8;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(31, 33, 39, 0.96), rgba(31, 33, 39, 0.96)) padding-box,
    conic-gradient(
      from var(--settings-angle),
      rgba(13, 13, 16, 0) 0deg,
      #ff4d6d 42deg,
      #ff8a2a 110deg,
      #facc15 180deg,
      #7c3aed 250deg,
      rgba(13, 13, 16, 0) 330deg
    ) border-box;
  box-shadow: 0 0 22px rgba(255, 138, 42, 0.1);
  animation: settings-border-orbit 5s linear infinite;
}

.advanced-panel {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.advanced-panel[hidden] {
  display: none;
}

.language-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.language-pills span,
.style-board-head span {
  color: #e8e0d4;
  font-size: 13px;
  font-weight: 800;
}

.language-pills button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
}

.language-pills button.is-selected,
.style-tags button.is-selected {
  color: #071211;
  border-color: transparent;
  background: var(--green);
  font-weight: 900;
}

.style-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(10, 11, 14, 0.45);
  overflow: visible;
}

.style-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.style-board-head strong {
  color: var(--muted);
  font-size: 12px;
}

.style-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: -2px -2px 10px;
  padding: 2px;
  overflow: visible;
}

.style-cats button {
  min-height: 34px;
}

.style-cats button.is-active {
  color: #071211;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  font-weight: 900;
}

.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 118px;
  margin: -2px;
  padding: 2px;
  overflow-y: auto;
  overflow-x: visible;
}

.style-tags button {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
}

.mini-btn {
  gap: 7px;
  min-height: 34px;
  border: 0;
  color: var(--text);
  background: transparent;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.control-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #20242b;
  outline: none;
}

.control-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #20242b;
  outline: none;
}

.title-field {
  display: block;
}

.compact-controls {
  margin-top: 14px;
}

.tag-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.tag {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.tag.is-selected {
  color: #071211;
  border-color: transparent;
  background: var(--green);
  font-weight: 800;
}

.generate-btn {
  --generate-angle: 0deg;
  position: relative;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(rgba(17, 19, 24, 0.96), rgba(17, 19, 24, 0.96)) padding-box,
    conic-gradient(
      from var(--generate-angle),
      rgba(13, 13, 16, 0) 0deg,
      rgba(13, 13, 16, 0) 14deg,
      #ef4444 28deg,
      #f59e0b 82deg,
      #22c55e 136deg,
      #06b6d4 190deg,
      #7c3aed 244deg,
      rgba(13, 13, 16, 0) 298deg,
      rgba(13, 13, 16, 0) 360deg
    ) border-box;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 44px rgba(6, 182, 212, 0.1);
  animation: generate-border-orbit 4.1s linear infinite;
  overflow: visible;
  transition:
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.generate-btn svg {
  width: 22px;
  height: 22px;
}

.generate-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 14px;
  background:
    conic-gradient(
      from var(--generate-angle),
      rgba(13, 13, 16, 0) 0deg,
      rgba(13, 13, 16, 0) 14deg,
      rgba(239, 68, 68, 0.18) 28deg,
      rgba(245, 158, 11, 0.14) 82deg,
      rgba(34, 197, 94, 0.14) 136deg,
      rgba(6, 182, 212, 0.2) 190deg,
      rgba(124, 58, 237, 0.2) 244deg,
      rgba(13, 13, 16, 0) 298deg,
      rgba(13, 13, 16, 0) 360deg
    );
  filter: blur(16px);
  opacity: 0.46;
  pointer-events: none;
}

.generate-btn:hover {
  color: #08100f;
  background:
    linear-gradient(135deg, var(--teal), var(--amber) 62%, var(--coral)) padding-box,
    conic-gradient(
      from var(--generate-angle),
      #ef4444,
      #f59e0b,
      #22c55e,
      #06b6d4,
      #7c3aed,
      #ef4444
    ) border-box;
  box-shadow:
    0 0 0 1px rgba(57, 215, 200, 0.2),
    0 18px 50px rgba(57, 215, 200, 0.24);
  transform: translateY(-2px);
}

@property --generate-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes generate-border-orbit {
  to {
    --generate-angle: 360deg;
  }
}

@property --settings-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes settings-border-orbit {
  to {
    --settings-angle: 360deg;
  }
}

.generator .settings-toggle:hover {
  color: #fff !important;
  border-color: transparent !important;
  background:
    linear-gradient(135deg, #ff4d6d, #ff8a2a 50%, #7c3aed) padding-box,
    conic-gradient(
      from var(--settings-angle),
      #ff4d6d,
      #ff8a2a,
      #facc15,
      #7c3aed,
      #ff4d6d
    ) border-box !important;
  box-shadow:
    0 0 0 1px rgba(255, 138, 42, 0.18),
    0 14px 34px rgba(255, 77, 109, 0.24) !important;
  transform: translateY(-2px) !important;
}

.generation-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.generation-note span + span::before {
  content: "·";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.26);
}

.workbench,
.plans {
  padding: 80px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 1280px;
  margin: 0 auto 24px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.queue-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.status-panel {
  border-radius: 8px;
  padding: 22px;
}

.status-header {
  gap: 10px;
  margin-bottom: 22px;
  color: #ede6dc;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(255, 199, 102, 0.13);
}

.progress-track {
  height: 10px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 320ms ease;
}

.metrics {
  display: grid;
  gap: 12px;
}

.metrics div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.metrics strong {
  font-size: 21px;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.results-grid {
  display: grid;
  gap: 12px;
}

.track-card {
  gap: 16px;
  min-height: 108px;
  border-radius: 8px;
  padding: 14px;
}

.cover {
  display: grid;
  place-items: center;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  border-radius: 8px;
}

.cover-one {
  background: linear-gradient(135deg, #39d7c8, #1b564e);
}

.cover-two {
  background: linear-gradient(135deg, #ff7468, #5e2c33);
}

.cover-three {
  background: linear-gradient(135deg, #ffc766, #476c55);
}

.cover svg {
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.92);
}

.track-info {
  min-width: 0;
  flex: 1;
}

.track-info p {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 900;
}

.track-info span {
  color: var(--muted);
  font-size: 14px;
}

.play-btn {
  flex: 0 0 42px;
  border: 0;
  color: #06100f;
  background: var(--teal);
}

.plans {
  background: #15161a;
}

.feature-hub {
  padding: 80px clamp(20px, 5vw, 72px);
  background: #101114;
}

.guide-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto 14px;
}

.extras-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-solid);
  font-weight: 900;
}

.comment-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.comment-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comment-box input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.comment-box button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #071211;
  background: var(--teal);
  font-weight: 900;
}

.guide-grid article,
.market-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel-solid);
}

.guide-grid strong,
.market-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.guide-grid p,
.market-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.market-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.market-card button,
.modal-actions button {
  min-height: 40px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #071211;
  background: var(--teal);
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal[hidden] {
  display: none;
}

body.is-voice-record-open {
  overflow: hidden;
}

.voice-record-modal {
  z-index: 96;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 12, 0.72);
  overflow: hidden;
}

.voice-record-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(112px, 1fr) auto auto;
  width: min(736px, calc(100vw - 48px));
  height: min(500px, calc(100dvh - 48px));
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #f7f7f8;
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 70, 32, 0.12), transparent 25%),
    #1c1d20;
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.44);
  overflow: hidden;
}

.voice-record-modal.is-recorded .voice-record-panel {
  grid-template-rows: auto minmax(166px, 1fr) auto;
  height: min(416px, calc(100dvh - 48px));
  min-height: 336px;
}

.voice-record-modal.is-auth .voice-record-panel {
  grid-template-rows: auto auto minmax(116px, 1fr) auto auto;
  width: min(900px, calc(100vw - 48px));
  height: min(720px, calc(100dvh - 48px));
  min-height: 560px;
}

.voice-record-topbar {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(44px, auto);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 14px 6px;
}

.voice-record-topbar > .voice-record-circle {
  justify-self: start;
}

.voice-record-topbar h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: min(420px, calc(100% - 220px));
  margin: 0;
  color: #ffffff;
  font-size: 37px;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}

.voice-record-modal.is-auth .voice-record-topbar h3 {
  max-width: min(500px, calc(100% - 310px));
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-record-actions {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.voice-record-actions .voice-record-circle {
  justify-self: end;
}

.voice-record-modal.is-recorded .voice-record-actions > .voice-record-circle {
  display: none !important;
}

.voice-record-circle,
.voice-record-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.045);
}

.voice-record-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.voice-record-input {
  min-height: 34px;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.voice-record-input-wrap {
  position: relative;
}

.voice-record-input {
  width: 34px;
  max-width: 34px;
  min-height: 34px;
  padding: 0;
  font-weight: 700;
  line-height: 1.2;
}

.voice-record-input[aria-expanded="true"] {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.voice-record-input:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.voice-record-input-icon,
.voice-record-input-chevron {
  flex: 0 0 auto;
}

.voice-record-input-chevron {
  width: 14px !important;
  height: 14px !important;
}

.voice-record-input span,
.voice-record-input-chevron {
  display: none;
}

.voice-record-input span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-record-input-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 40px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #1f2024;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.voice-record-input-menu[hidden] {
  display: none;
}

.voice-record-input-menu button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.voice-record-input-menu button:hover,
.voice-record-input-menu button.is-selected {
  background: rgba(255, 255, 255, 0.08);
}

.voice-record-input-menu button:disabled {
  color: rgba(255, 255, 255, 0.46);
}

.voice-record-input-menu button.is-error:disabled {
  color: #ff8b82;
}

.voice-record-input-menu svg {
  width: 16px;
  height: 16px;
}

.voice-record-input-menu span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-auth-language-wrap {
  position: relative;
}

.voice-record-modal:not(.is-auth) .voice-auth-language-wrap,
.voice-auth-language-wrap[hidden] {
  display: none;
}

.voice-auth-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 42px;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 800;
}

.voice-auth-language svg {
  width: 14px;
  height: 14px;
}

.voice-auth-language-menu {
  position: absolute;
  z-index: 9;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  max-height: 272px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: #1f2024;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.voice-auth-language-menu[hidden] {
  display: none;
}

.voice-auth-language-menu button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.voice-auth-language-menu button:hover,
.voice-auth-language-menu button.is-selected {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.voice-record-circle svg,
.voice-record-input svg,
.voice-record-tips svg {
  width: 18px;
  height: 18px;
}

.voice-record-copy {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 100%;
  padding: 20px 20px 0;
  text-align: center;
}

.voice-record-copy time {
  color: rgba(255, 255, 255, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.voice-record-copy strong {
  display: block;
  width: 100%;
  color: #f4f4f5;
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
}

.voice-record-copy span {
  max-width: min(520px, calc(100vw - 40px));
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  line-height: 1.55;
}

.voice-record-modal.is-recorded .voice-record-copy {
  display: none;
}

.voice-auth-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 20px;
  padding: 46px 36px 18px;
  text-align: center;
}

.voice-auth-panel[hidden],
.voice-record-modal:not(.is-auth) .voice-auth-panel {
  display: none;
}

.voice-auth-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 900;
}

.voice-auth-panel blockquote {
  max-width: min(760px, calc(100vw - 96px));
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.7vw, 38px);
  line-height: 1.18;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.voice-auth-panel small {
  color: #70f7ff;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  text-shadow:
    0 0 16px rgba(112, 247, 255, 0.34),
    0 0 24px rgba(183, 94, 255, 0.18);
}

.voice-record-wave {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1px, 0.35vw, 3px);
  min-height: 130px;
  padding: 0 28px 18px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.voice-record-modal.is-recorded .voice-record-wave {
  position: relative;
  align-self: center;
  align-items: flex-end;
  justify-self: center;
  min-height: 146px;
  width: min(92%, 720px);
  box-sizing: border-box;
  margin: 8px auto 0;
  padding: 30px 28px 22px;
  border: 1px solid rgba(113, 207, 255, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(14, 18, 45, 0.8), rgba(9, 7, 24, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 4px, transparent 4px 10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 32px rgba(43, 121, 255, 0.2),
    0 0 0 1px rgba(199, 93, 255, 0.18),
    0 0 22px rgba(42, 207, 255, 0.34),
    0 0 42px rgba(200, 76, 255, 0.26),
    0 18px 36px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.voice-record-modal.is-auth .voice-record-wave {
  transform: translateY(-0.5cm);
}

.voice-record-modal.is-recorded .voice-record-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #2ad9ff, #3d6dff 32%, #9b5cff 68%, #ff62df);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.voice-record-wave span {
  position: relative;
  z-index: 1;
  transform-origin: center;
  flex: 0 1 3px;
  width: 3px;
  min-width: 1.5px;
  max-width: 3px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0.28;
  transition:
    height 92ms linear,
    opacity 120ms ease,
    background-color 100ms ease,
    box-shadow 100ms ease;
}

.voice-record-modal.is-recorded .voice-record-wave span {
  flex-basis: 5px;
  width: 5px;
  max-width: 5px;
  min-width: 3px;
  border-radius: 2px 2px 1px 1px;
}

.voice-record-modal.is-recording .voice-record-wave span {
  background: rgba(255, 255, 255, 0.32);
}

.voice-record-modal.is-recording .voice-record-wave span.is-hot {
  background: rgba(255, 78, 42, 0.88);
  box-shadow: 0 0 14px rgba(255, 78, 42, 0.28);
}

.voice-record-modal.is-recorded .voice-record-wave span {
  background: repeating-linear-gradient(
    to top,
    hsl(var(--meter-hue, 212) 100% 48%) 0 3px,
    hsl(var(--meter-hue, 212) 100% 72%) 3px 4px,
    rgba(12, 13, 32, 0.15) 4px 6px
  );
  box-shadow:
    0 0 8px hsl(var(--meter-hue, 212) 100% 58% / 0.48),
    0 12px 18px hsl(var(--meter-hue, 212) 100% 56% / 0.16);
  opacity: 0.82 !important;
  transform: scaleY(1);
}

.voice-record-modal.is-recorded .voice-record-wave span.is-played {
  opacity: inherit !important;
}

.voice-record-modal.is-recorded .voice-record-wave span.is-lit {
  box-shadow:
    0 0 12px hsl(var(--meter-hue, 212) 100% 62% / 0.82),
    0 0 28px hsl(var(--meter-hue, 212) 100% 60% / 0.36);
  opacity: 1 !important;
}

.voice-record-modal.is-recorded .voice-record-wave span.is-current {
  opacity: inherit !important;
}

@media (prefers-reduced-motion: reduce) {
  .voice-record-wave span {
    transition: none;
  }
}

.voice-record-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
}

.voice-record-stage p {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.voice-record-modal.is-recorded .voice-record-stage {
  align-content: start;
  gap: 12px;
  padding: 0 20px 20px;
}

.voice-record-modal.is-recorded .voice-record-stage p,
.voice-record-modal.is-recorded .voice-record-button {
  display: none;
}

.voice-record-modal.is-recorded:is(.is-enrolling, .has-enrollment-error) .voice-record-stage p {
  display: block;
  min-height: 20px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.voice-record-modal.is-recorded.is-enrolling .voice-record-stage p {
  color: #67e8f9;
}

.voice-record-modal.is-recorded.has-enrollment-error .voice-record-stage p {
  color: #ff8b8b;
}

.voice-record-modal.is-auth .voice-record-stage {
  align-content: center;
  gap: 8px;
  padding: 0 20px 26px;
}

.voice-record-modal.is-auth .voice-record-stage p {
  display: block;
  max-width: min(760px, calc(100vw - 80px));
  min-height: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.18;
  transform: translateY(-0.5cm);
  text-wrap: balance;
}

.voice-record-modal.is-auth .voice-record-button {
  display: inline-flex;
  transform: translateY(-0.4cm);
}

.voice-record-button {
  --record-progress: 0deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.045),
    0 0 30px rgba(255, 64, 30, 0.08);
}

.voice-record-button::before,
.voice-record-button::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.voice-record-button::before {
  inset: 0;
  z-index: 0;
  background:
    conic-gradient(
      from -90deg,
      #ff4d2e 0deg var(--record-progress),
      rgba(255, 255, 255, 0.16) var(--record-progress) 360deg
    );
}

.voice-record-modal.is-auth:not(.is-auth-recording) .voice-record-button::before {
  background: rgba(255, 255, 255, 0.16);
}

.voice-record-button::after {
  inset: 6px;
  z-index: 1;
  background: #242226;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.voice-record-button span {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff401e;
  box-shadow: 0 0 28px rgba(255, 64, 30, 0.24);
}

.voice-record-modal.is-recording .voice-record-button span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.voice-record-modal.is-auth-recording .voice-record-button span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.voice-record-stage audio {
  display: none;
}

.voice-preview-player {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(430px, calc(100vw - 80px));
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
}

.voice-preview-player[hidden] {
  display: none;
}

.voice-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
}

.voice-preview-button svg {
  width: 18px;
  height: 18px;
}

.voice-preview-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.voice-preview-seek {
  --preview-progress: 0%;
  display: block;
  flex: 1 1 auto;
  min-width: 120px;
  height: 4px;
  border-radius: 999px;
  outline: none;
  appearance: none;
  cursor: pointer;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.9) 0 var(--preview-progress),
      #050609 var(--preview-progress) 100%
    );
}

.voice-preview-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.voice-preview-seek::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: #f4f6f8;
  box-shadow: 0 0 0 2px rgba(5, 6, 9, 0.35);
}

.voice-preview-seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #050609;
}

.voice-preview-seek::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.voice-preview-seek::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #f4f6f8;
  box-shadow: 0 0 0 2px rgba(5, 6, 9, 0.35);
}

.voice-record-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.voice-record-modal.is-auth .voice-record-controls {
  transform: none;
}

.voice-record-controls button {
  min-height: 38px;
  min-width: 118px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.voice-record-controls button[data-record-use] {
  color: #121212;
  border-color: #ffffff;
  background: #ffffff;
}

.voice-record-modal.is-auth .voice-record-controls button[data-record-use] {
  min-height: 57px;
  min-width: 178px;
  padding: 0 30px;
  border: 1px solid rgba(46, 239, 203, 0.78);
  color: #08120f;
  background: linear-gradient(135deg, #35f2c7 0%, #48b9ff 48%, #a767ff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 12px 28px rgba(48, 220, 255, 0.22),
    0 12px 42px rgba(167, 103, 255, 0.22);
  font-size: 20px;
  font-weight: 950;
}

.voice-record-controls button:disabled {
  color: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.voice-record-modal.is-auth .voice-record-controls button[data-record-use]:disabled {
  color: rgba(255, 255, 255, 0.54);
  border-color: rgba(92, 148, 174, 0.34);
  background: linear-gradient(135deg, rgba(53, 242, 199, 0.2), rgba(72, 185, 255, 0.16), rgba(167, 103, 255, 0.18));
  box-shadow: none;
}

.voice-record-tips {
  display: none;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  margin-bottom: 8px;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  font-size: 12px;
}

.voice-record-meter {
  display: none;
  grid-template-columns: repeat(2, minmax(96px, 150px));
  justify-content: center;
  gap: 6px;
  padding: 0 20px 12px;
}

.voice-record-meter span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.voice-record-meter span:first-child {
  background: rgba(255, 255, 255, 0.28);
}

.voice-record-modal.is-recorded .voice-record-meter span:nth-child(-n + 2) {
  background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 640px) {
  .voice-record-modal {
    padding: 10px;
  }

  .voice-record-panel {
    width: min(100%, calc(100vw - 20px));
    height: min(620px, calc(100dvh - 20px));
    min-height: 520px;
    border-radius: 16px;
  }

  .voice-record-topbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding-top: 14px;
  }

  .voice-record-modal.is-auth .voice-record-topbar h3 {
    max-width: calc(100% - 170px);
    font-size: 16px;
  }

  .voice-record-actions {
    display: contents;
  }

  .voice-record-modal:not(.is-auth) .voice-record-input {
    display: none;
  }

  .voice-record-modal.is-recorded .voice-record-panel {
    height: min(420px, calc(100dvh - 20px));
    min-height: 340px;
  }

  .voice-record-modal.is-auth .voice-record-panel {
    height: min(680px, calc(100dvh - 20px));
    min-height: 520px;
  }

  .voice-auth-panel {
    gap: 14px;
    padding: 28px 18px 12px;
  }

  .voice-auth-panel blockquote {
    max-width: calc(100vw - 52px);
    font-size: clamp(22px, 7vw, 30px);
  }

  .voice-record-copy {
    padding-top: 20px;
  }

  .voice-record-wave {
    min-height: 128px;
  }

  .voice-record-modal.is-recorded .voice-record-wave {
    min-height: 136px;
    padding-inline: 26px;
  }

  .voice-record-modal.is-auth .voice-record-wave {
    transform: translateY(-0.32cm);
  }

  .voice-record-stage {
    padding-top: 26px;
  }

  .voice-record-modal.is-auth .voice-record-stage p {
    max-width: calc(100vw - 44px);
    font-size: 21px;
    transform: translateY(-0.32cm);
  }

  .voice-record-modal.is-auth .voice-record-button {
    transform: translateY(-0.26cm);
  }

  .voice-record-modal.is-auth .voice-record-controls {
    transform: translateY(-0.14cm);
  }

  .voice-record-modal.is-auth .voice-record-controls button[data-record-use] {
    min-height: 50px;
    min-width: 154px;
    padding: 0 22px;
    font-size: 16px;
  }

  .voice-record-button {
    width: 96px;
    height: 96px;
  }

  .voice-record-button span {
    width: 68px;
    height: 68px;
  }

  .voice-record-meter {
    grid-template-columns: repeat(2, minmax(84px, 124px));
  }
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #17191f;
  box-shadow: var(--shadow);
}

.modal-card.large {
  width: min(720px, 100%);
}

.modal-card h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.modal-actions button:last-child {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}

.voice-modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px;
  color: #ffffff;
  background: #1b1c21;
}

.voice-modal-card h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.voice-modal-card .modal-close {
  display: grid;
  place-items: center;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0;
  line-height: 1;
  text-indent: 0;
}

.voice-modal-card .modal-close::before {
  content: "×";
  display: block;
  font-size: 29px;
  line-height: 1;
  transform: translateY(1.2px);
}

.voice-library-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: #191a1f;
}

.voice-library-tabs button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 900;
}

.voice-library-tabs button.is-active {
  color: #ffffff;
  background: #2a2b31;
}

.voice-toolbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.voice-view-button,
.voice-search {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: #27282e;
}

.voice-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-view-button svg,
.voice-search svg {
  width: 18px;
  height: 18px;
}

.voice-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.voice-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.voice-search input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.voice-panel[hidden] {
  display: none;
}

.voice-favorites-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 180px;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.voice-favorites-empty svg {
  width: 28px;
  height: 28px;
}

.voice-favorites-empty strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.voice-favorites-empty small {
  font-size: 12px;
}

.voice-create-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  text-align: left;
  background:
    radial-gradient(circle at 72% 52%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(100deg, #b94c3b 0%, #26242b 49%, #af493a 100%);
  box-shadow: 0 0 22px rgba(255, 99, 72, 0.22);
}

.voice-create-row strong,
.voice-card strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.voice-create-row em {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 5px;
  color: #05100f;
  background: #ff4bd2;
  font-size: 12px;
  font-style: normal;
}

.voice-create-row small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.voice-create-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #ffffff;
  border-radius: 38% 46% 42% 50%;
}

.voice-upload-box {
  display: grid;
  gap: 10px;
}

.voice-upload-drop {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.voice-upload-drop:hover {
  border-color: rgba(32, 244, 200, 0.72);
  background: rgba(32, 244, 200, 0.09);
}

.voice-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(32, 244, 200, 0.5);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(32, 244, 200, 0.12);
}

.voice-upload-icon svg {
  width: 18px;
  height: 18px;
}

.voice-upload-drop strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.voice-upload-drop small {
  display: none;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.6;
}

.voice-upload-drop em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  color: #061211;
  background: #20f4c8;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.voice-upload-file,
.voice-upload-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.voice-upload-submit {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(32, 244, 200, 0.68);
  border-radius: 14px;
  color: #071211;
  background: #20f4c8;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(32, 244, 200, 0.2);
}

.voice-upload-submit:disabled {
  color: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: not-allowed;
}

.voice-upload-records {
  margin-top: 16px;
}

.voice-upload-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #ffffff;
}

.voice-upload-record-head strong {
  font-size: 16px;
}

.voice-upload-record-head span,
.voice-upload-empty {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.voice-upload-record-list {
  display: grid;
  gap: 8px;
}

.voice-upload-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #ffffff;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
}

.voice-upload-record.is-selected,
.voice-upload-record:hover {
  border-color: rgba(32, 244, 200, 0.72);
  background: rgba(32, 244, 200, 0.13);
}

.voice-upload-record strong,
.voice-upload-record small {
  display: block;
}

.voice-upload-record strong {
  font-size: 15px;
}

.voice-upload-record small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.voice-upload-record svg {
  width: 20px;
  height: 20px;
  color: #20f4c8;
}

/* Web voice creation and verification flow */
.voice-intake-card {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  border-radius: 16px;
  background: #1b1c21;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.voice-intake-header {
  display: flex;
  justify-content: center;
  min-height: 48px;
  padding: 8px 52px 16px;
}

.voice-intake-card .voice-intake-header h3 {
  margin: 0;
  color: #f7f7f8;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.voice-intake-header em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid rgba(255, 75, 43, 0.72);
  border-radius: 999px;
  color: #ff786d;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  vertical-align: 2px;
}

.voice-intake-stage {
  display: grid;
  gap: 12px;
}

.voice-intake-hero {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 330px;
  padding: 32px;
  border: 1px solid rgba(255, 116, 56, 0.54);
  border-radius: 16px;
  color: #f7f7f8;
  background: #1d1e22;
  box-shadow: inset 0 0 54px rgba(255, 75, 43, 0.08);
  text-align: center;
}

.voice-intake-copy {
  max-width: 720px;
}

.voice-intake-copy p {
  white-space: nowrap;
}

.voice-intake-copy h4 {
  margin: 0;
  color: #f7f7f8;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.voice-intake-copy p,
.voice-intake-drag,
.voice-intake-status {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.voice-intake-drag {
  margin-top: 18px;
  font-size: 12px;
}

.voice-intake-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(420px, 100%);
  margin-top: 16px;
}

.voice-intake-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #f7f7f8;
  background: #24252a;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.voice-intake-action:hover,
.voice-intake-action:focus-visible {
  border-color: rgba(255, 116, 56, 0.72);
  background: #2b292b;
  outline: none;
}

.voice-intake-action svg {
  width: 18px;
  height: 18px;
}

.voice-intake-action:first-child svg {
  color: #ff4b2b;
  fill: #ff4b2b;
}

.voice-intake-status {
  min-height: 22px;
  margin-top: 14px;
}

.voice-intake-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.voice-intake-tip {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #1d1e22;
}

.voice-intake-tip > svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.86);
}

.voice-intake-tip strong,
.voice-intake-tip small {
  display: block;
}

.voice-intake-tip strong {
  color: #f7f7f8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.voice-intake-tip small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

#voiceModal.is-drop-active .voice-intake-hero {
  border-color: #ff786d;
  background: #242124;
}

#voiceModal.is-loading-sample .voice-intake-action {
  opacity: 0.52;
  pointer-events: none;
}

#voiceModal.is-loading-sample .voice-intake-status {
  color: #ff9ac8;
}

#voiceModal.has-sample-error .voice-intake-status {
  color: #ff786d;
}

.voice-record-modal.is-enrolling [data-record-use]:disabled {
  color: #071815;
  border-color: #2ee6c4;
  background: #2ee6c4;
  opacity: 1;
  cursor: wait;
}

.voice-record-modal.is-enrolling [data-record-status] {
  color: #48dff0;
}

.voice-record-modal.is-auth .voice-record-panel,
.voice-record-modal.is-verifying .voice-record-panel,
.voice-record-modal.is-verification-failed .voice-record-panel,
.voice-record-modal.is-verification-success .voice-record-panel {
  background: #1b1c21;
}

.voice-record-modal.is-auth .voice-record-panel {
  grid-template-rows: auto auto 130px minmax(180px, 1fr);
}

.voice-record-modal.is-recorded.is-auth .voice-record-actions > .voice-record-circle {
  display: inline-flex !important;
}

.voice-record-modal.is-auth .voice-auth-panel {
  align-content: start;
  gap: 24px;
  padding: 64px 32px 20px;
}

.voice-record-modal.is-auth .voice-auth-panel p {
  font-size: 18px;
  font-weight: 800;
}

.voice-record-modal.is-auth .voice-auth-panel blockquote {
  max-width: min(760px, calc(100vw - 64px));
  font-family: inherit;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.28;
}

.voice-record-modal.is-auth .voice-auth-panel small {
  display: none;
}

.voice-record-modal.is-recorded.is-auth .voice-record-wave {
  align-self: end;
  align-items: center;
  justify-self: stretch;
  width: auto;
  min-height: 130px;
  height: auto;
  margin: 0;
  padding: 0 28px 18px;
  border: 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transform: none;
}

.voice-record-modal.is-recorded.is-auth .voice-record-wave::before {
  display: none;
}

.voice-record-modal.is-recorded.is-auth .voice-record-wave span {
  flex: 0 1 3px;
  width: 3px;
  min-width: 1.5px;
  max-width: 3px;
  border-radius: 999px;
}

.voice-record-modal.is-auth-recording .voice-record-wave span.is-hot {
  box-shadow:
    0 0 10px hsl(var(--meter-hue, 212) 100% 62% / 0.72),
    0 0 22px hsl(var(--meter-hue, 212) 100% 60% / 0.34);
  opacity: 1 !important;
}

.voice-record-modal.is-auth .voice-record-controls button[data-record-use]:disabled {
  display: none;
}

.voice-record-modal.is-auth.has-input-signal [data-record-status] {
  color: #20e7b7;
}

.voice-record-modal.is-auth.has-no-input [data-record-status] {
  color: #ff786d;
}

.voice-verification-progress[hidden],
.voice-verification-result[hidden],
.voice-details[hidden] {
  display: none !important;
}

.voice-record-modal.is-voice-details .voice-record-panel {
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, calc(100vw - 48px));
  height: min(620px, calc(100dvh - 48px));
  min-height: 520px;
}

.voice-record-modal.is-voice-details .voice-record-copy,
.voice-record-modal.is-voice-details .voice-auth-panel,
.voice-record-modal.is-voice-details .voice-record-wave,
.voice-record-modal.is-voice-details .voice-record-stage,
.voice-record-modal.is-voice-details .voice-record-tips,
.voice-record-modal.is-voice-details .voice-record-meter,
.voice-record-modal.is-voice-details .voice-auth-language-wrap,
.voice-record-modal.is-voice-details .voice-record-input-wrap,
.voice-record-modal.is-voice-details .voice-verification-result {
  display: none;
}

.voice-details {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 16px;
  width: min(520px, calc(100vw - 48px));
  padding: 24px 0 32px;
}

.voice-details-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.voice-details-status-icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #20e7b7;
  background: rgba(32, 231, 183, 0.1);
}

.voice-details-status-icon svg {
  width: 26px;
  height: 26px;
}

.voice-details-status h4,
.voice-details-status p,
.voice-details-error {
  margin: 0;
}

.voice-details-status h4 {
  color: #f7f7f8;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.voice-details-status p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.voice-details-field {
  display: grid;
  gap: 8px;
  color: #f7f7f8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.voice-details-field small {
  color: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-weight: 500;
}

.voice-details-field input,
.voice-details-field textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: 0;
  color: #f7f7f8;
  background: #24252a;
  font-family: inherit;
  letter-spacing: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.voice-details-field input {
  height: 52px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.voice-details-field textarea {
  min-height: 92px;
  padding: 14px 16px;
  resize: vertical;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.voice-details-field input::placeholder,
.voice-details-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.voice-details-field input:focus,
.voice-details-field textarea:focus {
  border-color: rgba(32, 231, 183, 0.72);
  box-shadow: 0 0 0 3px rgba(32, 231, 183, 0.1);
}

.voice-details-field input:disabled,
.voice-details-field textarea:disabled {
  opacity: 0.62;
}

.voice-details-error {
  color: #ff786d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.voice-details-save {
  min-height: 48px;
  margin-top: 8px;
  padding: 0 22px;
  border: 1px solid rgba(32, 231, 183, 0.72);
  border-radius: 8px;
  color: #081713;
  background: #20e7b7;
  font-size: 14px;
  font-weight: 800;
}

.voice-details-save:disabled {
  cursor: wait;
  opacity: 0.64;
}

.voice-verification-progress {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(220px, calc(100vw - 80px));
}

.voice-verification-progress > svg {
  width: 26px;
  height: 26px;
  color: #ff64ad;
  animation: voice-verification-spin 1s linear infinite;
}

.voice-verification-progress > span {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.voice-verification-progress b {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #ff64ad;
  animation: voice-verification-progress 1.4s ease-in-out infinite alternate;
}

.voice-record-modal.is-verifying .voice-record-button,
.voice-record-modal.is-verifying .voice-record-controls {
  display: none;
}

.voice-record-modal.is-verifying .voice-record-stage {
  gap: 18px;
}

.voice-record-modal.is-verifying .voice-record-stage p {
  color: #f7f7f8;
  font-size: 18px;
  font-weight: 800;
  transform: none;
}

.voice-verification-result {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(440px, calc(100vw - 48px));
  padding: 24px;
  text-align: center;
}

.voice-verification-result-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #20e7b7;
  background: rgba(32, 231, 183, 0.1);
}

.voice-verification-result-icon svg {
  width: 32px;
  height: 32px;
}

.voice-verification-result h4,
.voice-verification-result p {
  margin: 0;
}

.voice-verification-result h4 {
  color: #f7f7f8;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.voice-verification-result p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.55;
}

.voice-verification-result button {
  min-width: 144px;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 22px;
  border: 1px solid rgba(32, 231, 183, 0.72);
  border-radius: 8px;
  color: #081713;
  background: #20e7b7;
  font-size: 14px;
  font-weight: 800;
}

.voice-record-modal.is-verification-failed .voice-record-stage,
.voice-record-modal.is-verification-failed .voice-record-tips,
.voice-record-modal.is-verification-failed .voice-record-meter {
  display: none;
}

.voice-record-modal.is-verification-failed .voice-verification-result-icon {
  color: #ff786d;
  background: rgba(255, 120, 109, 0.1);
}

.voice-record-modal.is-verification-failed .voice-verification-result button {
  color: #f7f7f8;
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.voice-record-modal.is-verification-success .voice-record-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.voice-record-modal.is-verification-success .voice-record-copy,
.voice-record-modal.is-verification-success .voice-auth-panel,
.voice-record-modal.is-verification-success .voice-record-wave,
.voice-record-modal.is-verification-success .voice-record-stage,
.voice-record-modal.is-verification-success .voice-record-tips,
.voice-record-modal.is-verification-success .voice-record-meter,
.voice-record-modal.is-verification-success .voice-auth-language-wrap,
.voice-record-modal.is-verification-success .voice-record-input-wrap {
  display: none;
}

@keyframes voice-verification-spin {
  to { transform: rotate(360deg); }
}

@keyframes voice-verification-progress {
  from { transform: translateX(-12%); }
  to { transform: translateX(138%); }
}

@media (prefers-reduced-motion: reduce) {
  .voice-verification-progress > svg,
  .voice-verification-progress b {
    animation: none;
  }
}

@media (max-width: 640px) {
  .voice-intake-card {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 14px;
  }

  .voice-intake-header {
    min-height: 44px;
    padding: 7px 44px 12px;
  }

  .voice-intake-card .voice-intake-header h3 {
    font-size: 18px;
  }

  .voice-intake-hero {
    min-height: 300px;
    padding: 20px;
  }

  .voice-intake-copy {
    max-width: 100%;
  }

  .voice-intake-copy p {
    white-space: normal;
  }

  .voice-intake-actions,
  .voice-intake-tips {
    grid-template-columns: 1fr;
  }

  .voice-intake-action {
    min-height: 48px;
  }

  .voice-intake-tip {
    min-height: 72px;
    padding: 12px 16px;
  }

  .voice-record-modal.is-auth .voice-auth-panel blockquote {
    max-width: calc(100vw - 52px);
    font-size: 28px;
    line-height: 1.3;
  }

  .voice-record-modal.is-auth .voice-record-topbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    grid-template-columns: 36px minmax(0, 1fr) 122px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 54px;
    padding: 10px 10px 4px;
  }

  .voice-record-modal.is-auth .voice-record-topbar > .voice-record-circle {
    grid-column: 1;
    grid-row: 1;
  }

  .voice-record-modal.is-auth .voice-record-topbar h3 {
    position: static;
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    min-width: 0;
    font-size: 14px;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
    transform: none;
  }

  .voice-record-modal.is-auth .voice-auth-panel {
    padding-top: 82px;
  }

  .voice-record-modal.is-auth .voice-record-actions {
    position: static;
    grid-column: 3;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    width: 122px;
    min-width: 0;
  }

  .voice-record-modal.is-auth .voice-record-input {
    display: inline-flex;
    width: 34px;
    max-width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .voice-record-modal.is-auth .voice-record-input span,
  .voice-record-modal.is-auth .voice-record-input-chevron {
    display: none;
  }

  .voice-record-modal.is-auth .voice-record-input-menu {
    right: -88px;
  }

  .voice-record-modal.is-auth .voice-auth-language {
    min-width: 48px;
    min-height: 34px;
    gap: 2px;
    padding: 0 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  .voice-record-modal.is-auth .voice-record-actions .voice-record-circle {
    width: 30px;
    height: 30px;
  }

  .voice-verification-result {
    padding: 18px;
  }

  .voice-record-modal.is-voice-details .voice-record-panel {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    min-height: 0;
  }

  .voice-record-modal.is-voice-details .voice-record-topbar {
    min-height: 54px;
    padding: 10px 10px 4px;
  }

  .voice-record-modal.is-voice-details .voice-record-topbar h3 {
    width: auto;
    max-width: none;
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
    word-break: normal;
  }

  .voice-details {
    align-self: start;
    width: calc(100vw - 52px);
    padding: 84px 0 24px;
  }

  .voice-record-modal.is-verification-success .voice-record-panel {
    grid-template-rows: minmax(0, 1fr);
    padding-top: 54px;
  }
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.voice-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-width: 0;
  border: 0;
  color: #ffffff;
  text-align: left;
  background: transparent;
}

.voice-card[hidden] {
  display: none;
}

.voice-card.is-selected .voice-avatar {
  outline: 3px solid #26f4d0;
  outline-offset: 4px;
}

.voice-card-copy {
  display: grid;
  gap: 3px;
}

.voice-card-copy small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.voice-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(184px, 38vw);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 36% 46% 43% 39%;
  color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.22), 0 12px 26px rgba(0, 0, 0, 0.24);
}

.voice-avatar::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 3px solid rgba(255, 221, 187, 0.78);
  border-radius: 50%;
  filter: blur(0.2px);
}

.voice-avatar svg {
  position: relative;
  z-index: 1;
  width: 54%;
  height: 54%;
  stroke-width: 1.2;
  filter: blur(1.2px);
}

.voice-avatar:has(img)::before {
  display: none;
}

.voice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-avatar-a {
  background:
    radial-gradient(circle at 54% 44%, rgba(63, 214, 196, 0.8), transparent 28%),
    radial-gradient(circle at 36% 72%, rgba(12, 94, 102, 0.8), transparent 34%),
    linear-gradient(135deg, #f7edf1 0%, #aacad5 48%, #0e6d75 100%);
}

.voice-avatar-b {
  background:
    radial-gradient(circle at 52% 45%, rgba(57, 205, 195, 0.78), transparent 28%),
    radial-gradient(circle at 30% 70%, rgba(224, 133, 191, 0.64), transparent 36%),
    linear-gradient(135deg, #f7f0ed 0%, #f3b9cf 52%, #7e4eb4 100%);
}

.voice-avatar-c {
  background:
    radial-gradient(circle at 48% 42%, rgba(96, 230, 170, 0.76), transparent 28%),
    linear-gradient(135deg, #f9efe2 0%, #86d2b2 47%, #4c7be0 100%);
}

.voice-avatar-d {
  background:
    radial-gradient(circle at 54% 44%, rgba(116, 218, 224, 0.74), transparent 30%),
    linear-gradient(135deg, #fff1d6 0%, #d79dff 50%, #5345c6 100%);
}

.stem-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feedback-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.feedback-field span {
  color: #e8e0d4;
  font-size: 13px;
  font-weight: 800;
}

.feedback-field textarea {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tip-grid button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.generator :is(.mode-tab, .source-btn, .template-cloud button, .section-inserts button, .settings-toggle, .language-pills button, .style-cats button, .style-tags button):hover {
  color: var(--text) !important;
  border-color: rgba(57, 215, 200, 0.72) !important;
  background: rgba(57, 215, 200, 0.08) !important;
  box-shadow:
    0 0 0 1px rgba(57, 215, 200, 0.14),
    0 10px 26px rgba(57, 215, 200, 0.16) !important;
  transform: translateY(-2px) !important;
}

.stem-options article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.plan {
  border-radius: 8px;
  padding: 24px;
}

.plan.featured {
  border-color: rgba(57, 215, 200, 0.55);
}

.plan h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.plan p {
  min-height: 54px;
  color: var(--muted);
  line-height: 1.7;
}

.plan strong {
  font-size: 28px;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .topbar {
    gap: 12px;
  }

  .language-picker span,
  .member-name {
    display: none;
  }

  .language-menu-wrap {
    width: 110px;
  }

  .hero-content,
  .queue-layout,
  .plans-grid,
  .guide-grid,
  .market-grid,
  .extras-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px 16px;
  }

  .brand {
    font-size: 14px;
  }

  .ghost-btn {
    display: none;
  }

  .member-button {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .member-panel {
    left: auto;
    right: 0;
    width: min(236px, calc(100vw - 32px));
  }

  .member-panel::before {
    left: auto;
    right: 14px;
  }

  .hero,
  .workbench,
  .plans {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    max-width: 360px;
    font-size: 40px;
    line-height: 1.12;
  }

  .mode-tabs,
  .form-grid,
  .style-cats,
  .stem-options {
    grid-template-columns: 1fr;
  }

  .track-card {
    align-items: flex-start;
  }

  .comment-box {
    grid-template-columns: 1fr;
  }
}

.generator .mode-tabs .mode-tab:hover,
.generator .mode-tabs .mode-tab.is-active:hover {
  color: #091311 !important;
  border-color: rgba(57, 215, 200, 0.82) !important;
  background: linear-gradient(135deg, var(--teal), var(--amber)) !important;
  box-shadow:
    0 0 0 1px rgba(57, 215, 200, 0.18),
    0 12px 30px rgba(57, 215, 200, 0.2) !important;
  transform: translateY(-2px) !important;
  font-weight: 800;
}

.generator :is(
  .mode-tab.is-active,
  .source-btn.is-active,
  .tag.is-selected,
  .language-pills button.is-selected,
  .style-cats button.is-active,
  .style-tags button.is-selected
) {
  color: var(--muted) !important;
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
  transform: none !important;
}

.generator :is(
  .mode-tab,
  .source-btn,
  .tag,
  .template-cloud button,
  .section-inserts button,
  .settings-toggle,
  .language-pills button,
  .style-cats button,
  .style-tags button,
  .mini-btn
):hover {
  color: #091311 !important;
  border-color: rgba(57, 215, 200, 0.82) !important;
  background: linear-gradient(135deg, var(--teal), var(--amber)) !important;
  box-shadow:
    0 0 0 1px rgba(57, 215, 200, 0.18),
    0 12px 30px rgba(57, 215, 200, 0.2) !important;
  transform: translateY(-2px) !important;
  font-weight: 800;
}

/* Home hero refactor */
:root {
  --bg: #070a12;
  --panel: rgba(18, 22, 32, 0.88);
  --muted: #a8b0c0;
  --line: rgba(255, 255, 255, 0.12);
}

.topbar {
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 72px);
  background: rgba(7, 10, 18, 0.76);
}

.nav-links {
  gap: 10px;
}

.nav-links a,
.nav-button,
.language-picker,
.member-button {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
}

.language-picker,
.member-button {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.language-picker {
  min-width: 0;
  gap: 6px;
  padding-left: 10px;
  padding-right: 10px;
}

.language-picker:hover,
.member-button:hover {
  color: var(--text);
  border-color: rgba(57, 215, 200, 0.72);
  background: rgba(57, 215, 200, 0.08);
  box-shadow:
    0 0 0 1px rgba(57, 215, 200, 0.14),
    0 10px 26px rgba(57, 215, 200, 0.16);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 86px 24px 28px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 8, 15, 0.72), rgba(5, 8, 15, 0.72)),
    radial-gradient(circle at 50% 42%, rgba(57, 215, 200, 0.16), transparent 42%),
    url("assets/studio-bg.png") center / cover no-repeat;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.12), rgba(7, 10, 18, 0.72)),
    radial-gradient(circle at 50% 0%, rgba(90, 124, 255, 0.12), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  transform: none;
}

.hero-copy {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 auto 8px;
  color: #fff;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
  transform: none;
}

.kinetic-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-wrap: balance;
  white-space: nowrap;
  width: 100%;
}

.kinetic-title span {
  display: inline-block;
  margin: 0;
  color: #fff;
  text-shadow:
    0 0 16px rgba(34, 211, 238, 0.28),
    0 0 34px rgba(139, 92, 246, 0.16);
  animation: title-beat 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

.kinetic-title span:nth-child(8),
.kinetic-title span:nth-child(9) {
  color: #67e8f9;
  text-shadow:
    0 0 18px rgba(34, 211, 238, 0.52),
    0 0 42px rgba(139, 92, 246, 0.3);
}

@keyframes title-beat {
  0%,
  62%,
  100% {
    transform: translateY(0) scale(1);
  }

  7% {
    transform: translateY(-8px) scale(1.035);
  }

  13% {
    transform: translateY(2px) scale(0.995);
  }
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: #a8b0c0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
  transform: none;
}

.generator {
  width: min(100%, 760px);
  max-width: 760px;
  margin: -4px auto 0;
  padding: 20px;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(18, 22, 32, 0.88);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mode-tabs {
  gap: 9px;
  margin: 0 0 12px;
  padding: 0;
}

.mode-tab {
  min-height: 42px;
  border-radius: 12px;
}

.hero-tags {
  gap: 8px;
  margin: 0 0 12px;
}

.tag {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
}

.field-label,
.control-field span {
  color: #fff;
  font-size: 14px;
}

.prompt-box {
  border-radius: 16px;
  background: rgba(8, 10, 16, 0.78);
}

textarea {
  min-height: 104px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.55;
}

textarea::placeholder {
  color: rgba(168, 176, 192, 0.72);
}

.prompt-footer {
  padding: 8px 14px;
}

.settings-toggle {
  min-height: 42px;
  margin-top: 10px;
  border-radius: 12px;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.settings-toggle svg {
  width: 20px;
  height: 20px;
}

.advanced-panel {
  gap: 8px;
  margin-top: 8px;
  padding-top: 0;
}

.extra-tags {
  max-height: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.language-pills,
.style-board,
.title-field {
  margin-top: 4px;
}

.language-pills {
  row-gap: 6px;
}

.generate-btn {
  --generate-angle: 0deg;
  min-height: 56px;
  margin-top: 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, #ff4d6d 0%, #ff8a2a 46%, #7c3aed 100%) padding-box,
    conic-gradient(
      from var(--generate-angle),
      #60a5fa,
      #38bdf8,
      #a78bfa,
      #f0abfc,
      #38bdf8,
      #60a5fa
    ) border-box;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  animation: generate-border-orbit 4.4s linear infinite;
  box-shadow:
    0 18px 48px rgba(255, 77, 109, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.generate-btn::before {
  display: block;
  inset: -7px;
  border-radius: 22px;
  background:
    conic-gradient(
      from var(--generate-angle),
      rgba(96, 165, 250, 0.26),
      rgba(56, 189, 248, 0.24),
      rgba(167, 139, 250, 0.26),
      rgba(240, 171, 252, 0.22),
      rgba(56, 189, 248, 0.24),
      rgba(96, 165, 250, 0.26)
    );
  filter: blur(18px);
  opacity: 0.44;
}

.generate-btn svg {
  width: 26px;
  height: 26px;
}

.generate-btn:hover {
  color: #fff;
  background:
    linear-gradient(135deg, #ff355d 0%, #ff8a2a 44%, #7c3aed 100%) padding-box,
    conic-gradient(
      from var(--generate-angle),
      #60a5fa,
      #38bdf8,
      #a78bfa,
      #f0abfc,
      #38bdf8,
      #60a5fa
    ) border-box;
  box-shadow:
    0 22px 62px rgba(255, 77, 109, 0.36),
    0 0 30px rgba(255, 138, 42, 0.28);
}

@media (max-width: 960px) {
  .hero-content {
    transform: none;
  }

  .hero {
    min-height: calc(100vh - 72px);
    padding: 84px 18px 28px;
  }

  .generator {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 64px;
  }

  .hero {
    min-height: calc(100vh - 64px);
    padding: 74px 14px 24px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 38px;
  }

  .kinetic-title {
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .generator {
    padding: 16px;
  }

  .mode-tabs {
    grid-template-columns: 1fr;
  }
}

body .language-menu-wrap {
  width: auto !important;
  min-width: 118px;
  flex: 0 0 auto;
}

body .language-picker {
  width: auto !important;
  min-width: 118px;
  padding-left: 16px !important;
  padding-right: 14px !important;
}

body .language-picker strong {
  font-size: 18px;
}

@media (max-width: 960px) {
  body .language-menu-wrap {
    width: auto !important;
    min-width: 92px;
    flex: 0 0 auto;
  }

  body .language-picker {
    width: auto !important;
    min-width: 92px;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body .language-picker strong {
    font-size: 16px;
  }
}

body .topbar .nav-links,
body .topbar .nav-links a,
body .topbar .nav-button,
body .topbar .language-picker,
body .topbar .language-picker strong,
body .topbar .language-picker svg,
body .topbar .member-button,
body .topbar .member-name {
  color: #fff !important;
}

body .topbar .nav-links a:hover,
body .topbar .nav-links a:focus,
body .topbar .nav-links a:active,
body .topbar .nav-button:hover,
body .topbar .nav-button:focus,
body .topbar .nav-button:active,
body .topbar .language-picker:hover,
body .topbar .language-picker:focus,
body .topbar .member-button:hover,
body .topbar .member-button:focus {
  color: #fff !important;
}

body .generator .settings-toggle,
body .generator .settings-toggle span,
body .generator .settings-toggle svg,
body .generator .advanced-panel,
body .generator .advanced-panel span,
body .generator .advanced-panel strong,
body .generator .advanced-panel label,
body .generator .advanced-panel button,
body .generator .advanced-panel input,
body .generator .advanced-panel select,
body .generator .advanced-panel option,
body .generator .language-pills span,
body .generator .language-pills button,
body .generator .style-board-head span,
body .generator .style-board-head strong,
body .generator .style-cats button,
body .generator .style-tags button,
body .generator .control-field span,
body .generator .title-field input {
  color: #fff !important;
}

body .generator .advanced-panel input::placeholder {
  color: #fff !important;
  opacity: 1;
}

body .generator .language-pills button.is-selected,
body .generator .style-cats button.is-active,
body .generator .style-tags button.is-selected {
  color: #fff !important;
  border-color: rgba(32, 244, 200, 0.88) !important;
  background:
    linear-gradient(135deg, rgba(32, 244, 200, 0.34), rgba(255, 138, 42, 0.24)),
    rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 0 0 1px rgba(32, 244, 200, 0.24),
    0 0 18px rgba(32, 244, 200, 0.22) !important;
}

body .generator .language-pills button:active,
body .generator .style-cats button:active,
body .generator .style-tags button:active {
  color: #fff !important;
  border-color: rgba(32, 244, 200, 0.96) !important;
  background: rgba(32, 244, 200, 0.22) !important;
}

body .generator .mode-tabs .mode-tab.is-active {
  color: #fff !important;
  border-color: rgba(32, 244, 200, 0.9) !important;
  background:
    linear-gradient(135deg, rgba(32, 244, 200, 0.44), rgba(255, 216, 92, 0.34)),
    rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 0 0 1px rgba(32, 244, 200, 0.22),
    0 0 20px rgba(32, 244, 200, 0.2) !important;
}

body .generator .mode-tabs .mode-tab.is-active svg {
  color: #fff !important;
}

body .generate-btn {
  min-height: 50px;
  margin-top: 8px;
  border: 2px solid rgba(32, 244, 200, 0.88);
  background: linear-gradient(135deg, #ff4d6d 0%, #ff8a2a 46%, #7c3aed 100%);
  box-shadow:
    0 18px 48px rgba(255, 77, 109, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(32, 244, 200, 0.24);
  animation: generate-breathing-glow 2.8s ease-in-out infinite;
  overflow: hidden;
}

body .generate-btn::after {
  display: none;
}

body .generate-btn:hover {
  background: linear-gradient(135deg, #ff355d 0%, #ff8a2a 44%, #7c3aed 100%);
}

@keyframes generate-breathing-glow {
  0%,
  100% {
    border-color: rgba(32, 244, 200, 0.72);
    box-shadow:
      0 18px 48px rgba(255, 77, 109, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 16px rgba(32, 244, 200, 0.22);
  }

  50% {
    border-color: rgba(99, 255, 142, 0.98);
    box-shadow:
      0 20px 58px rgba(255, 138, 42, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 38px rgba(99, 255, 142, 0.52);
  }
}

.google-model-panel {
  display: none !important;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(6, 8, 17, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.generation-notice {
  margin: 8px 0 10px;
  padding: 9px 12px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 10px;
  background: rgba(14, 18, 28, 0.82);
  color: rgba(241, 245, 249, 0.9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.generation-notice.is-error {
  border-color: rgba(255, 122, 122, 0.42);
  color: #ffd3d3;
}

.generation-notice.is-warning {
  border-color: rgba(250, 204, 21, 0.52);
  color: #fff2ad;
  background: rgba(61, 43, 8, 0.72);
}

.generation-notice.is-done {
  border-color: rgba(32, 244, 200, 0.44);
  color: #d8fff6;
}

.hum-copyright-warning {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: min(100%, 680px);
  margin: 10px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 10px;
  color: #fff2ad;
  background: rgba(61, 43, 8, 0.78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.hum-copyright-warning[hidden] {
  display: none !important;
}

.hum-copyright-warning svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #fde047;
}

body.is-copyright-risk-open {
  overflow: hidden;
}

.copyright-risk-modal {
  --copyright-danger: #ff625b;
  --copyright-danger-soft: rgba(255, 98, 91, 0.14);
  --copyright-panel: #0d1422;
  --copyright-text: #f8fafc;
  --copyright-muted: #b8c0cf;
  --copyright-radius: 18px;
  --copyright-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 15, 0.82);
  overflow: auto;
}

.copyright-risk-modal[hidden] {
  display: none !important;
}

.copyright-risk-card {
  position: relative;
  width: min(980px, calc(100vw - 48px));
  padding: 40px;
  border: 1px solid rgba(255, 98, 91, 0.78);
  border-radius: var(--copyright-radius);
  color: var(--copyright-text);
  background:
    linear-gradient(180deg, rgba(255, 98, 91, 0.08), transparent 32%),
    var(--copyright-panel);
  box-shadow: var(--copyright-shadow);
  outline: none;
}

.copyright-risk-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.copyright-risk-close:hover,
.copyright-risk-close:focus-visible {
  border-color: rgba(255, 98, 91, 0.72);
  background: rgba(255, 98, 91, 0.14);
}

.copyright-risk-close svg {
  width: 22px;
  height: 22px;
}

.copyright-risk-layout {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.copyright-risk-symbol {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-top: 34px;
  border: 1px solid rgba(255, 98, 91, 0.74);
  border-radius: 50%;
  color: var(--copyright-danger);
  background: var(--copyright-danger-soft);
  box-shadow: inset 0 0 28px rgba(255, 98, 91, 0.08);
}

.copyright-risk-symbol svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.8;
}

.copyright-risk-content {
  min-width: 0;
}

.copyright-risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 98, 91, 0.48);
  border-radius: 999px;
  color: #ff806f;
  background: rgba(255, 98, 91, 0.08);
  font-size: 15px;
  font-weight: 900;
}

.copyright-risk-card h2 {
  margin: 18px 0 16px;
  color: var(--copyright-text);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
}

.copyright-risk-description {
  display: grid;
  gap: 6px;
  color: var(--copyright-muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
}

.copyright-risk-description p,
.copyright-risk-status {
  margin: 0;
}

.copyright-risk-description a {
  width: fit-content;
  color: #ff8068;
  font-size: 19px;
  font-weight: 800;
}

.copyright-risk-compliance {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 98, 91, 0.2);
  border-radius: 10px;
  color: #aeb7c8;
  background: rgba(4, 10, 22, 0.58);
  font-size: 16px;
  line-height: 1.55;
}

.copyright-risk-compliance svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--copyright-danger);
}

.copyright-risk-status {
  min-height: 24px;
  margin-top: 14px;
  color: #ffd5cf;
  font-size: 14px;
  font-weight: 700;
}

.copyright-risk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.copyright-risk-reupload,
.copyright-risk-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
}

.copyright-risk-reupload {
  border: 1px solid #ff8c73;
  color: #ffffff;
  background: #ff5f57;
  box-shadow: 0 12px 30px rgba(255, 75, 75, 0.22);
}

.copyright-risk-support {
  border: 1px solid rgba(184, 192, 207, 0.34);
  color: #f2f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.copyright-risk-reupload:hover,
.copyright-risk-reupload:focus-visible {
  background: #ff746d;
}

.copyright-risk-support:hover,
.copyright-risk-support:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.copyright-risk-actions svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .copyright-risk-modal {
    padding: 16px;
  }

  .copyright-risk-card {
    width: min(100%, 620px);
    padding: 28px 24px 24px;
  }

  .copyright-risk-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .copyright-risk-symbol {
    width: 88px;
    height: 88px;
    margin: 0;
  }

  .copyright-risk-symbol svg {
    width: 44px;
    height: 44px;
  }

  .copyright-risk-card h2 {
    margin-top: 14px;
    font-size: 32px;
  }

  .copyright-risk-description {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .copyright-risk-card {
    padding: 24px 20px 20px;
  }

  .copyright-risk-close {
    top: 12px;
    right: 12px;
  }

  .copyright-risk-card h2 {
    padding-right: 28px;
    font-size: 26px;
  }

  .copyright-risk-actions {
    grid-template-columns: 1fr;
  }
}

.google-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.google-model-head strong,
.google-model-head span,
.lyria-status {
  display: block;
}

.google-model-head strong {
  color: #fff;
  font-size: 15px;
}

.google-model-head span,
.lyria-status,
.lyria-result small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.google-model-head span.is-warning {
  color: #ffd166;
}

.google-model-head label {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.google-model-head select {
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 10px;
}

.lyria-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.lyria-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #ff8a2a);
  transition: width 0.28s ease;
}

.lyria-results {
  display: grid;
  gap: 12px;
}

.lyria-result {
  align-items: flex-start;
}

.lyria-result .track-info {
  min-width: 0;
}

.lyria-result audio {
  width: 100%;
  margin-top: 10px;
}

.lyria-result details {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.lyria-result summary {
  cursor: pointer;
  font-size: 12px;
}

.lyria-result pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.download-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  flex: 0 0 auto;
}

.generate-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 620px) {
  .google-model-head {
    align-items: stretch;
    flex-direction: column;
  }

  .google-model-head select {
    min-width: 0;
    width: 100%;
  }
}

/* Generator content +15%: enlarges the form controls while keeping the card spacing tight. */
body .generator {
  width: min(100%, 874px);
  max-width: 874px;
  padding: 16px 18px 18px;
}

body .generator .mode-tabs {
  gap: 10px;
  margin-bottom: 10px;
}

body .generator .mode-tab {
  min-height: 48px;
  border-radius: 14px;
  font-size: 18px;
}

body .generator .mode-tab svg {
  width: 21px;
  height: 21px;
}

body .generator .hero-tags {
  gap: 9px;
  margin-bottom: 10px;
}

body .generator .tag {
  min-height: 37px;
  padding: 0 15px;
  font-size: 17px;
}

body .generator .field-label,
body .generator .control-field span {
  font-size: 16px;
}

body .generator.is-voice-copy-mode .field-label[for="promptInput"] {
  display: none;
}

.selected-voice-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  margin: 7px 0 10px;
  padding: 0 64px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.135), rgba(255, 255, 255, 0.09)),
    rgba(38, 42, 53, 0.92);
  font-size: 18px;
  font-weight: 900;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.selected-voice-strip[hidden] {
  display: none;
}

.selected-voice-strip button {
  position: absolute;
  right: 12px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: transparent;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.selected-voice-strip button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.voice-name-field {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.voice-name-field[hidden] {
  display: none !important;
}

.voice-name-field span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.voice-name-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(8, 10, 16, 0.78);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.voice-name-field input::placeholder {
  color: rgba(168, 176, 192, 0.72);
}

.voice-name-field input:focus {
  border-color: rgba(57, 215, 200, 0.74);
  box-shadow:
    0 0 0 3px rgba(57, 215, 200, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body .generator .prompt-box {
  border-radius: 18px;
}

body .generator textarea {
  min-height: 158px;
  padding: 14px 16px;
  font-size: 17px;
}

body .generator .prompt-style-control textarea {
  min-height: 76px;
  height: 76px;
  padding: 15px 16px;
  font-size: 15px;
  line-height: 1.45;
}

body .generator.is-simple-mode textarea {
  min-height: 214px;
}

body .generator.is-simple-mode .settings-toggle {
  display: none !important;
}

body .generator .prompt-footer {
  padding: 7px 14px;
  font-size: 16px;
}

body .generator .mini-btn {
  font-size: 16px;
}

body .generator .settings-toggle {
  min-height: 48px;
  margin-top: 8px;
  border-radius: 14px;
  gap: 12px;
  font-size: 18px;
}

body .generator .settings-toggle svg {
  width: 23px;
  height: 23px;
}

body .generator .generate-btn {
  min-height: 58px;
  margin-top: 8px;
  border-radius: 18px;
  font-size: 23px;
}

body .generator .generate-btn svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 620px) {
  body .generator {
    width: min(100%, 760px);
    max-width: 760px;
    padding: 14px;
  }
}

/* Optional humming source inside professional mode. */

.hum-workspace[hidden] {
  display: none !important;
}

.pro-hum-toggle[hidden] {
  display: none !important;
}

.pro-hum-toggle {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(116, 149, 225, 0.42);
  border-radius: 10px;
  color: #eef4ff;
  background: rgba(12, 20, 38, 0.78);
  font-size: 15px;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pro-hum-toggle span {
  text-align: left;
}

.pro-hum-toggle svg {
  width: 18px;
  height: 18px;
}

.pro-hum-toggle svg:last-child {
  transition: transform 160ms ease;
}

.pro-hum-toggle:hover,
.pro-hum-toggle.is-active {
  border-color: rgba(80, 233, 224, 0.82);
  background: rgba(31, 76, 92, 0.5);
  box-shadow: 0 0 18px rgba(54, 220, 210, 0.1);
}

.pro-hum-toggle.is-active svg:last-child {
  transform: rotate(180deg);
}

.hum-workspace {
  display: grid;
  gap: 12px;
}

.hum-heading {
  text-align: center;
  padding: 4px 0 0;
}

.hum-heading h2 {
  margin: 0 0 5px;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.2;
}

.hum-heading p {
  margin: 0;
  color: rgba(210, 219, 235, 0.72);
  font-size: 14px;
}

.hum-recorder {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 250px;
  padding: 26px 24px 18px;
  border: 1px solid rgba(80, 125, 255, 0.35);
  border-radius: 16px;
  background: rgba(8, 13, 28, 0.62);
  overflow: hidden;
}

.hum-waveform {
  position: absolute;
  top: 24px;
  left: 24px;
  width: calc(100% - 48px);
  height: 112px;
  opacity: 0.9;
  pointer-events: none;
}

.hum-record-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin-top: 6px;
  border: 2px solid rgba(128, 225, 255, 0.86);
  border-radius: 50%;
  color: #ffffff;
  background: #4d52e8;
  box-shadow:
    0 0 0 8px rgba(95, 92, 246, 0.18),
    0 0 28px rgba(84, 217, 255, 0.38);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hum-record-button:hover {
  transform: scale(1.04);
  background: #5961f2;
  box-shadow:
    0 0 0 9px rgba(95, 92, 246, 0.22),
    0 0 34px rgba(84, 217, 255, 0.5);
}

.hum-recorder.is-recording .hum-record-button {
  background: #ff4d6d;
  border-color: #ffb5c3;
  box-shadow:
    0 0 0 9px rgba(255, 77, 109, 0.18),
    0 0 36px rgba(255, 77, 109, 0.48);
}

.hum-recorder.has-audio .hum-record-button {
  background: #ff315f;
  border-color: #ffd1dc;
  box-shadow:
    0 0 0 8px rgba(255, 49, 95, 0.2),
    0 0 30px rgba(255, 49, 95, 0.56);
}

.hum-recorder.has-audio .hum-record-button:hover,
.hum-recorder.has-audio.is-playing .hum-record-button {
  background: #ff174d;
  box-shadow:
    0 0 0 9px rgba(255, 23, 77, 0.24),
    0 0 38px rgba(255, 54, 105, 0.7);
}

.hum-record-button svg {
  width: 42px;
  height: 42px;
}

.hum-recorder.has-audio:not(.is-playing) .hum-record-button svg {
  transform: translateX(2px);
}

.hum-recorder > strong {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  color: #ffffff;
  font-size: 18px;
}

.hum-record-status,
.hum-record-time,
.hum-recorder > small {
  position: relative;
  z-index: 2;
  color: rgba(202, 214, 232, 0.68);
  font-size: 13px;
}

.hum-record-time {
  color: #7fffe3;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.hum-audio-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 220px));
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 14px 0 8px;
}

.hum-audio-actions > button,
.hum-source-toggle,
.hum-more-toggle,
.hum-choice-group button {
  border: 1px solid rgba(116, 149, 225, 0.4);
  color: #e7edf9;
  background: rgba(12, 20, 38, 0.82);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hum-audio-actions > button,
.hum-source-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.hum-audio-actions > button:hover,
.hum-source-toggle:hover,
.hum-more-toggle:hover,
.hum-choice-group button:hover {
  color: #ffffff;
  border-color: rgba(80, 233, 224, 0.78);
  background: rgba(31, 76, 92, 0.55);
}

.hum-source-toggle:hover {
  color: #031820;
  border-color: #70f3ff;
  background: #25d9ee;
  box-shadow: 0 8px 22px rgba(37, 217, 238, 0.28);
  transform: translateY(-1px);
}

.hum-audio-actions .hum-suno-submit {
  color: #ffd8c8;
  border-color: rgba(255, 180, 73, 0.58);
  background: rgba(12, 20, 38, 0.82);
  box-shadow: none;
}

.hum-audio-actions .hum-suno-submit:hover:not(:disabled) {
  color: #ffffff;
  border-color: #ff8bc0;
  background: #ff2f73;
  box-shadow: 0 9px 25px rgba(255, 47, 115, 0.34);
  transform: translateY(-1px);
}

.hum-audio-actions .hum-suno-submit:disabled {
  cursor: not-allowed;
  color: #858da1;
  border-color: rgba(116, 149, 225, 0.22);
  background: rgba(12, 20, 38, 0.58);
  opacity: 0.72;
  box-shadow: none;
}

.hum-audio-actions svg {
  width: 17px;
  height: 17px;
}

.hum-source-control {
  position: relative;
  min-width: 0;
}

.hum-source-toggle {
  width: 100%;
}

.hum-source-chevron {
  width: 14px !important;
  height: 14px !important;
  margin-left: auto;
  transition: transform 160ms ease;
}

.hum-source-control.is-open .hum-source-chevron {
  transform: rotate(180deg);
}

.hum-source-menu[hidden] {
  display: none !important;
}

.hum-source-menu {
  position: absolute;
  z-index: 24;
  left: 0;
  bottom: calc(100% + 8px);
  display: grid;
  width: 220px;
  padding: 6px;
  border: 1px solid rgba(116, 149, 225, 0.36);
  border-radius: 8px;
  background: #0c1426;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.hum-source-menu button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  color: #e7edf9;
  background: transparent;
  text-align: left;
}

.hum-source-menu button:hover,
.hum-source-menu button:focus-visible {
  color: #ffffff;
  background: rgba(48, 99, 124, 0.48);
  outline: none;
}

.hum-source-menu button > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.hum-source-menu strong {
  font-size: 13px;
  font-weight: 700;
}

.hum-source-menu small {
  color: rgba(202, 214, 232, 0.62);
  font-size: 11px;
  font-weight: 500;
}

.hum-source-menu svg {
  width: 17px;
  height: 17px;
  color: #67e8f9;
}

.hum-submit-feedback[hidden] {
  display: none !important;
}

.hum-submit-feedback {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 9px;
  width: min(452px, 100%);
  min-height: 42px;
  margin: 0 auto 8px;
  padding: 8px 10px;
  border: 1px solid rgba(85, 229, 242, 0.28);
  border-radius: 8px;
  color: #dffcff;
  background: rgba(20, 67, 81, 0.28);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
}

.hum-submit-feedback-icon,
.hum-submit-feedback-icon svg {
  width: 18px;
  height: 18px;
}

.hum-submit-feedback.is-loading .hum-submit-feedback-icon {
  animation: hum-feedback-spin 900ms linear infinite;
}

.hum-submit-feedback > strong {
  color: #8ff5ff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.hum-submit-feedback-track {
  grid-column: 2 / 4;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hum-submit-feedback-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #55e5f2;
  transition: width 240ms ease;
}

.hum-submit-feedback.is-done {
  color: #e8fff2;
  border-color: rgba(103, 245, 164, 0.42);
  background: rgba(31, 105, 67, 0.28);
}

.hum-submit-feedback.is-done > strong,
.hum-submit-feedback.is-done .hum-submit-feedback-icon {
  color: #67f5a4;
}

.hum-submit-feedback.is-done .hum-submit-feedback-track > span {
  background: #67f5a4;
}

.hum-submit-feedback.is-warning,
.hum-submit-feedback.is-error {
  color: #fff0ef;
  border-color: rgba(255, 123, 117, 0.45);
  background: rgba(118, 43, 48, 0.28);
}

.hum-submit-feedback.is-warning > strong,
.hum-submit-feedback.is-error > strong,
.hum-submit-feedback.is-warning .hum-submit-feedback-icon,
.hum-submit-feedback.is-error .hum-submit-feedback-icon {
  color: #ff9d98;
}

.hum-submit-feedback.is-warning .hum-submit-feedback-track > span,
.hum-submit-feedback.is-error .hum-submit-feedback-track > span {
  background: #ff7b75;
}

@keyframes hum-feedback-spin {
  to { transform: rotate(360deg); }
}

.hum-reference-library[hidden] {
  display: none !important;
}

.hum-reference-library {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 14px;
  overflow: hidden;
  text-align: left;
}

.hum-reference-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.hum-reference-library-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.hum-reference-library-head .hum-reference-library-actions {
  align-items: center;
  flex: 0 0 auto;
}

.hum-reference-library-head strong {
  color: #f4f7ff;
  font-size: 14px;
  font-weight: 700;
}

.hum-reference-library-head span {
  color: rgba(202, 214, 232, 0.68);
  font-size: 11px;
}

.hum-reference-library-head button,
.hum-reference-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(116, 149, 225, 0.28);
  border-radius: 6px;
  color: #dce8fb;
  background: rgba(8, 16, 34, 0.72);
}

.hum-reference-library-head button {
  width: 30px;
  height: 30px;
}

.hum-reference-library-head .hum-playlist-open {
  width: auto;
  min-width: 86px;
  gap: 5px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
}

.hum-reference-library-head .hum-playlist-open span {
  color: inherit;
  font-size: inherit;
}

@media (max-width: 460px) {
  .hum-reference-library-head {
    flex-wrap: wrap;
  }

  .hum-reference-library-head .hum-reference-library-actions {
    margin-left: auto;
  }
}

.hum-reference-library-head button:hover,
.hum-reference-card button:hover:not(:disabled) {
  color: #ffffff;
  border-color: rgba(90, 226, 255, 0.78);
  background: rgba(27, 111, 132, 0.32);
}

.hum-reference-library-head svg,
.hum-reference-card svg {
  width: 15px;
  height: 15px;
}

.hum-reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
}

.hum-reference-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(116, 149, 225, 0.28);
  border-radius: 8px;
  background: rgba(8, 16, 34, 0.72);
}

.hum-reference-card.is-selected {
  border-color: rgba(90, 226, 255, 0.78);
  background: rgba(27, 111, 132, 0.22);
}

.hum-reference-play {
  width: 32px;
  height: 32px;
  color: #67e8f9 !important;
}

.hum-reference-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hum-reference-copy strong,
.hum-reference-copy small {
  min-width: 0;
}

.hum-reference-copy strong {
  color: #f4f7ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hum-reference-copy small {
  color: rgba(202, 214, 232, 0.68);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
}

.hum-reference-use {
  gap: 4px;
  min-width: 54px;
  height: 28px;
  padding: 0 7px;
  color: #67f5a4 !important;
  font-size: 11px;
  font-weight: 700;
}

.hum-reference-use svg {
  width: 13px;
  height: 13px;
}

.hum-reference-delete {
  width: 28px;
  height: 28px;
}

.hum-reference-delete:hover {
  color: #ff9d98 !important;
  border-color: rgba(255, 123, 117, 0.55) !important;
  background: rgba(118, 43, 48, 0.32) !important;
}

.hum-reference-empty {
  display: flex;
  align-items: center;
  gap: 7px;
  grid-column: 1;
  width: min(100%, 460px);
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(116, 149, 225, 0.24);
  border-radius: 8px;
  color: rgba(202, 214, 232, 0.68);
  background: rgba(8, 16, 34, 0.38);
  font-size: 12px;
}

.hum-reference-empty svg {
  width: 15px;
  height: 15px;
  animation: hum-feedback-spin 900ms linear infinite;
}

.hum-library-picker[hidden] {
  display: none !important;
}

body.has-hum-library-picker {
  overflow: hidden;
}

.hum-library-picker {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.hum-library-picker-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(1, 5, 15, 0.76);
}

.hum-library-picker-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(680px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(116, 149, 225, 0.38);
  border-radius: 12px;
  color: #f4f7ff;
  background: #0b1324;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.hum-library-picker-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hum-library-picker-card h2 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.hum-library-picker-kicker {
  color: #67e8f9;
  font-size: 10px;
  font-weight: 800;
}

.hum-library-picker-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(116, 149, 225, 0.3);
  border-radius: 7px;
  color: #dce8fb;
  background: rgba(8, 16, 34, 0.76);
}

.hum-library-picker-close:hover {
  color: #ffffff;
  border-color: rgba(90, 226, 255, 0.72);
  background: rgba(27, 111, 132, 0.3);
}

.hum-library-picker-close svg,
.hum-library-search svg {
  width: 17px;
  height: 17px;
}

.hum-library-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(116, 149, 225, 0.3);
  border-radius: 8px;
  color: rgba(202, 214, 232, 0.72);
  background: rgba(6, 12, 25, 0.78);
}

.hum-library-search:focus-within {
  border-color: rgba(90, 226, 255, 0.74);
}

.hum-library-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f4f7ff;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.hum-library-picker-list {
  display: grid;
  gap: 6px;
  min-height: 150px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
}

.hum-library-track {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(8, 16, 34, 0.58);
}

.hum-library-track:hover,
.hum-library-track.is-selected {
  border-color: rgba(90, 226, 255, 0.42);
  background: rgba(27, 111, 132, 0.2);
}

.hum-library-track-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(116, 149, 225, 0.3);
  border-radius: 7px;
  color: #ffffff;
  background: #14213b;
}

.hum-library-track-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hum-library-track-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 15, 0.28);
}

.hum-library-track-play svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
}

.hum-library-track-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.hum-library-track-copy strong,
.hum-library-track-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hum-library-track-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.hum-library-track-copy small {
  color: rgba(202, 214, 232, 0.66);
  font-size: 12px;
  font-weight: 500;
}

.hum-library-track-use {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 76px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(103, 245, 164, 0.44);
  border-radius: 7px;
  color: #7fffb4;
  background: rgba(31, 105, 67, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.hum-library-track-use:hover {
  color: #03180e;
  border-color: #7fffb4;
  background: #67f5a4;
}

.hum-library-track-use svg {
  width: 14px;
  height: 14px;
}

.hum-library-picker-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 0;
  padding: 24px;
  border: 1px dashed rgba(116, 149, 225, 0.28);
  border-radius: 8px;
  color: rgba(202, 214, 232, 0.68);
  text-align: center;
  font-size: 13px;
}

.hum-settings {
  display: grid;
  border: 1px solid rgba(116, 149, 225, 0.25);
  border-radius: 14px;
  background: rgba(9, 14, 26, 0.54);
  overflow: hidden;
}

.hum-settings-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: #f8fafc;
  border-bottom: 1px solid rgba(116, 149, 225, 0.18);
}

.hum-settings-title svg {
  width: 18px;
  height: 18px;
  color: #63e6df;
}

.hum-setting-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(116, 149, 225, 0.13);
}

.hum-setting-row:last-of-type {
  border-bottom: 0;
}

.hum-setting-row > span,
.hum-custom-lyrics > span,
.hum-more-panel label > span {
  color: #dce7f8;
  font-size: 14px;
  font-weight: 800;
}

.hum-theme-row input,
.hum-more-panel input {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(116, 149, 225, 0.25);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(5, 9, 18, 0.64);
  outline: none;
}

.hum-theme-row input:focus,
.hum-more-panel input:focus,
.hum-more-panel textarea:focus,
.hum-custom-lyrics textarea:focus {
  border-color: rgba(80, 233, 224, 0.78);
  box-shadow: 0 0 0 3px rgba(80, 233, 224, 0.11);
}

.hum-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hum-choice-group button {
  min-height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hum-choice-group button.is-selected {
  color: #061413;
  border-color: #63e6df;
  background: #63e6df;
}

.hum-retention-row {
  grid-template-columns: 128px minmax(0, 1fr) 54px;
}

.hum-retention-row input[type="range"] {
  width: 100%;
  accent-color: #63e6df;
}

.hum-retention-row strong {
  color: #72dcff;
  text-align: right;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.hum-custom-lyrics {
  display: grid;
  gap: 7px;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(116, 149, 225, 0.13);
}

.hum-custom-lyrics[hidden] {
  display: none !important;
}

body .generator .hum-custom-lyrics textarea,
body .generator .hum-more-panel textarea {
  min-height: 82px;
  padding: 11px 12px;
  border: 1px solid rgba(116, 149, 225, 0.25);
  border-radius: 9px;
  color: #ffffff;
  background: rgba(5, 9, 18, 0.64);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.hum-more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
}

.hum-more-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.hum-more-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.hum-more-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(116, 149, 225, 0.22);
  border-radius: 12px;
  background: rgba(9, 14, 26, 0.5);
}

.hum-more-panel[hidden] {
  display: none !important;
}

.hum-more-panel label {
  display: grid;
  align-content: start;
  gap: 7px;
}

@media (max-width: 720px) {
  .hum-setting-row,
  .hum-retention-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px 12px;
  }

  .hum-retention-row strong {
    text-align: left;
  }

  .hum-more-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .hum-recorder {
    padding-inline: 12px;
  }

  .hum-waveform {
    left: 12px;
    width: calc(100% - 24px);
  }

  .hum-audio-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hum-source-menu {
    width: 100%;
  }

  .hum-library-picker {
    align-items: end;
    padding: 12px;
  }

  .hum-library-picker-card {
    width: calc(100vw - 24px);
    max-height: min(72vh, 620px);
    padding: 16px;
  }

  .hum-library-track {
    grid-template-columns: 44px minmax(0, 1fr) 32px;
    gap: 9px;
  }

  .hum-library-track-play {
    width: 44px;
    height: 44px;
  }

  .hum-library-track-use {
    width: 32px;
    min-width: 32px;
    padding: 0;
  }

  .hum-library-track-use span {
    display: none;
  }

  .hum-reference-use {
    width: 28px;
    min-width: 28px;
    padding: 0;
  }

  .hum-reference-use span {
    display: none;
  }
}

/* Professional mode feature cards: humming reference + shared voice library. */
.pro-feature-grid[hidden],
.pro-quick-languages[hidden],
.pro-prompt-heading[hidden] {
  display: none !important;
}

.pro-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pro-feature-card {
  min-width: 0;
  min-height: 160px;
  padding: 12px 17px;
  border: 1px solid rgba(90, 224, 255, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(30, 104, 133, 0.27), rgba(10, 20, 37, 0.72)),
    rgba(9, 15, 28, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pro-voice-card {
  border-color: rgba(179, 100, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(96, 48, 139, 0.3), rgba(16, 18, 42, 0.75)),
    rgba(11, 14, 29, 0.88);
}

.pro-feature-card-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 0;
  border: 0;
  color: #f8fbff;
  background: transparent;
  text-align: left;
}

.pro-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(102, 226, 255, 0.42);
  border-radius: 50%;
  color: #dff9ff;
  background: rgba(41, 127, 154, 0.22);
  box-shadow: inset 0 0 24px rgba(80, 218, 255, 0.12);
  overflow: hidden;
}

.pro-voice-card .pro-feature-icon {
  border-color: rgba(193, 117, 255, 0.45);
  color: #f1d8ff;
  background: rgba(125, 65, 181, 0.22);
  box-shadow: inset 0 0 24px rgba(187, 98, 255, 0.13);
}

.pro-feature-icon svg {
  width: 36px;
  height: 36px;
}

.pro-feature-icon img {
  display: block;
  width: 128%;
  height: 128%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.pro-hum-card .pro-feature-icon img {
  width: 156%;
  height: 156%;
  transform: translateY(4px);
}

.pro-feature-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pro-feature-copy strong {
  color: #ffffff;
  font-size: 21px;
  line-height: 1.3;
}

.pro-feature-copy small {
  overflow: hidden;
  color: rgba(211, 222, 239, 0.72);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-feature-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(238, 246, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pro-feature-arrow svg {
  width: 18px;
  height: 18px;
}

.pro-feature-card-main:hover .pro-feature-arrow {
  border-color: rgba(105, 232, 255, 0.56);
  background: rgba(99, 218, 245, 0.12);
}

.pro-hum-card:has([data-pro-hum-toggle].is-active) .pro-feature-arrow {
  transform: rotate(90deg);
}

.pro-selected-hum {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  margin: 6px 0 0;
  padding: 0 13px;
  border: 1px solid rgba(98, 224, 247, 0.24);
  border-radius: 10px;
  color: rgba(211, 229, 239, 0.68);
  background: rgba(27, 111, 132, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.pro-selected-hum.is-selected {
  color: #e8fbff;
  border-color: rgba(90, 226, 255, 0.48);
  background: rgba(27, 111, 132, 0.3);
}

.pro-selected-hum > svg {
  width: 17px;
  height: 17px;
  color: #6de8f5;
}

.pro-selected-hum > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-selected-hum button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.pro-selected-hum button > span {
  display: block;
  transform: translateY(-2px);
}

.pro-selected-hum button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pro-selected-voice {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  margin: 6px 0 0;
  padding: 0 13px;
  border: 1px solid rgba(189, 122, 255, 0.27);
  border-radius: 10px;
  color: rgba(230, 218, 246, 0.74);
  background: rgba(109, 69, 166, 0.2);
  font-size: 13px;
  font-weight: 700;
  justify-self: start;
}

.pro-selected-voice.is-selected {
  color: #f3e8ff;
  border-color: rgba(188, 128, 255, 0.48);
  background: rgba(122, 75, 188, 0.34);
}

.pro-selected-voice > svg {
  width: 17px;
  height: 17px;
  color: #bba1ff;
}

.pro-selected-voice > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-selected-voice button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.pro-selected-voice button > span {
  display: block;
  transform: translateY(-2px);
}

.pro-selected-voice button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pro-prompt-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  margin: 4px 0 3px;
  color: #dbe7f7;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.pro-prompt-heading svg {
  width: 17px;
  height: 17px;
  color: #a9c7e8;
}

body .generator.is-pro-mode .prompt-box textarea {
  min-height: 178px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
}

body .generator.is-pro-mode .prompt-box textarea::placeholder {
  color: rgba(180, 190, 208, 0.78);
  font-weight: 500;
  line-height: inherit;
}

body .generator.is-pro-mode .prompt-style-control {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(8, 12, 21, 0.68);
}

body .generator.is-pro-mode .prompt-style-control > span {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

body .generator.is-pro-mode .prompt-style-control textarea {
  min-height: 60px;
  height: 60px;
  padding: 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  resize: none;
}

body .generator.is-pro-mode .prompt-style-control textarea::placeholder {
  color: rgba(180, 190, 208, 0.74);
  font-weight: 500;
}

.pro-quick-languages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.pro-quick-languages button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 54px;
  padding: 0 10px;
  border: 1px solid rgba(111, 137, 193, 0.35);
  border-radius: 10px;
  color: rgba(221, 229, 242, 0.78);
  background: rgba(14, 23, 39, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.pro-quick-languages button:hover,
.pro-quick-languages button.is-selected {
  color: #ffffff;
  border-color: #52e2ef;
  background: rgba(33, 78, 110, 0.52);
  box-shadow: inset 0 0 18px rgba(69, 214, 241, 0.08);
}

.pro-quick-languages svg {
  width: 17px;
  height: 17px;
}

body .generator.is-pro-mode .hum-workspace {
  padding: 2px 0 4px;
}

body .generator.is-pro-mode .settings-toggle {
  min-height: 58px;
  margin-top: 10px;
}

body .generator.is-pro-mode .generate-btn {
  min-height: 70px;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .pro-feature-grid {
    grid-template-columns: 1fr;
  }

  .pro-feature-card {
    min-height: 0;
  }

  .hum-reference-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pro-quick-languages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .pro-feature-card {
    padding: 13px;
  }

  .pro-feature-card-main {
    grid-template-columns: 58px minmax(0, 1fr) 32px;
    gap: 10px;
    min-height: 76px;
  }

  .pro-feature-icon {
    width: 56px;
    height: 56px;
  }

  .pro-feature-icon svg {
    width: 28px;
    height: 28px;
  }

  .pro-feature-copy strong {
    font-size: 18px;
  }

  .pro-selected-voice {
    max-width: 100%;
    margin-left: 0;
  }

  body .generator.is-pro-mode .prompt-box textarea {
    min-height: 158px;
  }
}
