:root {
  --cream: #F8F4EE;
  --cream-dark: #EDE7DC;
  --ink: #1C1917;
  --ink-mid: #44403C;
  --ink-muted: #78716C;
  --ink-faint: #A8A29E;
  --border: rgba(28, 25, 23, 0.12);
  --border-mid: rgba(28, 25, 23, 0.22);
  --accent: #8B6F4E;
  --accent-light: #C4A882;
  --accent-dark: #6E5A3F;
  --accent-rgb: 139, 111, 78;
  --max-w: 720px;
  --app-page-max-w: 1080px;
  --readings-max-w: var(--app-page-max-w);
  --section-gap: 5rem;
  --font-body: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Legacy aliases used across app templates and components */
  --void: var(--cream);
  --deep: var(--cream-dark);
  --surface: var(--cream);
  --panel: #fff;
  --card: var(--cream-dark);
  --text: var(--ink);
  --muted: var(--ink-muted);
  --faint: var(--ink-faint);
  --accent2: var(--accent-light);
  --wound: #a03030;
  --heal: #2a6090;
  --gold: var(--accent);
  --gold-dim: var(--accent-light);
}

html { scroll-behavior: smooth; }

h1,.card-title,label,.btn,.app-nav,.subtitle,.site-strapline,.lede,.option-group-title,.wizard-step,
.diving-deeper-card-action,.deep-dives-filter,.calc-method-lead,.rname,#profile-output h2,#profile-output h3,
.people-search-label,.past-record-title-line,.diving-deeper-title,.flash__label,.planet-name{font-family:var(--font-display)}

/* FLASH MESSAGES */
.flash-messages{position:relative;z-index:2;max-width:var(--max-w);margin:0 auto;padding:20px 2rem 0}
.flash{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;margin-bottom:12px;border:1px solid;border-radius:3px;
  box-shadow:0 3px 14px rgba(42,34,24,.08);animation:fadeDown .45s ease both;font-family:var(--font-body);
  opacity:1;transition:opacity .45s ease}
.flash--fading{opacity:0;pointer-events:none}
.flash--hidden{display:none}
.flash__icon{flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  font-size:1rem;font-weight:700;border-radius:50%;line-height:1;margin-top:1px}
.flash__content{flex:1;min-width:0}
.flash__label{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;font-variant:small-caps;
  font-weight:700;margin-bottom:4px}
.flash__message{font-size:.95rem;line-height:1.55;margin:0}
.flash__dismiss{flex-shrink:0;background:transparent;border:none;color:inherit;opacity:.55;cursor:pointer;
  font-size:1.35rem;line-height:1;padding:0 2px;margin:-2px 0 0 4px;transition:opacity .2s}
.flash__dismiss:hover{opacity:1}
.flash--success{background:#edf6f0;border-color:#8eb89a;color:#1f4d32}
.flash--success .flash__icon{background:#d4eadb;color:#1f4d32}
.flash--success .flash__label{color:#2d6b44}
.flash--error{background:#faf0ee;border-color:#d49a92;color:#6b2218}
.flash--error .flash__icon{background:#f0d5d0;color:#8c2a20}
.flash--error .flash__label{color:var(--wound)}
.flash--warning{background:#faf6e8;border-color:#d4c48a;color:#5c4a12}
.flash--warning .flash__icon{background:#f0e6c4;color:#7a5f10}
.flash--warning .flash__label{color:#7a5f10}
.flash--info{background:#eef3f8;border-color:#9ab4cc;color:#1e3f5c}
.flash--info .flash__icon{background:#d6e4f0;color:#2a6090}
.flash--info .flash__label{color:var(--heal)}

*{box-sizing:border-box;margin:0;padding:0}
body{
  background-color:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.85;
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  padding-top:4.5rem;
}
.wrap{position:relative;z-index:1;max-width:var(--max-w);margin:0 auto;padding:48px 2rem 100px}

/* NAV */
.app-nav{
  position:fixed;top:0;left:0;right:0;z-index:100;display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:1rem;padding:1.25rem 2rem;font-family:var(--font-body);font-size:13px;letter-spacing:.04em;
  background:rgba(248,244,238,.88);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border-bottom:.5px solid var(--border)
}
.app-nav-logo{
  font-family:var(--font-display);font-size:18px;font-weight:400;letter-spacing:.04em;color:var(--ink);
  text-decoration:none;flex-shrink:0
}
.app-nav-links{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 2rem}
.app-nav a{color:var(--ink-muted);text-decoration:none;border-bottom:none;transition:color .2s,background .2s}
.app-nav a:hover{color:var(--ink);border-bottom-color:transparent}
.app-nav-cta{
  color:var(--ink)!important;border:.5px solid var(--border-mid);padding:8px 20px;border-radius:100px
}
.app-nav-cta:hover{background:var(--ink)!important;color:var(--cream)!important}
.app-nav-dropdown{position:relative}
.app-nav-dropdown__trigger{
  display:inline-flex;align-items:center;gap:.35rem;padding:0;border:none;background:none;
  font:inherit;font-family:inherit;font-size:inherit;letter-spacing:inherit;color:var(--ink-muted);
  cursor:pointer;transition:color .2s
}
.app-nav-dropdown__trigger:hover,.app-nav-dropdown.is-open .app-nav-dropdown__trigger{color:var(--ink)}
.app-nav-dropdown__caret{font-size:.75em;line-height:1;transition:transform .2s ease}
.app-nav-dropdown.is-open .app-nav-dropdown__caret{transform:rotate(180deg)}
.app-nav-dropdown__menu{
  position:absolute;top:calc(100% + 12px);right:0;min-width:180px;padding:8px 0;
  background:var(--panel);border:1px solid var(--border);border-radius:6px;
  box-shadow:0 8px 24px rgba(42,34,24,.12);z-index:120
}
.app-nav-dropdown__menu[hidden]{display:none}
.app-nav-dropdown__menu a{
  display:block;padding:10px 18px;color:var(--ink-muted);white-space:nowrap;
  font-size:13px;letter-spacing:.04em
}
.app-nav-dropdown__menu a:hover{background:rgba(var(--accent-rgb),.06);color:var(--ink)}

/* HEADER */
header{text-align:center;margin-bottom:56px;animation:fadeUp .9s ease both}
.sym{font-size:56px;color:var(--accent-light);display:block;margin-bottom:14px;letter-spacing:.4em}
h1{
  font-family:var(--font-display);font-size:clamp(1.75rem,4vw,2.4rem);font-weight:400;font-style:italic;
  line-height:1.25;color:var(--ink);letter-spacing:.02em;margin-bottom:6px;font-variant:normal
}
.subtitle{color:var(--ink-mid);font-style:normal;font-size:17px;letter-spacing:.04em;font-weight:400;line-height:1.8}
.site-strapline{max-width:42rem;margin-left:auto;margin-right:auto;line-height:1.8;letter-spacing:.04em;color:var(--ink-mid);font-size:17px}
.hline{display:flex;align-items:center;gap:10px;margin:18px auto;max-width:300px}
.hline::before,.hline::after{content:'';flex:1;height:.5px;background:var(--border)}
.hline span{color:var(--accent-light);font-size:1rem;letter-spacing:.4em}
.lede{color:var(--ink-mid);font-style:normal;font-size:16px;line-height:1.9;max-width:580px;margin:0 auto}

/* Portal, readings, report package — compact page headers */
/* App interior pages — default wide layout (readings, analytics, report package, portal, etc.) */
.wrap.portal-page,
.wrap.app-subpage,
#report-package-app{max-width:var(--app-page-max-w)}
.wrap.portal-page,
.wrap.app-subpage,
#report-package-app{padding-top:12px}
.wrap.portal-page header .sym,
.wrap.app-subpage header .sym,
#report-package-app header .sym{margin-bottom:7px}
.wrap.portal-page header .hline,
.wrap.portal-page header .site-strapline,
.wrap.app-subpage header .hline,
.wrap.app-subpage header .site-strapline,
#report-package-app header .hline,
#report-package-app header .site-strapline{display:none}
.wrap.portal-page header .lede,
.wrap.portal-page header .subtitle,
.wrap.app-subpage header .lede,
.wrap.app-subpage header .subtitle,
#report-package-app header .lede{font-size:19px}

/* CARDS */
.card{
  background:var(--panel);border:.5px solid var(--border);border-radius:12px;padding:32px 36px;margin-bottom:24px;
  position:relative;overflow:hidden;animation:fadeUp .75s ease both;box-shadow:none
}
.card::before{display:none}
.card-title{
  font-family:var(--font-display);font-size:12px;letter-spacing:.22em;color:var(--accent);
  text-transform:uppercase;margin-bottom:22px;font-variant:normal;font-weight:400
}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.g3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
@media(max-width:580px){.g2,.g3{grid-template-columns:1fr}.card{padding:22px 18px}}
.field{display:flex;flex-direction:column;gap:6px}
label{font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);font-family:var(--font-display);font-variant:normal;font-weight:400}
input,select,textarea{background:var(--cream);border:.5px solid var(--border);color:var(--ink);
  font-family:var(--font-body);font-size:1rem;padding:9px 13px;outline:none;
  transition:border-color .2s,box-shadow .2s;width:100%;-webkit-appearance:none;border-radius:4px}
input:focus,select:focus,textarea:focus{border-color:var(--border-mid);box-shadow:none}
textarea{resize:vertical;min-height:72px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.option-group{margin-bottom:24px}
.option-group:last-child{margin-bottom:0}
.option-group-title{font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);font-variant:normal;margin-bottom:12px}
.option-cards,.tone-options{display:flex;flex-direction:column;gap:10px}

.option-card{display:flex;align-items:flex-start;gap:14px;width:100%;padding:14px 16px;text-align:left;
  background:var(--cream-dark);border:.5px solid var(--border);color:var(--ink);cursor:pointer;
  font-family:var(--font-body);font-size:.95rem;transition:border-color .2s,background .2s,box-shadow .2s;border-radius:12px}
.option-card:hover{border-color:var(--border-mid);background:var(--cream-dark)}
.option-card.is-selected{border-color:var(--accent);background:var(--cream);box-shadow:none}
.option-card:focus{outline:none;border-color:var(--accent);box-shadow:none}
.option-card-body{display:flex;flex-direction:column;gap:4px;flex:1}
.option-card-body strong{color:var(--ink);font-weight:700;font-size:1rem}
.option-card-desc{font-size:14px;color:var(--ink-muted);font-style:normal;line-height:1.7}
.option-card-check{width:20px;height:20px;flex-shrink:0;margin-top:2px;border:2px solid var(--border);border-radius:3px;
  background:var(--panel);position:relative;transition:border-color .2s,background .2s}
.option-card.is-selected .option-card-check{border-color:var(--accent);background:var(--accent)}
.option-card.is-selected .option-card-check::after{content:'';position:absolute;left:5px;top:1px;width:5px;height:10px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.option-cards .option-card.is-selected .option-card-check,
.tone-options .option-card.is-selected .option-card-check{border-radius:50%}
.option-cards .option-card.is-selected .option-card-check::after,
.tone-options .option-card.is-selected .option-card-check::after{left:4px;top:4px;width:8px;height:8px;border:none;border-radius:50%;background:#fff;transform:none}

/* READINGS LIST */
.readings-list{list-style:none;margin:0;padding:0}
.reading-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid var(--border)}
.reading-item:last-child{border-bottom:none}
.reading-item-main{display:flex;flex-direction:column;gap:6px;flex:1;min-width:200px}
.reading-item-date{font-size:.82rem;color:var(--faint);letter-spacing:.04em}
.reading-params{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.reading-meta,.reading-chiron{font-size:.9rem;color:var(--muted);font-style:italic}
.reading-tag{display:inline-block;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;padding:3px 8px;border:1px solid var(--border);color:var(--muted);margin-right:0}
.reading-tag--deep{border-color:var(--heal);color:var(--heal)}
.reading-status{font-size:.8rem;color:var(--heal)}
.reading-item-actions{flex-shrink:0;display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* DIVING DEEPER */
.diving-deeper-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin-top:8px}
.pkg-topic-card{cursor:pointer;position:relative}
.pkg-topic-card:has(.pkg-topic-check:checked){border-color:var(--gold);box-shadow:0 0 0 1px var(--gold-dim)}
.pkg-progress-track{margin-top:14px;height:10px;border-radius:6px;background:rgba(var(--accent-rgb),.15);overflow:hidden}
.pkg-progress-fill{height:100%;border-radius:6px;background:linear-gradient(90deg,var(--gold-dim),var(--gold));transition:width .35s ease}
.pkg-progress-percent{text-align:center;margin-top:8px;font-size:.95em;color:var(--gold)}
.diving-deeper-card-wrap{display:flex;flex-direction:column;gap:8px}
.diving-deeper-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.diving-deeper-card-pdf{width:auto!important;padding:8px 16px!important;margin:0!important;font-size:.82rem;text-align:center;text-decoration:none;display:inline-block}
.diving-deeper-card-delete{width:auto!important;padding:8px 16px!important;margin:0!important;font-size:.82rem}
.delete-diving-deeper-form{display:inline-block;margin:0}
.diving-deeper-card{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border:1px solid var(--border);border-radius:6px;background:var(--card);color:inherit;text-decoration:none;transition:border-color .15s,background .15s}
.diving-deeper-card:hover{border-color:var(--accent);background:rgba(var(--accent-rgb),.06)}
.diving-deeper-card.has-content{border-color:var(--heal)}
.diving-deeper-card--hub{cursor:default}
.diving-deeper-card--hub:hover{border-color:var(--heal);background:var(--card)}
.diving-deeper-saved-actions{margin-top:8px;padding-top:12px;border-top:1px solid var(--border)}
.diving-deeper-saved-meta{margin:0 0 10px;font-size:.78rem}
.diving-deeper-saved-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}
.diving-deeper-card-action-form{display:block;margin:0;min-width:0}
.diving-deeper-card-action-form .diving-deeper-card-action{width:100%}
.diving-deeper-card-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:58px;padding:8px 6px;margin:0;
  border:1px solid var(--border);border-radius:4px;background:var(--surface);font-family:var(--font-display);font-size:.68rem;letter-spacing:.08em;
  text-transform:uppercase;font-variant:small-caps;text-decoration:none;color:var(--text);cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.diving-deeper-card-action:hover{border-color:var(--accent);background:rgba(var(--accent-rgb),.08);color:var(--accent)}
.diving-deeper-card--hub>.diving-deeper-saved-buttons{margin-top:8px;padding-top:12px;border-top:1px solid var(--border)}
.diving-deeper-saved-buttons--single{grid-template-columns:1fr}
.chiron-lucide-icon,svg.chiron-lucide-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--accent)}
.chiron-lucide-icon svg,svg.chiron-lucide-icon{width:100%;height:100%;stroke:currentColor;fill:none}
.diving-deeper-card-action-icon{color:var(--accent)}
.diving-deeper-card-action-label{font-size:.68rem;line-height:1.2;color:var(--muted)}
.diving-deeper-card-action--generate .diving-deeper-card-action-icon{color:var(--heal)}
.diving-deeper-card-action--generate:hover{border-color:var(--heal);background:rgba(90,122,90,.1);color:var(--heal)}
.diving-deeper-card-action--generate:hover .diving-deeper-card-action-label{color:var(--heal)}
.diving-deeper-card-action--delete .diving-deeper-card-action-icon{color:var(--wound)}
.diving-deeper-card-action--delete:hover{border-color:var(--wound);background:rgba(139,58,58,.08);color:var(--wound)}
.diving-deeper-card-action--delete:hover .diving-deeper-card-action-label{color:var(--wound)}
.diving-deeper-share-status{margin:8px 0 0;font-size:.78rem;color:var(--heal)}
.diving-deeper-icon{font-size:1.4rem;color:var(--accent);line-height:1}
.diving-deeper-title{font-size:1.05rem;font-variant:small-caps;letter-spacing:.06em;color:var(--text)}
.diving-deeper-tagline{font-size:.82rem;line-height:1.5;color:var(--muted);flex:1}
.diving-deeper-badge{font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--heal);margin-top:4px}
.diving-deeper-badge--new{color:var(--accent)}
.diving-deeper-topic-page .diving-deeper-result{margin-top:0}
.diving-deeper-topic-page--view .diving-deeper-result{margin-top:8px}
.diving-deeper-view-meta{margin:0 0 16px;font-size:.85rem;color:var(--muted)}
.diving-deeper-topic-page #diving-deeper-output h2{font-size:1.15rem;color:var(--accent);margin:2em 0 .75em;padding-bottom:.4em;border-bottom:1px solid var(--border);font-variant:small-caps;letter-spacing:.06em}
.diving-deeper-topic-page #diving-deeper-output h2:first-child{margin-top:0}
.diving-deeper-topic-page #diving-deeper-output h3{font-size:.95rem;color:var(--heal);margin:1.4em 0 .5em}
.diving-deeper-topic-page #diving-deeper-output .deep-dive-key-themes .deep-dive-key-theme-card__label{font-size:clamp(1.85rem,5vw,2.65rem);font-weight:600;line-height:1.08;font-variant:small-caps;letter-spacing:.04em;color:var(--ink);margin:0;font-family:var(--font-display)}
.diving-deeper-topic-page #diving-deeper-output .deep-dive-key-themes .deep-dive-key-theme-card__summary{font-family:var(--font-display);font-size:clamp(1.2rem,3.2vw,1.55rem);font-style:italic;font-weight:400;line-height:1.55;color:var(--ink-mid)}
.diving-deeper-topic-page #diving-deeper-output p{margin:0 0 1em;line-height:1.7}
.diving-deeper-topic-page #diving-deeper-output ul{margin:0 0 1.2em 1.25em;padding:0;line-height:1.7;list-style:disc}
.diving-deeper-topic-page #diving-deeper-output li{margin:0 0 .7em}
.diving-deeper-topic-page #diving-deeper-output li strong{color:var(--accent)}
.deep-dive-key-themes{margin:0 0 2em}
.deep-dive-key-themes>h2{font-size:1.15rem;color:var(--accent);margin:0 0 1em;padding-bottom:.4em;border-bottom:1px solid var(--border);font-variant:small-caps;letter-spacing:.06em}
.deep-dive-key-themes-carousel{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:12px 10px;align-items:center;margin:0}
.deep-dive-key-themes-carousel:focus{outline:none}
.deep-dive-key-themes-viewport{grid-column:2;grid-row:1;overflow:hidden;border-radius:12px}
.deep-dive-key-themes-track{display:flex;transition:transform .35s ease;will-change:transform}
.deep-dive-key-themes-nav{display:flex;align-items:center;justify-content:center;width:56px;height:56px;padding:0;border:3px solid var(--accent);border-radius:999px;background:rgba(var(--accent-rgb),.14);color:var(--accent-dark);font-size:2.38rem;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 4px 18px rgba(var(--accent-rgb),.18);transition:border-color .15s,background .15s,color .15s,opacity .15s,transform .15s,box-shadow .15s}
.deep-dive-key-themes-nav span{display:block;margin-top:-0.12em}
.deep-dive-key-themes-nav--prev{grid-column:1;grid-row:1}
.deep-dive-key-themes-nav--next{grid-column:3;grid-row:1}
.deep-dive-key-themes-nav:hover:not(:disabled){border-color:var(--accent-dark);background:rgba(var(--accent-rgb),.24);color:var(--ink);transform:scale(1.04);box-shadow:0 6px 22px rgba(var(--accent-rgb),.24)}
.deep-dive-key-themes-nav:disabled{opacity:.28;cursor:not-allowed;box-shadow:none}
.deep-dive-key-themes-counter{grid-column:1/-1;grid-row:2;margin:0;text-align:center;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.deep-dive-key-themes-counter__current{color:var(--accent);font-weight:700}
.deep-dive-key-themes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin:0}
.deep-dive-key-theme-card{box-sizing:border-box;display:flex;flex:0 0 100%;flex-direction:column;align-items:center;gap:18px;width:100%;min-height:360px;padding:22px 24px 26px;margin:0;border:1px solid var(--border);border-radius:12px;background:var(--card);color:inherit;text-align:center;line-height:1.5}
.deep-dive-key-theme-card.is-active{box-shadow:0 8px 24px rgba(var(--accent-rgb),.12)}
.deep-dive-key-theme-card--static{flex:none;min-height:0;text-align:left;align-items:flex-start}
.deep-dive-key-theme-card__visual{width:100%;max-width:300px;aspect-ratio:16/10;border-radius:10px;overflow:visible;background:transparent;border:none}
.deep-dive-key-theme-card__image{display:block;width:100%;height:100%;object-fit:contain}
.deep-dive-key-theme-card__label{margin:0;font-family:var(--font-display);font-size:clamp(1.85rem,5vw,2.65rem);font-weight:600;line-height:1.08;font-variant:small-caps;letter-spacing:.04em;color:var(--ink)}
.deep-dive-key-theme-card__summary{margin:0;max-width:34rem;font-family:var(--font-display);font-size:clamp(1.2rem,3.2vw,1.55rem);font-style:italic;font-weight:400;line-height:1.55;color:var(--ink-mid)}
.deep-dive-key-theme-card__explore{margin-top:auto;padding:10px 22px;border:1px solid var(--accent);border-radius:999px;background:transparent;color:var(--accent);font:inherit;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.deep-dive-key-theme-card__explore:hover{background:rgba(var(--accent-rgb),.1)}
.deep-dive-key-theme-card__close-explore{margin-top:auto;padding:10px 22px;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--muted);font:inherit;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.deep-dive-key-theme-card.is-exploring{min-height:420px;align-items:stretch;text-align:left}
.deep-dive-key-theme-card.is-exploring .deep-dive-key-theme-card__visual{align-self:center}
.deep-dive-key-theme-card.is-exploring .deep-dive-key-theme-card__label{text-align:center;width:100%}
.deep-dive-key-theme-card.is-exploring .deep-dive-key-theme-card__summary{display:none}
.deep-dive-key-theme-card__excerpts{width:100%;margin-top:4px;text-align:left}
.deep-dive-key-theme-card__excerpts[hidden]{display:none!important}
.deep-dive-report-reveal,.profile-reveal{margin:1.5em 0 0;text-align:center}
.deep-dive-report-reveal__toggle,.profile-reveal__toggle{width:auto;padding:12px 28px;margin:0 auto}
.deep-dive-report-body[hidden],.profile-reveal__body[hidden],.deep-dive-feedback-wrap[hidden]{display:none!important}
.deep-dive-report-body--sectioned{margin-top:.5em}
.deep-dive-report-section{margin:0 0 2em;padding:0}
.deep-dive-report-section[hidden]{display:none!important}
.deep-dive-report-section__next{display:inline-block;width:auto;margin:1.75em 0 0;padding:12px 28px;text-align:center;cursor:pointer}
.deep-dive-report-section__next::after{content:' →';opacity:.75}
.profile-reveal__body{margin-top:1.25em}
.deep-dive-key-theme-card__excerpts-title{margin:0 0 8px;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--heal);text-align:left}
.diving-deeper-topic-page #diving-deeper-output .deep-dive-section-heading{scroll-margin-top:1.5rem}
.deep-dive-key-theme-card__section-refs{margin:0;padding:0;list-style:none}
.deep-dive-key-theme-card__section-refs li{margin:0 0 1em;padding:0 0 1em;border-bottom:1px solid rgba(28,25,23,.08)}
.deep-dive-key-theme-card__section-refs li:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}
.deep-dive-key-theme-card__section-link{display:inline-block;margin:0 0 .45em;font-family:var(--font-display);font-size:1rem;font-variant:small-caps;letter-spacing:.04em;color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(var(--accent-rgb),.35)}
.deep-dive-key-theme-card__section-link:hover{color:var(--accent-dark);border-bottom-color:var(--accent-dark)}
.deep-dive-key-theme-card__section-excerpt{margin:0;font-size:.9rem;line-height:1.65;color:var(--text)}
.deep-dive-key-theme-card__excerpts ul.deep-dive-key-theme-card__section-refs{padding-left:0}
.deep-dive-key-theme-card__excerpts li{margin:0 0 .65em;font-size:.88rem;line-height:1.6;color:var(--text)}
.deep-dive-key-theme-card__excerpts-empty{margin:0;font-size:.86rem;line-height:1.6;color:var(--muted);font-style:italic;text-align:left}
.deep-dive-key-theme-card--shade-0{background:rgba(139,111,78,.12);border-color:rgba(139,111,78,.28)}
.deep-dive-key-theme-card--shade-1{background:rgba(42,96,144,.1);border-color:rgba(42,96,144,.24)}
.deep-dive-key-theme-card--shade-2{background:rgba(160,48,48,.08);border-color:rgba(160,48,48,.22)}
.deep-dive-key-theme-card--shade-3{background:rgba(196,168,130,.22);border-color:rgba(139,111,78,.24)}
.deep-dive-key-theme-card--shade-4{background:rgba(90,74,138,.1);border-color:rgba(90,74,138,.22)}
.deep-dive-key-theme-card--shade-5{background:rgba(42,96,144,.16);border-color:rgba(42,96,144,.28)}
.deep-dive-key-theme-card--shade-6{background:rgba(139,111,78,.18);border-color:rgba(110,90,63,.26)}
.deep-dive-key-theme-card--shade-7{background:rgba(160,48,48,.12);border-color:rgba(160,48,48,.26)}
@media (max-width:640px){
  .deep-dive-key-themes-carousel{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:10px}
  .deep-dive-key-themes-viewport{grid-column:1/-1;grid-row:1}
  .deep-dive-key-themes-nav--prev{grid-column:1;grid-row:2;width:100%;height:45px;border-radius:10px;font-size:1.93rem;border-width:3px}
  .deep-dive-key-themes-nav--next{grid-column:2;grid-row:2;width:100%;height:45px;border-radius:10px;font-size:1.93rem;border-width:3px;margin-top:0}
  .deep-dive-key-themes-counter{grid-column:1/-1;grid-row:3}
}
.diving-deeper-options-panel.is-hidden{display:none!important}
.diving-deeper-params-summary{margin-bottom:20px}
.diving-deeper-params-summary .reading-params-v2{margin:10px 0 0}
.diving-deeper-params-topic{margin:0 0 8px}
.diving-deeper-params-extra{margin:8px 0 0;font-size:.85rem}
.diving-deeper-params-actions{margin-top:14px}
.diving-deeper-options-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.diving-deeper-topic-notes{width:100%;min-height:96px;resize:vertical;margin-top:8px}
.diving-deeper-params-notes{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.diving-deeper-params-notes-label{display:block;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
.diving-deeper-params-notes p{margin:0;font-size:.9rem;line-height:1.6}
.diving-deeper-source-cards .option-card.is-disabled{opacity:.5;cursor:not-allowed;pointer-events:none}

/* HEALING PATH */
.healing-path-cta{margin-top:28px}
.healing-path-section{margin-top:28px}
.healing-path-card{margin-top:0}
.healing-path-7day{margin-top:8px}
.healing-path-intro{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.healing-day-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.healing-day-tab{font-family:inherit;font-size:.82rem;padding:8px 14px;border:1px solid var(--border);border-radius:4px;background:var(--card);color:var(--muted);cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.healing-day-tab:hover{color:var(--text);border-color:var(--accent)}
.healing-day-tab.is-active{background:var(--accent);color:#fff;border-color:var(--accent)}
.healing-day-panel{display:none}
.healing-day-panel.is-active{display:block}
.healing-day-pdf-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.healing-day-pdf-link{width:auto!important;padding:10px 16px!important;margin:0!important;font-size:.85rem}
.workbook-export-note{margin:0 0 8px}
.healing-path-pdf-days{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.healing-path-program-page .healing-program-nav{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.healing-program-intro{margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.healing-program-overview{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:20px}
.healing-program-day-card{margin:0;padding:22px 24px;border:1px solid var(--border);border-radius:6px;background:var(--card)}
.healing-program-day-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px 16px;margin-bottom:10px}
.healing-program-day-num{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:600}
.healing-program-day-title{margin:0;font-size:1.1rem;color:var(--text);font-variant:small-caps;letter-spacing:.04em}
.healing-program-intention{margin:0 0 16px;line-height:1.65;color:var(--text)}
.healing-program-day-actions{display:flex;flex-wrap:wrap;gap:10px}
.healing-program-pdf-link,.healing-program-practice-link{width:auto!important;padding:10px 18px!important;margin:0!important;font-size:.88rem}
.healing-program-nav{display:flex;flex-wrap:wrap;gap:12px}
.healing-path-day-page .meditation-audio-panel{margin:0 0 8px;padding:20px 22px;border:1px solid var(--border);border-radius:6px;background:rgba(var(--accent-rgb),.06)}
.healing-path-day-page .meditation-audio-title{margin:0 0 8px;font-size:1rem;color:var(--heal)}
.meditation-audio-hint{margin-top:0!important;font-size:.88rem}
.healing-program-day-link{width:auto!important}
.healing-workbook-choices{margin-top:12px}
.healing-workbook-btn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.healing-sample-badge{padding:10px 14px;background:rgba(var(--accent-rgb),.08);border-radius:4px;border-left:3px solid var(--accent)}
.healing-path-program h2,
.healing-day-panel h2,
#healing-path-output h2{font-size:1.15rem;color:var(--accent);margin:2.2em 0 .75em;padding-bottom:.4em;border-bottom:1px solid var(--border);font-variant:small-caps;letter-spacing:.06em}
.healing-path-program h2:first-child,
.healing-day-panel h2:first-child,
#healing-path-output h2:first-child{margin-top:0}
.healing-path-program h3,
.healing-day-panel h3,
#healing-path-output h3{font-size:.95rem;color:var(--heal);margin:1.4em 0 .5em;letter-spacing:.04em}
.healing-path-program p,
.healing-day-panel p,
#healing-path-output p{margin:0 0 1em;line-height:1.7}
.healing-path-program p.question,
.healing-day-panel p.question{margin:1.2em 0 .4em}
.healing-path-program .qnum,
.healing-day-panel .qnum{color:var(--accent);font-weight:600}
.healing-path-program .write-block,
.healing-day-panel .write-block{margin:0 0 1.4em}
.healing-path-program .write-line,
.healing-day-panel .write-line{height:1.6em;border-bottom:1px dashed var(--border);margin:0 0 6px}
.healing-path-program ol,
.healing-day-panel ol,
#healing-path-output ol{margin:0 0 1em 1.2em;padding:0}
.healing-path-program blockquote,
.healing-day-panel blockquote,
#healing-path-output blockquote{margin:1em 0;padding:12px 18px;border-left:3px solid var(--accent);color:var(--muted);font-style:italic}

/* HOME LANDING */
.home-landing{max-width:var(--max-w);margin:0 auto;padding-top:1rem}
.home-landing-header{text-align:center;margin-bottom:var(--section-gap);animation:fadeUp .9s ease both}
.home-landing-header .sym{font-size:20px;color:var(--accent-light);letter-spacing:.4em;margin-bottom:2rem}
.home-landing-header h3{
  font-family:var(--font-display);font-size:12px;letter-spacing:.25em;text-transform:uppercase;color:var(--accent);
  margin:0 0 2rem;font-weight:400;font-variant:normal
}
.home-landing-header h1{
  font-family:var(--font-display);font-size:clamp(48px,8vw,80px);font-weight:300;line-height:1.1;color:var(--ink);
  margin:0 auto 1.75rem;max-width:680px;font-variant:normal;letter-spacing:0;font-style:normal
}
.home-landing-header h1 em,.home-landing-header h1 i{font-style:italic}
.home-landing-intro p,.home-landing-myth p{margin:0 0 1.25rem;line-height:1.9;color:var(--ink-mid);font-size:16px}
.home-landing-intro > p.lede{
  text-align:center;font-size:17px;max-width:480px;margin:0 auto 3rem;line-height:1.8;color:var(--ink-mid)
}
.home-landing-intro p:last-child,.home-landing-myth p:last-child{margin-bottom:0}
.home-landing-myth{background:var(--cream-dark);border:none;border-radius:0;margin:var(--section-gap) -2rem 0;padding:var(--section-gap) 2rem}
.home-landing-myth .card-title{font-size:12px;letter-spacing:.22em;margin-bottom:1rem}
.home-landing-myth-bridge{margin-top:1.5rem;padding-top:0;border-top:none;font-style:normal;color:var(--ink-mid)}
.home-landing-disclaimer{border:.5px solid var(--border);background:var(--panel);border-radius:12px;margin-top:var(--section-gap)}
.home-landing-disclaimer .card-title{font-size:12px;letter-spacing:.22em;color:var(--ink-muted);text-transform:none}
.home-landing-disclaimer p{margin:0;line-height:1.75;font-size:12px;color:var(--ink-faint);max-width:600px}
.home-landing-disclaimer strong{color:var(--ink-muted);font-weight:700}
.home-landing-actions{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-top:var(--section-gap);padding-bottom:2rem}
.home-landing-btn-primary,.home-landing-btn-secondary{text-align:center;text-decoration:none;display:inline-block;width:auto}
.home-landing-btn-primary{margin-top:0!important}
.home-landing-btn-secondary{margin-top:0!important}
@media(min-width:480px){
  .home-landing-actions{flex-direction:row;justify-content:center}
  .home-landing-actions .btn{flex:0 1 auto;margin-top:0}
}

/* LANDING / MARKETING UTILITIES (mycorewound.html) */
.section-rule{border:none;border-top:.5px solid var(--border);margin:0}
.section-eyebrow{
  font-family:var(--font-display);font-size:12px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--accent);margin-bottom:1rem;font-variant:normal;font-weight:400
}
h2.section-title{
  font-family:var(--font-display);font-size:clamp(28px,4vw,38px);font-weight:400;font-style:italic;
  line-height:1.25;color:var(--ink);margin-bottom:1.5rem;font-variant:normal
}
.body-text{font-size:16px;color:var(--ink-mid);line-height:1.9;margin-bottom:1.25rem}
.body-text strong{color:var(--ink);font-weight:700}
.pullquote{
  font-family:var(--font-display);font-size:clamp(22px,3vw,28px);font-weight:300;font-style:italic;
  line-height:1.5;color:var(--ink);border-left:1.5px solid var(--accent-light);padding:.5rem 0 .5rem 1.75rem;
  margin:2.5rem 0;border-right:none;border-top:none;border-bottom:none;background:transparent
}
.receive-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:2rem 0 2.5rem}
.receive-card{border-radius:12px;padding:1.4rem 1.5rem;border:1px solid var(--border)}
.receive-card--shade-0{background:rgba(139,111,78,.12);border-color:rgba(139,111,78,.28)}
.receive-card--shade-1{background:rgba(42,96,144,.1);border-color:rgba(42,96,144,.24)}
.receive-card--shade-2{background:rgba(160,48,48,.08);border-color:rgba(160,48,48,.22)}
.receive-card--shade-3{background:rgba(196,168,130,.22);border-color:rgba(139,111,78,.24)}
.receive-card-title{font-family:var(--font-display);font-size:19px;font-weight:500;color:var(--ink);margin-bottom:.4rem}
.receive-card-body{font-size:14px;color:var(--ink-muted);line-height:1.7}
.deep-dives-note{font-size:14px;color:var(--ink-faint);font-style:italic;margin-bottom:2.5rem}
.testimonials{display:flex;flex-direction:column;gap:1rem;margin:2rem 0 1.25rem}
.testimonial{border:.5px solid var(--border);border-radius:12px;padding:1.5rem 1.75rem;background:var(--panel)}
.testimonial-text{
  font-family:var(--font-display);font-size:21px;font-style:italic;font-weight:300;line-height:1.55;
  color:var(--ink);margin-bottom:.75rem
}
.testimonial-attr{font-size:12px;color:var(--ink-faint);letter-spacing:.08em}
.testimonial-note{font-size:13px;color:var(--ink-faint);font-style:italic}
.final-cta{text-align:center;padding:6rem 2rem}
.final-h2{
  font-family:var(--font-display);font-size:clamp(36px,5vw,52px);font-weight:300;font-style:italic;
  line-height:1.2;color:var(--ink);margin-bottom:1rem
}
.final-sub{font-size:16px;color:var(--ink-muted);margin-bottom:2.5rem}
.disclaimer-block{border-top:.5px solid var(--border);padding:2.5rem 2rem;text-align:center}
.disclaimer-block p{font-size:12px;color:var(--ink-faint);line-height:1.75;max-width:600px;margin:0 auto}
.disclaimer-block strong{color:var(--ink-muted)}
.site-footer{
  border-top:.5px solid var(--border);padding:1.5rem 2rem;display:flex;align-items:center;
  justify-content:space-between;max-width:var(--max-w);margin:0 auto
}
.site-footer-logo{font-family:var(--font-display);font-size:15px;color:var(--ink-muted);text-decoration:none}
.site-footer-links{display:flex;gap:1.5rem}
.site-footer-links a{font-size:12px;color:var(--ink-faint);text-decoration:none;letter-spacing:.04em;transition:color .2s}
.site-footer-links a:hover{color:var(--ink-mid)}
.btn-primary{display:inline-block;width:auto;padding:12px 28px;background:var(--accent);color:var(--cream);
  font-family:var(--font-body);font-size:14px;letter-spacing:.06em;text-decoration:none;border-radius:4px;
  border:none;cursor:pointer;transition:background .25s,transform .15s;text-align:center}
.btn-primary:hover{background:var(--accent-dark);color:var(--cream);transform:translateY(-1px)}
.btn-ghost{
  display:inline-block;width:auto;padding:11px 24px;border:.5px solid var(--border-mid);color:var(--ink-mid);
  font-family:var(--font-body);font-size:14px;letter-spacing:.04em;text-decoration:none;border-radius:4px;
  background:transparent;transition:border-color .2s,color .2s;text-align:center
}
.btn-ghost:hover{border-color:var(--ink);color:var(--ink);background:transparent;transform:none}
.reveal{opacity:0;transform:translateY(20px);transition:opacity .75s ease,transform .75s ease}
.reveal.visible{opacity:1;transform:translateY(0)}

/* HOME PAGE (inside .wrap, same width as rest of app) */
.wrap.home-page{padding:12px 1rem 100px}
.wrap.home-page .container{max-width:none;margin:0;padding:0}
.wrap.home-page section{padding:calc(var(--section-gap)/2) 0 calc(var(--section-gap)/4)}
.wrap.home-page .hero{
  min-height:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:1.5rem 0 2rem
}
.hero-brand{
  display:flex;flex-direction:column;align-items:center;gap:1.25rem;margin-bottom:2rem;
  opacity:0;animation:fadeUp .9s ease forwards .2s
}
.hero-mark{display:block;width:clamp(312px,66vw,504px);height:auto;opacity:1;max-width:min(504px,88vw)}
.hero-eyebrow{
  font-family:var(--font-display);font-size:clamp(26px,4vw,36px);font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent);margin:0
}
.hero-h1 em{font-style:italic}
.wrap.home-page .hero > h1.hero-h1{
  font-family:var(--font-display);font-size:clamp(33.6px,5.6vw,56px);font-weight:300;font-style:italic;
  line-height:1.1;letter-spacing:0;font-variant:normal;color:var(--ink);margin-bottom:3rem;max-width:680px;
  opacity:0;animation:fadeUp .9s ease forwards .4s
}
.wrap.home-page .hero > h1.hero-h1 em{font-style:italic}
.wrap.home-page .hero .hero-sub{
  font-family:var(--font-body);font-size:0.7rem;line-height:1.55;color:var(--ink-faint);max-width:400px;
  margin:0 auto 2.5rem;letter-spacing:.03em;opacity:0;animation:fadeUp .9s ease forwards .6s
}
.hero-actions{
  display:flex;flex-direction:column;align-items:center;gap:1rem;
  opacity:0;animation:fadeUp .9s ease forwards .8s
}
.wrap.home-page .hero-actions .btn-primary{
  padding:8px 20px;font-size:12px;letter-spacing:.08em;border-radius:999px;
  background:transparent;color:var(--accent);border:1px solid var(--accent);
  transition:border-color .2s,color .2s,background .2s,transform .15s
}
.wrap.home-page .hero-actions .btn-primary:hover{
  background:rgba(var(--accent-rgb),.08);color:var(--accent-dark);border-color:var(--accent-dark);transform:translateY(-1px)
}
.hero-note{font-size:12px;color:var(--ink-faint);letter-spacing:.06em}
.wrap.home-page .myth-section{
  background:var(--cream-dark);margin-left:-1rem;margin-right:-1rem;padding:calc(var(--section-gap)/2) 1rem calc(var(--section-gap)/4)
}
.wrap.home-page .myth-inner{max-width:none;margin:0;padding:0}
.wrap.home-page .final-cta{padding:6rem 0;text-align:center}
.wrap.home-page .disclaimer{border-top:.5px solid var(--border);padding:2.5rem 0;text-align:center}
.wrap.home-page .disclaimer p{font-size:12px;color:var(--ink-faint);line-height:1.75;max-width:600px;margin:0 auto}
.wrap.home-page .disclaimer strong{color:var(--ink-muted);font-weight:700}
.wrap.home-page .home-page-footer{
  border-top:.5px solid var(--border);padding:1.5rem 0;display:flex;align-items:center;justify-content:space-between
}
.footer-logo{font-family:var(--font-display);font-size:15px;color:var(--ink-muted);text-decoration:none}
.footer-links{display:flex;gap:1.5rem}
.footer-links a{font-size:12px;color:var(--ink-faint);text-decoration:none;letter-spacing:.04em;transition:color .2s}
.footer-links a:hover{color:var(--ink-mid)}

@media(max-width:600px){
  .app-nav{padding:1rem 1.25rem}
  .app-nav-links{gap:1rem}
  .wrap{padding-left:1.25rem;padding-right:1.25rem}
  .wrap.home-page{padding-left:.625rem;padding-right:.625rem}
  .wrap.home-page .myth-section{margin-left:-.625rem;margin-right:-.625rem;padding-left:.625rem;padding-right:.625rem}
  .home-landing-myth{margin-left:-1.25rem;margin-right:-1.25rem;padding-left:1.25rem;padding-right:1.25rem}
  .receive-grid{grid-template-columns:1fr}
  .wrap.home-page .home-page-footer{flex-direction:column;gap:1rem;text-align:center}
  .footer-links{justify-content:center}
  .site-footer{flex-direction:column;gap:1rem;text-align:center}
  .site-footer-links{justify-content:center}
}

/* DEEP DIVES HUB (admin / god) */
.deep-dives-filters{display:flex;flex-wrap:nowrap;gap:8px;margin:0 0 20px;padding-bottom:18px;border-bottom:1px solid var(--border);overflow-x:auto;-webkit-overflow-scrolling:touch}
.deep-dives-filter{flex:0 0 56px;width:56px;height:56px;display:inline-flex;align-items:center;justify-content:center;padding:0;
  border:1px solid var(--border);border-radius:4px;background:var(--surface);font-family:var(--font-display);color:var(--muted);
  cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.deep-dives-filter:hover{border-color:var(--accent);background:rgba(var(--accent-rgb),.08);color:var(--accent)}
.deep-dives-filter.is-active{border-color:var(--heal);background:rgba(90,122,90,.12);color:var(--heal)}
.deep-dives-filter.is-active .diving-deeper-icon{color:var(--heal)}
.deep-dives-filter .diving-deeper-icon{font-size:1.65rem;line-height:1;color:var(--accent)}
.deep-dives-filter-empty{margin:0 0 16px}
.deep-dives-list.is-filtered .deep-dives-topic-icon{display:none}
.deep-dives-list.is-filtered .deep-dives-topic-icon.is-topic-match{display:inline-flex}
.deep-dives-list{max-height:none}
.deep-dives-item.is-filtered-out{display:none!important}
.deep-dives-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;padding:16px 12px;border-bottom:1px solid var(--border)}
.deep-dives-item:last-child{border-bottom:none}
.deep-dives-item-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.deep-dives-name{font-size:1.02rem;color:var(--text);font-variant:small-caps;letter-spacing:.04em}
.deep-dives-meta{font-size:.78rem;color:var(--muted);font-style:italic}
.deep-dives-topic-icons{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.deep-dives-topic-icon{display:inline-flex;flex-direction:column;align-items:center;gap:4px;min-width:52px;max-width:72px;padding:8px 6px;
  border:1px solid var(--border);border-radius:4px;background:var(--surface);color:inherit;text-decoration:none;transition:border-color .15s,background .15s}
.deep-dives-topic-icon:hover{border-color:var(--heal);background:rgba(90,122,90,.08)}
.deep-dives-topic-icon .diving-deeper-icon{font-size:1.25rem;line-height:1}
.deep-dives-topic-label{font-size:.58rem;line-height:1.25;text-align:center;color:var(--muted);font-variant:small-caps;letter-spacing:.04em}
.deep-dives-topic-icon:hover .deep-dives-topic-label{color:var(--heal)}
.deep-dives-open{width:auto!important;margin:0!important;padding:8px 18px!important;font-size:.82rem;text-decoration:none;align-self:flex-start}

/* PEOPLE INDEX */
.people-index{display:flex;flex-direction:column;gap:0}
.people-search-label{display:block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:8px;font-variant:small-caps}
.people-search{width:100%;padding:12px 14px;border:1px solid var(--border);background:var(--surface);color:var(--text);
  font-family:var(--font-body);font-size:.95rem;margin-bottom:16px;border-radius:1px}
.people-search:focus{outline:none;border-color:var(--accent)}
.people-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.people-cards-item{margin:0}
.people-card{position:relative;display:flex;flex-direction:column;gap:10px;padding:16px 18px;border:1px solid var(--border);
  border-radius:4px;background:var(--card);transition:border-color .15s,background .15s}
.people-card:hover{border-color:var(--accent);background:rgba(var(--accent-rgb),.04)}
.people-card-stretch{position:absolute;inset:0;z-index:1;border-radius:inherit}
.people-card-stretch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.people-card-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;line-height:1.45}
.people-card-row--primary{gap:8px 18px}
.people-card-name{font-size:1.08rem;color:var(--accent);font-variant:small-caps;letter-spacing:.05em}
.people-card-role{font-size:.82rem;color:var(--muted);letter-spacing:.03em}
.people-card-role--ambassador{color:var(--accent)}
.people-card-role--friend{color:var(--heal)}
.people-card-related-link{position:relative;z-index:2;color:inherit;text-decoration:underline;text-underline-offset:2px}
.people-card-related-link:hover{color:var(--accent)}
.people-card-stats{margin-left:auto;font-size:.82rem;color:var(--heal);letter-spacing:.02em}
.people-card-row--birth{font-size:.84rem;color:var(--muted)}
.people-card-birth-label{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);font-variant:small-caps;flex-shrink:0}
.people-card-birth{font-style:italic;color:var(--text)}
.people-list{list-style:none;margin:0;padding:0;max-height:min(75vh,640px);overflow-y:auto}
.people-list-item{border-bottom:1px solid var(--border)}
.people-list-item:last-child{border-bottom:none}
.people-list-btn{display:block;width:100%;text-align:left;padding:14px 12px;background:transparent;border:none;cursor:pointer;
  font-family:var(--font-body);color:var(--text);transition:background .2s}
.people-list-btn:hover,.people-list-btn.is-active{background:rgba(var(--accent-rgb),.08)}
.people-list-btn.is-active{border-left:3px solid var(--accent);padding-left:9px}
.people-list-name{display:block;font-size:1.02rem;color:var(--text);margin-bottom:8px;font-variant:small-caps;letter-spacing:.04em}
.people-list-birth{margin:0 0 8px;font-size:.78rem;line-height:1.45}
.people-list-birth-row{display:grid;grid-template-columns:3.2em 1fr;gap:4px 8px;margin-bottom:2px}
.people-list-birth dt{margin:0;color:var(--faint);font-style:normal;letter-spacing:.04em}
.people-list-birth dd{margin:0;color:var(--muted);font-style:italic}
.people-list-summary{display:block;font-size:.75rem;color:var(--heal);margin-top:4px;line-height:1.4;letter-spacing:.02em}
.person-readings-panel{display:none;animation:fadeUp .4s ease both}
.person-readings-panel.is-visible{display:block}
.person-readings-header{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--border)}
.past-add-bar{margin-top:14px;padding-top:14px;border-top:1px solid var(--border)}
.past-add-icon-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:320px}
.past-add-icon-action{display:inline-flex;align-items:center;justify-content:center;width:100%;height:52px;padding:0;margin:0;
  border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--accent);text-decoration:none;cursor:pointer;
  transition:border-color .15s,background .15s,color .15s}
.past-add-icon-action:hover{border-color:var(--accent);background:rgba(var(--accent-rgb),.08)}
.past-add-icon-action--disabled{opacity:.45;cursor:not-allowed;pointer-events:none}
.past-add-icon-action-icon{color:var(--accent)}
.person-readings-title{font-size:1.35rem;font-weight:normal;color:var(--accent);margin:0 0 12px;font-variant:small-caps}
.person-birth-dl{margin:0 0 14px;font-size:.88rem;line-height:1.5}
.person-birth-row{display:grid;grid-template-columns:4.5em 1fr;gap:6px 12px;margin-bottom:4px}
.person-birth-row dt{margin:0;color:var(--faint);font-style:normal;letter-spacing:.05em}
.person-birth-row dd{margin:0;color:var(--text)}
.person-summary-bar{margin:0;padding:10px 14px;background:rgba(var(--accent-rgb),.07);border:1px solid var(--border);border-radius:4px;
  font-size:.88rem;color:var(--heal);line-height:1.45}
.person-accordion{display:flex;flex-direction:column;gap:10px}
.past-accordion-section,.past-accordion-nav{border:1px solid var(--border);border-radius:4px;background:var(--card);overflow:hidden}
.past-accordion-nav{display:block;text-decoration:none;color:inherit;transition:border-color .15s,background .15s}
.past-accordion-nav:hover{border-color:var(--accent);background:rgba(var(--accent-rgb),.04)}
.past-accordion-nav .past-accordion-summary::before{content:'→'}
.past-accordion-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;cursor:pointer;
  list-style:none;font-family:var(--font-body);user-select:none}
.past-accordion-summary::-webkit-details-marker{display:none}
.past-accordion-summary::before{content:'▸';color:var(--accent);margin-right:10px;font-size:.85rem;transition:transform .15s}
.past-accordion-section[open]>.past-accordion-summary::before{transform:rotate(90deg)}
.past-accordion-title{font-size:.95rem;font-variant:small-caps;letter-spacing:.08em;color:var(--accent)}
.past-accordion-count{font-size:.78rem;color:var(--muted);padding:2px 10px;border:1px solid var(--border);border-radius:12px}
.past-accordion-empty{margin:0;padding:0 18px 16px;font-size:.85rem}
.past-records-list{list-style:none;margin:0;padding:0 18px 14px}
.past-record{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid var(--border)}
.past-record:last-child{border-bottom:none;padding-bottom:4px}
.past-record-main{display:flex;flex-direction:column;gap:8px;flex:1;min-width:220px}
.past-record-interpretation-title{margin:0;font-size:1.12rem;font-weight:normal;color:var(--accent);font-variant:small-caps;letter-spacing:.06em;line-height:1.3}
.past-record-date{font-size:.8rem;color:var(--faint);letter-spacing:.04em;font-style:italic}
.past-record-title-line{font-size:.92rem;color:var(--text)}
.reading-params-v2--secondary-only{margin:0}
.past-record-title-line{font-variant:small-caps;letter-spacing:.04em}
.past-record-icon{color:var(--accent);margin-right:4px}
.past-record-meta{font-size:.82rem;margin:0}
.past-record-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;flex-shrink:0;max-width:100%}
.past-record-icon-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;max-width:240px;flex-shrink:0}
.reading-view-icon-actions{display:flex;flex-flow:row nowrap;justify-content:center;align-items:stretch;gap:8px;width:100%;max-width:100%;margin:28px auto 0}
.reading-view-icon-actions .past-record-icon-action,
.reading-view-icon-actions .past-record-icon-action-form{flex:0 0 48px;width:48px;min-width:48px;max-width:48px}
.reading-view-icon-actions .past-record-icon-action-form .past-record-icon-action{width:48px}
.past-record-icon-action.reading-view-email-btn{cursor:pointer;font:inherit;color:inherit}
.reading-view-email-status{margin:14px auto 0;max-width:420px;text-align:center}
.past-record-icon-action-form{display:block;margin:0;min-width:0}
.past-record-icon-action-form .past-record-icon-action{width:100%}
.past-record-icon-action{display:inline-flex;align-items:center;justify-content:center;width:100%;height:48px;padding:0;margin:0;
  border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--accent);text-decoration:none;cursor:pointer;
  transition:border-color .15s,background .15s,color .15s}
.past-record-icon-action:hover{border-color:var(--accent);background:rgba(var(--accent-rgb),.08)}
.past-record-icon-action--delete .past-record-icon-action-icon{color:var(--wound)}
.past-record-icon-action--delete:hover{border-color:var(--wound);background:rgba(139,58,58,.08)}
.past-record-icon-action-icon{color:var(--accent)}
.btn-past-record{display:inline-block;width:auto;min-width:0;padding:6px 10px;margin:0!important;
  font-size:.68rem;letter-spacing:.1em;line-height:1.3;white-space:nowrap}
.btn-past-record.btn-sec{margin-top:0!important}
.reading-params-v2{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px}
.reading-focus{display:inline-block;font-size:.88rem;font-weight:700;color:var(--text);letter-spacing:.03em;
  font-variant:small-caps;border-bottom:1px solid rgba(var(--accent-rgb),.35);padding-bottom:1px}
.reading-param-secondary{display:inline-block;font-size:.72rem;color:var(--muted);letter-spacing:.04em;padding:2px 0}
.reading-param-secondary:not(:last-child)::after{content:'·';margin-left:10px;color:var(--faint)}
.people-index-new{display:inline-block;width:auto;padding:10px 24px;margin-bottom:24px}
.people-filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.people-filter-btn{padding:8px 14px;border:1px solid var(--border);border-radius:4px;background:var(--surface);
  font-family:var(--font-body);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);cursor:pointer;
  transition:border-color .15s,background .15s,color .15s}
.people-filter-btn:hover,.people-filter-btn.is-active{border-color:var(--accent);color:var(--accent);background:rgba(var(--accent-rgb),.08)}
.people-list-card{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 12px}
.people-list-card-main{flex:1;min-width:0}
.people-list-badges{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 8px}
.people-list-badge{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;padding:2px 8px;border-radius:999px;border:1px solid var(--border);color:var(--muted)}
.people-list-badge--ambassador{border-color:rgba(var(--accent-rgb),.35);color:var(--accent)}
.people-list-badge--friend{border-color:rgba(90,122,90,.35);color:var(--heal)}
.people-list-open{width:auto;margin:0;padding:10px 18px;flex-shrink:0;align-self:center;text-decoration:none;white-space:nowrap}
.person-page-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 20px;align-items:center}
.person-page-back,.person-page-edit{width:auto;margin:0;padding:10px 22px;text-decoration:none;display:inline-block}
.person-page-card{margin-bottom:24px}
.person-page-kind{margin:0 0 18px}
.person-page-birth{margin:8px 0 0;font-size:.92rem;color:var(--muted);font-style:italic;line-height:1.5;letter-spacing:.02em}
.person-friends-card{margin-bottom:32px}
.person-friends-header{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.person-friends-title{margin:0 0 6px;font-size:1.1rem;font-variant:small-caps;color:var(--accent);letter-spacing:.06em}
.person-friends-lede{margin:0}
.person-friends-list{list-style:none;margin:0;padding:0}
.person-friends-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;
  padding:14px 0;border-bottom:1px solid var(--border)}
.person-friends-item:last-child{border-bottom:none}
.person-friends-name{font-size:1rem;color:var(--accent);text-decoration:none;font-variant:small-caps}
.person-friends-name:hover{text-decoration:underline}
.person-friends-meta{display:block;font-size:.82rem;color:var(--muted);margin-top:4px}
.person-friends-actions{display:flex;flex-wrap:wrap;gap:8px}
.person-friends-actions .btn{width:auto;margin:0;padding:8px 16px;text-decoration:none}
@media(max-width:720px){
  .people-card-stats{margin-left:0;width:100%}
  .people-list{max-height:none}
}
select option{background:var(--surface);color:var(--text)}
.hint{font-size:.8rem;color:var(--muted);font-style:italic}
.note{font-size:.85rem;color:var(--muted);font-style:italic;margin-bottom:18px;line-height:1.65}

/* BUTTON */
.btn{
  display:inline-block;width:auto;max-width:100%;padding:11px 24px;background:var(--accent);border:none;border-radius:4px;
  color:var(--cream);font-family:var(--font-body);font-size:14px;letter-spacing:.06em;
  cursor:pointer;transition:background .25s,transform .15s,color .25s,border-color .25s;margin:0;
  font-variant:normal;text-align:center;text-decoration:none;vertical-align:middle;line-height:1.35
}
.btn::before{display:none}
.btn:hover{background:var(--accent-dark);color:var(--cream);transform:translateY(-1px)}
.btn:disabled{opacity:.4;cursor:not-allowed;transform:none}
.btn:disabled:hover{background:var(--accent);color:var(--cream)}
.btn-sec{
  background:transparent;border:.5px solid var(--border-mid);color:var(--ink-mid);
  border-radius:4px
}
.btn-sec::before{display:none}
.btn-sec:hover{border-color:var(--accent);color:var(--accent);background:rgba(var(--accent-rgb),.06);transform:none}
.btn-danger{border:.5px solid rgba(160,48,48,.45);color:var(--wound);background:transparent;border-radius:4px}
.btn-danger::before{display:none}
.btn-danger:hover{background:rgba(160,48,48,.08);color:var(--wound);transform:none}
.btn-inline{display:inline-block;width:auto;padding:10px 20px;margin:0}
.btn-row,
.btn-group,
.btn-toolbar,
.portal-actions,
.birth-location-actions,
.analytics-editor-actions{
  display:flex;flex-flow:row wrap;gap:12px;align-items:center;margin-top:24px
}
#result-section .btn-row{margin-top:18px}
.card>.btn-row,.card>.btn-toolbar{margin-top:20px}
.delete-reading-form{display:inline-block;margin:0}

/* CHART DISPLAY */
#chart-section{display:none;animation:fadeUp .8s ease both}
#chart-section.is-visible{display:block}
#options-section{display:block}
.wizard-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin-top:20px}
.wizard-step{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);font-variant:small-caps;padding:6px 0;border-bottom:2px solid transparent}
.wizard-step.is-active{color:var(--accent);border-bottom-color:var(--accent)}
.wizard-step.is-done{color:var(--muted)}
.wizard-panel{animation:fadeUp .6s ease both}
.option-group.is-hidden{display:none}
.synastry-preview{font-size:.85rem;line-height:1.5}
#synastry-charts-display .card{margin-bottom:0}
.chart-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);border:1px solid var(--border);margin-bottom:28px}
@media(max-width:560px){.chart-grid{grid-template-columns:repeat(2,1fr)}}
.planet-cell{background:var(--panel);padding:14px 12px;text-align:center}
.planet-sym{font-size:1.4rem;display:block;margin-bottom:4px;color:var(--muted)}
.planet-name{font-size:.62rem;letter-spacing:.12em;color:var(--muted);text-transform:uppercase;font-variant:small-caps;display:block;margin-bottom:4px}
.planet-pos{font-size:.95rem;color:var(--text)}
.planet-pos em{color:var(--accent);font-style:normal;font-size:.8rem}
.chiron-cell{background:rgba(var(--accent-rgb),.06);border:1px solid rgba(var(--accent-rgb),.25)}
.chiron-cell .planet-sym{color:var(--accent)}
.chiron-cell .planet-pos{color:var(--accent);font-weight:600}

/* STATUS */
.status{padding:12px 18px;background:rgba(var(--accent-rgb),.06);border:1px solid rgba(var(--accent-rgb),.2);font-style:italic;color:var(--muted);font-size:.9rem;margin-bottom:20px}
.err{background:rgba(160,48,48,.07);border-color:rgba(160,48,48,.3);color:var(--wound)}
.calc-status-panel{font-style:normal;text-align:left}
.calc-method-panel{margin:0}
.calc-method-panel--summary{text-align:left;margin-top:8px}
.calc-method-lead{font-family:var(--font-display);font-size:.95rem;color:var(--accent);font-variant:small-caps;letter-spacing:.06em;margin:0 0 14px;font-style:normal}
.calc-method-facts{margin:0 0 14px;display:grid;gap:10px}
.calc-fact{display:grid;grid-template-columns:minmax(0,11rem) minmax(0,1fr);gap:8px 14px;align-items:baseline;font-size:.86rem;line-height:1.45}
.calc-fact dt{color:var(--muted);font-weight:600;font-style:normal;margin:0}
.calc-fact dd{color:var(--text);margin:0;font-style:normal}
.calc-engine-badge{display:inline-block;padding:2px 8px;border:1px solid rgba(var(--accent-rgb),.35);border-radius:3px;background:rgba(var(--accent-rgb),.08);font-size:.8rem;color:var(--accent);letter-spacing:.03em}
.calc-method-desc{font-size:.82rem;color:var(--muted);line-height:1.55;margin:0 0 8px;font-style:normal}
.calc-method-desc--muted{opacity:.9}
.calc-fallback-note{font-size:.82rem;color:var(--wound);margin:10px 0 0;font-style:normal}
@media(max-width:560px){.calc-fact{grid-template-columns:1fr}}

/* RESULT */
#result-section{display:none;animation:fadeUp .9s ease both}
.result-card{background:var(--panel);border:.5px solid var(--border);border-radius:12px;padding:40px;position:relative;overflow:hidden;box-shadow:none}
.result-card::before{display:none}
.result-header{display:flex;align-items:center;gap:16px;margin-bottom:32px;padding-bottom:22px;border-bottom:1px solid var(--border)}
.result-header--simplified{gap:0}
.result-header--simplified .rbadge{display:none}
.result-header--simplified .rname{font-size:1.2rem;margin-bottom:6px}
.result-header--simplified .rpos{font-size:.95rem;color:var(--muted)}
.rbadge{width:54px;height:54px;border:1px solid var(--accent);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:var(--accent);flex-shrink:0}
.rname{font-family:var(--font-display);font-size:1.05rem;color:var(--ink);margin-bottom:3px;font-variant:normal;font-weight:500;letter-spacing:.02em;font-style:italic}
.rpos{font-style:italic;color:var(--ink-muted);font-size:.88rem}
#profile-output{line-height:1.9;font-size:16px;color:var(--ink-mid)}
#profile-output h2{
  font-family:var(--font-display);font-size:clamp(22px,3vw,28px);font-weight:300;font-style:italic;
  letter-spacing:.02em;color:var(--ink);margin:28px 0 11px;padding-bottom:8px;border-bottom:.5px solid var(--border);
  font-variant:normal;text-transform:none
}
#profile-output h3{font-family:var(--font-display);font-size:19px;font-weight:500;color:var(--ink);margin:18px 0 7px;font-variant:normal;font-style:normal}
#profile-output p{margin-bottom:13px}
#profile-output strong{color:var(--ink);font-weight:700}
#profile-output em{color:var(--ink-mid);font-style:italic}

.loading{text-align:center;padding:48px 0}
.lsym{font-size:2.8rem;color:var(--accent);display:block;animation:spin 9s linear infinite;margin-bottom:14px}
@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.loading p{color:var(--muted);font-style:italic;letter-spacing:.1em}
.cursor{display:inline-block;width:2px;height:1em;background:var(--accent);vertical-align:text-bottom;animation:blink .85s step-end infinite;margin-left:2px}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}

@keyframes fadeDown{from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.export-pdf-link.is-visible{display:block!important}
.export-healing-path-pdf-link.is-visible{display:block!important}
#chart-export-row{margin-top:16px}
/* AUTH & PORTAL */
.auth-page header,.portal-page header{text-align:center;margin-bottom:32px}
.auth-alt-link{text-align:center;margin-top:24px;color:var(--muted);font-size:.92rem}
.auth-alt-link a{color:var(--accent)}
.auth-inline-link{margin:8px 0 0;text-align:right;font-size:.86rem}
.auth-inline-link a{color:var(--accent);text-decoration:none}
.auth-inline-link a:hover{text-decoration:underline}
.auth-hint{margin:8px 0 0;font-size:.86rem;color:var(--muted);line-height:1.45}
.app-locked-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px}
.app-locked-modal[hidden]{display:none}
.app-locked-modal-backdrop{position:absolute;inset:0;background:rgba(20,16,12,.55)}
.app-locked-modal-dialog{position:relative;max-width:440px;width:100%;background:var(--cream);border:1px solid var(--border);padding:32px 28px 28px;box-shadow:0 18px 48px rgba(20,16,12,.18);text-align:center}
.app-locked-modal-close{position:absolute;top:10px;right:14px;border:none;background:none;font-size:1.6rem;line-height:1;color:var(--muted);cursor:pointer;padding:4px}
.app-locked-modal-title{font-family:var(--serif);font-size:1.6rem;font-weight:400;margin:0 0 12px;text-align:center}
.app-locked-modal-body{font-size:.95rem;line-height:1.55;color:var(--ink-mid);margin:0 0 20px;text-align:center}
.app-locked-modal-body a{color:var(--accent)}
.app-locked-modal-btn{display:inline-block;width:auto;margin:0}
body.app-locked-modal-open{overflow:hidden}
.ambassador-name-link{color:var(--ink);text-decoration:none;border-bottom:1px solid rgba(var(--accent-rgb),.35)}
.ambassador-name-link:hover{color:var(--accent);border-bottom-color:var(--accent)}
.portal-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.portal-role-badge{display:inline-block;padding:1px 8px;border:1px solid rgba(var(--accent-rgb),.3);border-radius:3px;font-size:.78rem;color:var(--accent);letter-spacing:.04em}
.portal-actions .btn{margin:0;padding:11px 24px;text-decoration:none}
.portal-friends-list{display:flex;flex-direction:column;gap:16px}
.portal-friend-row{padding:14px 0;border-bottom:1px solid var(--border)}
.portal-friend-row:last-child{border-bottom:none;padding-bottom:0}
.portal-friend-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 12px}
.portal-friend-ident{flex:1;min-width:0}
.portal-friend-header-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0;align-items:flex-start}
.portal-friend-generate-btn{flex-shrink:0;width:auto;margin:0!important;padding:8px 14px;font-size:.78rem;letter-spacing:.06em;white-space:nowrap}
.portal-friend-meta{display:block;font-size:.85rem;color:var(--muted);margin-top:4px}
.portal-friend-profiles{list-style:none;margin:10px 0 0;padding:0 0 0 12px;border-left:2px solid var(--border);display:flex;flex-direction:column;gap:8px}
.portal-friend-profile-row{display:flex;flex-direction:column;gap:4px}
.portal-friend-profile-line{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px 12px}
.portal-friend-profile-title{flex:1;min-width:0;font-size:.88rem;line-height:1.35}
.portal-friend-profile-actions.past-record-icon-actions{display:flex;flex-wrap:nowrap;gap:4px;width:auto;max-width:none;margin:0;flex-shrink:0}
.portal-friend-profile-actions .past-record-icon-action-form{flex:0 0 auto;width:auto;min-width:0}
.portal-friend-profile-actions .past-record-icon-action,
.portal-friend-profile-actions .past-record-icon-action-form .past-record-icon-action{width:26px;min-width:26px;height:26px;padding:0;flex:0 0 26px}
.portal-friend-profile-actions .past-record-icon-action-icon,
.portal-friend-profile-actions .chiron-lucide-icon{width:14px!important;height:14px!important}
.friend-profile-email-status{margin:0;font-size:.8rem;padding:6px 8px}
.portal-friend-edit-warning{margin:0 0 20px;padding:12px 14px;border:1px solid rgba(139,58,58,.25);background:rgba(139,58,58,.06);line-height:1.55}
.portal-callout p{margin:0 0 16px;line-height:1.65}
.portal-profile-summary{margin:0 0 8px;color:var(--muted);font-style:italic}
.portal-access-note{margin:0;line-height:1.65;color:var(--muted)}
.portal-topic-actions{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.portal-topic-btn{width:100%;text-align:left;text-decoration:none;margin:0!important}
.portal-account-card p{margin:0;color:var(--muted)}
.portal-price{font-size:1.4rem;color:var(--accent);margin:12px 0 16px;font-variant:small-caps}
.portal-price--topic{font-size:1rem;margin:8px 0 10px}
.portal-demo-note{margin-top:16px;font-size:.82rem}
.portal-purchase-card{display:flex;flex-direction:column;gap:8px;padding:20px 22px;border:1px solid var(--border);border-radius:6px;background:var(--panel)}
.portal-purchase-card.is-owned{border-color:var(--heal)}
.portal-purchase-form,.portal-purchase-btn,.portal-purchase-open{width:auto!important;margin:8px 0 0!important;padding:8px 16px!important;font-size:.82rem}
.diving-deeper-card--locked{opacity:.92;cursor:default}
.diving-deeper-card--locked:hover{border-color:var(--border);background:var(--panel)}
.diving-deeper-badge--locked{color:var(--wound)}
.diving-deeper-unlock-btn{width:auto!important;margin-top:8px!important;padding:8px 16px!important;font-size:.82rem;text-align:center;text-decoration:none;display:inline-block}
.home-landing-tagline{font-size:17px;color:var(--ink-mid);max-width:480px;line-height:1.8;margin:0 auto}

/* BIRTH PLACE FALLBACK */
.birth-location-fallback{margin-top:18px;border-color:var(--accent)}
.birth-location-lede{margin:0 0 16px;max-width:640px}
.birth-location-step{display:flex;flex-direction:column;gap:14px}
.birth-country-select,.birth-town-select,.birth-town-search{width:100%;max-width:100%}
.birth-town-select{min-height:180px}
.birth-location-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.birth-location-actions .btn{width:auto;margin:0;padding:10px 18px}
.birth-loc-manual-link{width:auto;margin:4px 0 0;padding:8px 0;font-size:.82rem}
.birth-location-status{margin-top:12px}
.birth-location-status.is-error{color:var(--wound)}

/* PROMPT ANALYTICS (God role) */
.analytics-label{display:block;margin-bottom:8px;font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent)}
.analytics-profile-select{width:100%;max-width:520px}
.analytics-profile-status{margin-top:12px}
.analytics-status--error{color:var(--wound)}
.analytics-workspace{display:flex;flex-direction:column;gap:24px}
.analytics-section-title{font-size:1.15rem;font-variant:small-caps;color:var(--accent);margin:0 0 8px;letter-spacing:.06em}
.analytics-section-lede{margin:0 0 16px;max-width:640px}
.analytics-btn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.analytics-kind-btn{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;text-align:left;
  border:1px solid var(--border);border-radius:8px;background:var(--cream);cursor:pointer;font-family:var(--font-body);
  transition:border-color .15s,background .15s,color .15s}
.analytics-kind-btn:hover,.analytics-kind-btn.is-active{border-color:var(--accent);background:rgba(var(--accent-rgb),.06)}
.analytics-kind-sym{font-size:1.25rem;color:var(--accent-light);line-height:1}
.analytics-kind-label{font-size:.92rem;color:var(--ink);font-family:var(--font-display);font-variant:small-caps;letter-spacing:.04em}
.analytics-kind-sub{font-size:.78rem;color:var(--muted);line-height:1.35}
.analytics-detail-header{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.analytics-detail-title{margin:0 0 6px;font-size:1.25rem;color:var(--accent);font-variant:small-caps}
.analytics-detail-meta{margin:0;font-size:.82rem;color:var(--muted)}
.analytics-block{border:1px solid var(--border);border-radius:6px;margin-bottom:10px;background:var(--cream)}
.analytics-block[open]{background:var(--panel)}
.analytics-block-title{padding:12px 16px;cursor:pointer;font-family:var(--font-display);font-size:.88rem;
  color:var(--accent);letter-spacing:.04em;list-style:none}
.analytics-block-title::-webkit-details-marker{display:none}
.analytics-block-content{margin:0;padding:0 16px 16px;white-space:pre-wrap;word-break:break-word;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.78rem;line-height:1.55;
  color:var(--ink-mid);max-height:480px;overflow:auto}
.analytics-error{color:var(--wound)}
.analytics-editor-card{margin-bottom:24px}
.analytics-editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}
.analytics-template-select{min-width:280px;max-width:100%;flex:1}
.analytics-template-badge{color:var(--accent);font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}
.analytics-template-content{width:100%;min-height:280px;padding:14px 16px;border:1px solid var(--border);border-radius:6px;
  background:var(--cream);color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:.82rem;line-height:1.55;resize:vertical}
.analytics-template-content:disabled{opacity:.55;cursor:not-allowed}
.analytics-editor-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.analytics-editor-actions .btn{width:auto;margin:0;padding:10px 20px}
.analytics-template-status{margin-top:12px}
.analytics-block-edit{display:inline-block;width:auto;margin:0 16px 10px;padding:6px 12px;font-size:.75rem}

/* REPORT FEEDBACK */
.report-feedback{margin:32px 0 8px;opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}
.report-feedback--visible{opacity:1;transform:none}
.report-feedback__inner{padding:28px 26px;border:1px solid var(--border);border-radius:3px;background:var(--panel);
  box-shadow:0 4px 18px rgba(42,34,24,.06)}
.report-feedback__eyebrow{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin:0 0 8px}
.report-feedback__title{font-family:var(--font-display);font-size:1.65rem;font-weight:400;margin:0 0 8px;color:var(--ink)}
.report-feedback__lede{font-size:.92rem;line-height:1.55;color:var(--ink-muted);margin:0 0 24px}
.report-feedback__field{margin:0 0 22px;border:none;padding:0;min-width:0}
.report-feedback__label{display:block;font-size:.95rem;line-height:1.45;color:var(--ink-mid);margin:0 0 12px}
.report-feedback__rating-labels{display:flex;justify-content:space-between;gap:12px;font-size:.78rem;color:var(--ink-muted);margin-bottom:10px}
.report-feedback__stars{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.report-feedback__star{position:relative;cursor:pointer}
.report-feedback__star input{position:absolute;opacity:0;width:0;height:0}
.report-feedback__star-icon{display:block;font-size:2rem;line-height:1;color:var(--cream-dark);text-shadow:0 0 0 var(--border-mid);transition:color .2s ease,transform .2s ease}
.report-feedback__star:hover .report-feedback__star-icon,
.report-feedback__star.is-active .report-feedback__star-icon,
.report-feedback__star input:checked ~ .report-feedback__star-icon,
.report-feedback__star input:focus-visible ~ .report-feedback__star-icon{color:var(--accent);transform:scale(1.05)}
.report-feedback__star input:focus-visible ~ .report-feedback__star-icon{outline:2px solid rgba(var(--accent-rgb),.35);outline-offset:3px;border-radius:2px}
.report-feedback__textarea{width:100%;padding:14px 16px;border:1px solid var(--border);border-radius:3px;background:var(--cream);
  color:var(--ink);font-family:var(--font-body);font-size:.95rem;line-height:1.55;resize:vertical;min-height:120px}
.report-feedback__textarea:focus{outline:none;border-color:rgba(var(--accent-rgb),.55);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.12)}
.report-feedback__actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.report-feedback__submit{width:auto;margin:0;padding:12px 28px}
.report-feedback__status{font-size:.88rem;color:var(--heal);margin:0}
.report-feedback__status--error{color:var(--wound)}
.report-feedback__thanks{font-size:.92rem;color:var(--ink-muted);margin:16px 0 0;font-style:italic}

/* REPORT FEEDBACK ADMIN */
.rfb-admin-page .lede{max-width:720px}
.rfb-admin-filters{margin-top:24px;padding:20px 22px}
.rfb-admin-filters__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px 20px}
.rfb-admin-label{display:block;margin-bottom:6px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent)}
.rfb-admin-select,.rfb-admin-input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:4px;background:var(--cream);color:var(--ink);font-family:var(--font-body);font-size:.92rem}
.rfb-admin-filters__actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-top:18px}
.rfb-admin-btn{width:auto;margin:0;padding:10px 22px}
.rfb-admin-reset{font-size:.88rem;color:var(--accent)}
.rfb-admin-stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;margin:20px 0}
.rfb-admin-stat{padding:18px 20px;text-align:center}
.rfb-admin-stat__label{margin:0 0 6px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.rfb-admin-stat__value{margin:0;font-family:var(--font-display);font-size:1.85rem;color:var(--accent)}
.rfb-admin-section-title{font-size:1.05rem;font-variant:small-caps;color:var(--accent);margin:0 0 14px;letter-spacing:.05em}
.rfb-admin-distribution{margin-bottom:20px;padding:22px 24px}
.rfb-admin-bar-row{display:grid;grid-template-columns:48px 1fr 36px;align-items:center;gap:10px;margin-bottom:8px;font-size:.85rem}
.rfb-admin-bar-track{height:10px;border-radius:999px;background:var(--cream-dark);overflow:hidden}
.rfb-admin-bar-fill{height:100%;background:linear-gradient(90deg,var(--accent-light),var(--accent));border-radius:999px;min-width:2px}
.rfb-admin-bar-count{text-align:right;color:var(--muted)}
.rfb-admin-topic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.rfb-admin-topic-item{padding:12px 14px;border:1px solid var(--border);border-radius:4px;background:var(--cream)}
.rfb-admin-topic-name{display:block;font-size:.92rem;color:var(--ink);margin-bottom:4px}
.rfb-admin-topic-meta{font-size:.78rem;color:var(--muted)}
.rfb-admin-summary-actions{margin:0 0 20px}
.rfb-admin-summary-note{margin-top:10px}
.rfb-admin-status--error{color:var(--wound)}
.rfb-admin-summary-card{margin-bottom:24px;padding:22px 24px}
.rfb-admin-summary-body{white-space:pre-wrap;line-height:1.6;color:var(--ink-mid);font-size:.95rem}
.rfb-admin-table-card{margin-top:8px;padding:0;overflow-x:auto}
.rfb-admin-table{width:100%;border-collapse:collapse;font-size:.9rem}
.rfb-admin-table th,.rfb-admin-table td{padding:10px 12px;border-bottom:1px solid var(--rule-light);text-align:left;vertical-align:top}
.rfb-admin-table th{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--rule)}
.rfb-admin-stars{color:var(--accent);letter-spacing:.05em}
.rfb-admin-stars-dim{color:var(--cream-dark)}
.rfb-admin-comments{max-width:360px;line-height:1.45;white-space:pre-wrap;word-break:break-word}

@media print{
  .app-nav,.btn-row,.no-print{display:none!important}
  body{padding-top:0}
  body::before,body::after{display:none}
  .wrap{max-width:100%;padding:24px}
}
