    /* ─── Reset ─────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html {
      font-size: calc(18px * var(--ep-text-scale, 1));
      font-weight: 400;
      transition: font-size 150ms ease;
    }
    html, body {
      min-height: 100%;
      width: 100%;
      background:
        radial-gradient(circle at top, rgba(212,177,90,0.08), transparent 26%),
        #120f0d;
      font-family: 'Jost', sans-serif;
      font-weight: 300;
      padding: 0;
      overflow: hidden;
    }

    /* ─── Design Tokens ──────────────────────────────────── */
    :root {
      --ep-bg:         #191512;
      --ep-surface:    #241f1a;
      --ep-surface-2:  #2d2721;
      --ep-border:     rgba(228,210,180,0.18);
      --ep-gold:       #d4b15a;
      --ep-gold-light: #f0d893;
      --ep-gold-dim:   rgba(212,177,90,0.16);
      --ep-gold-faint: rgba(212,177,90,0.08);
      --ep-text:       #f3ede3;
      --ep-dim:        #c0b1a1;
      /* Small-text color with WCAG AA 4.5:1 contrast on --ep-bg, --ep-surface, --ep-surface-2 (Phase 36) */
      --ep-small-text: #cdbeac;
      --ep-muted:      #786e64;
      --ep-midnight:   #0f0d0b;
      --ep-shell:      rgba(19,16,14,0.86);
      --ep-shell-2:    rgba(28,24,20,0.88);
      --ep-gold-text:  #f1d792;
      --ep-muted-text: #b9ab9b;
      --ep-sidebar-w: 272px;
      --ep-stage-max: 1240px;
      --ep-grid-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
      --ep-sidebar-toggle-padding: 12px;
    }

    /* ─── Outer Container ────────────────────────────────── */
    .ep-encounter {
      font-family: 'Jost', sans-serif;
      font-weight: 300;
      background: var(--ep-bg);
      border-radius: 0;
      width: 100%;
      max-width: 100%;
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100vh;
      height: 100dvh;
    }

    /* ─── Header ─────────────────────────────────────────── */
    .ep-header {
      background: var(--ep-surface);
      border-bottom: 1px solid var(--ep-border);
      padding: 1rem 1.3333rem;
      display: flex;
      align-items: center;
      gap: 0.6667rem;
    }
    .ep-header-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1rem; font-weight: 400;
      color: var(--ep-text);
      flex: 1;
    }
    /* Phase 37: header title is now an anchor — canonical return to / */
    a.ep-header-title {
      color: var(--ep-text);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 0 0.4444rem;
      cursor: pointer;
    }
    a.ep-header-title:hover {
      text-decoration: none;
      color: var(--ep-gold);
    }
    a.ep-header-title:focus-visible {
      outline: 2px solid var(--ep-gold);
      outline-offset: 2px;
      border-radius: 0.2222rem;
    }
    /* ─── Header Tooltips (HTML Popover API) ─────────────── */
    .ep-tooltip {
      position: fixed;
      background: var(--ep-surface);
      color: var(--ep-text);
      border: 1px solid var(--ep-border);
      border-radius: 6px;
      padding: 0.2222rem 0.4444rem;
      font-size: 0.6111rem;
      font-weight: 400;
      font-family: 'Jost', sans-serif;
      white-space: nowrap;
      margin: 0;
      inset: unset;
    }
    .ep-selah-voice-btn {
      background: none;
      border: 1px solid transparent;
      border-radius: 6px;
      cursor: pointer;
      font-size: 1.25rem;
      line-height: 1;
      padding: 0.2222rem 0.3333rem;
      color: var(--ep-muted-text);
      transition: opacity 0.18s, border-color 0.18s, background 200ms ease;
      flex-shrink: 0;
      min-width: 44px;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .ep-selah-voice-btn:hover { background: var(--ep-gold-faint); border-color: transparent; }
    .ep-selah-voice-btn.muted { opacity: 0.35; }

    /* ─── Body Layout ────────────────────────────────────── */
    .ep-body {
      display: grid;
      grid-template-columns: var(--ep-sidebar-w) minmax(0, 1fr);
      grid-template-rows: 1fr;
      min-height: 0;
      flex: 1;
      transition: grid-template-columns var(--ep-grid-transition);
    }

    /* ── Sidebar Pane ── */
    .ep-sidebar {
      background:
        linear-gradient(180deg, rgba(40,33,28,0.96), rgba(20,16,14,0.98)),
        var(--ep-bg);
      border-right: 1px solid var(--ep-border);
      overflow: hidden;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }

    .ep-sidebar-toggle {
      display: flex;
      width: 32px;
      height: 32px;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      color: var(--ep-dim);
      margin: var(--ep-sidebar-toggle-padding) 0.8889rem;
      margin-left: auto;
      transition: background 200ms ease, color 200ms ease;
    }
    .ep-sidebar-toggle:hover {
      background: var(--ep-gold-faint);
      color: var(--ep-text);
    }
    .ep-sidebar-toggle svg {
      width: 20px;
      height: 20px;
    }

    /* ── Sidebar Internal Layout (Phase 30) ── */
    .ep-sidebar-header {
      display: flex;
      align-items: center;
      gap: 0.4444rem;
      padding: 0.7778rem 0.6667rem 0.5556rem 0.6667rem;
      position: sticky;
      top: 0;
      z-index: 1;
      background: rgba(17,15,13,0.94);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--ep-border);
    }

    .ep-sidebar-new-btn {
      display: flex;
      align-items: center;
      gap: 0.4444rem;
      padding: 0.4444rem 0.6667rem;
      height: 38px;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--ep-border);
      border-radius: 12px;
      font-family: 'Jost', sans-serif;
      font-size: 0.7222rem;
      font-weight: 500;
      color: var(--ep-text);
      cursor: pointer;
      flex: 1;
      transition: background 200ms ease, border-color 200ms ease;
    }
    .ep-sidebar-new-btn:hover {
      background: var(--ep-gold-faint);
      border-color: rgba(201,168,76,0.25);
    }
    .ep-sidebar-new-btn svg {
      color: var(--ep-dim);
      flex-shrink: 0;
    }

    .ep-sidebar-sessions {
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      flex: 1;
      min-height: 0;
      padding: 0.4444rem 0 0.5556rem;
    }
    .ep-sidebar-sessions::-webkit-scrollbar { width: 6px; }
    .ep-sidebar-sessions::-webkit-scrollbar-track { background: transparent; }
    .ep-sidebar-sessions::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.08);
      border-radius: 3px;
    }

    .ep-sidebar-group-label {
      font-family: 'Jost', sans-serif;
      font-size: 0.6111rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--ep-small-text);
      padding: 1rem 0.8889rem 0.4444rem 0.8889rem;
      position: sticky;
      top: 0;
      z-index: 1;
      background: rgba(20,17,15,0.94);
      backdrop-filter: blur(12px);
    }

    .ep-sidebar-item {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 0.2778rem;
      padding: 0.5556rem 0.7778rem 0.6111rem;
      min-height: 44px;
      cursor: pointer;
      border-radius: 14px;
      margin: 0 0.4444rem;
      background: rgba(255,255,255,0.025);
      border: 1px solid rgba(228,210,180,0.08);
      width: calc(100% - 16px);
      text-align: left;
      font-family: 'Jost', sans-serif;
      transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
    }
    .ep-sidebar-item:hover {
      background: rgba(255,255,255,0.05);
      border-color: rgba(212,177,90,0.22);
      box-shadow: 0 10px 24px rgba(0,0,0,0.16);
      transform: translateX(2px);
    }

    .ep-sidebar-item.active {
      background: linear-gradient(135deg, rgba(212,177,90,0.14), rgba(255,255,255,0.04));
      border-color: rgba(212,177,90,0.26);
      box-shadow: inset 2px 0 0 rgba(212,177,90,0.72), 0 12px 24px rgba(0,0,0,0.14);
    }
    .ep-sidebar-item.active:hover {
      background: linear-gradient(135deg, rgba(212,177,90,0.18), rgba(255,255,255,0.04));
    }

    .ep-sidebar-item-title {
      font-size: 0.7222rem;
      font-weight: 400;
      color: var(--ep-text);
      line-height: 1.5;
      white-space: normal;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .ep-sidebar-item-date {
      font-size: 0.6111rem;
      font-weight: 300;
      color: var(--ep-small-text);
      line-height: 1.4;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
    .ep-sidebar-item-meta {
      font-size: 0.6667rem;
      font-weight: 300;
      color: var(--ep-small-text);
      line-height: 1.5;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ep-sidebar-empty {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 0.6667rem;
      padding: 1.7778rem 1.3333rem;
      text-align: center;
    }
    .ep-sidebar-empty.visible {
      display: flex;
    }
    .ep-sidebar-empty svg {
      color: var(--ep-muted);
    }
    .ep-sidebar-empty span {
      font-family: 'Jost', sans-serif;
      font-size: 0.7222rem;
      font-weight: 300;
      color: var(--ep-small-text);
      line-height: 1.6;
    }

    .ep-sidebar-loading {
      display: flex;
      flex-direction: column;
      gap: 0.6667rem;
      padding: 1.3333rem 0.8889rem;
    }
    .ep-sidebar-loading .ep-skeleton-bar {
      height: 12px;
      background: var(--ep-gold-faint);
      border-radius: 6px;
      animation: epSidebarPulse 1.2s ease-in-out infinite;
    }
    .ep-sidebar-loading .ep-skeleton-bar:nth-child(1) { width: 80%; }
    .ep-sidebar-loading .ep-skeleton-bar:nth-child(2) { width: 60%; }
    .ep-sidebar-loading .ep-skeleton-bar:nth-child(3) { width: 70%; }
    @keyframes epSidebarPulse {
      0%, 100% { opacity: 0.3; }
      50% { opacity: 0.7; }
    }
    @media (prefers-reduced-motion: reduce) {
      .ep-sidebar-loading .ep-skeleton-bar {
        animation: none;
        opacity: 0.5;
      }
    }

    .ep-sidebar-sentinel {
      font-family: 'Jost', sans-serif;
      font-size: 0.6667rem;
      font-weight: 300;
      color: var(--ep-small-text);
      text-align: center;
      padding: 0.6667rem 0;
    }

    .ep-sidebar-footer {
      padding: 0.6667rem;
      border-top: 1px solid rgba(210,195,170,0.08);
      background: rgba(14,12,10,0.82);
      backdrop-filter: blur(18px);
    }
    .ep-sidebar-utility-btn {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 0.6667rem;
      padding: 0.6667rem 0.7222rem;
      background: rgba(255,255,255,0.02);
      border: 1px solid rgba(210,195,170,0.10);
      border-radius: 14px;
      color: var(--ep-text);
      cursor: pointer;
      transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
      text-align: left;
    }
    .ep-sidebar-utility-btn:hover {
      background: rgba(255,255,255,0.04);
      border-color: rgba(201,168,76,0.16);
      transform: translateX(2px);
    }
    .ep-sidebar-utility-btn svg {
      width: 18px;
      height: 18px;
      color: var(--ep-muted-text);
      flex-shrink: 0;
    }
    .ep-sidebar-utility-copy {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .ep-sidebar-utility-label {
      font-size: 0.7222rem;
      font-weight: 400;
      line-height: 1.4;
      color: var(--ep-text);
    }
    .ep-sidebar-utility-meta {
      font-size: 0.6111rem;
      color: var(--ep-small-text);
      line-height: 1.4;
    }

    /* ── Sidebar Collapsed State ── */
    .ep-body.sidebar-collapsed {
      --ep-sidebar-w: 0px;
    }
    .ep-body.sidebar-collapsed .ep-sidebar {
      overflow: hidden;
    }

    /* ── Expand button (visible only when sidebar collapsed) ── */
    .ep-sidebar-expand {
      display: none;
      position: absolute;
      top: var(--ep-sidebar-toggle-padding);
      left: 16px;
      width: 32px;
      height: 32px;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      color: var(--ep-dim);
      z-index: 2;
      transition: background 200ms ease, color 200ms ease;
    }
    .ep-sidebar-expand:hover {
      background: var(--ep-gold-faint);
      color: var(--ep-text);
    }
    .ep-sidebar-expand svg {
      width: 20px;
      height: 20px;
    }
    .ep-body.sidebar-collapsed .ep-sidebar-expand {
      display: flex;
    }

    /* ── Hamburger Button (header, hidden on desktop) ── */
    .ep-sidebar-hamburger {
      display: none;
      width: 32px;
      height: 32px;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      color: var(--ep-muted-text);
      transition: color 200ms ease, background 200ms ease;
    }
    .ep-sidebar-hamburger:hover {
      background: var(--ep-gold-faint);
      color: var(--ep-text);
    }
    .ep-sidebar-hamburger svg {
      width: 20px;
      height: 20px;
    }

    /* ══════════════════════════════════════════════════════
       AUDIO BOTTOM BAR
    ══════════════════════════════════════════════════════ */
    .ep-audio-panel {
      width: 100%;
      background: linear-gradient(180deg, rgba(15,13,11,0), rgba(15,13,11,0.94) 28%, var(--ep-midnight) 100%);
      display: none; /* hidden until audio plays */
      flex-direction: column;
      position: relative;
      z-index: 10;
      padding: 0.6667rem 1rem 1rem;
      overflow: visible;
    }
    .ep-audio-panel.active {
      display: flex;
    }
    .ep-audio-panel.active::before {
      content: '';
      position: absolute;
      top: 0;
      left: 18px;
      right: 18px;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, rgba(228,210,180,0.34) 12%, rgba(228,210,180,0.34) 88%, transparent 100%);
      pointer-events: none;
    }
    .ep-section-label {
      display: none;
    }

    /* Idle state (permanently hidden -- bottom bar replaces sidebar) */
    .ep-idle { display: none !important; }
    .ep-idle-ring {
      width: 56px; height: 56px;
      border-radius: 50%;
      border: 1px solid rgba(201,168,76,0.25);
      display: flex; align-items: center; justify-content: center;
    }
    .ep-idle-ring svg {
      width: 22px; height: 22px;
      fill: var(--ep-gold);
      opacity: 0.5;
    }
    .ep-idle-text {
      font-size: 0.7222rem;
      color: var(--ep-small-text);
      font-style: italic;
      line-height: 1.6;
    }

    /* Active player */
    .ep-player { display: none; flex-direction: column; gap: 18px; }
    .ep-player.active { display: flex; }
    @keyframes ep-sanctify {
      0%   { box-shadow: 0 0  0px  0px rgba(201,168,76,0);    }
      20%  { box-shadow: 0 0 24px 10px rgba(201,168,76,0.20); }
      100% { box-shadow: 0 0  0px  0px rgba(201,168,76,0);    }
    }
    .ep-player.sanctify { border-radius: 22px; animation: ep-sanctify 2.8s ease-out forwards; }
    .ep-player-top { display: flex; gap: 14px; align-items: flex-start; }
    .ep-player-icon {
      width: 42px; height: 42px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      color: var(--ep-gold-text);
    }
    .ep-player-icon svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
    }
    .ep-player-icon svg path { fill: none; }
    .ep-player-icon svg circle { fill: currentColor; }
    .ep-player-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1rem; font-weight: 400;
      color: var(--ep-text);
      line-height: 1.3;
    }
    .ep-player-ref {
      font-family: 'Cormorant Garamond', serif;
      font-size: 0.6111rem; color: var(--ep-small-text);
      font-style: italic; margin-top: 3px;
    }

    /* Progress bar */
    .ep-progress { cursor: pointer; }
    .ep-track {
      height: 3px;
      background: rgba(255,255,255,0.08);
      border-radius: 2px; overflow: hidden;
    }
    .ep-fill {
      height: 100%; width: 0%;
      background: linear-gradient(90deg, var(--ep-gold), var(--ep-gold-light));
      border-radius: 2px;
      transition: width 0.1s linear;
    }
    .ep-times {
      display: flex; justify-content: space-between;
      margin-top: 0.3333rem;
      font-size: 0.6111rem; color: var(--ep-small-text);
      font-variant-numeric: tabular-nums;
    }

    /* Controls */
    .ep-controls { display: flex; align-items: center; gap: 10px; }
    .ep-btn-play {
      width: 42px; height: 42px;
      border-radius: 50%;
      background: var(--ep-gold);
      border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s, transform 0.15s;
      flex-shrink: 0;
    }
    .ep-btn-play:hover { background: var(--ep-gold-light); transform: scale(1.06); }
    .ep-btn-play svg { width: 15px; height: 15px; fill: var(--ep-midnight); margin-left: 2px; }
    .ep-btn-play.playing svg { margin-left: 0; }
    .ep-btn-skip {
      background: none; border: none; cursor: pointer;
      color: var(--ep-dim); padding: 6px; border-radius: 6px;
      transition: color 0.2s, background 200ms ease; display: flex; align-items: center;
    }
    .ep-btn-skip:hover { background: var(--ep-gold-faint); color: var(--ep-text); border-radius: 6px; }
    .ep-btn-skip svg { width: 16px; height: 16px; fill: currentColor; }

    /* Block queue navigation */
    .ep-block-pos {
      display: none; text-align: center;
      font-size: 0.6111rem; color: var(--ep-small-text); letter-spacing: 0.04em;
    }
    .ep-block-pos.visible { display: block; }
    .ep-block-actions {
      display: none; justify-content: center; gap: 12px;
    }
    .ep-block-actions.visible { display: flex; }
    .ep-block-btn {
      position: relative;
      font-family: 'Cormorant Garamond', serif;
      font-size: 0.7778rem; padding: 5px 18px;
      border-radius: 20px; border: 1px solid;
      cursor: pointer; letter-spacing: 0.04em; background: transparent;
      transition: opacity 0.2s, transform 0.15s;
    }
    /* Phase 36 D-07: invisible 44x44 hit area, visible size unchanged */
    .ep-block-btn::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      min-width: 44px;
      min-height: 44px;
      width: 100%;
      height: 100%;
    }
    .ep-block-btn:hover { opacity: 0.75; transform: scale(1.03); }
    .ep-block-btn-accent { border-color: var(--ep-gold); color: var(--ep-gold-text); }
    .ep-block-btn-muted  { border-color: rgba(255,255,255,0.15); color: var(--ep-muted-text); }
    .ep-vol { display: flex; align-items: center; gap: 6px; margin-left: auto; }
    .ep-vol svg { width: 13px; height: 13px; fill: var(--ep-muted); }
    .ep-vol input[type=range] {
      -webkit-appearance: none;
      width: 60px; height: 3px;
      background: rgba(255,255,255,0.1);
      border-radius: 2px; outline: none;
    }
    .ep-vol input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 11px; height: 11px;
      border-radius: 50%;
      background: var(--ep-gold); cursor: pointer;
    }

    /* ── Bottom Bar ── */
    .ep-bottom-bar {
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: visible;
      width: 100%;
      margin: 0 auto;
      background: rgba(14,12,10,0.92);
      border: 1px solid rgba(228,210,180,0.18);
      border-radius: 22px;
      box-shadow: 0 18px 60px rgba(0,0,0,0.36);
      backdrop-filter: blur(20px);
    }

    .ep-bottom-bar-collapsed {
      min-height: 58px;
      display: flex;
      align-items: center;
      gap: 0.6667rem;
      padding: 0.5556rem 1rem;
      background: transparent;
      border-top: none;
      cursor: pointer;
      flex-shrink: 0;
    }

    .ep-bottom-bar-collapsed .ep-btn-play {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--ep-gold);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.2s, transform 0.15s;
    }
    .ep-bottom-bar-collapsed .ep-btn-play:hover {
      background: var(--ep-gold-light);
      transform: scale(1.06);
    }
    .ep-bottom-bar-collapsed .ep-btn-play svg {
      fill: var(--ep-midnight);
      margin-left: 2px;
    }
    .ep-bottom-bar-collapsed .ep-btn-play.playing svg {
      margin-left: 0;
    }

    .ep-bottom-bar-copy {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 3px;
      flex: 1;
    }
    .ep-bottom-bar-kicker {
      font-size: 0.5556rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--ep-gold-text);
    }
    .ep-bottom-bar-meta {
      display: flex;
      align-items: baseline;
      gap: 0.4444rem;
      min-width: 0;
    }
    .ep-bottom-bar-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 0.8889rem;
      color: var(--ep-text);
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ep-bottom-bar-ref {
      font-family: 'Cormorant Garamond', serif;
      font-size: 0.6111rem;
      font-style: italic;
      font-weight: 300;
      color: var(--ep-small-text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ep-bottom-bar-chevron {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--ep-dim);
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 44px;
      min-height: 44px;
      padding: 0;
      transition: color 0.18s, transform 0.25s ease, background 200ms ease;
      flex-shrink: 0;
    }
    .ep-bottom-bar-chevron:hover {
      background: var(--ep-gold-faint);
      color: var(--ep-gold);
    }

    /* Expanded player panel -- transform: translateY() for hardware-accelerated animation.
       Per locked decision: CSS transform 250ms ease, no layout reflow. */
    .ep-bottom-bar .ep-player {
      flex-direction: column;
      gap: 0.8889rem;
      padding: 0.3333rem 1rem 1rem;
      position: absolute;
      left: 0;
      right: 0;
      bottom: calc(100% + 10px);
      background: rgba(18,15,13,0.98);
      border: 1px solid rgba(228,210,180,0.18);
      border-radius: 22px;
      box-shadow: 0 24px 70px rgba(0,0,0,0.34);
      max-height: min(42vh, 248px);
      overflow-y: auto;
      transform: translateY(18px);
      opacity: 0;
      pointer-events: none;
      transition: transform 250ms ease, opacity 220ms ease;
      will-change: transform;
      z-index: 2;
    }

    .ep-bottom-bar.expanded .ep-player {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .ep-bottom-bar.expanded .ep-bottom-bar-chevron {
      transform: rotate(180deg);
    }

    /* In bottom bar context, ep-player is always display:flex (visibility via transform) */
    .ep-bottom-bar .ep-player,
    .ep-bottom-bar .ep-player.active {
      display: flex;
    }

    @media (min-width: 1200px) {
      .ep-audio-panel {
        align-items: flex-end;
        padding: 0.7778rem 1.3333rem 1.3333rem;
      }
      .ep-audio-panel.active::before {
        left: 24px;
        right: 24px;
      }
      .ep-bottom-bar {
        width: min(520px, 100%);
        margin: 0;
      }
    }


    /* ══════════════════════════════════════════════════════
       CHAT PANEL
    ══════════════════════════════════════════════════════ */
    .ep-chat-panel {
      display: flex;
      flex-direction: column;
      background:
        radial-gradient(circle at 18% 0%, rgba(212,177,90,0.10), transparent 28%),
        radial-gradient(circle at 82% 4%, rgba(255,255,255,0.05), transparent 22%),
        linear-gradient(180deg, rgba(39,33,28,0.98), rgba(24,20,17,1));
      min-height: 0;
      min-width: 0;
      position: relative;
      overflow: hidden;
      contain: layout style;
      grid-column: 2;
    }
    .ep-chat-panel::before {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%);
      opacity: 0.18;
    }

    /* ── Placeholder / Begin screen ── */
    .ep-chat-placeholder {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 3.1111rem clamp(1.7778rem, 5vw, 4.2222rem);
      text-align: center;
      gap: 0.7778rem;
      width: 100%;
    }
    .ep-ph-icon {
      width: 52px; height: 52px;
      border: 1px solid rgba(201,168,76,0.25);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 0.2222rem;
    }
    .ep-ph-icon svg { width: 22px; height: 22px; fill: var(--ep-gold); opacity: 0.65; }
    .ep-ph-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.4444rem; font-weight: 300;
      color: var(--ep-text);
    }
    .ep-ph-body {
      font-size: 0.8889rem; color: var(--ep-dim);
      line-height: 1.65; max-width: 280px;
    }
    .ep-begin-btn {
      margin-top: 0.4444rem;
      padding: 0.7778rem 2rem;
      min-height: 48px;
      background: var(--ep-gold);
      color: var(--ep-midnight);
      border: none; border-radius: 24px;
      font-family: 'Jost', sans-serif;
      font-size: 0.7222rem; font-weight: 500;
      letter-spacing: 0.06em; cursor: pointer;
      transition: background 0.2s, transform 0.15s;
    }
    .ep-begin-btn:hover { background: var(--ep-gold-light); transform: translateY(-1px); }

    /* ── Active chat view ── */
    .ep-chat-active {
      display: none;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      width: 100%;
      position: relative;
      z-index: 1;
    }
    .ep-chat-active.visible { display: flex; }

    /* Messages area */
    .ep-messages {
      flex: 1;
      overflow-y: auto;
      padding: 2.1111rem clamp(1.5556rem, 4vw, 3.5556rem) 1rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      width: 100%;
    }
    .ep-messages::-webkit-scrollbar { width: 4px; }
    .ep-messages::-webkit-scrollbar-track { background: transparent; }
    .ep-messages::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.08);
      border-radius: 2px;
    }

    /* Message bubbles */
    .ep-msg {
      display: flex;
      flex-direction: column;
      max-width: min(100%, 780px);
      animation: ep-fadeup 0.25s ease both;
    }
    @keyframes ep-fadeup {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .ep-msg-shepherd { align-self: flex-start; }
    .ep-msg-user     { align-self: flex-end; }

    .ep-msg-label {
      font-family: 'Cormorant Garamond', serif;
      font-size: 0.5556rem; font-weight: 400;
      letter-spacing: 0.14em; text-transform: uppercase;
      margin-bottom: 0.2222rem;
    }
    .ep-msg-shepherd .ep-msg-label { color: var(--ep-gold-text); padding-left: 2px; }
    .ep-msg-user     .ep-msg-label { color: var(--ep-dim);  text-align: right; padding-right: 2px; }

    .ep-msg-bubble {
      padding: 1rem 1.1111rem;
      border-radius: 18px;
      font-size: 0.8889rem;
      line-height: 1.7;
      color: var(--ep-text);
      box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    }
    .ep-msg-shepherd .ep-msg-bubble {
      background: linear-gradient(135deg, rgba(42,37,32,0.96), rgba(28,24,20,0.86));
      border: 1px solid rgba(210,195,170,0.10);
      border-bottom-left-radius: 8px;
    }
    .ep-msg-user .ep-msg-bubble {
      background: linear-gradient(135deg, rgba(64,54,40,0.76), rgba(42,35,28,0.82));
      border: 1px solid rgba(201,168,76,0.12);
      border-bottom-right-radius: 8px;
      text-align: right;
    }

    /* Typing dots (before first token) */
    .ep-typing-dots { display: flex; gap: 5px; align-items: center; padding: 4px 2px; }
    .ep-typing-dots span {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--ep-gold);
      opacity: 0.4;
      animation: ep-dot-bounce 1.2s infinite ease-in-out;
    }
    .ep-typing-dots span:nth-child(1) { animation-delay: 0s; }
    .ep-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
    .ep-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes ep-dot-bounce {
      0%,80%,100% { transform: translateY(0); opacity: 0.4; }
      40%          { transform: translateY(-5px); opacity: 0.9; }
    }

    /* Starter chips (first-visit suggestions) */
    .ep-starter-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4444rem;
      justify-content: center;
      padding: 0.6667rem 0.8889rem;
      margin-top: 0.4444rem;
    }
    .ep-starter-chip {
      position: relative;
      border: 1px solid rgba(228,210,180,0.18);
      border-radius: 16px;
      padding: 0.4444rem 0.6667rem;
      color: var(--ep-text);
      background: rgba(255,255,255,0.035);
      font-size: 0.6111rem;
      font-weight: 300;
      font-family: 'Jost', sans-serif;
      cursor: pointer;
      transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
      line-height: 1.6;
    }
    /* Phase 36 D-07: invisible 44x44 hit area, visible chip stays compact */
    .ep-starter-chip::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      min-width: 44px;
      min-height: 44px;
      width: 100%;
      height: 100%;
    }
    .ep-starter-chip:hover {
      background: rgba(212,177,90,0.14);
      border-color: rgba(212,177,90,0.28);
      box-shadow: 0 12px 20px rgba(0,0,0,0.14);
      transform: translateY(-1px);
    }
    .ep-starter-chip:focus-visible {
      outline: 2px solid var(--ep-gold);
      outline-offset: 2px;
    }

    /* System / status messages */
    .ep-msg-system {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 0.4444rem;
      font-size: 0.6111rem;
      color: var(--ep-gold-text);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 0.5rem 0.7222rem;
      border-radius: 999px;
      border: 1px solid rgba(212,177,90,0.24);
      background: rgba(212,177,90,0.10);
      box-shadow: 0 8px 22px rgba(0,0,0,0.14);
      backdrop-filter: blur(10px);
      animation: ep-status-fade-in 160ms ease;
    }
    .ep-msg-system::before {
      content: '';
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--ep-gold);
      box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
      animation: ep-status-pulse 1.2s ease-in-out infinite;
    }
    @keyframes ep-status-pulse {
      0%, 100% { transform: scale(0.9); opacity: 0.72; }
      50% { transform: scale(1.05); opacity: 1; }
    }
    @keyframes ep-status-fade-in {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ── Input area ── */
    .ep-input-area {
      flex-shrink: 0;
      padding: 0.6667rem 0.8889rem 0.6667rem 1rem;
      display: flex;
      gap: 0.6667rem;
      align-items: flex-end;
      background: linear-gradient(180deg, rgba(44,37,31,0.96), rgba(28,23,19,0.98));
      border: 1px solid rgba(228,210,180,0.20);
      border-radius: 26px;
      max-width: calc(100% - clamp(32px, 5vw, 88px));
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0.4444rem;
      width: 100%;
      position: relative;
      box-shadow: 0 20px 36px rgba(0,0,0,0.28);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }
    .ep-input-area::before {
      display: none;
    }
    .ep-input-area:focus-within {
      border-color: rgba(212,177,90,0.46);
      box-shadow: 0 0 0 3px rgba(212,177,90,0.14), 0 22px 40px rgba(0,0,0,0.32);
      transform: translateY(-1px);
    }
    .ep-input {
      flex: 1;
      background: transparent;
      border: none;
      border-radius: 0;
      color: var(--ep-text);
      font-family: 'Jost', sans-serif;
      font-size: 0.8889rem; font-weight: 300;
      padding: 0.6667rem 0;
      resize: none;
      outline: none;
      line-height: 1.6;
      min-height: 52px;
      max-height: 168px;
      overflow-y: hidden;
      scrollbar-width: none;
      transition: color 0.2s ease;
    }
    .ep-input::-webkit-scrollbar { width: 0; height: 0; }
    .ep-input::placeholder { color: var(--ep-muted-text); }
    .ep-input:focus {
      border-color: transparent;
      box-shadow: none;
      transform: none;
    }
    .ep-input:disabled { opacity: 0.4; cursor: not-allowed; }
    .ep-send-btn {
      width: 46px; height: 46px;
      flex-shrink: 0;
      background: var(--ep-gold);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 50%;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 10px 24px rgba(0,0,0,0.20);
      transition: background 0.2s, transform 0.15s, opacity 0.2s, box-shadow 0.2s ease;
    }
    .ep-send-btn:hover:not(:disabled) {
      background: var(--ep-gold-light);
      transform: scale(1.06);
      box-shadow: 0 14px 28px rgba(0,0,0,0.24);
    }
    .ep-send-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      background: rgba(212,177,90,0.30);
      box-shadow: none;
    }
    .ep-send-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ep-midnight); stroke-width: 2.5; }

    /* ── Mic button ── */
    .ep-mic-btn {
      width: 40px; height: 40px;
      flex-shrink: 0;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(228,210,180,0.18);
      border-radius: 50%;
      cursor: pointer;
      font-size: 0.8333rem;
      line-height: 1;
      display: flex; align-items: center; justify-content: center;
      color: var(--ep-muted-text);
      transition: opacity 0.18s, border-color 0.18s, color 0.18s, background 200ms ease;
    }
    .ep-mic-btn:hover:not(:disabled) {
      background: rgba(212,177,90,0.14);
      border-color: rgba(212,177,90,0.28);
      color: var(--ep-text);
    }
    .ep-mic-btn:disabled { opacity: 0.2; cursor: not-allowed; }
    .ep-mic-btn.listening {
      opacity: 1;
      border-color: var(--ep-gold);
      color: var(--ep-gold);
      animation: ep-mic-pulse 1.4s ease-in-out infinite;
    }
    @keyframes ep-mic-pulse {
      0%, 100% { box-shadow: 0 0 0 0   rgba(201,168,76,0);    }
      50%       { box-shadow: 0 0 0 5px rgba(201,168,76,0.20); }
    }

    /* ── Error banner ── */
    .ep-error-banner {
      position: relative;
      background: rgba(239,68,68,0.12);
      border: 1px solid rgba(239,68,68,0.25);
      border-radius: 10px;
      padding: 0.6667rem 0.8889rem;
      font-size: 0.7222rem;
      color: #fca5a5;
      line-height: 1.5;
      margin: 0 1.1111rem 0.6667rem;
      display: none;
    }
    .ep-error-banner.visible { display: block; }
    .ep-error-dismiss {
      position: absolute;
      top: 6px;
      right: 10px;
      background: none;
      border: none;
      color: rgba(239,68,68,0.7);
      font-size: 1rem;
      cursor: pointer;
      padding: 2px 0.3333rem;
      line-height: 1;
    }
    .ep-error-dismiss:hover { color: rgba(239,68,68,1); }

    /* ─── Light Mode Palette ─────────────────────────────── */
    html[data-theme="light"] {
      --ep-bg:         #f4ede1;
      --ep-surface:    #fdf8f1;
      --ep-surface-2:  #eee2cf;
      --ep-border:     rgba(101,78,50,0.16);
      --ep-gold:       #c9a84c;
      --ep-gold-light: #e8c87a;
      --ep-gold-dim:   rgba(201,168,76,0.18);
      --ep-gold-faint: rgba(201,168,76,0.10);
      --ep-text:       #2f261c;
      --ep-dim:        #675748;
      --ep-small-text: #5a4a3d;
      --ep-muted:      #958675;
      --ep-midnight:   #1a1614;
      --ep-shell:      rgba(255,252,246,0.92);
      --ep-shell-2:    rgba(244,236,224,0.98);
      --ep-gold-text:  #76561b;
      --ep-muted-text: #6d5d4d;
      --ep-light-page: #f4ede1;
      --ep-light-page-2: #eadfcd;
      --ep-light-sidebar: #e6dccd;
      --ep-light-sidebar-2: #d9ccb8;
      --ep-light-card: rgba(255,250,242,0.94);
      --ep-light-card-strong: rgba(255,253,248,0.98);
      --ep-light-card-warm: rgba(239,228,202,0.92);
      --ep-light-pill: rgba(245,236,216,0.98);
      --ep-light-border: rgba(108,86,56,0.14);
      --ep-light-border-strong: rgba(108,86,56,0.22);
      --ep-light-shadow-xs: 0 2px 8px rgba(102,78,42,0.05);
      --ep-light-shadow-sm: 0 8px 22px rgba(102,78,42,0.08);
      --ep-light-shadow-md: 0 16px 36px rgba(102,78,42,0.10);
      --ep-light-shadow-lg: 0 24px 54px rgba(102,78,42,0.12);
    }
    html[data-theme="light"] body {
      background:
        radial-gradient(circle at top, rgba(212,177,90,0.20), transparent 22%),
        radial-gradient(circle at 82% 8%, rgba(255,255,255,0.78), transparent 20%),
        linear-gradient(180deg, #fbf5ea 0%, var(--ep-light-page) 58%, var(--ep-light-page-2) 100%);
    }
    html[data-theme="light"] .ep-encounter {
      background: transparent;
      box-shadow: none;
    }
    html[data-theme="light"] .ep-header {
      background: rgba(250,244,236,0.92);
      border-bottom-color: var(--ep-light-border);
      box-shadow: inset 0 -1px 0 rgba(255,255,255,0.68);
    }
    html[data-theme="light"] .ep-sidebar-toggle,
    html[data-theme="light"] .ep-sidebar-expand,
    html[data-theme="light"] .ep-sidebar-hamburger {
      color: var(--ep-muted-text);
    }
    html[data-theme="light"] .ep-sidebar-toggle:hover,
    html[data-theme="light"] .ep-sidebar-expand:hover,
    html[data-theme="light"] .ep-sidebar-hamburger:hover {
      color: var(--ep-text);
    }
    html[data-theme="light"] .ep-audio-panel {
      background: linear-gradient(180deg, rgba(244,237,225,0), rgba(237,227,210,0.96) 28%, #ebdfcb 100%);
    }
    html[data-theme="light"] .ep-audio-panel.active::before {
      background: linear-gradient(90deg, transparent 0%, rgba(119,92,50,0.22) 12%, rgba(119,92,50,0.22) 88%, transparent 100%);
    }
    html[data-theme="light"] .ep-bottom-bar {
      background: rgba(254,249,241,0.88);
      border-color: var(--ep-light-border);
      box-shadow: var(--ep-light-shadow-lg);
    }
    html[data-theme="light"] .ep-bottom-bar-collapsed {
      background: transparent;
      border-top-color: transparent;
    }
    html[data-theme="light"] .ep-bottom-bar .ep-player {
      background: var(--ep-light-card-strong);
      border-color: var(--ep-light-border);
      box-shadow: var(--ep-light-shadow-lg);
    }
    html[data-theme="light"] .ep-bottom-bar-collapsed .ep-btn-play svg {
      fill: #1a1614;
    }
    html[data-theme="light"] .ep-player-icon {
      background: rgba(236,227,211,0.90);
      border-color: rgba(108,86,56,0.14);
      box-shadow: var(--ep-light-shadow-xs);
      color: var(--ep-gold-text);
    }
    html[data-theme="light"] .ep-track {
      background: rgba(80,60,40,0.12);
    }
    html[data-theme="light"] .ep-vol input[type=range] {
      background: rgba(80,60,40,0.14);
    }
    html[data-theme="light"] .ep-input {
      background: transparent;
      box-shadow: none;
    }
    html[data-theme="light"] .ep-input::placeholder {
      color: rgba(109,93,77,0.88);
    }
    html[data-theme="light"] .ep-input-area {
      background: linear-gradient(180deg, rgba(255,252,248,0.96), rgba(244,236,224,0.98));
      border-color: rgba(108,86,56,0.18);
      box-shadow: var(--ep-light-shadow-md);
    }
    html[data-theme="light"] .ep-input-area:focus-within {
      border-color: rgba(201,168,76,0.50);
      box-shadow: 0 0 0 4px rgba(201,168,76,0.12), var(--ep-light-shadow-md);
    }
    html[data-theme="light"] .ep-send-btn {
      border-color: rgba(255,255,255,0.45);
      box-shadow: 0 12px 24px rgba(119,92,50,0.18);
    }
    html[data-theme="light"] .ep-send-btn:hover:not(:disabled) {
      box-shadow: 0 16px 28px rgba(119,92,50,0.22);
    }
    html[data-theme="light"] .ep-send-btn:disabled {
      background: rgba(201,168,76,0.38);
    }
    html[data-theme="light"] .ep-mic-btn {
      background: rgba(255,255,255,0.58);
      border-color: rgba(108,86,56,0.14);
      color: var(--ep-muted-text);
      box-shadow: var(--ep-light-shadow-xs);
    }
    html[data-theme="light"] .ep-mic-btn:hover:not(:disabled) {
      background: rgba(245,235,214,0.98);
      border-color: rgba(201,168,76,0.28);
      color: var(--ep-text);
    }
    html[data-theme="light"] .ep-error-banner {
      background: rgba(194,86,65,0.08);
      border-color: rgba(158,58,35,0.18);
      color: #8b4335;
      box-shadow: var(--ep-light-shadow-xs);
    }
    html[data-theme="light"] .ep-error-dismiss {
      color: rgba(139,67,53,0.70);
    }
    html[data-theme="light"] .ep-error-dismiss:hover {
      color: #8b4335;
    }
    html[data-theme="light"] .ep-chat-panel {
      background:
        radial-gradient(circle at 16% 0%, rgba(212,177,90,0.18), transparent 26%),
        radial-gradient(circle at 84% 4%, rgba(255,255,255,0.82), transparent 24%),
        linear-gradient(180deg, #f8f1e6 0%, #f0e6d7 100%);
    }
    html[data-theme="light"] .ep-chat-panel::before {
      background:
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%),
        repeating-linear-gradient(180deg, rgba(108,86,56,0.03) 0, rgba(108,86,56,0.03) 1px, transparent 1px, transparent 14px);
      opacity: 0.42;
    }
    html[data-theme="light"] .ep-ph-icon {
      background: rgba(255,255,255,0.58);
      border-color: rgba(201,168,76,0.24);
      box-shadow: var(--ep-light-shadow-xs);
    }
    html[data-theme="light"] .ep-ph-body {
      color: var(--ep-muted-text);
    }
    html[data-theme="light"] .ep-msg-shepherd .ep-msg-bubble {
      background: linear-gradient(135deg, var(--ep-light-card-strong), var(--ep-light-card));
      border-color: rgba(108,86,56,0.14);
    }
    html[data-theme="light"] .ep-msg-user .ep-msg-bubble {
      background: linear-gradient(135deg, var(--ep-light-card-warm), rgba(231,215,183,0.94));
      border-color: rgba(145,118,58,0.22);
      color: #3a2e20;
    }
    html[data-theme="light"] .ep-msg-shepherd .ep-msg-label { color: #8a6a2a; }
    html[data-theme="light"] .ep-msg-user .ep-msg-label { color: #7a6754; }
    html[data-theme="light"] .ep-msg-system {
      color: #5a431d;
      background: linear-gradient(135deg, var(--ep-light-pill), rgba(241,228,197,0.94));
      border-color: var(--ep-light-border-strong);
      box-shadow: var(--ep-light-shadow-xs);
    }
    html[data-theme="light"] .ep-msg-system::before {
      box-shadow: 0 0 0 4px rgba(201,168,76,0.16);
    }
    html[data-theme="light"] .ep-messages::-webkit-scrollbar-thumb {
      background: rgba(108,86,56,0.16);
    }
    html[data-theme="light"] .ep-starter-chip {
      background: rgba(255,250,242,0.74);
      border-color: rgba(108,86,56,0.14);
      box-shadow: var(--ep-light-shadow-xs);
    }
    html[data-theme="light"] .ep-starter-chip:hover {
      background: rgba(245,236,216,0.96);
      border-color: rgba(201,168,76,0.26);
      box-shadow: var(--ep-light-shadow-sm);
    }
    html[data-theme="light"] .ep-block-btn-muted {
      border-color: rgba(108,86,56,0.20);
      color: var(--ep-muted-text);
    }
    html[data-theme="light"] .ep-sidebar {
      background: linear-gradient(180deg, var(--ep-light-sidebar), var(--ep-light-sidebar-2));
      border-right-color: var(--ep-border);
      box-shadow: inset -1px 0 0 rgba(255,255,255,0.46);
    }
    html[data-theme="light"] .ep-sidebar-header {
      background: rgba(235,226,210,0.88);
      border-bottom-color: rgba(108,86,56,0.14);
    }
    html[data-theme="light"] .ep-sidebar-new-btn {
      background: rgba(255,250,243,0.62);
      border-color: rgba(108,86,56,0.16);
      box-shadow: var(--ep-light-shadow-xs);
    }
    html[data-theme="light"] .ep-sidebar-new-btn:hover {
      background: rgba(247,238,219,0.94);
      border-color: rgba(201,168,76,0.28);
    }
    html[data-theme="light"] .ep-sidebar-new-btn svg {
      color: var(--ep-gold-text);
    }
    html[data-theme="light"] .ep-sidebar-group-label {
      background: rgba(228,216,199,0.92);
      color: #7a6754;
    }
    html[data-theme="light"] .ep-sidebar-item {
      background: rgba(255,250,242,0.54);
      border-color: rgba(108,86,56,0.10);
      box-shadow: none;
    }
    html[data-theme="light"] .ep-sidebar-item:hover {
      background: rgba(255,251,245,0.88);
      border-color: rgba(201,168,76,0.22);
      box-shadow: var(--ep-light-shadow-sm);
    }
    html[data-theme="light"] .ep-sidebar-item.active {
      background: linear-gradient(135deg, var(--ep-light-card-strong), var(--ep-light-card-warm));
      border-color: var(--ep-light-border-strong);
      box-shadow: inset 2px 0 0 rgba(201,168,76,0.72), var(--ep-light-shadow-sm);
    }
    html[data-theme="light"] .ep-sidebar-item.active:hover {
      background: linear-gradient(135deg, rgba(250,244,234,0.98), rgba(239,227,206,0.96));
    }
    html[data-theme="light"] .ep-sidebar-footer {
      background: rgba(224,211,192,0.84);
      border-top-color: rgba(108,86,56,0.14);
    }
    html[data-theme="light"] .ep-sidebar-utility-btn {
      background: rgba(255,250,243,0.58);
      border-color: rgba(108,86,56,0.12);
      box-shadow: var(--ep-light-shadow-xs);
    }
    html[data-theme="light"] .ep-sidebar-utility-btn:hover {
      background: rgba(247,238,220,0.92);
      border-color: rgba(201,168,76,0.24);
    }
    html[data-theme="light"] .ep-sidebar-empty svg {
      color: rgba(109,93,77,0.78);
    }
    html[data-theme="light"] .ep-sidebar-loading .ep-skeleton-bar {
      background: linear-gradient(90deg, rgba(212,177,90,0.08) 20%, rgba(255,255,255,0.68) 50%, rgba(212,177,90,0.08) 80%);
    }
    html[data-theme="light"] .ep-sidebar-sessions::-webkit-scrollbar-thumb {
      background: rgba(108,86,56,0.16);
    }
    html[data-theme="light"] .ep-msg-bubble {
      box-shadow: var(--ep-light-shadow-sm);
    }
    html[data-theme="light"] .ep-footer {
      background: linear-gradient(180deg, rgba(244,236,224,0), rgba(241,231,217,0.72));
    }
    html[data-theme="light"] .ep-footer p {
      color: var(--ep-muted-text);
    }
    html[data-theme="light"] .ep-footer .ep-footer-sep {
      color: rgba(47,38,28,0.26);
    }

    /* ─── Footer ─────────────────────────────────────────── */
    .ep-footer {
      margin-top: auto;
      padding: 0.5556rem 1.3333rem 0.8889rem;
      text-align: center;
      opacity: 0.96;
    }
    .ep-footer p {
      font-size: 0.6111rem;
      color: var(--ep-small-text);
      line-height: 1.9;
      font-family: 'Jost', sans-serif;
    }
    .ep-chat-active.visible ~ .ep-footer {
      padding-top: 2px;
    }
    .ep-footer a {
      color: var(--ep-text);
      text-decoration: none;
      padding: 2px 0.2222rem;
      transition: background 200ms ease, color 200ms ease;
    }
    .ep-footer a:hover {
      background: var(--ep-gold-faint);
      border-radius: 4px;
      color: var(--ep-gold-text);
      text-decoration: none;
    }
    .ep-footer .ep-footer-sep {
      color: rgba(243,237,227,0.42);
    }
    .ep-footer .ep-footer-copyright {
      margin-top: 0.2222rem;
    }

    .ep-subscribe-btn {
      text-decoration: none;
      font-size: 0.7222rem;
      font-weight: 500;
      letter-spacing: 0.07em;
      color: var(--ep-gold);
      border-color: rgba(201,168,76,0.45);
      padding: 0.5556rem 0.7778rem;
      width: 100%;
      text-align: center;
      display: block;
      border: 1px solid rgba(201,168,76,0.45);
      border-radius: 8px;
    }
    .ep-subscribe-btn:hover { border-color: var(--ep-gold); background: rgba(201,168,76,0.10); }

    /* ─── Smooth Theme Transition ────────────────────────── */
    html.ep-transitioning * {
      transition: background-color 2s ease, color 2s ease,
                  border-color 2s ease, box-shadow 2s ease !important;
    }

    /* ── Share message card ── */
    .ep-share-card {
      margin: 0.4444rem 0;
      border: 1px solid var(--ep-border);
      border-radius: 14px;
      padding: 0.8889rem 1rem;
      background: rgba(13,17,23,0.55);
      display: flex;
      flex-direction: column;
      gap: 0.6667rem;
    }
    .ep-share-label {
      font-size: 0.6111rem;
      color: var(--ep-gold-text);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-family: 'Jost', sans-serif;
    }
    .ep-share-textarea {
      width: 100%;
      box-sizing: border-box;
      background: rgba(0,0,0,0.25);
      border: 1px solid var(--ep-border);
      border-radius: 8px;
      color: var(--ep-text);
      font-family: 'Jost', sans-serif;
      font-size: 0.7778rem;
      font-weight: 300;
      line-height: 1.65;
      padding: 0.5556rem 0.7778rem;
      resize: vertical;
      min-height: 90px;
    }
    .ep-share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    html[data-theme="light"] .ep-share-card {
      background: rgba(255,250,243,0.90);
      border-color: rgba(108,86,56,0.14);
      box-shadow: var(--ep-light-shadow-sm);
    }
    html[data-theme="light"] .ep-share-textarea {
      background: rgba(255,255,255,0.76);
      border-color: rgba(108,86,56,0.14);
      color: var(--ep-text);
    }

    /* ── Export bar ── */
    .ep-export-bar {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 1.1111rem;
      padding: 0.5556rem 1.1111rem;
      border-top: 1px solid var(--ep-border);
      background: var(--ep-surface);
      flex-wrap: wrap;
    }
    .ep-export-bar.visible { display: flex; }
    .ep-export-label {
      font-size: 0.5556rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ep-small-text);
      font-family: 'Jost', sans-serif;
      margin-right: 0.2222rem;
    }
    .ep-export-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--ep-small-text);
      font-family: 'Jost', sans-serif;
      font-size: 0.5556rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      opacity: 0.8;
      transition: opacity 0.2s, color 0.2s, background 200ms ease;
      padding: 0.2222rem 0.4444rem;
    }
    .ep-export-btn:hover { background: var(--ep-gold-faint); opacity: 1; color: var(--ep-gold-text); }
    .ep-export-btn-icon { display: flex; align-items: center; }
    .ep-export-btn.ep-export-copied { color: var(--ep-gold-text); opacity: 1; }

    /* ── Print root (hidden on screen, shown when printing) ── */
    #ep-print-root {
      display: none;
      font-family: 'Cormorant Garamond', Georgia, serif;
      color: #2d2a24;
      max-width: 680px;
      margin: 0 auto;
      padding: 3.3333rem 2.6667rem;
      line-height: 1.8;
    }
    .ep-print-header {
      text-align: center;
      margin-bottom: 2.2222rem;
      padding-bottom: 1.3333rem;
      border-bottom: 1px solid #c9a84c;
    }
    .ep-print-logo {
      font-size: 1.6667rem;
      font-weight: 400;
      letter-spacing: 0.14em;
      color: #1a1614;
    }
    .ep-print-subtitle {
      font-size: 0.7222rem;
      font-weight: 300;
      letter-spacing: 0.2em;
      color: #6b6358;
      margin-top: 0.3333rem;
      font-style: italic;
    }
    .ep-print-meta {
      margin-bottom: 1.7778rem;
      font-size: 0.7222rem;
      color: #6b6358;
    }
    .ep-print-datetime { margin-bottom: 10px; font-style: italic; }
    .ep-print-meta-row { margin-bottom: 5px; }
    .ep-print-meta-row strong {
      font-weight: 500;
      color: #2d2a24;
      margin-right: 0.4444rem;
      text-transform: uppercase;
      font-size: 0.5833rem;
      letter-spacing: 0.1em;
    }
    .ep-print-divider {
      text-align: center;
      color: #c9a84c;
      font-size: 1rem;
      margin: 1.7778rem 0;
    }
    .ep-print-turn { margin-bottom: 26px; }
    .ep-print-speaker {
      font-size: 0.5833rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      margin-bottom: 0.2778rem;
      color: #9a8f82;
    }
    .ep-print-selah .ep-print-speaker { color: #c9a84c; }
    .ep-print-text {
      font-size: 0.8611rem;
      font-weight: 300;
      line-height: 1.85;
      color: #2d2a24;
    }
    .ep-print-footer {
      margin-top: 52px;
      padding-top: 0.8889rem;
      border-top: 1px solid rgba(201,168,76,0.35);
      font-size: 0.6111rem;
      color: #9a8f82;
      text-align: center;
      letter-spacing: 0.08em;
      font-style: italic;
    }
    /* ── Keyboard focus ring (WCAG 2.4.7) ── */
    :focus-visible {
      outline: 2px solid var(--ep-gold);
      outline-offset: 2px;
      border-radius: 4px;
    }
    /* Input uses border + shadow instead of outline to avoid double border */
    .ep-input:focus-visible {
      outline: none;
      box-shadow: none;
    }

    /* ── Path choice buttons (Exchange 2) ── */
    .ep-choice-row {
      display: flex;
      flex-direction: column;
      gap: 0.4444rem;
      margin: 0.4444rem 0 0.2222rem;
    }
    .ep-choice-btn {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(228,210,180,0.18);
      border-radius: 16px;
      color: var(--ep-text);
      cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.8333rem;
      font-style: italic;
      letter-spacing: 0.02em;
      padding: 0.6667rem 1rem;
      text-align: left;
      transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
      width: 100%;
      box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }
    .ep-choice-btn:hover {
      background: rgba(212,177,90,0.14);
      border-color: rgba(240,216,147,0.34);
      box-shadow: 0 14px 30px rgba(0,0,0,0.16);
      transform: translateY(-1px);
    }
    .ep-choice-btn:active { opacity: 0.75; }
    .ep-choice-btn:disabled { opacity: 0.45; cursor: default; }

    /* ── Library meditation cards ── */
    .ep-lib-cards {
      display: flex;
      flex-direction: column;
      gap: 0.4444rem;
      margin: 0.4444rem 0 0.2222rem;
    }
    .ep-lib-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(228,210,180,0.18);
      border-radius: 16px;
      cursor: pointer;
      padding: 0.7222rem 0.8889rem;
      text-align: left;
      transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
      width: 100%;
      box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }
    .ep-lib-card:hover {
      background: rgba(212,177,90,0.14);
      border-color: rgba(240,216,147,0.30);
      box-shadow: 0 14px 30px rgba(0,0,0,0.16);
      transform: translateY(-1px);
    }
    .ep-lib-card-title {
      color: var(--ep-text);
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.8333rem;
      font-style: italic;
      letter-spacing: 0.02em;
      margin-bottom: 0.2222rem;
    }
    .ep-lib-card-scripture {
      color: var(--ep-small-text);
      font-family: 'Jost', sans-serif;
      font-size: 0.6111rem;
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }

    /* ── Depth choice buttons ── */
    .ep-depth-row {
      display: flex;
      gap: 0.5556rem;
      flex-wrap: wrap;
      margin: 0.5556rem 0 0.2222rem;
    }
    .ep-depth-btn {
      flex: 1;
      min-width: 80px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(228,210,180,0.18);
      border-radius: 16px;
      color: var(--ep-text);
      cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.7778rem;
      font-style: italic;
      padding: 0.6111rem 0.5556rem;
      text-align: center;
      transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }
    .ep-depth-btn:hover {
      background: rgba(212,177,90,0.14);
      border-color: rgba(240,216,147,0.34);
      box-shadow: 0 14px 30px rgba(0,0,0,0.16);
      transform: translateY(-1px);
    }
    .ep-depth-btn:disabled { opacity: 0.45; cursor: default; }

    html[data-theme="light"] .ep-choice-btn,
    html[data-theme="light"] .ep-lib-card,
    html[data-theme="light"] .ep-depth-btn {
      background: rgba(255,250,243,0.78);
      border-color: rgba(145,118,58,0.20);
      box-shadow: var(--ep-light-shadow-sm);
    }
    html[data-theme="light"] .ep-choice-btn:hover,
    html[data-theme="light"] .ep-lib-card:hover,
    html[data-theme="light"] .ep-depth-btn:hover {
      background: rgba(245,236,216,0.96);
      border-color: rgba(180,140,60,0.34);
      box-shadow: var(--ep-light-shadow-md);
    }

    @media print {
      * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
      .ep-encounter, audio { display: none !important; }
      #ep-print-root { display: block !important; }
    }

    /* ── Mobile ── */
    @media (max-width: 640px) {
      .ep-chat-panel { min-height: 0; }
      .ep-messages { padding: 20px 16px 12px; }
      .ep-msg { max-width: 92%; }
      .ep-input-area {
        max-width: calc(100% - 24px);
        padding: 0.5556rem 0.6667rem 0.5556rem 0.8889rem;
        margin-bottom: 0.3333rem;
      }
      .ep-bottom-bar-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
      }
    }

    /* ── Responsive: trim sidebar on laptop widths ── */
    @media (max-width: 1199px) and (min-width: 1024px) {
      .ep-body {
        --ep-sidebar-w: 240px;
      }
    }

    /* ── Responsive: sidebar overlay below 900px ── */
    @media (max-width: 899px) {
      .ep-sidebar-toggle { display: none; }
      .ep-sidebar-expand { display: none !important; }
      .ep-sidebar-hamburger { display: flex; }
      .ep-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 280ms ease;
      }
      .ep-sidebar.overlay-open {
        transform: translateX(0);
      }
      .ep-sidebar-footer {
        padding-bottom: calc(0.6667rem + env(safe-area-inset-bottom, 0));
      }
      .ep-body {
        --ep-sidebar-w: 0px;
      }
    }

    /* ── Reduced Motion ── */
    @media (prefers-reduced-motion: reduce) {
      .ep-msg {
        animation: none;
      }
      * {
        transition-duration: 0.01ms !important;
      }
    }

  /* ── Settings Drawer ── */
  .ep-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 199;
    display: none;
  }
  .ep-drawer-backdrop.visible { display: block; }

  .ep-settings-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--ep-surface);
    border-left: 1px solid var(--ep-border);
    width: 300px;
    max-width: 85vw;
    padding: 1.3333rem;
    display: flex;
    flex-direction: column;
    gap: 0.8889rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .ep-settings-drawer.visible {
    transform: translateX(0);
  }

  .ep-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .ep-drawer-close {
    background: none;
    border: none;
    font-size: 1.2222rem;
    color: var(--ep-muted-text);
    cursor: pointer;
    padding: 0.6111rem;
    min-width: 44px;
    min-height: 44px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 200ms ease, background 200ms ease;
  }
  .ep-drawer-close:hover { background: var(--ep-gold-faint); color: var(--ep-text); }

  /* Phase 36 D-09: Text size segmented control */
  .ep-text-size-toggle {
    display: flex;
    gap: 0.2222rem;
    padding: 0.4444rem 0;
    margin-bottom: 0.4444rem;
  }
  .ep-text-size-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.4444rem 0.6667rem;
    background: transparent;
    border: 1px solid var(--ep-border);
    border-radius: 6px;
    color: var(--ep-text);
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  }
  .ep-text-size-btn[data-scale="1"] span[aria-hidden] { font-size: 14px; }
  .ep-text-size-btn[data-scale="1.25"] span[aria-hidden] { font-size: 18px; }
  .ep-text-size-btn[data-scale="1.5"] span[aria-hidden] { font-size: 22px; }
  .ep-text-size-btn:hover {
    background: var(--ep-gold-faint);
    border-color: var(--ep-gold);
  }
  .ep-text-size-btn[aria-pressed="true"] {
    background: var(--ep-gold-faint);
    border-color: var(--ep-gold);
    color: var(--ep-gold);
  }
  .ep-text-size-btn:focus-visible {
    outline: 2px solid var(--ep-gold);
    outline-offset: 2px;
  }
  .ep-drawer-separator {
    border: 0;
    border-top: 1px solid var(--ep-border);
    margin: 0.4444rem 0 0.8889rem;
  }

  /* Screen-reader-only utility class (Phase 36) */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ep-drawer-section {
    display: flex;
    flex-direction: column;
    gap: 0.7778rem;
  }

  .ep-drawer-divider {
    border: none;
    border-top: 1px solid var(--ep-border);
    margin: 0.2222rem 0;
    height: 0;
  }

  .ep-drawer-toggle {
    background: none;
    border: 1px solid var(--ep-border);
    border-radius: 8px;
    padding: 0.7222rem 0.8889rem;
    min-height: 44px;
    color: var(--ep-text);
    font-family: 'Jost', sans-serif;
    font-size: 0.7778rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4444rem;
    transition: border-color 0.18s, background 200ms ease;
    width: 100%;
    text-align: left;
  }
  .ep-drawer-toggle:hover { background: var(--ep-gold-faint); border-color: var(--ep-gold); }
  .ep-settings-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8889rem;
    color: var(--ep-text);
    margin-bottom: 0.2222rem;
  }
  .ep-settings-row { display: flex; flex-direction: column; gap: 6px; }
  .ep-settings-label {
    font-size: 0.5556rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ep-small-text);
  }
  .ep-settings-select {
    background: rgba(13,17,23,0.5);
    border: 1px solid var(--ep-border);
    border-radius: 8px;
    color: var(--ep-text);
    font-family: 'Jost', sans-serif;
    font-size: 0.7778rem;
    font-weight: 300;
    padding: 0.6111rem 0.7778rem;
    min-height: 44px;
    outline: none;
    cursor: pointer;
  }
  html[data-theme="light"] .ep-settings-select {
    background: rgba(255,255,255,0.82);
    border-color: rgba(108,86,56,0.16);
  }

  /* ── Tier: voice upgrade prompt ── */
  .ep-voice-upgrade {
    font-size: 0.6667rem; color: var(--ep-small-text);
    line-height: 1.6; padding: 4px 0 2px;
  }
  .ep-voice-upgrade a { color: var(--ep-gold-text); text-decoration: none; }
  .ep-voice-upgrade a:hover { text-decoration: underline; }

  .ep-settings-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5556rem;
    margin-top: auto;
  }
  .ep-settings-actions .ep-logout-btn { margin-top: 0; }
  .ep-settings-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  /* ── Logout button ── */
  .ep-logout-btn {
    margin-top: 0.4444rem;
    padding: 0.6667rem 0;
    min-height: 44px;
    width: 100%;
    background: none;
    border: 1px solid var(--ep-border);
    border-radius: 8px;
    color: var(--ep-small-text);
    font-family: 'Jost', sans-serif;
    font-size: 0.7222rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 200ms ease;
  }
  .ep-logout-btn:hover {
    background: var(--ep-gold-faint);
    color: var(--ep-text);
    border-color: var(--ep-text);
  }
  .ep-logout-btn:focus-visible {
    outline: 2px solid var(--ep-gold);
    outline-offset: 2px;
  }

  /* ── Tier: text-only meditation card (Still) ── */
  .ep-text-meditation {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: 12px;
    padding: 1.1111rem 1.1111rem 0.8889rem;
    margin: 0.4444rem 0;
  }
  .ep-text-meditation-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9444rem; font-style: italic; font-weight: 300;
    color: var(--ep-gold-text); letter-spacing: 0.04em;
    margin-bottom: 1rem;
  }
  .ep-text-meditation-block { margin-bottom: 18px; }
  .ep-text-meditation-block:last-of-type { margin-bottom: 0; }
  .ep-text-meditation-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.5556rem; font-weight: 400;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ep-small-text); margin-bottom: 6px;
  }
  .ep-text-meditation-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8889rem; font-weight: 300;
    color: var(--ep-dim); line-height: 1.85;
  }
  .ep-text-meditation-upgrade {
    font-size: 0.6667rem; color: var(--ep-small-text);
    border-top: 1px solid var(--ep-border);
    padding-top: 0.6667rem; margin-top: 16px;
  }
  .ep-text-meditation-upgrade a { color: var(--ep-gold-text); text-decoration: none; }
  .ep-text-meditation-upgrade a:hover { text-decoration: underline; }

  /* ── Restored Audio Card ── */
  .ep-restored-audio-card {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: 12px;
    padding: 0.8889rem 1.1111rem;
    margin: 0.4444rem 0;
  }
  .ep-restored-audio-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9444rem;
    font-style: italic;
    font-weight: 300;
    color: var(--ep-gold-text);
    letter-spacing: 0.04em;
    margin-bottom: 0.2222rem;
  }
  .ep-restored-audio-scripture {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.7778rem;
    font-weight: 300;
    color: var(--ep-muted-text);
  }
  .ep-restored-audio-replay {
    margin-top: 0.7778rem;
  }

  /* ── Favorites ── */
  .ep-fav-panel {
    position: absolute;
    top: 56px;
    right: 52px;
    z-index: 100;
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: 14px;
    padding: 1.1111rem 1.3333rem;
    width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    gap: 0.5556rem;
    max-height: 420px;
    overflow-y: auto;
  }
  .ep-fav-panel.visible { display: flex; }
  .ep-fav-panel-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8889rem;
    color: var(--ep-text);
    margin-bottom: 2px;
  }
  .ep-fav-empty {
    font-family: 'Jost', sans-serif;
    font-size: 0.7222rem;
    color: var(--ep-small-text);
    text-align: center;
    padding: 0.7778rem 0;
    font-style: italic;
  }
  .ep-fav-item {
    display: flex;
    align-items: center;
    gap: 0.5556rem;
    border: 1px solid rgba(232,201,122,0.28);
    border-radius: 10px;
    padding: 0.5556rem 0.6667rem;
  }
  .ep-fav-item-info { flex: 1; min-width: 0; }
  .ep-fav-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.7778rem;
    color: var(--ep-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ep-fav-item-ref {
    font-family: 'Jost', sans-serif;
    font-size: 0.6111rem;
    color: var(--ep-gold-text);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 2px;
  }
  .ep-fav-play-btn {
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: 8px;
    color: var(--ep-gold);
    cursor: pointer;
    padding: 0.2778rem 0.5556rem;
    font-size: 0.7222rem;
    flex-shrink: 0;
    transition: background 0.2s;
    line-height: 1;
  }
  .ep-fav-play-btn:hover { background: rgba(201,168,76,0.28); }
  .ep-fav-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ep-gold);
    padding: 3px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
  }
  .ep-fav-remove-btn:hover { opacity: 1; }
  .ep-fav-remove-btn svg { display: block; }
  /* Heart on player */
  .ep-player-fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ep-dim);
    padding: 0.2222rem;
    margin-left: auto;
    align-self: center;
    transition: color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
  }
  .ep-player-fav-btn svg { display: block; fill: currentColor; }
  .ep-player-fav-btn:hover { color: var(--ep-gold); transform: scale(1.15); }
  .ep-player-fav-btn.active { color: var(--ep-gold); }
  /* Heart on lib cards */
  .ep-lib-card { position: relative; }
  .ep-lib-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ep-dim);
    padding: 3px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    z-index: 2;
  }
  .ep-lib-card-fav svg { display: block; fill: currentColor; }
  .ep-lib-card-fav:hover { color: var(--ep-gold); }
  .ep-lib-card-fav.active { color: var(--ep-gold); }

  /* ── Prayer card ── */
  .ep-prayer-card {
    margin: 0.4444rem 0;
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 14px;
    padding: 1.1111rem 1.2222rem;
    background: rgba(201,168,76,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5556rem;
  }
  .ep-prayer-label {
    font-size: 0.5556rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ep-gold-text);
    font-family: 'Jost', sans-serif;
  }
  .ep-prayer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8889rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--ep-text);
    font-style: italic;
    white-space: pre-line;
  }
  html[data-theme="light"] .ep-prayer-card {
    background: linear-gradient(180deg, rgba(249,242,228,0.92), rgba(243,233,212,0.96));
    border-color: rgba(150,110,40,0.22);
    box-shadow: var(--ep-light-shadow-sm);
  }

  /* ── Onboarding splash (first-time users only) ── */
  /* ── Onboarding overlay ── */
  .ep-onboard {
    position: absolute; inset: 0; z-index: 200;
    background: var(--ep-bg);
    border-radius: 0;
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: opacity 0.45s ease;
  }
  .ep-onboard.hidden { display: none; }
  .ep-onboard-screens {
    flex: 1; display: flex; overflow: hidden; position: relative;
  }
  .ep-onboard-screen {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2.2222rem 1.7778rem 1.3333rem;
    text-align: center; gap: 18px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
    overflow-y: auto;
  }
  .ep-onboard-screen.active { opacity: 1; pointer-events: auto; }
  .ep-onboard-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4444rem; font-weight: 300;
    color: var(--ep-text); letter-spacing: 0.04em;
    line-height: 1.25;
  }
  .ep-onboard-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9444rem; font-style: italic; font-weight: 300;
    color: var(--ep-dim); line-height: 1.85;
    text-align: left; max-width: 380px;
  }
  .ep-onboard-letter p { margin-bottom: 1em; }
  .ep-onboard-letter p:last-child { margin-bottom: 0; }
  .ep-onboard-body {
    font-family: 'Jost', sans-serif;
    font-size: 0.8333rem; color: var(--ep-dim);
    line-height: 1.75; max-width: 340px;
  }
  .ep-onboard-bullets {
    display: flex; flex-direction: column; gap: 14px;
    width: 100%; max-width: 340px; text-align: left;
  }
  .ep-onboard-bullet {
    display: flex; align-items: flex-start; gap: 12px;
    font-family: 'Jost', sans-serif; font-size: 0.8333rem;
    color: var(--ep-dim); line-height: 1.6;
  }
  .ep-onboard-bullet-star {
    color: var(--ep-gold); font-size: 0.7778rem;
    flex-shrink: 0; margin-top: 2px;
  }
  .ep-onboard-chips {
    display: flex; flex-direction: column; gap: 8px;
    width: 100%; max-width: 340px;
    pointer-events: none;
  }
  .ep-onboard-chip {
    background: rgba(232,201,122,0.08);
    border: 1px solid rgba(232,201,122,0.25);
    border-radius: 12px;
    color: var(--ep-dim);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8333rem; font-style: italic;
    padding: 0.6111rem 0.8889rem; text-align: left;
    opacity: 0.7;
  }
  .ep-onboard-install {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; max-width: 340px;
  }
  .ep-onboard-install-row {
    background: var(--ep-surface);
    border: 1px solid var(--ep-border);
    border-radius: 12px;
    padding: 0.7778rem 0.8889rem; text-align: left;
  }
  .ep-onboard-install-os {
    font-family: 'Jost', sans-serif; font-size: 0.6667rem;
    font-weight: 500; letter-spacing: 0.08em;
    color: var(--ep-gold-text); text-transform: uppercase;
    margin-bottom: 0.2222rem;
  }
  .ep-onboard-install-text {
    font-family: 'Jost', sans-serif; font-size: 0.7778rem;
    color: var(--ep-dim); line-height: 1.6;
  }
  .ep-onboard-install-note {
    font-size: 0.6667rem; color: var(--ep-small-text);
    font-family: 'Jost', sans-serif;
  }
  .ep-onboard-finale-logo {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    margin-bottom: 0.2222rem;
  }
  .ep-onboard-finale-lines {
    display: flex; flex-direction: column; gap: 4px;
  }
  .ep-onboard-finale-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5556rem; font-weight: 300; font-style: italic;
    color: var(--ep-text); letter-spacing: 0.04em; line-height: 1.3;
  }
  /* Bottom bar: dots + button */
  .ep-onboard-footer {
    padding: 0.8889rem 1.7778rem 1.5556rem;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    flex-shrink: 0;
  }
  .ep-onboard-dots {
    display: flex; gap: 8px; align-items: center;
  }
  .ep-onboard-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .ep-onboard-dot.active {
    background: var(--ep-gold);
    transform: scale(1.25);
  }
  .ep-onboard-btn {
    padding: 0.8333rem 2.2222rem;
    min-height: 48px;
    background: var(--ep-gold); color: var(--ep-midnight);
    border: none; border-radius: 24px;
    font-family: 'Jost', sans-serif; font-size: 0.7222rem;
    font-weight: 500; letter-spacing: 0.06em;
    cursor: pointer; transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
  }
  .ep-onboard-btn:hover { background: var(--ep-gold-light); transform: translateY(-1px); }

/* --- Loading Skeleton --- */
.ep-loading-skeleton {
  padding: 1.3333rem 1.1111rem;
}
.ep-skeleton-bar {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: ep-skeleton-pulse 1.5s ease-in-out infinite;
  margin-bottom: 0.6667rem;
}
.ep-skeleton-bar--short {
  width: 60%;
}
@keyframes ep-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html[data-theme="light"] .ep-export-bar {
  background: rgba(249,243,235,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
html[data-theme="light"] .ep-settings-drawer {
  background: linear-gradient(180deg, rgba(251,246,238,0.98), rgba(240,231,217,0.98));
  border-left-color: rgba(108,86,56,0.16);
  box-shadow: -24px 0 48px rgba(102,78,42,0.12);
}
html[data-theme="light"] .ep-drawer-backdrop {
  background: rgba(66,49,24,0.18);
  backdrop-filter: blur(2px);
}
html[data-theme="light"] .ep-drawer-toggle,
html[data-theme="light"] .ep-logout-btn {
  background: rgba(255,250,243,0.68);
  border-color: rgba(108,86,56,0.14);
  box-shadow: var(--ep-light-shadow-xs);
}
html[data-theme="light"] .ep-drawer-toggle:hover,
html[data-theme="light"] .ep-logout-btn:hover {
  background: rgba(245,236,216,0.98);
  border-color: rgba(201,168,76,0.28);
}
html[data-theme="light"] .ep-text-meditation {
  background: var(--ep-light-card);
  border-color: rgba(108,86,56,0.14);
  box-shadow: var(--ep-light-shadow-sm);
}
html[data-theme="light"] .ep-restored-audio-card {
  background: var(--ep-light-card);
  border-color: rgba(108,86,56,0.14);
  box-shadow: var(--ep-light-shadow-sm);
}
html[data-theme="light"] .ep-fav-panel {
  background: linear-gradient(180deg, rgba(251,246,238,0.98), rgba(240,231,217,0.98));
  border-color: rgba(108,86,56,0.16);
  box-shadow: var(--ep-light-shadow-lg);
}
html[data-theme="light"] .ep-fav-item {
  background: rgba(255,250,243,0.76);
  border-color: rgba(145,118,58,0.20);
}
html[data-theme="light"] .ep-fav-play-btn {
  background: rgba(201,168,76,0.14);
  border-color: rgba(145,118,58,0.26);
  color: var(--ep-gold-text);
}
html[data-theme="light"] .ep-fav-play-btn:hover {
  background: rgba(201,168,76,0.22);
}
html[data-theme="light"] .ep-player-fav-btn,
html[data-theme="light"] .ep-lib-card-fav {
  color: var(--ep-muted-text);
}
html[data-theme="light"] .ep-player-fav-btn:hover,
html[data-theme="light"] .ep-player-fav-btn.active,
html[data-theme="light"] .ep-lib-card-fav:hover,
html[data-theme="light"] .ep-lib-card-fav.active {
  color: var(--ep-gold-text);
}
html[data-theme="light"] .ep-onboard {
  background:
    radial-gradient(circle at top, rgba(212,177,90,0.18), transparent 24%),
    linear-gradient(180deg, rgba(250,243,233,0.98), rgba(239,229,214,0.98));
}
html[data-theme="light"] .ep-onboard-chip {
  background: rgba(255,250,243,0.72);
  border-color: rgba(145,118,58,0.20);
  opacity: 0.92;
}
html[data-theme="light"] .ep-onboard-install-row {
  background: rgba(255,250,243,0.84);
  border-color: rgba(108,86,56,0.14);
  box-shadow: var(--ep-light-shadow-xs);
}
html[data-theme="light"] .ep-onboard-dot {
  background: rgba(108,86,56,0.16);
}
html[data-theme="light"] .ep-skeleton-bar {
  background: linear-gradient(90deg, rgba(212,177,90,0.08) 20%, rgba(255,255,255,0.64) 50%, rgba(212,177,90,0.08) 80%);
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 38: A2HS CARD (iOS Safari, dismissible)
   ══════════════════════════════════════════════════════════════════════════ */
.ep-a2hs-card {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  max-width: 360px;
  width: calc(100% - 32px);
  background: var(--ep-surface);
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 16px;
  color: var(--ep-text);
  font-family: 'Jost', sans-serif;
  z-index: 900;
  box-shadow: 0 10px 32px rgba(0,0,0,0.36);
}
.ep-a2hs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ep-a2hs-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ep-gold-text);
}
.ep-a2hs-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ep-muted-text);
  cursor: pointer;
  border-radius: 6px;
}
.ep-a2hs-close:hover {
  background: var(--ep-gold-faint);
  color: var(--ep-gold);
}
.ep-a2hs-body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ep-text);
  margin-bottom: 12px;
}
.ep-a2hs-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ep-a2hs-primary {
  background: var(--ep-gold-faint);
  color: var(--ep-gold-text);
  border: 1px solid var(--ep-border);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.ep-a2hs-primary:hover {
  background: var(--ep-gold-dim);
}
.ep-a2hs-secondary {
  background: transparent;
  color: var(--ep-muted-text);
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.ep-a2hs-secondary:hover {
  color: var(--ep-text);
}
.ep-a2hs-instructions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ep-border);
}
.ep-a2hs-card.expanded .ep-a2hs-instructions {
  display: block;
}
.ep-a2hs-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ep-text);
}
.ep-a2hs-steps li {
  margin-bottom: 6px;
}
.ep-a2hs-steps svg {
  vertical-align: middle;
  margin: 0 2px;
}
html[data-theme="light"] .ep-a2hs-card {
  box-shadow: 0 10px 32px rgba(100,80,40,0.18);
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 38: INSTALL BUTTON + BOOKMARK NUDGE + SHARE (Android/desktop)
   ══════════════════════════════════════════════════════════════════════════ */
.ep-install-button,
.ep-share-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ep-gold-faint);
  color: var(--ep-gold-text);
  border: 1px solid var(--ep-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
}
.ep-install-button:hover,
.ep-share-button:hover {
  background: var(--ep-gold-dim);
}
.ep-install-button svg,
.ep-share-button svg {
  width: 14px;
  height: 14px;
}
.ep-bookmark-nudge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ep-muted-text);
  font-family: 'Jost', sans-serif;
  padding: 4px 8px;
}
.ep-nudge-dismiss {
  background: transparent;
  border: none;
  color: var(--ep-muted-text);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.ep-nudge-dismiss:hover {
  color: var(--ep-text);
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 38: PWA FIRST-RUN CARD (standalone, no token, first boot)
   ══════════════════════════════════════════════════════════════════════════ */
.ep-pwa-first-run {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ep-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  font-family: 'Jost', sans-serif;
}
.ep-pwa-first-run-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--ep-gold-text);
  margin-bottom: 12px;
}
.ep-pwa-first-run-subtitle {
  font-size: 16px;
  color: var(--ep-text);
  margin-bottom: 28px;
  max-width: 320px;
  line-height: 1.5;
}
.ep-pwa-first-run-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}
.ep-pwa-first-run-primary {
  background: var(--ep-gold);
  color: var(--ep-bg);
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.ep-pwa-first-run-primary:hover {
  background: var(--ep-gold-light);
}
.ep-pwa-first-run-secondary {
  background: transparent;
  color: var(--ep-muted-text);
  border: 1px solid var(--ep-border);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.ep-pwa-first-run-secondary:hover {
  color: var(--ep-text);
  background: var(--ep-surface);
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 38: TOAST (used by PWA first-run + share action)
   ══════════════════════════════════════════════════════════════════════════ */
.ep-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ep-surface);
  color: var(--ep-text);
  border: 1px solid var(--ep-border);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  z-index: 9500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.36);
}
.ep-toast-icon {
  color: var(--ep-gold);
  font-weight: 600;
}
html[data-theme="light"] .ep-toast {
  box-shadow: 0 8px 24px rgba(100,80,40,0.18);
}

.ep-toast-card {
  bottom: calc(144px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 10px;
  align-items: start;
  width: min(92vw, 360px);
  padding: 16px 18px 18px;
  border-radius: 16px;
  border-color: rgba(201, 168, 76, 0.28);
  background:
    linear-gradient(180deg, rgba(38, 31, 25, 0.98), rgba(23, 19, 15, 0.98));
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ep-reassurance-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  line-height: 1.1;
  color: var(--ep-gold-light);
}

.ep-reassurance-card-body {
  font-size: 14px;
  line-height: 1.55;
  color: #e8e4dc;
}

.ep-reassurance-card-dismiss {
  justify-self: start;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  background: rgba(201, 168, 76, 0.16);
  color: var(--ep-gold-light);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ep-reassurance-card-dismiss:hover {
  background: rgba(201, 168, 76, 0.24);
}

html[data-theme="light"] .ep-toast-card {
  background:
    linear-gradient(180deg, rgba(252, 248, 241, 0.98), rgba(246, 239, 228, 0.98));
  box-shadow: 0 18px 44px rgba(100,80,40,0.2);
}

html[data-theme="light"] .ep-reassurance-card-body {
  color: #5e5144;
}

@media (max-width: 560px) {
  .ep-toast {
    max-width: calc(100vw - 28px);
  }

  .ep-toast-card {
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 32px);
    padding: 16px;
  }

  .ep-reassurance-card-title {
    font-size: 23px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 39: MEMBERFUL HYBRID UX
   Auth gate helper text, pre-redirect overlay, and settings link suffix.
   ══════════════════════════════════════════════════════════════════════════ */

/* Phase 39 D-01: helper text below the signin button on the auth gate. */
.ep-auth-gate-helper {
  font-size: 13px;
  color: #9a9088;
  max-width: 300px;
  line-height: 1.5;
  margin: -8px 0 0 0;
  text-align: center;
  font-family: 'Jost', sans-serif;
}

/* Phase 39 D-02: pre-redirect overlay shown synchronously on OAuth click. */
.ep-oauth-redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 200ms ease-out;
  font-family: 'Jost', sans-serif;
  color: #e8e4dc;
  text-align: center;
  padding: 32px;
}
.ep-oauth-redirect-overlay.visible {
  opacity: 1;
}
.ep-oauth-redirect-overlay-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(201, 168, 76, 0.25);
  border-top-color: #c9a84c;
  border-radius: 50%;
  animation: ep-oauth-spin 900ms linear infinite;
}
@keyframes ep-oauth-spin {
  to { transform: rotate(360deg); }
}
.ep-oauth-redirect-overlay-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: #e8c97a;
}
.ep-oauth-redirect-overlay-subline {
  font-size: 13px;
  color: #9a9088;
  max-width: 280px;
  line-height: 1.6;
}

/* Phase 39 D-11: dim suffix on settings drawer links that hop to Memberful. */
.ep-link-suffix {
  color: var(--ep-muted-text);
  font-size: 12px;
  margin-left: 4px;
  font-weight: 400;
}
