body.bokjang-audio-lab-active {
  margin: 0;
  overflow-x: hidden;
  background: #090713;
  color: #f7f3ff;
}

.bokjang-audio-lab-active .noise-layer,
.bokjang-audio-lab-active .bg-image-layer {
  display: none;
}

.bok-audio-lab {
  width: min(1180px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) max(56px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bok-audio-lab * {
  box-sizing: border-box;
}

.bok-audio-lab-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid rgba(196, 181, 253, .2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(124, 58, 237, .28), transparent 42%),
    linear-gradient(145deg, rgba(25, 19, 47, .98), rgba(12, 9, 25, .98));
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
}

.bok-audio-lab-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: #c4b5fd;
  font-size: 14px;
  text-decoration: none;
}

.bok-audio-lab-badge {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(167, 139, 250, .38);
  border-radius: 999px;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.bok-audio-lab h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.12;
}

.bok-audio-lab-hero > p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(247, 243, 255, .7);
  line-height: 1.65;
}

.bok-audio-lab-browser-note {
  font-size: 13px;
}

.bok-audio-lab-primary-actions,
.bok-audio-lab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.bok-audio-lab-primary-actions {
  margin-top: 24px;
}

.bok-audio-lab button,
.bok-audio-lab-controls a {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: #6d28d9;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.bok-audio-lab button:hover,
.bok-audio-lab-controls a:hover {
  filter: brightness(1.1);
}

.bok-audio-lab button:focus-visible,
.bok-audio-lab a:focus-visible {
  outline: 3px solid rgba(196, 181, 253, .72);
  outline-offset: 2px;
}

.bok-audio-lab button.secondary,
.bok-audio-lab-controls a {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .82);
}

.bok-audio-lab button.danger {
  background: #9f1239;
}

.bok-audio-lab-selection,
.bok-audio-lab-status,
.bok-audio-lab-message {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bok-audio-lab-message {
  border: 1px solid rgba(251, 191, 36, .35);
  color: #fde68a !important;
  background: rgba(120, 53, 15, .2);
}

.bok-audio-lab section {
  margin-top: 36px;
}

.bok-audio-lab section > h2 {
  margin: 0 0 14px;
  color: #ddd6fe;
  font-size: 15px;
  letter-spacing: .12em;
}

.bok-audio-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.bok-audio-lab-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(22, 17, 39, .86);
  transition: border-color .18s ease, transform .18s ease;
}

.bok-audio-lab-card[data-selected] {
  border-color: #a78bfa;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .2);
}

.bok-audio-lab-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bok-audio-lab-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.bok-audio-lab-card code {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  color: #a78bfa;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.bok-audio-lab-card strong {
  flex: 0 0 auto;
  color: #c4b5fd;
  font-size: 12px;
}

.bok-audio-lab-card > p {
  min-height: 42px;
  margin: 12px 0 16px;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .bok-audio-lab {
    padding-inline: 12px;
  }

  .bok-audio-lab-hero {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .bok-audio-lab-primary-actions > *,
  .bok-audio-lab-controls > * {
    flex: 1 1 auto;
  }

  .bok-audio-lab-card {
    padding: 16px;
  }
}
