:root {
  color-scheme: dark;
  --ink: #0c0e0d;
  --ink-soft: #131614;
  --panel: rgba(24, 27, 25, 0.86);
  --panel-solid: #181b19;
  --line: rgba(242, 244, 232, 0.13);
  --line-strong: rgba(242, 244, 232, 0.25);
  --paper: #f2f4e8;
  --muted: #9da49c;
  --acid: #d9ff63;
  --acid-soft: #bde748;
  --coral: #ff6b56;
  --violet: #a48bff;
  --cyan: #6be4d5;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
a,
select,
input[type="range"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  opacity: 0.11;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-one {
  top: -240px;
  right: -80px;
  background: var(--acid);
}

.ambient-two {
  bottom: 5%;
  left: -350px;
  background: var(--violet);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1440px, calc(100% - 64px));
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-slash {
  padding: 0 3px;
  color: var(--acid);
}

.brand-mark {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 10px;
  background: var(--acid);
}

.brand-mark i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--ink);
}

.brand-mark i:nth-child(1) {
  height: 9px;
}

.brand-mark i:nth-child(2) {
  height: 18px;
}

.brand-mark i:nth-child(3) {
  height: 13px;
}

.brand-mark i:nth-child(4) {
  height: 21px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-actions > a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease;
}

.top-actions > a:hover {
  color: var(--paper);
}

.status-badge {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.status-badge:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5ba50;
  box-shadow: 0 0 0 4px rgba(245, 186, 80, 0.1);
}

.status-badge.ready .status-dot {
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(217, 255, 99, 0.1);
}

.status-badge.error .status-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 86, 0.1);
}

main {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 570px;
  padding: 78px 3vw 70px;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 50px;
}

.eyebrow,
.step-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--acid);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 730;
  letter-spacing: -0.072em;
  line-height: 0.88;
}

.hero h1 em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 610px;
  margin: 34px 0 0;
  color: #bbc0b8;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-meta span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c8ccc5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sound-sculpture {
  position: relative;
  width: min(430px, 38vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.voice-orb,
.orbital {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbital {
  border: 1px solid rgba(217, 255, 99, 0.27);
}

.orbital-one {
  width: 100%;
  height: 100%;
  animation: breathe 6s ease-in-out infinite;
}

.orbital-two {
  width: 78%;
  height: 78%;
  border-style: dashed;
  animation: spin 28s linear infinite;
}

.orbital-three {
  width: 57%;
  height: 57%;
  border-color: rgba(255, 255, 255, 0.18);
}

.voice-orb {
  display: flex;
  width: 41%;
  height: 41%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, #f6ffc7 0, var(--acid) 28%, #82a900 100%);
  box-shadow:
    0 0 80px rgba(217, 255, 99, 0.22),
    inset -18px -18px 32px rgba(32, 52, 0, 0.2);
}

.mini-wave {
  display: flex;
  height: 58px;
  align-items: center;
  gap: 4px;
}

.mini-wave i {
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--ink);
  animation: wave 1.35s ease-in-out infinite;
}

.mini-wave i:nth-child(2),
.mini-wave i:nth-child(8) {
  height: 28px;
  animation-delay: -0.15s;
}

.mini-wave i:nth-child(3),
.mini-wave i:nth-child(7) {
  height: 42px;
  animation-delay: -0.3s;
}

.mini-wave i:nth-child(4),
.mini-wave i:nth-child(6) {
  height: 31px;
  animation-delay: -0.45s;
}

.mini-wave i:nth-child(5) {
  height: 54px;
  animation-delay: -0.6s;
}

.orbit-label {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.label-one {
  top: 11%;
  right: 2%;
  transform: rotate(8deg);
}

.label-two {
  bottom: 12%;
  left: 0;
  transform: rotate(-8deg);
}

.studio-switcher {
  display: grid;
  width: min(720px, 100%);
  margin: 0 auto 22px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 7, 6, 0.62);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.studio-mode {
  display: flex;
  min-width: 0;
  min-height: 67px;
  padding: 10px 17px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  gap: 13px;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.studio-mode:hover {
  color: var(--paper);
  transform: translateY(-1px);
}

.studio-mode.active {
  border-color: rgba(217, 255, 99, 0.34);
  background:
    linear-gradient(135deg, rgba(217, 255, 99, 0.14), rgba(217, 255, 99, 0.035)),
    rgba(255, 255, 255, 0.035);
  color: var(--paper);
}

.studio-mode[data-studio-mode="stt"].active {
  border-color: rgba(164, 139, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(164, 139, 255, 0.17), rgba(164, 139, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.mode-index {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.studio-mode.active .mode-index {
  border-color: transparent;
  background: var(--acid);
  color: var(--ink);
}

.studio-mode[data-studio-mode="stt"].active .mode-index {
  background: var(--violet);
}

.studio-mode > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.studio-mode strong {
  font-size: 13px;
  letter-spacing: -0.01em;
}

.studio-mode small {
  margin-top: 2px;
  color: #747a73;
  font-size: 9px;
}

.workbench {
  display: grid;
  margin-bottom: 28px;
  grid-template-columns: minmax(0, 1.22fr) minmax(390px, 0.78fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.composer-panel {
  padding: clamp(25px, 3vw, 44px);
}

.voices-panel {
  display: flex;
  padding: clamp(25px, 3vw, 38px);
  flex-direction: column;
}

.panel-heading,
.section-heading,
.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2,
.section-heading h2,
.result-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 35px);
  font-weight: 690;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.shortcut-hint,
.voice-count {
  display: inline-flex;
  min-width: 48px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.voice-count {
  min-width: 38px;
  border-color: rgba(217, 255, 99, 0.28);
  color: var(--acid);
}

.text-editor {
  margin-top: 33px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(4, 6, 5, 0.48);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.text-editor:focus-within {
  border-color: rgba(217, 255, 99, 0.65);
  box-shadow: 0 0 0 4px rgba(217, 255, 99, 0.07);
}

.text-editor textarea {
  display: block;
  width: 100%;
  min-height: 235px;
  padding: 25px 26px 15px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.015em;
  line-height: 1.65;
}

.text-editor textarea::placeholder,
.style-section input::placeholder {
  color: #636861;
}

.editor-footer {
  display: flex;
  padding: 11px 17px 13px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #777d76;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prompt-row {
  display: flex;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-row > span {
  margin-right: 4px;
  color: #777d76;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-chip,
.style-chips button {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.text-chip:hover,
.style-chips button:hover {
  border-color: rgba(217, 255, 99, 0.38);
  background: rgba(217, 255, 99, 0.06);
  color: var(--paper);
}

.style-section {
  margin-top: 31px;
}

.field-label-row {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.field-label-row label,
.select-field > span,
.range-field > span,
.toggle-copy strong {
  color: #c6cbc3;
  font-size: 12px;
  font-weight: 700;
}

.field-label-row small {
  margin-left: 4px;
  color: #727870;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.field-label-row > span {
  color: #747a73;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.style-section input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(4, 6, 5, 0.42);
  color: var(--paper);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.style-section input:focus {
  border-color: rgba(217, 255, 99, 0.65);
  box-shadow: 0 0 0 4px rgba(217, 255, 99, 0.07);
}

.style-chips {
  display: flex;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 7px;
}

.settings-grid {
  display: grid;
  margin-top: 30px;
  grid-template-columns: 1fr 0.78fr 1.25fr 0.95fr;
  gap: 12px;
}

.select-field,
.range-field,
.toggle-field {
  display: flex;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 6, 5, 0.33);
  flex-direction: column;
  gap: 9px;
}

.select-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.select-field select option {
  background: var(--ink-soft);
}

.range-field > span {
  display: flex;
  justify-content: space-between;
}

.range-field output {
  color: var(--acid);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.range-field input {
  width: 100%;
  height: 4px;
  margin: 5px 0 2px;
  accent-color: var(--acid);
  cursor: pointer;
}

.select-field:has(select:disabled),
.range-field:has(input:disabled) {
  opacity: 0.52;
}

.select-field select:disabled,
.range-field input:disabled {
  cursor: not-allowed;
}

.toggle-field {
  min-height: 73px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  flex-direction: row;
}

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

.toggle-copy strong {
  display: block;
}

.toggle-copy small {
  color: #747a73;
  font-size: 9px;
  white-space: nowrap;
}

.toggle-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.toggle-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8b918a;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.toggle-field input:checked + .toggle-track {
  border-color: rgba(217, 255, 99, 0.48);
  background: rgba(217, 255, 99, 0.11);
}

.toggle-field input:checked + .toggle-track span {
  background: var(--acid);
  transform: translateX(18px);
}

.toggle-field input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(217, 255, 99, 0.2);
}

.voice-grid {
  display: grid;
  margin-top: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.voice-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  padding: 13px 10px 11px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: rgba(6, 8, 7, 0.36);
  cursor: pointer;
  flex-direction: column;
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.voice-card:hover {
  z-index: 1;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-3px);
}

.voice-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(217, 255, 99, 0.22);
}

.voice-card.selected {
  border-color: rgba(217, 255, 99, 0.68);
  background:
    linear-gradient(145deg, rgba(217, 255, 99, 0.14), rgba(217, 255, 99, 0.025)),
    rgba(6, 8, 7, 0.5);
}

.voice-card.selected::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(217, 255, 99, 0.12);
  content: "";
}

.voice-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 50%;
  background: #2a2e2b;
  color: #dde1da;
  font-family: Georgia, serif;
  font-size: 14px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.voice-card.selected .voice-avatar {
  background: var(--acid);
  color: var(--ink);
}

.voice-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-native {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #747a73;
  font-size: 8px;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.voice-skeleton {
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(255, 255, 255, 0.02) 70%
  );
  background-size: 250% 100%;
  animation: shimmer 1.5s infinite;
}

.generate-zone {
  margin-top: auto;
  padding-top: 32px;
}

.selection-summary {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
  color: #777d76;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selection-summary strong {
  color: var(--paper);
  font-size: 11px;
}

.generate-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 72px;
  padding: 0 20px 0 24px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--acid);
  box-shadow: 0 15px 35px rgba(132, 169, 0, 0.15);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.generate-button::before {
  position: absolute;
  top: -100%;
  left: -30%;
  width: 35%;
  height: 300%;
  background: rgba(255, 255, 255, 0.35);
  content: "";
  transform: rotate(24deg);
  transition: left 420ms ease;
}

.generate-button:hover {
  background: #e4ff8c;
  box-shadow: 0 20px 42px rgba(132, 169, 0, 0.23);
  transform: translateY(-2px);
}

.generate-button:hover::before {
  left: 115%;
}

.generate-button:active {
  transform: translateY(0);
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.button-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(12, 14, 13, 0.22);
  border-radius: 50%;
  font-size: 20px;
}

.button-loader {
  display: none;
  width: 25px;
  height: 25px;
  border: 3px solid rgba(12, 14, 13, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.generate-button.loading .button-icon {
  display: none;
}

.generate-button.loading .button-loader {
  display: block;
}

.generate-button.loading .button-label::after {
  content: " …";
}

.generate-note {
  margin: 11px 0 0;
  color: #666c65;
  font-size: 10px;
  text-align: center;
}

.stt-studio {
  display: grid;
  margin-bottom: 28px;
  gap: 18px;
}

.stt-panel {
  padding: clamp(25px, 3vw, 44px);
}

.stt-heading {
  align-items: flex-start;
}

.panel-lead {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stream-pill {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(164, 139, 255, 0.32);
  border-radius: 999px;
  background: rgba(164, 139, 255, 0.08);
  color: #c4b5ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  gap: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stream-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(164, 139, 255, 0.12);
}

.stt-workbench {
  display: grid;
  margin-top: 32px;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  gap: 18px;
}

.audio-drop-zone {
  position: relative;
  display: flex;
  min-height: 420px;
  padding: 36px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed rgba(164, 139, 255, 0.42);
  border-radius: 24px;
  outline: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(164, 139, 255, 0.13), transparent 34%),
    rgba(4, 6, 5, 0.42);
  cursor: pointer;
  flex-direction: column;
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.audio-drop-zone:hover,
.audio-drop-zone:focus-visible,
.audio-drop-zone.dragging {
  border-color: var(--violet);
  background:
    radial-gradient(circle at 50% 38%, rgba(164, 139, 255, 0.2), transparent 37%),
    rgba(4, 6, 5, 0.52);
}

.audio-drop-zone.dragging {
  transform: scale(0.992);
}

.audio-drop-zone.has-file {
  border-style: solid;
}

.drop-orbit {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(164, 139, 255, 0.24);
  border-radius: 50%;
}

.drop-orbit::before,
.drop-orbit::after {
  position: absolute;
  border: 1px solid rgba(164, 139, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.drop-orbit::before {
  inset: 11px;
}

.drop-orbit::after {
  inset: -13px;
  border-style: dashed;
  animation: spin 14s linear infinite;
}

.drop-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.audio-drop-zone.has-file .drop-arrow {
  background: var(--acid);
}

.drop-copy {
  display: flex;
  max-width: 440px;
  flex-direction: column;
  gap: 5px;
}

.drop-copy strong {
  overflow: hidden;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 680;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-copy span {
  color: #747a73;
  font-size: 11px;
}

.drop-action {
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a6aca4;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#audioPreview {
  width: min(460px, 100%);
  height: 40px;
  margin-top: 23px;
}

.stt-config {
  display: flex;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(4, 6, 5, 0.35);
  flex-direction: column;
  gap: 13px;
}

.stt-feature {
  display: flex;
  min-height: 74px;
  padding: 15px;
  align-items: center;
  border: 1px solid rgba(164, 139, 255, 0.18);
  border-radius: 15px;
  background: rgba(164, 139, 255, 0.055);
  gap: 13px;
}

.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(164, 139, 255, 0.14);
  color: #c4b5ff;
  font-size: 20px;
}

.stt-feature div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stt-feature strong {
  font-size: 11px;
}

.stt-feature small {
  margin-top: 3px;
  color: #747a73;
  font-size: 9px;
  line-height: 1.45;
}

.stt-language-field {
  min-height: 73px;
}

.stt-prompt-field {
  margin-top: 2px;
}

.record-row {
  display: flex;
  min-height: 70px;
  padding: 10px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
  gap: 12px;
}

.record-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 13px;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  gap: 8px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.record-button:hover {
  border-color: rgba(255, 107, 86, 0.5);
  background: rgba(255, 107, 86, 0.07);
}

.record-button.recording {
  border-color: rgba(255, 107, 86, 0.58);
  background: rgba(255, 107, 86, 0.11);
}

.record-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.record-button.recording .record-dot {
  animation: record-pulse 1.15s ease-in-out infinite;
}

.record-status {
  color: #747a73;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  line-height: 1.4;
}

.transcribe-button {
  min-height: 68px;
  margin-top: auto;
  background: var(--violet);
  box-shadow: 0 15px 35px rgba(94, 65, 197, 0.17);
}

.transcribe-button:hover {
  background: #b8a7ff;
  box-shadow: 0 20px 42px rgba(94, 65, 197, 0.25);
}

.transcribe-button:disabled:not(.loading) {
  cursor: not-allowed;
  opacity: 0.42;
}

.transcript-panel {
  padding: clamp(26px, 3.5vw, 50px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% -15%, rgba(255, 255, 255, 0.42), transparent 31%),
    var(--violet);
  box-shadow: 0 28px 70px rgba(83, 59, 164, 0.24);
  color: var(--ink);
  animation: reveal 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.transcript-step {
  color: rgba(12, 14, 13, 0.54);
}

.transcript-badges span {
  border-color: rgba(12, 14, 13, 0.2);
}

.transcript-panel.streaming #transcriptState {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--violet);
}

.transcript-paper {
  min-height: 235px;
  margin-top: 30px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(12, 14, 13, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.2vw, 29px);
  letter-spacing: -0.02em;
  line-height: 1.58;
}

#transcriptOutput {
  display: inline;
  margin: 0;
  white-space: pre-wrap;
}

#transcriptOutput:empty::before {
  color: rgba(12, 14, 13, 0.42);
  content: "Die ersten erkannten Wörter erscheinen hier …";
}

.transcript-caret {
  display: none;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  background: var(--ink);
  vertical-align: -0.08em;
}

.transcript-panel.streaming .transcript-caret {
  display: inline-block;
  animation: caret-blink 800ms steps(1) infinite;
}

.transcript-footer {
  display: flex;
  margin-top: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.transcript-footer > span {
  color: rgba(12, 14, 13, 0.56);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.transcript-footer > div {
  display: flex;
  gap: 7px;
}

.transcript-footer button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(12, 14, 13, 0.19);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  transition: background 160ms ease;
}

.transcript-footer button:hover {
  background: rgba(255, 255, 255, 0.32);
}

.result-panel {
  padding: clamp(26px, 3.5vw, 50px);
  border-radius: var(--radius-lg);
  background: var(--acid);
  box-shadow: 0 28px 70px rgba(118, 151, 0, 0.18);
  color: var(--ink);
  animation: reveal 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.result-panel.streaming {
  background:
    radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.42), transparent 30%),
    var(--acid);
}

.result-panel.streaming #resultLatency {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--acid);
}

.result-step {
  color: rgba(12, 14, 13, 0.55);
}

.result-heading h2 {
  font-size: clamp(28px, 3vw, 45px);
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.result-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(12, 14, 13, 0.18);
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player {
  display: grid;
  margin-top: 34px;
  padding: 17px;
  align-items: center;
  border: 1px solid rgba(12, 14, 13, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.24);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 19px;
}

.play-button {
  display: grid;
  width: 62px;
  height: 62px;
  padding-left: 3px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  cursor: pointer;
  font-size: 20px;
  transition: transform 160ms ease;
}

.play-button:hover {
  transform: scale(1.05);
}

.result-panel.streaming .play-button {
  animation: live-pulse 1.8s ease-in-out infinite;
}

.result-panel.streaming.paused .play-button {
  animation: none;
}

.waveform-wrap {
  min-width: 0;
}

#waveform {
  display: block;
  width: 100%;
  height: 72px;
  cursor: crosshair;
}

.time-row {
  display: flex;
  margin-top: 3px;
  justify-content: space-between;
  color: rgba(12, 14, 13, 0.57);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.download-button {
  display: inline-flex;
  min-height: 45px;
  padding: 0 15px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(12, 14, 13, 0.2);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  transition: background 160ms ease;
}

.download-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.download-button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.history-section {
  padding: 70px 4px 50px;
}

.section-heading {
  align-items: end;
}

.clear-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.history-list {
  margin-top: 25px;
  border-top: 1px solid var(--line);
}

.history-empty {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #666d65;
}

.history-empty span {
  font-size: 24px;
}

.history-empty p {
  margin: 0;
  font-size: 13px;
}

.history-item {
  display: grid;
  min-height: 86px;
  padding: 13px 3px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  animation: reveal 300ms ease;
}

.history-play {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 11px;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.history-play:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.history-copy {
  min-width: 0;
}

.history-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy span,
.history-meta {
  color: #6f756e;
  font-size: 10px;
}

.history-meta {
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  white-space: nowrap;
}

.history-download {
  width: 35px;
  height: 35px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.history-download:hover {
  border-color: var(--line);
  color: var(--paper);
}

footer {
  display: flex;
  width: min(1440px, calc(100% - 64px));
  min-height: 100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #6f756e;
  font-size: 11px;
}

footer p,
footer div {
  display: flex;
  gap: 13px;
}

footer a {
  transition: color 160ms ease;
}

footer a:hover {
  color: var(--paper);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: min(430px, calc(100% - 48px));
  min-height: 62px;
  padding: 12px 12px 12px 15px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 107, 86, 0.4);
  border-radius: 16px;
  background: #211816;
  box-shadow: var(--shadow);
  color: #f3d4cf;
  font-size: 12px;
  animation: toast-in 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  border-color: rgba(217, 255, 99, 0.36);
  background: #182014;
  color: #e6f2c2;
}

.toast-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-weight: 900;
}

.toast.success .toast-icon {
  background: var(--acid);
}

.toast > button {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.button-loader {
  animation-name: loader-spin;
}

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

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.97);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes shimmer {
  to {
    background-position-x: -250%;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(12, 14, 13, 0.2);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(12, 14, 13, 0);
  }
}

@keyframes record-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 86, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 107, 86, 0);
  }
}

@keyframes caret-blink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.65fr);
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .stt-workbench {
    grid-template-columns: 1fr;
  }

  .audio-drop-zone {
    min-height: 350px;
  }

  .voice-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .generate-zone {
    padding-top: 24px;
  }
}

@media (max-width: 800px) {
  .topbar,
  main,
  footer {
    width: min(100% - 32px, 680px);
  }

  .topbar {
    min-height: 72px;
  }

  .top-actions > a {
    display: none;
  }

  .status-badge {
    max-width: 165px;
  }

  .hero {
    min-height: auto;
    padding: 68px 0 62px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(40px, 10.7vw, 54px);
    letter-spacing: -0.065em;
  }

  .sound-sculpture {
    width: min(390px, 85vw);
    margin-top: 22px;
  }

  .studio-switcher {
    width: 100%;
  }

  .voice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .range-field {
    grid-column: auto;
  }

  .result-heading {
    flex-direction: column;
  }

  .result-badges {
    justify-content: flex-start;
  }

  .player {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .transcript-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-button {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .status-badge {
    width: 34px;
    min-width: 34px;
    min-height: 32px;
    padding: 0;
    justify-content: center;
  }

  #statusText {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-lead {
    margin-top: 25px;
    font-size: 16px;
  }

  .sound-sculpture {
    width: 78vw;
  }

  .composer-panel,
  .voices-panel,
  .stt-panel,
  .transcript-panel {
    border-radius: 23px;
  }

  .studio-mode {
    min-height: 60px;
    padding: 8px 10px;
  }

  .mode-index {
    display: none;
  }

  .audio-drop-zone {
    min-height: 300px;
    padding: 28px 18px;
    border-radius: 19px;
  }

  .drop-orbit {
    width: 92px;
    height: 92px;
  }

  .stt-config {
    padding: 16px;
    border-radius: 19px;
  }

  .stt-heading {
    flex-direction: column;
  }

  .record-row {
    align-items: stretch;
    flex-direction: column;
  }

  .record-button {
    justify-content: center;
  }

  .transcript-paper {
    min-height: 190px;
  }

  .transcript-footer > div {
    width: 100%;
  }

  .transcript-footer button {
    flex: 1;
  }

  .shortcut-hint {
    display: none;
  }

  .text-editor textarea {
    min-height: 205px;
    padding: 19px 18px 12px;
  }

  .prompt-row > span {
    width: 100%;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .range-field {
    grid-column: auto;
  }

  .voice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .voice-card {
    min-height: 104px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .result-panel {
    border-radius: 23px;
  }

  .player {
    padding: 12px;
    gap: 12px;
  }

  .play-button {
    width: 52px;
    height: 52px;
  }

  #waveform {
    height: 60px;
  }

  .history-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .history-meta {
    display: none;
  }

  footer {
    min-height: 130px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

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