:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #181a1c;
  --panel-2: #202326;
  --text: #f5f0e8;
  --muted: #a9ada8;
  --line: #30363a;
  --accent: #c9ff6a;
  --accent-2: #77d8ff;
  --warm: #ffb86b;
  --danger: #ff6b6b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --play-progress: 0%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(119, 216, 255, 0.12), transparent 26%),
    linear-gradient(140deg, #101112 0%, #171717 42%, #11171a 100%);
  color: var(--text);
}

body.download-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

body.mockup-page {
  padding: 42px;
}

body.legal-page {
  padding: 28px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 26px;
  min-width: 0;
  background: rgba(16, 17, 18, 0.82);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 255, 106, 0.45);
  background: #1c211b;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.brand h1 {
  font-size: 22px;
  line-height: 1.05;
}

.brand p,
.topbar p,
.signal-copy p,
.empty,
.note-list,
.research-panel li,
small {
  color: var(--muted);
}

.preset-list,
.recipe-list,
.layer-list {
  display: grid;
  gap: 10px;
}

.preset-list {
  max-height: 44vh;
  overflow: auto;
  padding-right: 4px;
}

.bank-tools {
  margin-bottom: 14px;
}

.bank-tools .section-title {
  margin-bottom: 10px;
}

.bank-tools .section-title span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.search-input {
  width: 100%;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111315;
  color: var(--text);
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-row button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.category-row button.active {
  border-color: rgba(201, 255, 106, 0.72);
  color: var(--accent);
  background: rgba(201, 255, 106, 0.08);
}

.preset-button,
.recipe-button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  border-radius: 8px;
}

.preset-button.active,
.recipe-button:hover,
.preset-button:hover {
  border-color: rgba(201, 255, 106, 0.65);
  background: rgba(201, 255, 106, 0.08);
}

.saved-recipes {
  margin-top: 26px;
}

.workspace {
  padding: 28px;
  min-width: 0;
}

.mobile-hero-card,
.mobile-tabbar {
  display: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.topbar h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: 0;
}

.topbar p {
  max-width: 760px;
  margin-top: 10px;
  line-height: 1.5;
}

.transport {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.primary-button,
.ghost-button,
.text-button,
.segmented button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  background: var(--panel-2);
}

.primary-button {
  color: #101112;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 800;
}

.offer-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 255, 106, 0.38);
  border-radius: 8px;
  background: rgba(201, 255, 106, 0.07);
}

.safety-strip,
.for-you-panel,
.feedback-panel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 28, 0.78);
}

.safety-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-color: rgba(255, 184, 107, 0.45);
}

.safety-strip strong,
.safety-strip span {
  display: block;
}

.safety-strip span,
.for-you-panel .section-title span {
  color: var(--muted);
}

.recommendation-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.recommendation-button {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.recommendation-button span {
  color: var(--muted);
  font-size: 12px;
}

.feedback-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-panel span {
  margin-right: auto;
  color: var(--muted);
}

.feedback-panel button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.feedback-panel button:hover {
  border-color: rgba(201, 255, 106, 0.65);
  color: var(--accent);
}

.offer-strip strong,
.offer-strip span {
  display: block;
}

.offer-strip span,
.panel-copy,
.unlock-status {
  color: var(--muted);
  line-height: 1.45;
}

.unlock-status {
  margin: -8px 0 12px;
  font-size: 13px;
}

.ghost-button:hover,
.text-button:hover,
.segmented button:hover {
  border-color: rgba(119, 216, 255, 0.6);
}

.text-button {
  min-height: 34px;
  padding: 0 10px;
}

.signal-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(340px, 1.2fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(201, 255, 106, 0.07), transparent var(--play-progress)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.mode-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.signal-copy h3 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.signal-copy p:last-child {
  margin-top: 12px;
  line-height: 1.5;
}

.stereo-stage {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 18px;
  align-items: center;
  min-height: 210px;
}

.ear {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent-2);
  font-weight: 900;
}

.right-ear {
  color: var(--warm);
}

.wave-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 160px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wave-track span {
  display: block;
  width: 6px;
  height: calc(38px + var(--i) * 10px);
  border-radius: 999px;
  background: linear-gradient(var(--accent-2), var(--accent), var(--warm));
  animation: wave 1.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.1s);
  opacity: 0.86;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.44);
  }
  50% {
    transform: scaleY(1);
  }
}

.status-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.quick-tile {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.quick-tile span,
.watch-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.quick-tile strong {
  font-size: 18px;
}

.status-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 17, 18, 0.45);
  border-radius: 8px;
}

.status-grid strong {
  display: block;
  font-size: 22px;
}

.status-grid span {
  color: var(--muted);
  font-size: 12px;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.control-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 28, 0.82);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h2,
.section-title h3 {
  font-size: 18px;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #111315;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented button {
  min-height: 30px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
}

.segmented button.active {
  background: var(--panel-2);
  color: var(--accent);
}

.range-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 76px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.range-row span {
  color: var(--muted);
}

.range-row output {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.switch,
.layer-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
}

.switch input,
.layer-toggle input {
  accent-color: var(--accent);
}

.layer-toggle {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.layer-toggle strong,
.layer-toggle small {
  display: block;
}

.research-panel ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.65;
}

.evidence-pill {
  border: 1px solid rgba(119, 216, 255, 0.5);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-2);
  font-size: 12px;
  text-transform: uppercase;
}

textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111315;
  color: var(--text);
}

.local-audio-panel input[type="file"] {
  width: 100%;
  margin: 14px 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.local-audio-panel audio {
  width: 100%;
  margin-top: 10px;
}

.note-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.note-list p {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.watch-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.watch-metrics div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.watch-metrics strong,
.watch-metrics span {
  display: block;
}

.download-shell {
  width: min(1040px, 100%);
}

.download-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 28, 0.86);
  box-shadow: var(--shadow);
}

.download-hero h1 {
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.95;
}

.download-hero .brand-mark {
  width: 62px;
  height: 62px;
}

.download-actions {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.primary-link,
.secondary-link {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.primary-link {
  color: #101112;
  background: var(--accent);
}

.secondary-link {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.download-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 28, 0.72);
}

.mockup-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.phone-frame {
  padding: 12px;
  border: 1px solid #343a3e;
  border-radius: 38px;
  background: #050607;
  box-shadow: var(--shadow);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 740px;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 12%, rgba(201, 255, 106, 0.12), transparent 28%),
    linear-gradient(180deg, #181a1c, #101112 58%, #0b0d0e);
}

.ios-status,
.ios-tabs,
.ios-orbit,
.ios-stack,
.ios-filter-row,
.ios-metrics {
  display: flex;
}

.ios-status {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ios-now {
  display: grid;
  gap: 18px;
  padding-top: 42px;
}

.ios-now p,
.ios-list-head p {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ios-now h1,
.ios-list-head h1 {
  font-size: 44px;
  line-height: 0.96;
}

.ios-orbit {
  align-items: center;
  gap: 14px;
  min-height: 160px;
}

.ios-orbit span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-2);
}

.ios-orbit span:last-child {
  color: var(--warm);
}

.ios-orbit div {
  flex: 1;
  height: 92px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(201, 255, 106, 0.8) 20px 25px, transparent 25px 38px);
}

.ios-now button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #101112;
  font-weight: 900;
}

.ios-stack,
.ios-metrics {
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.ios-stack article,
.ios-sound-list article,
.ios-metrics article,
.ios-unlock {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.ios-stack span,
.ios-sound-list span,
.ios-metrics span,
.ios-unlock p {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.ios-list-head {
  padding-top: 42px;
}

.ios-filter-row {
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.ios-filter-row span {
  padding: 8px 11px;
  border: 1px solid rgba(201, 255, 106, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
}

.ios-sound-list {
  display: grid;
  gap: 10px;
}

.ios-unlock {
  margin-top: 22px;
  border-color: rgba(201, 255, 106, 0.45);
}

.ios-tabs {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  justify-content: space-around;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 17, 18, 0.88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.download-grid h2 {
  margin: 0 0 10px;
}

.legal-shell {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 28, 0.82);
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
  margin: 18px 0 10px;
}

.legal-shell section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.legal-shell h2 {
  margin: 0 0 8px;
}

.legal-shell p {
  color: var(--muted);
  line-height: 1.6;
}

.legal-back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 980px) {
  #app {
    grid-template-columns: 1fr;
  }

  .workspace {
    order: 1;
  }

  .sidebar {
    order: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    display: none;
  }

  .preset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-panel,
  .controls-grid {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: 78px;
  }

  .mobile-hero-card {
    display: grid;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(201, 255, 106, 0.4);
    border-radius: 8px;
    background: rgba(201, 255, 106, 0.08);
  }

  .mobile-hero-card span,
  .mobile-hero-card p {
    color: var(--muted);
  }

  .mobile-hero-card h2 {
    font-size: clamp(30px, 9vw, 46px);
    line-height: 0.96;
  }

  .signal-panel {
    padding: 18px;
  }

  .stereo-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
    min-height: 150px;
  }

  .ear {
    width: 42px;
    height: 42px;
  }

  .wave-track {
    height: 120px;
    padding: 0;
  }

  .status-grid div {
    min-width: 0;
  }

  .mobile-tabbar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(16, 17, 18, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
  }

  .mobile-tabbar a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-tabbar a:hover {
    color: #101112;
    background: var(--accent);
  }

  .download-hero,
  .mockup-board,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-hero {
    display: grid;
  }
}

@media (max-width: 640px) {
  body,
  #app,
  .workspace,
  .sidebar {
    width: 100%;
    max-width: 100vw;
  }

  .mobile-hero-card,
  .offer-strip,
  .safety-strip,
  .for-you-panel,
  .feedback-panel,
  .signal-panel,
  .quick-stack,
  .controls-grid,
  .control-panel,
  .bank-tools,
  .preset-list,
  .saved-recipes {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin-left: auto;
    margin-right: auto;
  }

  .workspace,
  .sidebar {
    padding: 18px;
    overflow: hidden;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .transport,
  .offer-strip,
  .preset-list,
  .status-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .offer-strip {
    align-items: stretch;
  }

  .safety-strip,
  .recommendation-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feedback-panel {
    align-items: stretch;
  }

  .feedback-panel span {
    width: 100%;
  }

  .range-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .range-row output {
    text-align: left;
  }
}

.state-hero,
.state-picker,
.sound-proof-panel,
.advanced-summary {
  margin-bottom: 18px;
}

.state-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  min-height: 470px;
}

.state-hero-copy,
.now-card,
.sound-proof-panel,
.advanced-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 28, 0.84);
  box-shadow: var(--shadow);
}

.state-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(201, 255, 106, 0.13), rgba(119, 216, 255, 0.06) 48%, rgba(255, 184, 107, 0.08)),
    rgba(24, 26, 28, 0.9);
}

.state-hero-copy h2 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
}

.state-hero-copy p:not(.mode-label) {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.trust-row span,
.layer-pills span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(16, 17, 18, 0.38);
  font-size: 13px;
}

.now-card {
  display: grid;
  gap: 16px;
  align-content: space-between;
  padding: 24px;
  overflow: hidden;
}

.now-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.now-card-head strong {
  color: var(--accent);
}

.now-card h3 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.now-card p {
  color: var(--muted);
  line-height: 1.5;
}

.focus-orbit {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 14px;
  align-items: center;
  min-height: 170px;
}

.focus-orbit > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-2);
  font-weight: 900;
}

.focus-orbit > span:last-child {
  color: var(--warm);
}

.pulse-rings {
  position: relative;
  min-height: 164px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pulse-rings i {
  position: absolute;
  inset: 24px;
  display: block;
  border: 1px solid rgba(201, 255, 106, 0.5);
  border-radius: 50%;
  animation: breathe 3.4s ease-in-out infinite;
}

.pulse-rings i:nth-child(2) {
  inset: 44px;
  border-color: rgba(119, 216, 255, 0.46);
  animation-delay: -0.7s;
}

.pulse-rings i:nth-child(3) {
  inset: 64px;
  border-color: rgba(255, 184, 107, 0.42);
  animation-delay: -1.3s;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.layer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.state-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

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

.state-card strong {
  font-size: 18px;
}

.state-card.active,
.state-card:hover {
  border-color: rgba(201, 255, 106, 0.72);
  background: rgba(201, 255, 106, 0.09);
}

.sound-proof-panel,
.advanced-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.sound-proof-panel h3,
.advanced-summary h3 {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sound-proof-panel p,
.advanced-summary p {
  color: var(--muted);
  line-height: 1.5;
}

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

.sound-proof-grid div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 17, 18, 0.46);
}

.sound-proof-grid strong,
.sound-proof-grid span {
  display: block;
}

.sound-proof-grid strong {
  font-size: 17px;
  line-height: 1.2;
}

.sound-proof-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.controls-grid.advanced-collapsed {
  display: none;
}

@media (max-width: 1180px) {
  .state-hero,
  .sound-proof-panel,
  .advanced-summary {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .state-hero,
  .state-picker,
  .sound-proof-panel,
  .advanced-summary {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin-left: auto;
    margin-right: auto;
  }

  .state-hero {
    min-height: 0;
  }

  .state-hero-copy,
  .now-card,
  .sound-proof-panel,
  .advanced-summary {
    padding: 18px;
  }

  .state-hero-copy h2 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .hero-actions,
  .advanced-summary {
    align-items: stretch;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button,
  .advanced-summary .ghost-button {
    width: 100%;
  }

  .state-picker,
  .sound-proof-grid {
    grid-template-columns: 1fr;
  }

  .focus-orbit {
    grid-template-columns: 36px 1fr 36px;
  }

  .focus-orbit > span {
    width: 36px;
    height: 36px;
  }
}
