:root {
  --bg: #060607;
  --glass: rgba(255,255,255,0.035);
  --glass2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.18);
  --text: #f4f4f5;
  --muted: #909096;
  --dim: #55555c;
  --gold: #d4af69;
  --gold-dim: #9a7534;
  --gold-hi: #efd694;
  --good: #7ff0aa;
  --bad: #ff9d9d;
  --radius: 20px;
  --ease: cubic-bezier(.22,.8,.3,1);
  --nav-w: 200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 420px at 50% -10%, rgba(212,175,105,.05), transparent 60%);
}
.dungeon-shell::before {
  background:
    radial-gradient(780px 480px at 12% -8%, rgba(212,175,105,.12), transparent 55%),
    radial-gradient(640px 420px at 88% 18%, rgba(154,117,52,.10), transparent 50%),
    radial-gradient(520px 380px at 50% 100%, rgba(212,175,105,.06), transparent 55%),
    radial-gradient(900px 420px at 50% -10%, rgba(212,175,105,.05), transparent 60%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
.gold-word {
  background: linear-gradient(100deg, #ac8443, #e8c882, #ac8443);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Landing */
.landing { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.landing-inner { text-align: center; width: min(440px, 92vw); }
.landing-mark {
  width: 56px; height: 56px; margin: 0 auto 28px; display: block;
  filter: drop-shadow(0 0 12px rgba(212,175,105,.35));
}
.landing h1 { letter-spacing: .32em; font-weight: 500; font-size: 13px; margin-bottom: 10px; }
.landing .sub { color: var(--muted); font-size: 13px; margin: 4px 0 32px; font-weight: 400; letter-spacing: 0.04em; }
.landing-cta {
  display: inline-block; min-width: 160px; padding: 14px 28px; border-radius: 14px; font-size: 14px;
}

/* Shared */
.card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.btn {
  border: 1px solid var(--border); background: none; color: var(--text);
  border-radius: 12px; padding: 10px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { border-color: var(--border-hi); background: var(--glass); }
.btn.primary {
  background: linear-gradient(100deg, #9a7534, #d4af69); color: #000; border-color: transparent;
  box-shadow: 0 0 16px rgba(212,175,105,.28); font-weight: 600;
}
.btn.primary:hover { box-shadow: 0 0 26px rgba(212,175,105,.45); }
.btn:disabled, .pay-cta:disabled { opacity: .55; cursor: not-allowed; }
.btn[aria-disabled="true"], .pay-cta[aria-disabled="true"], .coming-soon-btn[aria-disabled="true"],
.send[aria-disabled="true"] {
  opacity: .55;
  cursor: pointer;
}
.pill {
  font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted);
  flex-shrink: 0;
}
.pill.ready { color: #000; background: linear-gradient(100deg, #9a7534, #d4af69); border-color: #d4af69; }
.hidden { display: none !important; }
.fine { color: var(--dim); font-size: 12px; line-height: 1.45; }

/* App shell (Dungeon + OS) */
.app-body { display: flex; min-height: 100vh; overflow: hidden; }
.side-nav {
  width: var(--nav-w); flex-shrink: 0; z-index: 2; border-right: 1px solid var(--border);
  padding: 28px 10px 20px; display: flex; flex-direction: column; gap: 2px;
  background: rgba(0,0,0,.35);
}
.side-brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 12px;
  padding: 0 10px 28px; line-height: 1.3;
}
.side-brand span { color: var(--dim); font-weight: 400; }
.side-nav .navb, .mobile-nav .navb {
  position: relative; display: flex; align-items: center;
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 13.5px; padding: 11px 12px; border-radius: 10px; text-align: left; width: 100%;
}
.side-nav a.navb.nav-link { color: var(--gold); }
.side-nav .navb:hover, .mobile-nav .navb:hover { color: var(--text); background: var(--glass); }
.side-nav .navb.active, .mobile-nav .navb.active {
  color: var(--text); background: var(--glass2); font-weight: 500;
}
.side-nav .navb.active::before {
  content: ""; position: absolute; left: -10px; top: 28%; height: 44%; width: 2px;
  background: #d4af69; border-radius: 99px; box-shadow: 0 0 10px rgba(212,175,105,.7);
}
.nav-footer { margin-top: auto; padding: 12px 8px; }
.nav-quiet { color: var(--muted); font-size: 12px; }
.nav-quiet:hover { color: var(--gold); }
.app-main {
  flex: 1; overflow-y: auto; height: 100vh; z-index: 1; position: relative;
  padding-bottom: 80px;
}
.view { display: none; max-width: 720px; margin: 0 auto; padding: 48px 36px 80px; animation: rise .3s var(--ease); }
.dungeon-shell .view#home { max-width: 920px; padding-top: 36px; }
.dungeon-shell .amplify-nav {
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border-right-color: rgba(255,255,255,0.08);
}
.dungeon-shell .amplify-nav .navb {
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
}
.dungeon-shell .amplify-nav .navb.active {
  background: rgba(212, 175, 105, 0.14);
  border: 1px solid rgba(212, 175, 105, 0.22);
  box-shadow: 0 0 18px rgba(212, 175, 105, 0.12);
}
.dungeon-shell .amplify-nav .navb.active::before { display: none; }
.dungeon-shell .nav-ico { color: var(--dim); font-size: 12px; width: 1.2em; }
.dungeon-shell .amplify-nav .navb.active .nav-ico { color: var(--gold-hi); }
.playing-mini {
  margin: 18px 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.playing-mini-face {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #141210;
}
.playing-mini-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.playing-mini-copy b {
  font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playing-mini-copy small {
  color: var(--muted); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn.sm { padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.btn.ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.view.active { display: block; }
.view-head { margin-bottom: 28px; }
.greeting {
  font-size: 28px; font-weight: 600; letter-spacing: -0.7px;
  background: linear-gradient(180deg, #fff 30%, #9a9aa0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.date { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
h2.vh, h1.vh { font-size: 24px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 6px; }
.vsub { color: var(--muted); font-size: 14px; margin-bottom: 0; line-height: 1.5; }
.section-label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--dim); margin: 32px 0 14px;
}
.hub-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold);
}
.member-badge {
  font-size: 12px; color: var(--gold); border: 1px solid rgba(212,175,105,.35);
  padding: 6px 12px; border-radius: 99px; display: inline-block;
}
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(8,8,10,.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
  gap: 4px;
}
.mobile-nav:not(.pill-nav) .navb {
  justify-content: center;
  font-size: 12px;
  padding: 10px 6px;
  width: auto;
  flex: 1;
}
.mobile-nav.pill-nav {
  display: none;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  width: min(420px, calc(100vw - 28px));
  padding: 8px 10px;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border-top: none;
  background: rgba(18, 18, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mobile-nav.pill-nav .navb {
  flex: 1;
  width: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 6px;
  min-height: 44px;
  border-radius: 16px;
  color: var(--muted);
  background: none;
  border: none;
  text-decoration: none;
}
.mobile-nav.pill-nav .navb .nav-ico-pill {
  font-size: 13px;
  line-height: 1;
  color: var(--dim);
}
.mobile-nav.pill-nav .navb:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.mobile-nav.pill-nav .navb.active {
  color: var(--text);
  background: rgba(212, 175, 105, 0.14);
  border: 1px solid rgba(212, 175, 105, 0.28);
  box-shadow: 0 0 18px rgba(212, 175, 105, 0.18);
  font-weight: 600;
}
.mobile-nav.pill-nav .navb.active .nav-ico-pill {
  color: var(--gold-hi);
}
.mobile-nav.pill-nav a.navb.nav-link {
  color: var(--gold);
}

/* Continue + modules */
.continue-hero {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 8px;
}
.continue-hero-lg {
  gap: 20px;
  padding: 22px 24px;
  margin: 8px 0 10px;
  border: 1px solid rgba(212,175,105,0.28);
  background: linear-gradient(135deg, rgba(212,175,105,0.12), rgba(255,255,255,0.03));
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}
.continue-face {
  width: 88px; height: 88px; border-radius: 20px; object-fit: cover;
  flex-shrink: 0; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  background: #141210;
}
.continue-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.continue-copy b { font-size: 20px; letter-spacing: -0.02em; }
.continue-copy small { color: var(--muted); font-size: 13.5px; }
.continue-copy #continue-punch {
  color: var(--text); font-size: 14.5px; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.continue-meta { color: var(--gold) !important; font-weight: 600; }
.continue-play {
  min-width: 96px; min-height: 48px; padding: 14px 22px;
  font-size: 16px; border-radius: 14px; flex-shrink: 0;
}
.opie-soft-line {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--dim);
}
.opie-soft-line .text-link {
  background: none; border: none; color: var(--gold); font: inherit;
  cursor: pointer; padding: 0; text-decoration: underline;
  text-underline-offset: 3px; min-height: 44px;
}
.listen-hero { margin-bottom: 18px; }
.listen-hero .playlist-title { margin-top: 6px; }
.module-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.module-card {
  text-align: left; padding: 18px 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s var(--ease), background .2s;
}
.module-card:hover { border-color: var(--border-hi); background: var(--glass2); }
.module-card b { font-size: 15px; }
.module-card span:last-child { color: var(--muted); font-size: 13px; line-height: 1.4; }
.module-card.locked { opacity: .88; }
.lock-ico { font-size: 12px; margin-bottom: 2px; }

/* Player + episodes */
.player-card { overflow: hidden; margin: 18px 0 8px; }
.player-frame {
  position: relative; width: 100%; padding-top: 56.25%; background: #000;
}
.player-frame #yt-player,
.player-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.player-meta { padding: 18px 20px 20px; }
.epn { font-size: 11px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.ep { padding: 16px 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 16px; }
.ep .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); flex-shrink: 0;
}
.ep .info { flex: 1; min-width: 0; }
.ep .info b { display: block; font-weight: 600; }
.ep .info small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.ep-row {
  width: 100%; text-align: left; cursor: pointer; margin-bottom: 10px;
}
.ep-row:hover { border-color: var(--border-hi); background: var(--glass2); }
.empty-state { padding: 28px 22px; }
.empty-state.soft { padding: 20px 18px; }
.empty-state h3 { margin: 8px 0; font-size: 17px; }
.eps-actions { display: flex; align-items: center; gap: 10px; }

/* Opie */
.opie h2 { font-size: 24px; letter-spacing: -0.5px; margin-bottom: 16px; font-weight: 600; }
.opie h2 em { font-style: italic; color: var(--gold-hi); }
.opie-box {
  display: flex; gap: 8px; background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; padding: 6px 6px 6px 16px; margin-bottom: 14px;
}
.opie-box input { flex: 1; background: none; border: none; outline: none; padding: 12px 0; }
.opie-sugs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  background: none; border: 1px solid var(--border); color: var(--muted);
  border-radius: 99px; padding: 7px 15px; font-size: 13px; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--border-hi); }
.send {
  background: linear-gradient(100deg, #9a7534, #d4af69); color: #000; border: none; border-radius: 13px;
  width: 40px; height: 40px; font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.send.is-busy { opacity: 0.6; pointer-events: none; }
.opie-answer { margin: 4px 0 16px; }
.opie-answer-card {
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 105, 0.28);
  background: linear-gradient(160deg, rgba(212, 175, 105, 0.08), rgba(255, 255, 255, 0.03));
}
.opie-answer-card .hub-kicker { margin-bottom: 6px; }
.opie-answer-text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.opie-sources { display: flex; flex-direction: column; gap: 6px; }
.opie-source {
  font-size: 12px;
  color: var(--gold-hi, #d4af69);
  opacity: 0.9;
}
.opie-box input:disabled { opacity: 0.55; cursor: not-allowed; }
.opie-box .send:disabled,
.opie-box .send[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 14.5px; }
.msg.user { align-self: flex-end; background: var(--glass2); border: 1px solid var(--border); }
.msg.ai { align-self: flex-start; color: #d9d9de; padding-left: 0; }

/* Unlock / account */
.unlock-card { padding: 28px 24px; }
.unlock-card h3 { font-size: 20px; margin: 8px 0 10px; }
.pay-tiers { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 12px; }
.pay-cta { width: 100%; padding: 13px; border-radius: 12px; }
.account-card { padding: 8px 4px 20px; }
.account-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.account-row span { color: var(--muted); }
.account-row b { font-weight: 500; text-align: right; }

/* OS specifics */
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.kpi { padding: 16px 16px; }
.kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -0.6px; }
.kpi .l { color: var(--muted); font-size: 12px; margin-top: 4px; }
.kpi .d { font-size: 11px; margin-top: 4px; color: var(--dim); }
.quick-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.activity-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 8px;
}
.muted-time { color: var(--dim); font-size: 12px; flex-shrink: 0; }

#lock, #splash {
  position: fixed; inset: 0; z-index: 99; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
#lock.out, #splash.out { display: none; }
/* Host gate: never paint OS chrome until requireHost succeeds */
.os-shell:not(.os-unlocked) .os-layout,
.os-shell:not(.os-unlocked) .os-modal,
.os-shell:not(.os-unlocked) .mobile-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}
#lock .lk-title { font-size: 13px; letter-spacing: .4em; color: #cfa95f; font-weight: 600; }
#lock .hint { color: var(--dim); font-size: 13px; }
.splash-mark { width: 72px; height: 72px; filter: drop-shadow(0 0 16px rgba(212,175,105,.4)); }
.splash-title { letter-spacing: .42em; font-size: 16px; font-weight: 400; }
.splash-tag { font-size: 11px; letter-spacing: .4em; color: #cfa95f; }

/* Auth */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 16px 48px; position: relative; z-index: 1;
}
.auth-back { position: absolute; top: 24px; left: 24px; color: var(--muted); font-size: 13px; }
.auth-card { width: min(420px, 100%); padding: 32px 28px 28px; }
.auth-mark { font-size: 11px; letter-spacing: .32em; color: var(--gold); margin-bottom: 12px; }
.auth-card h1 { font-size: 20px; letter-spacing: .1em; margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; background: none; border: 1px solid var(--border); color: var(--muted);
  border-radius: 11px; padding: 9px 12px; cursor: pointer;
}
.auth-tab.active {
  color: #000; background: linear-gradient(100deg, #9a7534, #d4af69);
  border-color: transparent; font-weight: 600;
}
.field { display: block; margin-bottom: 12px; }
.field span {
  display: block; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--dim); margin-bottom: 6px;
}
.field input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 14px; outline: none;
}
.field input:focus { border-color: var(--border-hi); }
.auth-submit { width: 100%; padding: 13px; border-radius: 12px; margin-top: 6px; }
.session-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 16px; background: var(--glass);
}
.session-name { font-weight: 600; }
.session-email { color: var(--muted); font-size: 13px; }
.form-status { min-height: 1.2em; font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.form-status.error { color: var(--bad); }
.form-status.ok { color: var(--good); }

@media (max-width: 860px) {
  .side-nav { display: none; }
  .mobile-nav.pill-nav { display: flex; }
  .view { padding: 28px 18px 120px; }
  .kpi-strip, .module-grid { grid-template-columns: 1fr 1fr; }
  .continue-hero { flex-direction: column; align-items: stretch; }
  .continue-hero-lg { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .continue-play { width: 100%; }
  .app-main { padding-bottom: 110px; }
  .dungeon-shell.has-dock .app-main { padding-bottom: 200px; }
  /* dock floats above pill nav — see fitness home section */
  .dungeon-shell .view#home { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 520px) {
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: 1fr; }
}

/* OTN logo — pop + gold shimmer */
.otn-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  animation: otn-logo-pop 0.7s var(--ease) both;
}
.otn-logo {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  object-fit: contain;
  /* Static glow. An infinitely animated filter:drop-shadow crashed the WebKit
     renderer (Safari engine) on every app page and forced a full repaint each frame. */
  filter: drop-shadow(0 0 14px rgba(212,175,105,.32));
}
.otn-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(239, 214, 148, 0.22) 48%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(239, 214, 148, 0.22) 52%,
    transparent 65%
  );
  background-size: 220% 100%;
  mix-blend-mode: screen;
  /* One-shot sheen only — no infinite logo animations (they crashed WebKit). */
  animation: otn-logo-shine 1.6s ease-out 0.5s 1 both;
  opacity: 0;
}
.otn-logo-wrap.hero { width: min(280px, 78vw); margin: 0 auto 8px; }
.otn-logo-wrap.auth { width: min(250px, 72vw); margin: 4px auto 22px; display: flex; }
.otn-logo-wrap.auth .otn-logo { filter: drop-shadow(0 0 20px rgba(212,175,105,.42)) drop-shadow(0 0 2px rgba(240,216,152,.55)); }
.otn-logo-wrap.nav { width: 44px; flex-shrink: 0; }
.otn-logo-wrap.nav::after { display: none; }
.otn-logo-wrap.nav .otn-logo { filter: drop-shadow(0 0 10px rgba(212,175,105,.5)) drop-shadow(0 0 2px rgba(240,216,152,.55)); }
.otn-logo-wrap.os-splash { width: min(220px, 70vw); margin: 0 auto 12px; }

@keyframes otn-logo-pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes otn-logo-shine {
  0% { background-position: 130% 0; opacity: 0; }
  20% { opacity: 0.9; }
  80% { opacity: 0.9; }
  100% { background-position: -30% 0; opacity: 0; }
}
@keyframes otn-logo-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 175, 105, 0.22)); }
  50% { filter: drop-shadow(0 0 22px rgba(212, 175, 105, 0.48)); }
}

@media (prefers-reduced-motion: reduce) {
  .otn-logo-wrap,
  .otn-logo,
  .otn-logo-wrap::after {
    animation: none !important;
  }
  .otn-logo-wrap::after { display: none; }
}

/* Opie manifesto */
.manifesto {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.manifesto p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.manifesto-lead {
  font-size: 20px !important;
  font-weight: 600;
  letter-spacing: -0.4px !important;
  line-height: 1.35 !important;
}
.manifesto strong { color: var(--gold-hi); font-weight: 600; }

.account-edit { padding: 22px 20px 24px; }
.account-edit .field { margin-bottom: 14px; }
.account-edit .account-row:last-of-type { border-bottom: none; margin-bottom: 8px; }

.side-brand .brand-copy {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
}
.side-brand .brand-copy span { color: var(--dim); font-weight: 400; }

/* —— Circular year dial (Founders-inspired, OTN gold) —— */
.year-dial-host {
  display: none;
  pointer-events: none;
}
.year-dial {
  position: relative;
  width: 200px;
  height: 200px;
  user-select: none;
}
.year-dial.is-hidden { visibility: hidden; opacity: 0; }
.year-dial-arc {
  display: block;
  width: 100%;
  height: 100%;
}
.year-dial-years {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.year-dial-year {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0.55;
  /* transform set in JS: translate(-50%,-50%) — baselines stay horizontal */
  will-change: left, top;
}
.year-dial-year.is-active {
  color: var(--gold-hi);
  font-weight: 600;
  font-size: 12px;
  opacity: 1;
  text-shadow: 0 0 18px rgba(212, 175, 105, 0.35);
}
.year-dial--subtle {
  opacity: 0.72;
  transform: scale(0.88);
  transform-origin: center center;
}
.year-dial--subtle .year-dial-year { font-size: 10px; }
.year-dial--subtle .year-dial-year.is-active { font-size: 11px; }

@media (min-width: 960px) {
  .year-dial-host {
    display: block;
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 200px;
    height: 200px;
  }
  .year-dial-host--os {
    right: 20px;
    opacity: 0.9;
  }
  /* Give Listen content a little room so dial never overlaps cards */
  .app-body:not(.os-shell) .view#home {
    padding-right: 48px;
  }
}

@media (max-width: 959px) {
  .year-dial-host { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .year-dial-year {
    transition: none !important;
  }
}

.year-block {
  position: relative;
}
.year-block-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--dim);
  margin: 28px 0 12px;
}
.year-block:first-child .year-block-label { margin-top: 4px; }

/* ═══════════════════════════════════════════
   The OS — three-column fintech shell (OTN gold)
   ═══════════════════════════════════════════ */
.os-shell {
  --os-nav-w: 220px;
  --os-rail-w: 280px;
  overflow: hidden;
}
.os-shell .app-main { /* overridden by .os-main */ }

.os-shell.app-body {
  display: block;
}
.os-layout {
  display: grid;
  grid-template-columns: var(--os-nav-w) 1fr var(--os-rail-w);
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* Left nav */
.os-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.42);
  padding: 22px 12px 16px;
  overflow-y: auto;
  min-height: 0;
}
.os-nav-top { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.os-brand { padding: 0 8px 22px; }
.os-nav-group { margin-bottom: 14px; }
.os-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 12px 6px;
}
.os-nav .navb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  width: 100%;
}
.os-nav .navb:hover { color: var(--text); background: var(--glass); }
.os-nav .navb.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(212, 175, 105, 0.18), transparent 85%);
  font-weight: 500;
  border: 1px solid rgba(212, 175, 105, 0.12);
}
.os-nav .navb.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 26%;
  height: 48%;
  width: 3px;
  background: var(--gold);
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(212, 175, 105, 0.7);
}
.nav-ico {
  width: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
  flex-shrink: 0;
}
.os-nav .navb.active .nav-ico { color: var(--gold); }
.os-nav-bottom { margin-top: auto; padding-top: 12px; }
.os-cta-card {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-cta-card b { font-size: 13px; font-weight: 600; }
.os-cta-card p { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 0; }

/* Center main */
.os-main {
  flex: 1;
  overflow-y: auto;
  height: 100vh;
  min-width: 0;
  position: relative;
  padding-bottom: 40px;
  z-index: 1;
}
.os-shell .os-main .view {
  display: none;
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 28px 72px;
  animation: rise 0.3s var(--ease);
}
.os-shell .os-main .view.active { display: block; }

.os-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.os-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 4px;
}
.os-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.os-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.os-kpi { padding: 16px 18px; }
.os-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.os-kpi .l { color: var(--muted); font-size: 12px; }
.os-kpi .v {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.os-kpi .d { font-size: 11px; color: var(--dim); margin-top: 4px; }
.pill.subtle {
  font-size: 9px;
  letter-spacing: 0.6px;
  color: var(--gold);
  border-color: rgba(212, 175, 105, 0.35);
}

.os-chart-card, .os-table-card {
  padding: 20px 22px;
  margin-bottom: 16px;
}
.os-chart-head, .os-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.os-card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0 0 2px;
}
.os-chart-total { text-align: right; }
.os-chart-total b { display: block; font-size: 20px; letter-spacing: -0.4px; }

.os-chart {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}
.os-chart-empty {
  width: 100%;
  text-align: center;
  padding: 48px 16px;
  color: var(--dim);
}
.os-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 180px;
  padding-top: 8px;
}
.os-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.os-bar {
  width: 70%;
  max-width: 36px;
  border-radius: 8px 8px 4px 4px;
  background: rgba(255, 255, 255, 0.08);
  transition: height 0.35s var(--ease), background 0.2s;
  position: relative;
}
.os-bar.peak {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-dim));
  box-shadow: 0 0 18px rgba(212, 175, 105, 0.35);
}
.os-bar.peak::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(212, 175, 105, 0.8);
}
.os-bar-col span {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.os-search {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
  min-width: 180px;
  font-size: 13px;
}
.os-search:focus { border-color: var(--border-hi); }

.os-table-wrap { overflow-x: auto; }
.os-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.os-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--border);
}
.os-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
  vertical-align: middle;
}
.os-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.os-empty-row td {
  text-align: center;
  color: var(--dim);
  padding: 28px 10px;
}

/* Right rail */
.os-rail {
  border-left: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  padding: 20px 16px 28px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.os-rail-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.os-rail-search { width: 100%; min-width: 0; }
.os-host-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}
.os-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9a7534, #d4af69);
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(212, 175, 105, 0.3);
}
.os-host-meta { min-width: 0; }
.os-host-meta b { display: block; font-size: 14px; }
.os-host-meta small { color: var(--muted); font-size: 12px; }

.os-rail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.os-bot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.os-bot-btn {
  width: 100%;
  text-align: left;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.os-bot-btn:hover { border-color: var(--border-hi); background: var(--glass2); }
.os-bot-primary { width: 100%; margin-top: 4px; }

.os-qstats { padding: 4px 0; }
.os-qstat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.os-qstat:last-child { border-bottom: none; }
.os-qstat span { color: var(--muted); }
.os-qstat b { font-weight: 600; }

.os-rundown { padding: 16px 18px; }

/* Revenue / bots grids */
.os-rev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.os-rev-card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.os-rev-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}
.os-rev-card .v { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.os-rev-card .btn { margin-top: 8px; align-self: flex-start; }

.os-bot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.os-bot-card {
  text-align: left;
  padding: 20px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: inherit;
  font: inherit;
  border-radius: var(--radius);
}
.os-bot-card:hover { border-color: var(--border-hi); background: var(--glass2); }
.os-bot-card.primary {
  border-color: rgba(212, 175, 105, 0.45);
  background: linear-gradient(135deg, rgba(212, 175, 105, 0.16), transparent);
}
.os-bot-card b { font-size: 15px; }

/* Modal */
.os-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.os-modal.hidden { display: none; }
.os-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.os-modal-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 22px 22px 20px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
}
.os-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.os-modal-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
.os-modal-close { padding: 6px 12px; min-width: 0; }
.os-modal-panel .field { margin-top: 12px; }
.os-modal-panel textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  min-height: 140px;
}
.os-modal-panel textarea:focus { border-color: var(--border-hi); }
.os-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

/* Year dial: sit above content but inside main column on OS */
.os-shell .year-dial-host--os {
  right: calc(var(--os-rail-w) + 24px);
}

/* Hide legacy side-nav rules when OS uses .os-nav */
.os-shell > .side-nav { display: none; }

/* Responsive */
@media (max-width: 1099px) {
  .os-layout {
    grid-template-columns: var(--os-nav-w) 1fr;
  }
  .os-rail { display: none; }
  .os-shell .year-dial-host--os { right: 20px; }
  .os-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .os-layout {
    grid-template-columns: 1fr;
  }
  .os-nav { display: none; }
  .os-shell .os-main .view {
    padding: 28px 18px 100px;
  }
  .os-shell .mobile-nav { display: flex; }
  .os-rev-grid, .os-bot-grid { grid-template-columns: 1fr; }
  .os-kpi-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .os-kpi-row { grid-template-columns: 1fr; }
  .os-bars { gap: 4px; }
  .os-bar { width: 90%; }
}



/* ═══════════════════════════════════════════
   OS HUD — DataV / sci-fi command center
   Scoped to .os-shell.os-hud only
   ═══════════════════════════════════════════ */
.os-shell.os-hud {
  --hud-orange: #f07a3a;
  --hud-red: #e85d5d;
  --hud-green: #5dcea0;
  --hud-line: rgba(255, 255, 255, 0.14);
  --hud-panel: rgba(8, 10, 14, 0.72);
  --os-nav-w: 200px;
  --os-rail-w: 0px;
  font-variant-numeric: tabular-nums;
}
.os-shell.os-hud.app-body {
  background: #030406;
}
.os-shell.os-hud::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(900px 500px at 50% 42%, rgba(212,175,105,0.07), transparent 62%),
    #030406;
  background-size: 48px 48px, 48px 48px, auto, auto;
  opacity: 1;
}
.os-shell.os-hud .os-layout {
  grid-template-columns: var(--os-nav-w) 1fr;
}
.os-shell.os-hud .os-nav {
  background: rgba(0, 0, 0, 0.55);
  border-right: 1px solid var(--hud-line);
  backdrop-filter: blur(10px);
}
.os-shell.os-hud .os-main {
  background: transparent;
}
.os-shell.os-hud .os-main .view#overview {
  max-width: none;
  margin: 0;
  padding: 14px 16px 28px;
  height: 100%;
  overflow: auto;
}
.os-shell.os-hud .os-main .view:not(#overview) {
  max-width: 960px;
}

/* Geometric translucent panels */
.os-shell.os-hud .hud-frame {
  position: relative;
  background: var(--hud-panel);
  border: 1px solid var(--hud-line);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}
.os-shell.os-hud .hud-frame::before,
.os-shell.os-hud .hud-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-color: rgba(212, 175, 105, 0.55);
  border-style: solid;
}
.os-shell.os-hud .hud-frame::before {
  top: -1px; left: -1px;
  border-width: 1.5px 0 0 1.5px;
}
.os-shell.os-hud .hud-frame::after {
  bottom: -1px; right: -1px;
  border-width: 0 1.5px 1.5px 0;
}

.os-shell.os-hud .hud-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.os-shell.os-hud .hud-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.os-shell.os-hud .hud-topbar-right {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.os-shell.os-hud .hud-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hud-green);
  box-shadow: 0 0 10px var(--hud-green);
  animation: hudPulse 1.8s ease-in-out infinite;
}
@keyframes hudPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.os-shell.os-hud .hud-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--gold-hi);
  text-shadow: 0 0 18px rgba(212,175,105,0.35);
}
.os-shell.os-hud .hud-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.os-shell.os-hud .hud-btn {
  border-color: rgba(212,175,105,0.35);
  color: var(--gold);
}

.os-shell.os-hud .hud-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1.2fr) minmax(260px, 0.95fr);
  gap: 12px;
  align-items: start;
}
.os-shell.os-hud .hud-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.os-shell.os-hud .hud-panel {
  padding: 12px 14px 14px;
}
.os-shell.os-hud .hud-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.os-shell.os-hud .hud-panel-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

/* KPI strip */
.os-shell.os-hud .hud-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 12px;
}
.os-shell.os-hud .hud-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding-right: 8px;
}
.os-shell.os-hud .hud-kpi:last-child { border-right: none; padding-right: 0; }
.os-shell.os-hud .hud-kpi-l {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.os-shell.os-hud .hud-kpi-v {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--gold-hi);
  text-shadow: 0 0 12px rgba(212,175,105,0.25);
}
.os-shell.os-hud .hud-kpi-d {
  font-size: 10px;
  color: var(--dim);
}

.os-shell.os-hud .hud-chart-meta {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.os-shell.os-hud .hud-chart-meta b {
  font-size: 16px;
  color: var(--gold);
}
.os-shell.os-hud .hud-area-chart,
.os-shell.os-hud .hud-wave,
.os-shell.os-hud .hud-peak {
  min-height: 100px;
  width: 100%;
}
.os-shell.os-hud .hud-svg-chart {
  width: 100%;
  height: 120px;
  display: block;
}
.os-shell.os-hud .hud-wave .hud-svg-chart { height: 90px; }
.os-shell.os-hud .hud-peak .hud-svg-chart { height: 88px; }
.os-shell.os-hud .hud-svg-label {
  fill: #55555c;
  font-size: 7px;
  font-family: ui-monospace, Menlo, monospace;
}
.os-shell.os-hud .hud-wave-legend,
.os-shell.os-hud .hud-cal-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
.os-shell.os-hud .hud-leg {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 1px;
}
.os-shell.os-hud .hud-leg.gold { background: var(--gold); box-shadow: 0 0 6px rgba(212,175,105,0.6); }
.os-shell.os-hud .hud-leg.orange { background: var(--hud-orange); box-shadow: 0 0 6px rgba(240,122,58,0.5); }

.os-shell.os-hud .hud-search {
  min-width: 0;
  width: 140px;
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 2px;
  background: rgba(0,0,0,0.35);
}
.os-shell.os-hud .hud-table {
  font-size: 12px;
}
.os-shell.os-hud .hud-table th {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
}
.os-shell.os-hud .hud-table td {
  padding: 8px 8px;
  border-bottom-color: rgba(255,255,255,0.05);
}
.os-shell.os-hud .hud-status {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
}
.os-shell.os-hud .hud-status.st-ok {
  color: var(--hud-green);
  border-color: rgba(93,206,160,0.35);
}
.os-shell.os-hud .hud-status.st-warn {
  color: var(--hud-orange);
  border-color: rgba(240,122,58,0.4);
}
.os-shell.os-hud .hud-status.st-dungeon {
  color: var(--gold);
  border-color: rgba(212,175,105,0.4);
}
.os-shell.os-hud .hud-status.st-draft {
  color: var(--dim);
}

/* Center globe */
.os-shell.os-hud .hud-globe-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 18px;
}
.os-shell.os-hud .hud-globe-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: 0 0 14px rgba(212,175,105,0.4);
}
.os-shell.os-hud .hud-globe-wrap {
  width: min(100%, 440px);
  aspect-ratio: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.os-shell.os-hud .hud-globe-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(212,175,105,0.12));
}
.os-shell.os-hud .hud-spike {
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(212,175,105,0.8));
}
.os-shell.os-hud .hud-node-lit {
  fill: var(--gold-hi);
  filter: drop-shadow(0 0 5px rgba(212,175,105,0.9));
}
.os-shell.os-hud .hud-node-idle {
  fill: rgba(255,255,255,0.2);
}
.os-shell.os-hud .hud-node-label {
  fill: var(--gold-hi);
  font-size: 3.2px;
  text-anchor: middle;
  font-family: ui-monospace, Menlo, monospace;
}
.os-shell.os-hud .hud-arc {
  fill: none;
  stroke: rgba(212,175,105,0.28);
  stroke-width: 0.35;
}
.os-shell.os-hud .hud-globe-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  text-align: center;
}
.os-shell.os-hud .hud-globe-stats .fine { display: block; margin-bottom: 2px; }
.os-shell.os-hud .hud-globe-stats b {
  font-size: 16px;
  color: var(--gold-hi);
}
.os-shell.os-hud .hud-globe-hint {
  margin: 10px 0 0;
  text-align: center;
}

/* Early warning rings */
.os-shell.os-hud .hud-warn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.os-shell.os-hud .hud-warn {
  position: relative;
  text-align: center;
  padding: 4px 2px 6px;
}
.os-shell.os-hud .hud-warn-ring {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto;
}
.os-shell.os-hud .hud-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 3;
}
.os-shell.os-hud .hud-ring-fg {
  fill: none;
  stroke: var(--hud-green);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 36px 36px;
  transition: stroke 0.3s, stroke-dasharray 0.4s;
}
.os-shell.os-hud .hud-warn.calm .hud-ring-fg { stroke: var(--hud-green); }
.os-shell.os-hud .hud-warn.alert .hud-ring-fg { stroke: var(--hud-orange); }
.os-shell.os-hud .hud-warn.alert[data-warn="plays"] .hud-ring-fg { stroke: var(--hud-red); }
.os-shell.os-hud .hud-warn-val {
  position: absolute;
  top: 22px;
  left: 0; right: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.os-shell.os-hud .hud-warn-label {
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.25;
}

.os-shell.os-hud .hud-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.os-shell.os-hud .hud-profile-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.os-shell.os-hud .hud-profile-meta b { font-size: 14px; }
.os-shell.os-hud .hud-profile-meta small { color: var(--muted); font-size: 11px; }
.os-shell.os-hud .hud-profile-meta .hud-mono {
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-shell.os-hud .hud-bot-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.os-shell.os-hud .hud-bot-list .os-bot-btn {
  border-radius: 2px;
  padding: 9px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.03);
}
.os-shell.os-hud .hud-bot-list .os-bot-primary {
  grid-column: 1 / -1;
  border-radius: 2px;
  margin-top: 2px;
}

/* Schedule calendar */
.os-shell.os-hud .hud-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 9px;
  color: var(--dim);
  font-family: ui-monospace, Menlo, monospace;
}
.os-shell.os-hud .hud-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.os-shell.os-hud .hud-cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  border: 1px solid transparent;
}
.os-shell.os-hud .hud-cal-cell.empty { visibility: hidden; }
.os-shell.os-hud .hud-cal-cell.today {
  color: #fff;
  border-color: rgba(212,175,105,0.45);
}
.os-shell.os-hud .hud-cal-cell em {
  font-style: normal;
  position: relative;
  z-index: 1;
}
.os-shell.os-hud .hud-cal-dot {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  opacity: 0;
}
.os-shell.os-hud .hud-cal-cell.thu .hud-cal-dot {
  opacity: 1;
  background: rgba(212,175,105,0.28);
  box-shadow: 0 0 8px rgba(212,175,105,0.35);
}
.os-shell.os-hud .hud-cal-cell.fri .hud-cal-dot {
  opacity: 1;
  background: rgba(240,122,58,0.28);
  box-shadow: 0 0 8px rgba(240,122,58,0.35);
}
.os-shell.os-hud .hud-cal-cell.thu em { color: var(--gold-hi); }
.os-shell.os-hud .hud-cal-cell.fri em { color: #ffb088; }

.os-shell.os-hud .os-chart-empty {
  padding: 28px 12px;
}

@media (max-width: 1280px) {
  .os-shell.os-hud .hud-grid {
    grid-template-columns: 1fr 1fr;
  }
  .os-shell.os-hud .hud-col-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .os-shell.os-hud .hud-globe-panel { min-height: 340px; }
}
@media (max-width: 1099px) {
  .os-shell.os-hud .os-layout {
    grid-template-columns: var(--os-nav-w) 1fr;
  }
}
@media (max-width: 900px) {
  .os-shell.os-hud .hud-grid { grid-template-columns: 1fr; }
  .os-shell.os-hud .hud-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .os-shell.os-hud .hud-kpi:nth-child(2) { border-right: none; }
  .os-shell.os-hud .hud-topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .os-shell.os-hud .hud-topbar-left,
  .os-shell.os-hud .hud-topbar-right { justify-content: center; }
}
@media (max-width: 860px) {
  .os-shell.os-hud .os-layout { grid-template-columns: 1fr; }
  .os-shell.os-hud .os-nav { display: none; }
}


/* ═══════════════════════════════════════════
   Listen — Amplify glass playlist (OTN gold)
   ═══════════════════════════════════════════ */
.glass-soft {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.glass-panel {
  background: rgba(18, 18, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.35);
  border-radius: 28px;
}

.playlist-shell {
  padding: 28px 28px 20px;
  margin-bottom: 24px;
}

.playlist-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.playlist-hero-copy { flex: 1; min-width: 0; }
.playlist-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 650;
  letter-spacing: -1.1px;
  margin: 8px 0 10px;
  background: linear-gradient(180deg, #fff 30%, #b8b8be);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.playlist-meta {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 8px;
  max-width: 42ch;
}
.playlist-manifesto {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px;
  max-width: 46ch;
}
.playlist-cover {
  flex-shrink: 0;
  width: 148px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.playlist-cover-mark {
  width: 148px;
  height: 148px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 32% 28%, #efd694, #9a7534 62%, #5c4318 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 18px 40px rgba(212, 175, 105, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.playlist-cover:hover .playlist-cover-mark {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.16) inset,
    0 22px 48px rgba(212, 175, 105, 0.4);
}
.playlist-cover .opie-hero-face {
  font-size: 52px;
  font-weight: 700;
  color: #120e08;
  letter-spacing: -0.06em;
}
.playlist-cover-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.playlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.playlist-toolbar-left,
.playlist-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.playlist-count {
  font-size: 13px;
  color: var(--muted);
  min-height: 1.2em;
}
.playlist-count.error { color: var(--bad); }
.toolbar-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Playlist rows */
.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}
.pl-row {
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), border-color 0.18s;
}
.pl-row:hover {
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.06);
}
.pl-row.is-playing {
  background: rgba(212, 175, 105, 0.08);
  border-color: rgba(212, 175, 105, 0.22);
}
.pl-row.is-open {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  margin-bottom: 6px;
}
.pl-row-main {
  display: grid;
  grid-template-columns: 36px 48px minmax(0, 1fr) 52px 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  width: 100%;
}
.pl-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pl-row.is-playing .pl-num { color: var(--gold); }
.pl-face-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  line-height: 0;
}
.pl-face {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: #141210;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.pl-row.is-playing .pl-face {
  box-shadow: 0 0 0 2px rgba(212,175,105,0.45), 0 8px 20px rgba(212,175,105,0.2);
}
.pl-info {
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0;
}
.pl-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-guest {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-punch {
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-dur {
  font-size: 12px;
  color: var(--dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pl-expand {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pl-row-main { cursor: pointer; }
.pl-face-btn, .pl-info { min-height: 44px; }
.pl-expand:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.pl-row.is-open .pl-expand {
  color: var(--gold-hi);
  background: rgba(212,175,105,0.1);
  border-color: rgba(212,175,105,0.25);
}

.pl-detail {
  padding: 4px 14px 16px 96px;
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin: 0 8px 4px;
}
.pl-detail-block .hub-kicker { margin-bottom: 6px; }
.pl-notes {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}
.pl-book-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-hi);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(212,175,105,0.35);
  padding-bottom: 1px;
}
.pl-book-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.4); }
.pl-book-static {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.pl-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  cursor: pointer;
  font-size: 12.5px;
}
.pl-stamp small { color: var(--gold); font-variant-numeric: tabular-nums; }
.pl-stamp:hover {
  border-color: rgba(212,175,105,0.4);
  background: rgba(212,175,105,0.1);
}

.playlist-empty { margin: 12px 0 8px; border-radius: 22px; }

/* Soften continue + player to match glass */
.continue-hero { border-radius: 20px; margin: 12px 0; }
.player-card { border-radius: 18px; margin: 12px 0 16px; }

/* Learning strip under player */
.learn-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 16px 16px;
}
.learn-chip {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.learn-chip:hover { border-color: rgba(212,175,105,0.45); background: rgba(212,175,105,0.1); }
.learn-chip.is-dim { opacity: 0.55; }
.learn-drawer {
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 18px;
}
.learn-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.learn-drawer-body { min-height: 24px; }

/* Skeletons */
.skel-list { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 16px; }
.skel-row {
  height: 64px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: skel-shimmer 1.2s ease-in-out infinite;
}
@keyframes skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skel-row { animation: none; }
}

/* Next-up toast */
.listen-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(110px + env(safe-area-inset-bottom));
  z-index: 30;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(20,18,14,0.92);
  border: 1px solid rgba(212,175,105,0.35);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.dungeon-shell.has-dock .listen-toast {
  bottom: calc(118px + env(safe-area-inset-bottom));
}

/* Bottom dock player — clear, ad-free */
.dock-player {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 25;
  width: min(920px, calc(100vw - 32px));
  border-radius: 22px;
  padding: 0 16px 12px;
  overflow: hidden;
}
@media (min-width: 861px) {
  .dock-player {
    left: calc(var(--nav-w) + (100vw - var(--nav-w)) / 2);
    width: min(860px, calc(100vw - var(--nav-w) - 48px));
  }
  .dungeon-shell.has-dock .app-main { padding-bottom: 120px; }
  .dungeon-shell.has-dock .listen-toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
}
.dock-progress-track {
  height: 3px;
  margin: 0 -16px 10px;
  background: rgba(255,255,255,0.08);
}
.dock-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9a7534, #d4af69);
  transition: width 0.35s linear;
}
@media (prefers-reduced-motion: reduce) {
  .dock-progress-fill { transition: none; }
}
.dock-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(90px, auto);
  align-items: center;
  gap: 14px;
}
.dock-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dock-face {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #141210;
  border: 1px solid rgba(255,255,255,0.1);
}
.dock-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dock-copy b {
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dock-copy small {
  color: var(--muted); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dock-adfree {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: 2px;
}
.dock-controls { display: flex; align-items: center; gap: 10px; }
.dock-btn {
  min-width: 44px; min-height: 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
.dock-btn:hover { border-color: rgba(212,175,105,0.4); background: rgba(212,175,105,0.1); }
.dock-play {
  width: 56px; height: 56px; min-width: 56px; min-height: 56px;
  background: linear-gradient(100deg, #9a7534, #d4af69);
  color: #120e08;
  border-color: transparent;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(212,175,105,0.35);
}
#dock-next {
  width: auto; min-width: 64px; border-radius: 999px; padding: 0 16px;
}
.dock-btn.ghost {
  width: auto;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
}
.dock-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .playlist-shell { padding: 20px 16px 14px; border-radius: 24px; }
  .continue-face { width: 72px; height: 72px; border-radius: 16px; }
  .continue-copy b { font-size: 17px; }
  .pl-row-main {
    grid-template-columns: 28px 44px minmax(0, 1fr) 44px;
    gap: 8px;
    min-height: 56px;
  }
  .pl-dur { display: none; }
  .pl-detail { padding-left: 16px; padding-right: 8px; }
  .dock-player {
    width: min(420px, calc(100vw - 20px));
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 0 12px 10px;
  }
  .dungeon-shell.has-dock .dock-player {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .dungeon-shell.has-dock .listen-toast {
    bottom: calc(168px + env(safe-area-inset-bottom));
  }
  .dock-body { grid-template-columns: minmax(0, 1fr) auto; }
  .dock-status { display: none; }
  .dock-adfree { display: none; }
}

@media (min-width: 861px) {
  .dungeon-shell .view#home { padding-right: 56px; }
}

/* ============================================================
   Dungeon fitness home (OTN gold) — listener dashboard
   ============================================================ */
:root {
  --fit-card: #141416;
  --fit-card-2: #1a1a1e;
  --lime-gold: #e8d48b;
  --accent-streak: #e8a05c;
  --accent-done: #6bb8e8;
}

.fit-shell {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 8px 0 24px;
}

@media (min-width: 861px) {
  .dungeon-shell .view#home {
    max-width: none;
    padding-top: 28px;
    padding-right: 36px;
  }
  .fit-shell {
    width: min(480px, 100%);
  }
  /* Wider IA on large screens without breaking mobile cards */
  .dungeon-shell.view-home .fit-shell {
    width: min(560px, 100%);
  }
}

.fit-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 0 2px;
}
.fit-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #120e08;
  background: linear-gradient(135deg, #9a7534, #d4af69 55%, #efd694);
  box-shadow: 0 0 18px rgba(212, 175, 105, 0.35);
}
.fit-greet {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fit-greet b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.fit-greet span {
  font-size: 13.5px;
  color: var(--muted);
}
.fit-bell {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fit-bell:hover {
  border-color: rgba(212, 175, 105, 0.4);
  background: rgba(212, 175, 105, 0.1);
}

/* Week strip */
.week-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.week-strip::-webkit-scrollbar { display: none; }
.week-pill {
  flex: 1 0 auto;
  min-width: 48px;
  padding: 10px 8px 8px;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.week-pill-day {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.week-pill-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.week-pill.is-active {
  background: var(--gold);
  color: #120e08;
  box-shadow: 0 0 20px rgba(212, 175, 105, 0.45);
}
.week-pill.is-active .week-pill-date { color: #120e08; }
.week-pill.is-active.is-drop,
.week-pill.is-drop.is-active {
  background: linear-gradient(160deg, #efd694, #d4af69 40%, #c4f06a);
  box-shadow: 0 0 22px rgba(196, 240, 106, 0.35), 0 0 18px rgba(212, 175, 105, 0.4);
}
.week-pill.is-drop:not(.is-active) .week-pill-date {
  color: var(--gold-hi);
}
.week-pill-drop {
  position: absolute;
  bottom: -2px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}
.week-pill.is-active .week-pill-drop { color: #3a2a08; }

.fit-section { margin-bottom: 22px; }
.fit-section-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}
.fit-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.fit-section-row .fit-section-title { margin: 0; }

.fit-card {
  background: var(--fit-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.fit-card-lg { margin-bottom: 12px; }
.fit-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.fit-card-ico {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(212, 175, 105, 0.18);
  color: var(--gold-hi);
}
.fit-card-ico.accent-streak {
  background: rgba(232, 160, 92, 0.2);
  color: var(--accent-streak);
}
.fit-card-ico.accent-done {
  background: rgba(107, 184, 232, 0.2);
  color: var(--accent-done);
}
.fit-chev { margin-left: auto; font-size: 18px; opacity: 0.5; }
.fit-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.fit-card-stats b {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.fit-card-stats small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.fit-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
  flex-shrink: 0;
}
.fit-bar {
  width: 10px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--lime-gold), var(--gold-dim));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 8px;
  position: relative;
}
.fit-bar.is-today {
  background: linear-gradient(180deg, #c4f06a, #d4af69);
  box-shadow: 0 0 10px rgba(196, 240, 106, 0.35);
}
.fit-bar i {
  position: absolute;
  bottom: -14px;
  font-style: normal;
  font-size: 8px;
  color: var(--dim);
  font-weight: 600;
}
.fit-card-lg { padding-bottom: 28px; }

.fit-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fit-mini {
  min-height: 118px;
  padding: 14px 16px 16px;
}
.fit-mini-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.fit-ring {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    conic-gradient(var(--ring-color, var(--gold)) var(--ring, 0%), rgba(255, 255, 255, 0.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
.fit-ring.accent-streak { --ring-color: var(--accent-streak); }
.fit-ring.accent-done { --ring-color: var(--accent-done); }

/* Trending carousel */
.trend-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.trend-carousel::-webkit-scrollbar { display: none; }
.trend-card {
  flex: 0 0 min(78%, 300px);
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: var(--fit-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  height: 210px;
  cursor: pointer;
}
.trend-card.is-continue {
  border-color: rgba(212, 175, 105, 0.35);
  box-shadow: 0 0 24px rgba(212, 175, 105, 0.12);
}
.trend-card.is-opie {
  background: linear-gradient(160deg, #1a1610, #0e0e10 60%);
  border-color: rgba(212, 175, 105, 0.28);
}
.trend-face-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0a0b;
}
.trend-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trend-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}
.trend-copy {
  position: absolute;
  left: 14px;
  right: 100px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trend-card .trend-copy {
  position: absolute;
  left: 14px;
  right: 100px;
  bottom: 16px;
  z-index: 1;
}
.trend-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}
.trend-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trend-punch {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trend-cta {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 2;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: #120e08;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(212, 175, 105, 0.4);
}
.trend-cta:hover {
  background: var(--gold-hi);
}
.trend-card.is-opie .trend-cta {
  background: linear-gradient(100deg, #9a7534, #d4af69);
}

.fit-episodes .playlist-count {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Dock ABOVE pill nav — no collision */
@media (max-width: 860px) {
  .mobile-nav.pill-nav {
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 40;
  }
  .dock-player {
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 35;
    width: min(420px, calc(100vw - 20px));
  }
  .dungeon-shell.has-dock .dock-player {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .dungeon-shell.has-dock .mobile-nav.pill-nav {
    /* stay pinned at bottom — dock floats above */
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .dungeon-shell.has-dock .app-main {
    padding-bottom: 200px;
  }
  .dungeon-shell.has-dock .listen-toast {
    bottom: calc(168px + env(safe-area-inset-bottom));
  }
  .dungeon-shell .view#home {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 120px;
  }
  .dungeon-shell .view#listen {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 861px) {
  .dock-player {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .dungeon-shell.has-dock .app-main {
    padding-bottom: 130px;
  }
}

/* Active Home/Listen pill uses gold like mock lime */
.mobile-nav.pill-nav .navb.active {
  color: #120e08;
  background: var(--gold);
  border: 1px solid transparent;
  box-shadow: 0 0 18px rgba(212, 175, 105, 0.4);
  font-weight: 700;
}
.mobile-nav.pill-nav .navb.active .nav-ico-pill {
  color: #120e08;
}


/* Episode description blurb — 1–2 lines */
.ep-blurb {
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.45;
  max-width: 62ch;
}
.pl-ep-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.os-toast {
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 40;
}
@media (min-width: 861px) {
  .os-toast { bottom: 28px; }
}

/* —— Newsletter join pages —— */
.nl-body { min-height: 100vh; }
.nl-page {
  position: relative; z-index: 1;
  width: min(1080px, 94vw);
  margin: 0 auto;
  padding: 28px 0 64px;
}
.nl-page-center {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  width: min(520px, 94vw);
  padding: 40px 0;
}
.nl-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.nl-brand {
  display: inline-flex; align-items: center; gap: 12px;
  letter-spacing: .22em; font-size: 11px; font-weight: 600;
}
.nl-main {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .nl-main { grid-template-columns: 1fr; }
}
.nl-hero {
  padding: 28px 28px 24px;
  animation: rise .45s var(--ease) both;
}
.nl-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 8px 0 14px;
}
.gold-word {
  background: linear-gradient(100deg, #ac8443, #e8c882, #ac8443);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
.nl-kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}
.nl-lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
  margin-bottom: 18px;
}
.nl-art-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 0 22px;
  background: #0a0a0c;
}
.nl-art-wrap.sm { margin: 18px 0 8px; }
.nl-art {
  display: block; width: 100%; height: auto;
}
.nl-form { margin-top: 4px; }
.nl-label {
  display: block; font-size: 12px; color: var(--dim);
  margin-bottom: 8px; letter-spacing: .04em;
}
.nl-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.nl-row input {
  flex: 1 1 220px;
  min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.nl-row input:focus {
  border-color: rgba(212,175,105,.55);
  box-shadow: 0 0 0 3px rgba(212,175,105,.12);
}
.nl-fine {
  color: var(--dim);
  font-size: 12px;
  margin-top: 10px;
}
.nl-beats {
  list-style: none;
  margin-top: 26px;
  display: grid; gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.nl-beats li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
}
.nl-beats b {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.nl-aside { display: grid; gap: 14px; }
.nl-aside-card { padding: 18px 18px 16px; }
.nl-aside-card h2 {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px; color: var(--gold-hi);
}
.nl-aside-card p { color: var(--muted); font-size: 13px; }
.nl-foot {
  margin-top: 36px;
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--dim); font-size: 12px; flex-wrap: wrap;
}
.nl-foot .dim { color: var(--dim); }
.nl-status-card {
  width: 100%;
  padding: 32px 28px 28px;
  text-align: center;
  animation: rise .45s var(--ease) both;
}
.nl-status-card h1 {
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.nl-status-card .nl-lead { margin: 0 auto 10px; }
.nl-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px;
}
.btn.sm { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--border-hi); background: var(--glass); }
.form-status { margin-top: 10px; font-size: 13px; }
.form-status.good { color: var(--good); }
.form-status.bad { color: var(--bad); }
.form-status.hidden, .hidden { display: none !important; }

/* Newsletter aliases / polish */
.btn.sm { padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.nl-aside-card { padding: 18px 18px 16px; }
.nl-aside-card h2 {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px; color: var(--gold-hi, var(--gold));
}
.nl-aside-card p { color: var(--muted); font-size: 13px; }
.nl-foot {
  margin-top: 36px;
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--dim); font-size: 12px; flex-wrap: wrap;
}
.nl-status-card {
  width: 100%;
  padding: 32px 28px 28px;
  text-align: center;
  animation: rise .45s var(--ease, ease) both;
}
.nl-status-card h1 {
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.nl-page-center {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  width: min(520px, 94vw);
  margin: 0 auto;
  padding: 40px 0;
  position: relative; z-index: 1;
}
.hidden { display: none !important; }


/* Beehiiv embed on newsletter join */
.nl-beehiiv .beehiiv-embed {
  min-height: 72px;
  margin: 4px 0 8px;
}
.nl-beehiiv iframe,
.nl-beehiiv form {
  width: 100% !important;
  max-width: 100%;
}

/* ============================================================
   OP — The OTN Index (Dungeon listen home)
   Black archive chrome with OTN gold accents.
   ============================================================ */
.op-index-shell {
  flex-direction: column;
  overflow-x: hidden;
  background: #000;
}
.op-index-shell::before {
  background: none !important;
}
.op-index-shell .year-dial-host {
  display: none !important;
}
.op-index-shell .side-nav { display: none !important; }

.op-topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.op-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #fff;
}
.op-brand-mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.op-brand-stack {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  line-height: 1.35;
}
.op-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.op-nav-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  position: relative;
  border-radius: 6px;
}
.op-nav-link:hover { color: var(--gold-hi); }
.op-nav-link.active {
  color: var(--gold-hi);
}
.op-nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1.5px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,175,105,0.45);
}
.op-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.op-nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 7px 10px 7px 12px;
  min-width: 220px;
  max-width: 280px;
  color: rgba(255,255,255,0.45);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.op-nav-search:focus-within {
  border-color: rgba(212,175,105,0.55);
  box-shadow: 0 0 0 3px rgba(212,175,105,0.12);
  color: var(--gold-hi);
}
.op-nav-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
}
.op-nav-search input::placeholder { color: rgba(255,255,255,0.35); }
.op-kbd {
  font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.op-nav-acct {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
  max-width: 72px;
}
.op-nav-acct:hover { border-color: rgba(212,175,105,0.55); color: var(--gold-hi); }
.op-nav-os {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
}
.op-nav-os:hover { color: var(--gold-hi); border-color: rgba(212,175,105,0.45); }

.op-index-shell .op-main {
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.op-index-shell .view {
  max-width: none;
  padding: 0;
  margin: 0 auto;
}
.op-index-shell .view#listen,
.op-index-shell .view#opie,
.op-index-shell .view#account {
  max-width: 920px;
  padding: 28px 24px 120px;
}

.op-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 32px 140px;
}

/* Hero */
.op-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  min-height: 420px;
  margin-bottom: 56px;
}
.op-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 8px 24px 0;
  max-width: 560px;
}
.op-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 10px;
}
.op-hero-title {
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 18px;
}
.op-brand-mark { color: var(--gold-hi); }
.op-hero-tag {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  margin: 0 0 28px;
  max-width: 420px;
}
.op-hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px 10px 10px 16px;
  margin-bottom: 18px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.op-hero-search:focus-within {
  border-color: rgba(212,175,105,0.55);
  box-shadow: 0 0 0 3px rgba(212,175,105,0.14);
}
.op-hero-search:focus-within .op-ico { color: var(--gold); }
.op-hero-search .op-ico { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.op-hero-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  padding: 8px 0;
}
.op-hero-search input::placeholder { color: rgba(255,255,255,0.32); }
.op-hero-submit {
  width: 42px;
  height: 42px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.op-hero-submit:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold-hi);
  box-shadow: 0 0 16px rgba(212,175,105,0.35);
}
.op-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.op-try-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
}
.op-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.op-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
}
.op-pill:hover,
.op-pill.is-active {
  color: var(--gold-hi);
  border-color: rgba(212,175,105,0.55);
  background: rgba(212,175,105,0.1);
}

.op-hero-visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 4px;
}
.op-mountain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) contrast(1.15) brightness(0.72);
}
.op-mountain-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, transparent 28%, transparent 70%, #000 100%),
    linear-gradient(180deg, #000 0%, transparent 22%, transparent 65%, #000 100%),
    linear-gradient(225deg, transparent 40%, #000 100%);
  pointer-events: none;
}
.op-hero-vert {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.55);
  z-index: 2;
}
.op-hero-vert i {
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.35);
}

/* Browse cards */
.op-browse { margin-bottom: 48px; }
.op-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 18px;
}
.op-section-title::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-left: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}
.op-section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.op-section-row .op-section-title { margin: 0; }
.op-view-all {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.op-view-all:hover { color: var(--gold-hi); }

.op-browse-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.op-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  padding: 16px 14px 14px;
  min-height: 168px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.op-cat-card:hover,
.op-cat-card.is-active {
  border-color: rgba(212,175,105,0.55);
  background: rgba(212,175,105,0.06);
  box-shadow: 0 0 24px rgba(212,175,105,0.12);
}
.op-cat-card.is-active .op-cat-ico,
.op-cat-card:hover .op-cat-ico { color: var(--gold-hi); }
.op-cat-card.is-active .op-cat-title,
.op-cat-card:hover .op-cat-arrow { color: var(--gold-hi); }
.op-cat-ico {
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.op-cat-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.op-cat-stats {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
}
.op-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
}
.op-cat-chip {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.op-cat-chip:hover {
  color: var(--gold-hi);
  border-color: rgba(212,175,105,0.5);
  background: rgba(212,175,105,0.08);
}
.op-cat-arrow {
  align-self: flex-end;
  color: rgba(255,255,255,0.35);
  font-size: 16px;
  line-height: 1;
  margin-top: 4px;
}

/* Columns */
.op-columns {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 36px;
  align-items: start;
}
.op-filter-status { margin-bottom: 10px; min-height: 1.2em; }

.op-featured-list { display: flex; flex-direction: column; gap: 0; }
.op-feat-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  color: inherit;
}
.op-feat-row:hover { background: rgba(212,175,105,0.04); }
.op-feat-row.is-playing {
  border-bottom-color: rgba(212,175,105,0.25);
}
.op-feat-row.is-playing .op-feat-title { color: var(--gold-hi); }
.op-feat-row.is-playing .op-feat-ep,
.op-feat-row.is-playing .op-feat-play { color: var(--gold); }
.op-feat-face {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.1);
  background: #111;
}
.op-feat-body { min-width: 0; }
.op-feat-ep {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(212,175,105,0.65);
  margin-bottom: 4px;
}
.op-feat-title {
  display: block;
  font-size: 15px;
  font-weight: 650;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-feat-tags {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-feat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}
.op-feat-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
}
.op-feat-counts { white-space: nowrap; }

.op-sidebar { display: flex; flex-direction: column; gap: 16px; }
.op-quote-card {
  margin: 0;
  padding: 28px 24px;
  border: 1px solid rgba(212,175,105,0.28);
  border-radius: 12px;
  background: rgba(212,175,105,0.04);
  box-shadow: inset 0 0 0 1px rgba(212,175,105,0.06);
}
.op-quote-card p {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.45;
  font-style: italic;
  color: #fff;
  margin: 0 0 18px;
}
.op-quote-card footer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-style: normal;
  font-family: inherit;
}

.op-glance-card {
  padding: 22px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.op-glance-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.op-glance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
}
.op-glance-cell b {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}
.op-glance-cell span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.op-glance-fine {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
}

.op-brand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}
.op-brand-foot-op {
  font-size: 16px;
  letter-spacing: -0.04em;
  color: var(--gold-hi);
}

/* Dock tuck — monochrome, less glass clash */
.op-index-shell .dock-player {
  border-color: rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px);
}
.op-index-shell .dock-player .dock-adfree { color: rgba(255,255,255,0.35); }
.op-index-shell .mobile-nav.pill-nav .navb.active {
  color: #111;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(212,175,105,0.35);
}
.op-index-shell .mobile-nav.pill-nav .navb.active .nav-ico-pill { color: #111; }
.op-index-shell .dock-progress-fill {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-hi));
}

@media (max-width: 1100px) {
  .op-browse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .op-hero { grid-template-columns: 1fr; min-height: 0; }
  .op-hero-visual {
    min-height: 240px;
    order: -1;
    max-height: 280px;
  }
  .op-hero-copy { max-width: none; padding: 8px 0 0; }
  .op-columns { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 820px) {
  .op-topnav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }
  .op-nav-center {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .op-nav-center::-webkit-scrollbar { display: none; }
  .op-nav-search { min-width: 0; max-width: none; flex: 1; }
  .op-kbd { display: none; }
  .op-shell { padding: 20px 16px 160px; }
  .op-browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-feat-row { grid-template-columns: 48px 1fr; }
  .op-feat-meta { display: none; }
  .op-feat-face { width: 48px; height: 48px; }
  .op-hero-title { font-size: 72px; }
  .op-index-shell .view#listen,
  .op-index-shell .view#opie,
  .op-index-shell .view#account {
    padding: 20px 16px 160px;
  }
}
@media (max-width: 480px) {
  .op-browse-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .op-cat-card { min-height: 148px; padding: 12px; }
  .op-hero-vert { font-size: 8px; left: 4px; }
}


/* —— OP Index directories (People / Topics / Books) —— */
.op-directory {
  margin-bottom: 40px;
}
.op-directory.hidden { display: none !important; }
.op-directory-body { margin-top: 4px; }
.op-dir-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.op-dir-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  color: #fff;
  cursor: pointer;
  width: 100%;
  font: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.op-dir-card:hover {
  border-color: rgba(212,175,105,0.5);
  background: rgba(212,175,105,0.06);
  box-shadow: 0 0 20px rgba(212,175,105,0.1);
}
.op-dir-face {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.05);
  border: 1px solid rgba(212,175,105,0.25);
  flex-shrink: 0;
  background: #111;
}
.op-dir-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  background: rgba(212,175,105,0.1);
  border: 1px solid rgba(212,175,105,0.3);
  flex-shrink: 0;
}
.op-dir-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.op-dir-copy b {
  font-size: 14px;
  font-weight: 650;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-dir-copy span {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op-dir-go {
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}
.op-dir-topics-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.op-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.op-topic-chip em {
  font-style: normal;
  font-size: 11px;
  color: rgba(212,175,105,0.75);
}
.op-topic-chip:hover {
  color: var(--gold-hi);
  border-color: rgba(212,175,105,0.5);
  background: rgba(212,175,105,0.1);
}
.op-book-mark {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  filter: grayscale(0.3);
}
.op-book-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.op-dir-amazon {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.op-dir-amazon:hover { color: var(--gold-hi); text-decoration: underline; }
.op-dir-open {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(212,175,105,0.4);
  background: rgba(212,175,105,0.1);
  color: var(--gold-hi);
  cursor: pointer;
  font-family: inherit;
}
.op-dir-open:hover {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}
.op-empty {
  padding: 28px 18px;
  border: 1px dashed rgba(212,175,105,0.3);
  border-radius: 12px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}
.op-empty p { margin: 0 0 10px; }
.op-hero-vert i {
  background: linear-gradient(180deg, var(--gold), transparent) !important;
}
.op-glance-cell b { color: #fff; }
.op-glance-title { color: rgba(212,175,105,0.7); }

@media (max-width: 820px) {
  .op-dir-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   Podcast OS — Overview home (soft launch)
   Scoped to .os-shell.os-podos
   ═══════════════════════════════════════════ */
.os-shell.os-podos {
  --os-nav-w: 210px;
  --os-rail-w: 300px;
  --podos-orange: #f07a3a;
  --yt: #ff0033;
  --spotify: #1db954;
  --ig: #e1306c;
  --tiktok: #69c9d0;
  --x: #e7e9ea;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.os-shell.os-podos.app-body { display: flex; flex-direction: column; }
.os-shell.os-podos:not(.os-unlocked) .podos-topbar,
.os-shell.os-podos:not(.os-unlocked) .podos-layout,
.os-shell.os-podos:not(.os-unlocked) .mobile-nav { visibility: hidden; pointer-events: none; }

/* Top bar */
.podos-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.55);
  z-index: 20;
  flex-shrink: 0;
}
.podos-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}
.podos-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.podos-brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--gold-hi);
}
.podos-brand-copy span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.podos-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.podos-tab {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.podos-tab:hover { color: var(--text); background: var(--glass); }
.podos-tab.active {
  color: #111;
  background: linear-gradient(100deg, #9a7534, #d4af69);
  font-weight: 600;
}
.podos-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.podos-icon-btn {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.podos-icon-btn:hover { color: var(--text); border-color: var(--border-hi); }
.podos-kbd {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.podos-tj-wrap { position: relative; }
.podos-tj-badge {
  background: linear-gradient(135deg, #9a7534, #d4af69);
  color: #111;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(212,175,105,0.35);
}
.podos-tj-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #121214;
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 10px;
  z-index: 40;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.podos-tj-menu.hidden { display: none; }
.podos-tj-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.podos-tj-meta b { font-size: 13px; }
.podos-tj-meta span { font-size: 11px; color: var(--muted); word-break: break-all; }
.podos-tj-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}
.podos-tj-item:hover { background: var(--glass); }

/* Layout under topbar */
.os-shell.os-podos .podos-layout {
  grid-template-columns: var(--os-nav-w) 1fr var(--os-rail-w);
  height: auto;
  flex: 1;
  min-height: 0;
}
.os-shell.os-podos .podos-nav {
  background: rgba(0,0,0,0.5);
  padding-top: 14px;
}
.os-shell.os-podos .os-nav .navb.active {
  background: linear-gradient(90deg, rgba(240,122,58,0.16), transparent 85%);
  border-color: rgba(240,122,58,0.14);
}
.os-shell.os-podos .os-nav .navb.active::before {
  background: var(--podos-orange);
  box-shadow: 0 0 12px rgba(240,122,58,0.65);
}
.os-shell.os-podos .os-nav .navb.active .nav-ico { color: var(--podos-orange); }
.nav-ico.plat.yt { color: var(--yt); }
.nav-ico.plat.spotify { color: var(--spotify); }
.nav-ico.plat.ig { color: var(--ig); }
.nav-ico.plat.tiktok { color: var(--tiktok); }
.nav-ico.plat.x { color: var(--x); }
.podos-nav-foot {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  padding: 14px 8px 6px;
}

.os-shell.os-podos .podos-main {
  padding: 18px 22px 28px;
  overflow-y: auto;
  min-height: 0;
}
.os-shell.os-podos .podos-main .view { display: none; }
.os-shell.os-podos .podos-main .view.active { display: block; animation: rise 0.35s var(--ease); }

/* Hero */
.podos-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.podos-headline {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.podos-subhead {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.podos-range {
  font-size: 12px;
  color: var(--gold-hi);
  border: 1px solid rgba(212,175,105,0.28);
  background: rgba(212,175,105,0.08);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}

/* KPI row */
.podos-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.podos-kpi {
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.podos-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.podos-kpi-l {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.podos-kpi-v {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.podos-kpi-delta { color: var(--dim); font-size: 11.5px; }
.podos-spark {
  height: 28px;
  margin-top: 6px;
}
.podos-spark-svg { width: 100%; height: 28px; display: block; }
.podos-spark-empty {
  display: block;
  height: 2px;
  margin-top: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
}

.podos-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.podos-badge.live {
  color: #7ff0aa;
  border-color: rgba(127,240,170,0.35);
  background: rgba(127,240,170,0.08);
}
.podos-badge.demo,
.podos-badge.soft {
  color: var(--podos-orange);
  border-color: rgba(240,122,58,0.35);
  background: rgba(240,122,58,0.08);
}

/* Panels */
.podos-panel {
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}
.podos-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.podos-panel-head h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.podos-plat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.podos-chip {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  cursor: pointer;
}
.podos-chip:hover { color: var(--text); border-color: var(--border-hi); }
.podos-chip.active {
  color: #111;
  background: linear-gradient(100deg, #9a7534, #d4af69);
  border-color: transparent;
  font-weight: 600;
}
.podos-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.podos-chart-meta b { font-size: 18px; font-variant-numeric: tabular-nums; }
.podos-area-chart {
  height: 170px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.podos-svg-chart { width: 100%; height: 100%; display: block; }
.podos-svg-label { fill: rgba(255,255,255,0.35); font-size: 9px; }

/* Table */
.podos-table th {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.podos-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  vertical-align: middle;
}
.podos-ep-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.podos-ep-cell b { display: block; font-size: 13px; }
.podos-ep-cell small { color: var(--muted); font-size: 11.5px; }
.podos-thumb {
  width: 56px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  background: #1a1a1c;
  flex-shrink: 0;
}
.podos-thumb-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(212,175,105,0.25);
}
.podos-plats { display: flex; flex-wrap: wrap; gap: 4px; }
.plat-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.plat-pill.yt { color: #fff; background: rgba(255,0,51,0.25); border-color: rgba(255,0,51,0.4); }
.plat-pill.dungeon { color: var(--gold-hi); border-color: rgba(212,175,105,0.35); }
.plat-pill.exclusive { color: var(--podos-orange); border-color: rgba(240,122,58,0.35); }
.podos-trend { color: var(--gold); font-weight: 600; }

.podos-membership {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.podos-mem { display: flex; flex-direction: column; gap: 2px; }
.podos-mem b { font-size: 18px; }

.podos-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 2px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.podos-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--good);
}
.podos-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px rgba(127,240,170,0.7);
  display: inline-block;
}
.podos-footer-brand {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Right rail */
.podos-rail {
  border-left: 1px solid var(--border);
  background: rgba(0,0,0,0.42);
  padding: 14px 12px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.podos-rail-panel { padding: 14px; }
.podos-social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.podos-social-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
}
.podos-social-list li:hover { background: var(--glass); }
.podos-social-list b { display: block; font-size: 13px; }
.podos-social-list small { color: var(--muted); font-size: 11px; }
.plat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.plat-dot.yt { background: var(--yt); }
.plat-dot.spotify { background: var(--spotify); }
.plat-dot.ig { background: var(--ig); }
.plat-dot.tiktok { background: var(--tiktok); }
.plat-dot.x { background: var(--x); }
.podos-connect {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 8px;
}
.podos-demo-note { margin: 10px 0 0; line-height: 1.4; }

.podos-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.podos-activity li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
}
.podos-activity b { display: block; font-weight: 500; }
.podos-activity small { color: var(--muted); font-size: 11px; }
.podos-act-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212,175,105,0.5);
}

.podos-qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.podos-qa {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 11.5px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.25;
}
.podos-qa span {
  color: var(--gold);
  font-size: 14px;
}
.podos-qa:hover {
  border-color: rgba(212,175,105,0.35);
  background: rgba(212,175,105,0.06);
}

.podos-shell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.podos-shell-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.podos-shell-card h3 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.podos-placeholder { padding: 28px 20px; }

/* Mobile */
@media (max-width: 1100px) {
  .os-shell.os-podos .podos-layout {
    grid-template-columns: var(--os-nav-w) 1fr;
  }
  .podos-rail { display: none; }
  .podos-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .podos-topbar { flex-wrap: wrap; padding: 10px 12px; }
  .podos-tabs { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .podos-topbar-brand { min-width: 0; }
  .os-shell.os-podos .podos-layout {
    grid-template-columns: 1fr;
  }
  .os-shell.os-podos .podos-nav {
    display: none;
    position: fixed;
    inset: 56px auto 56px 0;
    width: min(280px, 84vw);
    z-index: 30;
    box-shadow: 8px 0 40px rgba(0,0,0,0.5);
  }
  .os-shell.os-podos.podos-nav-open .podos-nav { display: flex; }
  .podos-kpi-row { grid-template-columns: 1fr 1fr; }
  .podos-membership { grid-template-columns: repeat(2, 1fr); }
  .podos-hero { flex-direction: column; }
  .os-shell.os-podos .mobile-nav { display: flex; }
  .os-shell.os-podos .podos-main { padding: 14px 12px 72px; }
}
@media (max-width: 480px) {
  .podos-kpi-row { grid-template-columns: 1fr; }
}

.os-shell.os-podos .year-dial-host--os { opacity: 0.85; }


/* OTN session gate — hub */
.app-body.dungeon-shell:not(.session-ready) > *:not(#hub-boot-gate) {
  visibility: hidden !important;
  pointer-events: none !important;
}
#hub-boot-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: #0a0a0a; color: #c9a227;
  font-family: system-ui, sans-serif; font-size: 14px;
}
.app-body.dungeon-shell.session-ready #hub-boot-gate { display: none !important; }

/* Dock scrub — seekable progress */
.dock-progress-track {
  cursor: pointer;
  position: relative;
}
.dock-progress-track:focus-visible {
  outline: 1px solid var(--gold, #c9a227);
  outline-offset: 2px;
}

/* ─── Money OS (Business home) ─── */
.os-shell.os-money {
  --money-green: #22c55e;
  --money-green-dim: rgba(34, 197, 94, 0.15);
  --money-gold: #d4af69;
}
.os-shell.os-money .podos-topbar-brand span { letter-spacing: 0.04em; }
.os-shell.os-money .podos-tj-badge { min-width: auto; padding: 0 12px; font-size: 12px; }
.money-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.money-nav {
  border-right: 1px solid var(--border, #222);
  padding: 16px 12px 24px;
  overflow-y: auto;
  background: rgba(0,0,0,0.25);
}
.money-nav .os-nav-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim, #666); margin: 14px 8px 6px;
}
.money-nav .navb {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 10px;
  border: 0; background: transparent; color: var(--muted, #999);
  font-size: 13px; cursor: pointer;
}
.money-nav .navb:hover { background: rgba(255,255,255,0.04); color: var(--text, #eee); }
.money-nav .navb.active {
  background: rgba(212, 175, 105, 0.12);
  color: var(--money-gold, #d4af69);
  box-shadow: inset 3px 0 0 var(--money-gold, #d4af69);
}
.money-nav .nav-ico { width: 18px; text-align: center; opacity: 0.85; }
.money-main {
  overflow-y: auto; padding: 22px 24px 40px; min-width: 0;
}
.money-rail {
  border-left: 1px solid var(--border, #222);
  overflow-y: auto; padding: 18px 14px 32px;
  background: rgba(0,0,0,0.2);
  display: flex; flex-direction: column; gap: 14px;
}
.money-greet h1 {
  font-size: 26px; font-weight: 650; margin: 0 0 4px; letter-spacing: -0.02em;
}
.money-greet .vsub { margin: 0 0 18px; color: var(--muted, #999); }
.money-kpi-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px;
}
.money-kpi {
  padding: 14px 16px; border-radius: 14px;
  background: var(--card, #141414);
  border: 1px solid var(--border, #222);
}
.money-kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.money-kpi-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.money-kpi-v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.money-kpi-delta { font-size: 12px; margin-top: 4px; }
.money-kpi-delta.up { color: var(--money-green); }
.money-kpi-delta.soft { color: var(--dim); }
.money-spark { height: 28px; margin-top: 8px; }
.money-grid-2 {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 12px;
}
.money-panel {
  padding: 16px; border-radius: 14px;
  background: var(--card, #141414);
  border: 1px solid var(--border, #222);
}
.money-panel-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.money-panel-head h2 { font-size: 14px; margin: 0; font-weight: 600; }
.money-chart { height: 180px; position: relative; }
.money-ep-row {
  display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px;
  align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.money-ep-row:last-child { border-bottom: 0; }
.money-ep-row img, .money-ep-ph {
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #222;
}
.money-ep-ph { display: grid; place-items: center; font-size: 10px; color: var(--gold); }
.money-ep-row b { font-size: 13px; display: block; }
.money-ep-row small { color: var(--muted); font-size: 11px; }
.money-ep-plays { font-variant-numeric: tabular-nums; font-size: 13px; }
.money-donut-wrap { display: flex; gap: 14px; align-items: center; }
.money-donut { width: 110px; height: 110px; flex-shrink: 0; }
.money-donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; }
.money-donut-legend li {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; padding: 4px 0; color: var(--muted);
}
.money-donut-legend li b { color: var(--text); font-weight: 500; }
.money-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.money-quick-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.money-qstat {
  padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border, #222);
}
.money-qstat span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.money-qstat b { font-size: 15px; }
.money-orders { list-style: none; margin: 0; padding: 0; }
.money-orders li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px;
}
.money-orders .paid {
  color: var(--money-green); background: var(--money-green-dim);
  padding: 2px 8px; border-radius: 999px; font-size: 10px;
}
.money-qa-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.money-qa {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: var(--text); cursor: pointer; font-size: 12px; text-align: left;
}
.money-qa:hover { border-color: var(--money-gold); color: var(--money-gold); }
.money-qa span { font-size: 16px; }
.money-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--dim);
}
.money-online { display: inline-flex; align-items: center; gap: 6px; color: var(--money-green); }
.money-online i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--money-green);
  box-shadow: 0 0 8px var(--money-green); display: inline-block;
}
.podos-badge.connect {
  background: rgba(212,175,105,0.15); color: var(--money-gold); border: 1px solid rgba(212,175,105,0.35);
}
@media (max-width: 1100px) {
  .money-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .money-rail { display: none; }
  .money-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .money-layout { grid-template-columns: 1fr; }
  .money-nav { display: none; }
  .money-grid-2 { grid-template-columns: 1fr; }
}

/* Money OS layout refinements (dashboard Money home) */
.os-shell.os-money .podos-layout.money-layout,
.os-shell.os-podos .money-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.os-shell.os-money .podos-search-wrap { flex: 1; max-width: 420px; margin: 0 16px; }
.os-shell.os-money .podos-search {
  width: 100%; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border, #2a2a2a); background: rgba(255,255,255,0.04);
  color: var(--text, #eee); font-size: 13px;
}
.os-shell.os-money .podos-tj-badge { padding: 0 14px; font-size: 12px; letter-spacing: 0.02em; }
.money-greet {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 18px;
}
.money-greet h1 { font-size: 26px; margin: 0 0 4px; font-weight: 650; letter-spacing: -0.02em; }
.money-kpi-row {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 14px;
}
.money-kpi { padding: 14px 16px; border-radius: 14px; }
.money-kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.money-kpi-l { font-size: 11px; color: var(--muted,#999); text-transform: uppercase; letter-spacing: 0.06em; }
.money-kpi-v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.money-kpi-delta { font-size: 12px; margin-top: 4px; color: var(--dim,#777); }
.money-kpi-delta.up { color: #22c55e; }
.money-spark { height: 28px; margin-top: 8px; }
.money-grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-bottom: 12px; }
.money-panel { padding: 16px; border-radius: 14px; }
.money-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.money-panel-head h2 { font-size: 14px; margin: 0; font-weight: 600; }
.money-chart { min-height: 160px; }
.money-ep {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.money-ep:last-child { border-bottom: 0; }
.money-ep img, .money-ep-ph {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #222;
}
.money-ep-ph { display:grid; place-items:center; font-size:10px; color: var(--gold,#d4af69); }
.money-ep b { display:block; font-size: 13px; }
.money-ep small { color: var(--muted); font-size: 11px; }
.money-ep-plays { font-variant-numeric: tabular-nums; font-size: 13px; color: #22c55e; }
.money-rail { display: flex; flex-direction: column; gap: 12px; padding: 16px 14px 28px; overflow-y: auto; border-left: 1px solid var(--border,#222); background: rgba(0,0,0,0.2); }
.money-donut-wrap { display: flex; gap: 12px; align-items: center; }
.money-donut { width: 100px; height: 100px; flex-shrink: 0; }
.money-donut-legend { list-style: none; margin: 0; padding: 0; flex: 1; }
.money-donut-legend li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 3px 0; color: var(--muted); }
.money-donut-legend b { color: var(--text); font-weight: 500; }
.money-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.money-quick-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.money-qstat { padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border,#222); }
.money-qstat span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.money-qstat b { font-size: 15px; }
.money-orders { list-style: none; margin: 0; padding: 0; }
.money-orders li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px; }
.money-orders .paid { color: #22c55e; font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(34,197,94,0.12); }
.money-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.money-qa {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px; border-radius: 12px; border: 1px solid var(--border,#222);
  background: rgba(255,255,255,0.03); color: var(--text); cursor: pointer; font-size: 12px; text-align: left;
}
.money-qa:hover { border-color: var(--gold,#d4af69); color: var(--gold,#d4af69); }
.money-qa span { font-size: 16px; }
.money-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border,#222);
  font-size: 11px; color: var(--dim,#777); flex-wrap: wrap;
}
.money-online, .podos-online { display: inline-flex; align-items: center; gap: 6px; color: #22c55e; }
.money-online i, .podos-online i {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; display: inline-block;
}
.podos-badge.demo { background: rgba(212,175,105,0.15); color: #d4af69; }
.podos-badge.soft { background: rgba(255,255,255,0.06); color: #aaa; }
.podos-badge.live { background: rgba(34,197,94,0.12); color: #22c55e; }
.podos-membership {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
  margin-top: 12px; padding: 14px; border-radius: 14px;
}
.podos-mem span { display:block; font-size:11px; color: var(--muted); }
.podos-mem b { font-size: 18px; }
@media (max-width: 1100px) {
  .os-shell.os-money .podos-layout.money-layout { grid-template-columns: 200px minmax(0,1fr); }
  .money-rail { display: none; }
  .money-kpi-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .os-shell.os-money .podos-layout.money-layout { grid-template-columns: 1fr; }
  .money-nav, .os-shell.os-money .podos-nav { display: none; }
  .money-grid-2 { grid-template-columns: 1fr; }
}

/* ═══ OTN polish — covers, mountain quote, account, OS unfreeze ═══ */

/* Hard unfreeze when host unlocks */
.os-shell.os-unlocked #splash,
.os-shell.os-unlocked #lock {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.os-shell.os-unlocked .os-layout,
.os-shell.os-unlocked .podos-layout,
.os-shell.os-unlocked .podos-topbar,
.os-shell.os-unlocked .mobile-nav {
  visibility: visible !important;
  pointer-events: auto !important;
}
.os-shell.os-podos.os-unlocked,
.os-shell.os-money.os-unlocked {
  overflow: hidden;
}
.os-shell.os-unlocked .money-main,
.os-shell.os-unlocked .podos-main,
.os-shell.os-unlocked .money-nav,
.os-shell.os-unlocked .money-rail {
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mountain quote — readable on OP Index hero visual */
.op-mountain-quote {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 3;
  margin: 0;
  padding: 18px 16px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(212, 175, 105, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.op-mountain-quote p {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.4;
  font-style: italic;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.op-mountain-quote footer {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-hi, #efd694);
  font-style: normal;
}

/* Account layout */
.account-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}
.account-membership { padding: 22px 20px 24px; }
.account-membership .account-row:last-of-type { border-bottom: none; }
@media (max-width: 720px) {
  .account-layout { grid-template-columns: 1fr; }
}
.account-edit .field input[readonly] {
  opacity: 0.75;
  cursor: default;
}

/* Playlist / dungeon — book covers primary */
.pl-cover-btn {
  position: relative;
  width: 56px;
  height: 84px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.pl-face.pl-cover {
  width: 56px !important;
  height: 84px !important;
  border-radius: 8px;
  object-fit: cover;
}
.pl-yt-chip {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  opacity: 0.92;
}
.pl-row-cover .pl-row-main { align-items: center; }
.op-feat-cover {
  width: 56px !important;
  height: 84px !important;
  border-radius: 8px;
  object-fit: cover;
}

/* OS episodes — big cover grid */
.os-ep-covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.os-ep-cover-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  margin: 0;
  border-radius: 14px;
}
.os-ep-cover-art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #141210;
  border: 1px solid rgba(212, 175, 105, 0.22);
}
.os-ep-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.os-ep-cover-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 12px;
}
.os-ep-yt {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 44px;
  height: 33px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.os-ep-cover-meta b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.os-ep-cover-meta small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}
.os-ep-cover-meta .pill { font-size: 9px; }

/* Denser money home after chrome trim */
.os-shell.os-money .money-kpi-row { margin-bottom: 14px; }
.os-shell.os-money #listens-chart-panel { margin-bottom: 14px; }
.os-shell.os-money .money-chart { height: 160px; }

.op-brand .otn-logo-wrap.nav {
  width: 44px;
  margin-right: 2px;
}
.op-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


/* ═══════════════════════════════════════════════════════════════
   QA fixes — 2026-10-01 (scroll / freeze / mobile drawer)
   ═══════════════════════════════════════════════════════════════ */

/* Dungeon (hub): the document scrolls. Before: body{overflow:hidden} propagated to
   the viewport while .op-main grew to full content height (flex column), so the page
   could not scroll at all ("frozen"). */
html { overflow-y: visible; }
body.op-index-shell.app-body {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}
.op-index-shell .op-main,
.op-index-shell.app-body .app-main {
  flex: 1 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}
.op-index-shell .op-topnav { position: sticky; top: 0; }
.op-index-shell #op-featured-list,
.op-index-shell #op-directory,
.op-index-shell .op-columns,
.op-index-shell .learn-drawer { scroll-margin-top: 84px; }

/* OS: fill exactly the viewport; the centre column is the scroller and must not be
   taller than its grid track (it was 100vh inside a (100vh - topbar) track, so the
   bottom of every view was clipped and unreachable). */
body.os-shell.os-podos {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}
.os-shell .os-layout.podos-layout { flex: 1 1 auto; min-height: 0; }
.os-shell .os-main.app-main,
.os-shell.os-unlocked .money-main {
  height: auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.os-shell .money-nav,
.os-shell .money-rail { min-height: 0; }

/* OS lock: when the host check fails, show actions instead of a dead black screen */
#lock .lk-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#lock .lk-actions .btn { min-width: 120px; }
#hub-boot-gate .gate-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
#hub-boot-gate .gate-inner { text-align: center; max-width: 360px; padding: 0 20px; }
#hub-boot-gate .gate-inner p { margin: 0; color: #c9a227; }
#hub-boot-gate .gate-inner .gate-sub { color: #8a8a8a; font-size: 13px; margin-top: 8px; }

/* OS mobile "More" drawer: full-height sheet above the top bar, closes on navigation */
@media (max-width: 820px) {
  .os-shell.os-podos .podos-nav,
  .os-shell.os-money .podos-nav.money-nav {
    display: none;
  }
  .os-shell.os-podos.podos-nav-open .podos-nav.money-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(290px, 84vw);
    z-index: 80;
    padding: 18px 12px 90px;
    background: #0b0b0c;
    overflow-y: auto;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
  }
  .os-shell.os-podos.podos-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.55);
  }
  .os-shell.os-podos .mobile-nav { z-index: 90; }
  /* .os-layout is a z-index:1 stacking context; lift it while the drawer is open so the
     drawer sits above the dimmed backdrop instead of under it. */
  .os-shell.os-podos.podos-nav-open .os-layout { z-index: auto; }
  .os-shell.os-podos .podos-main.money-main { padding-bottom: 96px; }
}

/* Books directory: real covers instead of an emoji */
.op-index-shell .op-book-card .op-book-cover {
  width: 44px; height: 66px; flex-shrink: 0; object-fit: cover;
  border-radius: 4px; background: #111; box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
/* Mobile: book/person directory cards must never be wider than the screen (a 457px
   card made phones zoom the whole Dungeon out). */
.op-index-shell .op-dir-card { min-width: 0; max-width: 100%; }
.op-index-shell .op-main { overflow-x: clip; }
@media (max-width: 860px) {
  .op-index-shell .op-dir-grid { grid-template-columns: minmax(0, 1fr); }
}

/* QA 2026-10-01: keep scrollIntoView / focus targets clear of the fixed mobile nav + player dock */
@media (max-width: 820px) {
  html:has(> body.op-index-shell) { scroll-padding-bottom: 220px; scroll-padding-top: 130px; }
}

/* ───────── OS · Post / edit episode (static — no animated glows) ───────── */
.ep-form-card { padding: 20px 22px 22px; margin: 0 0 18px; border-color: rgba(212,175,105,.32); }
.ep-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ep-form-head h2 { font-size: 19px; font-weight: 600; margin: 4px 0 4px; }
.ep-form-head .fine { margin: 0; }
.ep-form-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.ep-form-close { flex: 0 0 auto; }
.ep-form { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.ep-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ep-form-row .ep-field-num { max-width: 120px; }
.ep-form-row:has(.ep-field-num) { grid-template-columns: 120px 1fr; }
.ep-form .field span em { font-style: normal; color: var(--gold); letter-spacing: .6px; text-transform: none; margin-left: 4px; font-size: 10.5px; }
.ep-form .field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; outline: none; resize: vertical; min-height: 84px; font: inherit; color: inherit;
}
.ep-form .field textarea:focus { border-color: var(--border-hi); }
.ep-form .field input[type="date"] { color-scheme: dark; min-height: 46px; }
.ep-form .field.is-invalid input, .ep-form .field.is-invalid textarea { border-color: var(--bad); }
.ep-field-msg { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ep-field-msg.error { color: var(--bad); }
.ep-field-msg.ok { color: var(--good); }
.ep-preview { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: rgba(0,0,0,.28); }
.ep-preview-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #141210; border: 1px solid rgba(212,175,105,.22); display: grid; place-items: center; }
.ep-preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-preview-ph { color: var(--dim); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-align: center; padding: 0 12px; }
.ep-preview-title { font-size: 15px; line-height: 1.3; }
.ep-preview-meta { color: var(--muted); font-size: 12px; }
.ep-preview .form-status { margin: 0; }
.ep-form-actions { display: flex; gap: 10px; }
.ep-form-actions .btn { flex: 1; padding: 12px 16px; }
.btn.danger { border-color: rgba(255,157,157,.45); color: var(--bad); }
.btn.danger:hover { background: rgba(255,157,157,.1); border-color: var(--bad); }
.os-ep-actions { display: flex; gap: 6px; margin-top: 8px; }
.os-ep-actions .btn { padding: 6px 10px; font-size: 12px; border-radius: 9px; flex: 1; }
#os-eps-empty .btn { margin-top: 12px; }
@media (max-width: 860px) {
  .ep-form { grid-template-columns: 1fr; }
  .ep-preview { position: static; }
}
@media (max-width: 520px) {
  .ep-form-card { padding: 16px 14px 16px; }
  .ep-form-row, .ep-form-row:has(.ep-field-num) { grid-template-columns: 1fr; }
  .ep-form-row .ep-field-num { max-width: none; }
  .ep-form-head { flex-direction: column-reverse; }
  .ep-form-close { align-self: flex-end; }
}
.os-ep-cover-card.is-new { border-color: rgba(212,175,105,.65); }
