:root {
  --navy-deep: #040b20;
  --navy: #0a1a44;
  --navy-2: #0f2358;
  --royal: #1b3c96;
  --royal-bright: #2a55c9;
  --gold: #d4af37;
  --gold-light: #f7e39a;
  --gold-dark: #8a6514;
  --ink: #eef1fb;
  --muted: #a9b6dc;
  --gold-grad: linear-gradient(135deg,
    #7a5a14 0%, #c9a13b 16%, #fff3b0 30%, #e2b84a 44%,
    #a67c1a 58%, #f6dd87 74%, #fff8d6 84%, #9c7418 100%);
  --gold-ring: conic-gradient(from 200deg,
    #8a6514, #f7e39a, #d4af37, #fff8d6, #a67c1a, #f6dd87, #7a5a14, #e2b84a, #8a6514);
  --card: rgba(15, 35, 88, 0.55);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(42, 85, 201, 0.55), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 72px) 16px calc(env(safe-area-inset-bottom) + 96px);
}

/* ---------- metallic gold ---------- */
.gold-text {
  background: var(--gold-grad);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

.gold-btn {
  position: relative;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  color: var(--navy-deep);
  font: 700 16px/1 Cinzel, serif;
  letter-spacing: 0.08em;
  background: var(--gold-grad);
  background-size: 200% 200%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 3px rgba(90, 60, 5, 0.55),
    0 6px 20px rgba(212, 175, 55, 0.28),
    0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.gold-btn::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.gold-btn:active { transform: scale(0.97); }
.gold-btn:disabled { filter: grayscale(0.7) brightness(0.6); cursor: not-allowed; }
.gold-btn:disabled::after { display: none; }

.outline-btn {
  cursor: pointer;
  color: var(--gold-light);
  font: 600 15px Inter, sans-serif;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box;
}

.wide { width: 100%; padding: 16px; border-radius: 999px; margin-top: 12px; }

/* ---------- header / tabs ---------- */
.brand { text-align: center; margin-bottom: 18px; }
.logo {
  font: 900 clamp(52px, 16vw, 76px)/1 Cinzel, serif;
  letter-spacing: 0.18em;
  margin: 0 0 6px 0.18em;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.25));
}
.tagline { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  margin-bottom: 22px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-deep), var(--navy-deep)) padding-box, var(--gold-grad) border-box;
}
.tab {
  border: 0;
  border-radius: 999px;
  padding: 12px 8px;
  cursor: pointer;
  font: 700 14px Cinzel, serif;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  background: transparent;
}
.tab.active {
  color: var(--navy-deep);
  background: var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 10px rgba(212, 175, 55, 0.3);
}

/* ---------- dial ---------- */
.dial-wrap { display: flex; justify-content: center; margin: 6px 0 10px; }
.dial {
  position: relative;
  width: min(260px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 7px;
  background: var(--gold-ring);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.25), 0 12px 30px rgba(0, 0, 0, 0.6);
}
.dial::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--royal) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.7);
}
.dial canvas {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 50%;
}
.dial-readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.dial-hz { font: 900 clamp(48px, 15vw, 64px)/1 Cinzel, serif; }
.dial-unit { font: 700 16px Cinzel, serif; color: var(--gold-light); letter-spacing: 0.2em; margin-top: 2px; }
.dial-name { font-size: 13px; color: var(--muted); margin-top: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.dial.playing { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.25), 0 12px 30px rgba(0, 0, 0, 0.6); }
  50% { box-shadow: 0 0 70px rgba(247, 227, 154, 0.55), 0 12px 30px rgba(0, 0, 0, 0.6); }
}

.freq-note { text-align: center; color: var(--ink); margin: 6px 0 16px; min-height: 1.3em; font-size: 15px; }

/* ---------- play button ---------- */
.play-btn {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 26px;
  padding: 0;
}
.play-btn svg { width: 36px; height: 36px; fill: var(--navy-deep); position: relative; z-index: 1; }
.play-btn .i-stop { display: none; }
.play-btn.on .i-play { display: none; }
.play-btn.on .i-stop { display: block; }
.play-btn.small { width: 56px; height: 56px; margin: 0; flex: none; }
.play-btn.small svg { width: 26px; height: 26px; }

/* ---------- chips ---------- */
.group-title {
  font: 700 15px Cinzel, serif;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.group-title span { font: 500 12px Inter, sans-serif; color: var(--muted); letter-spacing: 0.02em; }

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
#brainChips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#brainChips .chip small { white-space: normal; line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; justify-content: center; } /* long names wrap onto two lines */
.chip {
  cursor: pointer;
  padding: 10px 6px 9px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box;
  color: var(--gold-light);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}
.chip b { display: block; font: 700 18px Cinzel, serif; }
.chip small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip:active { transform: scale(0.96); }
.chip.active {
  background: var(--gold-grad);
  color: var(--navy-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 14px rgba(212, 175, 55, 0.35);
}
.chip.active small { color: #3a2a05; }

/* ---------- cards & controls ---------- */
.card {
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 10px 0 4px; }
#brainOpts { padding: 10px; margin-bottom: 12px; }
#brainOpts .seg { gap: 4px; padding: 3px; }
#brainOpts .seg-btn { padding: 7px 6px; font-size: 13px; }
#brainOpts .seg-btn small { font-size: 10px; margin-top: 1px; }
#brainOpts #modeHint { font-size: 12px; margin: 6px 0 3px; }
#brainOpts .row { gap: 6px; }
#brainOpts .row span { font-size: 12px; }
#brainOpts output { font-size: 12px; }

.row {
  display: grid;
  grid-template-columns: 96px 1fr 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}
.row output { text-align: right; color: var(--gold-light); font-variant-numeric: tabular-nums; font-size: 13px; }
.row.check { grid-template-columns: auto 1fr; margin-top: 8px; }

select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--navy-deep);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font: inherit;
}

input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d6, #d4af37 55%, #8a6514);
  border: 2px solid var(--navy-deep);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d6, #d4af37 55%, #8a6514);
  border: 2px solid var(--navy-deep);
}

/* segmented */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--navy-deep);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.seg-btn {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 10px 6px;
  font: 600 14px Inter, sans-serif;
  color: var(--gold-light);
  background: transparent;
}
.seg-btn small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 2px; }
.seg-btn.active { background: var(--gold-grad); color: var(--navy-deep); }
.seg-btn.active small { color: #3a2a05; }

/* ---------- music ---------- */
.file-btn {
  display: block;
  text-align: center;
  padding: 18px;
  border-radius: 999px;
}
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn span { position: relative; z-index: 1; }

.shift-summary {
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  margin: 12px 0 0;
  line-height: 1.5;
}
.shift-summary b { color: var(--gold-light); }

.progress {
  height: 8px;
  border-radius: 8px;
  margin-top: 14px;
  background: var(--navy-deep);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.progress .bar { height: 100%; width: 0; background: var(--gold-grad); transition: width 0.15s linear; }

.player canvas { width: 100%; height: 110px; display: block; margin-bottom: 12px; }
.player-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.seek { flex: 1; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.ab { margin-bottom: 8px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 12px; opacity: 0.8; }

[hidden] { display: none !important; }

/* ================= focus (keyboard & TV remote) ================= */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(247, 227, 154, 0.25);
  border-radius: 12px;
}

/* ================= top bar ================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(0, auto) minmax(92px, 1fr); /* title stays centred */
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: linear-gradient(180deg, rgba(4, 11, 32, 0.96), rgba(10, 26, 68, 0.88));
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topbar-title {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 900 20px/1 Cinzel, serif;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}
body[data-route="tones"] .topbar-title,
body[data-route="music"] .topbar-title,
body[data-route="welcome"] .topbar-title { visibility: hidden; }
.icon-btn, .avatar-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.icon-btn svg { width: 22px; height: 22px; stroke: var(--gold-light); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.avatar-btn { justify-self: end; font: 700 17px Cinzel, serif; color: var(--gold-light); }

/* ================= drawer ================= */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 6, 20, 0.6);
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 20px) 14px calc(env(safe-area-inset-bottom) + 16px);
  background:
    radial-gradient(ellipse 120% 40% at 0% 0%, rgba(42, 85, 201, 0.45), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-right: 2px solid transparent;
  border-image: linear-gradient(180deg, #fff3b0, #d4af37, #8a6514) 1;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.6);
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);
  overflow-y: auto;
  visibility: hidden;
}
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-logo { font: 900 34px/1 Cinzel, serif; letter-spacing: 0.2em; text-align: center; margin-bottom: 16px; }
.drawer-user {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(15, 35, 88, 0.6);
}
.avatar-lg, .avatar-sm {
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy-deep);
  font-family: Cinzel, serif; font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 8px rgba(0,0,0,0.5);
}
.avatar-lg { width: 46px; height: 46px; font-size: 20px; }
.avatar-sm { width: 34px; height: 34px; font-size: 15px; }
.drawer-user-text { min-width: 0; display: flex; flex-direction: column; }
.drawer-user-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-user-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.nav-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--gold-light);
  font: 600 15px Inter, sans-serif;
  text-align: left;
  cursor: pointer;
}
.nav-item:hover { background: rgba(212, 175, 55, 0.10); }
a.nav-item { text-decoration: none; }
.nav-item.active { /* the page you're on: looks like the others, with a slim gold mark */
  box-shadow: inset 3px 0 0 var(--gold);
  background: rgba(212, 175, 55, 0.06);
}
.nav-ic { width: 24px; text-align: center; font-size: 18px; }
.nav-sep { height: 1px; margin: 8px 6px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent); }
.drawer-foot {
  margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 11px; letter-spacing: 0.1em;
}
/* black padlock on polished gold — opens the admin sign-in */
.lock-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #fff8d6 0%, #f6dd87 20%, #d4af37 45%, #9c7418 75%, #6b4d0f 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.7), inset 0 -3px 5px rgba(60,40,0,0.55), 0 4px 14px rgba(212,175,55,0.3);
  transition: transform 0.15s;
}
.lock-btn:active { transform: scale(0.94); }
.lock-btn svg { width: 18px; height: 18px; fill: #000; }
.lock-row-foot { display: flex; justify-content: center; margin: 4px 0 8px; }

/* ================= pages ================= */
.page-head { text-align: center; margin: 4px 0 18px; }
.page-title { font: 900 clamp(26px, 8vw, 36px)/1.15 Cinzel, serif; letter-spacing: 0.06em; margin: 0 0 6px; }
.page-sub { margin: 0; color: var(--muted); font-size: 13px; }
.section-title { font: 700 15px Cinzel, serif; letter-spacing: 0.08em; color: var(--gold-light); margin: 22px 0 10px; }
.section-title.danger { color: #f3bf98; }
.prose .card h3 { font: 700 16px Cinzel, serif; color: var(--gold-light); margin: 18px 0 6px; letter-spacing: 0.04em; }
.prose .card h3:first-child { margin-top: 0; }
.prose .card p { margin: 0 0 10px; line-height: 1.6; font-size: 14.5px; }
.prose .card b { color: var(--gold-light); font-weight: 600; }

.pill-btn { padding: 11px 22px; border-radius: 999px; font-size: 14px; }
.pill-btn.sm { padding: 9px 16px; font-size: 13px; flex: none; }
/* Delete my account — light, shiny metallic copper */
.danger-btn {
  position: relative; overflow: hidden; cursor: pointer;
  color: #3a1605;
  font: 700 15px Cinzel, serif; letter-spacing: 0.06em;
  border: 0;
  background: linear-gradient(135deg, #b8703f 0%, #e9a878 16%, #fff0e4 30%, #f3bf98 44%, #c9804e 58%, #f5c7a4 74%, #fff5ec 84%, #bb7444 100%);
  background-size: 200% 200%;
  box-shadow: inset 0 1px 0 rgba(255, 250, 245, 0.85), inset 0 -2px 3px rgba(110, 50, 15, 0.45), 0 4px 14px rgba(233, 168, 120, 0.3);
  transition: background-position 0.5s ease, transform 0.12s ease;
}
.danger-btn::after {
  content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg); animation: sheen 4.5s ease-in-out infinite;
}
.danger-btn:hover { background-position: 100% 100%; }
.danger-btn:active { transform: scale(0.97); }
.danger-btn:disabled { filter: grayscale(0.5) brightness(0.8); cursor: not-allowed; }
.danger-btn:disabled::after { display: none; }
.link-btn { margin-left: auto; background: none; border: 0; color: var(--muted); font: 500 12px Inter, sans-serif; cursor: pointer; padding: 6px; }
/* small shiny metallic copper Delete */
.link-btn.del {
  position: relative; overflow: hidden; flex: none;
  padding: 3px 10px; border-radius: 999px;
  font: 700 10.5px/1.4 Inter, sans-serif; letter-spacing: 0.04em;
  color: #2a1203;
  background: linear-gradient(135deg, #7a3a12 0%, #c47a3a 18%, #f7c29a 32%, #d98c52 46%, #9a5222 60%, #e8a06a 76%, #ffd9bc 86%, #8b4513 100%);
  background-size: 200% 200%;
  box-shadow: inset 0 1px 0 rgba(255, 230, 210, 0.75), inset 0 -1px 2px rgba(70, 30, 5, 0.55), 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: background-position 0.4s ease, transform 0.12s ease;
}
.link-btn.del::after {
  content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 245, 235, 0.75), transparent);
  transform: skewX(-20deg); animation: sheen 5s ease-in-out infinite;
}
.link-btn.del:hover { background-position: 100% 100%; }
.link-btn.del:active { transform: scale(0.95); }
.sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.row.check span { line-height: 1.35; }

/* forms */
.form .field { display: block; margin-bottom: 14px; }
.form .field > span:first-child { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form input:not([type=checkbox]):not([type=range]), textarea, .search, .comment-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: var(--navy-deep);
  color: var(--ink);
  font: 16px Inter, sans-serif; /* 16px stops iOS zooming in */
}
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--gold-light); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 68px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(212,175,55,0.15); color: var(--gold-light);
  border-radius: 8px; padding: 7px 10px; font: 600 12px Inter, sans-serif; cursor: pointer;
}
.form-msg { min-height: 1.2em; margin: 0 0 4px; color: #ffb4b4; font-size: 13px; }
.form-msg.ok { color: #9fe0b0; }
#authSeg { margin-bottom: 14px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px);
  z-index: 200;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy-2);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* now playing */
.now-playing {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 60;
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--gold-grad);
  box-shadow: 0 8px 26px rgba(0,0,0,0.55), 0 0 20px rgba(212,175,55,0.35);
  max-width: calc(100vw - 32px);
}
.np-info {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 12px; color: var(--navy-deep); font: 700 14px Inter, sans-serif;
}
.np-info span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--navy-deep); animation: npPulse 1.2s ease-in-out infinite; }
@keyframes npPulse { 50% { transform: scale(0.5); opacity: 0.5; } }
.np-stop {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-deep); color: var(--gold-light); font-size: 14px;
}

/* ================= community ================= */
.composer textarea { margin-bottom: 10px; }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.count { color: var(--muted); font-size: 12px; }
.signin-cta { text-align: center; }
.signin-cta p { margin: 0 0 12px; }
.guidelines { color: var(--muted); font-size: 12px; text-align: center; margin: -6px 0 16px; line-height: 1.5; }
.status-msg { text-align: center; color: var(--muted); font-size: 14px; }
.byline { display: flex; align-items: center; gap: 10px; }
.byline-meta { display: flex; flex-direction: column; min-width: 0; }
.byline-meta b { font-size: 14px; color: var(--gold-light); }
.byline-meta small { font-size: 12px; color: var(--muted); }
.post-body, .comment-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 12px 0; font-size: 15px; }
.post-actions { display: flex; gap: 8px; border-top: 1px solid rgba(212,175,55,0.2); padding-top: 10px; }
.act {
  border: 0; background: rgba(212,175,55,0.08); color: var(--gold-light);
  padding: 9px 14px; border-radius: 999px; font: 600 13px Inter, sans-serif; cursor: pointer;
}
.act.on { background: rgba(212,175,55,0.25); }
.thread { margin-top: 12px; }
.comment { padding: 10px 12px; border-radius: 12px; background: rgba(4, 11, 32, 0.6); margin-bottom: 8px; }
.comment .avatar-sm { width: 28px; height: 28px; font-size: 13px; }
.comment-body { margin: 8px 0 2px; font-size: 14px; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form input { padding: 10px 12px; }

/* ================= encyclopedia (Pure Gold 9 style) ================= */
.search { margin-bottom: 12px; }
.enc-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.enc-filters::-webkit-scrollbar { display: none; }
.pill {
  flex: none; cursor: pointer; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box;
  color: var(--gold-light); font: 600 13px Inter, sans-serif;
}
.pill.active { background: var(--gold-grad); color: var(--navy-deep); }
#encProtocol { margin: 0 0 14px; }
#encProtocol > div { margin: 0 !important; }
.enc-empty { text-align: center; color: var(--muted); }

.tts-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,215,0,0.10); border: 1px solid rgba(255,215,0,0.35);
  border-radius: 50%; width: 24px; height: 24px;
  cursor: pointer; padding: 0; vertical-align: middle; margin-left: 6px; flex-shrink: 0;
  color: rgba(255,215,0,0.75); transition: all 0.2s;
}
.tts-btn:hover { background: rgba(255,215,0,0.22); color: #FFD700; border-color: rgba(255,215,0,0.70); }
.tts-btn.tts-playing, .hfe-say.tts-playing { animation: ttsPulse 1.1s ease-in-out infinite; }
.tts-btn.tts-playing { background: rgba(255,215,0,0.25); border-color: rgba(255,215,0,0.90); color: #FFE066; }
@keyframes ttsPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255,215,0,0.30); }
  50% { box-shadow: 0 0 10px rgba(255,215,0,0.65), 0 0 18px rgba(255,200,0,0.25); }
}
.tts-icon { fill: currentColor; }
#hfe-protocol-tts-btn .tts-icon { fill: #1C1C1C; }
.tts-wave1 { opacity: 0.75; }
.tts-wave2 { opacity: 0.50; }

.hfe-card {
  position: relative;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hfe-card.playing {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold), 0 0 28px rgba(212, 175, 55, 0.35), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.hfe-top { display: flex; align-items: flex-start; gap: 14px; }
.hfe-play {
  flex: none;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  padding: 0;
  touch-action: manipulation;
}
.hfe-play svg { width: 24px; height: 24px; fill: var(--navy-deep); position: relative; z-index: 1; }
.hfe-play .i-stop { display: none; }
.hfe-play.on .i-play { display: none; }
.hfe-play.on .i-stop { display: block; }
.hfe-play.on { animation: glow 2.4s ease-in-out infinite; }
.hfe-text { flex: 1; min-width: 0; }
.hfe-title { display: flex; align-items: center; gap: 8px; }
.hfe-hz { font: 900 24px/1.1 Cinzel, serif; }
.hfe-hz small { font-size: 13px; letter-spacing: 0.12em; }
.hfe-name { font: 700 15px/1.35 Cinzel, serif; color: var(--gold-light); letter-spacing: 0.02em; margin: 2px 0 4px; }
.hfe-say {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  fill: var(--gold-light);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box;
}
.hfe-say.tts-playing { background: var(--gold-grad); fill: var(--navy-deep); }
.hfe-desc { font-size: 14px; color: var(--ink); opacity: 0.88; line-height: 1.6; }
/* Compact by default: 2-line preview; Read more shows the rest */
.hfe-card:not(.open) .hfe-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hfe-card:not(.open) .hfe-say,
.hfe-card:not(.open) .hfe-det,
.hfe-card:not(.open):not(.playing) .hfe-vol { display: none; }
.hfe-more {
  margin-top: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--gold-light);
  font: 600 13px Inter, sans-serif;
  letter-spacing: 0.02em;
}
.hfe-more:hover { text-decoration: underline; }
.hfe-vol { display: flex; align-items: center; gap: 10px; margin-top: 14px; fill: var(--gold-light); }
.hfe-vol svg { flex-shrink: 0; }
.hfe-det { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.35); }
.hfe-det-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer; border: 0;
  background: var(--navy-deep);
  font: 700 12px Cinzel, serif; letter-spacing: 0.1em; color: var(--gold-light); text-transform: uppercase;
}
.hfe-det-body {
  background: var(--navy-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 14px; color: var(--ink); font-size: 13.5px; line-height: 1.7;
}

/* ================= compact Settings page ================= */
.view[data-view="settings"] .page-head { margin: 0 0 12px; }
.view[data-view="settings"] .page-title { font-size: 24px; }
.view[data-view="settings"] .section-title { font-size: 13px; margin: 16px 0 8px; }
.view[data-view="settings"] .card { padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; }
.view[data-view="settings"] .seg { padding: 3px; border-radius: 12px; margin-bottom: 10px !important; }
.view[data-view="settings"] .seg-btn { padding: 6px 6px; font-size: 12px; }
.view[data-view="settings"] .form .field { margin-bottom: 10px; }
.view[data-view="settings"] .form .field > span:first-child { font-size: 12px; margin-bottom: 4px; }
.view[data-view="settings"] .form input:not([type=checkbox]):not([type=range]) { padding: 9px 12px; border-radius: 10px; }
.view[data-view="settings"] .pw-toggle { padding: 5px 8px; font-size: 11px; }
.view[data-view="settings"] .form-msg { font-size: 12px; margin: 0 0 2px; }
.view[data-view="settings"] .form-msg:empty { min-height: 0; margin: 0; }
/* all Settings buttons: compact, centered pills */
.view[data-view="settings"] .gold-btn.wide,
.view[data-view="settings"] .outline-btn.wide { width: auto; display: block; margin: 8px auto 0; padding: 8px 22px; font-size: 11.5px; min-width: 140px; }
.view[data-view="settings"] .row { padding: 5px 0; font-size: 13px; gap: 10px; }
.view[data-view="settings"] .row.check input[type=checkbox] { width: 18px; height: 18px; }
.view[data-view="settings"] .sub { font-size: 11px; }
.view[data-view="settings"] .hint { font-size: 12px; margin: 4px 0 8px; }
.view[data-view="settings"] .sub-status { font-size: 13px; }
.view[data-view="settings"] .lock-row-foot { margin: 0 0 4px; }
/* smaller, centered Sign out */
/* smaller, centered Delete my account */
.view[data-view="settings"] .danger-btn.wide { width: auto; display: block; margin: 8px auto 2px; padding: 8px 20px; font-size: 11.5px; border-radius: 999px; }
.view[data-view="settings"] .lock-btn { width: 34px; height: 34px; }
.view[data-view="settings"] .lock-btn svg { width: 15px; height: 15px; }

/* ================= sound style ================= */
.opt-title { font: 700 14px Cinzel, serif; color: var(--gold-light); letter-spacing: 0.06em; margin: 0 0 10px; }
.opt-sub { font-size: 12px; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.beat-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.beat-chip {
  cursor: pointer; padding: 8px 2px 7px; border-radius: 12px; text-align: center; color: var(--gold-light);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box;
}
.beat-chip b { display: block; font: 700 13px Cinzel, serif; white-space: nowrap; }
.beat-chip small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beat-chip.active { background: var(--gold-grad); color: var(--navy-deep); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 12px rgba(212,175,55,0.35); }
.beat-chip.active small { color: #3a2a05; }

/* ================= Premium ================= */
.chip { position: relative; }
.chip.locked b, .chip.locked small { opacity: 0.55; }
.chip.locked::after, .chip.free::after {
  position: absolute; top: 4px; right: 6px;
  font: 700 9px Inter, sans-serif; letter-spacing: 0.06em;
}
.chip.locked::after { content: '♛'; font-size: 11px; color: var(--gold); }
.chip.free::after { content: 'FREE'; color: var(--gold-light); }
.chip.free.active::after { color: var(--navy-deep); }

#panel-music.locked > :not(#musicLock) { display: none !important; }
.lock-card { text-align: center; padding: 26px 20px; }
.lock-card h3 { font: 700 20px Cinzel, serif; color: var(--gold-light); margin: 8px 0; }
.lock-card p { color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.lock-ic {
  width: 54px; height: 54px; margin: 0 auto;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-deep); font-size: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 6px 20px rgba(212,175,55,0.35);
}
.lock-ic.sm { width: 40px; height: 40px; font-size: 19px; margin: 0; flex: none; }
.lock-row {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  color: var(--ink); font: 14px Inter, sans-serif; margin-bottom: 0;
}
.lock-row b { display: block; font: 700 14px Cinzel, serif; color: var(--gold-light); letter-spacing: 0.04em; }
.lock-row small { color: var(--muted); font-size: 12px; }

.hfe-card.locked { opacity: 0.92; }
.hfe-card.locked .hfe-play { filter: saturate(0.7) brightness(0.85); }
.hfe-play .i-lock { width: 20px; height: 20px; fill: var(--navy-deep); position: relative; z-index: 1; }
.prem-pill, .free-pill {
  font: 700 10px Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
}
.prem-pill { color: var(--gold-light); border: 1px solid rgba(212,175,55,0.55); }
.free-pill { background: var(--gold-grad); color: var(--navy-deep); }

.premium-item { position: relative; }
.nav-badge {
  margin-left: auto; padding: 3px 9px; border-radius: 999px;
  background: var(--gold-grad); color: var(--navy-deep);
  font: 700 10px Inter, sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}


.crown { font-size: 44px; line-height: 1; margin-bottom: 6px; }
.benefits { list-style: none; padding: 18px 18px 8px; }
.benefits li { position: relative; padding: 0 0 12px 28px; line-height: 1.45; font-size: 14.5px; }
.benefits li::before { content: '✦'; position: absolute; left: 0; top: 0; color: var(--gold); }
.benefits b { color: var(--gold-light); font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 4px; }
.plan {
  cursor: pointer; text-align: center; padding: 18px 12px;
  border-radius: var(--radius); color: var(--ink);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, linear-gradient(rgba(212,175,55,0.4), rgba(212,175,55,0.4)) border-box;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.plan.active {
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 0 24px rgba(212,175,55,0.3);
}
.plan-name { font: 700 14px Cinzel, serif; color: var(--gold-light); letter-spacing: 0.06em; display: flex; gap: 6px; align-items: center; }
.plan-price { font: 900 28px Cinzel, serif; color: var(--ink); }
.plan-per { font-size: 12px; color: var(--muted); }
.save { font: 700 9px Inter, sans-serif; padding: 3px 6px; border-radius: 999px; background: var(--gold-grad); color: var(--navy-deep); letter-spacing: 0.04em; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; margin: 14px 4px 0; }
.premium-active { text-align: center; }
.premium-active h3 { font: 900 22px Cinzel, serif; margin: 4px 0 8px; }
.premium-active p, .sub-status { margin: 0; line-height: 1.5; }
.sub-status { color: var(--gold-light); }
@media (min-width: 1100px) { .view[data-view="premium"] { max-width: 640px; margin: 0 auto; } }

/* ================= post audience & friends ================= */
.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 10px; }
.aud-label { flex-basis: 100%; font-size: 11.5px; color: var(--muted); margin: 0 0 1px 2px; }
.audience button {
  cursor: pointer; padding: 5px 9px; border-radius: 999px; font: 600 11.5px Inter, sans-serif; color: var(--gold-light); white-space: nowrap;
  border: 1.5px solid transparent; background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, linear-gradient(rgba(212,175,55,0.45), rgba(212,175,55,0.45)) border-box;
}
.audience button[aria-checked="true"] {
  color: var(--navy-deep); background: var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 3px 10px rgba(212,175,55,0.3);
}
.aud-select {
  font: 600 11px Inter, sans-serif; color: var(--gold-light); background: var(--navy-deep);
  border: 1px solid rgba(212,175,55,0.45); border-radius: 999px; padding: 2px 6px; width: auto; cursor: pointer;
}
.aud-badge { color: var(--gold-light); font-weight: 600; }
.friends-bar { display: flex; justify-content: center; margin: -4px 0 12px; }
.friends-toggle { padding: 7px 16px; font-size: 13px; }
.friends-panel .search { margin: 6px 0 10px; }
.friend-list { display: grid; gap: 6px; }
.friend-list + .friend-list { margin-top: 12px; }
.friend-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid rgba(212,175,55,0.1); }
.friend-row .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-row .link-btn.del { margin-left: 0; }
.fl-title { font: 700 12px Cinzel, serif; color: var(--gold-light); letter-spacing: 0.06em; margin: 4px 0 2px; }

/* ================= welcome page ================= */
.welcome { text-align: center; position: relative; }
.wl-hero { padding: 6px 0 10px; }
.wl-signin-corner { position: absolute; top: 14px; right: 14px; z-index: 10; font-size: 11px; padding: 5px 12px; }
.wl-emblem { width: 140px; height: 140px; filter: drop-shadow(0 0 18px rgba(212,175,55,0.7)) drop-shadow(0 0 40px rgba(212,175,55,0.35)); }
.wl-wave { stroke-dasharray: 420; stroke-dashoffset: 420; animation: wlDraw 2.6s ease-out forwards; } /* the infinity symbol draws itself */
@keyframes wlDraw { to { stroke-dashoffset: 0; } }
.wl-logo { font: 900 clamp(54px, 17vw, 84px)/1 Cinzel, serif; letter-spacing: 0.18em; margin: 6px 0 6px 0.18em; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.6)); }
.wl-line { font: 700 clamp(19px, 5.4vw, 24px)/1.3 Cinzel, serif; margin: 0 0 10px; }
.wl-sub { color: var(--ink); opacity: 0.85; font-size: 15px; line-height: 1.55; max-width: 460px; margin: 0 auto 18px; }
.wl-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.wl-player { display: flex; align-items: center; gap: 10px; font-size: 13px; animation: fadeIn .3s; }
.wl-player-label { letter-spacing: .03em; }
.wl-cta .gold-btn { padding: 15px 30px; border-radius: 999px; font-size: 15px; }
.wl-cta .outline-btn { padding: 11px 26px; }
.wl-cta .link-btn { margin: 0; color: var(--gold-light); text-decoration: underline; font-size: 14px; }
.wl-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 11% 10px; margin: 0 -16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.wl-carousel::-webkit-scrollbar { display: none; }
.wl-card {
  scroll-snap-align: center; cursor: pointer; text-align: left; color: var(--ink);
  padding: 18px; border-radius: 18px; border: 1.5px solid transparent; min-height: 138px;
  background: linear-gradient(rgba(15,35,88,0.95), rgba(10,26,68,0.95)) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.wl-card .wl-ic { display: block; font-size: 26px; color: var(--gold-light); margin-bottom: 8px; }
.wl-card b { display: block; font: 700 16px Cinzel, serif; color: var(--gold-light); margin-bottom: 6px; }
.wl-card small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.wl-dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 20px; }
.wl-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(212,175,55,0.3); transition: background .3s, transform .3s; }
.wl-dots span.on { background: var(--gold); transform: scale(1.3); }
.wl-offer { padding: 20px; border: 1.5px solid transparent; background: linear-gradient(rgba(15,35,88,0.92), rgba(10,26,68,0.92)) padding-box, var(--gold-grad) border-box; }
.wl-offer .mission-kicker { font: 700 12px Inter, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.wl-price { font: 900 40px Cinzel, serif; margin: 0 0 6px; }
.wl-price small { font: 500 14px Inter, sans-serif; color: var(--muted); }
.wl-offer-sub { color: var(--ink); opacity: 0.88; font-size: 14px; line-height: 1.5; margin: 0 0 6px; }
.wl-offer-sub b { color: var(--gold-light); }
@media (min-width: 768px) { .wl-carousel { grid-auto-columns: 40%; padding: 4px 30% 10px; } }
@media (prefers-reduced-motion: reduce) { .wl-wave { animation: none; stroke-dashoffset: 0; } }

/* ================= languages ================= */
.lang-row { grid-template-columns: 110px 1fr; }
.wl-lang { margin: 8px 0 0; color: var(--gold-light); }
.wl-lang select { width: auto; max-width: 70%; display: inline-block; padding: 7px 10px; font-size: 14px; }
.lang-offer {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 70px); transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px;
  background: var(--navy-2); border: 1.5px solid var(--gold); box-shadow: 0 8px 26px rgba(0,0,0,0.55); white-space: nowrap;
}
.lang-offer .link-btn { margin: 0; }
[dir="rtl"] .chips, [dir="rtl"] .row { direction: rtl; }

/* ================= forgot password & manage subscription ================= */
.forgot-link { display: block; margin: 10px auto 0 !important; color: var(--gold-light); text-decoration: underline; }
.manage-panel:empty { display: none; }
.manage-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; }
.manage-row .pill-btn { padding: 7px 16px; font-size: 12px; }
.manage-row .link-btn { margin-left: 0; }
.pause-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(4,11,32,0.6); border: 1px solid rgba(212,175,55,0.35); text-align: center; }
.pause-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }

/* ================= report / block ================= */
.more-btn { background: none; border: 0; color: var(--gold-light); font-size: 20px; line-height: 1; padding: 2px 8px; cursor: pointer; border-radius: 8px; }
.more-btn:hover { background: rgba(212,175,55,0.12); }
.post-menu, .report-box { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 10px; border-radius: 12px; background: rgba(4,11,32,0.7); border: 1px solid rgba(212,175,55,0.25); }
.report-box .fl-title { flex-basis: 100%; margin: 0 0 4px; }
.comment .link-btn { margin-left: auto; }
.comment .link-btn.del { margin-left: 6px; }
.terms-check { align-items: flex-start; margin: 2px 0 8px; font-size: 13px; }

/* ================= community photos ================= */
.composer-row .count { margin-left: auto; }
.photo-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; color: var(--gold-light); font: 600 13px Inter, sans-serif;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box;
}
.photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.photo-btn svg { width: 18px; height: 18px; fill: var(--gold-light); }
.photo-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 10px; }
.photo-previews .pv { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid rgba(212,175,55,0.4); }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-previews .rm {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(4,11,32,0.85); color: var(--gold-light); font-size: 12px; line-height: 24px; padding: 0;
}
.post-photos { display: grid; gap: 4px; margin: 10px 0 12px; border-radius: 12px; overflow: hidden; }
.post-photos.n1 { grid-template-columns: 1fr; }
.post-photos.n2, .post-photos.n4 { grid-template-columns: 1fr 1fr; }
.post-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-photos.n3 .ph:first-child { grid-row: span 2; }
.post-photos .ph { border: 0; padding: 0; cursor: zoom-in; background: var(--navy-deep); display: block; }
.post-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-photos.n1 img { max-height: 460px; }
.post-photos:not(.n1) .ph { aspect-ratio: 1; }
.post-photos.n3 .ph:first-child { aspect-ratio: auto; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(2, 6, 20, 0.95); padding: calc(env(safe-area-inset-top) + 50px) 12px calc(env(safe-area-inset-bottom) + 20px);
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.7); }
.lb-close, .lb-nav {
  position: absolute; border: 0; cursor: pointer; color: var(--navy-deep); background: var(--gold-grad);
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px; display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 14px rgba(0,0,0,0.5);
}
.lb-close { top: calc(env(safe-area-inset-top) + 10px); right: 12px; font-size: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); font-size: 28px; }

/* ================= About mission ================= */
.about .mission { text-align: center; padding: 22px 18px; border: 1.5px solid transparent;
  background: linear-gradient(rgba(15,35,88,0.92), rgba(10,26,68,0.92)) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 0 30px rgba(212,175,55,0.18), 0 10px 30px rgba(0,0,0,0.35); }
.about .mission .mission-kicker { font: 700 12px Inter, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px !important; }
.about .mission .mission-line { font: 900 clamp(22px, 6.4vw, 30px)/1.25 Cinzel, serif; margin: 0 0 12px !important; }

/* ================= read-aloud speaker buttons ================= */
.say-btn {
  flex: none; display: inline-grid; place-items: center; vertical-align: middle;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 28%, #fff8d6 0%, #f6dd87 22%, #d4af37 48%, #9c7418 78%, #6b4d0f 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), inset 0 -2px 3px rgba(60,40,0,0.5), 0 2px 8px rgba(212,175,55,0.3);
  transition: transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.say-btn svg { width: 15px; height: 15px; fill: #1a1200; }
.say-btn .w1 { opacity: 0.8; } .say-btn .w2 { opacity: 0.55; }
.say-btn:active { transform: scale(0.92); }
.say-btn.tts-playing { animation: sayPulse 1.1s ease-in-out infinite; }
.say-btn.tts-playing .w1 { animation: sayWave 0.8s ease-in-out infinite alternate; }
.say-btn.tts-playing .w2 { animation: sayWave 0.8s ease-in-out 0.2s infinite alternate; }
@keyframes sayPulse { 0%, 100% { box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 0 4px rgba(247,227,154,0.4); } 50% { box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 0 14px rgba(247,227,154,0.9), 0 0 24px rgba(212,175,55,0.45); } }
@keyframes sayWave { from { opacity: 0.25; } to { opacity: 1; } }
.has-say { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.ex > summary .say-btn { position: absolute; right: 40px; top: 10px; }
.has-say-corner { position: relative; }
.has-say-corner > .say-btn { position: absolute; top: 12px; right: 12px; }
.benefits.has-say-corner { padding-right: 52px; }
.freq-note-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 16px; }
.freq-note-row .freq-note { margin: 0; }
.post-actions .say-btn.in-actions { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .say-btn.tts-playing, .say-btn.tts-playing .w1, .say-btn.tts-playing .w2 { animation: none; } }

/* ================= Frequencies Explain ================= */
.explain .intro { color: var(--ink); opacity: 0.88; line-height: 1.6; margin: 0 2px 12px; font-size: 14.5px; }
.ev {
  display: inline-block; white-space: nowrap;
  font: 700 10px Inter, sans-serif; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px; vertical-align: middle;
}
.ev-strong { background: var(--gold-grad); color: var(--navy-deep); }
.ev-good { border: 1px solid var(--gold); color: var(--gold-light); }
.ev-early { border: 1px dashed rgba(212,175,55,0.6); color: var(--muted); }
.ev-trad { background: rgba(160, 120, 255, 0.18); border: 1px solid rgba(180, 140, 255, 0.5); color: #d8c8ff; }
.ev-key p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; display: flex; gap: 10px; align-items: baseline; }
.ev-key p .ev { flex: none; min-width: 96px; text-align: center; }
.ev-key-title { font: 700 14px Cinzel, serif !important; color: var(--gold-light); letter-spacing: 0.06em; }
details.ex {
  background: var(--card);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
details.ex > summary {
  list-style: none; cursor: pointer;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 14px 84px 14px 16px; position: relative; /* room for the speaker and the arrow */
}
details.ex > summary::-webkit-details-marker { display: none; }
details.ex > summary::after {
  content: '▾'; position: absolute; right: 16px; top: 14px; color: var(--gold-light); transition: transform 0.2s;
}
details.ex[open] > summary::after { transform: rotate(180deg); }
details.ex > summary b { font: 700 15px Cinzel, serif; color: var(--gold-light); letter-spacing: 0.02em; }
details.ex > summary small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
details.ex > :not(summary) { margin: 0 16px 14px; }
details.ex p, details.ex li { font-size: 14px; line-height: 1.6; }
details.ex ul { padding-left: 18px; }
details.ex li { margin-bottom: 8px; }
.explain a[href^="#ref"] { color: var(--gold-light); font-size: 11px; vertical-align: super; text-decoration: none; margin-left: 1px; }
.explain b { color: var(--gold-light); font-weight: 600; }
.note { font-size: 13px !important; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 10px; }
.wave-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wave-table th { text-align: left; color: var(--gold-light); font: 700 12px Cinzel, serif; letter-spacing: 0.04em; padding: 6px 6px 8px; border-bottom: 1px solid rgba(212,175,55,0.35); }
.wave-table td { padding: 8px 6px; border-bottom: 1px solid rgba(212,175,55,0.12); vertical-align: top; line-height: 1.45; }
.wave-table tr:last-child td { border-bottom: 0; }
.tips { margin: 0; padding-left: 18px; }
.tips li { margin-bottom: 8px; line-height: 1.5; font-size: 14px; }
.refs { padding-left: 22px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.refs li { margin-bottom: 8px; scroll-margin-top: 80px; }
.refs li:target { color: var(--ink); }
.refs a, .inline-link { color: var(--gold-light); }

/* contact */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; }
.sent h3 { font: 900 22px Cinzel, serif; margin: 10px 0 6px; }
.sent p { color: var(--ink); line-height: 1.5; }
.form select { padding: 13px 14px; font-size: 16px; }

/* ================= larger screens ================= */
@media (min-width: 768px) {
  .app { max-width: 760px; padding-left: 24px; padding-right: 24px; }
  .chips { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
/* desktop & TV: dial beside the controls */
@media (min-width: 1100px) {
  .app { max-width: 1080px; }
  #panel-tones:not([hidden]) {
    display: grid;
    grid-template-columns: 380px 1fr;
    column-gap: 40px;
    align-items: start;
  }
  #panel-tones > .tone-hero { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 90px; }
  #panel-tones > :not(.tone-hero) { grid-column: 2; }
  #panel-tones .dial { width: 340px; }
  .enc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: start; }
  #panel-music:not([hidden]) { max-width: 640px; margin: 0 auto; }
  .view.prose, .view[data-view="community"], .view[data-view="settings"], .view.explain, .view[data-view="contact"] { max-width: 760px; margin: 0 auto; }
}
/* big TVs (and 4K screens reporting a large CSS width): scale everything up */
@media (min-width: 1700px) {
  body { zoom: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  .gold-text, .gold-btn::after, .dial.playing { animation: none; }
}

/* ---------- reading voice ---------- */
#voicePreview { display: block; margin: 10px auto 2px; padding: 8px 20px; font-size: 12px; }
#voicePreview.tts-playing { box-shadow: 0 0 14px rgba(246, 221, 135, 0.45); }

/* ---------- My Journey & Affiliates ---------- */
.jr-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px; }
.af-tiles { grid-template-columns: repeat(3, 1fr); }
.jr-tile {
  text-align: center; padding: 14px 8px 12px; border-radius: 16px;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box; border: 1.5px solid transparent;
}
.jr-tile b { display: block; font: 700 26px/1.1 Cinzel, serif; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jr-tile small { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; letter-spacing: 0.03em; }
.jr-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.jr-h small { color: var(--muted); font: 500 11.5px Inter, sans-serif; }
.jr-svg { display: block; width: 100%; height: 130px; overflow: visible; }
.jr-axis { stroke: rgba(169, 182, 220, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.jr-hit { fill: transparent; }
.jr-fill { fill: url(#jrGold); }
.jr-zero { fill: rgba(169, 182, 220, 0.25); }
.jr-bar:hover .jr-fill { fill: var(--gold-light); }
.jr-bar:hover .jr-hit { fill: rgba(247, 227, 154, 0.08); }
.jr-scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11px; }
.jr-table summary { cursor: pointer; color: var(--gold-light); font-size: 12.5px; margin-top: 10px; }
.jr-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.jr-table td, .jr-table th { padding: 5px 4px; border-bottom: 1px solid rgba(169, 182, 220, 0.15); text-align: left; }
.jr-table td:last-child, .jr-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.jr-favs { list-style: none; margin: 0; padding: 0; counter-reset: fav; }
.jr-favs li { counter-increment: fav; display: grid; grid-template-columns: 26px auto 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(169, 182, 220, 0.14); }
.jr-favs li:last-child { border-bottom: 0; }
.jr-favs li::before { content: counter(fav); grid-row: span 2; align-self: center; text-align: center; font: 700 15px Cinzel, serif; color: var(--gold); }
.jr-favs b { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.jr-favs span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-favs small { grid-column: 2 / 4; color: var(--muted); font-size: 12px; }
.center { text-align: center; }
.af-steps { margin: 0 0 6px; padding-left: 20px; line-height: 1.55; }
.af-steps li { margin: 0 0 6px; }
.af-link { padding: 11px 14px; border-radius: 12px; background: rgba(4, 11, 32, 0.6); border: 1px solid var(--gold-dark); color: var(--gold-light); font-size: 14px; word-break: break-all; user-select: all; }
.af-actions { display: flex; gap: 10px; justify-content: center; margin: 12px 0 2px; flex-wrap: wrap; }
.outline-btn.af-sm { padding: 9px 16px; font-size: 13px; }
[data-view="affiliate"] .outline-btn.wide { padding: 11px; font-size: 14px; }
@media (max-width: 380px) { .af-tiles { grid-template-columns: repeat(2, 1fr); } .jr-tile b { font-size: 22px; } }

/* ---------- top-right account corner (signed out: Log in / Create account) ---------- */
.acct-wrap { position: relative; justify-self: end; }
.guest-ic { width: 22px; height: 22px; fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linecap: round; }
.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 95; min-width: 176px;
  display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box; border: 1.5px solid transparent;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.acct-menu[hidden] { display: none; }
.acct-menu button {
  cursor: pointer; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--gold-dark);
  background: transparent; color: var(--gold-light); font: 600 14px Inter, sans-serif; text-align: center;
}
.acct-menu button.gold { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; }
.acct-menu button:hover, .acct-menu button:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(247, 227, 154, 0.45); }
[dir="rtl"] .acct-menu { right: auto; left: 0; }

/* ---------- 3-day free 8 Hz ---------- */
.free-note { margin: 8px 2px 0; text-align: center; font-size: 12.5px; color: var(--gold-light); letter-spacing: 0.02em; }
.free-note.ended { color: var(--muted); }

/* ---------- Escaping LOW Frequencies ---------- */
.ev-fact { border: 1px solid rgba(120, 200, 255, 0.55); color: #bfe3ff; background: rgba(60, 140, 220, 0.14); }
.ev-theory { border: 1px solid rgba(214, 140, 90, 0.6); color: #f3c9a8; background: rgba(184, 110, 60, 0.16); }
.explain a[href^="#esc-ref"] { color: var(--gold-light); font-size: 11px; vertical-align: super; text-decoration: none; margin-left: 1px; }
details.ex ol { padding-left: 20px; }
details.ex ol li { margin-bottom: 6px; font-size: 14px; line-height: 1.55; }
.timeline li { position: relative; }
.water-card { margin: 0 0 12px; border-left: 3px solid rgba(120, 200, 255, 0.6); }
.water-card p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.escape-cta p { margin: 0 0 8px; line-height: 1.55; }
.escape-cta ul { margin: 0 0 12px; padding-left: 18px; line-height: 1.55; }
.escape-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.refs li.flash { color: var(--ink); background: rgba(247, 227, 154, 0.12); border-radius: 6px; transition: background 0.4s; }
.high-vibe { margin-bottom: 14px; }
.high-vibe p { margin: 0 0 8px; line-height: 1.55; font-size: 14.5px; }
.hv-title { font: 700 16px Cinzel, serif !important; letter-spacing: 0.04em; color: var(--gold-light); margin-bottom: 8px !important; }

/* ---------- back button ---------- */
.topbar-left { display: flex; align-items: center; gap: 6px; }
.back-btn { width: 40px; height: 40px; }
.back-btn[hidden] { display: none; }
.back-btn svg { stroke-width: 2.6; }
.acct-wrap { justify-self: end; }
@media (max-width: 420px) { .topbar-title { font-size: 15px; letter-spacing: 0.08em; } }

.gear-ic { width: 23px; height: 23px; stroke-width: 1.8; stroke-linejoin: round; }
.guest-ic[hidden] { display: none; }

/* ---------- My Journey: year calendar, time of day, history ---------- */
.jr-summary { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: -4px 4px 14px; }
.jr-h h3 { margin: 0; }
.jr-range { flex: none; padding: 3px; }
.jr-range .seg-btn { padding: 6px 12px; font-size: 12px; }
.jr-cal-scroll { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.jr-cal-grid { display: grid; gap: 4px; width: max-content; }
.jr-cal-months { display: grid; grid-template-columns: repeat(var(--weeks), 12px); column-gap: 3px; font-size: 10.5px; color: var(--muted); height: 14px; }
.jr-cal-months span { white-space: nowrap; }
.jr-cal-days { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); grid-auto-columns: 12px; gap: 3px; }
.jr-cal i, .jr-cal-key i { display: block; width: 12px; height: 12px; border-radius: 3px; }
.jr-cal i.pad { visibility: hidden; }
.l0 { background: rgba(169, 182, 220, 0.12); }
.l1 { background: #6b5320; }
.l2 { background: #a07d2c; }
.l3 { background: #d4af37; }
.l4 { background: #fff0a8; }
.jr-cal-key { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.jr-cal-key span { margin: 0 4px; }
.jr-tod-row { display: grid; grid-template-columns: 116px 1fr 44px; align-items: center; gap: 10px; padding: 6px 0; }
.jr-tod-name { font-size: 13.5px; }
.jr-tod-name small { display: block; color: var(--muted); font-size: 11px; }
.jr-tod-track { height: 10px; border-radius: 99px; background: rgba(169, 182, 220, 0.12); overflow: hidden; }
.jr-tod-fill { display: block; height: 100%; border-radius: 99px; background: var(--gold-grad); }
.jr-tod-row b { text-align: right; color: var(--gold-light); font-variant-numeric: tabular-nums; font-size: 13px; }
.jr-hist { list-style: none; margin: 0; padding: 0; }
.jr-hist li { display: grid; grid-template-columns: 70px auto 1fr auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid rgba(169, 182, 220, 0.12); font-size: 13.5px; }
.jr-hist li.jr-hist-day { display: block; border: 0; padding: 12px 0 2px; color: var(--gold); font: 700 12.5px Cinzel, serif; letter-spacing: 0.04em; }
.jr-hist li.jr-hist-day:first-child { padding-top: 0; }
.jr-hist li.jr-hist-empty { display: block; color: var(--muted); border: 0; }
.jr-hist time { color: var(--muted); font-variant-numeric: tabular-nums; }
.jr-hist b { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.jr-hist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.jr-hist small { color: var(--muted); font-variant-numeric: tabular-nums; }
.jr-more { display: block; margin: 12px auto 0; }
div.jr-h { align-items: center; }

/* ---------- My Journey: Day / Week / 30 days / Year ---------- */
.jr-h-range { flex-wrap: wrap; }
.jr-h-range .jr-range { flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.jr-h-range .jr-range .seg-btn { padding: 7px 4px; }
.jr-period { margin: -2px 0 10px; color: var(--gold-light); font-size: 13px; }
.jr-scale.spread span { flex: 1; text-align: center; }
.jr-scale.spread span:first-child { text-align: left; }
.jr-scale.spread span:last-child { text-align: right; }
.jr-bar.now .jr-zero { fill: rgba(247, 227, 154, 0.55); }

/* ---------- My Playlists ---------- */
.pl-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.pl-card.playing { box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 22px rgba(247, 227, 154, 0.25); }
.pl-play {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold-grad); color: var(--navy-deep); font-size: 18px; box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.pl-info { min-width: 0; }
.pl-info b { display: block; color: var(--gold-light); font: 700 16px Cinzel, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-info small { display: block; color: var(--muted); font-size: 12.5px; margin: 2px 0 6px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-chips span { font-size: 11px; padding: 2px 7px; border-radius: 99px; border: 1px solid rgba(212, 175, 55, 0.45); color: var(--gold-light); }
.pl-actions { display: flex; flex-direction: column; align-items: flex-end; }
.pl-actions .link-btn { margin: 0; }
#plNew { margin: 4px 0 14px; }
.pl-editor h3 { margin: 0 0 12px; font: 700 18px Cinzel, serif; color: var(--gold-light); }
.pl-items { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: pl; }
.pl-items li {
  counter-increment: pl; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(169, 182, 220, 0.14);
}
.pl-item-name { grid-column: 1 / 3; font-size: 14px; }
.pl-item-name::before { content: counter(pl) '.'; color: var(--gold); font: 700 13px Cinzel, serif; margin-right: 6px; }
.pl-item-name b { color: var(--gold-light); }
.pl-item-min { display: flex; align-items: center; gap: 6px; }
.pl-item-min input { width: 64px !important; padding: 7px 8px !important; text-align: center; font-size: 16px; }
.pl-item-min span { color: var(--muted); font-size: 12.5px; }
.pl-item-min button, .pl-item-move button {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1;
  border: 1px solid rgba(212, 175, 55, 0.5); background: transparent; color: var(--gold-light);
}
.pl-item-move { display: flex; gap: 4px; justify-content: flex-end; }
.pl-item-move button:disabled { opacity: 0.3; cursor: default; }
.pl-item-move [data-act=remove] { border-color: rgba(214, 140, 90, 0.6); color: #f3c9a8; }
.pl-add { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.pl-add select { min-width: 0; width: 100%; }
.pl-min { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.pl-min input { width: 62px !important; padding: 12px 6px !important; text-align: center; }
.pl-total { color: var(--gold-light); font-size: 13.5px; margin: 10px 0 4px; }
.pl-editor-btns { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pl-now { margin-bottom: 14px; text-align: center; box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 26px rgba(247, 227, 154, 0.2); }
.pl-now-label { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; letter-spacing: 0.04em; }
.pl-now-freq { margin: 0 0 10px; font-size: 15px; }
.pl-now-freq b { font: 700 24px Cinzel, serif; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 4px; }
.pl-progress { height: 6px; border-radius: 99px; background: rgba(169, 182, 220, 0.15); overflow: hidden; }
.pl-progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width 0.9s linear; }
.pl-now-meta { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 10px; font-size: 12.5px; color: var(--muted); }
.pl-now-meta span:first-child { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.pl-now-btns { display: flex; justify-content: center; align-items: center; gap: 14px; }
.pl-now-btns .icon-btn svg { fill: var(--gold-light); stroke: var(--gold-light); stroke-width: 1.5; }
.pl-now-btns .icon-btn:disabled { opacity: 0.35; }
@media (max-width: 380px) { .pl-add { grid-template-columns: 1fr auto; } .pl-add #plAdd { grid-column: 1 / 3; } }

/* ---------- My Benefits ---------- */
.bn-intro { margin: -4px 2px 8px; }
.bn-key { font-size: 11.5px; color: var(--muted); margin: 0 2px 12px; line-height: 1.6; }
.bn-key span { color: var(--gold-light); margin-right: 4px; }
.bn-key i { font-style: normal; opacity: 0.75; }
.bn-area {
  margin-bottom: 10px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(var(--navy-2), var(--navy)) padding-box, var(--gold-grad) border-box; border: 1px solid transparent;
}
.bn-area > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; }
.bn-area > summary::-webkit-details-marker { display: none; }
.bn-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: rgba(4, 11, 32, 0.6); border: 1px solid var(--gold-dark); color: var(--gold-light); }
.bn-head b { display: block; font: 700 15px Cinzel, serif; color: var(--gold-light); }
.bn-head small { color: var(--muted); font-size: 12.5px; }
.bn-dots { display: inline-flex; gap: 4px; }
.bn-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(169, 182, 220, 0.2); }
.bn-dots i.on { background: var(--gold-grad); box-shadow: 0 0 6px rgba(247, 227, 154, 0.5); }
.bn-area > p, .bn-area > .bn-next { margin: 0 16px 12px; font-size: 14px; line-height: 1.6; }
.bn-next small { display: block; color: var(--gold-light); font-size: 12.5px; margin-top: 6px; }
.bn-preview { color: var(--muted); font-size: 13px !important; line-height: 1.55; margin: 8px 0 0; }
.bn-preview b { color: var(--ink); }
.bn-freqs { list-style: none; padding: 6px 16px; margin: 0 0 14px; }
.bn-freqs li { padding: 11px 0; border-bottom: 1px solid rgba(169, 182, 220, 0.14); }
.bn-freqs li:last-child { border-bottom: 0; }
.bn-f-top { display: flex; align-items: baseline; gap: 8px; }
.bn-f-top b { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.bn-f-top span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-badge { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid rgba(212, 175, 55, 0.5); color: var(--gold-light); white-space: nowrap; }
.bn-badge.lv4, .bn-badge.lv5 { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; }
.bn-freqs small { display: block; color: var(--muted); font-size: 12px; margin: 3px 0 6px; line-height: 1.45; }
.bn-freqs .pl-progress { height: 4px; }
.bn-freqs .bn-left { margin: 4px 0 0; color: var(--gold-light); }
.bn-empty { color: var(--muted); }
.bn-today { margin: 0 0 10px; color: var(--gold-light); font-size: 14px; }
.bn-session { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid rgba(169, 182, 220, 0.2); }
.bn-session li { position: relative; padding: 0 0 12px 8px; }
.bn-session li::before { content: ''; position: absolute; left: -26px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-deep); border: 2px solid rgba(169, 182, 220, 0.4); }
.bn-session li.reached::before { background: var(--gold-grad); border-color: var(--gold-light); box-shadow: 0 0 8px rgba(247, 227, 154, 0.55); }
.bn-session b { display: block; font-size: 14px; color: var(--gold-light); }
.bn-session li:not(.reached) b { color: var(--ink); }
.bn-session span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.bn-grow p { margin: 0 0 10px; }
.bn-grow-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; -webkit-overflow-scrolling: touch; }
.bn-grow-chips::-webkit-scrollbar { display: none; }
.bn-grow-chips .bn-suggest { flex: 1 0 110px; min-width: 110px; }
.bn-suggest { text-align: center; }
.jr-bn { list-style: none; margin: 0 0 12px; padding: 0; }
.jr-bn li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid rgba(169, 182, 220, 0.1); }
.jr-bn li b { color: var(--gold-light); font-size: 12.5px; font-weight: 600; }
.jr-benefits { text-align: left; margin-bottom: 14px; }
.jr-benefits .gold-btn { display: block; margin: 0 auto; }

/* ---------- two frequencies together ---------- */
.dial-blend { margin-top: 4px; font-size: 11.5px; color: var(--gold-light); letter-spacing: 0.04em; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blend-card select { min-width: 0; }
.blend-card .row { grid-template-columns: 120px 1fr auto; }
.blend-card .row:first-of-type { grid-template-columns: 120px 1fr; }

/* ---------- Explain: the state chain ---------- */
.state-chain { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
.state-chain li {
  position: relative; text-align: center; padding: 10px 6px; border-radius: 14px;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box; border: 1px solid transparent;
}
.state-chain li b { display: block; font: 700 13px Cinzel, serif; color: var(--gold-light); }
.state-chain li small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.state-chain li:not(:nth-child(3n))::after { content: '→'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 13px; z-index: 1; }
.state-chain li:last-child { background: var(--gold-grad); }
.state-chain li:last-child b, .state-chain li:last-child small { color: var(--navy-deep); }
.ex-note { margin: 4px 2px 18px; }
@media (min-width: 640px) { .state-chain { grid-template-columns: repeat(6, 1fr); } .state-chain li:nth-child(3)::after { content: '→'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 13px; z-index: 1; } }
details.ex.resonance p .ev { margin-left: 4px; vertical-align: 1px; }

/* ---------- nature & animal sounds ---------- */
.nat-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.nat-chip {
  cursor: pointer; text-align: center; padding: 9px 4px 8px; border-radius: 14px; color: var(--ink);
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box; border: 1px solid transparent;
}
.nat-chip .nat-ic { display: block; font-size: 22px; line-height: 1.1; }
.nat-chip b { display: block; font-size: 12px; font-weight: 600; margin-top: 3px; }
.nat-chip small { display: block; font-size: 11.5px; color: var(--gold-light); font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; }
.nat-chip.active { background: var(--gold-grad); box-shadow: 0 0 14px rgba(247, 227, 154, 0.45); }
.nat-chip.active b, .nat-chip.active small { color: var(--navy-deep); }
.nat-now { border-top: 1px solid rgba(169, 182, 220, 0.15); padding-top: 10px; margin-bottom: 8px; }
.nat-now p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--gold-light); }
.nat-now .outline-btn { display: block; margin: 8px auto 0; }
.nat-list summary { cursor: pointer; color: var(--gold-light); font-size: 13px; margin-top: 4px; }
.nat-list table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.nat-list td, .nat-list th { text-align: left; padding: 6px 4px; border-bottom: 1px solid rgba(169, 182, 220, 0.14); vertical-align: top; }
.nat-list td:nth-child(2) { white-space: nowrap; color: var(--gold-light); }
.nat-list small { color: var(--muted); }

/* top-right corner, decided before the page is drawn (js/boot.js): gear when signed in, person when not */
html[data-auth="in"] #guestIcon { display: none !important; }
html[data-auth="in"] #gearIcon { display: block !important; }
html:not([data-auth="in"]) #gearIcon { display: none !important; }
html:not([data-auth="in"]) #guestIcon { display: block !important; }

/* ---------- Frequencies Explain: drop-down sections (closed by default) ---------- */
details.ex-section {
  margin: 0 0 10px; border-radius: var(--radius);
  background: linear-gradient(var(--navy-2), var(--navy)) padding-box, var(--gold-grad) border-box; border: 1px solid transparent;
}
details.ex-section > summary {
  list-style: none; cursor: pointer; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px;
  padding: 15px 84px 15px 16px;
}
details.ex-section > summary::-webkit-details-marker { display: none; }
details.ex-section > summary > span { font: 700 16px Cinzel, serif; color: var(--gold-light); letter-spacing: 0.03em; }
details.ex-section > summary > small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
details.ex-section > summary::after {
  content: '▾'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 16px; transition: transform 0.2s;
}
details.ex-section[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
details.ex-section > summary .say-btn { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); }
details.ex-section[open] > summary { border-bottom: 1px solid rgba(212, 175, 55, 0.25); }
.ex-section-body { padding: 12px 12px 4px; }
.ex-section-body > .card, .ex-section-body > details.ex { margin-left: 0; margin-right: 0; }
.ex-section-body.ev-key { margin: 0; border: 0; background: none; box-shadow: none; padding: 12px 16px 8px; }

/* ---------- Explain: case studies ---------- */
.case-dl { display: grid; grid-template-columns: 112px 1fr; gap: 6px 12px; margin: 0 16px 14px; font-size: 14px; line-height: 1.55; }
.case-dl dt { color: var(--gold); font: 700 12.5px Cinzel, serif; letter-spacing: 0.03em; padding-top: 2px; }
.case-dl dd { margin: 0; }
.case-dl dd:last-child { color: var(--gold-light); }
@media (max-width: 420px) { .case-dl { grid-template-columns: 1fr; gap: 2px; } .case-dl dd { margin-bottom: 8px; } }

/* ---------- Explain: chakras ---------- */
details.ex.chakra-card { border-left: 4px solid var(--chakra); }
details.ex.chakra-card > summary b::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--chakra); margin-right: 8px; box-shadow: 0 0 8px var(--chakra); vertical-align: 1px; }
.chakra-cta { text-align: center; margin: 10px 0 4px; }

/* ---------- Tones: drop-down cards (closed by default) ---------- */
details.tone-drop > summary { list-style: none; cursor: pointer; position: relative; padding-right: 28px; display: block; }
details.tone-drop > summary::-webkit-details-marker { display: none; }
details.tone-drop > summary .opt-title { display: block; margin: 0; }
details.tone-drop > summary::after { content: '▾'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 16px; transition: transform 0.2s; }
details.tone-drop[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
details.tone-drop[open] > summary { margin-bottom: 10px; }
.drop-now { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.drop-now.on { color: var(--gold-light); }

/* ---------- chakra colors & frequencies ---------- */
.chakra-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.chakra-chip {
  cursor: pointer; text-align: center; padding: 10px 4px 8px; border-radius: 14px; color: var(--ink);
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, linear-gradient(135deg, var(--chakra), rgba(255,255,255,0.15)) border-box;
  border: 1.5px solid transparent;
}
.chakra-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8, var(--chakra) 55%); box-shadow: 0 0 10px var(--chakra); vertical-align: -3px; }
.chakra-chip .chakra-dot { display: block; margin: 0 auto 5px; width: 22px; height: 22px; }
.chakra-chip b { display: block; font-size: 12px; font-weight: 600; }
.chakra-chip small { display: block; font-size: 11.5px; color: var(--gold-light); font-weight: 700; margin-top: 1px; }
.chakra-chip.active { background: linear-gradient(var(--chakra), var(--chakra)) padding-box, var(--gold-grad) border-box; box-shadow: 0 0 16px var(--chakra); }
.chakra-chip.active b, .chakra-chip.active small { color: #0b0b18; }
.chakra-chip.active .chakra-dot { background: #fff; box-shadow: 0 0 12px #fff; }
.chakra-now p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--gold-light); }
.chakra-journey-row { text-align: center; margin: 4px 0 8px; }
#chakraTable small { color: var(--muted); font-size: 11px; }

/* chakra color around the dial (its own layer, so the playing glow animation doesn't hide it) */
.dial::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 0.4s; box-shadow: 0 0 34px 6px var(--chakra-glow), inset 0 0 0 3px var(--chakra-glow); }
.dial.chakra-lit::after { opacity: 1; }
.chakra-pill { margin: -2px auto 10px; width: fit-content; padding: 5px 14px 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--chakra); background: color-mix(in srgb, var(--chakra) 18%, transparent); display: flex; align-items: center; gap: 8px; }
.chakra-pill::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--chakra); box-shadow: 0 0 8px var(--chakra); }
.chakra-pill[hidden] { display: none; }
.chakra-chips { grid-template-columns: repeat(3, 1fr); }
.chakra-chip.rainbow { background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, conic-gradient(#e5484d, #ff8a3d, #f5e04a, #46c37b, #4aa8ff, #6e6bff, #b07cff, #e5484d) border-box; }
.chakra-dot.rainbow, .chakra-chip.rainbow .chakra-dot { background: conic-gradient(#e5484d, #ff8a3d, #f5e04a, #46c37b, #4aa8ff, #6e6bff, #b07cff, #e5484d); box-shadow: 0 0 10px #fff8; }
.chakra-chip.rainbow.active { background: linear-gradient(135deg, #ffe0e0, #e0f4ff, #f1e0ff) padding-box, conic-gradient(#e5484d, #ff8a3d, #f5e04a, #46c37b, #4aa8ff, #6e6bff, #b07cff, #e5484d) border-box; }
.chakra-pill.rainbow { border-image: none; background: linear-gradient(90deg, #e5484d33, #f5e04a33, #46c37b33, #4aa8ff33, #b07cff33); }
.chakra-pill.rainbow::before { background: conic-gradient(#e5484d, #ff8a3d, #f5e04a, #46c37b, #4aa8ff, #6e6bff, #b07cff, #e5484d); }
.chakra-journey-row small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
#chakraTable td:first-child { color: var(--muted); width: 22px; }

/* ── Chakra Journey Builder ──────────────────────────────────────── */
.chakra-journey-builder { margin: 12px 0 4px; padding: 14px; background: var(--navy-2); border-radius: 14px; border: 1px solid var(--border); }
.cjb-title { font-size: 13.5px; font-weight: 700; color: var(--gold); margin: 0 0 4px; }
.cjb-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.cjb-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 6px;
  border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--chakra) 40%, transparent);
  background: color-mix(in srgb, var(--chakra) 8%, var(--navy-2)); cursor: pointer;
  font-size: 11px; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.cjb-chip b { font-size: 11.5px; line-height: 1.2; text-align: center; }
.cjb-chip small { color: var(--muted); font-size: 10px; }
.cjb-chip .chakra-dot { width: 10px; height: 10px; margin-bottom: 2px; }
.cjb-chip.selected { border-color: var(--chakra); background: color-mix(in srgb, var(--chakra) 22%, var(--navy-2));
  box-shadow: 0 0 8px color-mix(in srgb, var(--chakra) 35%, transparent); }
.cjb-chip.rainbow { border-image: conic-gradient(#e5484d,#ff8a3d,#f5e04a,#46c37b,#4aa8ff,#6e6bff,#b07cff,#e5484d) 1; border-radius: 10px; }
.cjb-chip.rainbow.selected { background: linear-gradient(135deg,#ffe0e022,#e0f4ff22,#f1e0ff22); }
.cjb-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.cjb-label { font-size: 12.5px; color: var(--muted); flex: 1; }
.cjb-mins { width: 60px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--navy-1); color: var(--ink); font-size: 13px; text-align: center; }
.cjb-actions { gap: 6px; flex-wrap: wrap; }
.cjb-actions .outline-btn { flex: 1; min-width: 80px; font-size: 11.5px; padding: 6px 8px; }
#cjbCreate { margin-top: 10px; }

/* ---------- make your own frequency ---------- */
.cf-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; margin: 6px 0 8px; }
.cf-ear { display: block; }
.cf-ear span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.cf-ear input { width: 100%; padding: 12px 10px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.5); background: var(--navy-deep); color: var(--gold-light); font: 700 22px Cinzel, serif; text-align: center; }
.cf-ear small { display: block; text-align: center; color: var(--muted); font-size: 11px; margin-top: 3px; }
.cf-same { width: 38px; height: 38px; margin-bottom: 26px; border-radius: 50%; cursor: pointer; border: 1px solid var(--gold-dark); background: transparent; color: var(--gold-light); font-size: 18px; }
.cf-info { margin: 0 0 10px; font-size: 13.5px; color: var(--gold-light); text-align: center; line-height: 1.45; }
.cf-play-row { text-align: center; margin: 0 0 6px; }
.cf-play-row .gold-btn:disabled { opacity: 0.45; }
.cf-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.cf-presets button { cursor: pointer; text-align: left; padding: 10px 12px; border-radius: 14px; color: var(--ink); background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box; border: 1px solid transparent; }
.cf-presets b { display: block; font: 700 14px Cinzel, serif; color: var(--gold-light); }
.cf-presets small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ---------- Frequency Library ---------- */
.library .search { margin-bottom: 10px; }
.lib-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; scrollbar-width: none; }
.lib-cat { flex: none; cursor: pointer; padding: 7px 12px; border-radius: 999px; font: 600 12px Inter, sans-serif; color: var(--gold-light); background: transparent; border: 1px solid rgba(212, 175, 55, 0.5); white-space: nowrap; }
.lib-cat.active { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; }
.lib-count { margin: 2px 2px 8px; }
.lib-group { margin-top: 18px; }
details.ex.lib-item > summary { display: grid; grid-template-columns: 40px 64px 1fr; gap: 10px; align-items: center; padding-right: 36px; }
details.ex.lib-item > summary .say-btn { display: none; }
.lib-play { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--gold-grad); color: var(--navy-deep); font-size: 14px; box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35); }
.lib-play.on { box-shadow: 0 0 0 2px var(--gold-light), 0 0 14px rgba(247, 227, 154, 0.6); }
.lib-hz { font: 700 17px Cinzel, serif; color: var(--gold-light); text-align: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lib-hz small { display: block; font: 500 10.5px Inter, sans-serif; color: var(--muted); margin-top: 2px; }
.lib-name b { display: block; font: 700 14.5px Cinzel, serif !important; color: var(--gold-light); }
.lib-name small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.lib-body { padding: 0 0 4px; }
.lib-ev { margin: 0 16px 8px; }

/* ---------- Meditations ---------- */
.med-card { margin-bottom: 12px; }
.med-card.playing { box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 22px rgba(247, 227, 154, 0.25); }
.med-top { display: flex; gap: 12px; align-items: center; }
.med-ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(4, 11, 32, 0.6); border: 1px solid var(--gold-dark); }
.med-head h3 { margin: 0; font: 700 17px Cinzel, serif; color: var(--gold-light); }
.med-head .free-pill { font: 700 10px Inter, sans-serif; vertical-align: 3px; }
.med-sound { margin: 3px 0 0; font-size: 12px; color: var(--gold-light); opacity: 0.85; }
.med-what { margin: 10px 0; font-size: 14px; line-height: 1.5; }
.med-lens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.med-len { cursor: pointer; padding: 8px 0; border-radius: 999px; font: 600 12.5px Inter, sans-serif; color: var(--gold-light); background: transparent; border: 1px solid rgba(212, 175, 55, 0.5); }
.med-len.active { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; }
.med-start { display: block; width: 100%; }
.med-steps summary { cursor: pointer; color: var(--gold-light); font-size: 13px; margin-top: 10px; }
.med-steps ol { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
.med-steps li { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(169, 182, 220, 0.1); }
.med-steps li b { min-width: 42px; color: var(--gold); font-variant-numeric: tabular-nums; }
.med-now { text-align: center; margin-bottom: 14px; box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 26px rgba(247, 227, 154, 0.2); }
.med-now-title { margin: 0; font: 700 16px Cinzel, serif; color: var(--gold-light); }
.med-now-stage { margin: 4px 0 10px; color: var(--muted); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.med-now-line { min-height: 3em; margin: 0 4px 12px; font-size: 16px; line-height: 1.5; font-style: italic; }
.med-now-time { margin: 6px 0 10px; font-size: 13px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.med-now-btns { display: flex; gap: 10px; justify-content: center; }
.med-intro .row.check { margin-top: 0; }
.med-guide { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 10px 0 4px; }
.med-guide > span { font-size: 14px; }
.med-guide .seg-btn { padding: 8px 6px; font-size: 13px; }

/* ---------- AI Frequency Guide ---------- */
.gd-step { position: relative; margin-bottom: 14px; }
.gd-step h3 { margin: 0 0 6px; font: 700 17px Cinzel, serif; color: var(--gold-light); padding-right: 36px; }
.gd-num { position: absolute; right: 14px; top: 12px; margin: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--navy-deep); font: 700 14px Cinzel, serif; }
.gd-mic { display: block; margin: 14px auto 6px; width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer; font-size: 38px; background: var(--gold-grad); box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4); }
.gd-mic.on { animation: glow 1.6s ease-in-out infinite; box-shadow: 0 0 0 6px rgba(247, 227, 154, 0.25), 0 0 34px rgba(247, 227, 154, 0.6); }
.gd-mic-label { text-align: center; margin: 0; color: var(--gold-light); font-size: 13.5px; }
.gd-live { text-align: center; margin: 4px 0 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.gd-voice { text-align: center; border-top: 1px solid rgba(169, 182, 220, 0.15); padding-top: 10px; margin: 6px 0 12px; }
.gd-voice p { margin: 0 0 8px; line-height: 1.5; font-size: 14px; }
.gd-hz { font: 700 34px Cinzel, serif !important; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 !important; }
.gd-goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0 12px; }
.gd-goals button { cursor: pointer; padding: 10px 8px; border-radius: 12px; font: 600 13px Inter, sans-serif; color: var(--ink); background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box; border: 1px solid transparent; }
.gd-goals button.active { background: var(--gold-grad); color: var(--navy-deep); }
.gd-step .field { display: block; margin-top: 8px; }
.gd-step .field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.gd-step textarea, .gd-step input { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.45); background: var(--navy-deep); color: var(--ink); font: 16px Inter, sans-serif; }
.gd-create { margin-bottom: 6px; }
.gd-plan { margin-top: 10px; box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 26px rgba(247, 227, 154, 0.2); }
.gd-kicker { margin: 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.gd-plan h3 { margin: 4px 0 8px; font: 700 20px Cinzel, serif; color: var(--gold-light); }
.gd-plan p { line-height: 1.55; }
.gd-sound { color: var(--gold-light); font-weight: 600; }
.gd-stages { padding-left: 18px; margin: 10px 0; }
.gd-stages li { margin-bottom: 8px; }
.gd-stages b { display: block; color: var(--gold-light); font-size: 13.5px; }
.gd-stages span { color: var(--muted); font-size: 13px; font-style: italic; }
.gd-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.gd-crisis { font-size: 15px; line-height: 1.6; padding: 12px; border-radius: 12px; background: rgba(74, 168, 255, 0.12); border: 1px solid rgba(74, 168, 255, 0.4); }
.med-explain p { font-size: 13.5px; line-height: 1.55; margin: 8px 0; }
.dim-list { padding-left: 4px; list-style: none; margin: 6px 0; font-size: 13px; line-height: 1.5; }
.dim-list li { padding: 3px 0; border-bottom: 1px solid rgba(169, 182, 220, 0.1); }
.dim-list b { color: var(--gold-light); display: inline-block; min-width: 36px; }

/* ---------- prose pages as drop-downs (Terms, Privacy, About, Devices) ---------- */
.prose .ex-section-body p { margin: 0 0 10px; line-height: 1.6; font-size: 14.5px; }
.prose .ex-section-body b { color: var(--gold-light); font-weight: 600; }
.prose .ex-section-body { padding: 12px 16px 6px; }
.prose details.ex-section { margin-bottom: 10px; }
[data-view="benefits"] details.ex-section, [data-view="journey"] details.ex-section { margin: 14px 0; }
[data-view="benefits"] .ex-section-body > .card, [data-view="journey"] .ex-section-body > .card { margin: 0; }

/* ---------- My Favorites ---------- */
.fav-btn {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(212, 175, 55, 0.55); background: rgba(10, 20, 50, 0.4);
  color: var(--gold-light); font-size: 17px; line-height: 1; transition: transform 0.12s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.fav-btn.on { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; box-shadow: 0 0 12px rgba(247, 227, 154, 0.45); }
.fav-btn:active { transform: scale(0.88); }
details.ex.lib-item > summary { grid-template-columns: 40px 64px 1fr 32px; }
.hfe-title .fav-btn { width: 28px; height: 28px; font-size: 15px; }
.fav-card { display: grid; grid-template-columns: 48px 1fr 32px; gap: 12px; align-items: center; margin-bottom: 12px; }
.fav-card.playing { box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 22px rgba(247, 227, 154, 0.25); }
.fav-info { min-width: 0; }
.fav-info b { display: block; color: var(--gold-light); font: 700 16px Cinzel, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-info small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.fav-empty-heart { font-size: 40px; color: var(--gold-light); margin: 4px 0 0; }

/* ---------- Settings drop-downs ---------- */
[data-view="settings"] details.set-drop { margin: 0 0 10px; }
[data-view="settings"] details.set-drop > summary { padding-right: 44px; }
[data-view="settings"] .set-drop .ex-section-body { padding: 4px 4px 4px; }
[data-view="settings"] .set-drop .ex-section-body > .card { margin: 0; background: none; border-color: transparent; box-shadow: none; }
[data-view="settings"] details.set-drop.danger > summary > span { color: #f3bf98; }

/* ---------- Retune Music: play with your music app ---------- */
.ma-title { margin: 0 0 4px; font: 700 17px Cinzel, serif; color: var(--gold-light); }
.ma-now { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.ma-now small { display: block; color: var(--muted); font-size: 12px; }
.ma-now b { display: block; color: var(--gold-light); font: 700 16px Cinzel, serif; }
.ma-now #maState.on { color: #7ee8a2; }
.ma-change { font-size: 12px; }
.ma-vol { gap: 10px; }
.ma-vol input { flex: 1; }
.ma-vol output { min-width: 38px; text-align: right; color: var(--muted); font-size: 12.5px; }
.ma-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.ma-app {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px; cursor: pointer; border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55); background: rgba(10, 20, 50, 0.45); color: var(--gold-light);
  font: 600 13.5px Inter, sans-serif; text-align: left;
}
.ma-app:active { transform: scale(0.97); }
.ma-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-deep); font-size: 13px; flex: none; }

/* Sign out — last item in the menu */
.nav-item.nav-signout { margin-top: 10px; border-top: 1px solid rgba(212, 175, 55, 0.25); padding-top: 14px; color: #f3bf98; }

/* ---------- Pause your subscription (1–12 months) ---------- */
.pause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 10px; }
.pause-mo {
  padding: 12px 4px; border-radius: 12px; cursor: pointer; font: 700 12.5px Inter, sans-serif;
  color: var(--gold-light); background: rgba(10, 20, 50, 0.55); border: 1px solid rgba(212, 175, 55, 0.5);
  -webkit-tap-highlight-color: transparent;
}
.pause-mo.on { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; box-shadow: 0 0 14px rgba(247, 227, 154, 0.45); }
.pause-sel { margin: 4px 2px 12px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.pause-done p { margin: 6px 0; line-height: 1.5; }
.pause-done-ic { font-size: 34px; color: var(--gold-light); margin: 0 !important; }
.paused-note { margin-top: 10px; padding: 12px; border-radius: 12px; text-align: center; color: var(--ink); background: rgba(4, 11, 32, 0.6); border: 1px solid rgba(212, 175, 55, 0.45); font-size: 13px; line-height: 1.5; }
.paused-note .gold-btn { margin-top: 10px; }
.paused-err { color: #f3bf98; margin: 8px 0 0; }
.lib-song-btn { margin-bottom: 10px; }
#songWhere:empty { display: none; }

/* Navigation drawer categories */
.nav-cat {
  margin: 14px 12px 2px; font: 700 11px Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); opacity: 0.85;
}
.drawer-nav .nav-cat:first-child { margin-top: 0; }

/* Privacy page → Terms of Use part */
.terms-title { margin-top: 28px; scroll-margin-top: 76px; }
.terms-sub { margin: -4px 2px 12px; }

/* drawer icons drawn as SVG (Settings gear, Privacy lock) line up with their labels */
.nav-ic svg { display: block; margin: 0 auto; }

/* My Favorites: keep or delete */
.fav-del {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer; border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5); background: rgba(10, 20, 50, 0.45); color: var(--gold-light);
  -webkit-tap-highlight-color: transparent;
}
.fav-card.asking .fav-del { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; }
.fav-card { grid-template-columns: 48px 1fr 34px; }
.fav-ask { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(212, 175, 55, 0.2); }
.fav-ask span { flex: 1 1 100%; color: var(--ink); font-size: 13.5px; }
.fav-ask .pill-btn.sm { padding: 8px 18px; font-size: 13px; }
.fav-ask-all { display: flex; }
.fav-clear { display: block; margin: 6px auto 12px; color: #f3bf98; }

/* My Benefits: read aloud */
.bn-listen { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -6px 0 14px; color: var(--gold-light); font: 600 13.5px Inter, sans-serif; }
.bn-area > summary { grid-template-columns: 40px 1fr auto auto; }
.bn-area > summary .say-btn { position: static; }
.bn-grow.bn-grow-say { position: relative; }
.bn-grow.bn-grow-say > p { padding-right: 44px; }
.bn-grow > .say-btn { position: absolute; top: 14px; right: 14px; }

/* Encyclopedia → Full Frequency Breakdown: read aloud */
.hfe-det-listen { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; color: var(--gold-light); font: 600 13px Inter, sans-serif; }
.hfe-sec-head { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
.hfe-sec-head .say-btn { flex: none; }
/* My Benefits → Keep growing: the suggestion that is playing */
.bn-suggest.active { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; }
.bn-suggest.active small { color: var(--navy-deep); }

/* drawer shortcuts land just below the top bar */
details.tone-drop { scroll-margin-top: 78px; }

/* Meditations: each one is a drop-down (closed by default) */
details.med-card > summary.med-top { list-style: none; cursor: pointer; position: relative; padding-right: 30px; }
details.med-card > summary.med-top::-webkit-details-marker { display: none; }
details.med-card > summary.med-top::after { content: '▾'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 16px; transition: transform 0.2s; }
details.med-card[open] > summary.med-top::after { transform: translateY(-50%) rotate(180deg); }
details.med-card[open] > summary.med-top { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
.med-body { padding-top: 6px; }
.med-on { font: 700 11px Inter, sans-serif; color: #7ee8a2; letter-spacing: 0.04em; vertical-align: middle; }
details.med-intro > summary { margin-bottom: 0; }
details.med-intro[open] > summary { margin-bottom: 10px; }

/* Meditation player: timer, what is happening now, milestones */
.med-now-clock { margin: 6px 0 0; font: 700 40px Cinzel, serif; line-height: 1.1; font-variant-numeric: tabular-nums; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.med-now-stage { color: var(--gold-light) !important; }
.med-now-reached {
  margin: 0 auto 12px; padding: 8px 14px; max-width: 360px; border-radius: 999px;
  background: var(--gold-grad); color: var(--navy-deep); font: 700 14px Inter, sans-serif; animation: mmIn 0.6s ease-out;
}
@keyframes mmIn { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
.med-miles { list-style: none; margin: 4px 0 14px; padding: 10px 12px; text-align: left; border-radius: 12px; background: rgba(4, 11, 32, 0.45); border: 1px solid rgba(212, 175, 55, 0.2); }
.med-miles li { display: flex; gap: 12px; align-items: baseline; padding: 5px 0; font-size: 13.5px; color: var(--muted); }
.med-miles .mm-t { flex: none; width: 44px; font-variant-numeric: tabular-nums; color: var(--muted); }
.med-miles li.done .mm-x { color: var(--gold-light); }
.med-miles li.now { color: var(--ink); font-weight: 700; }
.med-miles li.now .mm-t { color: var(--gold-light); }
.med-miles li.now .mm-x::before { content: '● '; color: #7ee8a2; }
@media (prefers-reduced-motion: reduce) { .med-now-reached { animation: none; } }

/* ---------- My Favorites: listening goals ---------- */
.fav-goal-add { grid-column: 1 / -1; justify-self: start; margin: 2px 0 0 60px; font-size: 13px; }
.fav-goal, .fav-goal-form { grid-column: 1 / -1; margin-top: 4px; padding: 12px; border-radius: 12px; background: rgba(4, 11, 32, 0.45); border: 1px solid rgba(212, 175, 55, 0.25); }
.fav-goal.won { border-color: rgba(247, 227, 154, 0.7); box-shadow: 0 0 18px rgba(247, 227, 154, 0.18); }
.fg-head span { display: block; color: var(--gold-light); font: 700 14px Inter, sans-serif; }
.fg-head small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 8px; }
.fg-count { margin: 6px 0 2px; font-size: 13px; color: var(--ink); }
.fg-count b, .fg-left b { color: var(--gold-light); font: 700 16px Cinzel, serif; }
.fg-left { margin: 2px 0; font-size: 13px; color: var(--ink); }
.fg-today { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); }
.fg-today.ok { color: #7ee8a2; }
.fg-won { margin: 6px 0; color: var(--gold-light); font-weight: 700; font-size: 14px; }
.fg-reset { margin: 4px 0 6px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; color: #f3bf98; background: rgba(243, 191, 152, 0.08); }
.fg-cal { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 8px 0 4px; }
.fg-cal i, .fg-legend i { display: block; aspect-ratio: 1; border-radius: 4px; background: rgba(169, 182, 220, 0.12); }
.fg-legend i { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin: 0 3px 0 8px; }
.fg-legend i:first-child { margin-left: 0; }
i.fc-done { background: var(--gold-grad); box-shadow: 0 0 5px rgba(247, 227, 154, 0.45); }
i.fc-missed { background: rgba(243, 191, 152, 0.35); }
i.fc-today { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold-light); }
i.fc-before { opacity: 0.35; }
.fg-legend { margin: 2px 0 6px; font-size: 11.5px; color: var(--muted); }
.fg-btns { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; align-items: center; margin-top: 6px; }
.fg-btns .link-btn { font-size: 13px; }
.fg-remove { color: #f3bf98; }
.fav-goal-form .opt-title { margin-bottom: 10px; }
.fg-type { margin-bottom: 10px; }
.fg-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 13.5px; color: var(--ink); flex-wrap: wrap; }
.fg-row > span { flex: 0 0 100%; color: var(--muted); }
.fg-row select, .fg-row input[type=date] { flex: 1 1 140px; }
.fg-row input, .fg-row select {
  padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, 0.45); background: var(--navy-deep); color: var(--ink); font: 500 14px Inter, sans-serif;
}
.fg-row input[type=number] { width: 72px; }
.fg-row em { color: var(--muted); font-style: normal; }
.fg-notify { margin-top: 6px; }
.fg-hint { margin: 6px 0 4px; font-size: 12.5px; }

/* the celebration */
.goal-win { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 18, 0.78); backdrop-filter: blur(4px); animation: gwFade 0.4s ease-out; }
.goal-win-card {
  width: min(420px, 100%); padding: 26px 22px 18px; text-align: center; border-radius: 22px;
  background: linear-gradient(var(--navy-2), var(--navy)) padding-box, var(--gold-grad) border-box; border: 2px solid transparent;
  box-shadow: 0 0 60px rgba(247, 227, 154, 0.25); animation: gwPop 0.5s cubic-bezier(.2, 1.4, .4, 1);
}
.goal-win-burst { font-size: 34px; letter-spacing: 8px; margin-bottom: 4px; }
.goal-win h2 { margin: 0 0 10px; font: 900 30px Cinzel, serif; }
.goal-win p { color: var(--ink); line-height: 1.6; margin: 0 0 10px; }
.goal-win-what b { color: var(--gold-light); }
.goal-win-sub { font: 700 18px Cinzel, serif; color: var(--gold-light) !important; margin: 4px 0 16px !important; }
.goal-win .link-btn { display: block; margin: 10px auto 0; }
@keyframes gwFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gwPop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .goal-win, .goal-win-card { animation: none; } }

/* Meditation: guide voices and volume */
.mg-title { margin: 14px 0 6px; color: var(--gold-light); font: 700 13px Inter, sans-serif; letter-spacing: 0.04em; }
.mg-title small { color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.mg-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mg-btn {
  position: relative; cursor: pointer; padding: 10px 6px 9px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.5); background: rgba(10, 20, 50, 0.5); color: var(--gold-light);
  -webkit-tap-highlight-color: transparent;
}
.mg-btn b { display: block; font: 700 14px Cinzel, serif; }
.mg-btn small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.mg-btn .mg-play { position: absolute; top: 5px; right: 7px; font-size: 10px; opacity: 0.8; }
.mg-btn.active { background: var(--gold-grad); color: var(--navy-deep); border-color: transparent; box-shadow: 0 0 14px rgba(247, 227, 154, 0.35); }
.mg-btn.active small { color: var(--navy-deep); }
.med-vols { margin: 4px 0 6px; }
.med-vol { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13.5px; color: var(--ink); }
.med-vol span { flex: 0 0 116px; }
.med-vol input { flex: 1; }
.med-vol output { flex: 0 0 40px; text-align: right; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.med-now .med-vols { text-align: left; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(4, 11, 32, 0.45); border: 1px solid rgba(212, 175, 55, 0.2); }
.kids-pill { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 700 10.5px Inter, sans-serif; letter-spacing: 0.04em; color: var(--navy-deep); background: linear-gradient(135deg, #ffd6f0, #c9b8ff 50%, #a8e6ff); }

#brainGroup, #solGroup { scroll-margin-top: 78px; } /* the menu shortcuts land just below the top bar */

/* ---------- separate pages built from the Tones player ---------- */
.view[data-view="home"] .tabs { display: none; } /* Tones and Retune Music are separate pages now */
body:not([data-route="tones"]) .view[data-view="home"] .brand { display: none; }
.tp-head { margin-top: 4px; }
body[data-route="brainwaves"] #panel-tones .tp-sol, body[data-route="brainwaves"] #panel-tones .tp-own, body[data-route="brainwaves"] #panel-tones .tp-chakra, body[data-route="brainwaves"] #panel-tones .tp-nature, body[data-route="brainwaves"] #panel-tones .tp-blend,
body[data-route="solfeggio"] #panel-tones .tp-brain, body[data-route="solfeggio"] #panel-tones .tp-own, body[data-route="solfeggio"] #panel-tones .tp-chakra, body[data-route="solfeggio"] #panel-tones .tp-nature, body[data-route="solfeggio"] #panel-tones .tp-blend,
body[data-route="chakras"] #panel-tones .tp-brain, body[data-route="chakras"] #panel-tones .tp-sol, body[data-route="chakras"] #panel-tones .tp-own, body[data-route="chakras"] #panel-tones .tp-nature, body[data-route="chakras"] #panel-tones .tp-blend { display: none !important; }
/* on its own page the chakra section is the page itself, not a drop-down */
body[data-route="chakras"] #chakraDrop > summary { display: none; }
body[data-route="chakras"] #chakraDrop { padding-top: 16px; }
.group-more { margin-left: 2px; color: var(--gold-light); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(247, 227, 154, 0.5); }
.group-more:hover { border-bottom-color: var(--gold-light); }

/* Nature & Animal Sounds on its own page */
body[data-route="nature"] #panel-tones .tp-brain, body[data-route="nature"] #panel-tones .tp-sol, body[data-route="nature"] #panel-tones .tp-own, body[data-route="nature"] #panel-tones .tp-chakra, body[data-route="nature"] #panel-tones .tp-blend { display: none !important; }
body[data-route="nature"] #natDrop > summary { display: none; }
body[data-route="nature"] #natDrop { padding-top: 16px; }

/* My Favorites: smaller buttons, slimmer cards */
.fav-card { grid-template-columns: 36px 1fr 28px; gap: 10px; padding-top: 10px; padding-bottom: 10px; margin-bottom: 8px; }
.fav-card .pl-play { width: 36px; height: 36px; font-size: 13px; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3); }
.fav-card .fav-del { width: 28px; height: 28px; }
.fav-card .fav-del svg { width: 14px; height: 14px; }
.fav-info b { font-size: 14.5px; }
.fav-info small { font-size: 11.5px; margin-top: 1px; }
.fav-goal-add { margin-left: 46px; font-size: 12px; }
.fav-goal, .fav-goal-form { padding: 10px; }
.fav-ask .pill-btn.sm { padding: 6px 14px; font-size: 12px; }

/* My Meditation Goal: the AI guide's goal step on its own page */
body[data-route="goal"] .gd-step-feel { display: none; }
body[data-route="goal"] .gd-step-goal .gd-num { display: none; }

/* Nature Sounds / Animal Sounds pages (each shows only its own group) */
body[data-route="naturesounds"] #panel-tones .tp-brain, body[data-route="naturesounds"] #panel-tones .tp-sol, body[data-route="naturesounds"] #panel-tones .tp-own, body[data-route="naturesounds"] #panel-tones .tp-chakra, body[data-route="naturesounds"] #panel-tones .tp-blend,
body[data-route="animalsounds"] #panel-tones .tp-brain, body[data-route="animalsounds"] #panel-tones .tp-sol, body[data-route="animalsounds"] #panel-tones .tp-own, body[data-route="animalsounds"] #panel-tones .tp-chakra, body[data-route="animalsounds"] #panel-tones .tp-blend,
body[data-route="naturesounds"] .nat-g-animal, body[data-route="naturesounds"] #natTable tr[data-group="animal"],
body[data-route="animalsounds"] .nat-g-nature, body[data-route="animalsounds"] #natTable tr[data-group="nature"] { display: none !important; }
body[data-route="naturesounds"] #natDrop > summary, body[data-route="animalsounds"] #natDrop > summary { display: none; }
body[data-route="naturesounds"] #natDrop, body[data-route="animalsounds"] #natDrop { padding-top: 16px; }
/* drawer sub-menu */
.nav-parent { position: relative; }
.nav-caret { margin-left: auto; color: var(--gold); font-size: 14px; transition: transform 0.2s; }
.nav-parent.open .nav-caret { transform: rotate(180deg); }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 0 0 4px 22px; padding-left: 10px; border-left: 1px solid rgba(212, 175, 55, 0.3); }
.nav-sub[hidden] { display: none; }
.nav-sub .nav-item { padding-top: 10px; padding-bottom: 10px; font-size: 0.95em; }

.guest-bar { display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(212,175,55,0.12); border-top: 1px solid rgba(212,175,55,0.3); padding: 7px 16px; font-size: 13px; color: var(--gold-light); position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; }
.guest-bar-btn { background: none; border: 1px solid var(--gold); color: var(--gold-light); border-radius: 999px; padding: 4px 14px; font-size: 12px; font-family: inherit; cursor: pointer; }
.guest-bar-btn:active { opacity: 0.7; }
body[data-route="welcome"] .guest-bar { display: none; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px max(8px, env(safe-area-inset-left)) calc(env(safe-area-inset-bottom) + 6px);
  background: linear-gradient(180deg, rgba(10, 26, 68, 0.96), rgba(4, 11, 32, 0.98));
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.tb-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 6px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: rgba(247, 227, 154, 0.72); font: 600 10px Inter, sans-serif; letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.tb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-btn svg .fill { fill: currentColor; }
.tb-btn.on {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.13);
  border: 1px solid rgba(212, 175, 55, 0.28);
}
.tb-btn.on svg { filter: drop-shadow(0 0 6px rgba(247, 227, 154, 0.55)); }
.tb-btn.on span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tb-btn:hover:not(.on) { background: rgba(212, 175, 55, 0.07); }
.tb-btn:active { transform: scale(0.91); }
body[data-route="welcome"] .tabbar { display: none; }
/* keep everything else clear of the tab bar */
.app { padding-bottom: calc(env(safe-area-inset-bottom) + 78px); } /* just clear of the tab bar */
body:has(#nowPlaying:not([hidden])) .app { padding-bottom: calc(env(safe-area-inset-bottom) + 160px); } /* room for the now-playing bar too */
.now-playing { bottom: calc(env(safe-area-inset-bottom) + 80px); }
.toast { bottom: calc(env(safe-area-inset-bottom) + 150px); }

/* Meditations: compact cards, so more fit on the screen */
details.med-card { margin-bottom: 8px; padding-top: 10px; padding-bottom: 10px; }
details.med-card .med-top { gap: 10px; }
details.med-card .med-ic { width: 34px; height: 34px; font-size: 16px; }
details.med-card .med-head h3 { font-size: 14.5px; line-height: 1.25; }
details.med-card .med-head .kids-pill, details.med-card .med-head .free-pill { font-size: 9.5px; padding: 1px 6px; }
details.med-card .med-sound { font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.med-card[open] .med-sound { white-space: normal; } /* the full list of sounds when opened */
details.med-card > summary.med-top::after { font-size: 13px; }
details.med-card .med-head { min-width: 0; flex: 1; }

/* ---------- compact sizing across the app (matches the meditation cards) ---------- */
/* drop-down rows: Settings, My Journey, Learn, Encyclopedia, tones */
details.ex { margin-bottom: 8px; }
details.ex > summary { padding-top: 10px; padding-bottom: 10px; }
details.ex > summary b { font-size: 14.5px; }
details.ex-section > summary { padding-top: 11px; padding-bottom: 11px; }
details.ex-section > summary > span { font-size: 14.5px; }
/* playlists & favorites */
.pl-card { grid-template-columns: 36px 1fr auto; gap: 10px; margin-bottom: 8px; padding-top: 10px; padding-bottom: 10px; }
.pl-play { width: 36px; height: 36px; font-size: 13px; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3); }
.pl-info b { font-size: 14.5px; }
/* library (all frequencies) */
details.ex.lib-item > summary { grid-template-columns: 34px 56px 1fr 32px; gap: 8px; }
.lib-play { width: 34px; height: 34px; font-size: 12px; }
.lib-hz { font-size: 15px; }
.lib-name b { font-size: 13.5px !important; }
/* encyclopedia */
.hfe-card { padding: 10px 14px; margin-bottom: 8px; }
.hfe-top { gap: 10px; }
.hfe-play { width: 38px; height: 38px; }
.hfe-play svg { width: 17px; height: 17px; }
.hfe-hz { font-size: 19px; }
.hfe-name { font-size: 14px; }
/* My Benefits */
.bn-area { margin-bottom: 8px; }
.bn-area > summary { grid-template-columns: 34px 1fr auto auto; padding: 9px 12px; }
.bn-ic { width: 34px; height: 34px; font-size: 16px; }
.bn-head b { font-size: 14px; }
.bn-head small { font-size: 11.5px; }
/* tone chips */
.chip { padding: 8px 5px 7px; border-radius: 12px; }
.chip b { font-size: 16px; }
.chip small { font-size: 10.5px; margin-top: 2px; }
/* navigation drawer */
.nav-item { padding: 10px 12px; gap: 12px; font-size: 14.5px; }
.nav-ic { font-size: 16px; }
/* buttons */
.gold-btn { font-size: 14.5px; }
.pill-btn { padding: 9px 18px; font-size: 13.5px; }
.gd-goals button { padding: 9px 8px; font-size: 12.5px; }
details.ex-section > summary { padding-top: 9px; padding-bottom: 9px; }
details.ex-section > summary > small { font-size: 11.5px; }
[data-view="settings"] details.set-drop { margin: 0 0 8px; }
.jr-tiles { gap: 8px; }
.jr-tile { padding: 9px 8px 8px; border-radius: 14px; }
.jr-tile b { font-size: 21px; }
.jr-tile small { font-size: 11px; margin-top: 2px; }

/* main page: Make Your Own Frequency, Chakras and Nature & Animal Sounds live on their own pages only */
body[data-route="tones"] #panel-tones .tp-own, body[data-route="tones"] #panel-tones .tp-chakra, body[data-route="tones"] #panel-tones .tp-nature { display: none !important; }
/* Make Your Own Frequency on its own page */
body[data-route="ownfreq"] #panel-tones .tp-brain, body[data-route="ownfreq"] #panel-tones .tp-sol, body[data-route="ownfreq"] #panel-tones .tp-chakra, body[data-route="ownfreq"] #panel-tones .tp-nature, body[data-route="ownfreq"] #panel-tones .tp-blend { display: none !important; }
body[data-route="ownfreq"] #cfDrop > summary { display: none; }
body[data-route="ownfreq"] #cfDrop { padding-top: 16px; }
/* main page: smaller dial, play button and tone chips */
.dial { width: min(214px, 58vw); }
.play-btn:not(.small) { width: 60px; height: 60px; margin-bottom: 18px; }
.play-btn:not(.small) svg { width: 27px; height: 27px; }
.chips { gap: 6px; margin-bottom: 14px; }
.chip { padding: 6px 4px 6px; border-radius: 11px; }
.chip b { font-size: 15px; }
.chip small { font-size: 10px; margin-top: 1px; }
#brainChips .chip small { line-height: 1.2; min-height: 2.4em; }
.dial-hz { font-size: clamp(40px, 12vw, 52px); }
.dial-unit { font-size: 14px; }
.dial-name { font-size: 11.5px; margin-top: 4px; }
.dial-readout { transform: translateY(-10px); }
/* top bar: back button + title only — Settings and Log in live in the bottom tab bar */
.topbar .acct-wrap { visibility: hidden; pointer-events: none; }
.med-head .free-pill, .med-head .kids-pill { display: inline-block; white-space: nowrap; vertical-align: 2px; }

/* ---------- profile photo ---------- */
.avatar-lg, .avatar-sm { position: relative; overflow: hidden; }
.avatar-lg .av-photo, .avatar-sm .av-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av-card { margin-bottom: 8px; }
.av-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.av-big { position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--navy-deep); font: 900 30px Cinzel, serif; box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(0, 0, 0, 0.45); }
.av-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.av-upload { cursor: pointer; display: inline-block; }
.av-remove { margin-left: 0; padding-left: 2px; color: #f3bf98; }
.av-hint { font-size: 12px; margin: 6px 0 0; }
.tb-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--gold); }
.tb-btn.on .tb-av { box-shadow: 0 0 0 2px var(--gold-light); }
/* Frequency Library: play · Hz · name · speaker · heart */
details.ex.lib-item > summary { grid-template-columns: 34px 50px minmax(0, 1fr) 28px 30px; gap: 7px; }
details.ex.lib-item > summary .say-btn.lib-say { display: inline-grid; position: static; transform: none; justify-self: center; }
/* Welcome page: what's inside, in numbers */
.wl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin: -4px auto 18px; }
.wl-stats a { display: block; text-align: center; text-decoration: none; color: var(--muted); font-size: 12px; line-height: 1.3; padding: 8px 4px 7px; border-radius: 12px;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, var(--gold-grad) border-box; border: 1px solid transparent; }
.wl-stats b { display: block; font: 700 22px/1.1 Cinzel, serif; color: var(--gold-light); margin-bottom: 2px; }

/* ================= Community — a social-feed layout (Feed / Friends tabs, composer, posts, comment bubbles) ================= */
[data-view="community"] .page-head { margin-bottom: 10px; }
[data-view="community"] .page-sub { display: none; }
.cm-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 12px; border-bottom: 1px solid rgba(212,175,55,0.25); }
.cm-tabs button { background: none; border: 0; cursor: pointer; padding: 10px 6px 11px; color: var(--muted); font: 600 14px Inter, sans-serif; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.cm-tabs button[aria-selected="true"] { color: var(--gold-light); border-bottom-color: var(--gold); }
.cm-tabs button:hover { background: rgba(212,175,55,0.06); }

/* composer: your photo + "What's on your mind?" pill, then Photo · audience · Post */
.composer { padding: 12px 14px 8px; }
.cp-top { display: flex; align-items: flex-start; gap: 10px; }
.cp-av .avatar-sm, .comment-form > .avatar-sm { width: 38px; height: 38px; flex: none; }
.composer .cp-top textarea { flex: 1; margin: 0; min-height: 40px; padding: 9px 16px; border-radius: 20px; resize: none; line-height: 1.4; font-size: 15px;
  background: rgba(4, 11, 32, 0.55); border: 1px solid rgba(212,175,55,0.25); overflow: hidden; }
.composer.open .cp-top textarea { border-radius: 14px; min-height: 76px; overflow: auto; }
.cp-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0 48px; }
.cp-more .audience { margin: 0; }
.cp-more .count { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.composer .photo-previews { margin: 10px 0 0 48px; }
.composer-row { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(212,175,55,0.18); gap: 4px; }
.cp-act { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: 600 13.5px Inter, sans-serif; cursor: pointer; }
.cp-act:hover { background: rgba(212,175,55,0.08); }
.cp-act svg { width: 19px; height: 19px; fill: #8fd18a; }
.composer-row .gold-btn.pill-btn { flex: none; padding: 8px 22px; }

/* post card */
.post { padding: 12px 0 4px; margin-bottom: 10px; }
.post > .byline, .post > .post-body, .post > .post-stats, .post > .post-actions, .post > .thread, .post > .post-menu { margin-left: 14px; margin-right: 14px; }
.post .byline .avatar-sm { width: 40px; height: 40px; font-size: 17px; }
.post .byline-meta { flex: 1; }
.post .byline-meta b { font-size: 14.5px; }
.post .byline-meta small { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.aud-ic { font-size: 11px; opacity: 0.9; }
.post .aud-select { font-size: 11.5px; padding: 1px 4px; border-radius: 6px; background: rgba(4,11,32,0.6); color: var(--muted); border: 1px solid rgba(212,175,55,0.25); }
.post .more-btn { margin-left: auto; align-self: flex-start; font-size: 22px; padding: 0 8px 6px; color: var(--muted); }
.post .post-body { margin-top: 10px; margin-bottom: 10px; font-size: 15px; }
.post .post-photos { margin: 4px 0 8px; border-radius: 0; } /* photos run edge to edge, like a feed */
.post-stats { display: flex; align-items: center; justify-content: space-between; min-height: 22px; padding: 4px 0 6px; font-size: 13px; color: var(--muted); }
.ps-likes { display: inline-flex; align-items: center; gap: 5px; }
.ps-likes i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; color: var(--navy-deep); background: var(--gold-grad); }
.ps-coms { margin-left: auto; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.ps-coms:hover { text-decoration: underline; }
.post .post-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 2px; border-top: 1px solid rgba(212,175,55,0.2); padding-top: 3px; margin-bottom: 4px; }
.post .post-actions .act { background: none; border-radius: 8px; padding: 9px 4px; color: var(--muted); font-size: 13.5px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.post .post-actions .act:hover { background: rgba(212,175,55,0.08); }
.post .post-actions .act.on { color: var(--gold-light); background: none; }
.post .post-actions .act.on span { color: var(--gold); }
.post .post-actions .act-listen.tts-playing, .post .post-actions .act-listen[aria-pressed="true"] { color: var(--gold-light); }
.post .thread { border-top: 1px solid rgba(212,175,55,0.15); padding: 10px 0 6px; margin-top: 0; }

/* comments: round photo + bubble */
.post .comment { display: flex; align-items: flex-start; gap: 8px; padding: 0; background: none; border-radius: 0; margin-bottom: 8px; }
.post .comment > .avatar-sm { width: 32px; height: 32px; font-size: 13px; flex: none; }
.c-col { min-width: 0; flex: 1; }
.c-bubble { display: inline-block; max-width: 100%; padding: 7px 12px 8px; border-radius: 16px; background: rgba(4, 11, 32, 0.6); border: 1px solid rgba(212,175,55,0.12); }
.c-bubble b { display: block; font-size: 13px; color: var(--gold-light); }
.c-bubble .comment-body { margin: 1px 0 0; font-size: 14px; line-height: 1.4; }
.c-meta { display: flex; align-items: center; gap: 12px; padding: 3px 0 0 12px; font-size: 11.5px; color: var(--muted); }
.c-meta .link-btn { margin: 0 !important; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0; }
.c-meta .link-btn:hover { color: var(--gold-light); }
.post .comment-form { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.post .comment-form > .avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.cf-field { flex: 1; display: flex; align-items: center; border-radius: 20px; background: rgba(4, 11, 32, 0.6); border: 1px solid rgba(212,175,55,0.25); padding-right: 4px; }
.cf-field input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 9px 14px !important; font-size: 14px; box-shadow: none !important; }
.cf-send { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; background: none; color: var(--gold); font-size: 15px; }
.cf-send:hover { background: rgba(212,175,55,0.12); }

/* friends tab */
.friends-panel .friend-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(212,175,55,0.1); }
.friends-panel .friend-row:last-child { border-bottom: 0; }
.friends-panel .friend-row .avatar-sm { width: 42px; height: 42px; font-size: 17px; }
.friends-panel .fname { flex: 1; font-weight: 600; color: var(--ink); }
/* Community safety notices */
.post-hidden { margin: 8px 14px 0; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; color: #f3bf98; background: rgba(243, 191, 152, 0.08); border: 1px solid rgba(243, 191, 152, 0.3); }
.care-card { border-color: rgba(247, 227, 154, 0.6); }
.care-card p:not(.opt-title) { font-size: 14px; line-height: 1.55; margin: 6px 0 8px; }
/* High Harmonics (above 1000 Hz) */
#highChips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#highChips .chip small { white-space: normal; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.high-warn { margin: -4px 0 10px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink);
  background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.3); }
/* Welcome page: smaller buttons */
.wl-cta { gap: 8px; margin-bottom: 18px; }
.wl-cta .gold-btn { padding: 11px 22px; font-size: 13px; }
.wl-cta .outline-btn { padding: 8px 20px; font-size: 13.5px; }
.wl-cta .link-btn { font-size: 13px; }
.wl-stats { gap: 6px; max-width: 360px; margin-bottom: 14px; }
.wl-stats a { padding: 6px 4px 5px; font-size: 11px; border-radius: 10px; }
.wl-stats b { font-size: 18px; }
.wl-card { padding: 14px 14px 12px; min-height: 110px; }
.wl-card .wl-ic { font-size: 20px; margin-bottom: 4px; }
.wl-card b { font-size: 14px; margin-bottom: 4px; }
.wl-card small { font-size: 12px; }
.wl-offer { padding: 14px 16px; }
.wl-price { font-size: 32px; }
.wl-offer .gold-btn.wide { padding: 11px 18px; font-size: 13.5px; }
/* Meditations: search + categories */
.med-browse { position: sticky; top: calc(env(safe-area-inset-top) + 60px); z-index: 5; margin: 0 -4px 8px; padding: 8px 4px 4px;
  background: linear-gradient(180deg, rgba(6, 15, 42, 0.97) 75%, rgba(6, 15, 42, 0)); }
.med-browse .search { margin: 0 0 8px; padding: 10px 14px; font-size: 14px; }
.med-cats .lib-cat small { opacity: 0.7; font-weight: 700; margin-left: 2px; }
.med-cat-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 18px 2px 8px; }
.med-cat-title .link-btn { font: 600 12px Inter, sans-serif; color: var(--gold-light); padding: 0; letter-spacing: 0; text-transform: none; }
.med-cat-sub { margin: 2px 2px 10px; font-size: 13px; color: var(--muted); }
/* meditation speaker: sits beside the drop-down arrow */
details.med-card > summary .say-btn.med-say { position: static; transform: none; flex: none; width: 28px; height: 28px; margin-left: 2px; }
details.med-card > summary .say-btn.med-say svg { width: 15px; height: 15px; }
/* Tones page: smaller Brainwave, Solfeggio & Angel and High Harmonics buttons — five per row */
#brainChips, #solChips, #highChips { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-bottom: 12px; }
#brainChips .chip, #solChips .chip, #highChips .chip { padding: 5px 1px 4px; border-radius: 10px; border-width: 1px; }
#brainChips .chip b, #solChips .chip b, #highChips .chip b { font-size: 13px; line-height: 1.15; }
#brainChips .chip small, #solChips .chip small, #highChips .chip small { font-size: 9px; line-height: 1.15; margin-top: 1px; white-space: normal; min-height: 2.3em; display: flex; align-items: center; justify-content: center; letter-spacing: -0.2px; overflow-wrap: normal; word-break: normal; }
#brainChips .chip.locked::after, #solChips .chip.locked::after, #highChips .chip.locked::after,
#brainChips .chip.free::after, #solChips .chip.free::after, #highChips .chip.free::after { top: 2px; right: 3px; font-size: 7.5px; }
@media (max-width: 359px) { #brainChips, #solChips, #highChips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* High Harmonics: on the main Tones page and on its own page only */
body:not([data-route="tones"]):not([data-route="harmonics"]) #panel-tones .tp-high { display: none !important; }
body[data-route="harmonics"] #panel-tones .tp-brain, body[data-route="harmonics"] #panel-tones .tp-sol, body[data-route="harmonics"] #panel-tones .tp-own,
body[data-route="harmonics"] #panel-tones .tp-chakra, body[data-route="harmonics"] #panel-tones .tp-nature, body[data-route="harmonics"] #panel-tones .tp-blend { display: none !important; }
.sol-note { margin: -6px 2px 12px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
/* "What this does for you" — under the play button on every Tones page */
.benefit-card { position: relative; margin: -4px 0 18px; padding: 12px 14px 10px; text-align: left; }
.benefit-card .bf-say { position: absolute; top: 10px; right: 10px; }
.bf-title { margin: 0 40px 4px 0; font: 700 14px Cinzel, serif; color: var(--gold-light); letter-spacing: 0.03em; }
.bf-lead { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.bf-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bf-points li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.bf-points .bf-ic { font-size: 14px; line-height: 1.3; text-align: center; }
.bf-points b { display: block; color: var(--ink); font-weight: 600; font-size: 12.5px; }
.bf-more { margin-top: 8px; }
.bf-more > summary { cursor: pointer; font: 600 12.5px Inter, sans-serif; color: var(--gold-light); list-style: none; }
.bf-more > summary::-webkit-details-marker { display: none; }
.bf-more > summary::after { content: ' ▾'; }
.bf-more[open] > summary::after { content: ' ▴'; }
.bf-more .bf-points { margin-top: 8px; }
.med-benefit { margin: -2px 0 10px; font-size: 13px; line-height: 1.45; color: var(--gold-light); } .med-benefit b { font-weight: 700; }
/* "What does it do to you" — a drop-down, closed by default */
.benefit-card { padding: 0; }
.bf-drop > summary { list-style: none; cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 10px 76px 10px 14px; }
.bf-drop > summary::-webkit-details-marker { display: none; }
.bf-drop > summary::after { content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 14px; transition: transform 0.2s; }
.bf-drop[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
.bf-drop > summary .bf-title { margin: 0; }
.bf-sub { font-size: 12px; color: var(--muted); }
.bf-drop > summary .say-btn.bf-say { position: absolute; top: 50%; right: 38px; transform: translateY(-50%); }
.bf-body { padding: 0 14px 12px; border-top: 1px solid rgba(212, 175, 55, 0.2); padding-top: 10px; }
/* main page: compact "Play two frequencies together" and Volume / Sleep timer cards */
.blend-card, .vol-card { padding: 9px 12px; margin-bottom: 12px; border-radius: 14px; }
.blend-card .opt-title { font-size: 12px; margin: 0 0 2px; }
.blend-card .row, .vol-card .row { padding: 4px 0; gap: 8px; font-size: 12.5px; }
.blend-card .row { grid-template-columns: 96px 1fr auto; }
.blend-card .row:first-of-type { grid-template-columns: 96px 1fr; }
.vol-card .row { grid-template-columns: 76px 1fr 44px; }
.blend-card select, .vol-card select { padding: 6px 28px 6px 10px; font-size: 12.5px; min-height: 0; border-radius: 10px; }
.blend-card .hint { font-size: 11.5px; margin: 4px 0 2px; line-height: 1.4; }
.vol-card .row output, .blend-card .row output { font-size: 12px; }
/* My Journey: Your meditations */
.jr-med-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.jr-med-tiles:empty { display: none; }
.jr-med-tiles .jr-tile { padding: 8px 4px 7px; }
.jr-med-tiles .jr-tile b { font-size: 19px; }
.jr-meds li::before { content: none; }
.jr-meds li { grid-template-columns: 26px 1fr; }
.jr-meds li > b { grid-row: span 2; align-self: center; text-align: center; font-size: 17px; }
.jr-meds small { grid-column: 2; }
.jr-med-sub { margin: 14px 0 4px; }
#jrMedRecent li { grid-template-columns: 52px 18px 1fr auto; }
/* Install SHIFT as an app */
.install-card { display: grid; grid-template-columns: 30px 1fr; gap: 6px 10px; align-items: center; padding: 10px 12px; margin: 0 0 14px; text-align: left; }
.install-card .ic-ic { font-size: 22px; text-align: center; }
.install-card .ic-text b { display: block; font-size: 13.5px; color: var(--gold-light); }
.install-card .ic-text small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.install-card .ic-btns { grid-column: 2; display: flex; align-items: center; gap: 12px; }
.install-card .ic-btns .link-btn { font-size: 12.5px; color: var(--muted); }
.welcome .install-card { max-width: 420px; margin: 0 auto 18px; }
.ios-install { position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 20, 0.72); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.ios-install[hidden] { display: none; }
.ios-sheet { width: 100%; max-width: 440px; margin: 0 0 calc(env(safe-area-inset-bottom) + 8px); text-align: left; }
.ios-sheet ol { margin: 8px 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.ios-share { display: inline-grid; vertical-align: -3px; color: #4aa8ff; }
body:not([data-route="tones"]) .tp-install { display: none !important; }
.med-help { margin: -4px 0 10px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink); background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.25); }

/* ── Singing Bowls page ─────────────────────────────────────────── */
.bowls-view { padding: 0 0 32px; }
.bowl-set { margin: 0 0 36px; }
.bowl-set-title { font: 700 17px Inter, sans-serif; color: var(--gold-light); margin: 20px 16px 4px; display: flex; align-items: center; gap: 8px; }
.bowl-set-icon { font-size: 20px; }
.bowl-set-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 16px 14px; }
.bowl-cards { display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.bowl-card { background: rgba(212, 175, 55, 0.06); border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 14px; padding: 12px 14px; }
.bowl-card-top { display: flex; align-items: center; gap: 12px; }
.bowl-note { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font: 700 17px Inter, sans-serif; color: var(--gold-light); background: rgba(212, 175, 55, 0.1); }
.bowl-planet { font-size: 22px; background: transparent; border-color: rgba(212, 175, 55, 0.3); }
.bowl-hz-note { font-size: 10px; letter-spacing: -0.3px; }
.bowl-card-info { flex: 1; min-width: 0; }
.bowl-hz { font: 700 13.5px Inter, sans-serif; color: var(--ink); }
.bowl-chakra { font-size: 12px; color: var(--muted); }
.bowl-what { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.bowl-play-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); border: 0; color: var(--navy-deep); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.12s ease; }
.bowl-play-btn:active { transform: scale(0.9); }
.bowl-play-btn.bowl-playing { background: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,0.6); animation: bowl-pulse 1.4s ease-in-out infinite; }
@keyframes bowl-pulse { 0%,100% { box-shadow: 0 0 8px rgba(212,175,55,0.5); } 50% { box-shadow: 0 0 18px rgba(212,175,55,0.9); } }
.bowl-space-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: #a8d8a8; background: rgba(100,200,100,0.12); border: 1px solid rgba(100,200,100,0.3); border-radius: 20px; padding: 2px 8px; margin-top: 4px; letter-spacing: 0.2px; }
.bowl-card-space { border-color: rgba(100,200,100,0.25); }
.bowl-benefits-wrap { margin: 12px 16px 16px; border: 1px solid rgba(212,175,55,0.2); border-radius: 14px; overflow: hidden; }
.bowl-benefits-wrap[open] { background: rgba(212,175,55,0.04); }
.bowl-benefits-title { padding: 12px 16px; font: 600 14px Inter,sans-serif; color: var(--gold-light); cursor: pointer; list-style: none; user-select: none; }
.bowl-benefits-title::-webkit-details-marker { display: none; }
.bowl-benefits-list { margin: 0; padding: 4px 16px 14px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.bowl-benefits-list li { font-size: 13px; color: var(--muted); line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.bowl-benefit-icon { flex: none; font-size: 16px; margin-top: 1px; }
.bowl-space-tip { font-size: 12px; color: #a8d8a8; line-height: 1.55; margin: 8px 0 0; padding: 8px 10px; background: rgba(100,200,100,0.07); border-left: 2px solid rgba(100,200,100,0.4); border-radius: 0 6px 6px 0; }

/* ===================== I SPEAK, THEREFORE I AM ===================== */
.speakiam-view { padding-bottom: 40px; }
.speak-back-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 7px 14px; border: 1px solid rgba(212,175,55,0.3); border-radius: 20px; background: transparent; color: var(--gold-light); font-size: 13px; cursor: pointer; }
.speak-back-btn:active { opacity: 0.7; }

/* intro — reuse set-drop accordion pattern */
.speak-voice-drop .set-drop-label { font: 600 14px Inter,sans-serif; }
.speak-intro-prose { padding: 4px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.speak-intro-prose p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* category list */
.speak-pills { margin-bottom: 16px; }
.speak-list { display: flex; flex-direction: column; gap: 0; }
.speak-row { width: 100%; text-align: left; cursor: pointer; padding: 14px 16px; margin-bottom: 8px; }
.speak-row:active { opacity: 0.85; }
.speak-row-head { min-width: 0; flex: 1; }
.speak-row-head h3 { font-size: 15px; }
.speak-row-tag { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.speak-row-play { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-deep); display: flex; align-items: center; justify-content: center; }

/* player — reuse med-now card */
.speak-now { margin-bottom: 16px; }
.speak-daily-banner { text-align: center; font-size: 12.5px; color: var(--gold-light); background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.5; }
.speak-now-line { font-size: 18px; line-height: 1.55; text-align: center; min-height: 80px; }
.speak-progress-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; margin: 0 0 6px; overflow: hidden; }
.speak-progress-fill { height: 100%; background: var(--gold-grad); border-radius: 4px; transition: width 1s linear; width: 0; }
.speak-btn-sm { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.07); color: var(--ink); font-size: 15px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.speak-btn-sm:active { opacity: 0.7; }
.speak-play-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-grad); color: var(--navy-deep); font-size: 22px; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.speak-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.speak-card .med-body { padding-top: 8px; }
.speak-intro-details summary .drop-now { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* Lock the UI for non-subscribers: hide nav until premium */
html:not([data-premium]) .tabbar { display: none !important; }
html:not([data-premium]) #drawer { display: none !important; }

/* Music Library */
.ml-list { padding: 0 16px 16px; }
.ml-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ml-info { flex: 1; min-width: 0; }
.ml-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ml-btns { display: flex; align-items: center; gap: 8px; flex: none; }
.ml-del-btn { color: var(--muted); font-size: 16px; line-height: 1; padding: 4px 6px; }
.ml-del-btn:hover { color: var(--ink); }
.ml-play-btn.playing .i-play { display: none; }
.ml-play-btn:not(.playing) .i-stop { display: none; }
