/* SONARA atelier. Pearl and ice, with the approved S as the mark.
   Loaded after the measured hotspot sheet so the listening room can breathe. */

:root {
  --ink: #17344c;
  --muted: #5d7c93;
  --app-width: min(1180px, 100vw);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 12% -10%, #ffffff 0%, transparent 55%),
    radial-gradient(700px 480px at 100% 0%, #efe7ff 0%, transparent 46%),
    radial-gradient(800px 500px at 50% 120%, #d7f3ff 0%, transparent 50%),
    #e7f3fb;
}

body { font-family: var(--sans); }

h1, h2, .mix-deck-head h3, .feel-frequency h3, .sheet h2 {
  font-family: var(--serif);
  font-weight: 460;
  letter-spacing: -0.03em;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  max-width: 1180px;
  background: transparent;
}

.topbar {
  height: auto;
  min-height: 0;
  padding: 12px 10px 8px;
  overflow: visible;
  align-items: center;
}

.brand-button {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: min(320px, calc(100% - 104px));
  overflow: visible;
}

/* Beat .brand-button > span, which paints a text-clipped gradient and hides the mark. */
.brand-orb {
  background-image: url("./assets/sonara-mark.svg");
  background-size: cover;
  background-position: center;
}

.brand-button > span.brand-lockup-mark,
.player-brand > .brand-lockup-mark,
.drawer-brand > .brand-lockup-mark,
.listening-gate .gate-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 2px;
  flex: none;
  font-size: 0;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0;
  color: transparent;
  background-color: #d7eefb;
  background-image: url("./assets/sonara-mark.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  border-radius: 50%;
  overflow: hidden;
  mask-image: none;
  -webkit-mask-image: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.88),
    0 8px 16px rgba(115, 189, 235, 0.28);
}

.brand-button > .brand-word,
.player-brand > .brand-word,
.drawer-brand > .brand-word {
  font-family: var(--serif);
  font-size: clamp(16px, 4.4vw, 22px);
  letter-spacing: 0.2em;
  font-weight: 460;
  line-height: 1.1;
  margin: 0;
  padding-left: 0.2em;
  background: linear-gradient(90deg, #168cc0, #6875d6, #ae63ca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-button small {
  letter-spacing: 0.14em;
  font-size: 8px;
  line-height: 1.3;
  white-space: nowrap;
}

.drawer-brand {
  display: grid;
  justify-items: start;
  gap: 4px;
  letter-spacing: 0;
  font-size: inherit;
}

.player-brand {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
}

.player-header {
  align-items: center;
}

.player-brand > .brand-lockup-mark,
.drawer-brand > .brand-lockup-mark { width: 52px; height: 52px; }
.player-brand > .brand-word { font-size: 14px; letter-spacing: 0.24em; padding-left: 0.24em; }

.round-button, .profile-button, .icon-button {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(80, 130, 170, 0.12);
  transition: transform 0.18s ease, background 0.18s ease;
}

.round-button:hover, .profile-button:hover, .icon-button:hover { transform: translateY(-1px); }

.screen:not(.player) {
  padding: 8px 16px calc(168px + env(safe-area-inset-bottom));
  animation: atelier-rise 0.55s ease both;
}

.page-intro { min-width: 0; max-width: 100%; overflow: visible; }
.page-intro h1, .page-intro .page-title, .home-panel h1, .home-panel .home-question, .section-heading h2, .composer-invitation h2, .moment-invitation h2 {
  max-width: 100%;
  overflow: visible;
  overflow-wrap: break-word;
  padding-inline: 0.02em;
}
.page-intro h1, .page-intro .page-title { font-size: clamp(32px, 6.4vw, 56px); line-height: 1.08; }
.page-intro > p:last-child { max-width: 42rem; font-size: 16px; }

.screen { min-width: 0; max-width: 100%; }
.collection-list, .library-grid, .home-stage, .home-panel, .journey-return, .composer-invitation, .moment-invitation {
  min-width: 0;
  max-width: 100%;
}
.collection-copy, .library-copy, .featured-session-copy, .journey-return-copy { min-width: 0; overflow-wrap: break-word; }
.collection-copy h3, .library-copy h3, .featured-session h2 { overflow-wrap: anywhere; }

.primary-cta {
  border: 0;
  background: linear-gradient(120deg, #14c5df 0%, #3b8fe4 48%, #8d78e6 100%);
  box-shadow: 0 14px 30px rgba(70, 130, 190, 0.22);
  letter-spacing: 0.01em;
}

.secondary-cta, .glass-button {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(90, 130, 170, 0.08);
}

.bottom-nav {
  position: fixed;
  z-index: 35;
  top: auto;
  width: min(640px, calc(100% - 32px));
  left: 0;
  right: 0;
  bottom: max(12px, env(safe-area-inset-bottom));
  margin-inline: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(70, 110, 150, 0.16);
  background: rgba(247, 252, 255, 0.96);
}

.nav-button.is-active {
  background: linear-gradient(180deg, #ffffff, #e7f6ff);
  color: #176f98;
}

.mini-player {
  width: min(640px, calc(100% - 28px));
  bottom: calc(96px + env(safe-area-inset-bottom));
  border-radius: 22px;
}

.sheet {
  width: min(560px, calc(100% - 28px));
  border-radius: 32px;
}

.home-stage {
  display: grid;
  gap: 28px;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.home-portrait {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.home-mark-frame {
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: #e7f6ff;
  background-image: url("./assets/sonara-mark.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 30px 70px rgba(120, 170, 210, 0.28),
    inset 0 0 0 12px rgba(255, 255, 255, 0.72);
}

.home-portrait figcaption {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-panel { min-width: 0; max-width: 100%; }

.home-panel h1, .home-panel .home-question {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  margin: 6px 0 10px;
}

.home-origin {
  max-width: 36rem;
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.home-lead {
  max-width: 36rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.mood-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.mood-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 84px;
  padding: 12px 4px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(90, 130, 170, 0.08);
  color: #3e6782;
}

.mood-card svg { width: 22px; height: 22px; }
.mood-card span { font-size: 12px; letter-spacing: 0.04em; }
.mood-card.is-selected {
  color: #0e6f96;
  background: linear-gradient(180deg, #ffffff, #e5f8ff);
  box-shadow: inset 0 0 0 1.5px #7fd0ea, 0 12px 24px rgba(80, 160, 200, 0.16);
}

.home-start {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  font-size: 16px;
}

.home-start b { font-weight: 560; }

.home-resume {
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  color: #24597a;
}

.home-feature-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 26px 0 10px;
}

.home-feature-head h2 { font-size: 28px; }
.home-feature-head button {
  color: #1d7ea8;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-features {
  display: grid;
  gap: 10px;
}

.home-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #fff;
}

.home-feature b { display: block; font-size: 16px; }
.home-feature small { color: var(--muted); }

.home-layers {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.layer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 12px 12px 12px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid #fff;
}

.layer-card-main { text-align: left; min-width: 0; }
.layer-card-main b, .layer-card-main small { overflow-wrap: anywhere; }
.layer-card-main span, .journey-card span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.layer-card-main b, .journey-card b { display: block; font-size: 16px; margin-top: 2px; }
.layer-card-main small, .journey-card small { color: var(--muted); }

.layer-card .reference-switch,
.reference-switch {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  width: 46px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #c5d5e4;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.layer-card .reference-switch i,
.reference-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  right: auto;
  width: 22px;
  height: 22px;
  aspect-ratio: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  transform: none;
  transition: transform 0.16s ease;
}

.reference-switch.is-on { background: linear-gradient(90deg, #22c4ef, #6d8ef0); }
.layer-card .reference-switch.is-on i,
.reference-switch.is-on i {
  left: 3px;
  right: auto;
  transform: translateX(18px);
}

#journeySummary {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: normal;
}

.journey-card {
  width: 100%;
  margin-top: 12px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.55)),
    linear-gradient(100deg, #d9f4ff, #efe7ff);
  border: 1px solid #fff;
}

.featured-session, .composer-invitation, .journey-return, .moment-invitation, .circle-invitation, .collection-card, .library-card, .memory-card, .circle-card {
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(90, 130, 170, 0.1);
}

.player {
  width: min(1180px, 100%);
  background:
    radial-gradient(500px 280px at 20% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(180deg, #e7f6ff 0%, #f4f7ff 55%, #f7f1ff 100%);
}

.player-header > span {
  font-family: var(--serif);
  letter-spacing: 0.34em;
  font-weight: 460;
}

.player-intro h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); }

.main-play {
  width: 76px;
  height: 76px;
  box-shadow: 0 16px 34px rgba(70, 140, 190, 0.28);
}

.mix-deck {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.frequency-row {
  border-radius: 16px;
}

.spa-toggle {
  border-radius: 20px;
}

@media (min-width: 900px) {
  .home-stage {
    grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1.1fr);
    gap: 48px;
    min-height: calc(100dvh - 170px);
  }

  .home-mark-frame { width: min(480px, 100%); }

  .home-features { grid-template-columns: 1fr; }

  .home-layers { grid-template-columns: 1fr 1fr; }

  .player {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 0.95fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
  }

  .player-header { grid-column: 1 / -1; }

  .player-landscape {
    display: grid;
    align-content: center;
    min-height: 0;
  }

  .player-body {
    overflow: auto;
    padding-bottom: 28px;
  }

  .screen:not(.player) { padding-inline: 18px; }
}

@media (min-width: 900px) {
  .page-sessions, .page-progress, .page-together, .page-library {
    max-width: 1040px;
    margin-inline: auto;
  }

  .collection-list { grid-template-columns: 1fr 1fr; gap: 12px; }

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

  .section-heading h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 460;
  }

  .composer-invitation { padding: 22px 26px; }
  .composer-invitation p:not(.eyebrow) { max-width: 36rem; }

  .featured-session { min-height: 320px; }

  .journey-metrics { gap: 16px; }
}

@media (min-width: 431px) {
  .app-shell {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
  }
}

@media (max-width: 720px) {
  .app-shell { width: 100%; max-width: none; }
  .mood-card { min-height: 74px; padding-inline: 2px; }
  .mood-card span { font-size: 11px; overflow-wrap: anywhere; text-align: center; }
  .home-panel h1, .home-panel .home-question { font-size: clamp(32px, 9vw, 40px); }
  .bottom-nav { width: calc(100% - 24px); bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 22px; }
  .brand-button > span.brand-lockup-mark,
  .listening-gate .gate-mark { width: 52px; height: 52px; }
  .composer-invitation { flex-direction: column; align-items: stretch; }
  .composer-invitation p:not(.eyebrow) { max-width: none; }
  .composer-invitation .secondary-cta { width: 100%; min-height: 48px; }
  .featured-session-actions { flex-wrap: wrap; }
  .featured-session-actions > .primary-cta,
  .featured-session-actions .glass-button { min-width: 0; }
  .journey-return { grid-template-columns: 72px minmax(0, 1fr); }
  .page-intro h1, .page-intro .page-title { font-size: clamp(30px, 8.2vw, 40px); }
}


@keyframes atelier-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen:not(.player) { animation: none; }
  .round-button, .profile-button, .icon-button, .reference-switch i { transition: none; }
  .listening-gate-card, #gatePaywall { animation: none; }
}

.listening-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  overflow: auto;
  background:
    radial-gradient(900px 520px at 12% -10%, #ffffff 0%, transparent 55%),
    radial-gradient(700px 480px at 100% 0%, #efe7ff 0%, transparent 46%),
    radial-gradient(800px 500px at 50% 120%, #d7f3ff 0%, transparent 50%),
    rgba(231, 243, 251, 0.96);
}

.listening-gate[hidden] { display: none; }

.listening-gate-card {
  width: min(440px, 100%);
  margin: auto;
  padding: 28px 22px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 60px rgba(80, 140, 180, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  text-align: center;
}

.listening-gate-card #gateTitle {
  margin: 8px 0 10px;
  font-size: clamp(34px, 8vw, 46px);
}

.listening-gate-card .sheet-copy { margin: 0 auto 14px; max-width: 36ch; }
.listening-gate-card .gate-public { max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.55; }

.gate-price {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
}

.gate-price b {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 460;
}

.listening-gate-card label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}

.listening-gate-card input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  background: #f4fbff;
  box-shadow: inset 0 0 0 1px rgba(120, 170, 200, 0.35);
  color: var(--ink);
  font: 400 16px/1.2 var(--sans);
}

.listening-gate-card .data-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.listening-gate-card .primary-cta,
.listening-gate-card .secondary-cta,
.listening-gate-card .text-button {
  width: 100%;
  min-height: 48px;
}

.listening-gate.is-member .listening-gate-card {
  padding: 22px 18px 18px;
}

.listening-gate.is-member .listening-gate-card #gateTitle {
  font-size: clamp(28px, 7vw, 40px);
  margin-bottom: 6px;
}

.listening-gate.is-member #gateCopy,
.listening-gate.is-member #gatePriceNote {
  display: none;
}

.listening-gate .gate-benefits.premium-benefits {
  gap: 6px;
  margin: 0 0 12px;
}

.listening-gate .gate-benefits.premium-benefits li {
  padding: 8px 10px;
  gap: 8px;
}

.listening-gate-card #gateMessage:not(:empty),
.listening-gate-card #gatePaywallMessage:not(:empty) {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.gate-benefits {
  margin: 4px 0 16px;
  text-align: left;
}

.gate-benefits svg {
  width: 22px;
  height: 22px;
  flex: none;
}

#gatePaywall:not([hidden]) {
  animation: atelier-rise 0.45s ease;
}

#checkoutHandoff .gate-price,
#welcomeDialog .sheet-copy {
  text-align: center;
}

.listening-gate-card .gate-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
  margin-top: 6px;
}

.listening-gate-card .gate-help .text-button {
  width: auto;
  min-height: 40px;
}

#contactDialog textarea,
#contactDialog input {
  width: 100%;
  min-width: 0;
  border: 1px solid #c6dfed;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: 400 16px/1.45 var(--sans);
}

#contactDialog textarea {
  min-height: 128px;
  padding: 12px 14px;
  resize: vertical;
}

#contactDialog input[readonly] {
  color: var(--muted);
  background: rgba(244, 251, 255, 0.9);
}

#contactDialog label small {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

#contactStatus:not(:empty),
#messagesStatus:not(:empty) {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

#contactSent .sheet-copy,
#messagesDialog > form > .sheet-copy {
  margin-bottom: 14px;
}

.message-thread {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #d7eaf4;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.message-thread header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.message-thread header small {
  color: var(--muted);
  text-transform: capitalize;
}

.message-bubble {
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
}

.message-bubble small {
  display: block;
  margin-bottom: 4px;
  color: #4b7b99;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-bubble p {
  white-space: pre-wrap;
}

.message-bubble.is-support,
.message-bubble.is-ai {
  background: linear-gradient(180deg, #ffffff, #e7f6ff);
}

.message-thread .text-button {
  justify-self: start;
  min-height: 36px;
}

.music-picker-sheet {
  width: min(420px, calc(100% - 20px));
  height: min(760px, calc(100dvh - 16px));
  max-height: calc(100dvh - 16px);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.music-picker-sheet form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.music-picker-sheet form > header {
  margin-bottom: 8px;
  flex: 0 0 auto;
}

.music-picker-sheet form > header h2 {
  font-size: 26px;
}

.music-picker-sheet .sheet-copy {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
  flex: 0 0 auto;
}

.bed-collections {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
  flex: 0 0 auto;
}

.bed-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 111, 152, 0.28);
  background: rgba(255, 255, 255, 0.62);
  color: #14384c;
  font: 600 13px/1 Outfit, sans-serif;
  letter-spacing: 0.04em;
}

.bed-chip[aria-selected="true"] {
  background: #176f98;
  color: #ffffff;
  border-color: #176f98;
}

.bed-chip:focus-visible {
  outline: 2px solid #176f98;
  outline-offset: 2px;
}

.bed-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 8px;
  margin: 0 -2px;
  flex: 1 1 auto;
  min-height: 132px;
}

.bed-carousel:focus-visible {
  outline: 2px solid #176f98;
  outline-offset: 3px;
  border-radius: 18px;
}

.bed-card {
  flex: 0 0 86%;
  scroll-snap-align: center;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 6px;
  text-align: left;
  color: var(--bed-ink, #14384c);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.85), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, var(--bed, #d7eef8) 100%);
  box-shadow: 0 10px 28px rgba(70, 110, 150, 0.12);
}

.bed-card.is-active {
  outline: 2px solid #176f98;
  outline-offset: 2px;
}

.bed-card b {
  font-family: Fraunces, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.bed-card small {
  color: var(--bed-ink, #14384c);
  opacity: 0.82;
  line-height: 1.35;
}

.bed-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--bed, #d7eef8) 68%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.bed-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 6px;
  flex: 0 0 auto;
}

.music-picker-sheet .fine-print {
  flex: 0 0 auto;
  margin: 0 0 8px;
}

.music-picker-sheet #musicBedLock {
  width: 100%;
  flex: 0 0 auto;
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .bed-carousel {
    scroll-behavior: auto;
  }

  .bed-card {
    transition: none;
  }
}

@media (max-width: 480px) {
  #contactDialog,
  #messagesDialog {
    padding: 18px 16px 16px;
  }

  #contactDialog form > header,
  #messagesDialog form > header {
    margin-bottom: 12px;
  }

  #contactDialog form > label {
    margin-bottom: 10px;
  }

  #contactDialog textarea {
    min-height: 96px;
  }
}
