:root {
  color-scheme: dark;
  --bg: #111210;
  --ink: #f4f0e8;
  --muted: #a8a394;
  --line: rgba(244, 240, 232, 0.14);
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --orange: #ff8a3d;
  --green: #5dd49a;
  --blue: #58a6ff;
  --rose: #ff6f91;
  --yellow: #ffd36a;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 138, 61, 0.16), transparent 30%),
    radial-gradient(circle at 90% 30%, rgba(88, 166, 255, 0.14), transparent 32%),
    linear-gradient(135deg, #12130f 0%, #18140f 46%, #0d1111 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1480px, calc(100% - 44px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 18, 16, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  background: #f4efe3;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.05;
}

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

.site-nav nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: rgba(244, 240, 232, 0.72);
  font-size: 14px;
}

.site-nav nav a:hover {
  color: var(--ink);
}

.nav-actions {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.language-select-label {
  grid-column: 1 / -1;
}

.nav-cta {
  min-height: 38px;
  border: 1px solid rgba(93, 212, 154, 0.48);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(93, 212, 154, 0.1);
  font-weight: 800;
  white-space: nowrap;
}

.account-button {
  min-height: 38px;
  padding: 0 12px;
}

.account-menu-wrap {
  position: relative;
}

.account-avatar-button,
.account-avatar-large {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

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

.account-avatar-large {
  width: 58px;
  height: 58px;
}

.account-avatar-button img,
.account-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 22;
  width: min(310px, calc(100vw - 28px));
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  background: rgba(17, 18, 16, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.account-menu.hidden,
.nav-cta.hidden {
  display: none;
}

.account-menu-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.account-menu-head strong,
.account-menu-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.account-menu-action {
  width: 100%;
}

.friend-panel {
  display: grid;
  gap: 9px;
}

.compact-field {
  gap: 5px;
}

.compact-field input {
  min-height: 40px;
  border-radius: 8px;
}

.friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
}

.friend-chip,
.friend-empty {
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(244, 240, 232, 0.76);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.record-button.attention {
  animation: attentionPulse 780ms ease-in-out 2;
}

@keyframes attentionPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.44),
      inset 0 0 0 16px rgba(17, 18, 16, 0.76);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 28px 110px rgba(255, 211, 106, 0.34),
      inset 0 0 0 16px rgba(17, 18, 16, 0.68);
  }
}

.app-shell {
  width: min(1480px, 100%);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 22px;
  scroll-margin-top: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.studio,
.side {
  min-width: 0;
}

.side {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto auto;
  gap: 18px;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.kicker {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 78px);
  line-height: 0.9;
  letter-spacing: 0;
}

.headline-subtitle {
  margin-top: 10px;
  max-width: 520px;
  color: rgba(244, 240, 232, 0.72);
  font-size: 15px;
}

.transport {
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-record-button {
  min-width: 92px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  border-color: rgba(255, 211, 106, 0.46);
  color: #111210;
}

.icon-button,
.ghost-button,
.primary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.ghost-button:focus-visible,
.primary-button:focus-visible,
.icon-button:focus-visible,
.scene:focus-visible,
.seed-mode:focus-visible,
.record-button:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.icon-button {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.ghost-button,
.primary-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.primary-button {
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  color: #160f0d;
  border-color: transparent;
}

.icon-button:hover,
.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.icon-button:disabled,
.ghost-button:disabled,
.primary-button:disabled,
.scene:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(244, 240, 232, 0.12);
  color: rgba(244, 240, 232, 0.62);
}

.primary-button:disabled {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(244, 240, 232, 0.58);
}

.capture-panel {
  position: relative;
  min-height: clamp(430px, 61vh, 720px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #151615;
}

.linear-progress {
  margin: 16px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.linear-progress-step {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(244, 240, 232, 0.5);
  position: relative;
}

.linear-progress-step + .linear-progress-step {
  border-left: 1px solid rgba(244, 240, 232, 0.08);
}

.linear-progress-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(244, 240, 232, 0.12);
  font-weight: 900;
  font-size: 12px;
}

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

.linear-progress-step.active,
.linear-progress-step.done {
  color: var(--ink);
  background: rgba(93, 212, 154, 0.09);
}

.linear-progress-step.active span,
.linear-progress-step.done span {
  color: #111210;
  background: var(--green);
}

#waveCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.record-ring {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding: 34px 24px 108px;
  pointer-events: none;
}

.capture-guide,
.capture-count,
.capture-next-button {
  pointer-events: auto;
  z-index: 2;
}

.capture-guide {
  max-width: min(420px, calc(100vw - 58px));
  border: 1px solid rgba(93, 212, 154, 0.24);
  border-radius: 8px;
  background: rgba(17, 18, 16, 0.72);
  color: rgba(244, 240, 232, 0.78);
  padding: 10px 12px;
  text-align: center;
  backdrop-filter: blur(16px);
}

.capture-guide strong,
.capture-guide span {
  display: block;
}

.capture-guide strong {
  color: var(--green);
  font-size: 14px;
}

.capture-guide span {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.capture-count {
  min-width: 104px;
  border: 1px solid rgba(255, 211, 106, 0.38);
  border-radius: 999px;
  background: rgba(255, 211, 106, 0.14);
  color: var(--yellow);
  padding: 7px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.record-button {
  width: min(300px, 64vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--ink);
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.28), transparent 0 26%),
    conic-gradient(from 20deg, var(--orange), var(--yellow), var(--green), var(--blue), var(--rose), var(--orange));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.44),
    inset 0 0 0 16px rgba(17, 18, 16, 0.76);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  text-align: center;
  padding: 42px;
}

.capture-next-button {
  width: min(420px, calc(100vw - 58px));
  min-height: 56px;
  font-size: 16px;
}

.record-wave {
  width: min(190px, 42vw);
  height: 62px;
  border-radius: 8px;
  display: none;
  background: rgba(17, 18, 16, 0.32);
  box-shadow: inset 0 0 0 1px rgba(244, 240, 232, 0.12);
}

.record-timer {
  min-width: 56px;
  min-height: 28px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 999px;
  display: none;
  place-items: center;
  color: #111210;
  background: rgba(255, 211, 106, 0.92);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.record-live-text {
  max-width: min(190px, 46vw);
  min-height: 30px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 999px;
  display: none;
  place-items: center;
  color: rgba(244, 240, 232, 0.72);
  background: rgba(17, 18, 16, 0.38);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-live-text.has-text {
  border-color: rgba(93, 212, 154, 0.42);
  color: #111210;
  background: rgba(93, 212, 154, 0.92);
}

.record-button.recording .record-live-text {
  display: grid;
}

.record-button.recording .record-timer {
  display: grid;
}

.record-button strong {
  max-width: 150px;
  font-size: 18px;
  line-height: 1.28;
}

.record-button small {
  color: rgba(244, 240, 232, 0.68);
  font-size: 12px;
  line-height: 1.3;
}

#recordGlyph {
  color: #ff384d;
  font-size: 36px;
  line-height: 1;
}

.record-button.recording {
  animation: thump 900ms ease-in-out infinite;
}

.record-button.recording .record-wave {
  display: block;
}

.record-button.recording #recordGlyph {
  display: none;
}

.record-button.canceling {
  border-color: rgba(255, 111, 145, 0.9);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.24), transparent 0 24%),
    conic-gradient(from 20deg, #ff384d, #ff6f91, #ff8a3d, #ff384d);
  box-shadow:
    0 28px 100px rgba(255, 56, 77, 0.32),
    inset 0 0 0 16px rgba(17, 18, 16, 0.72);
}

.record-button.canceling .record-wave {
  background: rgba(80, 14, 22, 0.42);
}

.record-confirm {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(93, 212, 154, 0.38);
  border-radius: 8px;
  background: rgba(17, 18, 16, 0.86);
  backdrop-filter: blur(18px);
  padding: 14px;
}

.record-confirm.hidden {
  display: none;
}

.record-confirm strong,
.record-confirm span {
  display: block;
}

.record-confirm span {
  margin-top: 4px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 13px;
}

.record-confirm-actions {
  display: flex;
  gap: 8px;
}

.record-confirm-actions .primary-button {
  width: auto;
}

@keyframes thump {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

.capture-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
  max-width: 680px;
}

.capture-copy h2 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.capture-copy p {
  max-width: 620px;
  color: rgba(244, 240, 232, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.flow-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
}

.flow-step {
  min-height: 74px;
  border: 1px solid rgba(244, 240, 232, 0.1);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-content: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0.62;
}

.flow-step span {
  grid-row: 1 / 3;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #111210;
  font-weight: 900;
  background: rgba(244, 240, 232, 0.72);
}

.flow-step strong {
  font-size: 14px;
}

.flow-step small {
  color: var(--muted);
  line-height: 1.4;
}

.flow-step.active {
  border-color: rgba(93, 212, 154, 0.48);
  background: rgba(93, 212, 154, 0.1);
  opacity: 1;
}

.flow-step.active span {
  background: var(--green);
}

.flow-step.done {
  border-color: rgba(255, 211, 106, 0.42);
  background: rgba(255, 211, 106, 0.08);
  opacity: 1;
}

.flow-step.done span {
  background: var(--yellow);
}

.flow-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(220px, 1fr);
  gap: 10px;
}

.back-step-button,
.compose-button,
.compact-action {
  min-height: 52px;
}

body[data-workflow="capture"] .back-step-button {
  display: none;
}

.compact-action,
#seedPreviewBtn {
  display: none;
}

#playBtn,
#exportBtn {
  display: none;
}

body[data-workflow="preview"] #playBtn,
body[data-workflow="export"] #playBtn {
  display: grid;
}

body[data-workflow="export"] #exportBtn {
  display: inline-flex;
}

body[data-workflow="capture"] .melody-panel,
body[data-workflow="capture"] .sound-id-panel,
body[data-workflow="capture"] .controls-grid,
body[data-workflow="capture"] .recipe-panel,
body[data-workflow="seed"] .controls-grid,
body[data-workflow="seed"] .recipe-panel,
body[data-workflow="seedPlaying"] .controls-grid,
body[data-workflow="seedPlaying"] .recipe-panel,
body[data-workflow="compose"] .melody-panel,
body[data-workflow="compose"] .sound-id-panel,
body[data-workflow="preview"] .melody-panel,
body[data-workflow="preview"] .sound-id-panel,
body[data-workflow="export"] .melody-panel,
body[data-workflow="export"] .sound-id-panel {
  display: none;
}

body[data-workflow="seed"] .capture-panel,
body[data-workflow="seedPlaying"] .capture-panel {
  min-height: 220px;
  opacity: 0.72;
}

body[data-workflow="seed"] .capture-copy h2,
body[data-workflow="seedPlaying"] .capture-copy h2 {
  font-size: clamp(22px, 3vw, 34px);
}

body[data-workflow="seed"] .capture-copy,
body[data-workflow="seedPlaying"] .capture-copy {
  max-width: none;
}

body[data-workflow="seed"] .seed-modes,
body[data-workflow="seedPlaying"] .seed-modes {
  display: none;
}

.step-panel.is-current {
  animation: stepReveal 260ms ease-out;
}

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

.next-step-hint {
  grid-column: 1 / -1;
  color: rgba(244, 240, 232, 0.86);
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 12px;
  border: 1px solid rgba(93, 212, 154, 0.24);
  border-radius: 8px;
  background: rgba(93, 212, 154, 0.08);
}

.flow-panel .flow-step,
.flow-panel .back-step-button,
.flow-panel #composeBtn {
  display: none;
}

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

.arrangement-status {
  grid-column: 1 / -1;
  color: rgba(244, 240, 232, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.melody-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(255, 211, 106, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 211, 106, 0.12), rgba(93, 212, 154, 0.06)),
    rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.melody-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.melody-copy span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.melody-copy strong {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.15;
}

.melody-copy p {
  color: rgba(244, 240, 232, 0.74);
  line-height: 1.65;
}

.seed-actions {
  display: grid;
  gap: 12px;
}

.seed-player-controls {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body[data-workflow="seedPlaying"] .seed-player-controls,
body[data-workflow="compose"] .seed-player-controls {
  display: grid;
}

.seed-player-controls .ghost-button {
  min-height: 42px;
  padding: 0 10px;
}

.seed-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.seed-mode {
  min-height: 82px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  padding: 12px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.seed-mode:hover {
  transform: translateY(-1px);
}

.seed-mode strong,
.seed-mode span {
  display: block;
}

.seed-mode strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.seed-mode span {
  color: rgba(244, 240, 232, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.seed-mode.active {
  border-color: rgba(255, 211, 106, 0.72);
  background: rgba(255, 211, 106, 0.13);
}

.seed-mode:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.sound-id-panel {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(88, 166, 255, 0.12), transparent 0 28%),
    radial-gradient(circle at 88% 8%, rgba(93, 212, 154, 0.12), transparent 0 28%),
    rgba(255, 255, 255, 0.045);
}

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

.sound-lanes {
  display: grid;
  gap: 10px;
}

.sound-lane {
  min-height: 86px;
  border: 1px solid rgba(244, 240, 232, 0.1);
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr);
  overflow: hidden;
  background: rgba(16, 21, 26, 0.78);
}

.sound-lane-label {
  border-right: 1px solid rgba(244, 240, 232, 0.1);
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.sound-lane-label small,
.sound-lane-label strong,
.sound-lane-label span {
  display: block;
}

.sound-lane-label small {
  color: var(--muted);
  font-size: 11px;
}

.sound-lane-label strong {
  font-size: 14px;
  line-height: 1.25;
}

.sound-lane-label span {
  color: rgba(244, 240, 232, 0.58);
  font-size: 11px;
  line-height: 1.35;
}

.sound-lane-wave {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(56, minmax(2px, 1fr));
  align-items: center;
  gap: 1px;
  padding: 10px 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(180deg, transparent calc(50% - 1px), rgba(93, 212, 154, 0.46) calc(50% - 1px), rgba(93, 212, 154, 0.46) calc(50% + 1px), transparent calc(50% + 1px));
}

.wave-slice {
  height: var(--amp);
  min-height: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(93, 212, 154, 0.72) 50%, rgba(255, 111, 145, 0.55));
  box-shadow: 0 0 8px rgba(93, 212, 154, 0.18);
  opacity: var(--alpha);
}

.sound-lane.muted .wave-slice {
  opacity: 0.22;
  background: rgba(244, 240, 232, 0.38);
  box-shadow: none;
}

.sound-lane.voice .wave-slice {
  background: linear-gradient(180deg, #ffffff, #ffd36a 52%, #ff6f91);
}

.sound-lane.object .wave-slice {
  background: linear-gradient(180deg, #ffffff, #58a6ff 52%, #5dd49a);
}

.fingerprint {
  min-height: 78px;
  border: 1px solid rgba(244, 240, 232, 0.09);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(32, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
}

.fingerprint-bar {
  min-height: 8px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--yellow), var(--green) 46%, var(--blue));
  opacity: 0.38;
}

.fingerprint-bar.hot {
  opacity: 0.88;
  background: linear-gradient(180deg, var(--rose), var(--orange), var(--yellow));
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.1);
  border-radius: 12px;
  background: rgba(244, 240, 232, 0.1);
}

.identity-grid div {
  border: 0;
  border-radius: 0;
  background: rgba(17, 18, 16, 0.72);
  padding: 14px;
}

.identity-grid small,
.identity-grid strong {
  display: block;
}

.identity-grid small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.identity-grid strong {
  font-size: 16px;
  line-height: 1.35;
}

.taxonomy-card.hidden {
  display: none;
}

.taxonomy-card {
  border: 1px solid rgba(255, 211, 106, 0.18);
  border-radius: 8px;
  background: rgba(255, 211, 106, 0.055);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.taxonomy-card > small,
.taxonomy-card > strong {
  display: block;
}

.taxonomy-card > small {
  color: var(--muted);
  font-size: 12px;
}

.taxonomy-card > strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.arranger-card {
  border: 1px solid rgba(71, 122, 104, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(123, 201, 171, 0.14), rgba(239, 157, 101, 0.08)),
    rgba(255, 255, 255, 0.055);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.arranger-card.empty {
  opacity: 0.78;
}

.arranger-card small,
.arranger-card span {
  color: var(--muted);
}

.arranger-card > div:first-child {
  display: grid;
  gap: 5px;
}

.arranger-card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.instrument-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instrument-match {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(71, 122, 104, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font-size: 13px;
}

.instrument-match.top {
  border-color: rgba(255, 211, 106, 0.44);
  background: rgba(255, 211, 106, 0.1);
}

.instrument-match b {
  font-weight: 800;
}

.instrument-match small {
  font-size: 12px;
}

.song-recognition-card {
  border: 1px solid rgba(88, 166, 255, 0.24);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.12), rgba(255, 111, 145, 0.06)),
    rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.song-recognition-card.hidden {
  display: none;
}

.song-recognition-card small,
.song-recognition-card strong,
.song-recognition-card span {
  display: block;
}

.song-recognition-card small {
  color: var(--muted);
  font-size: 12px;
}

.song-recognition-card strong {
  margin-top: 4px;
  font-size: 16px;
}

.song-recognition-card span {
  margin-top: 6px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.song-recognition-card .ghost-button {
  min-height: 44px;
  white-space: nowrap;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metadata-item {
  min-width: 0;
  border: 1px solid rgba(244, 240, 232, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 8px;
}

.metadata-item span,
.metadata-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metadata-item span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.metadata-item strong {
  color: rgba(244, 240, 232, 0.86);
  font-size: 12px;
}

.sound-advice {
  color: rgba(244, 240, 232, 0.78);
  line-height: 1.65;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  border: 1px solid rgba(93, 212, 154, 0.28);
  border-radius: 999px;
  color: rgba(244, 240, 232, 0.84);
  background: rgba(93, 212, 154, 0.08);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 750;
}

.controls-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr) minmax(260px, 0.7fr);
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(22px);
  padding: 16px;
  min-width: 0;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title span {
  font-weight: 850;
  font-size: 16px;
}

.panel-title small {
  color: var(--muted);
  font-size: 12px;
}

.scene-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scene {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  padding: 12px;
}

.scene span {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
  font-size: 18px;
}

.scene small {
  color: rgba(244, 240, 232, 0.68);
  line-height: 1.45;
}

.scene.active {
  border-color: rgba(255, 211, 106, 0.75);
  background: rgba(255, 211, 106, 0.13);
}

.smart-panel {
  display: grid;
  gap: 14px;
}

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

.compact-tabs .scene {
  min-height: 74px;
  padding: 10px;
}

.compact-tabs .scene span {
  margin-bottom: 6px;
  font-size: 14px;
}

.compact-tabs .scene small {
  font-size: 11px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-chip {
  border: 1px solid rgba(244, 240, 232, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 240, 232, 0.82);
  min-height: 34px;
  padding: 0 12px;
  font-weight: 760;
}

.option-chip.active {
  border-color: rgba(93, 212, 154, 0.76);
  color: #101410;
  background: var(--green);
}

.mode-toggle {
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
  padding: 12px;
}

.mode-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.mode-toggle span {
  font-weight: 850;
}

.mode-toggle small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.45;
}

.mixer-panel {
  display: grid;
  gap: 14px;
}

.simple-config-group {
  display: grid;
  gap: 10px;
}

.simple-config-group > span {
  color: rgba(244, 240, 232, 0.78);
  font-size: 13px;
  font-weight: 850;
}

.advanced-sliders {
  display: none;
}

.slider-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: rgba(244, 240, 232, 0.78);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.clips-panel {
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.clip-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 360px);
  overflow: auto;
  padding-right: 3px;
}

.clip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.clip-orb {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--green), var(--blue), var(--rose), var(--orange), var(--green));
}

.clip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.clip small {
  color: var(--muted);
}

.clip-remove {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.clip-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.role-chip {
  min-height: 24px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 999px;
  color: rgba(244, 240, 232, 0.68);
  background: rgba(255, 255, 255, 0.035);
  padding: 0 8px;
  font-size: 12px;
}

.role-chip.active {
  color: #111210;
  border-color: transparent;
  background: var(--green);
  font-weight: 850;
}

.empty-state {
  position: absolute;
  inset: 66px 16px 16px;
  border: 1px dashed rgba(244, 240, 232, 0.22);
  border-radius: 8px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state.hidden {
  display: none;
}

.recipe-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.recipe {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(244, 240, 232, 0.66);
  background: rgba(255, 255, 255, 0.045);
}

.recipe.on {
  color: var(--ink);
  border-color: rgba(93, 212, 154, 0.48);
  background: rgba(93, 212, 154, 0.11);
}

.history-panel {
  min-height: 260px;
  position: relative;
}

.history-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.history-item,
.community-card {
  border: 1px solid rgba(244, 240, 232, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.community-card.is-playing {
  border-color: rgba(93, 212, 154, 0.48);
  background: rgba(93, 212, 154, 0.08);
}

.community-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: start;
  gap: 10px;
}

.community-play-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  touch-action: manipulation;
}

.community-play-button span {
  transform: translateX(1px);
  font-size: 13px;
  font-weight: 900;
}

.community-card.is-playing .community-play-button {
  color: #092219;
  border-color: rgba(93, 212, 154, 0.72);
  background: var(--mint);
}

.community-card.is-playing .community-play-button span {
  transform: none;
}

.history-item strong,
.community-card strong {
  display: block;
  line-height: 1.35;
}

.history-item small,
.community-card small {
  color: var(--muted);
  line-height: 1.45;
}

.history-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-wave {
  height: 34px;
  border: 1px solid rgba(244, 240, 232, 0.09);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  align-items: center;
  gap: 3px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.12);
}

.community-wave span {
  height: 12px;
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.22);
  transform-origin: center;
}

.community-wave span:nth-child(3n + 1) {
  height: 8px;
}

.community-wave span:nth-child(3n + 2) {
  height: 18px;
}

.community-wave span:nth-child(5n) {
  height: 24px;
}

.community-card.is-playing .community-wave span {
  background: rgba(93, 212, 154, 0.76);
  animation: communityPulse 0.72s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.045s);
}

@keyframes communityPulse {
  from {
    transform: scaleY(0.42);
    opacity: 0.55;
  }
  to {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

.mini-button {
  min-height: 30px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 760;
}

.compact-empty {
  inset: 64px 16px 16px;
  min-height: 140px;
}

.community-section {
  display: grid;
  gap: 18px;
}

.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(244, 240, 232, 0.74);
}

.community-toolbar p {
  margin-bottom: 6px;
}

.community-toolbar small {
  display: block;
  color: rgba(244, 240, 232, 0.56);
  line-height: 1.5;
}

.community-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.birthday-section {
  position: relative;
  overflow: hidden;
}

.birthday-section::before {
  content: "";
  position: absolute;
  inset: 8% 6% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 106, 0.18), transparent 68%);
  pointer-events: none;
}

.birthday-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.birthday-card,
.birthday-preview,
.birthday-celebration-card {
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(17, 18, 16, 0.74);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.24);
}

.birthday-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.birthday-recipient-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.birthday-recipient-tab {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.birthday-recipient-tab.active {
  color: #102019;
  background: linear-gradient(135deg, #77dabb, #ffd36a);
  box-shadow: 0 10px 30px rgba(255, 211, 106, 0.18);
}

.birthday-card input[readonly] {
  opacity: 0.78;
}

.birthday-card textarea,
.birthday-card select,
.birthday-gift-row input {
  width: 100%;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  font: inherit;
}

.birthday-card textarea,
.birthday-gift-row input {
  padding: 11px 12px;
  resize: vertical;
}

.birthday-card select {
  min-height: 42px;
  padding: 0 12px;
}

.birthday-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.birthday-preview {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 24px;
  overflow: hidden;
}

.birthday-preview.hidden,
.birthday-celebration.hidden {
  display: none;
}

.birthday-orbit {
  position: absolute;
  inset: 26px 26px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 0 26%),
    conic-gradient(from 20deg, rgba(119, 218, 187, 0.12), rgba(255, 211, 106, 0.5), rgba(255, 111, 145, 0.18), rgba(119, 218, 187, 0.12));
  animation: birthdaySpin 9s linear infinite;
}

.birthday-orbit span,
.birthday-bloom span {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, #77dabb, #ffd36a, #ff8a5f);
  box-shadow: 0 0 28px rgba(255, 211, 106, 0.42);
}

.birthday-orbit span {
  width: 12px;
  height: 12px;
}

.birthday-orbit span:nth-child(1) {
  top: 24px;
  left: 50%;
}

.birthday-orbit span:nth-child(2) {
  right: 34px;
  bottom: 42px;
}

.birthday-orbit span:nth-child(3) {
  left: 28px;
  bottom: 58px;
}

.birthday-preview small,
.birthday-preview p {
  color: var(--muted);
}

.birthday-preview h3 {
  max-width: 520px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.birthday-actions,
.birthday-gift-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.birthday-gift-row {
  max-width: 620px;
}

.birthday-gift-row input {
  flex: 1 1 220px;
}

.birthday-preview.is-today {
  border-color: rgba(255, 211, 106, 0.58);
}

.birthday-preview.is-playing .birthday-orbit {
  animation-duration: 2.4s;
}

.birthday-celebration {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 211, 106, 0.26), transparent 0 28%),
    radial-gradient(circle at 22% 18%, rgba(119, 218, 187, 0.22), transparent 0 24%),
    linear-gradient(135deg, rgba(17, 18, 16, 0.92), rgba(43, 36, 29, 0.94));
  backdrop-filter: blur(22px);
}

.birthday-celebration-card {
  position: relative;
  width: min(620px, 100%);
  min-height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  padding: 34px;
  overflow: hidden;
}

.birthday-celebration-card h2 {
  max-width: 520px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.95;
}

.birthday-celebration-card p:not(.kicker) {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.55;
}

.birthday-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.birthday-bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.birthday-bloom span {
  width: 14px;
  height: 14px;
  animation: birthdayFloat 4.8s ease-in-out infinite;
}

.birthday-bloom span:nth-child(1) {
  left: 12%;
  top: 24%;
}

.birthday-bloom span:nth-child(2) {
  left: 76%;
  top: 18%;
  animation-delay: -1.1s;
}

.birthday-bloom span:nth-child(3) {
  left: 18%;
  top: 76%;
  animation-delay: -2.2s;
}

.birthday-bloom span:nth-child(4) {
  left: 84%;
  top: 70%;
  animation-delay: -3.2s;
}

.birthday-bloom span:nth-child(5) {
  left: 50%;
  top: 12%;
  animation-delay: -0.6s;
}

@keyframes birthdaySpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes birthdayFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.56;
  }
  50% {
    transform: translateY(-28px) scale(1.4);
    opacity: 1;
  }
}

.comment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.comment-row input,
.auth-field input {
  min-height: 52px;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
  padding: 0 18px;
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(93, 212, 154, 0.78);
  box-shadow: 0 0 0 4px rgba(93, 212, 154, 0.12);
}

.comment-row input {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 10px;
}

.comment-list {
  display: grid;
  gap: 5px;
  color: rgba(244, 240, 232, 0.68);
  font-size: 12px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 211, 106, 0.18), transparent 0 26%),
    radial-gradient(circle at 88% 18%, rgba(88, 166, 255, 0.18), transparent 0 28%),
    linear-gradient(135deg, rgba(17, 18, 16, 0.94), rgba(36, 32, 29, 0.94));
  backdrop-filter: blur(20px);
}

.auth-modal.hidden {
  display: none;
}

.auth-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    #171816;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58);
  display: grid;
  gap: 18px;
  padding: 30px;
}

.auth-card h2 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 42px;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.auth-heading {
  display: grid;
  gap: 8px;
}

.auth-copy {
  color: rgba(244, 240, 232, 0.72);
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(244, 240, 232, 0.11);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: rgba(244, 240, 232, 0.66);
  background: transparent;
  font-weight: 850;
}

.auth-tab.active {
  color: #111210;
  background: var(--green);
}

.auth-tab[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.auth-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
  align-items: end;
}

.auth-row .ghost-button {
  min-height: 52px;
  border-radius: 999px;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 240, 232, 0.74);
}

.auth-check {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.auth-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.link-button {
  border: 0;
  color: rgba(244, 240, 232, 0.78);
  background: transparent;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-code {
  border: 1px solid rgba(255, 211, 106, 0.28);
  border-radius: 8px;
  color: var(--yellow);
  background: rgba(255, 211, 106, 0.08);
  padding: 10px;
}

.auth-code.hidden {
  display: none;
}

.auth-error {
  border: 1px solid rgba(255, 111, 145, 0.38);
  border-radius: 8px;
  color: #ffd7df;
  background: rgba(255, 111, 145, 0.12);
  padding: 10px 12px;
  font-size: 13px;
}

.auth-error.hidden {
  display: none;
}

.auth-submit {
  min-height: 58px;
  border-radius: 999px;
  font-size: 16px;
}

.auth-footnote {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 240, 232, 0.11);
  color: rgba(244, 240, 232, 0.58);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(17, 18, 16, 0.92);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.side-record-button {
  position: fixed;
  right: 10px;
  top: 52%;
  z-index: 18;
  width: 54px;
  min-height: 132px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 211, 106, 0.46);
  border-radius: 999px;
  color: #111210;
  background: linear-gradient(180deg, var(--yellow), var(--green));
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38),
    inset 0 0 0 5px rgba(17, 18, 16, 0.12);
  font-weight: 900;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.side-record-button span,
.side-record-button strong {
  writing-mode: vertical-rl;
  letter-spacing: 0;
  line-height: 1;
}

.side-record-button span {
  font-size: 12px;
  opacity: 0.78;
}

.side-record-button strong {
  font-size: 18px;
}

.side-record-button.recording {
  background: conic-gradient(from 20deg, var(--orange), var(--yellow), var(--green), var(--blue), var(--rose), var(--orange));
  color: var(--ink);
  animation: sidePulse 800ms ease-in-out infinite;
}

.side-record-button.canceling {
  background: linear-gradient(180deg, #ff384d, #ff8a3d);
  color: var(--ink);
}

@keyframes sidePulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.06);
  }
}

.proof-band,
.site-section,
.site-footer {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-band div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.proof-band strong {
  font-size: 22px;
}

.proof-band span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-section {
  padding: 76px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.04;
}

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

.use-grid article,
.privacy-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 22px;
}

.use-grid article span {
  color: var(--green);
  font-weight: 900;
  font-size: 13px;
}

.use-grid h3 {
  margin: 18px 0 8px;
  font-size: 24px;
}

.use-grid p,
.privacy-copy p {
  color: rgba(244, 240, 232, 0.72);
  line-height: 1.75;
}

.intelligence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 240, 232, 0.14);
  border-bottom: 1px solid rgba(244, 240, 232, 0.14);
}

.intelligence-strip article {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
}

.intelligence-strip article + article {
  border-left: 1px solid rgba(244, 240, 232, 0.14);
}

.intelligence-strip small {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.intelligence-strip strong {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.intelligence-strip span {
  max-width: 260px;
  color: rgba(244, 240, 232, 0.66);
  line-height: 1.65;
}

.language-note {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: rgba(244, 240, 232, 0.68);
  line-height: 1.7;
}

.language-note strong {
  color: var(--ink);
  white-space: nowrap;
}

.language-note span {
  color: rgba(244, 240, 232, 0.72);
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.privacy-copy {
  display: grid;
  gap: 12px;
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
    grid-template-rows: auto;
  }

  .flow-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .clip-list {
    max-height: 320px;
  }

  .proof-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-section {
    grid-template-columns: 1fr;
  }
}

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

  .birthday-preview {
    min-height: 300px;
  }

  .birthday-orbit {
    width: 150px;
    height: 150px;
    opacity: 0.74;
  }

  .side-record-button {
    display: grid;
    transform: translateY(-50%);
  }

  .site-nav {
    width: calc(100% - 28px);
    grid-template-columns: 1fr auto;
  }

  .site-nav nav {
    display: none;
  }

  .app-shell {
    padding: 14px;
  }

  .topbar,
  .controls-grid,
  .side {
    grid-template-columns: 1fr;
  }

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

  .scene-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .community-toolbar,
  .auth-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .community-feed {
    grid-template-columns: 1fr;
  }

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

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

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

  .sound-lane {
    grid-template-columns: 1fr;
  }

  .sound-lane-label {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 240, 232, 0.1);
  }

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

  .compose-button,
  .compact-action {
    min-height: 50px;
  }

  .capture-panel {
    min-height: 560px;
  }

  .capture-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .capture-copy p {
    font-size: 14px;
  }

  .record-button {
    width: min(270px, 76vw);
  }

  .record-wave {
    width: min(170px, 48vw);
    height: 56px;
  }

  .record-ring {
    place-items: center;
    padding: 42px 16px 170px;
  }

  .record-confirm {
    grid-template-columns: 1fr;
    left: 16px;
    right: 16px;
    top: 16px;
  }

  .record-confirm-actions {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
  }

  .proof-band,
  .site-section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .proof-band,
  .use-grid,
  .intelligence-strip {
    grid-template-columns: 1fr;
  }

  .intelligence-strip article {
    min-height: 132px;
  }

  .intelligence-strip article + article {
    border-left: 0;
    border-top: 1px solid rgba(244, 240, 232, 0.14);
  }

  .language-note {
    display: grid;
  }

  .song-recognition-card {
    grid-template-columns: 1fr;
  }

  .song-recognition-card .ghost-button {
    width: 100%;
  }

  .site-section {
    padding-top: 54px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .transport {
    width: 100%;
    display: grid;
    grid-template-columns: 48px 1fr 1fr;
  }

  .ghost-button {
    padding: 0 10px;
    font-size: 13px;
  }

  .scene-tabs {
    grid-template-columns: 1fr;
  }
}

/* Minimal international launch skin */
:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --ink: #171814;
  --muted: #6d7168;
  --line: rgba(23, 24, 20, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --orange: #c86b36;
  --green: #256f5b;
  --blue: #345f8f;
  --rose: #9f4f5f;
  --yellow: #c79a2a;
}

body {
  color: var(--ink);
  background: var(--bg);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-bottom: 1px solid rgba(23, 24, 20, 0.12);
  background: rgba(247, 247, 242, 0.9);
}

.site-nav nav {
  color: rgba(23, 24, 20, 0.66);
}

.brand-mark {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(23, 24, 20, 0.08);
}

.brand small,
.headline-subtitle,
.community-toolbar,
.community-toolbar small,
.history-item small,
.community-card small,
.panel-title small,
.flow-step small,
.capture-copy p,
.privacy-copy,
.language-note,
.auth-copy,
.auth-footnote,
.empty-state,
.next-step-hint,
.arrangement-status {
  color: var(--muted);
}

.language-select-label {
  min-height: 38px;
  border: 1px solid rgba(23, 24, 20, 0.12);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.language-select-label.hidden {
  display: none;
}

.language-select-label select {
  min-width: 112px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  outline: none;
}

.account-avatar-button,
.account-avatar-large {
  color: var(--ink);
  border-color: rgba(23, 24, 20, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.account-avatar-button.is-logged-in {
  border-color: rgba(37, 111, 91, 0.36);
}

.account-menu {
  border-color: rgba(23, 24, 20, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 60px rgba(23, 24, 20, 0.14);
}

.friend-chip,
.friend-empty {
  color: var(--muted);
  border-color: rgba(23, 24, 20, 0.1);
  background: rgba(247, 247, 242, 0.84);
}

.nav-cta,
.primary-button,
.add-record-button {
  border-color: rgba(23, 24, 20, 0.18);
  color: #ffffff;
  background: #171814;
}

.ghost-button,
.icon-button,
.mini-button,
.auth-tab,
.option-chip,
.scene {
  color: var(--ink);
  border-color: rgba(23, 24, 20, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.ghost-button:hover,
.icon-button:hover,
.mini-button:hover,
.option-chip:hover,
.scene:hover {
  background: #ffffff;
}

.app-shell {
  width: min(1180px, 100%);
  min-height: auto;
  padding: 28px 16px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

h1 {
  font-size: clamp(42px, 8vw, 104px);
  letter-spacing: 0;
}

.kicker {
  color: var(--muted);
}

.capture-panel,
.panel,
.flow-panel,
.melody-panel,
.sound-id-panel,
.proof-band,
.site-section,
.auth-card {
  border-color: rgba(23, 24, 20, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.capture-panel {
  min-height: clamp(400px, 58vh, 640px);
}

#waveCanvas {
  opacity: 0.64;
  filter: saturate(0.72) contrast(0.9);
}

.capture-guide,
.capture-count,
.capture-copy,
.record-confirm,
.compact-empty,
.empty-state {
  border-color: rgba(23, 24, 20, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.record-button {
  box-shadow:
    0 22px 70px rgba(23, 24, 20, 0.18),
    inset 0 0 0 16px rgba(255, 255, 255, 0.82);
}

.linear-progress,
.flow-step,
.history-item,
.community-card,
.comment-row input,
.auth-field input,
.community-wave,
.identity-grid > div,
.taxonomy-card,
.song-recognition-card {
  border-color: rgba(23, 24, 20, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.linear-progress-step {
  color: rgba(23, 24, 20, 0.5);
}

.linear-progress-step.active,
.linear-progress-step.done,
.flow-step.active,
.flow-step.done,
.scene.active,
.option-chip.active,
.seed-mode.active {
  color: var(--ink);
  background: rgba(37, 111, 91, 0.08);
}

.linear-progress-step.active span,
.linear-progress-step.done span,
.flow-step.active span,
.flow-step.done span {
  color: #ffffff;
  background: #256f5b;
}

.community-card.is-playing {
  border-color: rgba(37, 111, 91, 0.42);
  background: rgba(37, 111, 91, 0.07);
}

.community-card.is-playing .community-play-button {
  color: #ffffff;
  background: #256f5b;
}

.community-card.is-playing .community-wave span {
  background: rgba(37, 111, 91, 0.76);
}

.proof-band,
.site-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
}

.proof-band {
  margin-top: 8px;
}

.site-section {
  padding: 64px 0 0;
}

.section-heading h2 {
  max-width: 760px;
}

.site-footer {
  color: var(--muted);
  border-top-color: rgba(23, 24, 20, 0.12);
}

.toast {
  color: #ffffff;
  background: #171814;
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .site-nav nav,
  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .language-select-label {
    width: 100%;
    justify-content: space-between;
  }

  .language-select-label select {
    flex: 1;
  }
}

/* Minimal product UI v2 */
:root {
  --bg: #fbfbf8;
  --ink: #151613;
  --muted: #70756d;
  --line: rgba(21, 22, 19, 0.12);
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --orange: #151613;
  --green: #2f6f5e;
  --blue: #4d5d6f;
  --rose: #6f565c;
  --yellow: #8a7440;
}

body {
  background: #fbfbf8;
}

.site-nav,
.app-shell,
.proof-band,
.site-section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
}

.site-nav {
  min-height: 58px;
  gap: 16px;
  background: rgba(251, 251, 248, 0.94);
  backdrop-filter: blur(10px);
}

.brand-mark {
  width: 28px;
  border-radius: 6px;
}

.brand small {
  display: none;
}

.site-nav nav {
  gap: 18px;
  font-size: 13px;
}

.nav-actions {
  grid-template-columns: auto auto auto;
}

.language-select-label {
  grid-column: auto;
  min-height: 34px;
  background: transparent;
  padding: 0;
  border: 0;
}

.language-select-label span {
  display: none;
}

.language-select-label select {
  min-height: 34px;
  min-width: 126px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 0 10px;
}

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

.nav-cta,
.ghost-button,
.primary-button,
.icon-button,
.mini-button,
.community-play-button,
.clip-remove,
.auth-tab,
.option-chip,
.scene {
  border-radius: 6px;
  box-shadow: none;
}

.nav-cta,
.primary-button,
.add-record-button {
  min-height: 36px;
  color: #ffffff;
  background: #151613;
  border-color: #151613;
  font-weight: 700;
}

.ghost-button,
.icon-button,
.mini-button,
.community-play-button,
.clip-remove,
.option-chip,
.scene,
.auth-tab {
  background: #ffffff;
}

.icon-button:hover,
.ghost-button:hover,
.primary-button:hover,
.mini-button:hover,
.option-chip:hover,
.scene:hover {
  transform: none;
  background: #f2f3ef;
}

.app-shell {
  padding: 22px 0 0;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 14px;
}

.topbar {
  min-height: 56px;
}

.kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  font-weight: 760;
}

.headline-subtitle {
  max-width: 460px;
  margin-top: 8px;
  font-size: 14px;
}

.transport {
  gap: 8px;
}

.icon-button {
  width: 40px;
  font-size: 15px;
}

.ghost-button,
.primary-button {
  min-height: 38px;
  padding: 0 13px;
  font-weight: 700;
}

.linear-progress {
  margin: 12px 0;
  background: #ffffff;
}

.linear-progress-step {
  min-height: 44px;
}

.linear-progress-step span {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

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

.capture-panel,
.panel,
.flow-panel,
.melody-panel,
.sound-id-panel,
.proof-band,
.use-grid article,
.privacy-copy,
.auth-card,
.community-card,
.history-item,
.clip,
.taxonomy-card,
.song-recognition-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

.capture-panel {
  min-height: clamp(380px, 54vh, 560px);
}

#waveCanvas {
  opacity: 0.2;
  filter: grayscale(1);
}

.record-ring {
  gap: 12px;
  padding: 28px 24px 92px;
}

.capture-guide,
.capture-count,
.capture-copy,
.record-confirm,
.empty-state,
.compact-empty {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  backdrop-filter: none;
}

.capture-guide {
  padding: 8px 10px;
}

.capture-guide strong {
  color: var(--ink);
}

.capture-count {
  min-width: 92px;
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
}

.record-button {
  width: min(236px, 58vw);
  border: 1px solid #151613;
  color: #ffffff;
  background: #151613;
  box-shadow: none;
  padding: 34px;
}

.record-button::before {
  content: "";
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  display: block;
}

.record-button > #recordGlyph {
  display: none;
}

.record-button.recording {
  background: #2f6f5e;
}

.record-button.recording::before {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.record-button.recording.canceling {
  background: #6f565c;
}

.record-wave {
  background: rgba(255, 255, 255, 0.12);
}

.record-timer,
.record-live-text,
.record-live-text.has-text {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.capture-next-button {
  width: min(360px, calc(100vw - 58px));
  min-height: 44px;
  font-size: 14px;
}

.capture-copy {
  max-width: 360px;
  padding: 12px;
}

.capture-copy h2 {
  font-size: 18px;
}

.capture-copy p {
  font-size: 13px;
  line-height: 1.55;
}

.flow-panel {
  display: none;
}

.controls-grid {
  margin-top: 14px;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1fr) minmax(240px, 0.75fr);
  gap: 12px;
}

.panel {
  padding: 14px;
}

.panel-title {
  margin-bottom: 12px;
}

.panel-title span {
  font-size: 14px;
  font-weight: 760;
}

.scene {
  min-height: 72px;
  padding: 10px;
}

.scene span {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 760;
}

.scene small,
.simple-config-group > span,
.mode-toggle small,
.clip small,
.history-item small,
.community-card small,
.proof-band span,
.use-grid p,
.privacy-copy p,
.intelligence-strip span,
.language-note span {
  color: var(--muted);
}

.scene.active,
.option-chip.active,
.seed-mode.active,
.recipe.on,
.linear-progress-step.active,
.linear-progress-step.done,
.community-card.is-playing {
  background: #f1f5f2;
  border-color: rgba(47, 111, 94, 0.42);
}

.option-chip.active,
.role-chip.active {
  color: #ffffff;
  background: #2f6f5e;
  border-color: #2f6f5e;
}

.mode-toggle,
.recipe,
.community-wave,
.comment-row input,
.auth-field input,
.identity-grid > div {
  background: #ffffff;
  border-color: var(--line);
  border-radius: 6px;
}

.clip-orb {
  width: 34px;
  background: #d8ddd5;
}

.clip {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 76px;
}

.clips-panel {
  min-height: 350px;
}

.side {
  gap: 14px;
}

.proof-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  overflow: visible;
  background: #ffffff;
}

.proof-band div {
  min-height: 84px;
  background: #ffffff;
  padding: 14px;
}

.proof-band div + div {
  border-left: 1px solid var(--line);
}

.proof-band strong {
  font-size: 16px;
}

.site-section {
  padding-top: 48px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.intelligence-strip article {
  min-height: 136px;
  padding: 20px;
}

.intelligence-strip strong {
  font-size: clamp(19px, 2vw, 24px);
}

.use-grid article,
.privacy-copy {
  padding: 18px;
}

.use-grid h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.community-feed {
  gap: 12px;
}

.community-wave {
  height: 28px;
  background: #fafaf7;
}

.community-card.is-playing .community-play-button {
  background: #2f6f5e;
}

.auth-backdrop {
  background: rgba(21, 22, 19, 0.34);
  backdrop-filter: blur(8px);
}

.auth-card {
  border-radius: 8px;
}

@media (max-width: 980px) {
  .site-nav,
  .app-shell,
  .proof-band,
  .site-section,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-nav {
    grid-template-columns: auto 1fr;
  }

  .site-nav nav {
    display: none;
  }

  .nav-actions {
    justify-content: end;
  }

  .app-shell,
  .side,
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .proof-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-band div:nth-child(odd) {
    border-left: 0;
  }

  .proof-band div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .site-nav {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav-actions {
    width: 100%;
    grid-template-columns: 1fr auto auto;
  }

  .language-select-label {
    width: auto;
  }

  .topbar {
    gap: 12px;
  }

  h1 {
    font-size: 36px;
  }

  .transport {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .transport .icon-button {
    display: none;
  }

  .capture-panel {
    min-height: 520px;
  }

  .record-ring {
    padding-bottom: 150px;
  }

  .record-button {
    width: min(220px, 72vw);
  }

  .proof-band {
    grid-template-columns: 1fr;
  }

  .proof-band div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
