/* SoundLoom light interface. Functional behavior remains in app.js and daw-ui.js. */
:root {
  --studio-canvas: #f4f7f5;
  --studio-panel: rgba(255, 255, 255, 0.82);
  --studio-panel-solid: #ffffff;
  --studio-surface: #f0f3f1;
  --studio-line: rgba(39, 54, 48, 0.12);
  --studio-line-strong: rgba(39, 54, 48, 0.2);
  --studio-mint: #658b7e;
  --studio-mint-hover: #527568;
  --studio-violet: #8298a7;
  --studio-primary: #1d211f;
  --studio-secondary: #4f5854;
  --studio-muted: #818985;
  --studio-warm: #c6a497;
  --studio-danger: #b16b63;
  --studio-shadow: 0 10px 30px rgba(45, 61, 54, 0.07);
  --studio-shadow-soft: 0 3px 12px rgba(45, 61, 54, 0.055);
  --studio-panel-radius: 8px;
  --studio-card-radius: 8px;
  --studio-control-radius: 10px;
  --studio-field-radius: 8px;
  --studio-motion: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --paper: #ffffff;
  --ink: #1d211f;
  --muted: #818985;
  --line: rgba(39, 54, 48, 0.12);
  --accent: #658b7e;
}

html {
  background: var(--studio-canvas);
  color-scheme: light;
}

body {
  background: linear-gradient(180deg, #fafbfa 0%, #f4f7f5 54%, #eef3f0 100%);
  color: var(--studio-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body :focus-visible {
  outline: 3px solid rgba(101, 139, 126, 0.3);
  outline-offset: 2px;
}

body .kicker,
body .hero-eyebrow {
  color: var(--studio-mint);
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
  text-transform: uppercase;
}

body .primary-button,
body .nav-cta {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--studio-mint);
  border-radius: var(--studio-control-radius);
  background: var(--studio-mint);
  box-shadow: 0 2px 8px rgba(79, 111, 99, 0.16);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--studio-motion), border-color var(--studio-motion), box-shadow var(--studio-motion), transform var(--studio-motion);
}

body .primary-button:hover,
body .nav-cta:hover {
  border-color: var(--studio-mint-hover);
  background: var(--studio-mint-hover);
  box-shadow: 0 5px 14px rgba(79, 111, 99, 0.18);
  transform: translateY(-1px);
}

body .primary-button:active,
body .nav-cta:active {
  box-shadow: 0 1px 4px rgba(79, 111, 99, 0.14);
  transform: translateY(0);
}

body .ghost-button,
body .icon-button,
body .mini-button,
body .link-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-control-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  color: var(--studio-secondary);
  font-size: 14px;
  font-weight: 550;
  transition: color var(--studio-motion), border-color var(--studio-motion), background var(--studio-motion), box-shadow var(--studio-motion), transform var(--studio-motion);
}

body .ghost-button:hover,
body .icon-button:hover,
body .mini-button:hover,
body .link-button:hover {
  border-color: rgba(101, 139, 126, 0.35);
  background: #ffffff;
  box-shadow: var(--studio-shadow-soft);
  color: var(--studio-primary);
  transform: translateY(-1px);
}

body .site-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 8px max(24px, calc((100vw - 1440px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(39, 54, 48, 0.09);
  border-radius: 0;
  background: rgba(250, 251, 250, 0.82);
  box-shadow: none;
  backdrop-filter: saturate(125%) blur(22px);
  -webkit-backdrop-filter: saturate(125%) blur(22px);
}

body .brand {
  gap: 10px;
  min-width: 156px;
}

body .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 1px solid rgba(39, 54, 48, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(45, 61, 54, 0.05);
}

body .brand strong {
  color: var(--studio-primary);
  font-size: 15px;
  font-weight: 650;
}

body .brand small {
  color: var(--studio-muted);
  font-size: 10px;
}

body .site-nav nav {
  gap: 2px;
}

body .site-nav nav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #737b77;
  font-size: 13px;
  font-weight: 520;
}

body .site-nav nav a:hover,
body .site-nav nav a.active {
  background: rgba(101, 139, 126, 0.08);
  color: var(--studio-primary);
}

body .site-nav nav a.active::after {
  display: none;
}

body .nav-actions {
  gap: 8px;
}

body .language-select-label {
  min-width: 104px;
}

body .language-select-label select,
body .daw-select,
body .auth-field input,
body .auth-field select,
body .auth-field textarea,
body .comment-row input {
  min-height: 40px;
  border: 1px solid var(--studio-line);
  border-radius: var(--studio-field-radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--studio-secondary);
  box-shadow: inset 0 1px 1px rgba(38, 50, 45, 0.02);
}

body .language-select-label select {
  padding-left: 11px;
}

body .account-avatar-button,
body .account-avatar-large,
body .clip-remove {
  border-color: var(--studio-line);
  background: #ffffff;
  color: var(--studio-secondary);
  box-shadow: var(--studio-shadow-soft);
}

body .account-avatar-button {
  width: 40px;
  height: 40px;
}

body .account-menu {
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(37, 49, 44, 0.14);
  color: var(--studio-secondary);
  backdrop-filter: blur(24px);
}

body .landing-view {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 62px);
  padding: 88px 0 64px;
}

body .hero-wave-canvas {
  height: 560px;
  opacity: 0.22;
  filter: saturate(0.5);
}

body .hero-weave-mark {
  right: 4%;
  opacity: 0.08;
}

body .hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

body .hero-content h1 {
  max-width: 800px;
  margin: 18px auto 20px;
  color: var(--studio-primary);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 650;
  line-height: 1.02;
}

body .hero-description {
  max-width: 670px;
  margin: 0 auto;
  color: var(--studio-secondary);
  font-size: 18px;
  line-height: 1.65;
}

body .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

body .hero-feature-grid {
  position: relative;
  z-index: 2;
  gap: 12px;
  margin-top: 80px;
}

body .hero-feature-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--studio-shadow-soft);
  color: var(--studio-secondary);
  backdrop-filter: blur(16px);
}

body .hero-feature-card:hover {
  border-color: rgba(101, 139, 126, 0.25);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--studio-shadow);
  transform: translateY(-2px);
}

body .hero-feature-card h2,
body .hero-feature-card button {
  color: var(--studio-primary);
}

body .hero-feature-card p,
body .feature-index {
  color: var(--studio-muted);
}

body .mini-wave-bars i,
body .mini-control-lines i::after {
  background: var(--studio-mint);
}

body .mini-wave-bars i:nth-child(4),
body .mini-control-lines i:nth-child(2)::after {
  background: var(--studio-violet);
}

body .mini-control-lines i {
  background: rgba(39, 54, 48, 0.11);
}

body .app-shell {
  grid-template-columns: 232px minmax(560px, 1fr) 272px;
  gap: 16px;
  width: min(1440px, calc(100% - 48px));
  margin: 34px auto 0;
  padding-bottom: 116px;
}

body .studio {
  min-width: 0;
}

body .topbar {
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

body .topbar h2 {
  max-width: 680px;
  margin: 7px 0 7px;
  color: var(--studio-primary);
  font-size: 32px;
  font-weight: 650;
  line-height: 1.16;
}

body .headline-subtitle {
  max-width: 660px;
  color: var(--studio-muted);
  font-size: 14px;
  line-height: 1.55;
}

body .transport {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 7px;
}

body .transport #playBtn,
body .transport #addRecordBtn,
body .transport #exportBtn,
body .transport #dawAssetsToggle {
  display: none;
}

body .transport button {
  white-space: nowrap;
}

body .linear-progress {
  min-height: 52px;
  margin-bottom: 12px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

body .linear-progress-step {
  border-right-color: rgba(39, 54, 48, 0.08);
  color: var(--studio-muted);
}

body .linear-progress-step span {
  border-color: var(--studio-line-strong);
  background: rgba(255, 255, 255, 0.7);
}

body .linear-progress-step.active,
body .linear-progress-step.done {
  background: rgba(101, 139, 126, 0.075);
  color: var(--studio-secondary);
}

body .linear-progress-step.active span,
body .linear-progress-step.done span {
  border-color: var(--studio-mint);
  background: var(--studio-mint);
  color: #ffffff;
}

body .capture-panel,
body .flow-panel,
body .melody-panel,
body .controls-grid > .panel,
body .side > .panel,
body .daw-parameters {
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: var(--studio-panel);
  box-shadow: var(--studio-shadow-soft);
  color: var(--studio-secondary);
  backdrop-filter: saturate(115%) blur(18px);
  -webkit-backdrop-filter: saturate(115%) blur(18px);
}

body .capture-panel {
  min-height: 520px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 244, 0.88));
}

body .capture-panel::before {
  display: none;
}

body #waveCanvas {
  opacity: 0.62;
  filter: none;
}

body .record-button {
  width: 220px;
  height: 220px;
  min-height: 220px;
  padding: 26px 20px;
  border: 1px solid rgba(101, 139, 126, 0.3);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(226, 236, 231, 0.94));
  box-shadow: 0 14px 36px rgba(70, 95, 85, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  color: var(--studio-primary);
}

body .record-button:hover {
  border-color: rgba(101, 139, 126, 0.52);
  background: linear-gradient(145deg, #ffffff, #dce9e3);
  box-shadow: 0 18px 42px rgba(70, 95, 85, 0.14), inset 0 1px 0 #ffffff;
}

body .record-button.recording,
body .record-button.is-recording {
  border-color: rgba(177, 107, 99, 0.54);
  background: linear-gradient(145deg, #fffdfc, #f0dfdc);
  box-shadow: 0 16px 40px rgba(148, 88, 80, 0.13), inset 0 1px 0 #ffffff;
}

body #recordGlyph {
  color: var(--studio-mint);
  font-size: 18px;
}

body .record-button.recording #recordGlyph,
body .record-button.is-recording #recordGlyph {
  color: var(--studio-danger);
}

body .record-wave {
  width: 156px;
  height: 48px;
  margin: 8px 0;
  border: 1px solid rgba(39, 54, 48, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

body .record-live-text,
body .record-timer,
body .record-button small {
  color: var(--studio-muted);
}

body .record-button strong {
  color: var(--studio-primary);
  font-size: 15px;
  font-weight: 600;
}

body .capture-guide {
  top: 22px;
  left: 22px;
  color: var(--studio-secondary);
}

body .capture-guide span {
  color: var(--studio-muted);
}

body .capture-count {
  top: 22px;
  right: 22px;
  border: 1px solid rgba(130, 152, 167, 0.22);
  border-radius: 999px;
  background: rgba(130, 152, 167, 0.09);
  color: #617481;
}

body .capture-next-button {
  right: 22px;
  bottom: 22px;
}

body .capture-copy {
  bottom: 22px;
  left: 22px;
  max-width: 400px;
}

body .capture-copy h2 {
  color: var(--studio-primary);
  font-size: 18px;
  font-weight: 620;
}

body .capture-copy p {
  color: var(--studio-muted);
}

body .record-confirm {
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 50px rgba(37, 49, 44, 0.14);
  color: var(--studio-secondary);
  backdrop-filter: blur(20px);
}

body[data-workflow="capture"] .flow-panel {
  display: none;
}

body .flow-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

body .flow-step,
body .arrangement-status,
body .flow-actions .compact-action {
  display: none;
}

body .flow-actions {
  display: grid;
  grid-template-columns: minmax(112px, 0.28fr) 1fr;
  gap: 8px;
}

body .next-step-hint {
  margin: 0;
  color: var(--studio-muted);
  font-size: 12px;
  text-align: center;
}

body .melody-panel {
  grid-template-columns: minmax(200px, 0.75fr) minmax(360px, 1.25fr);
  gap: 20px;
  margin-top: 12px;
  padding: 20px;
}

body .melody-copy > span {
  color: var(--studio-mint);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

body .melody-copy strong {
  color: var(--studio-primary);
  font-weight: 620;
}

body .melody-copy p {
  color: var(--studio-muted);
}

body .seed-mode,
body .scene,
body .option-chip,
body .role-chip,
body .recipe {
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--studio-secondary);
}

body .seed-mode:hover,
body .option-chip:hover,
body .role-chip:hover {
  border-color: rgba(101, 139, 126, 0.28);
  background: #ffffff;
}

body .seed-mode.active,
body .scene.active,
body .option-chip.active,
body .role-chip.active,
body .recipe.on {
  border-color: rgba(101, 139, 126, 0.38);
  background: rgba(101, 139, 126, 0.085);
  color: var(--studio-primary);
}

body .seed-mode span,
body .scene small {
  color: var(--studio-muted);
}

body .controls-grid {
  margin-top: 12px;
}

body .controls-grid > .panel,
body .side > .panel {
  padding: 16px;
}

body .controls-grid > .scene-panel,
body .controls-grid > .smart-panel,
body .sound-id-panel,
body .history-panel {
  display: none !important;
}

body .panel-title span,
body .panel-title strong {
  color: var(--studio-primary);
  font-weight: 620;
}

body .panel-title small {
  color: var(--studio-muted);
}

body .side {
  top: 82px;
  gap: 12px;
  max-height: calc(100vh - 108px);
  scrollbar-color: rgba(39, 54, 48, 0.18) transparent;
}

body .clip-card,
body .history-item,
body .recipe {
  border-color: var(--studio-line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--studio-secondary);
}

body .clip-card:hover {
  border-color: rgba(101, 139, 126, 0.25);
  background: #ffffff;
}

body .clip-card strong,
body .history-item strong,
body .recipe.on {
  color: var(--studio-primary);
}

body .empty-state {
  border-color: rgba(39, 54, 48, 0.1);
  background: rgba(255, 255, 255, 0.38);
  color: var(--studio-muted);
}

body .daw-parameters {
  top: 82px;
  padding: 18px;
}

body .parameters-heading h2 {
  color: var(--studio-primary);
  font-size: 20px;
  font-weight: 640;
}

body .parameter-close {
  border: 1px solid var(--studio-line);
  background: #ffffff;
  color: var(--studio-secondary);
}

body .parameter-group {
  border-color: rgba(39, 54, 48, 0.09);
}

body .parameter-label-row label,
body .parameter-field-group > label,
body .duration-group legend {
  color: var(--studio-secondary);
}

body .parameter-label-row output {
  color: var(--studio-muted);
}

body .daw-slider {
  background: linear-gradient(to right, var(--studio-mint) var(--range-value, 50%), #dfe5e2 var(--range-value, 50%));
}

body .daw-slider::-webkit-slider-thumb {
  border-color: rgba(39, 54, 48, 0.1);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(45, 61, 54, 0.12);
}

body .duration-segments {
  border: 1px solid var(--studio-line);
  background: var(--studio-surface);
}

body .duration-segments button {
  border-color: transparent;
  background: transparent;
  color: var(--studio-muted);
}

body .duration-segments button.active {
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(45, 61, 54, 0.08);
  color: var(--studio-primary);
}

body .parameter-summary,
body .mir-engine-status {
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: rgba(244, 247, 245, 0.82);
  color: var(--studio-secondary);
}

body .summary-pulse {
  background: var(--studio-mint);
  box-shadow: 0 0 0 5px rgba(101, 139, 126, 0.09);
}

body .parameter-summary strong,
body .mir-engine-status strong {
  color: var(--studio-primary);
}

body .parameter-summary small,
body .mir-engine-status small,
body .mir-engine-status > span {
  color: var(--studio-muted);
}

body .mir-engine-progress {
  background: rgba(101, 139, 126, 0.11);
}

body .mir-engine-progress span {
  background: var(--studio-mint);
}

body .daw-bottom-transport {
  right: 50%;
  bottom: 18px;
  left: auto;
  grid-template-columns: 42px auto minmax(140px, 280px) auto auto;
  width: min(720px, calc(100% - 32px));
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid rgba(39, 54, 48, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(37, 49, 44, 0.14);
  color: var(--studio-secondary);
  transform: translateX(50%);
  backdrop-filter: saturate(130%) blur(24px);
  -webkit-backdrop-filter: saturate(130%) blur(24px);
}

body .bottom-icon-button,
body .bottom-generate-button,
body .bottom-parameters-button {
  min-height: 42px;
  border-radius: 10px;
}

body .bottom-icon-button {
  border: 1px solid var(--studio-line);
  background: #ffffff;
  color: var(--studio-primary);
  box-shadow: var(--studio-shadow-soft);
}

body .bottom-generate-button {
  border: 1px solid var(--studio-mint);
  background: var(--studio-mint);
  color: #ffffff;
}

body .bottom-parameters-button {
  border: 1px solid var(--studio-line);
  background: rgba(244, 247, 245, 0.9);
  color: var(--studio-secondary);
}

body .bottom-progress-track {
  background: rgba(39, 54, 48, 0.09);
}

body .bottom-progress-track span {
  background: var(--studio-mint);
}

body .bottom-record-button,
body #bottomMidiBtn,
body #bottomExportBtn {
  display: none;
}

body .auth-modal {
  background: rgba(44, 52, 48, 0.24);
  backdrop-filter: blur(14px);
}

body .auth-card {
  border: 1px solid rgba(39, 54, 48, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(37, 49, 44, 0.2);
  color: var(--studio-secondary);
}

body .auth-heading h2,
body .auth-brand strong,
body .auth-field > span {
  color: var(--studio-primary);
}

body .auth-copy,
body .auth-brand small {
  color: var(--studio-muted);
}

body .auth-tab {
  border-color: var(--studio-line);
  background: var(--studio-surface);
  color: var(--studio-muted);
}

body .auth-tab.active {
  border-color: rgba(101, 139, 126, 0.32);
  background: rgba(101, 139, 126, 0.08);
  color: var(--studio-primary);
}

body .toast {
  border: 1px solid rgba(39, 54, 48, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 42px rgba(37, 49, 44, 0.14);
  color: var(--studio-primary);
  backdrop-filter: blur(20px);
}

@media (max-width: 1279px) {
  body .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    width: min(1120px, calc(100% - 32px));
  }

  body .studio {
    grid-column: 2;
    grid-row: 1;
  }

  body .side {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body .daw-parameters {
    position: static;
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  body .parameters-heading,
  body .parameter-summary,
  body .mir-engine-status,
  body .daw-generate-button {
    grid-column: 1 / -1;
  }

  body .parameter-close {
    display: none;
  }
}

@media (max-width: 900px) {
  body .site-nav {
    width: 100%;
    margin: 0;
    padding-right: 16px;
    padding-left: 16px;
  }

  body .site-nav nav {
    position: static;
    display: flex;
    padding: 0;
    flex-direction: row;
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body .mobile-nav-toggle {
    display: none;
  }

  body .nav-actions {
    display: flex;
    width: auto;
    padding-top: 0;
  }

  body[data-active-view="studio"] .app-shell {
    display: flex !important;
    width: calc(100% - 24px);
    margin-top: 24px;
    flex-direction: column;
  }

  body .studio,
  body .side,
  body .daw-parameters {
    position: static;
    width: 100%;
    max-height: none;
    transform: none;
    transition: none;
  }

  body .studio { order: 1; }
  body .side { order: 2; display: grid; grid-template-columns: 1fr 1fr; }
  body .daw-parameters { order: 3; }

  body .parameter-close {
    display: none;
  }

  body .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  body .transport {
    width: 100%;
    justify-content: flex-start;
  }

  body .capture-panel {
    min-height: 500px;
  }

  body .melody-panel {
    grid-template-columns: 1fr;
  }

  body .daw-bottom-transport {
    grid-template-columns: 42px auto minmax(90px, 1fr) auto auto;
  }
}

@media (max-width: 640px) {
  body .site-nav {
    grid-template-columns: auto 1fr auto;
    min-height: 58px;
  }

  body .brand {
    min-width: 0;
  }

  body .brand small,
  body .nav-cta,
  body .site-nav nav {
    display: none;
  }

  body .nav-actions {
    grid-column: 3;
  }

  body .language-select-label {
    min-width: 92px;
  }

  body .mobile-nav-toggle {
    display: none;
  }

  body .landing-view {
    width: calc(100% - 32px);
    padding-top: 62px;
  }

  body .hero-content h1 {
    font-size: 44px;
  }

  body .hero-description {
    font-size: 16px;
  }

  body .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body .hero-feature-grid {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  body[data-active-view="studio"] .app-shell {
    width: calc(100% - 16px);
    margin-top: 18px;
    padding-bottom: 102px;
  }

  body .topbar h2 {
    font-size: 27px;
  }

  body .transport {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body .transport button {
    width: 100%;
  }

  body .linear-progress-step {
    padding: 8px 4px;
  }

  body .linear-progress-step strong {
    font-size: 11px;
  }

  body .linear-progress-step span {
    width: 22px;
    height: 22px;
  }

  body .capture-panel {
    min-height: 590px;
  }

  body .capture-guide {
    top: 18px;
    right: 18px;
    left: 18px;
    max-width: none;
  }

  body .capture-count {
    top: 90px;
    right: 18px;
  }

  body .record-button {
    width: 192px;
    height: 192px;
    min-height: 192px;
    padding: 22px 16px;
    transform: translateY(-24px);
  }

  body .record-button:active {
    transform: translateY(-24px) scale(0.99);
  }

  body .record-wave {
    width: 142px;
  }

  body .capture-next-button {
    right: 18px;
    bottom: 116px;
    left: 18px;
    width: auto;
  }

  body .capture-copy {
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: none;
  }

  body .capture-copy p {
    line-height: 18px;
  }

  body .flow-actions {
    grid-template-columns: 1fr;
  }

  body .seed-modes {
    grid-template-columns: 1fr;
  }

  body .side {
    grid-template-columns: 1fr;
  }

  body .daw-parameters {
    display: grid;
    grid-template-columns: 1fr;
  }

  body .daw-parameters > * {
    grid-column: 1;
  }

  body .daw-bottom-transport {
    bottom: 0;
    grid-template-columns: 42px minmax(70px, auto) minmax(74px, 1fr) auto;
    width: 100%;
    min-height: 70px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  body .bottom-progress-track {
    display: none;
  }

  body .bottom-time {
    font-size: 11px;
  }

  body .bottom-generate-button,
  body .bottom-parameters-button {
    padding: 0 12px;
    font-size: 12px;
  }

  body .auth-card {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

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