:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: rgba(24, 27, 36, 0.88);
  --panel-strong: #1d202a;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f6f7fb;
  --muted: #a8adbc;
  --deck-a: #ff8a4c;
  --deck-a-soft: rgba(255, 138, 76, 0.18);
  --deck-b: #5ecbff;
  --deck-b-soft: rgba(94, 203, 255, 0.18);
  --success: #6ee7a8;
  --danger: #ff808d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, #24293a 0, transparent 42rem),
    linear-gradient(180deg, #10131a 0, var(--bg) 48rem);
}

button,
input {
  font: inherit;
}

button,
input[type="range"],
.toggle {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
.toggle input:focus-visible + span {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(80px);
  pointer-events: none;
}

.ambient-one {
  top: 9rem;
  left: -11rem;
  background: var(--deck-a);
}

.ambient-two {
  top: 22rem;
  right: -11rem;
  background: var(--deck-b);
}

.site-header,
main {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark span {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--deck-a);
}

.brand-mark span:last-child {
  border-left-color: var(--deck-b);
}

.header-actions,
.transport-buttons,
.deck-controls,
.quick-fades {
  display: flex;
  gap: 8px;
  align-items: center;
}

.api-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc966;
  box-shadow: 0 0 0 5px rgba(255, 201, 102, 0.1);
}

.api-status[data-state="ready"] .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(110, 231, 168, 0.1);
}

.api-status[data-state="error"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 128, 141, 0.1);
}

.user-name {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  padding: 36px 0 max(64px, env(safe-area-inset-bottom));
}

.intro {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  padding: 24px 4px 30px;
}

.intro h1 {
  max-width: 780px;
  margin: 2px 0 12px;
  font-size: clamp(2.15rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.intro p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.eyebrow,
.deck-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    opacity 140ms ease;
}

.button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button-primary {
  border-color: transparent;
  color: #11151a;
  background: var(--text);
}

.button-primary:hover:not(:disabled) {
  border-color: transparent;
  background: #ffffff;
}

.button-quiet {
  min-height: 36px;
  padding-inline: 12px;
  background: transparent;
}

.transport {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px;
}

.keyboard-hint {
  margin: 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mixer {
  margin-bottom: 16px;
  padding: 22px;
}

.automation {
  margin-bottom: 16px;
  padding: 22px;
}

.automation-heading {
  margin-bottom: 18px;
}

.cloud-status {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cloud-status[data-state="ready"] {
  border-color: rgba(110, 231, 168, 0.24);
  color: var(--success);
  background: rgba(110, 231, 168, 0.07);
}

.cloud-status[data-state="error"] {
  border-color: rgba(255, 128, 141, 0.24);
  color: var(--danger);
  background: rgba(255, 128, 141, 0.07);
}

.automation-gate,
.shared-automation {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 9, 13, 0.36);
}

.automation-gate strong {
  font-size: 0.9rem;
}

.automation-gate p,
.automation-library-heading p,
.shared-automation p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.automation-recorder {
  display: grid;
  grid-template-columns:
    auto minmax(160px, 1fr) repeat(3, auto) minmax(80px, auto);
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 9, 13, 0.36);
}

.automation-recorder > label,
.share-dialog label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.automation-recorder input,
.share-dialog input,
.share-dialog textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: rgba(7, 9, 13, 0.62);
}

.share-dialog textarea {
  min-height: 84px;
  resize: vertical;
}

.record-button {
  border-color: rgba(255, 128, 141, 0.34);
  background: rgba(255, 128, 141, 0.12);
}

.recording-status {
  color: var(--muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.recording-status[data-state="recording"] {
  color: var(--danger);
}

.recording-status[data-state="playing"] {
  color: var(--success);
}

.automation-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 20px 2px 10px;
}

.automation-library-heading h3,
.shared-automation h3 {
  margin: 0;
  font-size: 0.92rem;
}

.automation-list {
  display: grid;
  gap: 8px;
}

.automation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.automation-item h4 {
  margin: 0;
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.automation-actions,
.shared-actions,
.dialog-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.automation-actions .button {
  min-height: 36px;
  padding-inline: 10px;
  font-size: 0.74rem;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.shared-automation {
  margin-top: 12px;
  border-color: rgba(94, 203, 255, 0.24);
  background: var(--deck-b-soft);
}

.shared-badge {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--deck-b);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.section-heading h2,
.notes h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.master-control {
  display: grid;
  grid-template-columns: auto minmax(90px, 160px) 44px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.master-control output {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

input[type="range"] {
  accent-color: #f7f7fa;
  cursor: pointer;
  touch-action: pan-y;
}

.crossfader-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.crossfader-labels span:nth-child(2) {
  text-align: center;
}

.crossfader-labels span:last-child {
  text-align: right;
}

.deck-color-a {
  color: var(--deck-a);
}

.deck-color-b {
  color: var(--deck-b);
}

.crossfader {
  width: 100%;
  height: 34px;
  margin: 4px 0 0;
  accent-color: #ffffff;
}

.mix-readout {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.mix-readout > span:last-child {
  text-align: right;
}

.mix-readout strong {
  color: var(--text);
}

.text-button {
  padding: 4px 7px;
  border: 0;
  color: var(--muted);
  font-size: 0.74rem;
  cursor: pointer;
  background: transparent;
}

.text-button:hover {
  color: var(--text);
}

.decks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deck {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
}

.deck::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--deck-a);
}

.deck-b::before {
  background: var(--deck-b);
}

.deck-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  min-height: 58px;
  margin-bottom: 14px;
}

.deck-header h2 {
  max-width: 420px;
  margin: 0;
  overflow: hidden;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-a .deck-label {
  color: var(--deck-a);
}

.deck-b .deck-label {
  color: var(--deck-b);
}

.deck-status {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deck-status[data-state="playing"] {
  border-color: rgba(110, 231, 168, 0.28);
  color: var(--success);
  background: rgba(110, 231, 168, 0.08);
}

.deck-status[data-state="error"] {
  border-color: rgba(255, 128, 141, 0.28);
  color: var(--danger);
  background: rgba(255, 128, 141, 0.08);
}

.source-form {
  margin-bottom: 14px;
}

.source-form > label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.source-row {
  display: flex;
  gap: 8px;
}

.source-row input {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  background: rgba(7, 9, 13, 0.55);
}

.source-row input::placeholder {
  color: #717788;
}

.source-row input:focus {
  border-color: rgba(255, 255, 255, 0.38);
}

.deck-a .deck-button {
  border-color: rgba(255, 138, 76, 0.32);
  background: var(--deck-a-soft);
}

.deck-b .deck-button {
  border-color: rgba(94, 203, 255, 0.32);
  background: var(--deck-b-soft);
}

.field-help,
.field-error {
  min-height: 17px;
  margin: 6px 2px 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

.field-help {
  color: #777d8e;
}

.field-error {
  min-height: 0;
  color: var(--danger);
}

.field-error:not(:empty) + * {
  margin-top: 4px;
}

.video-shell {
  position: relative;
  width: 100%;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #050609;
  aspect-ratio: 16 / 9;
  transition: height 180ms ease;
}

.video-shell iframe,
.player-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
}

.player-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #555b6b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#player-a,
#player-b {
  position: relative;
  z-index: 1;
  display: block;
}

body.compact .video-shell {
  height: 200px;
  aspect-ratio: auto;
}

.deck-controls {
  flex-wrap: wrap;
  margin-top: 14px;
}

.deck-controls .button {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 0.78rem;
}

.toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle span {
  position: relative;
  width: 34px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 140ms ease;
}

.toggle span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: var(--muted);
  transition:
    transform 140ms ease,
    background 140ms ease;
}

.toggle input:checked + span {
  background: rgba(110, 231, 168, 0.22);
}

.toggle input:checked + span::after {
  background: var(--success);
  transform: translateX(14px);
}

.deck-audio {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.deck-volume input,
.effect-control input {
  width: 100%;
}

.deck-a .deck-audio input[type="range"] {
  accent-color: var(--deck-a);
}

.deck-b .deck-audio input[type="range"] {
  accent-color: var(--deck-b);
}

.control-label-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.control-label-row output {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.deck-volume > input {
  min-height: 42px;
  margin-top: 2px;
}

.distance-effect {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(7, 9, 13, 0.28);
}

.effect-card-header {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.distance-effect h3 {
  margin: 0;
  font-size: 0.78rem;
}

.distance-effect p {
  margin: 4px 0 0;
  color: #777d8e;
  font-size: 0.67rem;
  line-height: 1.35;
}

.effect-toggle {
  min-height: 24px;
  margin-left: 0;
}

.effect-adjusters {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  transition: opacity 140ms ease;
}

.effect-adjusters[data-enabled="false"] {
  opacity: 0.38;
}

.effect-control input {
  min-height: 42px;
  margin: 1px 0 0;
}

.distance-output {
  text-align: right;
  color: var(--muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.distance-output strong {
  color: var(--text);
}

.notes {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 16px;
  padding: 22px;
}

.notes > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.seo-content {
  padding: 72px 4px 18px;
}

.seo-lead {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1fr;
  gap: 48px;
  align-items: end;
}

.seo-lead .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -34px;
}

.seo-lead h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.seo-lead > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.feature-grid article,
.how-it-works,
.faq {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(24, 27, 36, 0.54);
}

.feature-grid h3,
.how-it-works h2,
.faq h2,
.legal h2,
.legal h3 {
  margin: 0;
  letter-spacing: -0.025em;
}

.feature-grid h3,
.legal h3 {
  font-size: 0.95rem;
}

.feature-grid p,
.how-it-works li,
.faq p,
.legal p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.how-it-works,
.faq {
  margin-top: 14px;
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0 0;
  padding-left: 24px;
}

.faq details {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq summary {
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.faq p {
  margin: 8px 0 0;
}

.legal {
  margin-top: 32px;
  padding: 24px;
}

.legal-date {
  margin: 6px 0 0;
  font-size: 0.72rem !important;
}

.legal-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin-top: 20px;
}

.legal-columns p {
  margin: 7px 0 0;
}

.site-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 4px max(36px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer a {
  color: var(--muted);
}

.share-dialog {
  width: min(520px, calc(100% - 28px));
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  background: #1b1e27;
  box-shadow: var(--shadow);
}

.share-dialog::backdrop {
  background: rgba(4, 5, 8, 0.75);
  backdrop-filter: blur(5px);
}

.share-dialog form {
  display: grid;
  gap: 8px;
}

.dialog-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dialog-heading h2 {
  margin: 0;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  background: #272b36;
  box-shadow: var(--shadow);
}

.noscript {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 50;
  padding: 16px;
  border-radius: 12px;
  color: #24090c;
  text-align: center;
  background: var(--danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .api-status {
    width: 100%;
    justify-content: flex-end;
  }

  .decks {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .automation-recorder {
    grid-template-columns: repeat(3, 1fr);
  }

  .automation-recorder > label {
    grid-column: 1;
  }

  .automation-recorder > input {
    grid-column: 2 / -1;
  }

  .automation-recorder .recording-status {
    grid-column: 1 / -1;
    text-align: left;
  }

  .how-it-works ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-lead {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .seo-lead .eyebrow {
    margin-bottom: -8px;
  }

  .transport {
    align-items: flex-start;
  }

  .keyboard-hint {
    display: none;
  }

  .compact-button {
    flex: none;
  }
}

@media (max-width: 560px) {
  .site-header,
  main {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    margin-top: 2px;
  }

  .header-actions .button {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 0.74rem;
  }

  main {
    padding-top: 14px;
  }

  .intro {
    display: block;
    padding: 18px 2px 24px;
  }

  .intro h1 {
    font-size: clamp(2.3rem, 13vw, 3.5rem);
  }

  .compact-button {
    margin-top: 18px;
  }

  .transport,
  .section-heading,
  .automation-gate,
  .shared-automation,
  .notes {
    display: block;
  }

  .cloud-status {
    display: inline-block;
    margin-top: 12px;
  }

  .automation-gate .button,
  .shared-actions {
    margin-top: 14px;
  }

  .automation-recorder {
    grid-template-columns: 1fr 1fr;
  }

  .automation-recorder > label,
  .automation-recorder > input,
  .recording-status {
    grid-column: 1 / -1;
  }

  .recording-status {
    text-align: left;
  }

  .transport-buttons {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .transport-buttons .button {
    padding-inline: 8px;
  }

  .mixer,
  .automation,
  .deck,
  .notes {
    padding: 16px;
    border-radius: 16px;
  }

  .master-control {
    grid-template-columns: auto 1fr 42px;
    margin-top: 18px;
  }

  .crossfader-labels {
    margin-top: 24px;
  }

  .crossfader-labels span:nth-child(2) {
    display: none;
  }

  .mix-readout {
    grid-template-columns: 48px 1fr 48px;
  }

  .quick-fades {
    justify-content: center;
  }

  .text-button {
    padding-inline: 4px;
    font-size: 0.68rem;
  }

  .deck-header h2 {
    max-width: 230px;
  }

  .source-row {
    align-items: stretch;
  }

  .source-row .button {
    padding-inline: 13px;
  }

  .deck-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .deck-controls .button {
    padding-inline: 7px;
  }

  .toggle {
    justify-content: center;
    margin-left: 0;
  }

  .automation-item {
    grid-template-columns: 1fr;
  }

  .automation-actions {
    flex-wrap: wrap;
  }

  .how-it-works ol,
  .legal-columns {
    grid-template-columns: 1fr;
  }

  .seo-content {
    padding-top: 52px;
  }

  .site-footer {
    width: min(100% - 20px, 1180px);
    flex-wrap: wrap;
  }

  .notes > p {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
