:root {
  --ink: #172a2c;
  --muted: #687779;
  --paper: #f4f7f5;
  --card: rgba(255, 255, 255, 0.86);
  --line: rgba(23, 42, 44, 0.12);
  --soft-line: rgba(23, 42, 44, 0.075);
  --sea: #176b70;
  --sea-dark: #105458;
  --sea-soft: #d8ece8;
  --coral: #f17862;
  --yellow: #f6ca66;
  --shadow: 0 24px 70px rgba(35, 67, 66, 0.1), 0 2px 10px rgba(35, 67, 66, 0.04);
  color-scheme: light;
  font-family: "Manrope", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 42, 44, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 42, 44, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 52px 52px;
}

button,
textarea,
input {
  font: inherit;
}

button,
input[type="range"],
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(241, 120, 98, 0.35);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  width: 38vw;
  height: 38vw;
  top: -18vw;
  right: -9vw;
  background: radial-gradient(circle, rgba(187, 225, 218, 0.62), rgba(187, 225, 218, 0));
}

.ambient-two {
  width: 32vw;
  height: 32vw;
  bottom: -18vw;
  left: -15vw;
  background: radial-gradient(circle, rgba(249, 205, 112, 0.3), rgba(249, 205, 112, 0));
}

.site-header {
  width: min(1280px, calc(100% - 48px));
  height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 24px rgba(37, 77, 76, 0.06);
}

.brand-mark svg {
  width: 31px;
  fill: none;
  stroke: var(--sea);
  stroke-width: 2;
  stroke-linecap: round;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover {
  color: var(--ink);
}

.source-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 116px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d59d3d;
  box-shadow: 0 0 0 4px rgba(213, 157, 61, 0.12);
}

.status-pill.ready .status-dot {
  background: #3c9b71;
  box-shadow: 0 0 0 4px rgba(60, 155, 113, 0.12);
}

.status-pill.error .status-dot,
.status-pill.setup_required .status-dot,
.status-pill.offline .status-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(241, 120, 98, 0.12);
}

.status-pill.loading .status-dot {
  animation: pulse 1.2s ease infinite;
}

.app-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 96px;
}

.intro {
  max-width: 750px;
  margin-bottom: 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--sea);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--coral);
}

.intro h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.066em;
}

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

.intro p {
  max-width: 630px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.composer {
  padding: 34px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.card-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  color: var(--coral);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}

.card-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.character-count {
  color: #91a09f;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.character-count b {
  color: var(--muted);
  font-weight: 500;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 30px;
  padding: 6px;
  border: 1px solid var(--soft-line);
  border-radius: 17px;
  background: #f0f4f2;
}

.mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #788886;
  background: transparent;
  transition: 180ms ease;
}

.mode-tab:hover {
  color: var(--ink);
}

.mode-tab.active {
  border-color: rgba(23, 42, 44, 0.08);
  color: var(--ink);
  background: white;
  box-shadow: 0 7px 20px rgba(34, 65, 63, 0.07);
}

.mode-tab svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mode-tab span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 11px;
  font-weight: 700;
}

.mode-tab small {
  margin-top: 2px;
  color: #9ba6a5;
  font-size: 8px;
  font-weight: 500;
}

.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 23px 2px 9px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.field-label span:last-child {
  color: #96a19f;
  font-size: 9px;
  font-weight: 500;
}

.field-label.compact {
  margin-top: 17px;
}

.text-field-wrap,
.compact-textarea,
.upload-zone {
  border: 1px solid var(--line);
  background: rgba(249, 251, 250, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.text-field-wrap:focus-within,
.compact-textarea:focus,
.upload-zone.dragging {
  border-color: rgba(23, 107, 112, 0.48);
  background: white;
  box-shadow: 0 0 0 4px rgba(23, 107, 112, 0.07);
  outline: none;
}

.text-field-wrap {
  overflow: hidden;
  border-radius: 16px;
}

textarea {
  resize: vertical;
}

.text-field-wrap textarea {
  width: 100%;
  min-height: 138px;
  padding: 18px 18px 8px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  line-height: 1.65;
}

textarea::placeholder,
input::placeholder {
  color: #a8b1b0;
}

.event-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px 14px;
  scrollbar-width: none;
}

.event-chips::-webkit-scrollbar {
  display: none;
}

.event-chips button {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  color: #72807f;
  background: white;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  transition: 150ms ease;
}

.event-chips button:hover {
  border-color: rgba(23, 107, 112, 0.3);
  color: var(--sea);
  transform: translateY(-1px);
}

.conditional-fields {
  margin-top: 4px;
  animation: reveal 260ms ease both;
}

.compact-textarea {
  width: 100%;
  min-height: 78px;
  padding: 14px 15px;
  border-radius: 13px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

.upload-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 15px;
  border-style: dashed;
  border-radius: 15px;
}

.upload-zone:hover {
  border-color: rgba(23, 107, 112, 0.38);
  background: white;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--sea);
  background: var(--sea-soft);
}

.upload-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.upload-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy small {
  margin-top: 4px;
  color: #929e9d;
  font-size: 9px;
}

#clearUpload {
  display: grid;
  width: 25px;
  height: 25px;
  margin-left: auto;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #71807f;
  background: #e9efed;
}

.consent-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: #657472;
  font-size: 9px;
}

.consent-check input {
  position: absolute;
  opacity: 0;
}

.checkmark {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}

.checkmark svg {
  width: 12px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.consent-check input:checked + .checkmark {
  border-color: var(--sea);
  background: var(--sea);
}

.consent-check input:checked + .checkmark svg {
  opacity: 1;
}

.advanced-panel {
  margin-top: 20px;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.advanced-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  color: #6f7c7a;
  font-size: 10px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.advanced-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-panel summary svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.advanced-panel[open] summary svg {
  transform: rotate(180deg);
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 2px 2px 18px;
}

.advanced-grid label > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 9px;
  font-weight: 700;
}

.advanced-grid output {
  color: var(--sea);
  font-family: "DM Mono", monospace;
}

.advanced-grid small {
  display: block;
  margin-top: 7px;
  color: #9aa5a3;
  font-size: 8px;
  line-height: 1.5;
}

input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 10px 0 11px;
  accent-color: var(--sea);
}

.seed-control {
  display: flex;
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.seed-control input {
  width: 100%;
  min-width: 0;
  padding: 0 11px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.seed-control button {
  display: grid;
  width: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--soft-line);
  color: var(--sea);
  background: transparent;
}

.seed-control svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-alert {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(210, 92, 70, 0.18);
  border-radius: 10px;
  color: #a74232;
  background: rgba(241, 120, 98, 0.09);
  font-size: 10px;
  line-height: 1.5;
}

.generate-button {
  width: 100%;
  height: 57px;
  margin-top: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  color: white;
  background: var(--sea);
  box-shadow: 0 13px 30px rgba(23, 107, 112, 0.2);
  font-size: 12px;
  font-weight: 700;
  transition: 180ms ease;
}

.generate-button:not(:disabled):hover {
  background: var(--sea-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 107, 112, 0.25);
}

.generate-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.button-idle,
.button-working {
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.button-idle {
  display: flex;
}

.button-working {
  display: none;
}

.generate-button.working .button-idle {
  display: none;
}

.generate-button.working .button-working {
  display: flex;
}

.button-idle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-working i {
  width: 3px;
  height: 13px;
  border-radius: 999px;
  background: currentColor;
  animation: equalize 0.75s ease-in-out infinite alternate;
}

.button-working i:nth-child(2) { animation-delay: -0.22s; }
.button-working i:nth-child(3) { animation-delay: -0.45s; }

.output-column {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-card {
  min-height: 440px;
  padding: 34px;
}

.player-heading {
  margin-bottom: 18px;
}

.stream-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sea);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stream-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 0.9s ease infinite;
}

.empty-player {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.sound-orbit {
  position: relative;
  display: grid;
  width: 118px;
  height: 118px;
  margin-bottom: 26px;
  place-items: center;
}

.sound-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 107, 112, 0.12);
  border-radius: 50%;
}

.sound-orbit span:nth-child(2) { inset: 13px; border-color: rgba(23, 107, 112, 0.18); }
.sound-orbit span:nth-child(3) { inset: 27px; border-color: rgba(23, 107, 112, 0.24); background: rgba(216, 236, 232, 0.55); }

.sound-orbit svg {
  z-index: 1;
  width: 34px;
  fill: none;
  stroke: var(--sea);
  stroke-width: 2;
  stroke-linecap: round;
}

.empty-player strong {
  font-size: 13px;
}

.empty-player p {
  max-width: 250px;
  margin: 9px 0 0;
  color: #8c9997;
  font-size: 10px;
  line-height: 1.65;
}

.active-player {
  padding-top: 8px;
  animation: reveal 300ms ease both;
}

.wave-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  border: 1px solid rgba(23, 107, 112, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(rgba(23, 107, 112, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 112, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, #f1f8f6, #e8f2ef);
  background-size: 24px 24px, 24px 24px, auto;
}

#waveform {
  width: 100%;
  height: 100%;
}

.wave-scan {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  opacity: 0;
  background: var(--coral);
  box-shadow: 0 0 15px rgba(241, 120, 98, 0.65);
}

.wave-wrap.streaming .wave-scan {
  opacity: 1;
  animation: scan 2.2s linear infinite;
}

.transport {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
}

.play-button,
.download-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.play-button {
  width: 42px;
  height: 42px;
  border: 0;
  color: white;
  background: var(--sea);
}

.play-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.play-button .play-icon {
  fill: currentColor;
  stroke: none;
}

.play-button .pause-icon,
.play-button.playing .play-icon {
  display: none;
}

.play-button.playing .pause-icon {
  display: block;
}

.time {
  flex: 0 0 auto;
  color: #788684;
  font-family: "DM Mono", monospace;
  font-size: 8px;
}

.progress-track {
  position: relative;
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e9e6;
  cursor: pointer;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.download-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--sea);
  background: white;
}

.download-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-meta {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--soft-line);
}

.audio-meta div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.audio-meta span {
  margin-bottom: 5px;
  color: #9aa5a3;
  font-family: "DM Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-meta strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tips-card {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(23, 107, 112, 0.1);
  border-radius: 18px;
  background: rgba(218, 237, 233, 0.53);
}

.tip-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.tips-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
}

.tips-card p {
  margin: 0;
  color: #6f7e7c;
  font-size: 9px;
  line-height: 1.55;
}

.model-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.model-monogram {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--sea);
  background: rgba(255, 255, 255, 0.6);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}

.model-note > div:last-child {
  display: flex;
  flex-direction: column;
}

.model-note span,
.model-note small {
  color: #8b9896;
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.model-note strong {
  margin: 3px 0;
  font-size: 9px;
}

dialog {
  width: min(480px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(250, 252, 251, 0.96);
  box-shadow: 0 30px 100px rgba(20, 43, 43, 0.24);
  backdrop-filter: blur(28px);
}

dialog::backdrop {
  background: rgba(16, 34, 35, 0.3);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: white;
}

.dialog-kicker {
  color: var(--coral);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

dialog h2 {
  margin: 12px 0 9px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

dialog pre {
  max-height: 150px;
  margin: 16px 0 0;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  color: #dbecea;
  background: #1d3132;
  font: 8px/1.6 "DM Mono", monospace;
  white-space: pre-wrap;
}

.dialog-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.dialog-facts span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  color: #8a9795;
  font-size: 7px;
}

.dialog-facts b {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 8px;
}

@keyframes pulse {
  50% { opacity: 0.4; transform: scale(0.75); }
}

@keyframes equalize {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

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

@keyframes scan {
  from { left: 0; }
  to { left: 100%; }
}

@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .output-column {
    position: static;
  }

  .player-card {
    min-height: 400px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .app-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 78px;
  }

  .source-link {
    display: none;
  }

  .status-pill {
    min-width: 0;
  }

  .app-shell {
    padding: 52px 0 72px;
  }

  .intro {
    margin-bottom: 38px;
  }

  .intro h1 {
    font-size: clamp(43px, 15vw, 62px);
  }

  .intro p {
    font-size: 13px;
  }

  .composer,
  .player-card {
    padding: 23px;
    border-radius: 22px;
  }

  .mode-tab {
    min-height: 51px;
  }

  .mode-tab svg,
  .mode-tab small {
    display: none;
  }

  .field-label span:last-child {
    max-width: 50%;
    text-align: right;
  }

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

  .audio-meta {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .dialog-facts {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
