
/* ==========================================================
   ASTRODU ROADMAP U — DESIGN-TOKEN CLEANUP
   Canonical design primitives live in app.css.
   Feature-local tokens may remain where they intentionally
   describe a unique surface, but shared identity values alias
   back to the canonical AstroDu system.
   ========================================================== */

/* AstroDu app foundation: intentionally isolated under app-specific classes. */
:root {
  color-scheme: light;
  --app-ink-950: #0d0a05;
  --app-ink-900: #171208;
  --app-ink-800: #241b0c;
  /* Scoped to Splash + Welcome only (app launch surfaces) - deliberately more
     neutral than --app-ink-900, which reads warm/brown at this depth. Kept
     separate so the shell (topbar, cards, nav) is untouched by this change. */
  --app-launch-ink: #121110;
  --app-gold-500: #c8a84b;
  --app-gold-600: #a88935;
  --app-gold-700: #806724;
  --app-gold-bright: #d8bb68;
  --app-gold-soft: rgba(200,168,75,.28);
  --app-gold-faint: rgba(200,168,75,.16);

  --app-canvas: #0d0d0c;
  --app-surface-dark: #151513;
  --app-surface-raised: #1b1a17;
  --app-ivory: #f4eddd;
  --app-ivory-soft: #ddd3bd;

  --app-shadow-dark-sm: 0 6px 20px rgba(0,0,0,.20);
  --app-shadow-dark-md: 0 18px 44px rgba(0,0,0,.28);


  --app-interaction: 220ms;
  --app-cream-50: #fffdf7;
  --app-cream-100: #faf6ec;
  --app-parchment-200: #f1e8d4;
  --app-parchment-300: #e4d4af;
  --app-text: #20180c;
  --app-text-secondary: #4d473c;
  --app-text-muted: #655e52;
  --app-border: rgba(128, 103, 36, 0.24);
  --app-border-strong: rgba(128, 103, 36, 0.44);
  --app-success: #347052;
  --app-warning: #a26324;
  --app-danger: #a84036;
  --app-space-1: 4px;
  --app-space-2: 8px;
  --app-space-3: 12px;
  --app-space-4: 16px;
  --app-space-5: 20px;
  --app-space-6: 24px;
  --app-space-8: 32px;
  --app-space-10: 40px;
  --app-radius-sm: 10px;
  --app-radius-md: 16px;
  --app-radius-lg: 24px;
  --app-radius-pill: 999px;
  --app-shadow-sm: 0 7px 22px rgba(35, 25, 7, 0.07);
  --app-shadow-md: 0 18px 54px rgba(35, 25, 7, 0.14);
  --app-font-editorial: "Cormorant Garamond", Georgia, serif;
  --app-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --app-ease: cubic-bezier(.2, .75, .25, 1);
  --app-fast: 160ms;
  --app-normal: 280ms;
  --app-topbar-height: 54px;
  --app-nav-height: 62px;
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-safe-right: env(safe-area-inset-right, 0px);
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-safe-left: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; }
html { background: var(--app-ink-900); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--app-ink-900); color: var(--app-text); font-family: var(--app-font-ui); font-size: 16px; line-height: 1.6; }
body.app-launching { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
svg { display: block; }

.app-skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-160%); border-radius: var(--app-radius-sm); background: var(--app-cream-50); color: var(--app-ink-900); padding: 10px 14px; font-weight: 600; }
.app-skip-link:focus { transform: translateY(0); }

.app-launch { position: fixed; inset: 0; z-index: 200; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; background: var(--app-launch-ink); color: var(--app-cream-100); }
.app-launch[hidden] { display: none; }

/* ── Splash: AstroDu signature launch moment. ─────────────────────────────
   Deliberately lightweight: CSS only, no image/network dependency and no
   change to the existing readiness/timing gate in app.js. */
.app-splash {
  position: absolute;
  inset: 0;
  min-height: 100dvh;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding:
    var(--app-safe-top)
    var(--app-safe-right)
    var(--app-safe-bottom)
    var(--app-safe-left);
  background: var(--app-launch-ink);
  opacity: 1;
  transition: opacity 300ms var(--app-ease);
  isolation: isolate;
}

.app-splash[hidden] {
  display: none;
}

.app-splash.is-exiting {
  opacity: 0;
}

/* Very restrained light field behind the identity. */
.app-splash-atmosphere {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78vw, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      circle,
      rgba(200,168,75,.105) 0%,
      rgba(200,168,75,.045) 31%,
      rgba(200,168,75,.012) 52%,
      transparent 70%
    );
  opacity: 0;
  transform: translate(-50%, -50%) scale(.68);
  animation: app-splash-atmosphere 900ms var(--app-ease) both;
}

.app-splash-stage {
  position: relative;
  z-index: 1;
  width: min(78vw, 310px);
  height: 126px;
  display: grid;
  place-items: center;
}

/* The orbit deliberately sits behind the wordmark rather than enclosing it
   like a badge. This keeps the identity editorial rather than logo-heavy. */
.app-splash-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 286px);
  height: 82px;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
  opacity: 0;
  animation: app-splash-orbit-arrive 850ms 120ms var(--app-ease) both;
}

.app-splash-orbit-line {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(216,187,104,.26);
  border-radius: 50%;
  transform: scaleX(1);
  box-shadow:
    inset 0 0 18px rgba(200,168,75,.025),
    0 0 12px rgba(200,168,75,.025);
}

/* Masks part of the ellipse so it reads as a celestial trajectory rather
   than a decorative oval border. */
.app-splash-orbit-line::after {
  content: "";
  position: absolute;
  left: 13%;
  bottom: -4px;
  width: 48%;
  height: 18px;
  background: var(--app-launch-ink);
  filter: blur(2px);
  transform: rotate(2deg);
}

.app-splash-orbit-point {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: var(--app-gold-bright);
  box-shadow:
    0 0 6px rgba(216,187,104,.92),
    0 0 15px rgba(200,168,75,.55);
  transform-origin: 0 0;
  animation: app-splash-orbit-point 1050ms 90ms var(--app-ease) both;
}

.app-splash-brand {
  position: relative;
  z-index: 2;
  color: var(--app-gold-500);
  font-family: var(--app-font-editorial);
  font-size: clamp(1.65rem, 7vw, 2.05rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .22em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px) scale(.965);
  filter: blur(3px);
  animation: app-splash-brand-resolve 620ms 100ms var(--app-ease) forwards;
}

.app-splash-brand em {
  position: relative;
  color: var(--app-cream-100);
  font-style: italic;
}

/* One small signature glint. It fires once and disappears. */
.app-splash-glint {
  position: absolute;
  right: -8px;
  top: -12px;
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: scale(.25) rotate(0deg);
  animation: app-splash-glint 420ms 560ms var(--app-ease) both;
}

.app-splash-glint::before,
.app-splash-glint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: #f5e8b7;
  box-shadow: 0 0 7px rgba(216,187,104,.7);
  transform: translate(-50%, -50%);
}

.app-splash-glint::before {
  width: 1px;
  height: 15px;
}

.app-splash-glint::after {
  width: 15px;
  height: 1px;
}

@keyframes app-splash-atmosphere {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.68);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: .72;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes app-splash-brand-resolve {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(.965);
    filter: blur(3px);
  }
  52% {
    opacity: .96;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes app-splash-orbit-arrive {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-15deg) scale(.82);
  }
  45% {
    opacity: .72;
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }
}

@keyframes app-splash-orbit-point {
  0% {
    opacity: 0;
    transform: rotate(205deg) translateX(139px) scale(.45);
  }
  12% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(348deg) translateX(139px) scale(1);
  }
}

@keyframes app-splash-glint {
  0% {
    opacity: 0;
    transform: scale(.25) rotate(0deg);
  }
  35% {
    opacity: 1;
    transform: scale(1) rotate(20deg);
  }
  68% {
    opacity: .82;
  }
  100% {
    opacity: 0;
    transform: scale(.35) rotate(42deg);
  }
}

/* Accessibility: preserve the branded launch state without motion.
   app.js already removes the Splash timing floor for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  .app-splash-brand::after {
    animation: none !important;
    display: none !important;
  }

  .app-splash-atmosphere,
  .app-splash-orbit,
  .app-splash-orbit-point,
  .app-splash-brand,
  .app-splash-glint {
    animation: none !important;
  }

  .app-splash-atmosphere {
    opacity: .42;
    transform: translate(-50%, -50%) scale(1);
  }

  .app-splash-orbit {
    opacity: .55;
    transform: translate(-50%, -50%) rotate(-8deg);
  }

  .app-splash-orbit-point,
  .app-splash-glint {
    display: none;
  }

  .app-splash-brand {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ── Welcome ───────────────────────────────────────────────────────────── */
.app-welcome { position: absolute; inset: 0; z-index: 1; min-height: 100dvh; padding: var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left); }
.app-welcome[hidden] { display: none; }
.app-welcome-brand em { color: var(--app-cream-100); font-style: italic; }

.app-welcome { display: flex; flex-direction: column; overflow-y: auto; background: #080603; }
.app-welcome-brand { position: relative; z-index: 1; flex: 0 0 auto; padding: 20px 24px 0; color: var(--app-gold-500); font-family: var(--app-font-editorial); font-size: 1rem; letter-spacing: .18em; }
.app-welcome-content { position: relative; z-index: 1; width: min(100%, 480px); margin: auto auto 0; padding: 22px 28px 20px; text-align: center; }

/* Star/falling-light atmosphere - a real canvas port of the public homepage's
   starfield (index.html #star-canvas), not a CSS approximation. Same drawing
   algorithm and colour values, at a lighter point density for a mobile hero
   (see initWelcomeStars() in app.js). Drawing is gated by
   prefers-reduced-motion in JS, which the source canvas itself doesn't do. */
.app-welcome-stars { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.app-welcome-stars canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-welcome-product { position: relative; width: clamp(155px, 42vw, 175px); height: auto; aspect-ratio: 502 / 799; margin: 0 auto 20px; }
.app-welcome-product::before { content: ""; position: absolute; left: 50%; bottom: -12px; width: 76%; height: 20px; background: radial-gradient(ellipse at center, rgba(50,40,24,.55), rgba(50,40,24,0) 72%); transform: translateX(-50%); pointer-events: none; }
.app-product-crop { position: absolute; inset: 0; overflow: hidden; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.app-product-crop img { position: absolute; left: -2px; top: 0; width: auto; max-width: none; height: 100%; }
.app-welcome h1 { margin: 0; font-family: var(--app-font-editorial); font-size: clamp(1.6rem, 6.9vw, 1.9375rem); font-weight: 300; color: #f5efe0; letter-spacing: .015em; line-height: 1.2; }
.app-welcome h1 em { color: var(--app-gold-500); font-style: italic; }
.app-welcome-copy { max-width: 340px; margin: 14px auto 0; color: rgba(250,246,236,.88); font-size: .9rem; line-height: 1.55; }
.app-welcome-actions { position: relative; z-index: 1; width: min(100%, 480px); margin: 0 auto auto; padding: 30px 24px calc(var(--app-safe-bottom) + 26px); display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.app-welcome-actions p { margin: 0; color: rgba(250,246,236,.76); font-size: .94rem; }
.app-welcome-actions a { min-height: 44px; display: inline-flex; align-items: center; color: var(--app-cream-100); font-weight: 600; text-underline-offset: 3px; }

/* ── Register / Sign In (and the verify + onboarding hand-off states) ────
   Same launch surface as Splash/Welcome - dark ink, restrained gold, no
   gradients. Cormorant Garamond stays reserved for the brand mark and
   editorial headings only; every functional form element uses the UI
   font, matching Welcome's split. */
.app-auth, .app-verify, .app-onboarding-stub { position: absolute; inset: 0; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; overflow-y: auto; padding: var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left); }
.app-auth[hidden], .app-verify[hidden], .app-onboarding-stub[hidden] { display: none; }

.app-auth-back { position: relative; z-index: 2; flex: 0 0 auto; align-self: flex-start; width: 40px; height: 40px; margin: 14px 0 0 14px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--app-cream-100); cursor: pointer; }
.app-auth-back svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-auth-content { position: relative; z-index: 1; width: min(100%, 440px); margin: 0 auto; padding: 6px 24px calc(var(--app-safe-bottom) + 32px); flex: 1 0 auto; display: flex; flex-direction: column; }
.app-auth-brand { flex: 0 0 auto; margin: 6px 0 22px; text-align: center; color: var(--app-gold-500); font-family: var(--app-font-editorial); font-size: 1.35rem; letter-spacing: .16em; }
.app-auth-brand em { color: var(--app-cream-100); font-style: italic; }

.app-auth-card { flex: 0 0 auto; border: 1px solid rgba(200,168,75,.16); border-radius: var(--app-radius-lg); background: rgba(255,255,255,.035); padding: 22px 20px 26px; }

.app-auth-tabs { display: flex; gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: var(--app-radius-sm); background: rgba(255,255,255,.05); }
.app-auth-tab { flex: 1; min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: rgba(250,246,236,.55); font-family: var(--app-font-ui); font-size: .84rem; font-weight: 650; letter-spacing: .02em; cursor: pointer; transition: background var(--app-fast), color var(--app-fast); }
.app-auth-tab.is-active { background: var(--app-gold-500); color: #201705; }

.app-auth-msg { margin-bottom: 16px; border-radius: var(--app-radius-sm); padding: 11px 14px; font-size: .88rem; line-height: 1.5; }
.app-auth-msg[hidden] { display: none; }
.app-auth-msg.is-error { border: 1px solid rgba(220,90,74,.35); background: rgba(220,90,74,.12); color: #ff9484; }
.app-auth-msg.is-success { border: 1px solid rgba(70,163,116,.35); background: rgba(70,163,116,.12); color: #7be3ab; }

.app-google-btn { width: 100%; min-height: 46px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--app-radius-sm); background: rgba(255,255,255,.05); color: var(--app-cream-100); font-family: var(--app-font-ui); font-size: .88rem; font-weight: 600; cursor: pointer; overflow: hidden; padding: 0 14px; }
.app-google-icon { width: 18px; height: 18px; flex: 0 0 auto; }

.app-auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.app-auth-divider span { flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.app-auth-divider em { font-style: normal; color: rgba(250,246,236,.35); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }

.app-form-group { margin-bottom: 13px; }
.app-form-label { display: block; margin-bottom: 6px; color: rgba(250,246,236,.5); font-family: var(--app-font-ui); font-size: .74rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.app-form-input { width: 100%; min-height: 46px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--app-radius-sm); padding: 0 14px; background: rgba(255,255,255,.05); color: var(--app-cream-100); font-family: var(--app-font-ui); font-size: .95rem; outline: none; transition: border-color var(--app-fast), background var(--app-fast); -webkit-appearance: none; appearance: none; }
select.app-form-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c8a84b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.app-form-input::placeholder { color: rgba(250,246,236,.28); }
.app-form-input:focus { border-color: var(--app-gold-500); background: rgba(255,255,255,.08); }
.app-form-input[type="date"] { color-scheme: dark; }

.app-form-checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; }
.app-form-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--app-gold-500); cursor: pointer; }
.app-form-checkbox-row label { color: rgba(250,246,236,.5); font-size: .82rem; line-height: 1.6; cursor: pointer; }
.app-form-checkbox-row a { color: var(--app-gold-500); }

.app-auth-submit { width: 100%; margin-top: 2px; }
.app-auth-submit:disabled { opacity: .55; cursor: not-allowed; }

.app-auth-link-row { margin: 16px 0 0; text-align: center; }
.app-auth-link-row a { min-height: 44px; display: inline-flex; align-items: center; color: rgba(250,246,236,.55); font-size: .84rem; text-decoration: none; }
.app-auth-link-row a:hover { color: var(--app-gold-500); }

.app-auth-panel-title { margin: 4px 0 6px; color: var(--app-cream-100); font-family: var(--app-font-editorial); font-size: 1.4rem; font-weight: 600; text-align: center; }
.app-auth-panel-copy { margin: 0 0 20px; color: rgba(250,246,236,.55); font-size: .88rem; line-height: 1.55; text-align: center; }

.app-auth-terms-note { flex: 0 0 auto; margin: 18px 0 0; color: rgba(250,246,236,.32); font-size: .76rem; line-height: 1.6; text-align: center; }
.app-auth-terms-note a { color: var(--app-gold-500); }

/* ── Verify-email hard stop + onboarding hand-off: same card language ──── */
.app-verify-card { flex: 0 0 auto; margin-top: 24px; border: 1px solid rgba(200,168,75,.16); border-radius: var(--app-radius-lg); background: rgba(255,255,255,.035); padding: 34px 24px 28px; text-align: center; }
.app-verify-icon { display: block; margin-bottom: 14px; font-size: 2.1rem; }
.app-verify-card h1 { margin: 0 0 10px; color: #f5efe0; font-family: var(--app-font-editorial); font-size: 1.7rem; font-weight: 300; line-height: 1.2; }
.app-verify-card p { margin: 0 auto 22px; max-width: 320px; color: rgba(250,246,236,.62); font-size: .92rem; line-height: 1.6; }
.app-verify-card .app-button { width: 100%; max-width: 280px; }

/* Onboarding Screen 1 of 3 (Introduction) - progress indicator and the
   gold "Your AstroDu is ready." caption sit above/inside the same
   .app-verify-card language used by Verify + the birth-data hand-off. */
.app-onboarding-progress { flex: 0 0 auto; margin: 0 0 4px; text-align: center; color: rgba(250,246,236,.4); font-family: var(--app-font-ui); font-size: .74rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.app-onboarding-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.app-onboarding-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.15); font-style: normal; }
.app-onboarding-dots i.is-active { background: var(--app-gold-500); }
.app-verify-card p.app-onboarding-intro-ready { margin: -4px auto 16px; color: var(--app-gold-500); font-family: var(--app-font-ui); font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }

/* Onboarding Screen 2 of 3 (Personalization) - multi-select chips, same
   card language as Screen 1 above. */
.app-focus-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 24px; max-width: 320px; }
.app-focus-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--app-radius-pill); background: rgba(255,255,255,.05); color: rgba(250,246,236,.7); font-family: var(--app-font-ui); font-size: .84rem; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: background var(--app-fast), border-color var(--app-fast), color var(--app-fast); }
.app-focus-chip.is-selected { border-color: var(--app-gold-500); background: var(--app-gold-500); color: #201705; }

/* Onboarding Screen 3 of 3 (Completion) - restrained, non-interactive recap
   of Screen 2's selections. Reuses .app-focus-grid for layout but a
   dedicated chip class (not .app-focus-chip) so it never matches the
   delegated click handler that toggles Screen 2's real selection chips. */
.app-focus-summary-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--app-gold-500); border-radius: var(--app-radius-pill); background: var(--app-gold-500); color: #201705; font-family: var(--app-font-ui); font-size: .8rem; font-weight: 600; letter-spacing: .01em; }
.app-onboarding-dev-note { margin: -8px 0 0; color: rgba(250,246,236,.32); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

/* Birth Chart Preview (Screen 3 real build) */
.app-preview-card { text-align: center; }
.app-preview-progress { padding: 16px 0; }
.app-preview-spinner { display: inline-block; width: 26px; height: 26px; border: 2px solid rgba(200,168,75,.25); border-top-color: var(--app-gold-500); border-radius: 50%; animation: app-preview-spin .8s linear infinite; margin-bottom: 16px; }
@keyframes app-preview-spin { to { transform: rotate(360deg); } }
.app-preview-progress-text { margin: 0; color: rgba(250,246,236,.62); font-size: .88rem; line-height: 1.7; }
.app-preview-output {
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(250,246,236,.88);
  margin-bottom: 8px;
}
.app-preview-output h2 {
  font-family: var(--app-font-editorial);
  font-weight: 600;
  font-size: clamp(1.65rem, 5.8vw, 2rem);
  line-height: 1.15;
  color: var(--app-gold-500);
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,168,75,.30);
  letter-spacing: .005em;
}
.app-preview-output h3 {
  font-family: var(--app-font-editorial);
  font-weight: 600;
  font-size: clamp(1.32rem, 4.8vw, 1.55rem);
  line-height: 1.2;
  color: var(--app-gold-500);
  margin: 28px 0 11px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(200,168,75,.18);
  letter-spacing: .01em;
}
.app-preview-output p {
  margin: 0 0 15px;
  max-width: none;
}
.app-preview-output strong {
  color: #f5efe0;
  font-weight: 650;
}
.app-preview-output .reading-divider {
  height: 1px;
  border: 0;
  background: rgba(200,168,75,.22);
  margin: 24px 0;
}
.app-paywall-block { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(200,168,75,.15); }
.app-paywall-block .app-skip-link { display: block; margin-top: 14px; color: rgba(250,246,236,.4); font-size: .78rem; letter-spacing: .02em; text-decoration: underline; cursor: pointer; }
.app-paywall-block .app-skip-link:hover { color: rgba(250,246,236,.6); }

.app-frame { position: relative; min-height: 100dvh; max-width: 760px; margin: 0 auto; background: var(--app-cream-100); overflow: clip; box-shadow: 0 0 80px rgba(0,0,0,.34); }
.app-screen[hidden] { display: none; }
.app-topbar { position: sticky; top: 0; z-index: 30; min-height: calc(var(--app-topbar-height) + var(--app-safe-top)); padding: calc(var(--app-safe-top) + 8px) calc(var(--app-safe-right) + 18px) 8px calc(var(--app-safe-left) + 18px); display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--app-ink-900) 96%, transparent); border-bottom: 1px solid rgba(200,168,75,.14); backdrop-filter: blur(18px); }
.app-brand { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.app-brand img { width: 30px; height: 22px; object-fit: contain; margin-right: 4px; }
.app-wordmark { color: var(--app-gold-500); font-family: var(--app-font-editorial); font-size: 16px; letter-spacing: .11em; }
.app-wordmark em { color: var(--app-cream-100); font-style: italic; }
.app-icon-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--app-gold-500); background: rgba(255,255,255,.065); cursor: pointer; }
.app-icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.app-main { min-height: calc(100dvh - var(--app-topbar-height)); padding: 20px calc(var(--app-safe-right) + 18px) calc(var(--app-nav-height) + var(--app-safe-bottom) + 30px) calc(var(--app-safe-left) + 18px); background: radial-gradient(circle at 100% 0, rgba(200,168,75,.09), transparent 24%), var(--app-cream-100); }
.app-intro { padding: 0 2px 18px; }
.app-kicker, .app-eyebrow, .app-card-overline { color: var(--app-gold-700); font-size: .82rem; font-weight: 650; letter-spacing: .035em; line-height: 1.35; text-transform: uppercase; }
.app-intro h1 { margin: 5px 0 2px; font-family: var(--app-font-ui); font-size: clamp(1.75rem, 7vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.app-intro .app-demo-date { margin: 0; color: var(--app-text-secondary); font-size: .94rem; line-height: 1.5; }
.app-intro .app-demo-note { margin: 5px 0 0; color: var(--app-text-muted); font-size: .88rem; line-height: 1.45; }

.app-section { margin-bottom: 24px; }
.app-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 2px 9px; }
.app-section-heading h2 { margin: 3px 0 0; font-family: var(--app-font-ui); font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.app-chip { display: inline-flex; align-items: center; min-height: 28px; border-radius: var(--app-radius-pill); padding: 4px 10px; font-size: .81rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.app-chip-demo { border: 0; background: var(--app-parchment-200); color: var(--app-text-secondary); }

.app-card { position: relative; border: 1px solid transparent; border-radius: var(--app-radius-md); background: var(--app-cream-50); box-shadow: var(--app-shadow-sm); overflow: hidden; }
.app-card-content { position: relative; z-index: 2; padding: 18px; }
.app-card h3 { margin: 5px 0 7px; font-family: var(--app-font-editorial); font-size: 1.48rem; font-weight: 600; line-height: 1.12; }
.app-card-copy { margin: 0 0 12px; color: var(--app-text-secondary); font-size: 1rem; line-height: 1.52; }
.app-card-today { min-height: 166px; background: linear-gradient(145deg, var(--app-ink-900), #2b210d); color: var(--app-cream-100); border-color: rgba(200,168,75,.24); }
.app-card-today .app-card-content { max-width: 88%; padding: 22px 18px 14px; }
.app-card-today .app-card-copy { color: rgba(250,246,236,.82); }
.app-card-today .app-card-overline { color: var(--app-gold-500); }
.app-text-action { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--app-gold-500); font-size: 1rem; font-weight: 650; letter-spacing: 0; cursor: pointer; }
.app-text-action svg, .app-chevron { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-card-feature { display: grid; grid-template-columns: 132px 1fr; align-items: center; min-height: 198px; background: linear-gradient(145deg, #fffdf8, #eee0bf); border-left: 3px solid var(--app-gold-600); box-shadow: 0 12px 34px rgba(72,52,10,.12); }
.app-card-feature .app-card-content { padding: 17px 17px 17px 2px; }
.app-card-feature .app-card-overline { color: var(--app-gold-700); }
.app-gates { position: relative; width: 124px; margin-left: 5px; color: var(--app-gold-600); }
.app-gates svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1; }
.app-gates-ring { stroke-width: 1.8; }
.app-gates-inner { stroke: rgba(128,103,36,.32); }
.app-gates-mark { stroke: rgba(128,103,36,.32); stroke-width: 1; }
.app-gate-nodes circle { fill: var(--app-cream-50); stroke: rgba(101,87,56,.55); stroke-width: 1.4; }
.app-gate-nodes .is-open { fill: var(--app-gold-500); stroke: var(--app-gold-700); }
.app-gates > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--app-text-secondary); font-size: .75rem; font-weight: 650; letter-spacing: .01em; line-height: 1.1; }
.app-gates > span strong { color: var(--app-ink-900); font-family: var(--app-font-editorial); font-size: 1.45rem; }

.app-button { min-height: 48px; border-radius: var(--app-radius-sm); padding: 11px 17px; font-size: 1rem; font-weight: 650; letter-spacing: 0; cursor: pointer; transition: transform var(--app-fast) var(--app-ease), background var(--app-fast), border-color var(--app-fast); }
.app-button-primary { border: 1px solid var(--app-ink-900); background: var(--app-ink-900); color: var(--app-gold-500); box-shadow: 0 8px 20px rgba(23,18,8,.16); }
.app-button-secondary { border: 1px solid var(--app-border-strong); background: transparent; color: var(--app-text); }
.app-button-welcome { display: inline-flex; width: auto; min-width: 240px; padding: 13px 30px; border: none; border-radius: 15px; background: var(--app-gold-500); color: #201705; box-shadow: 0 3px 10px rgba(0,0,0,.24); }
.app-ask-go-deep { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 0; min-height: 44px; padding: 10px 18px; border: 1px solid #f1d995; border-radius: 9999px; background: linear-gradient(120deg, #ecd48e, #bd9544); color: #20180c; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.32); }
.app-ask-go-deep:hover { background: linear-gradient(120deg, #f3dda0, #cba252); }
.app-ask-go-deep:focus-visible { outline: 3px solid var(--app-gold-500); outline-offset: 3px; }
.app-ask-go-deep:active { transform: translateY(1px); }
.app-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.app-button:active, .app-mini-card:active, .app-document-card:active, .app-icon-button:active { transform: scale(.98); }

.app-document-cover { position: relative; width: 38px; height: 50px; overflow: hidden; border-radius: 6px 6px 8px 8px; background: var(--app-ink-900); box-shadow: 0 4px 10px rgba(23,18,8,.18); flex: 0 0 auto; }
.app-document-cover img { position: absolute; left: -4px; top: -8px; width: 100px; max-width: none; height: auto; }
.app-document-copy { min-width: 0; display: flex; flex-direction: column; }
.app-document-copy strong { font-family: var(--app-font-ui); font-size: 1.02rem; font-weight: 650; line-height: 1.35; color: #f5efe0; overflow-wrap: anywhere; }
.app-document-copy small { margin-top: 3px; font-size: .88rem; line-height: 1.45; color: #a89e8a; }
.app-progress { grid-column: 2; height: 3px; overflow: hidden; border-radius: 3px; background: var(--app-parchment-300); }
.app-progress i { display: block; width: var(--progress); height: 100%; background: var(--app-gold-600); }
.app-document-list { display: flex; flex-direction: column; gap: 10px; }
.app-document-card,
.app-document-card * { text-decoration: none; }
.app-document-card { border: 1px solid rgba(200,168,75,.28); border-radius: var(--app-radius-md); background: linear-gradient(150deg, #17140f, #100e0a); overflow: hidden; }
.app-document-body { display: flex; align-items: center; gap: 12px; padding: 13px 13px 10px; }
.app-document-primary { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 26px); margin: 0 13px 12px; min-height: 44px; border: none; border-radius: 10px; background: linear-gradient(120deg, #ecd48e, #bd9544); color: #20180c; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.app-document-primary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-document-actions { display: flex; align-items: stretch; gap: 6px; margin: 0 13px 13px; padding-top: 12px; border-top: 1px solid rgba(200,168,75,.16); }
.app-document-action { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 46px; padding: 6px 2px; border: none; border-radius: 8px; background: rgba(255,255,255,.04); color: #c9b98a; font-size: .68rem; font-weight: 650; letter-spacing: .01em; text-align: center; cursor: pointer; }
.app-document-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-document-action:active { background: rgba(255,255,255,.09); }
.app-document-action.app-ask-go-deep { flex: 0 0 auto; width: auto; min-width: 0; min-height: 44px; margin: 0 13px 13px; padding: 10px 18px; border: 1px solid #f1d995; border-radius: 9999px; background: linear-gradient(120deg, #ecd48e, #bd9544); color: #20180c; font-size: .8rem; font-weight: 700; line-height: 1.25; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.32); }
.app-document-action.app-ask-go-deep:hover { background: linear-gradient(120deg, #f3dda0, #cba252); }
.app-document-action.app-ask-go-deep:focus-visible { outline: 3px solid var(--app-gold-500); outline-offset: 3px; }
.app-document-more-wrap { position: relative; flex: 1; display: flex; }
.app-document-more { width: 100%; }
.app-document-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; min-width: 152px; padding: 6px; border: 1px solid rgba(200,168,75,.3); border-radius: 12px; background: #1c1811; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.app-document-menu button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 8px 10px; border: none; border-radius: 8px; background: transparent; color: #f0e6c9; font: inherit; font-size: .86rem; font-weight: 600; text-align: left; cursor: pointer; }
.app-document-menu button svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-document-menu button:active { background: rgba(255,255,255,.06); }
.app-document-menu button.is-danger { color: #e08a7d; }
.app-document-audio { margin: 0 13px 13px; padding: 12px; border: 1px solid rgba(200,168,75,.2); border-radius: 10px; background: rgba(0,0,0,.18); }
.app-document-audio audio { width: 100%; }
.app-audio-note { margin: 0; color: #c9c0ac; font-size: .82rem; line-height: 1.6; }
.app-audio-note.is-error { color: #e08a7d; }
.app-audio-progress { height: 4px; margin-bottom: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.08); }
.app-audio-progress i { display: block; height: 100%; background: #d9b967; transition: width .4s ease; }
.app-audio-download { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #d9b967; font-size: .84rem; font-weight: 700; }
.app-audio-download svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-document-locked-note { margin: 0 13px 13px; color: #a89e8a; font-size: .84rem; }
.app-document-locked-note a { color: #d9b967; font-weight: 700; }
.app-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.app-share-btn,
.app-share-btn:link, .app-share-btn:visited, .app-share-btn:hover, .app-share-btn:active { text-decoration: none; }
.app-share-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; color: #fff; font-size: .84rem; font-weight: 700; letter-spacing: .01em; }
.app-share-btn.is-whatsapp { background: #25D366; }
.app-share-btn.is-facebook { background: #1877F2; }
.app-share-btn.is-twitter { background: #000; }
.app-share-btn.is-telegram { background: #2CA5E0; }
.app-screen-summary { margin: 0 0 14px; color: var(--app-text-secondary); font-size: 1rem; }
.app-empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 20px; border-radius: var(--app-radius-md); background: var(--app-cream-50); box-shadow: var(--app-shadow-sm); }
.app-empty-state p { margin: 0; font-size: 1.02rem; }
.app-empty-state-sub { color: var(--app-text-secondary); font-size: .94rem !important; }
.app-empty-state.is-error p { color: var(--app-danger); }
.app-screen-body { min-height: 40vh; }
.app-me-card { display: flex; align-items: center; gap: 14px; padding: 20px; margin-bottom: 18px; border-radius: var(--app-radius-md); background: var(--app-cream-50); box-shadow: var(--app-shadow-sm); }
.app-me-avatar { flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--app-ink-900), #2b210d); color: var(--app-gold-500); font-family: var(--app-font-editorial); font-size: 1.4rem; font-weight: 600; }
.app-me-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.app-me-row { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.app-me-row span { color: var(--app-text-secondary); }
.app-me-row strong { min-width: 0; overflow-wrap: anywhere; text-align: right; font-weight: 650; }
.app-me-signout { width: 100%; }
.app-doc-reader { width: min(760px, calc(100% - 24px)); position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 40px - var(--app-safe-top) - var(--app-safe-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--app-cream-50); color: var(--app-text); border: 1px solid var(--app-border-strong); border-radius: var(--app-radius-md); padding: 20px 20px calc(32px + var(--app-safe-bottom)); }
.app-doc-reader::backdrop { background: rgba(13,10,5,.72); }
.app-doc-reader-close { display: block; position: sticky; top: 0; z-index: 1; margin: 0 0 20px auto; min-height: 44px; background: var(--app-cream-50); border: 1px solid var(--app-border-strong); border-radius: var(--app-radius-sm); padding: 8px 14px; cursor: pointer; }
.app-doc-reader-text {
  white-space: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--app-text);
  overflow-wrap: anywhere;
}
.app-doc-reader-text h2 {
  margin: 32px 0 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(128,103,36,.28);
  color: var(--app-gold-700);
  font-family: var(--app-font-editorial);
  font-size: clamp(1.65rem, 5.8vw, 1.95rem);
  font-weight: 600;
  line-height: 1.15;
}
.app-doc-reader-text h3 {
  margin: 25px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(128,103,36,.20);
  color: var(--app-gold-700);
  font-family: var(--app-font-editorial);
  font-size: clamp(1.3rem, 4.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}
.app-doc-reader-text p { margin: 0 0 15px; }
.app-doc-reader-text strong { font-weight: 700; }
.app-doc-reader-text .reading-divider {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: rgba(128,103,36,.24);
}

/* --------------------------------------------------------------- SOLUTION */
.app-solution-screen { padding: 0 0 calc(var(--app-nav-height) + var(--app-safe-bottom) + 30px); background: #0b0907; color: #f5efe0; }
.solution-hero { position: relative; min-height: 250px; padding: calc(var(--app-safe-top) + 22px) calc(var(--app-safe-right) + 20px) 24px calc(var(--app-safe-left) + 20px); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; }
.solution-eyebrow { margin: 0 0 4px; color: #c9b98a; font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.solution-hero h1 { margin: 0 0 12px; color: #f8f0da; font-family: var(--app-font-editorial); font-size: clamp(2.1rem, 10vw, 2.6rem); font-weight: 600; line-height: 1.08; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.solution-hero-copy { max-width: 72%; margin: 0; color: #e9dfc4; font-size: .96rem; line-height: 1.55; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.solution-content { padding: 20px calc(var(--app-safe-right) + 18px) 0 calc(var(--app-safe-left) + 18px); }
.solution-pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-bottom: 30px; }
.solution-pillar { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; padding: 16px 8px; border: 1px solid rgba(200,168,75,.3); border-radius: 12px; background: linear-gradient(155deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.solution-pillar-icon { width: 26px; height: 26px; color: #d9b967; }
.solution-pillar-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.solution-pillar strong { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #e6c979; }
.solution-pillar p { margin: 0; color: #c9c0ac; font-size: .82rem; line-height: 1.4; }
.solution-readings h2 { margin: 0 0 6px; font-family: var(--app-font-editorial); font-size: 1.7rem; font-weight: 600; color: #f5efe0; }
.solution-readings-sub { margin: 0 0 16px; color: #b9b1a0; font-size: .94rem; }
.solution-reading-list { display: flex; flex-direction: column; gap: 10px; }
.solution-reading-card,
.solution-reading-card *,
.solution-reading-card:link,
.solution-reading-card:visited,
.solution-reading-card:hover,
.solution-reading-card:active { text-decoration: none; }
.solution-reading-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px; border: 1px solid rgba(200,168,75,.28); border-radius: 12px; background: linear-gradient(150deg, #17140f, #100e0a); color: inherit; }
.solution-reading-card .app-document-cover { flex: 0 0 auto; }
.solution-reading-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.solution-reading-copy strong { font-family: var(--app-font-ui); font-size: 1rem; font-weight: 700; color: #f5efe0; overflow-wrap: anywhere; }
.solution-reading-copy small { color: #a89e8a; font-size: .85rem; }
.solution-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 4px 9px; border-radius: var(--app-radius-pill); font-size: .7rem; font-weight: 650; white-space: nowrap; }
.solution-status svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.solution-status.is-available { background: rgba(168,127,42,.22); color: #d9b967; }
.solution-status.is-purchased { background: rgba(110,140,90,.2); color: #a9c98f; }
.solution-action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 10px; background: linear-gradient(120deg, #ecd48e, #bd9544); color: #20180c; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.solution-readings .app-empty-state { background: linear-gradient(150deg, #17140f, #100e0a); border: 1px solid rgba(200,168,75,.28); box-shadow: none; }
.solution-readings .app-empty-state p { color: #f5efe0; }
.solution-readings .app-empty-state-sub { color: #b9b1a0 !important; }
.solution-readings .app-empty-state.is-error p { color: #e08a7d; }
@media (max-width: 359px) {
  .solution-pillar { padding: 13px 5px; }
  .solution-pillar strong { font-size: .72rem; }
  .solution-pillar p { font-size: .76rem; }
  .solution-reading-card { flex-wrap: wrap; }
  .solution-action { width: 100%; justify-content: center; }
}
@media (min-width: 700px) {
  .solution-content { max-width: 720px; margin: 0 auto; }
  .solution-hero-copy { max-width: 50%; }
  .solution-hero h1 { font-size: 3rem; }
}

/* --------------------------------------------------------------- DOCUMENTS */
.app-documents-screen { background: #0c0a07; color: #f5efe0; }

/* Saved-reading type filters.
   Horizontal scrolling is deliberate on phones so labels remain readable
   instead of wrapping into a dense multi-row control. */
.app-document-filters-wrap {
  position: relative;
  margin: 0 calc(var(--app-safe-right) * -1) 18px calc(var(--app-safe-left) * -1);
}

.app-document-filters {
  display: flex;
  align-items: stretch;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px var(--app-safe-right) 7px var(--app-safe-left);
  scroll-snap-type: x proximity;
}

.app-document-filters::-webkit-scrollbar {
  display: none;
}

.app-document-filter {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(200,168,75,.24);
  border-radius: 9999px;
  background: linear-gradient(150deg, #17140f, #100e0a);
  color: #d6ccb6;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 140ms ease;
}

.app-document-filter small {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: rgba(255,255,255,.06);
  color: #a99f8c;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

.app-document-filter.is-active {
  border-color: #e1c46d;
  background: linear-gradient(120deg, #ecd48e, #bd9544);
  color: #20180c;
  box-shadow: 0 5px 16px rgba(0,0,0,.22);
}

.app-document-filter.is-active small {
  background: rgba(32,24,12,.12);
  color: #20180c;
}

.app-document-filter:active {
  transform: scale(.975);
}

.app-document-filter:focus-visible {
  outline: 3px solid var(--app-gold-500);
  outline-offset: 3px;
}

.app-document-filter-empty {
  padding: 28px 20px;
  border: 1px solid rgba(200,168,75,.28);
  border-radius: var(--app-radius-md);
  background: linear-gradient(150deg, #17140f, #100e0a);
}

.app-document-filter-empty p {
  margin: 0;
  color: #f5efe0;
  font-size: 1.02rem;
  font-weight: 650;
}

.app-document-filter-empty span {
  display: block;
  margin-top: 7px;
  color: #b9b1a0;
  font-size: .94rem;
  line-height: 1.55;
}

@media (hover: hover) {
  .app-document-filter:not(.is-active):hover {
    border-color: rgba(225,196,109,.58);
    color: #f2e8ce;
    background: linear-gradient(150deg, #211c13, #15110c);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-document-filter {
    transition: none;
  }

  .app-document-filters {
    scroll-behavior: auto;
  }
}
.app-documents-screen .app-readings-header { margin-bottom: 18px; }
.app-documents-screen .app-kicker { color: #c9b98a; }
.app-documents-screen .app-readings-header h1 { color: #f8f0da; font-family: var(--app-font-editorial); font-weight: 600; }
.app-documents-screen .app-readings-header > p:last-child { color: #b9b1a0; }
.app-documents-screen .app-screen-summary { color: #a89e8a; }
.app-documents-screen .app-empty-state { background: linear-gradient(150deg, #17140f, #100e0a); border: 1px solid rgba(200,168,75,.28); box-shadow: none; }
.app-documents-screen .app-empty-state p { color: #f5efe0; }
.app-documents-screen .app-empty-state-sub { color: #b9b1a0 !important; }
.app-documents-screen .app-empty-state.is-error p { color: #e08a7d; }
@media (max-width: 359px) {
  .app-document-action { font-size: .62rem; }
  .app-document-actions { gap: 4px; }
  .app-document-action span { display: none; }
}

/* New Reading: shell changes apply only while this screen is visible. */
#app-shell:has(#app-readings:not([hidden])) { max-width:1060px; background:#121110; }
#app-shell:has(#app-readings:not([hidden])) .app-topbar { background:#121110; }
#app-shell:has(#app-readings:not([hidden])) .app-bottom-nav { width:min(1060px,100%); }
.app-readings-screen { color:#f3e6ce; background:radial-gradient(ellipse at 100% 0,#c8a84b0c,transparent 40%),#121110; }
/* Decorative persona stays inside the existing screen, behind its content. */
#app-readings { position:relative; isolation:isolate; }
#app-readings::before {
  content:""; position:absolute; z-index:-1; inset:0 0 auto; height:780px;
  pointer-events:none;
  background-image:linear-gradient(0deg,#121110 0%,rgba(18,17,16,.55) 25%,transparent 65%),
    linear-gradient(180deg,rgba(18,17,16,.8) 0%,rgba(18,17,16,.82) 20%,rgba(18,17,16,.86) 48%,rgba(18,17,16,.9) 100%),
    url('/static/images/calculator-cards/iyanda-astrodu-persona.webp');
  background-size:100% 100%,100% 100%,cover;
  background-position:0 0,0 0,center top;
  background-repeat:no-repeat;
}
#app-readings .app-readings-header > p:last-child { max-width:68%; }
@media (min-width:600px) {
  #app-readings::before { height:1100px; }
}
@media (min-width:1000px) {
  #app-readings::before { height:1400px; }
}
.app-readings-header { margin-bottom:28px; }
.app-readings-header .app-kicker { color:#cbb37b; font-size:.7rem; letter-spacing:.16em; }
.app-readings-header h1 { margin:6px 0 8px; color:#f5ead5; font-family:var(--app-font-editorial); font-size:clamp(2.5rem,7vw,3.5rem); font-weight:500; line-height:1.08; }
.app-readings-header > p:last-child { margin:0; color:#bcb5a7; font-size:.9375rem; }
.app-reading-group { margin-bottom:26px; }
.app-reading-group > h2 { margin:0 0 11px; color:#cbb37b; font-family:var(--app-font-ui); font-size:.7rem; font-weight:600; letter-spacing:.13em; line-height:1.5; text-transform:uppercase; }
.app-reading-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.app-reading-card, .app-reading-feature { position:relative; min-width:0; border:1px solid #c8a84b30; border-radius:12px; text-align:left; cursor:pointer; text-decoration:none; transition:border-color var(--app-fast),background var(--app-fast); }
.app-reading-card { display:flex; flex-direction:column; align-items:flex-start; padding:17px 18px; background:linear-gradient(135deg,#211e18,#191715); }
.app-reading-name { display:block; margin:0; color:#f3e6ce; font-size:1.0625rem; font-weight:650; line-height:1.3; }
.app-reading-purpose { display:block; margin-top:7px; color:#bfb8aa; font-size:.9375rem; line-height:1.5; }
.app-reading-action { display:block; margin-top:auto; padding-top:13px; color:#dec17d; font-size:.8125rem; font-weight:650; line-height:1.5; }
.app-reading-feature { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; overflow:hidden; background:radial-gradient(ellipse at 10% 50%,#66502440,transparent 65%),linear-gradient(130deg,#252017,#171512); }
.app-reading-book { display:flex; align-items:center; justify-content:center; min-width:0; }
.app-reading-book img { display:block; width:220px; max-width:100%; height:auto; object-fit:contain; }
.app-reading-copy { position:relative; min-width:0; padding:0 20px 24px; }
#app-readings .app-reading-name { font-family:var(--app-font-editorial); font-size:clamp(1.5rem,4vw,2.2rem); font-weight:600; color:#e6c979; line-height:1.1; letter-spacing:normal; text-transform:none; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.app-reading-feature .app-reading-purpose { color:#d1c6b1; }
.app-reading-feature .app-reading-action { padding-top:20px; }
.app-reading-wide { width:100%; }
.app-reading-card:focus-visible, .app-reading-feature:focus-visible, .app-readings-header h1:focus-visible { outline:2px solid #e6c979; outline-offset:4px; }
.app-reading-card:active, .app-reading-feature:active { background:#2b251b; }
@media (hover:hover) {
  .app-readings-screen .app-reading-card:hover, .app-readings-screen .app-reading-feature:hover { border-color:#c8a84b88; }
}
@media (max-width:360px) {
  #app-shell:has(#app-readings:not([hidden])) .app-topbar { gap:4px; }
  #app-shell:has(#app-readings:not([hidden])) .app-brand img { width:20px; margin-right:2px; }
  #app-shell:has(#app-readings:not([hidden])) .app-wordmark { font-size:14px; letter-spacing:.06em; }
  #app-shell:has(#app-readings:not([hidden])) .home-header-icons { gap:4px; margin-left:0; }
}
@media (min-width:600px) {
  .app-reading-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .app-reading-card { padding:20px; }
  .app-reading-feature { grid-template-columns:280px minmax(0,1fr); }
  .app-reading-book img { width:260px; }
  .app-reading-copy { padding:30px 30px 30px 0; }
}

/* Compact entry points reuse the app's dark surfaces and restrained gold. */
#app-readings .app-readings-header { margin-bottom:20px; }
#app-readings .app-readings-header h1 { margin:0; border:0; outline:none; box-shadow:none; }
.app-reading-entrypoints { display:grid; gap:10px; margin-bottom:26px; }
.app-reading-entry { display:flex; align-items:center; gap:14px; min-width:0; padding:15px 16px; border:1px solid #8d703a4d; border-radius:11px; background:linear-gradient(120deg,#22221e,#151614); color:#f3e6ce; text-decoration:none; }
.app-reading-entry-art { flex:0 0 48px; height:48px; border-radius:50%; background-color:#121110; background-repeat:no-repeat; }
.app-reading-entry-moon { background-image:url('/static/images/astrodu-horoscope-galileo-moon.jpg'); background-size:cover; background-position:center; }
.app-reading-entry-iyanda { background-image:url('/static/images/calculator-cards/iyanda-astrodu-persona.webp'); background-size:120px auto; background-position:22% 46%; }
.app-reading-entry-oracle { display:grid; place-items:center; color:#cbb37b; font-size:28px; background:radial-gradient(circle,#c8a84b22,transparent 70%); box-shadow:inset 0 0 0 1px #8d703a4d; }
.app-reading-entry-copy { display:flex; flex-direction:column; min-width:0; }
.app-reading-entry-title { font-family:var(--app-font-editorial); font-size:1.3125rem; font-weight:600; line-height:1.15; color:#e6c979; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.app-reading-entry-description { margin-top:4px; font-size:.8125rem; line-height:1.4; color:#bfb8aa; }
.app-reading-entry-cta { margin-top:8px; font-size:.75rem; font-weight:650; line-height:1.4; color:#dec17d; }
.app-reading-entry:focus-visible { outline:2px solid #e6c979; outline-offset:4px; }
@media (hover:hover) { .app-reading-entry:hover { border-color:#c8a84b88; } }
@media (min-width:768px) {
  .app-reading-entrypoints { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .app-reading-entry { align-items:flex-start; gap:10px; padding:16px 12px; }
  .app-reading-entry-art { flex-basis:36px; height:36px; }
  .app-reading-entry-copy { align-self:stretch; }
  .app-reading-entry-cta { margin-top:auto; padding-top:8px; }
}

/* Cinematic imagery is local to the existing New Reading cards. */
.app-reading-cinematic {
  isolation:isolate; overflow:hidden; display:flex; flex-direction:column;
  align-items:flex-start; align-self:start;
  padding:22px 18px; background:#13110f;
}
.app-reading-cinematic .app-reading-photo {
  position:absolute; inset:0; z-index:-2; pointer-events:none;
  background-size:cover; background-position:var(--reading-position);
}
.app-reading-cinematic::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(0deg,rgba(10,9,7,.28),transparent 50%),
    linear-gradient(90deg,rgba(10,9,7,.94) 0%,rgba(10,9,7,.86) 34%,rgba(10,9,7,.66) 62%,rgba(10,9,7,.06) 100%);
}
.app-reading-cinematic.app-reading-subject-left::before {
  background:linear-gradient(0deg,rgba(10,9,7,.28),transparent 50%),
    linear-gradient(270deg,rgba(10,9,7,.94) 0%,rgba(10,9,7,.86) 34%,rgba(10,9,7,.66) 62%,rgba(10,9,7,.06) 100%);
}
.app-reading-cinematic > .app-reading-name,
.app-reading-cinematic > .app-reading-purpose,
.app-reading-cinematic > .app-reading-action,
.app-reading-cinematic .app-reading-copy { width:60%; position:relative; }
.app-reading-cinematic.app-reading-subject-left > :not(.app-reading-photo) { margin-left:auto; }
.app-reading-cinematic .app-reading-copy { padding:0; }
.app-reading-cinematic .app-reading-purpose { color:#e0d8ca; font-size:.875rem; line-height:1.5; }
.app-reading-cinematic .app-reading-action { margin-top:0; padding-top:14px; color:#efd18e; }
@media (min-width:600px) {
  .app-reading-cinematic.app-reading-feature .app-reading-copy,
  .app-reading-cinematic.app-reading-wide > :not(.app-reading-photo) { width:52%; }
}


.app-foundation-samples { display: none; }
.app-state { border: 1px solid var(--app-border); border-radius: var(--app-radius-md); padding: 18px; background: var(--app-cream-50); }
.app-state-loading { display: flex; align-items: center; gap: 10px; }
.app-spinner { width: 22px; height: 22px; border: 2px solid var(--app-parchment-300); border-top-color: var(--app-gold-600); border-radius: 50%; animation: app-spin .8s linear infinite; }
.app-state-empty, .app-state-error, .app-state-locked { display: flex; flex-direction: column; gap: 5px; }
.app-state span, .app-state small { color: var(--app-text-muted); }
.app-state-error { border-left: 3px solid var(--app-danger); }
.app-state-locked { background: var(--app-ink-900); color: var(--app-cream-100); }
@keyframes app-spin { to { transform: rotate(360deg); } }

.app-bottom-nav { position: fixed; bottom: 0; left: 50%; z-index: 40; width: min(760px, 100%); min-height: calc(var(--app-nav-height) + var(--app-safe-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left); border-top: 1px solid #c8a84b; background: #c8a84b; box-shadow: 0 -10px 30px rgba(35,25,7,.1); backdrop-filter: blur(18px); }
.app-nav-item { position: relative; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #000; font-size: .74rem; font-weight: 650; letter-spacing: -.01em; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color var(--app-fast) var(--app-ease); }
.app-nav-item > svg { position: relative; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms cubic-bezier(.34,1.56,.64,1), color var(--app-fast) var(--app-ease); }
.app-nav-item > span { position: relative; transition: transform var(--app-fast) var(--app-ease); }
.app-nav-item::before { content: ""; position: absolute; top: -8px; width: 4px; height: 4px; border-radius: 2px; background: var(--app-gold-600); transform: scaleX(0); opacity: 0; transition: transform 320ms cubic-bezier(.34,1.56,.64,1), opacity 220ms var(--app-ease); }
.app-nav-item::after { content: ""; position: absolute; top: 0; width: 58px; height: 58px; border-radius: 50%; background: var(--app-gold-500); transform: scale(0); opacity: 0; pointer-events: none; transition: transform 450ms var(--app-ease), opacity 450ms var(--app-ease); }
.app-nav-item:active::after { transform: scale(1); opacity: .22; transition: none; }
.app-nav-item:active > svg { transform: scale(.8); }
.app-nav-item.is-active { color: #000; }
.app-nav-item.is-active::before { width: 22px; transform: scaleX(1); opacity: 1; }
.app-nav-item.is-active > svg { color: #000; transform: translateY(-2px) scale(1.12); filter: none; }
.app-nav-item.is-active > span { font-weight: 800; color: #000; transform: translateY(-1px); }

.app-toast { position: fixed; left: 50%; bottom: calc(var(--app-nav-height) + var(--app-safe-bottom) + 14px); z-index: 300; width: min(calc(100% - 32px), 440px); padding: 12px 16px; transform: translate(-50%, 16px); border: 1px solid rgba(200,168,75,.35); border-radius: var(--app-radius-sm); background: var(--app-ink-900); color: var(--app-cream-100); box-shadow: var(--app-shadow-md); font-size: .94rem; line-height: 1.5; opacity: 0; visibility: hidden; transition: opacity var(--app-fast), transform var(--app-fast) var(--app-ease), visibility var(--app-fast); }
.app-toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.app-sheet-layer[hidden] { display: none; }
.app-sheet-layer { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-end; }
.app-sheet-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(13,10,5,.62); opacity: 0; animation: app-fade-in var(--app-normal) forwards; }
.app-sheet { position: relative; width: min(760px, 100%); padding: 12px calc(var(--app-safe-right) + 22px) calc(var(--app-safe-bottom) + 24px) calc(var(--app-safe-left) + 22px); border-radius: 24px 24px 0 0; background: var(--app-cream-50); box-shadow: 0 -24px 80px rgba(0,0,0,.24); transform: translateY(100%); animation: app-sheet-in var(--app-normal) var(--app-ease) forwards; }
.app-sheet-handle { width: 42px; height: 4px; margin: 0 auto 22px; border-radius: 4px; background: var(--app-parchment-300); }
.app-sheet h2 { margin: 12px 0 6px; font-family: var(--app-font-ui); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.app-sheet p { margin: 0 0 22px; color: var(--app-text); font-size: 1rem; line-height: 1.55; }
body.app-sheet-open { overflow: hidden; }
@keyframes app-fade-in { to { opacity: 1; } }
@keyframes app-sheet-in { to { transform: translateY(0); } }

:focus-visible { outline: 3px solid var(--app-gold-500); outline-offset: 3px; }

@media (hover: hover) {
  .app-card button:hover, .app-document-card:hover, .app-reading-card:hover, .app-reading-feature:hover { border-color: var(--app-border-strong); }
  .app-button-primary:hover { background: var(--app-ink-800); }
  .app-nav-item:hover { color: #000; }
}

@media (min-width: 620px) {
  .app-main { padding-left: 30px; padding-right: 30px; }
  .app-card-feature { grid-template-columns: 154px 1fr; }
  .app-gates { width: 142px; margin-left: 8px; }
}

@media (max-width: 360px) {
  .app-welcome-content { padding-top: 18px; }
  .app-welcome-product { margin-bottom: 16px; }
  .app-main { padding-left: calc(var(--app-safe-left) + 14px); padding-right: calc(var(--app-safe-right) + 14px); }
  .app-card-feature { grid-template-columns: 110px 1fr; }
  .app-gates { width: 105px; margin-left: 1px; }
  .app-card-content { padding: 16px; }
  .app-card-feature .app-card-content { padding-left: 2px; }
  .app-card h3 { font-size: 1.34rem; }
  .app-nav-item { font-size: .75rem; }

}

@media (orientation: landscape) and (max-height: 520px) {
  .app-topbar { position: relative; }
  .app-main { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .app-enter { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .app-topbar, .app-bottom-nav { backdrop-filter: none; }
}

/* Shared customer dashboard scale: readable body copy with compact metadata only. */
:root {
  --app-type-body: 1rem;
  --app-type-supporting: .9375rem;
  --app-type-meta: .75rem;
  --app-type-label: .8125rem;
}
.app-main p, .app-main li { line-height: 1.6; }
.app-main .app-screen-summary, .app-main .app-empty-state-sub { font-size: var(--app-type-supporting); }
.app-button, .app-text-action, .app-document-primary { font-size: 1rem; }
.app-document-action { font-size: .8rem; min-height: 50px; }
.solution-hero-copy, .solution-readings-sub, .solution-choice-card span { font-size: var(--app-type-body); line-height: 1.6; }
.solution-pillar p { font-size: var(--app-type-supporting); line-height: 1.5; }
.solution-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.solution-choice-card { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 20px; border: 1px solid rgba(200,168,75,.38); border-radius: 14px; background: linear-gradient(145deg, #211a0e, #100d08); color: #f5efe0; text-decoration: none; box-shadow: 0 12px 30px rgba(0,0,0,.22); transition: transform var(--app-fast), border-color var(--app-fast), background var(--app-fast); }
.solution-choice-card:hover, .solution-choice-card:focus-visible { border-color: #d9b967; background: linear-gradient(145deg, #2b2110, #151008); transform: translateY(-2px); }
.solution-choice-card strong { color: #e6c979; font-family: var(--app-font-editorial); font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.1; }
.solution-choice-card span { color: #d8cfbd; }
.solution-choice-card b { color: #f0d58a; font-size: .9375rem; }
.solution-secondary { padding-top: 8px; border-top: 1px solid rgba(200,168,75,.16); }
.app-reading-card, .app-reading-feature { color: inherit; text-decoration: none; }
@media (max-width: 699px) {
  .solution-choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .solution-choice-card { min-height: 148px; padding: 18px; }
}

.app-enter { opacity: 0; transform: translateY(8px); animation: app-enter .42s var(--app-ease) forwards; }
.app-delay-1 { animation-delay: 50ms; }
.app-delay-2 { animation-delay: 100ms; }
.app-delay-3 { animation-delay: 150ms; }
.app-delay-4 { animation-delay: 200ms; }
@keyframes app-enter { to { opacity: 1; transform: translateY(0); } }


/* ------------------------------------------------ APP INNER SCREEN HEADER */
/* Home keeps its existing dashboard header. Readings, Documents and Me use
   the same navigation language as first-party journey/Solution pages. */
.app-inner-back,
.app-inner-title {
  display: none;
}

.app-topbar.is-inner-screen {
  min-height: calc(56px + var(--app-safe-top));
  padding-top: calc(8px + var(--app-safe-top));
  padding-bottom: 8px;
  background: #121110;
  border-bottom: 1px solid rgba(200,168,75,.25);
}

.app-topbar.is-inner-screen .app-inner-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c8a84b;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.app-topbar.is-inner-screen .app-inner-title {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 42%;
  overflow: hidden;
  color: #f5efe0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-topbar.is-inner-screen .app-brand {
  margin-left: auto;
}

.app-topbar.is-inner-screen .app-brand img,
.app-topbar.is-inner-screen .home-header-actions,
.app-topbar.is-inner-screen .home-mobile-new-reading,
.app-topbar.is-inner-screen .home-header-icons {
  display: none !important;
}

.app-topbar.is-inner-screen .app-wordmark {
  color: #c8a84b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1.2;
}

.app-topbar.is-inner-screen .app-wordmark em {
  color: #f5efe0;
}

@media (max-width: 375px) {
  .app-topbar.is-inner-screen .app-wordmark {
    font-size: 16px;
    letter-spacing: 1px;
  }
}


/* ASTRODU VISUAL SYSTEM — PHASE 1B
   Cinematic where it matters. Restrained where people read.
   This layer intentionally sits after the legacy app styles. */

:root {
  --ad-canvas: var(--app-canvas);
  --ad-surface: var(--app-surface-dark);
  --ad-surface-raised: var(--app-surface-raised);
  --ad-ivory: var(--app-ivory);
  --ad-ivory-soft: var(--app-ivory-soft);
  --ad-gold: var(--app-gold-500);
  --ad-gold-bright: var(--app-gold-bright);
  --ad-gold-muted: #9d8648;
  --ad-gold-line: var(--app-gold-soft);
  --ad-line: rgba(244,237,221,.11);
  --ad-shadow: var(--app-shadow-dark-md);
  --ad-radius: 18px;
  --ad-content: 1060px;
  --ad-ease: cubic-bezier(.2,.75,.25,1);
}

/* Keep the authenticated application visually grounded. */
body:has(.app-frame),
body:has(.app-nav) {
  background: var(--ad-canvas);
}

/* ------------------------------------------------------------
   BOTTOM NAVIGATION
   Gold becomes valuable through emphasis rather than acreage.
   ------------------------------------------------------------ */

.app-nav {
  background:
    linear-gradient(180deg, rgba(27,26,23,.97), rgba(12,12,11,.985)) !important;
  border-top: 1px solid var(--ad-gold-line) !important;
  box-shadow: 0 -12px 36px rgba(0,0,0,.30) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.app-nav-item {
  position: relative;
  color: #aaa28f !important;
  transition:
    color .2s var(--ad-ease),
    transform .2s var(--ad-ease),
    background-color .2s var(--ad-ease) !important;
}

.app-nav-item svg,
.app-nav-item .app-nav-icon {
  opacity: .78;
  transition:
    opacity .2s var(--ad-ease),
    transform .2s var(--ad-ease) !important;
}

.app-nav-item.is-active,
.app-nav-item.active,
.app-nav-item[aria-current="page"] {
  color: var(--ad-gold-bright) !important;
}

.app-nav-item.is-active svg,
.app-nav-item.active svg,
.app-nav-item[aria-current="page"] svg,
.app-nav-item.is-active .app-nav-icon,
.app-nav-item.active .app-nav-icon,
.app-nav-item[aria-current="page"] .app-nav-icon {
  opacity: 1;
}

.app-nav-item.is-active::before,
.app-nav-item.active::before,
.app-nav-item[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--ad-gold);
  box-shadow: 0 0 12px rgba(200,168,75,.28);
}

.app-nav-item:focus-visible {
  outline: 2px solid var(--ad-gold);
  outline-offset: -4px;
  border-radius: 10px;
}

@media (hover:hover) and (pointer:fine) {
  .app-nav-item:hover {
    color: var(--ad-ivory) !important;
  }

  .app-nav-item:hover svg,
  .app-nav-item:hover .app-nav-icon {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.app-nav-item:active {
  transform: scale(.96);
}

/* ------------------------------------------------------------
   READINGS / CALCULATOR CATALOGUE
   Preserve cinematic imagery while establishing hierarchy.
   ------------------------------------------------------------ */

#app-readings {
  color: var(--ad-ivory);
}

#app-readings .app-readings-header h1 {
  font-size: clamp(2.25rem, 5.6vw, 3.35rem);
  line-height: .98;
  letter-spacing: -.025em;
}

#app-readings .app-readings-header p {
  color: var(--ad-ivory-soft);
  line-height: 1.65;
}

#app-readings .app-reading-card {
  border-color: var(--ad-gold-line);
  box-shadow: var(--ad-shadow);
  transition:
    transform .24s var(--ad-ease),
    border-color .24s var(--ad-ease),
    box-shadow .24s var(--ad-ease);
}

#app-readings .app-reading-card:first-of-type {
  min-height: clamp(250px, 36vw, 330px);
  border-color: rgba(200,168,75,.48);
}

#app-readings .app-reading-card:first-of-type .app-reading-name {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

#app-readings .app-reading-name {
  color: var(--ad-gold-bright);
}

@media (hover:hover) and (pointer:fine) {
  #app-readings .app-reading-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200,168,75,.48);
    box-shadow: 0 22px 52px rgba(0,0,0,.34);
  }
}

#app-readings .app-reading-card:active {
  transform: scale(.992);
}

#app-readings .app-reading-card:focus-visible {
  outline: 2px solid var(--ad-gold);
  outline-offset: 4px;
}

/* Tablet and desktop should feel composed, not like a stretched phone. */
@media (min-width:768px) {
  #app-readings .app-readings-header {
    max-width: 760px;
  }
}

@media (min-width:1000px) {
  #app-readings .app-readings-header h1 {
    max-width: 720px;
  }
}

/* Touch targets remain calm but tactile. */
@media (hover:none) {
  .app-nav-item:active {
    transform: scale(.95);
  }

  #app-readings .app-reading-card:active {
    transform: scale(.985);
  }
}

/* Respect users who request less animation. */
@media (prefers-reduced-motion: reduce) {
  .app-nav-item,
  .app-nav-item svg,
  .app-nav-item .app-nav-icon,
  #app-readings .app-reading-card {
    transition: none !important;
  }

  .app-nav-item:active,
  #app-readings .app-reading-card:active {
    transform: none !important;
  }
}
/* ASTRODU VISUAL PHASE 1 — HIERARCHY CORRECTION
   Exact production selectors after structural inspection. */

/* ------------------------------------------------------------
   BOTTOM NAVIGATION
   Deep celestial surface; gold becomes the active signature.
   ------------------------------------------------------------ */

.app-bottom-nav {
  border-top: 1px solid rgba(200,168,75,.28);
  background:
    linear-gradient(180deg, rgba(25,23,19,.97), rgba(10,10,10,.985));
  box-shadow:
    0 -1px 0 rgba(255,255,255,.025),
    0 -16px 42px rgba(0,0,0,.30);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-bottom-nav .app-nav-item {
  color: #aaa28f !important;
}

.app-bottom-nav .app-nav-item.is-active,
.app-bottom-nav .app-nav-item[aria-current="page"] {
  color: var(--ad-gold-bright) !important;
}

.app-bottom-nav .app-nav-item.is-active > svg,
.app-bottom-nav .app-nav-item.is-active > span,
.app-bottom-nav .app-nav-item[aria-current="page"] > svg,
.app-bottom-nav .app-nav-item[aria-current="page"] > span {
  color: var(--ad-gold-bright) !important;
}

.app-bottom-nav .app-nav-item.is-active::before,
.app-bottom-nav .app-nav-item[aria-current="page"]::before {
  background: var(--ad-gold);
  box-shadow: 0 0 14px rgba(200,168,75,.30);
}

.app-bottom-nav .app-nav-item::after {
  background: rgba(200,168,75,.18);
}

@media (hover:hover) and (pointer:fine) {
  .app-bottom-nav .app-nav-item:hover {
    color: var(--ad-ivory) !important;
  }
}


/* ------------------------------------------------------------
   READINGS
   Remove page-wide persona wallpaper.
   Iyanda remains available in the dedicated Ask Iyanda entry.
   ------------------------------------------------------------ */

#app-readings::before {
  display: none !important;
}

#app-readings {
  background:
    radial-gradient(circle at 82% 4%, rgba(200,168,75,.075), transparent 25rem),
    radial-gradient(circle at 10% 32%, rgba(244,237,221,.025), transparent 28rem),
    #121110;
}

/* Cancel the imprecise first-of-type promotion from Phase 1B. */
#app-readings .app-reading-card:first-of-type {
  min-height: unset;
  border-color: var(--ad-gold-line);
}

#app-readings .app-reading-card:first-of-type .app-reading-name {
  font-size: clamp(1.5rem,4vw,2.2rem);
}


/* ------------------------------------------------------------
   FOUNDATION HERO — BIRTH CHART / ÀKỌ̀SẸ̀JAYÉ
   ------------------------------------------------------------ */

#app-readings .app-reading-feature[href*="birth-chart"] {
  min-height: clamp(310px, 64vw, 440px);
  border: 1px solid rgba(216,187,104,.52);
  border-radius: 20px;
  box-shadow:
    0 28px 70px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.045);
}

#app-readings .app-reading-feature[href*="birth-chart"]::before {
  background:
    linear-gradient(0deg, rgba(7,7,6,.44), transparent 54%),
    linear-gradient(270deg,
      rgba(8,8,7,.93) 0%,
      rgba(8,8,7,.82) 36%,
      rgba(8,8,7,.48) 65%,
      rgba(8,8,7,.04) 100%);
}

#app-readings .app-reading-feature[href*="birth-chart"] .app-reading-name {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.02;
  color: var(--ad-gold-bright);
}

#app-readings .app-reading-feature[href*="birth-chart"] .app-reading-purpose {
  max-width: 32rem;
  font-size: clamp(.9375rem, 2vw, 1.0625rem);
  line-height: 1.62;
}


/* ------------------------------------------------------------
   PRIMARY TIMING — TRANSIT + SOLAR RETURN
   Strong secondary cards, below Birth Chart.
   ------------------------------------------------------------ */

#app-readings .app-reading-card[href*="transit"],
#app-readings .app-reading-card[href*="solar-return"] {
  min-height: clamp(235px, 43vw, 310px);
  border-color: rgba(200,168,75,.38);
  box-shadow: 0 18px 44px rgba(0,0,0,.27);
}

#app-readings .app-reading-card[href*="transit"] .app-reading-name,
#app-readings .app-reading-card[href*="solar-return"] .app-reading-name {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
}


/* ------------------------------------------------------------
   SUPPORTING CALCULATORS
   Keep their photography, but quieten it so every card does
   not compete with the foundation and primary timing tools.
   ------------------------------------------------------------ */

#app-readings .app-reading-card.app-reading-cinematic:not([href*="transit"]):not([href*="solar-return"]) {
  min-height: 205px;
  border-color: rgba(200,168,75,.20);
  box-shadow: 0 12px 32px rgba(0,0,0,.20);
}

#app-readings .app-reading-card.app-reading-cinematic:not([href*="transit"]):not([href*="solar-return"]) .app-reading-photo {
  filter: saturate(.72) brightness(.70);
  transform: scale(1.015);
}

#app-readings .app-reading-card.app-reading-cinematic:not([href*="transit"]):not([href*="solar-return"])::before {
  background:
    linear-gradient(0deg, rgba(10,9,7,.48), transparent 46%),
    linear-gradient(90deg,
      rgba(10,9,7,.96) 0%,
      rgba(10,9,7,.90) 40%,
      rgba(10,9,7,.74) 68%,
      rgba(10,9,7,.25) 100%);
}

#app-readings .app-reading-card.app-reading-cinematic.app-reading-subject-left:not([href*="solar-return"])::before {
  background:
    linear-gradient(0deg, rgba(10,9,7,.48), transparent 46%),
    linear-gradient(270deg,
      rgba(10,9,7,.96) 0%,
      rgba(10,9,7,.90) 40%,
      rgba(10,9,7,.74) 68%,
      rgba(10,9,7,.25) 100%);
}


/* ------------------------------------------------------------
   RESPONSIVE COMPOSITION
   ------------------------------------------------------------ */

@media (max-width: 599px) {
  #app-readings .app-readings-header > p:last-child {
    max-width: 100%;
  }

  #app-readings .app-reading-feature[href*="birth-chart"] .app-reading-copy {
    width: 64%;
  }

  #app-readings .app-reading-card[href*="transit"],
  #app-readings .app-reading-card[href*="solar-return"] {
    min-height: 245px;
  }
}

@media (min-width: 600px) {
  #app-readings .app-reading-feature[href*="birth-chart"] {
    min-height: 390px;
  }

  #app-readings .app-reading-feature[href*="birth-chart"] .app-reading-copy {
    width: 50%;
  }

  #app-readings .app-reading-card[href*="transit"],
  #app-readings .app-reading-card[href*="solar-return"] {
    min-height: 285px;
  }
}

@media (min-width: 1000px) {
  #app-readings .app-reading-feature[href*="birth-chart"] {
    min-height: 430px;
  }

  #app-readings .app-reading-grid {
    gap: 16px;
  }
}

@media (hover:hover) and (pointer:fine) {
  #app-readings .app-reading-feature[href*="birth-chart"]:hover {
    transform: translateY(-4px);
    border-color: rgba(216,187,104,.72);
    box-shadow: 0 34px 78px rgba(0,0,0,.40);
  }

  #app-readings .app-reading-card[href*="transit"]:hover,
  #app-readings .app-reading-card[href*="solar-return"]:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-readings .app-reading-photo,
  #app-readings .app-reading-feature,
  #app-readings .app-reading-card {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================
   ASTRODU READINGS — PREMIUM MOBILE EDITORIAL SYSTEM
   Cinematic where it matters. Restrained where people read.
   ========================================================== */

#app-readings.app-readings-screen {
  --rd-bg: #121110;
  --rd-surface: #12110f;
  --rd-surface-2: #191713;
  --rd-ivory: #f4eedf;
  --rd-body: #cbc6bb;
  --rd-muted: #948f84;
  --rd-gold: #d4b35d;
  --rd-line: rgba(212,179,93,.24);

  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding:
    clamp(24px,5vw,42px)
    clamp(18px,4.5vw,44px)
    calc(118px + env(safe-area-inset-bottom));
  color: var(--rd-ivory);
  background:
    radial-gradient(circle at 92% 2%,
      rgba(212,179,93,.035),transparent 27%),
    radial-gradient(circle at 7% 20%,
      rgba(212,179,93,.025),transparent 24%),
    var(--rd-bg);
}

/* ---------- PAGE INTRO ---------- */

#app-readings .rd-intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: end;
  margin: 0 0 25px;
}

#app-readings .rd-intro-copy h1 {
  margin: 0;
  color: var(--rd-ivory);
  font-family: var(--app-font-editorial);
  font-size: clamp(2.1rem,10vw,2.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: normal;
}

#app-readings .rd-intro-copy h1:focus,
#app-readings .rd-intro-copy h1:focus-visible {
  outline: none;
  box-shadow: none;
}


#app-readings .rd-intro-copy p {
  max-width: 430px;
  margin: 11px 0 0;
  color: var(--rd-body);
  font-size: .98rem;
  line-height: 1.5;
}

/* ---------- SECTIONS ---------- */

#app-readings .rd-section {
  margin-top: 34px;
}

#app-readings .rd-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

#app-readings .rd-section-head h2 {
  margin: 0;
  color: var(--rd-ivory);
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(1.28rem,5.4vw,1.65rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.022em;
}



/* ---------- SHARED CARDS ---------- */

#app-readings .rd-foundation-card,
#app-readings .rd-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#app-readings .rd-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid rgba(212,179,93,.16);
  background:
    radial-gradient(circle at 80% 12%,
      rgba(67,86,124,.16),transparent 36%),
    linear-gradient(145deg,var(--rd-surface-2),var(--rd-surface));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

#app-readings .rd-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#app-readings .rd-name {
  color: var(--rd-ivory);
  font-family: Georgia,"Times New Roman",serif;
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
}

#app-readings .rd-purpose {
  margin-top: 7px;
  color: var(--rd-body);
  font-size: .86rem;
  font-weight: 400;
  line-height: 1.42;
}

#app-readings .rd-start {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--rd-gold);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
}

#app-readings .rd-start b {
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- FOUNDATION ---------- */

#app-readings .rd-foundation-card {
  display: flex;
  min-height: 260px;
  align-items: flex-end;
  border: 1px solid rgba(212,179,93,.34);
  border-radius: 24px;
  background: #12110f;
  box-shadow:
    0 18px 42px rgba(0,0,0,.24),
    inset 0 1px rgba(255,255,255,.025);
}

#app-readings .rd-foundation-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  background-position: 27% 42%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.88) brightness(.86);
  transform: scale(1.015);
}

#app-readings .rd-foundation-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(5,9,16,.30) 0%,
      rgba(5,9,16,.14) 48%,
      transparent 76%
    );
}


#app-readings .rd-foundation-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(7,11,18,.95) 0%,
      rgba(7,11,18,.84) 43%,
      rgba(7,11,18,.36) 72%,
      rgba(7,11,18,.48) 100%),
    linear-gradient(0deg,
      rgba(7,11,18,.88) 0%,
      transparent 58%);
}

#app-readings .rd-foundation-copy {
  display: flex;
  width: min(74%,570px);
  min-height: 260px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px 23px;
}

#app-readings .rd-foundation-name {
  color: var(--rd-ivory);
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(1.85rem,7.4vw,2.75rem);
  line-height: 1;
  letter-spacing: -.035em;
}

#app-readings .rd-foundation-name em {
  display: block;
  margin-top: 5px;
  color: var(--rd-gold);
  font-size: .48em;
  font-style: normal;
  letter-spacing: .01em;
}

#app-readings .rd-foundation-purpose {
  max-width: 420px;
  margin-top: 12px;
  color: #ddd8cc;
  font-size: .94rem;
  line-height: 1.48;
}

#app-readings .rd-foundation-note {
  position: absolute;
  right: 18px;
  top: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(244,238,223,.72);
  font-family: Georgia,"Times New Roman",serif;
  font-size: .72rem;
  font-style: italic;
  line-height: 1.25;
}

#app-readings .rd-foundation-note i {
  width: 30px;
  height: 1px;
  margin-top: 7px;
  background: var(--rd-gold);
}

/* ---------- PRIMARY ---------- */

#app-readings .rd-primary-grid,
#app-readings .rd-love-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

#app-readings .rd-primary-card {
  min-height: 210px;
  padding: 18px 44px 18px 16px;
  border-radius: 19px;
}

#app-readings .rd-primary-card .rd-card-copy,
#app-readings .rd-tool-card .rd-card-copy,
#app-readings .rd-love-card .rd-card-copy {
  margin-top: auto;
}

#app-readings .rd-primary-card .rd-name {
  font-size: clamp(1.48rem,6vw,1.85rem);
}

/* ---------- TIMING TOOLS ---------- */

#app-readings .rd-tools-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

#app-readings .rd-tool-card {
  min-height: 168px;
  padding: 16px 43px 16px 14px;
  border-radius: 17px;
}

#app-readings .rd-tool-card .rd-purpose {
  font-size: .82rem;
  line-height: 1.4;
}

#app-readings .rd-tool-card-arc {
  grid-column: 1 / -1;
  min-height: 124px;
  padding: 18px 52px 18px 72px;
  justify-content: center;
}

#app-readings .rd-tool-card-arc .rd-symbol {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

#app-readings .rd-tool-card-arc .rd-card-copy {
  margin-top: 0;
}

#app-readings .rd-planet-card {
  grid-column: 1 / -1;
  min-height: 112px;
  padding: 19px 52px 19px 84px;
  justify-content: center;
  border-radius: 18px;
}

/* ---------- RELATIONSHIPS ---------- */

#app-readings .rd-love-card {
  min-height: 172px;
  padding: 18px 44px 18px 16px;
  border-radius: 18px;
}

/* ---------- CULTURAL ---------- */

#app-readings .rd-cultural-card {
  min-height: 138px;
  padding: 22px 58px 22px 82px;
  justify-content: center;
  border-radius: 20px;
  border-color: rgba(212,179,93,.29);
  background:
    radial-gradient(ellipse at 9% 50%,
      rgba(212,179,93,.16),transparent 28%),
    linear-gradient(120deg,#1a1814,#12110f 58%,#0a0a09);
}

#app-readings .rd-cultural-mark {
  position: absolute;
  left: 22px;
  top: 50%;
  color: var(--rd-gold);
  font-size: 2rem;
  opacity: .92;
  transform: translateY(-50%);
}

/* ---------- SYMBOLS ---------- */

#app-readings .rd-symbol {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--rd-gold);
  font-family: Georgia,"Times New Roman",serif;
  font-size: 2rem;
  line-height: 1;
}

#app-readings .rd-tool-card .rd-symbol {
  width: 36px;
  height: 36px;
  font-size: 1.65rem;
}

#app-readings .rd-symbol-arc {
  font-size: 0;
}

#app-readings .rd-symbol-arc::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 25px;
  height: 16px;
  border-top: 1.5px solid var(--rd-gold);
  border-right: 1.5px solid var(--rd-gold);
  border-radius: 50%;
  transform: rotate(-22deg);
}

#app-readings .rd-symbol-arc::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--rd-gold);
  border-right: 1.5px solid var(--rd-gold);
  transform: rotate(12deg);
}

#app-readings .rd-symbol-sun {
  font-size: 1.75rem;
}

#app-readings .rd-love-symbol {
  font-size: 2.05rem;
}

#app-readings .rd-progress-symbol {
  gap: 3px;
  align-items: flex-end;
}

#app-readings .rd-progress-symbol i {
  display: block;
  width: 4px;
  border-radius: 5px;
  background: var(--rd-gold);
}

#app-readings .rd-progress-symbol i:nth-child(1) {
  height: 12px;
  opacity: .5;
}

#app-readings .rd-progress-symbol i:nth-child(2) {
  height: 21px;
  opacity: .75;
}

#app-readings .rd-progress-symbol i:nth-child(3) {
  height: 30px;
}

#app-readings .rd-composite-symbol i {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 1px solid var(--rd-gold);
  border-radius: 50%;
}

#app-readings .rd-composite-symbol i:first-child {
  transform: translateX(-7px);
}

#app-readings .rd-composite-symbol i:last-child {
  transform: translateX(7px);
}

#app-readings .rd-circle-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212,179,93,.46);
  border-radius: 50%;
  color: var(--rd-gold);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
}

/* Planet Return icon */

#app-readings .rd-planet-orbit {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212,179,93,.46);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-22deg);
}

#app-readings .rd-planet-orbit::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 22px;
  width: 64px;
  height: 12px;
  border-top: 1px solid var(--rd-gold);
  border-radius: 50%;
}

#app-readings .rd-planet-orbit i {
  position: absolute;
  left: 17px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rd-gold);
  box-shadow: 0 0 18px rgba(212,179,93,.22);
}

/* ---------- INTERACTION ---------- */

#app-readings .rd-card,
#app-readings .rd-foundation-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

#app-readings .rd-card:active,
#app-readings .rd-foundation-card:active {
  transform: scale(.985);
}

#app-readings .rd-card:focus-visible,
#app-readings .rd-foundation-card:focus-visible {
  outline: 2px solid var(--rd-gold);
  outline-offset: 3px;
}

@media (hover:hover) and (pointer:fine) {
  #app-readings .rd-card:hover,
  #app-readings .rd-foundation-card:hover {
    border-color: rgba(212,179,93,.48);
    transform: translateY(-2px);
  }
}

/* ---------- VERY NARROW PHONES ---------- */

@media (max-width:359px) {
  #app-readings.app-readings-screen {
    padding-left: 14px;
    padding-right: 14px;
  }

  #app-readings .rd-intro {
    gap: 8px;
    margin-bottom: 22px;
  }

#app-readings .rd-foundation-copy {
    width: 78%;
    padding: 22px 18px;
  }

  #app-readings .rd-primary-grid,
  #app-readings .rd-love-grid {
    gap: 9px;
  }

  #app-readings .rd-tools-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }

  #app-readings .rd-tool-card {
    min-height: 160px;
    padding: 14px 38px 14px 11px;
  }

  #app-readings .rd-tool-card .rd-name {
    font-size: 1.08rem;
  }

  #app-readings .rd-tool-card .rd-purpose {
    font-size: .78rem;
  }
}

/* ---------- TABLET ---------- */

@media (min-width:700px) {
  #app-readings .rd-foundation-card {
    min-height: 340px;
  }

  #app-readings .rd-foundation-copy {
    min-height: 340px;
    padding: 36px;
  }

  #app-readings .rd-primary-grid {
    gap: 18px;
  }

  #app-readings .rd-primary-card {
    min-height: 260px;
    padding: 24px;
  }

  #app-readings .rd-tools-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
  }

  #app-readings .rd-tool-card {
    min-height: 205px;
    padding: 20px 48px 20px 17px;
  }

  #app-readings .rd-tool-card-arc {
    grid-column: auto;
    min-height: 205px;
    padding: 20px 48px 20px 17px;
    justify-content: flex-start;
  }

  #app-readings .rd-tool-card-arc .rd-symbol {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }

  #app-readings .rd-tool-card-arc .rd-card-copy {
    margin-top: auto;
  }

  #app-readings .rd-planet-card {
    grid-column: 1 / -1;
  }

  #app-readings .rd-love-grid {
    gap: 18px;
  }

  #app-readings .rd-love-card {
    min-height: 210px;
    padding: 24px 52px 24px 24px;
  }
}

/* ---------- DESKTOP ---------- */

@media (min-width:1024px) {
  #app-readings.app-readings-screen {
    padding-top: 48px;
  }

  #app-readings .rd-intro {
    margin-bottom: 40px;
  }

  #app-readings .rd-section {
    margin-top: 42px;
  }

  #app-readings .rd-foundation-card {
    min-height: 390px;
  }

  #app-readings .rd-foundation-copy {
    min-height: 390px;
    padding: 44px;
  }

  #app-readings .rd-primary-card {
    min-height: 285px;
  }
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion:reduce) {
  #app-readings .rd-card,
  #app-readings .rd-foundation-card {
    transition: none;
  }

  #app-readings .rd-card:hover,
  #app-readings .rd-card:active,
  #app-readings .rd-foundation-card:hover,
  #app-readings .rd-foundation-card:active {
    transform: none;
  }
}

/* ==========================================================
   ASTRODU PHASE H1 — MOTION & INTERACTION CRAFT
   Motion supports hierarchy; it never delays navigation.
   Existing card and bottom-navigation interaction rules remain
   authoritative and are intentionally not duplicated here.
   ========================================================== */

.app-screen {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 500ms cubic-bezier(.16, 1, .3, 1),
    transform 500ms cubic-bezier(.16, 1, .3, 1);
}

@keyframes app-h1-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-h1-backdrop-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/*
 * app-h1-enter is applied only after an internal shell screen
 * becomes visible. It does not postpone navigation or content.
 */
.app-screen.app-h1-enter {
  opacity: 0;
  transform: translateY(26px) scale(.985);
}

/* Saved-reading/document reader */
.app-doc-reader[open] {
  animation: app-h1-dialog-enter 220ms var(--app-ease) both;
}

.app-doc-reader[open]::backdrop {
  animation: app-h1-backdrop-enter 180ms ease-out both;
}

/* Share/action sheet generated by app-screens.js */
.app-sheet {
  transition:
    transform 200ms var(--app-ease),
    opacity 180ms ease-out;
}

/*
 * Existing toast positioning and visibility remain unchanged.
 * This only gives its arrival a slightly more deliberate finish.
 */
.app-toast {
  will-change: transform, opacity;
}

.app-toast.is-visible {
  transition:
    opacity 180ms ease-out,
    transform 220ms var(--app-ease),
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .app-screen.app-h1-enter {
    transition: none !important;
  }

  .app-doc-reader[open],
  .app-doc-reader[open]::backdrop {
    animation: none !important;
  }

  .app-sheet,
  .app-toast,
  .app-toast.is-visible {
    transition: none !important;
  }
}


/* ==========================================================
   ASTRODU PHASE H2 — INTERACTION AUTHORITY
   Final physical interaction layer for the premium Readings
   system. Layout, content and navigation remain unchanged.
   ========================================================== */

#app-readings .rd-card,
#app-readings .rd-foundation-card {
  transition:
    transform 180ms cubic-bezier(.2,.75,.25,1),
    border-color 180ms cubic-bezier(.2,.75,.25,1),
    box-shadow 220ms cubic-bezier(.2,.75,.25,1);
}

#app-readings .rd-card:active,
#app-readings .rd-foundation-card:active {
  transform: scale(.985);
}

@media (hover:hover) and (pointer:fine) {
  #app-readings .rd-card:hover,
  #app-readings .rd-foundation-card:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-readings .rd-card,
  #app-readings .rd-foundation-card {
    transition: none !important;
  }

  #app-readings .rd-card:hover,
  #app-readings .rd-card:active,
  #app-readings .rd-foundation-card:hover,
  #app-readings .rd-foundation-card:active {
    transform: none !important;
  }
}


/* ==========================================================
   ASTRODU PHASE H3 — ASYNC STATE AUTHORITY
   Calm, explicit waiting feedback for Documents operations.
   ========================================================== */

.app-documents-loading {
  min-height: 112px;
  justify-content: center;
}

.app-documents-loading .app-spinner {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .app-documents-loading .app-spinner {
    animation: none !important;
  }
}

/* ASTRODU PHASE L — DOCUMENT DIALOG */
.app-document-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .66);
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-document-dialog-backdrop.is-visible {
  opacity: 1;
}

.app-document-dialog {
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid rgba(230, 201, 121, .24);
  border-radius: 20px;
  background: #171512;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
  transform: translateY(14px) scale(.985);
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1);
}

.app-document-dialog-backdrop.is-visible .app-document-dialog {
  transform: translateY(0) scale(1);
}

.app-document-dialog-copy h3 {
  margin: 0;
  color: #f2ead8;
  font-size: 1.25rem;
  line-height: 1.25;
}

.app-document-dialog-copy p {
  margin: 9px 0 0;
  color: rgba(242, 234, 216, .72);
  font-size: .95rem;
  line-height: 1.55;
}

.app-document-dialog-field {
  display: block;
  margin-top: 18px;
}

.app-document-dialog-field span {
  display: block;
  margin-bottom: 7px;
  color: rgba(242, 234, 216, .72);
  font-size: .82rem;
  font-weight: 600;
}

.app-document-dialog-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(230, 201, 121, .28);
  border-radius: 12px;
  padding: 0 13px;
  background: #0f0e0c;
  color: #f2ead8;
  font: inherit;
  outline: none;
}

.app-document-dialog-field input:focus {
  border-color: rgba(230, 201, 121, .72);
  box-shadow: 0 0 0 3px rgba(230, 201, 121, .10);
}

.app-document-dialog-field input[aria-invalid="true"] {
  border-color: #b85d50;
}

.app-document-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.app-document-dialog-button {
  min-height: 46px;
  flex: 1;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease;
}

.app-document-dialog-button:active {
  transform: scale(.985);
}

.app-document-dialog-button.is-secondary {
  border: 1px solid rgba(242, 234, 216, .15);
  background: transparent;
  color: #f2ead8;
}

.app-document-dialog-button.is-primary {
  border: 1px solid #e6c979;
  background: #e6c979;
  color: #17130b;
}

.app-document-dialog-button:focus-visible {
  outline: 2px solid #e6c979;
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .app-document-dialog-backdrop {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-document-dialog-backdrop,
  .app-document-dialog,
  .app-document-dialog-button {
    transition: none;
  }
}

/* Phase Q — short landscape Welcome reachability */
@media (orientation: landscape) and (max-height: 500px) {
  .app-welcome {
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .app-welcome-content {
    flex: 0 0 auto;
    margin: 0 auto;
    padding-top: 22px;
    padding-bottom: calc(28px + var(--app-safe-bottom));
  }
}


/* ==========================================================
   ASTRODU PHASE R — MICRO-INTERACTION CRAFT
   Restrained tactile feedback for primary entry actions.
   ========================================================== */

#app-welcome-primary,
#app-welcome-signin {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  #app-welcome-primary {
    transition:
      transform 160ms cubic-bezier(.2,.75,.25,1),
      background 160ms ease,
      border-color 160ms ease,
      box-shadow 160ms ease;
  }

  #app-welcome-primary:active {
    transform: translateY(1px) scale(.985);
    box-shadow: 0 1px 5px rgba(0,0,0,.22);
  }

  #app-welcome-signin {
    transition:
      transform 150ms cubic-bezier(.2,.75,.25,1),
      color 150ms ease,
      opacity 150ms ease;
  }

  #app-welcome-signin:active {
    transform: scale(.96);
    opacity: .82;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-welcome-primary,
  #app-welcome-signin {
    transition: none !important;
  }

  #app-welcome-primary:active,
  #app-welcome-signin:active {
    transform: none !important;
  }
}


/* Document reader: compact corner close control + saved AstroDu wheel. */
.app-doc-reader {
  position: relative;
  padding-top: 56px;
}

.app-doc-reader-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
  background: var(--app-cream-50);
  color: var(--app-ink);
  border: 1px solid var(--app-border-strong);
  cursor: pointer;
}

.app-doc-reader .birth-wheel-figure {
  width: min(100%, 620px);
  margin: 20px auto 32px;
}

.app-doc-reader .birth-wheel {
  display: block;
  width: 100%;
  height: auto;
}

.app-doc-reader .birth-wheel-caption {
  margin-top: 10px;
  text-align: center;
  font-size: .875rem;
  color: var(--app-muted);
}

/* Document-reader close control: invisible 44px tap target, visible × only. */
.app-doc-reader-close {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  border-radius: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--app-ink);
  font-size: 30px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.app-doc-reader-close:hover,
.app-doc-reader-close:active {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-doc-reader-close:focus-visible {
  outline: 2px solid var(--app-border-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================
   DOCUMENT READER — FINAL VISUAL CLEANUP
   Scope: Documents saved-reading dialog only.
   ========================================================== */

/* Plain X only — keep the invisible 44px mobile tap target. */
.app-doc-reader button.app-doc-reader-close,
.app-doc-reader button.app-doc-reader-close:hover,
.app-doc-reader button.app-doc-reader-close:active {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;

  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;

  margin: 0;
  padding: 0;

  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  color: var(--app-ink);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;

  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Kill decorative rings coming from global button pseudo-elements. */
.app-doc-reader button.app-doc-reader-close::before,
.app-doc-reader button.app-doc-reader-close::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Keep keyboard accessibility without restoring the boxed button. */
.app-doc-reader button.app-doc-reader-close:focus-visible {
  outline: 2px solid var(--app-border-strong) !important;
  outline-offset: 2px !important;
}

/* Let the cream reader surface show through the saved chart. */
.app-doc-reader .birth-wheel > rect:first-child {
  fill: transparent !important;
}

/* Remove redundant "Your Birth Chart." below the wheel. */
.app-doc-reader .birth-wheel-caption {
  display: none !important;
}

.app-doc-reader .birth-wheel-figure {
  margin-bottom: 24px;
}


/* ==========================================================
   DOCUMENT READER NAVIGATION
   Top plain ×, conditional floating ↑, bottom Close Reading.
   ========================================================== */

.app-doc-reader > button.app-doc-reader-close {
  -webkit-appearance: none !important;
  appearance: none !important;

  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;
  place-items: center !important;

  background: none !important;
  background-color: transparent !important;
  background-image: none !important;

  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;

  box-shadow: none !important;
  text-shadow: none !important;

  color: var(--app-ink) !important;
  font-size: 34px !important;
  font-weight: 300 !important;
  line-height: 1 !important;

  z-index: 30 !important;
}

.app-doc-reader > button.app-doc-reader-close::before,
.app-doc-reader > button.app-doc-reader-close::after {
  content: none !important;
  display: none !important;
}

.app-doc-reader > button.app-doc-reader-close:focus,
.app-doc-reader > button.app-doc-reader-close:focus-visible,
.app-doc-reader > button.app-doc-reader-close:hover,
.app-doc-reader > button.app-doc-reader-close:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.app-doc-reader-up {
  -webkit-appearance: none;
  appearance: none;

  position: sticky;
  float: right;
  bottom: 22px;
  right: 18px;
  z-index: 25;

  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  margin: 0 4px 12px 12px;
  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid var(--app-border-strong);
  border-radius: 50%;
  background: var(--app-cream-50);
  box-shadow: 0 6px 20px rgba(34, 28, 16, .14);

  color: var(--app-ink);
  font-size: 25px;
  line-height: 1;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}

.app-doc-reader-up.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.app-doc-reader-bottom-close {
  -webkit-appearance: none;
  appearance: none;

  display: block;
  width: min(100%, 360px);
  min-height: 52px;

  margin: 34px auto 18px;
  padding: 13px 24px;

  border: 1px solid var(--app-border-strong);
  border-radius: 14px;
  background: transparent;

  color: var(--app-ink);
  font: inherit;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

.app-doc-reader-bottom-close:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .app-doc-reader-up {
    transition: none;
  }
}

/* ==========================================================
   DOCUMENT FILTER CLUSTER — 2026-09-24
   Keep every reading family visible without horizontal swipe.
   ========================================================== */
.app-documents-screen .app-document-filters-wrap {
  width: 100%;
  overflow: visible;
}

.app-documents-screen .app-document-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
  width: 100%;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: auto;
}

.app-documents-screen .app-document-filter {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .app-documents-screen .app-document-filters {
    gap: 9px 7px;
  }

  .app-documents-screen .app-document-filter {
    padding-left: 15px;
    padding-right: 12px;
  }
}


/* ==========================================================
   DOCUMENT FILTER AWARENESS FINAL — 2026-09-24
   ========================================================== */

.app-documents-screen .app-document-filter-empty {
  margin-top: 22px;
}

.app-documents-screen .app-document-filter-empty .app-button {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-top: 20px;
  padding-left: 22px;
  padding-right: 22px;
}

.app-documents-screen .app-document-awareness {
  border-color: rgba(200,168,75,.30);
}

.app-documents-screen .app-document-awareness::before {
  content: "✦";
  display: block;
  margin-bottom: 12px;
  color: #d9b95f;
  font-size: 1.1rem;
  line-height: 1;
}

/* ==========================================================
   DOCUMENT READER — SAFE VIEWPORT FINAL
   2026-09-24
   Keeps the saved-reading dialog inside the visible mobile
   viewport and normalises the primary Read Again control.
   ========================================================== */

/*
 * IMPORTANT:
 * Earlier reader refinements changed .app-doc-reader to relative.
 * A modal <dialog> must remain fixed to the viewport.
 */
.app-doc-reader {
  position: fixed !important;

  top: calc(var(--app-safe-top) + 12px) !important;
  right: max(12px, var(--app-safe-right)) !important;
  bottom: calc(var(--app-safe-bottom) + 12px) !important;
  left: max(12px, var(--app-safe-left)) !important;

  inset-inline: max(12px, var(--app-safe-left))
                max(12px, var(--app-safe-right)) !important;

  width: auto !important;
  max-width: 760px !important;

  height: auto !important;
  max-height: none !important;

  margin: 0 auto !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;

  padding:
    60px
    20px
    calc(32px + var(--app-safe-bottom))
    20px !important;

  border-radius: var(--app-radius-md);
  -webkit-overflow-scrolling: touch;
}

/*
 * The X belongs to the reader itself, not to the page behind it.
 * Keep the existing plain-X appearance and 44px tap target.
 */
.app-doc-reader > button.app-doc-reader-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;
  place-items: center !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  font-size: 30px !important;
  font-weight: 300 !important;
  line-height: 1 !important;

  z-index: 40 !important;
}

/*
 * Keep the saved chart/content inside the reader width.
 */
.app-doc-reader .birth-wheel-figure,
.app-doc-reader .birth-wheel {
  max-width: 100% !important;
}

/*
 * Read Again / Open Reading:
 * stable full-width primary action with no inherited distortion.
 */
.app-document-card .app-document-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: calc(100% - 26px) !important;
  min-width: 0 !important;
  min-height: 48px !important;

  margin: 0 13px 12px !important;
  padding: 10px 16px !important;

  border: 0 !important;
  border-radius: 10px !important;

  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;
}

/*
 * Prevent the entire document card from visually shrinking when
 * its internal controls are tapped.
 */
.app-document-card:active {
  transform: none !important;
}

.app-document-card .app-document-primary:active {
  transform: translateY(1px) !important;
}

/*
 * Small phones: retain breathing room without allowing the reader
 * to touch the browser/safe-area edges.
 */
@media (max-width: 430px) {
  .app-doc-reader {
    top: calc(var(--app-safe-top) + 8px) !important;
    right: max(8px, var(--app-safe-right)) !important;
    bottom: calc(var(--app-safe-bottom) + 8px) !important;
    left: max(8px, var(--app-safe-left)) !important;

    inset-inline: max(8px, var(--app-safe-left))
                  max(8px, var(--app-safe-right)) !important;

    padding:
      58px
      18px
      calc(28px + var(--app-safe-bottom))
      18px !important;
  }
}



/* ASTRODU ROADMAP T1 — SIGNATURE CHART CONSTRUCTION
   Presentation only. The real natal renderer/calculation is untouched. */

.app-preview-progress {
  position: relative;
  overflow: hidden;
  padding: 24px 0 18px;
  text-align: center;
}

.app-chart-forge {
  position: relative;
  width: clamp(150px, 46vw, 190px);
  aspect-ratio: 1;
  margin: 2px auto 20px;
  border-radius: 50%;
  isolation: isolate;
}

.app-chart-forge-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(229,199,110,.17) 0,
      rgba(200,168,75,.08) 38%,
      rgba(200,168,75,0) 72%);
  filter: blur(7px);
  animation: app-chart-forge-breathe 2.8s ease-in-out infinite;
}

.app-chart-forge-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(229,199,110,.72);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  animation: app-chart-forge-ring-in 720ms var(--app-ease) forwards;
}

.app-chart-forge-ring-outer {
  width: 100%;
  height: 100%;
  border-color: rgba(229,199,110,.78);
  box-shadow:
    0 0 0 1px rgba(229,199,110,.08),
    0 0 28px rgba(200,168,75,.09);
  animation-delay: 80ms;
}

.app-chart-forge-ring-middle {
  width: 72%;
  height: 72%;
  border-color: rgba(229,199,110,.48);
  animation-delay: 260ms;
}

.app-chart-forge-ring-inner {
  width: 37%;
  height: 37%;
  border-color: rgba(229,199,110,.38);
  animation-delay: 440ms;
}

.app-chart-forge-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 100%;
  background:
    linear-gradient(
      to bottom,
      rgba(229,199,110,.08) 0,
      rgba(229,199,110,.44) 9%,
      rgba(229,199,110,.18) 27%,
      rgba(229,199,110,.08) 50%,
      rgba(229,199,110,.18) 73%,
      rgba(229,199,110,.44) 91%,
      rgba(229,199,110,.08) 100%
    );
  opacity: 0;
  transform-origin: 50% 50%;
  animation: app-chart-forge-axis-in 520ms ease-out forwards;
}

.app-chart-forge-axis-1 {
  transform: translate(-50%, -50%) rotate(0deg);
  animation-delay: 500ms;
}

.app-chart-forge-axis-2 {
  transform: translate(-50%, -50%) rotate(30deg);
  animation-delay: 570ms;
}

.app-chart-forge-axis-3 {
  transform: translate(-50%, -50%) rotate(60deg);
  animation-delay: 640ms;
}

.app-chart-forge-axis-4 {
  transform: translate(-50%, -50%) rotate(90deg);
  animation-delay: 710ms;
}

.app-chart-forge-axis-5 {
  transform: translate(-50%, -50%) rotate(120deg);
  animation-delay: 780ms;
}

.app-chart-forge-axis-6 {
  transform: translate(-50%, -50%) rotate(150deg);
  animation-delay: 850ms;
}

.app-chart-forge-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation:
    app-chart-forge-orbit-in 480ms ease-out 980ms forwards,
    app-chart-forge-orbit-turn 7s linear 1.46s infinite;
}

.app-chart-forge-orbit span {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #ead17f;
  box-shadow:
    0 0 8px rgba(234,209,127,.8),
    0 0 18px rgba(200,168,75,.4);
}

.app-chart-forge-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(229,199,110,.34);
  border-radius: 50%;
  background: rgba(13,10,5,.78);
  color: #e5c76e;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: scale(.55);
  box-shadow: 0 0 24px rgba(200,168,75,.12);
  animation: app-chart-forge-core-in 600ms var(--app-ease) 1.08s forwards;
}

.app-preview-progress-kicker {
  margin: 0 0 7px;
  color: var(--app-gold-500);
  font-family: var(--app-font-editorial);
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: .01em;
}

.app-preview-progress-text {
  max-width: 32rem;
  margin: 0 auto;
  color: rgba(250,246,236,.68);
  font-size: .9375rem;
  line-height: 1.65;
}

@keyframes app-chart-forge-ring-in {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes app-chart-forge-axis-in {
  from { opacity: 0; }
  to { opacity: .9; }
}

@keyframes app-chart-forge-orbit-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes app-chart-forge-orbit-turn {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes app-chart-forge-core-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes app-chart-forge-breathe {
  0%, 100% {
    opacity: .52;
    transform: scale(.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-chart-forge-glow,
  .app-chart-forge-ring,
  .app-chart-forge-axis,
  .app-chart-forge-orbit,
  .app-chart-forge-core {
    animation: none !important;
  }

  .app-chart-forge-ring,
  .app-chart-forge-axis,
  .app-chart-forge-orbit,
  .app-chart-forge-core {
    opacity: 1;
  }

  .app-chart-forge-ring {
    transform: translate(-50%, -50%) scale(1);
  }

  .app-chart-forge-core {
    transform: scale(1);
  }
}

/* ASTRODU ROADMAP T2 — DIMENSIONAL BIRTH CHART REVEAL
   Presentation only. The authoritative birth-chart SVG is not recalculated. */

.app-preview-chart-stage {
  position: relative;
  width: min(100%, 620px);
  margin: 2px auto 34px;
  padding: clamp(10px, 3vw, 18px);
  isolation: isolate;
  perspective: 1100px;
  text-align: center;
}

.app-preview-chart-halo {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 48%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(229,199,110,.15) 0,
      rgba(200,168,75,.075) 34%,
      rgba(200,168,75,.025) 56%,
      rgba(200,168,75,0) 74%
    );
  opacity: 0;
  filter: blur(12px);
  transform: translate(-50%, -50%) scale(.76);
  transition:
    opacity 900ms ease-out 180ms,
    transform 1100ms var(--app-ease) 120ms;
  pointer-events: none;
}

.app-preview-chart-mount {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
}

.app-preview-chart-stage .birth-wheel-figure {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  opacity: 0;
  transform:
    translateY(22px)
    rotateX(8deg)
    scale(.88);
  transform-origin: 50% 50%;
  filter:
    drop-shadow(0 18px 24px rgba(0,0,0,.24))
    drop-shadow(0 0 0 rgba(200,168,75,0));
  transition:
    opacity 700ms ease-out,
    transform 1100ms var(--app-ease),
    filter 1100ms ease-out;
  will-change: transform, opacity;
}

.app-preview-chart-stage .birth-wheel {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.app-preview-chart-stage .birth-wheel-caption {
  margin: 13px 0 0;
  color: rgba(250,246,236,.58);
  font-family: var(--app-font-ui);
  font-size: .8125rem;
  line-height: 1.45;
  letter-spacing: .025em;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 520ms ease-out 620ms,
    transform 520ms ease-out 620ms;
}

.app-preview-chart-stage.is-revealed .app-preview-chart-halo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.app-preview-chart-stage.is-revealed .birth-wheel-figure {
  opacity: 1;
  transform:
    translateY(0)
    rotateX(0deg)
    scale(1);
  filter:
    drop-shadow(0 20px 28px rgba(0,0,0,.25))
    drop-shadow(0 0 18px rgba(200,168,75,.10));
}

.app-preview-chart-stage.is-revealed .birth-wheel-caption {
  opacity: 1;
  transform: translateY(0);
}

/*
 * A restrained living-chart effect begins only after the entrance settles.
 * The SVG itself is never rotated: house/planet orientation remains exact.
 */
.app-preview-chart-stage.is-revealed .app-preview-chart-mount {
  animation: app-preview-chart-breathe 7s ease-in-out 1.2s infinite;
}

@keyframes app-preview-chart-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.006);
  }
}

@media (max-width: 430px) {
  .app-preview-chart-stage {
    width: calc(100% + 12px);
    margin-left: -6px;
    margin-right: -6px;
    padding: 6px 0 10px;
  }

  .app-preview-chart-stage .birth-wheel-figure {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-preview-chart-halo,
  .app-preview-chart-stage .birth-wheel-figure,
  .app-preview-chart-stage .birth-wheel-caption {
    transition: none !important;
  }

  .app-preview-chart-stage .app-preview-chart-mount {
    animation: none !important;
  }

  .app-preview-chart-stage .app-preview-chart-halo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .app-preview-chart-stage .birth-wheel-figure {
    opacity: 1;
    transform: none;
  }

  .app-preview-chart-stage .birth-wheel-caption {
    opacity: 1;
    transform: none;
  }
}

/* ASTRODU ROADMAP T3 — RESPONSIVE DEPTH SIGNATURE
   Presentation only. No chart geometry or calculation is altered. */

.app-preview-chart-stage {
  --chart-depth-x: 0deg;
  --chart-depth-y: 0deg;
  --chart-light-x: 50%;
  --chart-light-y: 42%;
}

.app-preview-chart-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 5% 5% 12%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at var(--chart-light-x) var(--chart-light-y),
      rgba(255,244,201,.13) 0,
      rgba(229,199,110,.055) 19%,
      rgba(229,199,110,0) 47%
    );
  opacity: 0;
  transform: scale(.94);
  transition:
    opacity 420ms ease,
    transform 520ms var(--app-ease);
  pointer-events: none;
  mix-blend-mode: screen;
}

.app-preview-chart-stage.is-revealed::before {
  opacity: .42;
  transform: scale(1);
}

.app-preview-chart-stage.is-revealed.has-depth::before {
  opacity: .72;
}

.app-preview-chart-stage.is-revealed.has-depth .birth-wheel-figure {
  transform:
    rotateX(var(--chart-depth-y))
    rotateY(var(--chart-depth-x))
    translateZ(5px)
    scale(1.008);
  filter:
    drop-shadow(0 24px 34px rgba(0,0,0,.29))
    drop-shadow(0 0 22px rgba(200,168,75,.13));
  transition:
    transform 110ms linear,
    filter 180ms ease-out;
}

.app-preview-chart-stage.is-revealed.has-depth .app-preview-chart-halo {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.035);
}

.app-preview-chart-stage.is-revealed.is-touching .birth-wheel-figure {
  transform:
    translateY(1px)
    scale(.988);
  filter:
    drop-shadow(0 15px 21px rgba(0,0,0,.23))
    drop-shadow(0 0 15px rgba(200,168,75,.09));
  transition:
    transform 120ms ease-out,
    filter 120ms ease-out;
}

/*
 * Do not combine the continuous breathing transform with live pointer depth.
 * The breathe animation resumes automatically when the pointer leaves.
 */
.app-preview-chart-stage.is-revealed.has-depth .app-preview-chart-mount,
.app-preview-chart-stage.is-revealed.is-touching .app-preview-chart-mount {
  animation-play-state: paused;
}

@media (hover: none), (pointer: coarse) {
  .app-preview-chart-stage::before {
    opacity: .34;
  }

  .app-preview-chart-stage.is-revealed::before {
    opacity: .38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-preview-chart-stage::before {
    transition: none !important;
    opacity: .32;
    transform: none;
  }

  .app-preview-chart-stage.is-revealed.has-depth .birth-wheel-figure,
  .app-preview-chart-stage.is-revealed.is-touching .birth-wheel-figure {
    transform: none !important;
    transition: none !important;
  }
}

/* ASTRODU ROADMAP T4 — ASTRODU FIRE IDENTITY
   AstroDu received its breath of life during Aries season.
   Fire therefore belongs to the product's identity alongside its
   established celestial dark, cream and gold system.

   GOLD = wisdom, value, prestige.
   FIRE = life, action, courage, momentum.

   Presentation only. No astrology/chart calculations are changed. */

/* ----------------------------------------------------------
   OFFICIAL ASTRODU FIRE PALETTE
   ---------------------------------------------------------- */

:root {
  --app-fire-700: #9f3f25;
  --app-fire-600: #bd512d;
  --app-fire-500: #d96835;
  --app-fire-400: #e98545;
  --app-fire-300: #efa45f;

  --app-fire-strong: rgba(217,104,53,.88);
  --app-fire-glow: rgba(233,133,69,.30);
  --app-fire-soft: rgba(217,104,53,.15);
  --app-fire-faint: rgba(233,133,69,.075);

  --app-fire-gradient:
    linear-gradient(
      120deg,
      var(--app-fire-700),
      var(--app-fire-500) 48%,
      var(--app-fire-300)
    );
}

/* ----------------------------------------------------------
   SIGNATURE BRAND ENERGY
   A narrow fire edge gives important dark AstroDu surfaces
   recognisable energy without replacing gold or cream.
   ---------------------------------------------------------- */

.app-readings-screen .app-readings-header {
  position: relative;
}

.app-readings-screen .app-readings-header::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 13px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--app-fire-600),
      var(--app-fire-400),
      rgba(233,133,69,0)
    );
  box-shadow: 0 0 14px var(--app-fire-soft);
}

/* Active document category gets a living fire edge while
   retaining the premium gold-filled selected state. */
.app-documents-screen .app-document-filter.is-active,
.app-documents-screen .app-document-filter[aria-pressed="true"] {
  border-color: var(--app-fire-400);
  box-shadow:
    0 0 0 1px rgba(233,133,69,.12),
    0 5px 16px rgba(159,63,37,.16);
}

/* Go Deep is an action/momentum moment. Gold remains the
   button body; fire becomes the energetic edge. */
.app-document-action.app-ask-go-deep,
.app-ask-go-deep {
  border-color: var(--app-fire-400);
  box-shadow:
    0 2px 8px rgba(0,0,0,.32),
    0 0 0 1px rgba(217,104,53,.08);
}

/* ----------------------------------------------------------
   BIRTH CHART — FIRE + GOLD SIGNATURE MOMENT
   ---------------------------------------------------------- */

.app-preview-chart-stage {
  --app-fire-core: var(--app-fire-500);
  --app-fire-warm: var(--app-fire-300);
}

/*
 * The gold halo remains the celestial/knowledge layer.
 * Fire rises underneath it as the living-energy layer.
 */
.app-preview-chart-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 4%;
  width: 76%;
  height: 34%;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(233,133,69,.28) 0,
      rgba(217,104,53,.17) 28%,
      rgba(189,81,45,.07) 52%,
      rgba(159,63,37,0) 76%
    );
  opacity: 0;
  filter: blur(20px);
  transform: translate(-50%,18px) scale(.78);
  transition:
    opacity 1000ms ease-out 260ms,
    transform 1250ms var(--app-ease) 180ms;
  pointer-events: none;
}

/*
 * A slim fire arc around part of the wheel creates an
 * identifiable AstroDu signature without touching the SVG.
 */
.app-preview-chart-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(86%, 510px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 1px;
  background:
    conic-gradient(
      from 205deg,
      transparent 0deg,
      transparent 28deg,
      rgba(189,81,45,.22) 48deg,
      var(--app-fire-500) 72deg,
      var(--app-fire-300) 92deg,
      rgba(233,133,69,.16) 116deg,
      transparent 142deg,
      transparent 360deg
    );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  opacity: 0;
  transform: translate(-50%,-50%) scale(.91);
  transition:
    opacity 900ms ease-out 520ms,
    transform 1150ms var(--app-ease) 360ms;

  filter:
    drop-shadow(0 0 5px rgba(233,133,69,.28))
    drop-shadow(0 0 13px rgba(217,104,53,.12));

  pointer-events: none;
}

.app-preview-chart-stage.is-revealed::before {
  opacity: .92;
  transform: translate(-50%,0) scale(1);
}

.app-preview-chart-stage.is-revealed::after {
  opacity: .88;
  transform: translate(-50%,-50%) scale(1);
}

/*
 * Fire breathes; the chart does not rotate.
 * Geometry and calculated placements remain visually exact.
 */
@media (prefers-reduced-motion: no-preference) {
  .app-preview-chart-stage.is-revealed::before {
    animation: app-fire-breathe 6.4s ease-in-out 1.5s infinite;
  }

  .app-preview-chart-stage.is-revealed::after {
    animation: app-fire-arc-breathe 7.2s ease-in-out 1.7s infinite;
  }

  @keyframes app-fire-breathe {
    0%, 100% {
      opacity: .72;
      filter: blur(20px);
    }

    50% {
      opacity: 1;
      filter: blur(24px);
    }
  }

  @keyframes app-fire-arc-breathe {
    0%, 100% {
      opacity: .68;
    }

    50% {
      opacity: .96;
    }
  }
}

/* Desktop pointer depth may strengthen the atmosphere,
   but never rotates or offsets chart geometry. */
@media (hover: hover) and (pointer: fine) {
  .app-preview-chart-stage.is-depth-active::before {
    opacity: 1;
  }

  .app-preview-chart-stage.is-depth-active::after {
    filter:
      drop-shadow(0 0 7px rgba(233,133,69,.36))
      drop-shadow(0 0 17px rgba(217,104,53,.17));
  }
}

/* ----------------------------------------------------------
   ACCESSIBILITY / SMALL SCREENS
   ---------------------------------------------------------- */

@media (max-width: 430px) {
  .app-preview-chart-stage::before {
    width: 90%;
    bottom: 8%;
  }

  .app-preview-chart-stage::after {
    width: 91%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-preview-chart-stage::before,
  .app-preview-chart-stage::after {
    animation: none !important;
    transition: none !important;
  }

  .app-preview-chart-stage.is-revealed::before {
    opacity: .68;
    transform: translate(-50%,0) scale(1);
  }

  .app-preview-chart-stage.is-revealed::after {
    opacity: .72;
    transform: translate(-50%,-50%) scale(1);
  }
}

/* ASTRODU FIRE IDENTITY — WHOLE APP PROPAGATION
   Fire is an official AstroDu identity colour.

   Celestial dark / cream = foundation
   Gold = wisdom, value, knowledge, premium
   Fire = life, action, courage, momentum, active state

   These rules are presentation-only. */

/* ----------------------------------------------------------
   ACTIVE NAVIGATION — FIRE IS THE ACTIVE ENERGY
   ---------------------------------------------------------- */

.app-bottom-nav .app-nav-item.is-active,
.app-bottom-nav .app-nav-item.active,
.app-bottom-nav .app-nav-item[aria-current="page"] {
  color: #17110d;
}

.app-bottom-nav .app-nav-item.is-active::before,
.app-bottom-nav .app-nav-item.active::before,
.app-bottom-nav .app-nav-item[aria-current="page"]::before {
  background: var(--app-fire-600) !important;
  box-shadow:
    0 0 8px rgba(217,104,53,.48),
    0 0 18px rgba(217,104,53,.20);
}

.app-bottom-nav .app-nav-item.is-active > svg,
.app-bottom-nav .app-nav-item.active > svg,
.app-bottom-nav .app-nav-item[aria-current="page"] > svg {
  filter: drop-shadow(0 0 5px rgba(217,104,53,.24));
}

/* ----------------------------------------------------------
   PRIMARY ACTIONS
   Gold body = value. Fire edge = momentum.
   ---------------------------------------------------------- */

.app-button-primary,
.app-button-welcome {
  border-color: var(--app-fire-600);
  box-shadow:
    0 8px 20px rgba(23,18,8,.16),
    0 0 0 1px rgba(217,104,53,.10);
}

.app-button-primary:focus-visible,
.app-button-welcome:focus-visible,
.app-ask-go-deep:focus-visible,
.app-document-action.app-ask-go-deep:focus-visible {
  outline-color: var(--app-fire-400);
}

/* ----------------------------------------------------------
   FORMS / SELECTION
   Fire identifies live user interaction.
   ---------------------------------------------------------- */

.app-form-input:focus {
  border-color: var(--app-fire-400);
  box-shadow: 0 0 0 3px var(--app-fire-faint);
}

.app-form-checkbox-row input[type="checkbox"] {
  accent-color: var(--app-fire-500);
}

.app-focus-chip.is-selected {
  border-color: var(--app-fire-500);
  box-shadow: 0 0 0 1px var(--app-fire-soft);
}

.app-progress i {
  background:
    linear-gradient(
      90deg,
      var(--app-fire-700),
      var(--app-fire-500),
      var(--app-fire-300)
    );
  box-shadow: 0 0 10px var(--app-fire-soft);
}

/* ----------------------------------------------------------
   READINGS / CALCULATORS
   ---------------------------------------------------------- */

#app-readings .rd-intro-copy h1::after,
#app-readings .app-readings-header h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 11px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--app-fire-600),
      var(--app-fire-400),
      rgba(233,133,69,0)
    );
  box-shadow: 0 0 12px var(--app-fire-soft);
}

#app-readings .rd-card,
#app-readings .rd-foundation-card,
#app-readings .app-reading-card,
#app-readings .app-reading-feature,
#app-readings .app-reading-entry {
  transition:
    border-color var(--app-fast),
    box-shadow var(--app-fast),
    transform var(--app-fast),
    background var(--app-fast);
}

@media (hover:hover) {
  #app-readings .rd-card:hover,
  #app-readings .rd-foundation-card:hover,
  #app-readings .app-reading-card:hover,
  #app-readings .app-reading-feature:hover,
  #app-readings .app-reading-entry:hover {
    border-color: rgba(217,104,53,.54);
    box-shadow:
      0 12px 28px rgba(0,0,0,.18),
      0 0 0 1px rgba(217,104,53,.07);
  }
}

#app-readings .rd-card:focus-visible,
#app-readings .rd-foundation-card:focus-visible,
#app-readings .app-reading-card:focus-visible,
#app-readings .app-reading-feature:focus-visible,
#app-readings .app-reading-entry:focus-visible {
  outline-color: var(--app-fire-400);
}

/* Start / action language carries the energetic colour. */
#app-readings .rd-start,
#app-readings .app-reading-action,
#app-readings .app-reading-entry-cta {
  text-decoration-color: rgba(217,104,53,.55);
}

#app-readings .rd-start b {
  color: var(--app-fire-400);
}

/* ----------------------------------------------------------
   DOCUMENTS
   ---------------------------------------------------------- */

.app-documents-screen .app-readings-header h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--app-fire-600),
      var(--app-fire-400),
      transparent
    );
}

.app-documents-screen .app-document-filter:focus-visible {
  outline-color: var(--app-fire-400);
}

@media (hover:hover) {
  .app-documents-screen .app-document-filter:not(.is-active):hover {
    border-color: rgba(217,104,53,.52);
  }
}

/* ----------------------------------------------------------
   ME / ACCOUNT
   ---------------------------------------------------------- */

.app-me-screen .app-me-avatar {
  border: 1px solid rgba(217,104,53,.46);
  box-shadow:
    0 0 0 3px rgba(217,104,53,.06),
    0 8px 24px rgba(0,0,0,.18);
}

.app-me-screen .app-readings-header h1::after,
.app-me-screen h1:first-of-type::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--app-fire-600),
      var(--app-fire-400),
      transparent
    );
}

/* ----------------------------------------------------------
   GLOBAL KEYBOARD FOCUS
   Fire indicates current interaction; gold remains content.
   ---------------------------------------------------------- */

.app-shell :where(
  button,
  a,
  input,
  select,
  textarea
):focus-visible {
  outline-color: var(--app-fire-400);
}

/* ----------------------------------------------------------
   REDUCED MOTION
   Identity remains visible without movement.
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  #app-readings .rd-card,
  #app-readings .rd-foundation-card,
  #app-readings .app-reading-card,
  #app-readings .app-reading-feature,
  #app-readings .app-reading-entry {
    transition: none !important;
  }
}
/* ASTRODU ROADMAP T5 — DIMENSIONAL READING BOOK
   The saved AstroDu reading becomes a premium digital volume.

   Presentation only:
   - interpretation content is unchanged
   - saved chart_data is unchanged
   - Birth Chart geometry is unchanged
   - PDF/audio/payment/business logic is unchanged
   - public website is untouched
*/

/* ----------------------------------------------------------
   READER STAGE
   ---------------------------------------------------------- */

.app-doc-reader {
  --reading-paper: #f8f2e4;
  --reading-paper-deep: #eee3cb;
  --reading-ink: #29271f;
  --reading-muted: #716957;
  --reading-gold: var(--app-gold-600);

  perspective: 1400px;
  background:
    radial-gradient(
      ellipse at 50% -8%,
      rgba(255,255,255,.95),
      rgba(255,255,255,0) 38%
    ),
    linear-gradient(
      105deg,
      #e8dcc3 0,
      var(--reading-paper) 4%,
      var(--reading-paper) 96%,
      #e5d8bd 100%
    ) !important;

  border: 1px solid rgba(168,137,53,.72) !important;

  box-shadow:
    0 32px 80px rgba(0,0,0,.48),
    0 10px 28px rgba(0,0,0,.24),
    inset 1px 0 rgba(255,255,255,.72),
    inset -1px 0 rgba(128,91,25,.08) !important;
}

/* Fine paper grain without an image asset. */
.app-doc-reader::after {
  content: "";
  position: fixed;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .24;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(78,55,19,.018) 0,
      rgba(78,55,19,.018) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: multiply;
}

/* ----------------------------------------------------------
   OPENING TITLE
   ---------------------------------------------------------- */

.app-doc-reader > h2 {
  position: relative;
  z-index: 2;

  max-width: 620px;
  margin:
    2px
    auto
    30px;

  padding:
    0
    38px
    23px;

  color: var(--reading-ink);

  font-family: var(--app-font-editorial);
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-align: center;
  text-wrap: balance;
}

.app-doc-reader > h2::before {
  content: "ASTRODU";
  display: block;

  margin-bottom: 11px;

  color: var(--reading-gold);

  font-family: var(--app-font-ui);
  font-size: .66rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .22em;
}

.app-doc-reader > h2::after {
  content: "";
  display: block;

  width: 74px;
  height: 2px;

  margin: 19px auto 0;
  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--app-fire-500) 18%,
      var(--reading-gold) 52%,
      var(--app-fire-400) 82%,
      transparent
    );

  box-shadow:
    0 0 13px rgba(217,104,53,.14);
}

/* ----------------------------------------------------------
   READING PAGE
   ---------------------------------------------------------- */

.app-doc-reader-text {
  position: relative;
  z-index: 1;

  width: min(100%, 660px);
  margin: 0 auto;

  color: var(--reading-ink);

  font-size: 1rem;
  line-height: 1.78;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/*
 * A restrained inner page creates the feeling of a bound reading
 * without turning the interface into a fake physical-book gimmick.
 */
.app-doc-reader-text::before {
  content: "";
  position: absolute;
  z-index: -1;

  top: -18px;
  right: -20px;
  bottom: -22px;
  left: -20px;

  border:
    1px
    solid
    rgba(128,103,36,.09);

  border-radius: 5px;

  background:
    linear-gradient(
      90deg,
      rgba(103,73,24,.035),
      transparent 3.5%,
      transparent 96.5%,
      rgba(103,73,24,.028)
    );

  box-shadow:
    0 12px 32px rgba(64,45,16,.055),
    inset 10px 0 18px rgba(95,65,18,.022),
    inset -8px 0 16px rgba(95,65,18,.018);

  pointer-events: none;
}

/* ----------------------------------------------------------
   EDITORIAL READING TYPOGRAPHY
   These selectors style whatever AstroDuFormatReading already
   produces. They do not rewrite or reinterpret the reading.
   ---------------------------------------------------------- */

.app-doc-reader-text p {
  margin: 0 0 1.12em;
}

.app-doc-reader-text h1,
.app-doc-reader-text h2,
.app-doc-reader-text h3,
.app-doc-reader-text h4 {
  color: #312816;
  font-family: var(--app-font-editorial);
  text-wrap: balance;
}

.app-doc-reader-text h1 {
  margin: 1.6em 0 .62em;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.12;
}

.app-doc-reader-text h2 {
  margin: 1.8em 0 .68em;
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
  line-height: 1.16;
}

.app-doc-reader-text h3 {
  margin: 1.65em 0 .58em;
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  line-height: 1.2;
}

.app-doc-reader-text h4 {
  margin: 1.45em 0 .52em;
  font-size: 1.08rem;
  line-height: 1.3;
}

.app-doc-reader-text h2::after,
.app-doc-reader-text h3::after {
  content: "";
  display: block;

  width: 38px;
  height: 1px;

  margin-top: 9px;

  background:
    linear-gradient(
      90deg,
      var(--reading-gold),
      rgba(168,137,53,0)
    );
}

.app-doc-reader-text strong {
  color: #312817;
  font-weight: 700;
}

.app-doc-reader-text em {
  color: #5f5135;
}

.app-doc-reader-text ul,
.app-doc-reader-text ol {
  padding-left: 1.35em;
}

.app-doc-reader-text li {
  margin: .42em 0;
}

.app-doc-reader-text blockquote {
  margin: 1.4em 0;
  padding:
    12px
    16px;

  border-left:
    2px
    solid
    var(--app-fire-500);

  background:
    rgba(168,137,53,.055);

  color: #5a503d;
}

/* ----------------------------------------------------------
   SAVED BIRTH CHART — OPENING PLATE
   The existing renderer remains authoritative.
   ---------------------------------------------------------- */

.app-doc-reader .birth-wheel-figure {
  position: relative;

  width: min(100%, 590px) !important;
  margin:
    8px
    auto
    44px !important;

  padding:
    18px
    18px
    15px;

  border:
    1px
    solid
    rgba(168,137,53,.22);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255,253,247,.98) 0,
      rgba(248,242,228,.98) 62%,
      rgba(225,211,180,.72) 100%
    );

  box-shadow:
    0 22px 42px rgba(69,48,13,.14),
    0 4px 10px rgba(69,48,13,.08),
    0 0 0 7px rgba(168,137,53,.035);

  transform:
    translateZ(0)
    rotateX(0deg);

  transform-origin: 50% 50%;

  transition:
    transform 600ms var(--app-ease),
    box-shadow 600ms ease;
}

.app-doc-reader .birth-wheel-figure::before {
  content: "";
  position: absolute;

  inset: 3%;

  border-radius: 50%;

  border:
    1px
    solid
    rgba(217,104,53,.18);

  box-shadow:
    0 0 24px rgba(217,104,53,.07);

  pointer-events: none;
}

.app-doc-reader .birth-wheel {
  position: relative;
  z-index: 1;

  display: block;
  width: 100% !important;
  height: auto !important;
}

.app-doc-reader .birth-wheel-caption {
  position: relative;
  z-index: 2;

  margin:
    12px
    0
    0 !important;

  color: var(--reading-muted);

  font-family: var(--app-font-ui);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   READER CONTROLS
   ---------------------------------------------------------- */

.app-doc-reader > button.app-doc-reader-close {
  color: #6e5b30 !important;
}

.app-doc-reader > button.app-doc-reader-close:hover,
.app-doc-reader > button.app-doc-reader-close:focus-visible {
  color: var(--app-fire-600) !important;
}

.app-doc-reader-up {
  border-color: rgba(217,104,53,.38) !important;
}

.app-doc-reader-bottom-close {
  position: relative;
  z-index: 2;

  width: min(100%, 660px);
  min-height: 48px;

  margin:
    42px
    auto
    0 !important;

  border-color:
    rgba(168,137,53,.50) !important;

  box-shadow:
    0 8px 24px rgba(67,45,12,.08);
}

/* ----------------------------------------------------------
   DESKTOP — VERY SUBTLE BOOK DEPTH
   ---------------------------------------------------------- */

@media (hover:hover) and (pointer:fine) and (min-width:760px) {
  .app-doc-reader .birth-wheel-figure:hover {
    transform:
      translateY(-3px)
      rotateX(1.2deg)
      scale(1.006);

    box-shadow:
      0 28px 52px rgba(69,48,13,.17),
      0 6px 14px rgba(69,48,13,.09),
      0 0 0 7px rgba(217,104,53,.04);
  }
}

/* ----------------------------------------------------------
   PHONE — SINGLE PREMIUM READING PAGE
   ---------------------------------------------------------- */

@media (max-width:430px) {
  .app-doc-reader > h2 {
    margin-bottom: 24px;
    padding:
      0
      28px
      19px;

    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .app-doc-reader-text {
    font-size: .98rem;
    line-height: 1.72;
  }

  .app-doc-reader-text::before {
    right: -10px;
    left: -10px;
  }

  .app-doc-reader .birth-wheel-figure {
    width: calc(100% - 2px) !important;

    margin:
      5px
      auto
      34px !important;

    padding:
      10px
      10px
      12px;

    box-shadow:
      0 16px 32px rgba(69,48,13,.12),
      0 3px 8px rgba(69,48,13,.07),
      0 0 0 4px rgba(168,137,53,.025);
  }

  .app-doc-reader-bottom-close {
    margin-top: 34px !important;
  }
}

/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion:reduce) {
  .app-doc-reader .birth-wheel-figure {
    transition: none !important;
    transform: none !important;
  }

  .app-doc-reader .birth-wheel-figure:hover {
    transform: none !important;
  }
}
/* ASTRODU ROADMAP T6 — SIGNATURE COMPLETION MOMENT
   The reading does not merely stop loading: it arrives.

   Fire = breath / activation.
   Gold = knowledge / value.
   The animation runs only on genuine fresh completion.
   Restored documents and cached previews remain immediate. */

.app-preview-card {
  position: relative;
}

.app-reading-completion-moment {
  position: absolute;
  z-index: 60;
  inset: 0;

  display: grid;
  place-content: center;
  justify-items: center;

  min-height: min(520px, 72dvh);
  padding:
    max(30px, var(--app-safe-top))
    24px
    max(34px, var(--app-safe-bottom));

  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(
      circle at 50% 43%,
      rgba(217,104,53,.13) 0,
      rgba(200,168,75,.055) 25%,
      rgba(7,10,16,.96) 64%
    ),
    rgba(7,10,16,.97);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 320ms ease-out;
}

.app-reading-completion-moment.is-visible {
  opacity: 1;
}

.app-reading-completion-aura {
  position: absolute;
  z-index: -1;

  left: 50%;
  top: 46%;

  width: min(72vw, 340px);
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(233,133,69,.22) 0,
      rgba(217,104,53,.11) 31%,
      rgba(200,168,75,.045) 49%,
      transparent 70%
    );

  filter: blur(13px);

  opacity: 0;
  transform:
    translate(-50%,-50%)
    scale(.62);
}

.app-reading-completion-seal {
  position: relative;

  display: grid;
  place-items: center;

  width: 78px;
  height: 78px;

  margin-bottom: 24px;

  border:
    1px solid
    rgba(233,164,95,.60);

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(233,133,69,.18),
      rgba(217,104,53,.055) 52%,
      transparent 72%
    );

  box-shadow:
    0 0 0 7px rgba(217,104,53,.025),
    0 0 34px rgba(217,104,53,.14);

  opacity: 0;

  transform:
    scale(.68)
    rotate(-9deg);
}

.app-reading-completion-seal::before,
.app-reading-completion-seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.app-reading-completion-seal::before {
  inset: 8px;

  border:
    1px solid
    rgba(229,199,110,.34);
}

.app-reading-completion-seal::after {
  inset: -13px;

  border:
    1px solid
    rgba(217,104,53,.10);
}

.app-reading-completion-star {
  color: var(--app-fire-300);

  font-size: 30px;
  line-height: 1;

  text-shadow:
    0 0 13px rgba(233,133,69,.40),
    0 0 28px rgba(217,104,53,.18);
}

.app-reading-completion-brand {
  margin-bottom: 9px;

  color:
    rgba(229,199,110,.74);

  font-family:
    var(--app-font-ui);

  font-size: .6875rem;
  font-weight: 700;

  letter-spacing: .24em;
  text-indent: .24em;

  opacity: 0;

  transform:
    translateY(8px);
}

.app-reading-completion-title {
  max-width: 320px;

  color:
    var(--app-parchment-100, #faf6ec);

  font-family:
    var(--app-font-display);

  font-size:
    clamp(1.7rem, 7vw, 2.35rem);

  font-weight: 500;
  line-height: 1.08;

  letter-spacing: -.025em;
  text-align: center;

  opacity: 0;

  transform:
    translateY(12px);
}

.app-reading-completion-line {
  width: 0;
  height: 2px;

  margin-top: 20px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--app-fire-500) 24%,
      var(--app-fire-300) 50%,
      var(--app-gold-500) 78%,
      transparent
    );

  box-shadow:
    0 0 13px
    rgba(217,104,53,.20);
}

/* ----------------------------------------------------------
   ARRIVAL SEQUENCE
   ---------------------------------------------------------- */

.app-reading-completion-moment.is-visible
.app-reading-completion-aura {
  animation:
    app-reading-completion-aura
    1.55s
    var(--app-ease)
    both;
}

.app-reading-completion-moment.is-visible
.app-reading-completion-seal {
  animation:
    app-reading-completion-seal
    760ms
    var(--app-ease)
    80ms
    both;
}

.app-reading-completion-moment.is-visible
.app-reading-completion-brand {
  animation:
    app-reading-completion-copy
    460ms
    ease-out
    330ms
    both;
}

.app-reading-completion-moment.is-visible
.app-reading-completion-title {
  animation:
    app-reading-completion-copy
    560ms
    var(--app-ease)
    410ms
    both;
}

.app-reading-completion-moment.is-visible
.app-reading-completion-line {
  animation:
    app-reading-completion-line
    620ms
    var(--app-ease)
    520ms
    both;
}

.app-reading-completion-moment.is-settling {
  opacity: 0;

  transition:
    opacity 480ms ease-in;
}

/* Finished content enters after the completion seal clears. */

.app-preview-output.app-reading-arrived {
  animation:
    app-reading-arrived
    720ms
    var(--app-ease)
    both;
}

@keyframes app-reading-completion-aura {
  0% {
    opacity: 0;
    transform:
      translate(-50%,-50%)
      scale(.58);
  }

  48% {
    opacity: 1;
  }

  100% {
    opacity: .64;
    transform:
      translate(-50%,-50%)
      scale(1.08);
  }
}

@keyframes app-reading-completion-seal {
  0% {
    opacity: 0;
    transform:
      scale(.66)
      rotate(-9deg);
  }

  64% {
    opacity: 1;
    transform:
      scale(1.045)
      rotate(1deg);
  }

  100% {
    opacity: 1;
    transform:
      scale(1)
      rotate(0);
  }
}

@keyframes app-reading-completion-copy {
  from {
    opacity: 0;
    transform:
      translateY(12px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }
}

@keyframes app-reading-completion-line {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 86px;
    opacity: 1;
  }
}

@keyframes app-reading-arrived {
  from {
    opacity: .45;
    transform:
      translateY(10px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }
}

/* ----------------------------------------------------------
   PHONE
   ---------------------------------------------------------- */

@media (max-width: 430px) {
  .app-reading-completion-moment {
    min-height:
      min(480px, 68dvh);

    padding-inline: 20px;
  }

  .app-reading-completion-seal {
    width: 72px;
    height: 72px;
  }

  .app-reading-completion-title {
    max-width: 285px;
  }
}

/* ----------------------------------------------------------
   REDUCED MOTION
   The completion information remains accessible without ceremony.
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .app-reading-completion-moment,
  .app-reading-completion-aura,
  .app-reading-completion-seal,
  .app-reading-completion-brand,
  .app-reading-completion-title,
  .app-reading-completion-line,
  .app-preview-output.app-reading-arrived {
    animation: none !important;
    transition: none !important;
  }

  .app-reading-completion-moment {
    display: none !important;
  }

  .app-preview-output.app-reading-arrived {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ==========================================================
   ASTRODU ROADMAP V — WHOLE-APP SCREEN CONSISTENCY
   Final authenticated-app visual contract.

   This layer does not redesign individual experiences.
   It aligns the approved screens around one shared rhythm:
   gutters, headings, cards, actions, states and mobile craft.
   ========================================================== */

:root {
  /* --------------------------------------------------------
     V1 — SHARED APP GEOMETRY
     -------------------------------------------------------- */

  --app-screen-gutter: 18px;
  --app-screen-gutter-compact: 14px;
  --app-screen-gutter-wide: 28px;

  --app-section-gap: 20px;
  --app-section-gap-compact: 16px;

  --app-card-radius: var(--app-radius-md);
  --app-control-radius: var(--app-radius-sm);

  --app-touch-target: 44px;

  /* Dark-screen visual contract. */
  --app-screen-dark: var(--app-canvas);
  --app-screen-dark-surface: var(--app-surface-dark);
  --app-screen-dark-text: var(--app-ivory);
  --app-screen-dark-muted: #d7cdb8;
  --app-screen-dark-line: rgba(200,168,75,.24);

  /* Shared interactive focus language. */
  --app-focus-ring:
    0 0 0 3px var(--app-fire-faint);
}


/* ----------------------------------------------------------
   V2 — APP FRAME / SCREEN RHYTHM
   One horizontal rhythm across authenticated screens.
   ---------------------------------------------------------- */

.app-main {
  padding-left:
    calc(var(--app-safe-left) + var(--app-screen-gutter));
  padding-right:
    calc(var(--app-safe-right) + var(--app-screen-gutter));
}

.app-main > .app-screen,
.app-main > [data-app-screen] {
  width: 100%;
  min-width: 0;
}


/* ----------------------------------------------------------
   V3 — SCREEN OPENINGS
   Titles and summaries should feel related even when each
   screen retains its own identity.
   ---------------------------------------------------------- */

.app-main .app-screen-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: inherit;
  line-height: 1.12;
}

.app-main .app-screen-summary {
  margin-top: 0;
  line-height: 1.55;
}


/* ----------------------------------------------------------
   V4 — SHARED CARD CRAFT
   Preserve bespoke hero/calculator treatments. Standardise
   ordinary utility/content cards only.
   ---------------------------------------------------------- */

.app-main .app-empty-state,
.app-main .app-state,
.app-main .app-reading-entry {
  min-width: 0;
}

.app-main .app-empty-state {
  border-radius: var(--app-card-radius);
}

.app-main .app-reading-entry {
  border-radius: var(--app-card-radius);
}


/* ----------------------------------------------------------
   V5 — BUTTON / ACTION CONTRACT
   All standard app actions meet the same minimum touch size.
   Existing visual identities remain intact.
   ---------------------------------------------------------- */

.app-button,
.app-document-action,
.app-reading-entry button,
.app-sheet button {
  min-height: var(--app-touch-target);
}

.app-button,
.app-document-action {
  line-height: 1.2;
}

.app-button:focus-visible,
.app-document-action:focus-visible,
.app-reading-entry button:focus-visible,
.app-sheet button:focus-visible {
  outline: 2px solid var(--app-fire-400);
  outline-offset: 2px;
}


/* ----------------------------------------------------------
   V6 — FORM CONTROL CONSISTENCY
   ---------------------------------------------------------- */

.app-main input:not([type="checkbox"]):not([type="radio"]),
.app-main select,
.app-main textarea {
  min-height: var(--app-touch-target);
}

.app-main textarea {
  line-height: 1.5;
}

.app-main input:focus-visible,
.app-main select:focus-visible,
.app-main textarea:focus-visible {
  outline: 2px solid var(--app-fire-400);
  outline-offset: 1px;
  border-color: var(--app-fire-400);
  box-shadow: var(--app-focus-ring);
}


/* ----------------------------------------------------------
   V7 — SYSTEM STATES
   Loading, empty, error and locked states now share spacing
   and readable supporting-copy behaviour.
   ---------------------------------------------------------- */

.app-state,
.app-empty-state {
  line-height: 1.5;
}

.app-state-loading {
  min-height: var(--app-touch-target);
}

.app-empty-state p:last-child,
.app-state p:last-child {
  margin-bottom: 0;
}

.app-empty-state-sub {
  line-height: 1.5;
}


/* ----------------------------------------------------------
   V8 — DARK SCREEN CONTRACT
   Documents and Solution retain their personalities while
   sharing the same dark-screen text and border vocabulary.
   ---------------------------------------------------------- */

.app-documents-screen .app-empty-state,
.solution-readings .app-empty-state {
  color: var(--app-screen-dark-text);
  border-color: var(--app-screen-dark-line);
}

.app-documents-screen .app-empty-state-sub,
.solution-readings .app-empty-state-sub {
  color: var(--app-screen-dark-muted) !important;
}


/* ----------------------------------------------------------
   V9 — MODAL / READER CONTROL CONSISTENCY
   Preserve the dimensional reading volume and safe viewport.
   ---------------------------------------------------------- */

.app-doc-reader button {
  min-height: var(--app-touch-target);
}

.app-doc-reader-close,
.app-doc-reader-up,
.app-doc-reader-bottom-close {
  touch-action: manipulation;
}


/* ----------------------------------------------------------
   V10 — TOAST / FEEDBACK CONSISTENCY
   ---------------------------------------------------------- */

.app-toast {
  line-height: 1.5;
  overflow-wrap: anywhere;
}


/* ----------------------------------------------------------
   V11 — NARROW PHONE CONTRACT
   Preserve readable gutters rather than squeezing content.
   ---------------------------------------------------------- */

@media (max-width: 360px) {
  .app-main {
    padding-left:
      calc(var(--app-safe-left) + var(--app-screen-gutter-compact));
    padding-right:
      calc(var(--app-safe-right) + var(--app-screen-gutter-compact));
  }
}


/* ----------------------------------------------------------
   V12 — WIDE APP FRAME
   The 760px authenticated frame stays intentionally compact,
   but receives slightly more breathing room on larger screens.
   ---------------------------------------------------------- */

@media (min-width: 700px) {
  .app-main {
    padding-left:
      calc(var(--app-safe-left) + var(--app-screen-gutter-wide));
    padding-right:
      calc(var(--app-safe-right) + var(--app-screen-gutter-wide));
  }
}


/* ----------------------------------------------------------
   V13 — REDUCED MOTION
   Consistency must not reintroduce movement.
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .app-button,
  .app-document-action,
  .app-reading-entry,
  .app-empty-state,
  .app-state {
    scroll-behavior: auto;
  }
}

/* ==========================================================
   ASTRODU ROADMAP V — SOLUTION + ME CONSISTENCY FINAL
   Whole-app visual-system alignment only.
   Business logic, routes and account actions remain unchanged.
   ========================================================== */

/* ----------------------------------------------------------
   SOLUTION / SHOP
   Bring the screen into the same AstroDu app canvas, spacing,
   typography, interaction and Fire + Gold hierarchy.
   ---------------------------------------------------------- */

.app-solution-screen {
  background: var(--app-screen-dark);
  color: var(--app-screen-dark-text);
}

.solution-hero {
  min-height: 250px;
}

.solution-eyebrow {
  color: var(--app-gold-bright);
  font-size: var(--app-type-label);
}

.solution-hero h1 {
  color: var(--app-ivory);
}

.solution-hero-copy {
  color: var(--app-ivory-soft);
  font-size: var(--app-type-body);
  line-height: 1.6;
}

.solution-content {
  width: 100%;
  max-width: var(--ad-content);
  margin-inline: auto;
}

.solution-pillar {
  border-color: var(--app-screen-dark-line);
  border-radius: var(--app-radius-md);
  background:
    linear-gradient(
      155deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.012)
    );
}

.solution-pillar-icon {
  color: var(--app-gold-bright);
}

.solution-pillar strong {
  color: var(--app-gold-bright);
}

.solution-pillar p {
  color: var(--app-screen-dark-muted);
  font-size: var(--app-type-supporting);
}

.solution-readings h2 {
  color: var(--app-ivory);
}

.solution-readings-sub {
  color: var(--app-screen-dark-muted);
  font-size: var(--app-type-body);
  line-height: 1.6;
}

.solution-reading-card {
  border-color: var(--app-screen-dark-line);
  border-radius: var(--app-radius-md);
  background:
    linear-gradient(
      150deg,
      var(--app-surface-dark),
      var(--app-ink-950)
    );
  box-shadow: var(--app-shadow-dark-md);
  transition:
    transform var(--app-fast) var(--app-ease),
    border-color var(--app-fast) var(--app-ease),
    box-shadow var(--app-fast) var(--app-ease);
}

.solution-reading-copy strong {
  color: var(--app-ivory);
}

.solution-reading-copy small {
  color: var(--app-screen-dark-muted);
}

.solution-status.is-available {
  background: rgba(200,168,75,.14);
  color: var(--app-gold-bright);
}

.solution-action {
  border: 1px solid rgba(217,104,53,.28);
  background:
    linear-gradient(
      120deg,
      var(--app-gold-bright),
      var(--app-gold-500)
    );
  color: var(--app-ink-800);
  box-shadow:
    inset 0 1px rgba(255,255,255,.16),
    0 0 0 1px var(--app-fire-faint);
  transition:
    transform var(--app-fast) var(--app-ease),
    box-shadow var(--app-fast) var(--app-ease);
}

.solution-choice-card {
  border-color: var(--app-screen-dark-line);
  border-radius: var(--app-radius-md);
  background:
    linear-gradient(
      145deg,
      var(--app-surface-raised),
      var(--app-ink-950)
    );
}

.solution-choice-card strong {
  color: var(--app-gold-bright);
}

.solution-choice-card span {
  color: var(--app-screen-dark-muted);
}

.solution-choice-card b {
  color: var(--app-gold-bright);
}

.solution-secondary {
  border-top-color: var(--app-screen-dark-line);
}

.solution-readings .app-empty-state {
  color: var(--app-screen-dark-text);
  border: 1px solid var(--app-screen-dark-line);
  background:
    linear-gradient(
      150deg,
      var(--app-surface-dark),
      var(--app-ink-950)
    );
  box-shadow: none;
}

.solution-readings .app-empty-state p {
  color: var(--app-screen-dark-text);
}

.solution-readings .app-empty-state-sub {
  color: var(--app-screen-dark-muted) !important;
}

@media (hover: hover) and (pointer: fine) {
  .solution-reading-card:hover {
    transform: translateY(-2px);
    border-color: rgba(200,168,75,.44);
    box-shadow:
      var(--app-shadow-dark-md),
      0 0 0 1px var(--app-fire-faint);
  }

  .solution-action:hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px rgba(255,255,255,.18),
      0 0 0 1px var(--app-fire-soft);
  }
}


/* ----------------------------------------------------------
   ME / ACCOUNT
   Align account presentation with the current premium app
   without altering profile, edit, sign-out or delete logic.
   ---------------------------------------------------------- */

.app-me-screen {
  color: var(--app-text);
}

.app-me-screen .app-screen-body {
  width: 100%;
  max-width: var(--ad-content);
  margin-inline: auto;
}

.app-me-screen .app-me-card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-md);
  background: var(--app-cream-50);
  box-shadow: var(--app-shadow-sm);
}

.app-me-screen .app-me-avatar {
  width: 60px;
  height: 60px;
  border: 1px solid var(--app-fire-strong);
  background:
    radial-gradient(
      circle at 32% 24%,
      rgba(233,133,69,.16),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      var(--app-ink-900),
      var(--app-ink-800)
    );
  color: var(--app-gold-bright);
  box-shadow:
    0 0 0 3px var(--app-fire-faint),
    0 8px 24px rgba(0,0,0,.18);
}

.app-me-screen .app-me-row {
  min-height: 28px;
  align-items: center;
}

.app-me-screen .app-me-row span {
  color: var(--app-text-secondary);
}

.app-me-screen .app-me-row strong {
  color: var(--app-text);
}

.app-me-screen .app-button-primary,
.app-me-screen button[type="submit"] {
  box-shadow:
    inset 0 1px rgba(255,255,255,.12),
    0 0 0 1px var(--app-fire-faint);
}

.app-me-screen .app-me-signout {
  min-height: 50px;
}

@media (max-width: 359px) {
  .app-me-screen .app-me-card {
    padding: 17px;
  }

  .app-me-screen .app-me-row {
    gap: 8px;
  }
}


/* ----------------------------------------------------------
   CONSISTENT INTERACTION / MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .solution-reading-card,
  .solution-action,
  .solution-choice-card {
    transition: none;
    transform: none;
  }
}


/* ============================================================
   ASTRODU ME SCREEN TITLE PRESENTATION — 2026-09-24
   ============================================================ */

.app-me-screen-heading {
  margin: 0 0 28px;
}

.app-me-screen-heading h1 {
  margin: 0;
  font-family: var(--app-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(2.55rem, 9vw, 3.35rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--app-text, #f5efe0);
}

.app-me-screen-heading::after {
  content: "";
  display: block;
  width: min(132px, 38vw);
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--app-fire-500, #d96835) 0%,
    var(--app-fire-400, #e98545) 34%,
    rgba(233,133,69,.28) 68%,
    rgba(233,133,69,0) 100%
  );
}

@media (max-width: 430px) {
  .app-me-screen-heading {
    margin-bottom: 24px;
  }
}


/* Ask Iyanda document reader typography — 2026-09-25
   Presentation only. Saved answer content remains unchanged. */
.app-doc-reader .app-ask-iyanda-document {
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0;
  color: #29261f;
  overflow-wrap: break-word;
  word-break: normal;
}

.app-doc-reader .app-ask-iyanda-document p {
  margin: 0 0 1.15em;
}

.app-doc-reader .app-ask-iyanda-document h3 {
  margin: 1.9rem 0 .72rem;
  padding: 0 0 .55rem;
  border-bottom: 1px solid rgba(151, 112, 43, .22);
  color: #8d6323;
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.app-doc-reader .app-ask-iyanda-document h3:first-child {
  margin-top: 0;
}

.app-doc-reader .app-ask-iyanda-document h4 {
  margin: 1.35rem 0 .55rem;
  color: #332b20;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 750;
}

.app-doc-reader .app-ask-iyanda-document strong {
  color: #211d17;
  font-weight: 750;
}

.app-doc-reader .app-ask-iyanda-document ul {
  margin: .35rem 0 1.25rem;
  padding: 0;
  list-style: none;
}

.app-doc-reader .app-ask-iyanda-document li {
  position: relative;
  margin: 0 0 .72rem;
  padding-left: 1.35rem;
  line-height: 1.65;
}

.app-doc-reader .app-ask-iyanda-document li::before {
  content: "";
  position: absolute;
  left: .12rem;
  top: .72em;
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: #b47b36;
}

.app-doc-reader .app-ask-iyanda-document > :last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .app-doc-reader .app-ask-iyanda-document {
    font-size: 1rem;
    line-height: 1.7;
  }

  .app-doc-reader .app-ask-iyanda-document h3 {
    margin-top: 1.65rem;
    font-size: .8rem;
  }

  .app-doc-reader .app-ask-iyanda-document h4 {
    font-size: 1rem;
  }

  .app-doc-reader .app-ask-iyanda-document p {
    margin-bottom: 1.05em;
  }
}



/* AstroDu shared saved-reading document typography — 2026-09-25
   Used by the ordinary calculator reading families in Documents.
   Ask Iyanda retains its dedicated document treatment. */

.app-doc-reader .astrodu-reading-document {
  width: 100%;
  color: #29261f;
  font-size: 1rem;
  line-height: 1.72;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.app-doc-reader .astrodu-reading-document > :first-child {
  margin-top: 0;
}

.app-doc-reader .astrodu-reading-document > :last-child {
  margin-bottom: 0;
}

.app-doc-reader .astrodu-reading-paragraph {
  margin: 0 0 1.15em;
}

.app-doc-reader .astrodu-reading-heading {
  font-family: inherit;
}

.app-doc-reader .astrodu-reading-heading-major {
  margin: 2rem 0 .82rem;
  padding: 0 0 .62rem;
  border-bottom: 1px solid rgba(151, 112, 43, .22);
  color: #8d6323;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .035em;
}

.app-doc-reader .astrodu-reading-heading-minor {
  margin: 1.5rem 0 .58rem;
  color: #332b20;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 750;
}

.app-doc-reader .astrodu-reading-document strong {
  color: #211d17;
  font-weight: 750;
}

.app-doc-reader .astrodu-reading-document em {
  font-style: italic;
}

.app-doc-reader .astrodu-reading-lead {
  margin: .15rem 0 1.15rem;
  line-height: 1.68;
}

.app-doc-reader .astrodu-reading-list {
  margin: .35rem 0 1.3rem;
  padding-left: 1.35rem;
}

.app-doc-reader ul.astrodu-reading-list {
  list-style: none;
  padding-left: 0;
}

.app-doc-reader ul.astrodu-reading-list li {
  position: relative;
  margin: 0 0 .72rem;
  padding-left: 1.35rem;
  line-height: 1.65;
}

.app-doc-reader ul.astrodu-reading-list li::before {
  content: "";
  position: absolute;
  left: .12rem;
  top: .72em;
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: #b47b36;
}

.app-doc-reader ol.astrodu-reading-list {
  padding-left: 1.55rem;
}

.app-doc-reader ol.astrodu-reading-list li {
  margin: 0 0 .72rem;
  padding-left: .18rem;
  line-height: 1.65;
}

.app-doc-reader ol.astrodu-reading-list li::marker {
  color: #8d6323;
  font-weight: 750;
}

.app-doc-reader .astrodu-reading-document .reading-divider {
  height: 1px;
  margin: 1.8rem 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(151, 112, 43, .30),
    transparent
  );
}

@media (max-width: 600px) {
  .app-doc-reader .astrodu-reading-document {
    font-size: 1rem;
    line-height: 1.7;
  }

  .app-doc-reader .astrodu-reading-heading-major {
    margin-top: 1.75rem;
    font-size: 1.04rem;
  }

  .app-doc-reader .astrodu-reading-heading-minor {
    margin-top: 1.35rem;
    font-size: 1rem;
  }

  .app-doc-reader .astrodu-reading-paragraph {
    margin-bottom: 1.05em;
  }
}


/* AstroDu signature wordmark refinement — 2026-09-25
   Motion belongs to the identity itself; no enclosing orbit. */
.app-splash-orbit,
.app-splash-orbit-line,
.app-splash-orbit-point {
  display: none !important;
}

.app-splash-brand {
  overflow: visible;
}

/* ASTRO resolves first in restrained gold. */
.app-splash-astro {
  display: inline-block;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(4px);
  animation: app-splash-astro-resolve 1050ms 80ms cubic-bezier(.16,.82,.22,1) forwards;
}

/* DU follows just behind it, giving the two-tone identity a deliberate finish. */
.app-splash-du {
  display: inline-block;
  opacity: 0;
  filter: blur(2px);
  transform: translateY(3px);
  animation: app-splash-du-resolve 1050ms 80ms cubic-bezier(.16,.82,.22,1) forwards;
}

/* Cinematic convergence: after ASTRO and DU meet, the complete
   identity receives one restrained focus/impact pulse. */
.app-splash-brand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 190%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  background: radial-gradient(
    ellipse at center,
    rgba(216,187,104,.13) 0%,
    rgba(216,187,104,.045) 38%,
    transparent 72%
  );
  animation: app-splash-wordmark-lock 520ms 900ms ease-out both;
}

@keyframes app-splash-wordmark-lock {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.72);
  }
  38% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

/* Replace the detached sparkle with a restrained sweep across the wordmark. */
.app-splash-glint {
  top: 50%;
  left: -8%;
  right: auto;
  width: 18%;
  height: 140%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,248,220,0) 24%,
    rgba(255,248,220,.46) 50%,
    rgba(255,248,220,0) 76%,
    transparent 100%
  );
  filter: blur(1px);
  transform: translateY(-50%) skewX(-18deg);
  animation: app-splash-wordmark-sweep 620ms 1120ms cubic-bezier(.2,.72,.25,1) both;
}

.app-splash-glint::before,
.app-splash-glint::after {
  display: none;
}

@keyframes app-splash-astro-resolve {
  0% {
    opacity: 0;
    filter: blur(9px);
    transform: translateX(-72px) scaleX(1.08) scale(.94);
    text-shadow: 0 0 0 rgba(200,168,75,0);
  }

  18% {
    opacity: .32;
    filter: blur(6px);
  }

  64% {
    opacity: 1;
    filter: blur(.7px);
    transform: translateX(4px) scaleX(.985) scale(1.012);
    text-shadow: 0 0 18px rgba(200,168,75,.16);
  }

  78% {
    transform: translateX(-1px) scaleX(1.006) scale(.998);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scaleX(1) scale(1);
    text-shadow: 0 0 12px rgba(200,168,75,.12);
  }
}

@keyframes app-splash-du-resolve {
  0% {
    opacity: 0;
    filter: blur(9px);
    transform: translateX(72px) scaleX(1.08) scale(.94);
    text-shadow: 0 0 0 rgba(245,239,224,0);
  }

  18% {
    opacity: .32;
    filter: blur(6px);
  }

  64% {
    opacity: 1;
    filter: blur(.7px);
    transform: translateX(-4px) scaleX(.985) scale(1.012);
    text-shadow: 0 0 18px rgba(245,239,224,.13);
  }

  78% {
    transform: translateX(1px) scaleX(1.006) scale(.998);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scaleX(1) scale(1);
    text-shadow: 0 0 10px rgba(245,239,224,.08);
  }
}

@keyframes app-splash-wordmark-sweep {
  0% {
    left: -8%;
    opacity: 0;
  }
  18% {
    opacity: .7;
  }
  78% {
    opacity: .42;
  }
  100% {
    left: 92%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash-astro,
  .app-splash-du {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .app-splash-glint {
    display: none;
  }
}

/* ==========================================================
   KERYKEION RESTORATION — SAVED DOCUMENT CHART
   Kerykeion owns the complete chart-wheel presentation.
   Remove the retired AstroDu wheel plate behind the SVG.
   ========================================================== */

.app-doc-reader .birth-wheel-figure {
  position: relative !important;
  width: min(100%, 590px) !important;
  margin: 8px auto 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.app-doc-reader .birth-wheel-figure::before,
.app-doc-reader .birth-wheel-figure::after {
  content: none !important;
  display: none !important;
}

.app-doc-reader .birth-wheel {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (hover:hover) and (pointer:fine) and (min-width:760px) {
  .app-doc-reader .birth-wheel-figure:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

@media (max-width:430px) {
  .app-doc-reader .birth-wheel-figure {
    width: 100% !important;
    margin: 5px auto 34px !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}


/* ==========================================================
   SAVED READING — FINAL DOCUMENT TYPOGRAPHY
   Shared formatter output only. Kerykeion wheel is untouched.
   ========================================================== */

.app-doc-reader .astrodu-reading-document {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  color: #29261f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.76;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.app-doc-reader .astrodu-reading-document > :first-child {
  margin-top: 0;
}

.app-doc-reader .astrodu-reading-document > :last-child {
  margin-bottom: 0;
}

.app-doc-reader .astrodu-reading-paragraph {
  margin: 0 0 1.15em;
}

.app-doc-reader .astrodu-reading-heading {
  font-family: var(--app-font-editorial);
  text-wrap: balance;
}

.app-doc-reader .astrodu-reading-heading-major {
  margin: 2.15rem 0 .82rem;
  padding: 0 0 .58rem;
  border-bottom: 1px solid rgba(128,103,36,.24);
  color: var(--app-gold-700);
  font-size: clamp(1.55rem, 4.5vw, 1.95rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
}

.app-doc-reader .astrodu-reading-heading-minor {
  margin: 1.7rem 0 .62rem;
  padding: 0;
  border: 0;
  color: #332b20;
  font-size: clamp(1.22rem, 3.8vw, 1.42rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}

.app-doc-reader .astrodu-reading-lead {
  margin: .15rem 0 1.15rem;
  font-size: 1.0625rem;
  line-height: 1.72;
}

.app-doc-reader .astrodu-reading-document strong {
  color: #211d17;
  font-weight: 700;
}

.app-doc-reader .astrodu-reading-list {
  margin: .35rem 0 1.35rem;
}

.app-doc-reader ul.astrodu-reading-list {
  list-style: none;
  padding-left: 0;
}

.app-doc-reader ul.astrodu-reading-list li {
  position: relative;
  margin: 0 0 .72rem;
  padding-left: 1.35rem;
  line-height: 1.68;
}

.app-doc-reader ul.astrodu-reading-list li::before {
  content: "";
  position: absolute;
  left: .12rem;
  top: .72em;
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: #b47b36;
}

.app-doc-reader ol.astrodu-reading-list {
  padding-left: 1.55rem;
}

.app-doc-reader ol.astrodu-reading-list li {
  margin: 0 0 .72rem;
  padding-left: .18rem;
  line-height: 1.68;
}

.app-doc-reader ol.astrodu-reading-list li::marker {
  color: #8d6323;
  font-weight: 700;
}

.app-doc-reader .astrodu-reading-document .reading-divider {
  height: 1px;
  margin: 1.9rem 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(128,103,36,.30),
    transparent
  );
}

@media (max-width: 600px) {
  .app-doc-reader .astrodu-reading-document {
    font-size: 1.0625rem;
    line-height: 1.72;
  }

  .app-doc-reader .astrodu-reading-heading-major {
    margin-top: 1.9rem;
    font-size: clamp(1.48rem, 6.2vw, 1.72rem);
  }

  .app-doc-reader .astrodu-reading-heading-minor {
    margin-top: 1.5rem;
    font-size: clamp(1.18rem, 5vw, 1.34rem);
  }
}
