:root {
  --page: 1168px; --header-h: 61px; --below-header: 12px;
  /* One card system: white cards share a radius and a soft shadow; brand accents use the Miami-to-Sunrise line. */
  /* Corners: small marks 8, fields and buttons 12, boxes inside a card 14, cards 20, pills. */
  --r-sm: 8px; --r-field: 12px; --r-inner: 14px; --r-card: 20px; --r-pill: 999px;
  /* Three shadows: a resting card, a card lifted on hover, a pop-up menu. */
  --shadow-card: 0 1px 2px rgba(17, 24, 38, .04), 0 6px 20px rgba(17, 24, 38, .045);
  --shadow-lift: 0 2px 4px rgba(17, 24, 38, .04), 0 14px 34px rgba(17, 24, 38, .09);
  --shadow-pop: 0 2px 6px rgba(17, 24, 38, .06), 0 16px 40px rgba(17, 24, 38, .14);
  /* Two control heights: regular 44, compact 36 (44 on phones and touch screens, below). */
  --h-control: 44px; --h-compact: 36px;
  /* Spacing scale for card padding and section gaps. */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px; --sp-12: 48px;
  /* Four heading sizes: page title (display), section, card title, small heading. Stat numbers and quotes keep their own sizes. */
  --fs-h1: clamp(40px, 6.4vw, 60px); --fs-h2: clamp(30px, 4.4vw, 40px); --fs-h3: clamp(24px, 3vw, 28px); --fs-h4: 20px;
  /* Each heading size has one line-height and one letter-spacing (display font): big titles sit tight, small ones get air. */
  --lh-h1: .95; --lh-h2: 1; --lh-h3: 1.05; --lh-h4: 1.2;
  --ls-h1: .01em; --ls-h2: .01em; --ls-h3: .02em; --ls-h4: .04em;
  /* Icons: one stroke (2), two sizes. */
  --icon: 20px; --icon-lg: 24px;
  /* Motion: one duration and one easing for hovers and small entrances, one lift for cards. All zero under reduced motion. */
  --dur: .2s; --ease: cubic-bezier(.2, .7, .2, 1); --lift: -2px;
  /* Pills: status, tags and counts share one height. */
  --h-pill: 24px;
  --brand-line: linear-gradient(90deg, var(--miami), var(--sunrise));
  /* Neutral greys between the brand tokens (one name per shade; near-duplicates were merged). */
  --line-soft: #eef1f6;      /* hairlines inside cards, quiet fills */
  --border: #d5dbe6;         /* chip and quiet-button outlines */
  --border-strong: #b9c2d3;  /* hover outlines, switch off, drop zone */
  --field-line: #8a93a6;     /* every form field (3:1 on white) */
  --text-2: #3b4558;         /* secondary body text */
  --fill-soft: #f8f9fc;      /* soft grey boxes ("still to come", glance cards) */
  --on-dark-muted: #c9d0dc;  /* quiet text on the dark notice and page-ask */
  /* Miami tints and inks */
  --miami-tint: #f2fbfd; --miami-line: #9fd9e8; --miami-hover: #19b3d6; --miami-ink-hover: #005a70; --on-miami: #06222b;
  /* Danger tints */
  --danger-ink: #8f1c13; --danger-wash: #fde8e6; --danger-tint: #fff5f4; --danger-line: #f1c4bf;
  /* Type scale: tags, small/labels, UI, compact text, body, card titles, lead. Headings use --fs-h1..h4 above. */
  --fs-xs: 12px; --fs-sm: 13px; --fs-ui: 14px; --fs-md: 15px; --fs-body: 16px; --fs-title: 17px; --fs-lead: 18px;
  /* Chart facts: each element takes a brand colour (fire Sunrise, earth Matt Blue, air Royal Rolex, water Miami).
     Washes and inks are derived so text stays at WCAG AA (4.8:1 or more); --magic is never used. */
  --el-fire: var(--sunrise-wash); --el-fire-ink: var(--sunrise-ink); --el-earth: #e3f0f2; --el-earth-ink: #33666f;
  --el-air: #eceff6; --el-air-ink: #4a5b7a; --el-water: var(--miami-wash); --el-water-ink: var(--miami-ink);
  --go: #18703d; --go-wash: #e5f5ec; --stop: #b83232; --stop-wash: #fdeceb;
}
@media (max-width: 640px), (pointer: coarse) { :root { --h-compact: var(--h-control); } }
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--below-header)); }
/* Reduced motion, in one place: nothing moves. No transitions or animations (entrances show at once, pulses stop),
   no hover or press transforms, and a loading button shows a still dotted ring instead of a spinning one. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { --dur: 0s; --lift: 0px; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .me-menu summary:hover, .button:active, button.copy:active, .hero-card:hover .hero-card-go, .member .tabs a:active .tab-icon, .composer-send:active, .video a:hover .video-play { transform: none !important; }
  .button.is-loading::before { border-style: dotted !important; border-right-color: currentColor !important; }
}
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
a { color: var(--miami-ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--bg3); padding: 8px 12px; border-radius: var(--r-sm); z-index: 20; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--miami-ink); outline-offset: 2px; }

/* Site chrome */
.preview-banner { background: var(--sunrise); color: var(--text); padding: 8px 16px; text-align: center; font-weight: 600; font-size: var(--fs-md); }
/* A 44px tap target on phones without making the banner taller. */
.preview-banner a { color: inherit; display: inline-block; padding: 12px 6px; margin: -12px -6px; }
/* The header: Matteen's wordmark | AI, the member tabs in the middle, and the account menu. Soft white, one hairline below. */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
/* A thin Miami-to-Sunrise line along the header's foot. */
header.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-line); pointer-events: none; }
.site-inner { max-width: var(--page); margin: 0 auto; padding: 0 16px; min-height: 60px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 84px; display: block; }
.product { white-space: nowrap; font: 700 var(--fs-sm)/1.2 var(--sans); letter-spacing: .1em; color: var(--text); padding-left: 10px; border-left: 1.5px solid var(--line); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-actions form { margin: 0; }
.admin-link { display: inline-flex; align-items: center; min-height: var(--h-control); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg3); color: var(--text); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.admin-link:hover { border-color: var(--miami); color: var(--miami-ink); }
.me-menu { position: relative; }
.me-menu summary { list-style: none; display: grid; place-items: center; width: var(--h-control); height: var(--h-control); border-radius: 50%; background: var(--text); color: #fff; cursor: pointer; transition: transform var(--dur) var(--ease); }
.me-menu summary::-webkit-details-marker { display: none; }
.me-menu summary:hover { transform: scale(1.05); }
.me-menu summary svg { width: var(--icon); height: var(--icon); }
.me-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 230px; padding: 6px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-inner); box-shadow: var(--shadow-pop); animation: pop var(--dur) var(--ease) both; }
.me-email { margin: 0; padding: 8px 10px 10px; font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.me-out { width: 100%; min-height: 44px; margin-top: 4px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; font-size: var(--fs-md); font-weight: 600; text-align: left; cursor: pointer; }
.me-out:hover { background: var(--bg); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
/* Admin's tabs: a row under the header. */
.tabs { border-top: 1px solid var(--line); }
.tabs-inner { max-width: var(--page); margin: 0 auto; padding: 0 16px; display: flex; gap: 4px 22px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; min-height: 46px; padding: 0; font-size: var(--fs-md); font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--miami); }
/* The footer line runs between the page edges, like the content above it. */
.site-footer { width: calc(100% - 32px); max-width: calc(var(--page) - 48px); margin: 24px auto 0; padding: 18px 0 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer img { width: 64px; opacity: .6; }

/* Reading column */
.wrap { max-width: var(--page); margin: 0 auto; padding-block: 24px 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow-accent { color: var(--miami-ink); margin-top: 4px; }
h1, h2 { font-family: var(--head); font-weight: 400; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); margin: 8px 0 16px; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin: 0 0 12px; }
.lede { font-size: var(--fs-lead); color: var(--muted); margin: 0; max-width: 34em; }
.hero { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; padding: 22px 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: linear-gradient(120deg, var(--bg3) 0%, var(--miami-wash) 60%, var(--sunrise-wash) 100%); }
.hero > div { min-width: 0; }

.card4 { margin-top: var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-4); box-shadow: var(--shadow-card); }
.card4-title { margin-bottom: 6px; }
.card4-heading { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.card4-heading a { color: inherit; }
.card4 .row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.card4 .row:first-of-type { border-top: 0; }
.card4 .k { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--miami-ink); font-weight: 700; }
.card4 .v { font-size: 20px; font-weight: 700; line-height: 1.3; text-wrap: balance; min-width: 0; }
.card4 .v span { background: linear-gradient(transparent 64%, var(--sunrise-wash) 64%); }

nav.toc { background: var(--bg); margin: 24px 0 0; padding: 10px 0; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
nav.toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); font-weight: 600; color: var(--muted); text-decoration: none; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg3); }
nav.toc a:hover, nav.toc a:focus-visible { color: var(--miami-ink); border-color: var(--miami); }
section { padding-top: 36px; }
.chap { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.chap .n { font-size: var(--fs-sm); font-weight: 700; color: var(--miami-ink); letter-spacing: .1em; text-transform: uppercase; }
.intro { color: var(--muted); margin: 0 0 18px; }
.cite { color: var(--muted); }
.reading { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.chip { color: var(--muted); background: var(--bg3); }
.chip b { color: var(--text); font-weight: 600; }
/* Unknown birth time: what a fact could be, folded under its chip. */
.possible { margin-top: 4px; font-size: var(--fs-ui); }
.possible summary { cursor: pointer; color: var(--miami-ink); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.possible ul { margin: 4px 0 0; padding-left: 1.1em; display: grid; gap: 2px; }
.possible-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.line { font-size: clamp(22px, 3.6vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin: 6px 0 22px; padding: 18px 20px; border-radius: var(--r-inner); background: var(--sunrise-wash); text-wrap: balance; }
.line small { display: block; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--sunrise-ink); font-weight: 700; margin-bottom: 6px; }
.block { padding: 16px 0; border-top: 1px solid var(--line); }
.block h3 { font-family: var(--head); font-weight: 400; font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); color: var(--muted); margin: 0 0 6px; }
.block p { margin: 0; }
.quote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; margin: 4px 0 0; padding-left: 16px; border-left: 3px solid var(--sunrise); }
.quote-miami { border-left-color: var(--miami); }
.opp { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: stretch; margin-top: 6px; }
.opp > div { min-width: 0; }
.opp .side { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); padding: 12px 14px; }
.opp .s { font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.opp .t { font-weight: 600; margin-top: 2px; }
.opp .arrow { align-self: center; justify-self: center; transform: rotate(90deg); color: var(--miami-ink); font-size: 22px; }
.pp { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.pp li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.pp li > div { min-width: 0; }
.tag { margin-top: 3px; }
.tag.pull { background: var(--miami-wash); color: var(--miami-ink); }
.tag.push { background: var(--sunrise-wash); color: var(--sunrise-ink); }
.pp .a { font-weight: 600; }
.meter { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 8px 0 10px; }
.meter div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 6px; text-align: center; font-size: var(--fs-sm); color: var(--muted); background: var(--bg3); }
.meter div b { display: block; font-size: var(--fs-ui); color: var(--muted); }
.meter div.on { border-color: var(--sunrise); background: var(--sunrise-wash); color: var(--sunrise-ink); }
.meter div.on b { color: var(--text); }
.say { margin-top: 8px; font-family: var(--serif); font-size: 21px; line-height: 1.4; font-style: italic; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); padding: 14px 16px; }
.try { margin-top: 4px; background: var(--miami-wash); border-radius: var(--r-field); padding: 14px 16px; border-top: 0; }
.try h3 { color: var(--miami-ink); }
.rare { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rare > div { min-width: 0; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-inner); padding: 16px; }
.rare h3 { margin: 0 0 6px; font-size: var(--fs-lead); }
.rare p { margin: 0; color: var(--muted); }
.ai { margin-top: var(--sp-8); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-4); }
.ai p { color: var(--muted); margin: 0 0 14px; }
.provenance { margin: 28px 0 0; font-size: var(--fs-ui); color: var(--muted); }
.more { margin: 24px 0 0; }

button.copy, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: inherit; font-weight: 600; font-size: var(--fs-md); color: var(--on-accent); background: var(--button); border: 1px solid transparent; border-radius: var(--r-field); padding: 0 18px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.button-quiet { background: var(--bg3); color: var(--text); border-color: var(--border); }
.button-danger { background: var(--danger); }
.button:hover, button.copy:hover { background: var(--button-hover); color: var(--on-accent); }
.button-quiet:hover { background: var(--bg); color: var(--text); border-color: var(--muted); }
.button-danger:hover { background: var(--danger-ink); }
.button:active, button.copy:active { transform: scale(.98); }
.fact-intro { max-width: 46em; }
.fact-id { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); white-space: nowrap; }
.fact-id-bad { color: var(--danger); text-decoration: underline wavy; }
/* The AI reading card on Chart facts: a Miami edge so it stands out from the facts around it. */
.reading-card { border-left: 5px solid var(--miami); background: var(--miami-wash); }
.reading-card-draft, .reading-card-stale { border-left-color: var(--sunrise); background: var(--sunrise-wash); }
.reading-card-title { font-family: var(--head); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin-right: 6px; }
/* An AI reading: easy to read, with the cited fact IDs quiet beside each point. */
.reading-text { max-width: 42em; margin: 16px 0 24px; padding: 4px 20px 12px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--bg3); line-height: 1.6; }
.reading-text h3 { margin: 20px 0 8px; }
.reading-text ul { padding-left: 1.2em; }
.reading-text li + li { margin-top: 6px; }
.reading-text .fact-id { white-space: normal; }
.fact-hash, .fact-raw { font-size: var(--fs-xs); overflow-wrap: anywhere; }
.fact-filter { display: flex; gap: 4px 18px; flex-wrap: wrap; margin: 16px 0 8px; border-bottom: 1px solid var(--line); }
.fact-filter a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.fact-filter a[aria-current] { color: var(--text); border-bottom-color: var(--miami); }
.fact-meta-line { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 12px 0 4px; padding: 0; font-size: var(--fs-ui); color: var(--muted); }
.fact-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.fact-meta > div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-field); padding: 10px 14px; min-width: 0; }
.fact-meta dt { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.fact-meta dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.glance-card, .number-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border-radius: var(--r-inner); background: var(--fill-soft); border: 1px solid var(--line-soft); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease); }
/* Each chart card carries a straight colour tab across its top. */
.glance-card::before, .number-card::before { content: ""; position: absolute; inset: 0 14px auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent, var(--line)); }
.glance-label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.glance-value { font-size: 20px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.glance-sub { font-size: var(--fs-ui); color: var(--muted); }
.glance-hd { --accent: var(--rolex); } .glance-nu { --accent: var(--sunrise); } .glance-cz { --accent: var(--miami); }
.glance-card.el-fire { --accent: var(--sunrise); } .glance-card.el-earth { --accent: var(--matt); }
.glance-card.el-air { --accent: var(--rolex); } .glance-card.el-water { --accent: var(--miami); }
.fact-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.fact-jump a { display: inline-flex; align-items: center; min-height: var(--h-compact); padding: 0 12px; border-radius: var(--r-pill); background: var(--bg3); border: 1px solid var(--line); color: var(--text); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; }
.fact-jump a:hover { border-color: var(--miami); }
.fact-section { margin-top: 12px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); scroll-margin-top: calc(var(--header-h) + 12px); }
.fact-section > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; }
.fact-section > summary::-webkit-details-marker { display: none; }
.fact-section > summary::before { content: "▸"; font-size: var(--fs-md); color: var(--muted); }
.fact-section[open] > summary::before { content: "▾"; }
.fact-section[open] > summary { border-bottom: 1px solid var(--line); }
.fact-section-title { font-family: var(--head); font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.fact-section > :not(summary) { margin-inline: 16px; }
.fact-section > :last-child { margin-bottom: 16px; }
.fact-section > .hint, .fact-section > .table-scroll:first-of-type { margin-top: 12px; }
.count { background: var(--bg2); color: var(--muted); }
.fact-sub { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: var(--fs-body); }
.fact-more { margin-top: 14px; border-top: 1px dashed var(--line); }
.fact-more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--miami-ink); cursor: pointer; }
.sign { background: var(--bg2); color: var(--text); }
.sign.el-fire { background: var(--el-fire); color: var(--el-fire-ink); } .sign.el-earth { background: var(--el-earth); color: var(--el-earth-ink); }
.sign.el-air { background: var(--el-air); color: var(--el-air-ink); } .sign.el-water { background: var(--el-water); color: var(--el-water-ink); }
/* One pill (member and admin): status, tags and counts share height, padding, weight and corner; only the colours change. */
.pill, .count, .cx-count, .chat-tag, .chat-no-answer, .code-meta span, .mx-badge, .video-tag, .tag, .chip, .sign, .live-pill, .mx-live, .mx-sect b, .mx-more > summary b { display: inline-block; min-height: var(--h-pill); padding: 0 10px; border-radius: var(--r-pill); font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; font-style: normal; line-height: var(--h-pill); letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle; }
/* Caps tags: the same pill in small capitals. */
.mx-badge, .video-tag, .tag, .live-pill, .mx-live { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
/* Outlined pills draw their line inside, so they stay 24px. */
.pill-open, .chip, .mx-live { outline: 1px solid var(--line); outline-offset: -1px; }
.pill { background: var(--bg2); color: var(--muted); }
.pill-rx { background: var(--sunrise-wash); color: var(--sunrise-ink); }
.pill-applying { background: var(--el-earth); color: var(--el-earth-ink); }
.pill-separating { background: var(--el-air); color: var(--el-air-ink); }
.pill-defined { background: var(--miami-ink); color: var(--on-accent); }
.pill-open { background: transparent; outline-color: var(--border); }
/* A chip's words can wrap in a narrow card: a 24px pill on one line (a 12px corner is half its height), a soft box when it wraps. */
.chip { max-width: 100%; white-space: normal; line-height: 1.4; padding-block: 3px; border-radius: var(--r-field); }
.fact-section .muted { color: var(--muted); }
.fact-section .nowrap { white-space: nowrap; }
.ruler-box { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-field); background: var(--miami-wash); }
.ruler-box p { margin: 0 0 4px; }
.ruler-box ul { margin: 0; padding-left: 1.2em; }
.cusp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; list-style: none; padding: 0; margin-top: 12px; }
.cusp-grid li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.cusp-name { font-weight: 700; min-width: 4.5em; }
.center-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; list-style: none; padding: 0; margin-top: 12px; }
.center-grid li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.center-grid li > span:first-child { font-weight: 700; flex: 1 1 auto; }
.center-grid li > .fact-id { flex-basis: 100%; }
.center-defined { background: var(--miami-wash); border-color: var(--miami) !important; }
.hd-p { font-weight: 700; color: var(--text); }
.hd-d { font-weight: 700; color: var(--sunrise-ink); }
.hd-code { font-variant-numeric: tabular-nums; }
.fact-notes { margin: 0 0 8px; padding-left: 1.2em; color: var(--muted); }
.fact-list { padding-left: 1.2em; line-height: 1.7; margin-top: 12px; }
.fact-list-inline { columns: 2 240px; }
/* Birth details (admin) */
.birth-layout { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 12px; }
.birth-main { min-width: 0; }
.birth-status { margin-top: 0; background: var(--miami-wash); border-color: var(--miami); }
.birth-group { margin: 16px 0 0; padding: 6px 16px 18px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-inner); min-width: 0; }
.birth-group legend { padding: 0 8px; font-family: var(--head); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); color: var(--miami-ink); }
.birth-group .field { margin-top: 12px; }
.birth-group > .hint { margin-top: 8px; }
.birth-pair { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.birth-pair .field { display: flex; flex-direction: column; }
.birth-pair .field input { margin-top: auto; }
.birth-aside { align-self: start; padding: var(--sp-4); background: var(--bg3); border: 1px solid var(--line); border-left: 4px solid var(--sunrise); border-radius: var(--r-inner); }
.birth-aside h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin: 0 0 8px; }
.birth-aside ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: var(--fs-md); line-height: 1.5; }
/* Birthplace lookup: the Look up button beside the field, then the places found as buttons. */
.place-row { display: flex; gap: 8px; align-items: stretch; }
.place-row input { flex: 1; min-width: 0; }
.place-results { margin-top: 10px; }
.place-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.place-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; text-align: left; color: var(--text); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.place-pick:hover, .place-pick:focus-visible { border-color: var(--miami); background: var(--miami-wash); }
.place-pick span { font-size: var(--fs-ui); color: var(--muted); }
.place-credit { margin-top: 8px; }
@media (min-width: 641px) { .birth-pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .birth-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } .birth-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.button.is-loading { cursor: progress; opacity: .8; filter: none; }
.button.is-loading::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { display: block; margin: 8px 0 0; font-size: var(--fs-ui); color: var(--muted); }
.status:empty { display: none; }
textarea { width: 100%; min-height: 160px; margin-top: 12px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-field); padding: 10px 12px; }

/* House wheel */
svg.wheel { width: 100%; max-width: 250px; height: auto; display: block; margin: 0 auto; }
.w-seg { fill: var(--bg3); stroke: var(--line); stroke-width: 1; }
.w-you { fill: var(--bg); }
.w-buy { fill: var(--miami-wash); }
.w-deal { fill: var(--sunrise-wash); }
.w-num { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.w-key { fill: var(--text); font-weight: 700; font-size: var(--fs-sm); }
.w-lab { font-size: 8.5px; font-family: var(--sans); font-weight: 700; letter-spacing: .06em; }
.w-m { fill: var(--miami-ink); }
.w-c { fill: var(--sunrise-ink); }
.w-g { fill: var(--muted); font-weight: 400; letter-spacing: 0; }
.w-arc-m { fill: none; stroke: var(--miami); stroke-width: 4; stroke-linecap: round; }
.w-arc-c { fill: none; stroke: var(--sunrise); stroke-width: 4; stroke-linecap: round; }
.w-hub { fill: var(--bg3); stroke: var(--line); }
.legend { display: flex; gap: 14px; justify-content: center; font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sw-m { background: var(--miami); }
.sw-c { background: var(--sunrise); }

/* Dashboard: a soft Miami-to-Sunrise banner with the zodiac wheel, and the latest book overlapping it */
.zodiac-bg { position: absolute; pointer-events: none; }
.dash-hero, .page-hero { position: relative; overflow: hidden; margin: 0; padding: 28px 20px 96px; border-radius: var(--r-card); background: linear-gradient(120deg, var(--bg3) 0%, var(--miami-wash) 55%, var(--sunrise-wash) 100%); border: 1px solid var(--line); }
.dash-hero .zodiac-bg, .page-hero .zodiac-bg { width: 300px; height: 300px; right: -110px; top: -70px; }
.dash-hero > :not(.zodiac-bg), .page-hero > :not(.zodiac-bg) { position: relative; }
.dash-hero .eyebrow, .page-hero .eyebrow { color: var(--miami-ink); font-weight: 700; }
.dash-hero h1, .page-hero h1 { margin: 6px 0 8px; }
.dash-sub { margin: 0; max-width: 30em; font-size: var(--fs-title); color: var(--muted); }
.hero-card { display: flex; align-items: center; gap: 16px; padding: var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.hero-card:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-lift); border-color: var(--border); color: var(--text); }
.hero-card-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-inner); background: var(--sunrise-wash); color: var(--sunrise-ink); }
.hero-card[data-kind="webinar"] .hero-card-icon { background: var(--miami-wash); color: var(--miami-ink); }
.hero-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hero-card .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sunrise); }
.hero-card-title { font-size: var(--fs-title); }
.hero-card-for { color: var(--muted); font-size: var(--fs-ui); }
.hero-card-go { flex: none; color: var(--muted); transition: transform var(--dur) var(--ease); }
.hero-card:hover .hero-card-go { transform: translateX(3px); }

/* Dashboard: more books */
.recent { padding-top: 36px; }
.more-link { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 14px 0 0; font-weight: 600; }

/* Reading list, used on the dashboard and the Readings page */
.reading-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.reading-list a { display: block; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-inner); padding: 14px 18px; color: var(--text); text-decoration: none; }
.reading-list a:hover { border-color: var(--miami); }
.reading-list .date { display: block; font-size: var(--fs-ui); color: var(--muted); }
.reading-list .name { display: block; font-weight: 700; line-height: 1.3; margin: 2px 0; }
.reading-list .headline { display: block; color: var(--muted); font-size: var(--fs-md); line-height: 1.4; }
.year { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin: 24px 0 0; }

/* Reading switcher and Previous / Next */
.switcher { margin: 0 0 24px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); }
.switcher summary { padding: 12px 16px; cursor: pointer; font-size: var(--fs-md); line-height: 1.35; }
.switcher summary b { font-weight: 700; }
.switcher-list { list-style: none; margin: 0; padding: 4px 0; border-top: 1px solid var(--line); max-height: 50vh; overflow-y: auto; }
.switcher-list a { display: block; padding: 9px 16px; color: var(--text); text-decoration: none; font-size: var(--fs-md); line-height: 1.35; }
.switcher-list a:hover { background: var(--bg2); }
.switcher-list a[aria-current] { font-weight: 700; background: var(--miami-wash); }
.switcher-list .date { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.pager { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
.pager a { display: block; min-width: 0; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); padding: 12px 16px; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.3; }
.pager a:hover { border-color: var(--miami); }
.pager small { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.pager .newer { grid-row: 1; }
.switcher-all { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: var(--fs-md); font-weight: 600; }

/* Messages and login */
.message { padding: 16px 0 24px; }
.message .lede { margin-bottom: 20px; }
.message p:last-child { margin-bottom: 0; }
body.bare { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.bare main { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
body.bare .site-footer { width: 100%; text-align: center; }
/* Sign in: the card sits on a pale Miami-to-Sunrise wash, inside the zodiac wheel. */
body.bare { background: linear-gradient(140deg, var(--miami-wash) 0%, var(--bg3) 50%, var(--sunrise-wash) 100%); background-attachment: fixed; }
body.bare .site-footer { border-top: 0; justify-content: center; }
.login-stage { position: relative; display: grid; place-items: center; width: 100%; padding: 40px 0; }
.login-stage .zodiac-bg { width: min(640px, 150vw); height: min(640px, 150vw); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.login-card { position: relative; overflow: hidden; width: 100%; max-width: 420px; text-align: center; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-8) var(--sp-6); box-shadow: var(--shadow-pop); }
.login-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--miami), var(--sunrise)); }
.login-logo { display: block; width: 180px; margin: 0 auto 20px; }
.login-card h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin: 0 0 8px; }
.login-card .lede { font-size: var(--fs-title); margin: 0 auto 24px; }
.login-button { width: 100%; font-size: var(--fs-body); }
.login-note { margin: 16px 0 0; font-size: var(--fs-ui); color: var(--muted); }

/* Admin */
.table-scroll { margin-top: 12px; }
td form { margin: 0; }
/* On a phone each row is a card, so no column gets squeezed. */
.table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; }
.table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.table-scroll tr { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); padding: 12px 16px; margin-bottom: 10px; }
.table-scroll td { padding: 3px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; overflow-wrap: anywhere; }
.table-scroll td::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; white-space: nowrap; }
.table-scroll td.title { display: block; text-align: left; font-weight: 700; font-size: var(--fs-title); padding-bottom: 6px; overflow-wrap: break-word; }
.table-scroll td.title::before, .table-scroll td.action::before { content: none; }
.table-scroll td.action { justify-content: flex-start; padding-top: 8px; }
/* Paired up on a phone, and a button left on its own takes the whole row. */
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.row-actions > * { flex: 1 1 calc(50% - 4px); }
.row-actions .button { width: 100%; padding: 0 10px; }
.status-box-danger { border-color: var(--danger); }
.link-text { min-height: 88px; margin: 10px 0; font-size: var(--fs-ui); word-break: break-all; }
.link-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; }
.link-form .field { flex: 1 1 100%; margin: 0; }
.link-form .button { flex: 1 1 100%; }
.status-box-danger p + p { margin-top: 8px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.confirm-actions .button { flex: 1 1 100%; }

/* List controls */
.field label { display: block; font-size: var(--fs-ui); font-weight: 600; margin-bottom: 4px; }
/* One field style for every input, select and textarea (member and admin): the --field-line border, one radius,
   16px text (no zoom on phones), and the same 3px Miami-ink ring as everything else on focus. Sizes stay per component. */
.field input, .field select, .field textarea, .form select, .form input[type=file], .bulk-pick select, .chat-move select, .chat-manage input[type="text"], .biz-card textarea, .biz-row input, .slim-search select { font: inherit; font-size: var(--fs-body); color: var(--text); background: var(--bg3); border: 1px solid var(--field-line); border-radius: var(--r-field); transition: border-color var(--dur) var(--ease); }
:is(.field input, .field select, .field textarea, .form select, .form input[type=file], .bulk-pick select, .chat-move select, .chat-manage input[type="text"], .biz-card textarea, .biz-row input, .slim-search select):focus { border-color: var(--miami-ink); outline: 3px solid var(--miami-ink); outline-offset: 2px; }
.field input, .field select { width: 100%; min-height: 44px; padding: 0 12px; }
.list-summary { margin: 0 0 8px; font-size: var(--fs-ui); color: var(--muted); }
.empty { margin: 8px 0 0; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 20px; }
.pagination .page-of { font-size: var(--fs-ui); color: var(--muted); white-space: nowrap; }
.pagination [rel=prev] { justify-self: start; }
.pagination [rel=next] { grid-column: 3; justify-self: end; }
.form label { display: block; font-weight: 600; margin: 16px 0 4px; }
.form select, .form input[type=file] { width: 100%; min-height: 44px; padding: 8px 12px; }
.form textarea { font-size: var(--fs-body); margin-top: 0; }
.form p { margin: 20px 0 0; }
.notice { border-radius: var(--r-field); padding: 12px 16px; margin: 16px 0; }
.notice p { margin: 0 0 6px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice-ok { background: var(--miami-wash); }
.notice-error { background: var(--sunrise-wash); }

/* The Book of You: an overview and four linked pages */
.chapters { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
.chapters a { position: relative; overflow: hidden; display: block; min-width: 0; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-6) var(--sp-4) var(--sp-4); color: var(--text); text-decoration: none; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.chapters a:hover { transform: translateY(var(--lift)); border-color: var(--border); box-shadow: var(--shadow-lift); }
.chapters .num { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--miami-ink); font-weight: 700; }
.chapter-title { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin: 4px 0 6px; }
.chapters p { margin: 0; color: var(--muted); font-size: var(--fs-md); }
.chapters .go { display: inline-block; margin-top: 10px; font-weight: 700; font-size: var(--fs-ui); color: var(--miami-ink); }
.book-top { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.book-top .home { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font-size: var(--fs-ui); font-weight: 700; color: var(--text); text-decoration: none; }
.book-top .home span { color: var(--miami-ink); }
.book-nav { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); margin: 0 -16px 20px; padding: 0 16px 8px; border-bottom: 1px solid var(--line); }
.book-nav .book-top { margin-bottom: 0; }
.book-nav .book-top .home { min-height: 40px; }
.book-nav .book-top .eyebrow { display: none; }
.book-nav .steps { display: flex; gap: 6px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.book-nav .steps::-webkit-scrollbar { display: none; }
.book-nav .steps a { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; white-space: nowrap; }
.book-nav .steps b { display: inline; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0 0 24px; }
.steps a { position: relative; overflow: hidden; display: block; min-width: 0; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); padding: 9px 10px; color: var(--muted); font-size: var(--fs-ui); font-weight: 600; line-height: 1.25; text-decoration: none; }
.steps a:hover { border-color: var(--miami); }
.steps b { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.steps a[aria-current=page] { background: var(--miami-wash); border-color: var(--miami); color: var(--text); box-shadow: var(--shadow-card); }
.steps a[aria-current=page] b { color: var(--miami-ink); }
section.book-page { padding-top: 0; }
.page-title { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin: 0 0 12px; }
.how { font-size: var(--fs-ui); color: var(--muted); margin: -6px 0 18px; }
.how b { color: var(--miami-ink); }
.src { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.src .lab { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--miami-ink); font-weight: 700; margin-right: 2px; }
.src .d { font-size: var(--fs-sm); color: var(--muted); background: var(--miami-wash); border-radius: var(--r-sm); padding: 2px 8px; }
.rarebox { margin-top: 8px; }
.rare h4 { font-size: var(--fs-lead); line-height: 1.3; margin: 0 0 6px; }
.prompt details { margin-top: 10px; }
.chart-prompt { margin: var(--sp-8) 0 var(--sp-2); padding: var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.chart-prompt h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin: 0 0 6px; }
.chart-prompt .hint { margin-bottom: 12px; }
.chart-prompt details { margin-top: 10px; }
.chart-prompt summary { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-md); font-weight: 700; color: var(--miami-ink); cursor: pointer; }
.chart-prompt textarea { min-height: 360px; margin-top: 4px; }
.prompt summary { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-md); font-weight: 700; color: var(--miami-ink); cursor: pointer; }
.prompt textarea { min-height: 420px; margin-top: 4px; }
.next { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.next a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 16px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-inner); box-shadow: var(--shadow-card); font-size: var(--fs-body); font-weight: 700; color: var(--miami-ink); text-align: center; text-decoration: none; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.chapters + .provenance { margin-top: 24px; }
.card4 .fl { font-size: var(--fs-ui); font-weight: 400; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.legend2 { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-ui); color: var(--muted); margin: -6px 0 18px; }
.line .full { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; letter-spacing: 0; margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--sunrise-ink) 25%, transparent); }
.line .full span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sunrise-ink); font-weight: 700; margin-bottom: 3px; }
.line .src { margin-top: 12px; letter-spacing: 0; line-height: 1.5; }
.line .src .lab { color: var(--sunrise-ink); }
.line .src .d { background: var(--bg3); font-weight: 400; }
.block.good, .block.stop { border-top: 0; border-radius: var(--r-inner); padding: 16px; margin: 10px 0; }
.block.good { background: var(--go-wash); border-left: 4px solid var(--go); }
.block.stop { background: var(--stop-wash); border-left: 4px solid var(--stop); }
.block.good > h3 { color: var(--go); }
.block.stop > h3 { color: var(--stop); }
.block.good .src .d, .block.stop .src .d { background: var(--bg3); }
.block.good + .block:not(.good, .stop, .try), .block.stop + .block:not(.good, .stop, .try) { border-top: 0; }
.book-page .tag.pull { background: var(--go-wash); color: var(--go); }
.book-page .tag.push { background: var(--stop-wash); color: var(--stop); }
.book-page .rarebox > div { border-color: var(--go); background: var(--go-wash); }
.book-page .rarebox .src .d { background: var(--bg3); }
.prompt .two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 6px; }
.prompt .pc { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-inner); padding: 16px; }
.prompt .pc.easy { border: 2px solid var(--go); background: var(--go-wash); }
.prompt .pc h3 { font-family: var(--head); font-weight: 400; font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); margin: 4px 0; }
.btnote { position: relative; border: 1px solid var(--line); background: var(--sunrise-wash); border-radius: var(--r-field); padding: 12px 16px; margin: 14px 0 18px; font-size: var(--fs-md); line-height: 1.5; }
.btnote::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--sunrise); }
.btnote b { font-weight: 700; }
.certainwrap { margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; background: var(--bg3); }
.certainwrap .eyebrow { display: flex; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; }
.certain { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 0; }
.certain div { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-field); padding: 10px 12px; }
.certain b { display: block; font-size: 20px; color: var(--miami-ink); }
.certain span { font-size: var(--fs-sm); color: var(--muted); }
.pending { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--sunrise-ink); font-weight: 700; }
.certain-note { font-size: var(--fs-ui); color: var(--muted); margin: 10px 0 0; }
.block.wait { border: 1px dashed var(--line); border-radius: var(--r-inner); padding: 14px 16px; margin: 10px 0; }
.block.wait > h3 { color: var(--muted); }
.block.wait + .block:not(.good, .stop, .wait, .try) { border-top: 0; }
/* Member pages open with a plain title: a small label, the title, one line under it. No banner. */
.page-hero { overflow: visible; padding: 4px 0 6px; border: 0; border-radius: 0; background: none; }
.page-hero .zodiac-bg { display: none; }
.page-hero .eyebrow { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); }
.page-hero h1 { margin: 6px 0 8px; }
.page-hero .dash-sub { margin: 0; font-size: var(--fs-title); }
/* Page labels: a short brand bar, then the label in Miami ink. */
.page-hero > .eyebrow, .codes-head .eyebrow, .charts-head .eyebrow { color: var(--miami-ink); font-weight: 700; }
.page-hero > .eyebrow::before, .codes-head .eyebrow::before, .charts-head .eyebrow::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 10px; border-radius: 2px; vertical-align: middle; background: var(--brand-line); }
.code-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.code-hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.code-hero[data-kind="webinar"] .eyebrow::before { background: var(--miami); } .code-hero[data-kind="private_session"] .eyebrow::before { background: var(--sunrise); } .code-hero[data-kind="special_reading"] .eyebrow::before { background: var(--rolex); }

/* A book's front page: the heading sits in a soft brand banner; page links are numbered cards */
.hero h1 { margin-bottom: 10px; }
.hero .lede { margin-bottom: 0; }
.chapters a::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--miami), var(--sunrise)); }
/* The page number is drawn by CSS, so the page's text stays exactly as the book was written (imports check it). */
.chapters { counter-reset: page; }
.chapters a { counter-increment: page; }
.chapters a::after { content: counter(page); position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--miami-wash); color: var(--miami-ink); font-family: var(--head); font-size: 24px; line-height: 1; }
.chapters .num, .chapters .chapter-title { padding-right: 48px; }

/* A book's inner page: the title area gets the same wash; the page you're on is underlined in brand colours */
/* CSS only: imports compare the page's structure with the original book, so no wrapper is added. */
.book-page { padding-top: 22px; border-radius: var(--r-card) var(--r-card) 0 0; background: linear-gradient(180deg, transparent 0, var(--bg) 100%) top / 100% 280px no-repeat, linear-gradient(120deg, var(--bg3) 0%, var(--miami-wash) 60%, var(--sunrise-wash) 100%) top / 100% 280px no-repeat; }
.book-page > .chap, .book-page > .page-title, .book-page > .intro, .book-page > .reading { padding-inline: 18px; }
.steps a[aria-current=page]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--miami), var(--sunrise)); }
.next a:hover { border-color: var(--miami); transform: translateY(var(--lift)); }

.locked { position: relative; margin-top: 4px; border-radius: var(--r-field); overflow: hidden; border: 1px dashed var(--line); }
.locked pre { margin: 0; max-height: 170px; overflow: hidden; filter: blur(5px); user-select: none; -webkit-user-select: none; pointer-events: none; opacity: .7; white-space: pre-wrap; font-size: var(--fs-xs); padding: 12px; }
.lockbadge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-lead); letter-spacing: .04em; color: var(--text); background: color-mix(in srgb, var(--bg3) 35%, transparent); }
.terms { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.terms li { background: var(--bg3); border: 1px solid var(--line); border-left: 4px solid var(--miami); border-radius: var(--r-field); padding: 12px 14px; }
.trio { width: 100%; max-width: 250px; height: auto; display: block; margin: 0 auto; }
.trio .c1 { fill: var(--miami-wash); stroke: var(--miami); stroke-width: 2; }
.trio .c2 { fill: var(--sunrise-wash); stroke: var(--sunrise); stroke-width: 2; fill-opacity: .85; }
.trio .c3 { fill: none; stroke: var(--miami-ink); stroke-width: 2; stroke-dasharray: 5 4; }
.trio text { font-family: var(--sans); font-weight: 700; font-size: var(--fs-md); fill: var(--text); }
.trio .sub { font-weight: 600; font-size: 11px; fill: var(--muted); letter-spacing: .08em; }
.prompt .pc .copy { width: 100%; max-width: 100%; height: auto; min-height: 44px; white-space: normal; text-align: center; justify-content: center; }
.prompt .tagline { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.prompt .pc.easy .tagline { color: var(--go); }

/* The smallest phones need a tighter header to keep everything on one row. */
@media (max-width: 359px) {
  .brand img { width: 70px; }
  .brand { gap: 8px; }
  .product { padding-left: 8px; }
  .site-actions { gap: 6px; }
  .admin-link { padding: 0 10px; }
}

/* Sample JSON on the upload page */
.samples { padding: 0; margin: 16px 0 24px; }
.samples > p { margin: 0 0 12px; }
.sample-name { margin: 16px 0 8px; font-size: var(--fs-body); }
.sample-view { margin-top: 8px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); }
.sample-view summary { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.sample-view pre { margin: 0; padding: 12px 16px; max-height: 60vh; overflow: auto; border-top: 1px solid var(--line); font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Admin edit forms */
.back { margin: 0 0 8px; font-size: var(--fs-md); }
.review-book { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-book h2 { margin: 2px 0 10px; }
/* Upload: which kind of zip goes where */
.upload-choices { display: grid; gap: 12px; margin: 12px 0; }
.upload-choice { padding: 14px 16px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); }
.upload-choice h3 { margin: 0 0 6px; font-size: var(--fs-title); }
.upload-choice ul { margin: 0 0 8px; padding-left: 20px; }
.upload-choice li { margin-bottom: 4px; }
.upload-choice p { margin: 0; }
.upload-choice a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 641px) { .upload-choices { grid-template-columns: 1fr 1fr; } }
.member-pick { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.member-pick legend { font-size: var(--fs-ui); font-weight: 600; padding: 0; margin-bottom: 4px; }
.member-find { font: inherit; font-size: var(--fs-body); width: 100%; min-height: 44px; padding: 0 12px; margin: 6px 0; color: var(--text); background: var(--bg3); border: 1px solid var(--muted); border-radius: var(--r-sm); }
.picks { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 12px; background: var(--bg3); }
.picks [hidden] { display: none; }
.back a { display: inline-flex; align-items: center; min-height: 44px; }
.page-action { margin: 0 0 16px; }
.section-gap { margin-top: 32px; }
.edit-form .field { margin-top: 14px; }
.field textarea { line-height: 1.5; width: 100%; min-height: 0; margin: 0; padding: 10px 12px; }
.hint { margin: 0 0 4px; font-size: var(--fs-ui); line-height: 1.4; color: var(--muted); }
.req { font-weight: 400; color: var(--muted); }
.field-check { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: center; min-height: 44px; }
.field-check input { width: 24px; height: 24px; min-height: 0; margin: 0; }
.field-check label { margin: 0; font-size: var(--fs-md); }
.field-check .hint { grid-column: 2; margin: 2px 0 0; }
.form-section { margin-top: 10px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-field); }
.form-section > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; font-family: var(--head); font-size: var(--fs-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); cursor: pointer; }
.form-section > summary::before { content: "▸"; font-family: var(--sans); font-size: var(--fs-md); color: var(--muted); }
.form-section[open] > summary::before { content: "▾"; }
.form-section-body { padding: 4px 16px 18px; border-top: 1px solid var(--line); }
.form-section-body > .hint { margin-top: 12px; }
.group { margin: 16px 0 0; padding: 4px 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 0; }
.group legend { padding: 0 6px; font-size: var(--fs-ui); font-weight: 700; color: var(--muted); }
.save-bar { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 8px; margin: 14px -16px 0; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
.save-bar .button { flex: 1; }
.save-row { margin-top: 18px; }
.save-row .button { width: 100%; }
.status-box { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; padding: 12px 16px; border-radius: var(--r-field); background: var(--bg3); border: 1px solid var(--line); }
.status-box p { margin: 0; }
.status-box-draft { background: var(--sunrise-wash); border-color: var(--sunrise); }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-actions form { margin: 0; }
.hero-single { grid-template-columns: 1fr; }
.general-summary { margin-top: 20px; }
.general-text { white-space: pre-line; max-width: 46em; margin: 0 0 16px; }
.general-section { padding-top: 28px; }
.general-closing { margin-top: 28px; }

/* Admin: each list opens with a compact brand banner; statuses are coloured pills */
.admin-head { position: relative; overflow: hidden; display: grid; gap: 4px 24px; margin: 0 0 16px; padding: 24px 20px 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: linear-gradient(120deg, var(--bg3) 0%, var(--miami-wash) 60%, var(--sunrise-wash) 100%); }
.admin-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--miami), var(--sunrise)); }
.admin-head h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); margin: 0 0 6px; }
.admin-head p { margin: 0; max-width: 46em; }
.admin-head .page-action { margin: 12px 0 0; }
.pill-ok { background: var(--miami-wash); color: var(--miami-ink); }
.pill-warn { background: var(--sunrise-wash); color: var(--sunrise-ink); }
.chart-note { background: var(--sunrise-wash); }
/* Bulk actions: a bar above the list; ticking rows joins them to its form */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; padding: 12px 16px; background: var(--bg3); border: 1px solid var(--line); border-left: 4px solid var(--miami); border-radius: var(--r-inner); box-shadow: var(--shadow-card); }
.bulk-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: var(--fs-md); }
.bulk-all[hidden] { display: none; }
.bulk-count { font-size: var(--fs-ui); color: var(--muted); flex: 1 1 160px; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-pick { display: inline-flex; gap: 6px; }
.bulk-pick select { min-height: var(--h-compact); padding: 0 10px; }
.bulk-all input, .table-scroll td.pick input { width: 20px; height: 20px; accent-color: var(--miami-ink); }
.table-scroll td.pick { justify-content: flex-start; }
.pill-cat-client { background: var(--miami-wash); color: var(--miami-ink); }
.pill-cat-staff { background: var(--el-air); color: var(--el-air-ink); }
.pill-cat-owner { background: var(--sunrise-wash); color: var(--sunrise-ink); }
.table-scroll tr { box-shadow: var(--shadow-card); }

/* Larger screens build on the phone layout above. */
@media (min-width: 641px) {
  :root { --below-header: 20px; }
  body { font-size: var(--fs-title); }
  .site-inner { min-height: 66px; padding-inline: 24px; }
  .brand img { width: 100px; }
  .product { font-size: var(--fs-ui); }
  .wrap { padding-block: 40px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
  .site-footer { width: calc(100% - 48px); }
  .lede { font-size: 19px; }
  .hero { grid-template-columns: 1fr 250px; gap: 28px; }
  .hero.hero-single { grid-template-columns: 1fr; }
  .card4 { margin-top: 30px; padding: 22px 24px; }
  .card4 .row { grid-template-columns: 96px 1fr; gap: 14px; }
  nav.toc { position: sticky; top: var(--header-h); z-index: 5; margin-top: 28px; }
  section { padding-top: 44px; }
  .opp { grid-template-columns: 1fr auto 1fr; }
  .opp .arrow { transform: none; }
  .meter { grid-template-columns: repeat(4, 1fr); }
  .rare { grid-template-columns: repeat(2, 1fr); }
  .ai { margin-top: 44px; padding: 22px 24px; }
  .chapters { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .chapters a { padding: 18px 20px; }
  .steps { grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; }
  .book-nav { margin: 0 0 30px; padding: 4px 0 10px; }
  .book-nav .steps { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .book-nav .steps a { display: block; min-height: 0; padding: 9px 10px; white-space: normal; }
  .book-nav .steps b { display: block; }
  .book-nav .book-top .eyebrow { display: inline; }
  .next { margin-top: 30px; }
  .status { display: inline; margin: 0 0 0 10px; }
  .dash-hero { padding: 40px 32px 104px; }
  .dash-hero .zodiac-bg, .page-hero .zodiac-bg { width: 420px; height: 420px; right: -40px; top: -70px; }
  .hero { padding: 30px 32px; }
  .book-page { padding-top: 30px; }
  .book-page > .chap, .book-page > .page-title, .book-page > .intro, .book-page > .reading { padding-inline: 28px; }
  .next { grid-template-columns: 1fr 1fr; }
  .next a:last-child { grid-column: 2; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .newer { grid-column: 2; grid-row: auto; text-align: right; }
  .message { padding: 32px 0; }
  .login-card { padding: 44px 40px 32px; }
  .admin-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 28px 28px 22px; }
  .admin-head .page-action { margin: 0; }

  .status-box { flex-direction: row; align-items: center; justify-content: space-between; }
  .save-bar { margin-inline: 0; padding-inline: 0; }
  .save-bar .button { flex: 0 1 auto; }
  .save-row .button { width: auto; }
  .member-form { max-width: 560px; }
  .group { padding-inline: 16px; }
}

/* Tables need real width, so rows stay as cards until there's room for every column. */
@media (min-width: 1000px) {
  .table-scroll { overflow-x: auto; }
  .table-scroll table { display: table; border-collapse: collapse; font-size: var(--fs-md); background: var(--bg3); }
  .table-scroll thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .table-scroll tbody { display: table-row-group; }
  .table-scroll tr { display: table-row; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; }
  .table-scroll th, .table-scroll td, .table-scroll td.title, .table-scroll td.action { display: table-cell; width: auto; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: var(--fs-md); font-weight: 400; }
  .table-scroll td::before { content: none; }
  .table-scroll table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
  .table-scroll thead th { background: var(--bg2); }
  .table-scroll tbody tr:last-child td { border-bottom: 0; }
  .table-scroll tbody tr:hover td { background: var(--miami-tint); }
  .table-scroll tr { box-shadow: none; }
  .table-scroll th { color: var(--muted); font-weight: 600; white-space: nowrap; }
  .table-scroll .nowrap { white-space: nowrap; }
  .table-scroll td.action { text-align: right; }
  .table-scroll th.pick, .table-scroll td.pick { width: 44px; padding-right: 0; }
  .row-actions { justify-content: flex-end; gap: 6px; }
  .row-actions > * { flex: 0 0 auto; }
  .row-actions .button { width: auto; min-height: var(--h-compact); padding: 0 12px; font-size: var(--fs-ui); }
  .confirm-actions .button { flex: 0 1 auto; }
  .link-form .field { flex: 0 1 220px; }
  .link-form .button { flex: 0 1 auto; }
}

/* At full width, a label beside its text keeps reading lines a comfortable length. */
@media (min-width: 900px) {
  .block { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 32px; }
  .block > h3 { grid-column: 1; margin: 0; }
  .block > :not(h3) { grid-column: 2; }
  .intro { max-width: 46em; }
  .rare { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .ai p { max-width: 46em; }
}

/* Member tabs: Codes · Ask · Charts · Private. A pill switcher in the middle of the header on wide screens; a bottom bar on phones. */
.tab-icon { width: var(--icon); height: var(--icon); flex: none; }
.member .tabs { border: 0; }
.member .tabs a { gap: 8px; border-bottom: 0; }
@media (min-width: 641px) {
  .member .site-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .member .site-actions { justify-self: end; }
  .member .tabs-inner { padding: 4px; gap: 2px; flex-wrap: nowrap; background: var(--line-soft); border-radius: var(--r-pill); }
  .member .tabs a { min-height: var(--h-compact); padding: 0 18px; border-radius: var(--r-pill); font-size: var(--fs-ui); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .member .tabs a[aria-current] { background: var(--bg3); color: var(--text); box-shadow: var(--shadow-card); }
}
@media (max-width: 640px) {
  body.member { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* A field or button the browser scrolls to (next field, a form error, Tab) stops above the bottom tabs, not under them. */
  html:has(> body.member) { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .member .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  /* Three fixed slots, so Ask stays in the middle even for a member with no Charts tab. */
  .member .tabs-inner { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 0; padding: 6px max(8px, env(safe-area-inset-right, 0px)) 6px max(8px, env(safe-area-inset-left, 0px)); }
  .member .tabs a { flex-direction: column; justify-content: center; gap: 3px; min-width: 84px; min-height: 58px; font-size: var(--fs-xs); }
  .member .tabs a[aria-current] { color: var(--text); }
  .member .tabs a[aria-current] .tab-icon { color: var(--miami); }
  .member .tabs .tab-icon { width: var(--icon-lg); height: var(--icon-lg); transition: transform var(--dur) var(--ease); }
  .member .tabs a:active .tab-icon { transform: scale(.92); }
  .member .tabs a[data-tab="codes"] { grid-column: 1; }
  .member .tabs a[data-tab="ask"] { grid-column: 2; }
  .member .tabs a[data-tab="charts"] { grid-column: 3; }
  /* Private takes the third slot, or a fourth when there's a Charts tab too. */
  .member .tabs a[data-tab="private"] { grid-column: 3; }
  .member .tabs-inner:has(a[data-tab="charts"]):has(a[data-tab="private"]) { grid-template-columns: repeat(4, 1fr); }
  .member .tabs-inner:has(a[data-tab="charts"]):has(a[data-tab="private"]) a { min-width: 0; width: 100%; }
  .member .tabs-inner:has(a[data-tab="charts"]) a[data-tab="private"] { grid-column: 4; }
}

/* Soft motion: each page's parts rise in quickly, one after another, once (all done within about 0.4s). Nothing moves for anyone who asks for less motion. */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wrap > * { animation: rise var(--dur) var(--ease) both; }
.wrap > :nth-child(2) { animation-delay: .03s; } .wrap > :nth-child(3) { animation-delay: .06s; }
.wrap > :nth-child(4) { animation-delay: .09s; } .wrap > :nth-child(n+5) { animation-delay: .12s; }

/* Ask (home): the way to ask about yourself, under the newest Code. */
.ask-card { margin-top: 20px; padding: var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); }
.ask-card h2 { margin-bottom: 6px; }
.ask-card p { margin: 0 0 12px; max-width: 38em; }
.ask-card .hint { margin: 0; }

/* A Code's page. */
/* Back links: one quiet grey style everywhere, a full finger tall. */
.back-link, .code-back, .sh-back { margin: 0 0 4px; font-size: var(--fs-ui); }
.back-link { font-weight: 600; }
.back-link a, .code-back a, .sh-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; transition: color var(--dur) var(--ease); }
.back-link a:hover, .code-back a:hover, .sh-back a:hover { color: var(--text); }
.code-section { padding-top: 40px; scroll-margin-top: calc(var(--header-h) + 12px); }
.code-books { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
.code-book { position: relative; overflow: hidden; min-width: 0; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: var(--sp-6) var(--sp-4); }
.code-book::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--line); }
.code-book[data-kind="webinar"]::before { background: var(--miami); }
.code-book[data-kind="private_session"]::before { background: var(--sunrise); }
.code-book[data-kind="special_reading"]::before { background: var(--rolex); }
.code-book .num { font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--miami-ink); font-weight: 700; }
.code-book h3 { font-family: var(--head); font-weight: 400; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin: 6px 0 8px; }
.code-book h3 a { color: inherit; text-decoration: none; }
.code-line { margin: 0 0 14px; }
.code-line span { font-size: var(--fs-lead); font-weight: 700; line-height: 1.35; background: linear-gradient(transparent 62%, var(--sunrise-wash) 62%); }
.code-pages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.code-pages a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-field); color: var(--text); text-decoration: none; font-weight: 600; }
.code-pages a:hover { border-color: var(--miami); color: var(--miami-ink); }
.code-pages .n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--miami-wash); color: var(--miami-ink); font-size: var(--fs-ui); font-weight: 700; }
@media (min-width: 720px) { .code-pages { grid-template-columns: 1fr 1fr; } .code-book { padding: 28px 24px 24px; } }
/* A Code with no pages for this member yet: why, in a quiet box (FEATURES.md, Codes). */
.code-pending-box { background: var(--fill-soft); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 18px; }
.code-pending-box p { margin: 0; font-size: var(--fs-body); line-height: 1.5; }
.code-pending { color: var(--muted); }


/* Guided paths on a Code page (FEATURES.md, Paths). */
.code-jump { position: sticky; top: var(--header-h); z-index: 3; display: block; margin: 24px -16px 0; padding: 0 16px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.code-jump a { display: inline-flex; align-items: center; min-height: 52px; padding: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: var(--fs-ui); text-decoration: none; white-space: nowrap; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.path + .path { margin-top: 24px; }
.path-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.path-head h3 { font-family: var(--head); font-weight: 400; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin: 0; }
.path-count { color: var(--muted); font-size: var(--fs-ui); }
.path-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
/* A section heading inside a path (such as "Movement 2 · Whose love is it?"), above the steps it starts. */
.path-section { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--miami-ink); }
.path-section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.path-head + .path-section, .path > .path-section:first-child, .hint + .path-section { margin-top: 12px; }
.path-step { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: var(--sp-4); transition: box-shadow var(--dur) var(--ease); }
.path-step .step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--line-soft); color: var(--muted); font-weight: 700; }
.path-step .step-t { min-width: 0; }
.path-step .step-t b { display: block; font-size: var(--fs-body); }
.path-step .step-t small { color: var(--muted); font-size: var(--fs-ui); }
.path-step .step-page { display: inline-block; margin-top: 4px; font-size: var(--fs-ui); font-weight: 700; color: var(--miami-ink); }
.path-step .step-acts { grid-column: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.path-step .step-wait { color: var(--muted); font-size: var(--fs-ui); }
.path-step[data-state="done"] .step-n { background: var(--miami); color: var(--on-accent); }
.path-step[data-state="next"] { border-color: var(--miami-line); background: var(--miami-tint); box-shadow: var(--shadow-lift); }
.path-step[data-state="next"] .step-n { background: var(--miami-ink); color: #fff; }
/* Steps still to come: a soft filled box. */
.path-step[data-state="waiting"] { background: var(--fill-soft); border: 1px solid var(--line-soft); box-shadow: none; }
.path-step[data-state="waiting"] .step-t b { color: var(--muted); font-weight: 600; }
.videos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video a { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-height: 64px; padding: 0 0 16px; overflow: hidden; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.video a:hover { transform: translateY(var(--lift)); border-color: var(--border); box-shadow: var(--shadow-lift); }
.video .video-play { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; padding-left: 3px; border-radius: 50%; background: var(--bg3); color: var(--miami-ink); box-shadow: var(--shadow-lift), 0 0 0 6px rgba(255, 255, 255, .45); transition: transform var(--dur) var(--ease); }
.video b { display: block; padding: 0 16px; }
.video small { color: var(--muted); font-size: var(--fs-ui); padding: 0 16px; margin-top: -6px; }
.step-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.step-mark { margin: 16px 0 8px; }
.continue-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.continue-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-line); }
.continue-card:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-lift); border-color: var(--border); }
.continue-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.continue-card .eyebrow { color: var(--sunrise-ink); }
.continue-count { font-size: var(--fs-sm); color: var(--muted); }
.continue-card h2 { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.continue-card p { margin: 0; color: var(--text-2); }
.continue-card .hint { color: var(--muted); }
.continue-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.path-progress { display: block; width: 100%; height: 6px; margin: 0; border: 0; border-radius: var(--r-sm); background: var(--line-soft); overflow: hidden; appearance: none; }
.path-progress::-webkit-progress-bar { background: var(--line-soft); border-radius: var(--r-sm); }
.path-progress::-webkit-progress-value { background: var(--miami); border-radius: var(--r-sm); transition: width .8s var(--ease); }
.path-progress::-moz-progress-bar { background: var(--miami); border-radius: var(--r-sm); }
.admin-path { margin-top: 24px; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-inner); background: var(--bg3); }
.admin-path-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.admin-path-head h3 { margin: 0; }
.admin-steps { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.admin-steps li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.admin-steps small { display: block; color: var(--muted); }
.admin-step-acts, .admin-path-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-path-acts { margin-top: 12px; }
.admin-path-more { margin-top: 12px; }
.admin-path-more summary { cursor: pointer; font-weight: 700; color: var(--miami-ink); min-height: 44px; display: flex; align-items: center; }

/* Ask: the member chat (src/routes/ask.ts) */
.ask-box { margin-top: var(--sp-6); display: grid; gap: 10px; padding: 16px 16px 12px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); scroll-margin-top: calc(var(--header-h) + 12px); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.ask-box:focus-within { border-color: var(--miami); box-shadow: var(--shadow-lift); outline: 3px solid var(--miami-ink); outline-offset: 2px; }
.ask-box .eyebrow { font-weight: 700; color: var(--miami-ink); }
.ask-box textarea { width: 100%; min-height: 64px; margin: 0; resize: none; font: inherit; font-size: var(--fs-lead); line-height: 1.45; border: 0; padding: 4px 2px; background: none; color: var(--text); outline: none; }
.composer textarea { flex: 1; min-width: 0; width: 100%; min-height: 40px; max-height: 140px; resize: none; font: 400 var(--fs-body)/1.5 var(--sans); border: 0; border-radius: 0; padding: 8px 0; margin: 0; background: none; color: var(--text); outline: none; }
.ask-chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ask-chips::-webkit-scrollbar { display: none; }
.ask-chip { flex: none; min-height: var(--h-compact); padding: 0 15px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg3); color: var(--text); font: inherit; font-size: var(--fs-ui); cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.ask-chip:hover, .ask-chip:focus-visible { border-color: var(--miami); background: var(--miami-tint); color: var(--miami-ink); }
.greet h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.01em; }
.greet-sub { margin: 0; color: var(--muted); font-size: var(--fs-title); }
.ask-box .notice { margin: 0; }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ask-row .hint { margin: 0; flex: 1 1 14em; }
.your-chats .chat-group + .chat-group { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.your-chats h3 { margin: 4px 0; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.chat-rows, .chat-list { list-style: none; margin: 0; padding: 0; }
.chat-rows a, .chat-list a { display: flex; align-items: baseline; gap: 10px; min-height: 40px; padding: 8px 0; color: var(--text); text-decoration: none; }
.chat-rows a span, .chat-list-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-rows small, .chat-list small { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.chat-rows a:hover span, .chat-list a:hover .chat-list-title { color: var(--miami-ink); text-decoration: underline; }
.chat-list { margin-top: 12px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 4px 16px; }
.chat-list li + li { border-top: 1px solid var(--line); }
.chat-head { position: relative; z-index: 5; margin-top: 4px; display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-head-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.chat-head h1 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
.chat-path { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--muted); }
.path-dots { display: flex; gap: 6px; }
.path-dots i { width: 28px; height: 6px; border-radius: 4px; background: var(--line); }
.path-dots i[data-state="done"] { background: var(--miami-ink); }
.path-dots i[data-state="next"] { background: var(--sunrise); }
.chat-move { position: relative; }
.chat-move summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: var(--h-control); font-size: var(--fs-ui); color: var(--muted); }
.chat-move summary::-webkit-details-marker { display: none; }
.chat-filed { display: inline-flex; align-items: center; gap: .3em; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--line-soft); }
.chat-filed b { color: var(--text); font-weight: 600; }
.chat-more { display: grid; place-items: center; width: var(--h-compact); height: var(--h-compact); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg3); color: var(--text); font-size: var(--fs-lead); line-height: 1; transition: background-color var(--dur) var(--ease); }
.chat-move summary:hover .chat-more { background: var(--bg); }
.chat-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: min(360px, calc(100vw - 32px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-inner); box-shadow: var(--shadow-pop); animation: pop var(--dur) var(--ease) both; }
.chat-move form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.chat-move form .button { flex: none; min-height: var(--h-control); padding: 0 14px; font-size: var(--fs-ui); }
.chat-move form + form { padding-top: 12px; border-top: 1px solid var(--line); }
.chat-move label { flex-basis: 100%; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.chat-move select { flex: 1 1 0; min-width: 0; width: 100%; min-height: var(--h-control); padding: 0 10px; max-width: 100%; }
.chat { display: grid; gap: 14px; margin: 18px 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.msg { max-width: 100%; min-width: 0; overflow-wrap: anywhere; animation: rise var(--dur) var(--ease) both; }
.msg-me { justify-self: end; max-width: min(84%, 38em); background: var(--text); color: #fff; border-radius: var(--r-card) var(--r-card) var(--r-sm) var(--r-card); padding: 10px 15px; white-space: pre-wrap; }
.msg-ai { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.msg-ai > :not(.msg-av):not(.sr) { grid-column: 2; }
.msg-av { grid-column: 1; grid-row: 1 / span 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--miami-wash); color: var(--miami-ink); font-weight: 700; font-size: var(--fs-ui); }
.msg-ai .reading-text { margin: 0; padding: 2px 0 0; border: 0; background: none; border-radius: 0; max-width: 44em; }
.msg-step { display: grid; gap: 2px; background: var(--bg3); border: 1px solid var(--miami-line); border-radius: var(--r-inner); padding: 12px 16px; max-width: 42em; }
.msg-step .eyebrow { color: var(--miami-ink); font-weight: 700; }
.msg-step .hint { margin: 0; }
.msg-from { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.msg-from li { font-size: var(--fs-xs); border-radius: var(--r-pill); padding: 3px 10px; color: var(--text-2); background: var(--bg3); border: 1px solid var(--line); }
.msg-save { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.msg-save .button { min-height: var(--h-compact); padding: 0 12px; font-size: var(--fs-sm); }
.chat-earlier, .chat-later { margin: 0; }
.chat-retry, .chat-next { margin: 8px 0 16px; }
.composer-dock { position: sticky; bottom: 0; z-index: 4; margin: 8px -4px 0; padding: 14px 4px 10px; background: linear-gradient(rgba(244, 246, 250, 0), var(--bg) 28%); }
.composer { display: flex; gap: 8px; align-items: flex-end; margin: 0; padding: 6px 6px 6px 14px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.composer:focus-within { border-color: var(--miami); box-shadow: var(--shadow-lift); outline: 3px solid var(--miami-ink); outline-offset: 2px; }
.composer .button { min-height: var(--h-control); }
.composer-hint, .chat-off { margin: 6px 4px 0; font-size: var(--fs-sm); }
@media (max-width: 640px) { .member .composer-dock { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
.saved-answer { margin-top: 18px; }
.saved-answer .eyebrow { margin-bottom: 6px; }
/* Ask: an answer being written, and Ask about this on the Charts tab. */
.chat-live { margin-top: 14px; }
.msg-live .live-text { white-space: pre-wrap; min-height: 1.6em; }
.msg-live .live-status { margin: 6px 0 0; }
.chat-manage input[type="text"] { min-height: var(--h-control); flex: 1 1 0; min-width: 0; width: 100%; padding: 0 10px; }
.ask-this { display: inline-flex; align-items: center; min-height: var(--h-compact); margin-left: 6px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: transparent; color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; vertical-align: middle; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.ask-this:hover, .ask-this:focus-visible { border-color: var(--miami); background: var(--miami-tint); color: var(--miami-ink); }
.ask-this.is-loading { opacity: .7; cursor: progress; }
.glance-card .ask-this, .number-card .ask-this { align-self: flex-start; margin: 6px 0 0; }
.section-ask { margin: 8px 0 0; } .section-ask .ask-this { margin-left: 0; }

/* Charts: a switcher across the systems, then one system at a time (src/views/my-chart.eta). */
.sys-tabs { position: sticky; top: var(--header-h); z-index: 4; margin: 22px -16px 0; padding: 0 16px; background: rgba(244, 246, 250, .97); border-bottom: 1px solid var(--line); }
.sys-tabs-inner { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.sys-tabs-inner::-webkit-scrollbar { display: none; }
.sys-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 50px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: var(--fs-md); text-decoration: none; white-space: nowrap; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.sys-tabs a:hover { color: var(--text); }
.sys-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--miami); }
.sys-panel, .sys-panel [id] { scroll-margin-top: calc(var(--header-h) + 64px); }
.sys-panel .fact-section { scroll-margin-top: calc(var(--header-h) + 64px); }
.sys-panel { padding-top: 0; }
.sys-panel > .section-gap:first-child { margin-top: 28px; }
.sys-in { animation: rise var(--dur) var(--ease) both; }
#glance { display: grid; gap: 16px; padding-top: 22px; }
#glance[hidden] { display: none; }
.glance-group { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: var(--sp-6) var(--sp-4) var(--sp-4); }
.group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.group-head h2 { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
.group-sub { color: var(--muted); font-size: var(--fs-ui); }
.group-acts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.group-acts .section-ask { margin: 0; }
.group-all { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-compact); padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg3); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.group-all:hover { border-color: var(--miami); color: var(--miami-ink); }
.glance-group .glance { margin: 14px 0 0; }
a.glance-card { color: var(--text); text-decoration: none; }
.glance-card:hover, .number-card:hover { transform: translateY(var(--lift)); background: var(--bg3); box-shadow: var(--shadow-lift); }
@media (min-width: 641px) { .sys-tabs { margin-inline: 0; padding: 0; } .glance-group, .chart-prompt { padding: 24px; } }

/* On a phone, the ask box and its suggestions sit at the bottom, just above the tabs, within reach of a thumb. */
@media (max-width: 640px) {
  .ask-dock { position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 12; display: flex; flex-direction: column-reverse; gap: 8px; padding: 18px max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px)); background: linear-gradient(rgba(244, 246, 250, 0), var(--bg) 30%); animation: none !important; }
  .ask-dock .ask-box { margin: 0; padding: 8px 8px 8px 14px; border-radius: var(--r-card); grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
  .ask-dock .ask-box > .notice, .ask-dock .ask-box > p.hint { grid-column: 1 / -1; }
  .ask-dock .ask-box textarea { min-height: 44px; font-size: var(--fs-body); padding: 8px 0; }
  .ask-dock .ask-row { display: contents; }
  .ask-dock .ask-row .hint { display: none; }
  .ask-dock .ask-chips { margin: 0; }
  body:has(.ask-dock) { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
}

/* A chat: your chats down the side, the chat in the middle, the composer at the bottom (src/views/ask-chat.eta). */
body.shell main.wrap { max-width: none; padding: 0; }
body.shell .wrap > * { animation: none; }
.chat-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.chat-side { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; background: var(--bg3); border-right: 1px solid var(--line); }
.chat-new { width: 100%; gap: 8px; min-height: var(--h-control); }
.chat-search { display: flex; align-items: center; gap: 8px; height: var(--h-control); margin: 0; padding: 0 12px; border: 1px solid var(--field-line); border-radius: var(--r-field); background: var(--bg3); color: var(--muted); transition: border-color var(--dur) var(--ease); }
.chat-search:focus-within { border-color: var(--miami-ink); outline: 3px solid var(--miami-ink); outline-offset: 2px; }
.chat-search input { flex: 1; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-body); color: var(--text); }
.chat-search input:focus { outline: none; }
.chat-side-list { display: flex; flex-direction: column; gap: 1px; }
.chat-side-group { display: flex; flex-direction: column; gap: 1px; }
.chat-side-list .chat-side-label { margin: 12px 10px 4px; font: 600 var(--fs-xs)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chat-side-list a { display: block; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text); font-size: var(--fs-ui); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color var(--dur) var(--ease); }
.chat-side-list a:hover { background: var(--bg); }
.chat-side-list a[aria-current] { background: var(--miami-wash); color: var(--miami-ink); font-weight: 600; }
.chat-side-list .chat-side-all { margin-top: 6px; color: var(--miami-ink); font-size: var(--fs-ui); font-weight: 600; }
.chat-side-saved { margin-top: auto; padding: 12px 10px 2px; border-top: 1px solid var(--line-soft); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; }
.chat-main { min-width: 0; display: flex; flex-direction: column; }
.chat-back { display: none; }
.shell .chat-head { position: sticky; top: var(--header-h); margin: 0; padding: 12px 24px; background: var(--bg3); border-bottom: 1px solid var(--line); }
.shell .chat-head-top { flex-wrap: nowrap; }
.chat-title { flex: 1; min-width: 0; display: grid; gap: 4px; }
.shell .chat-head h1 { font-size: var(--fs-title); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell .chat-path { font-size: var(--fs-sm); }
.shell .path-dots i { width: 22px; height: 5px; }
.chat-more svg { display: block; }
.chat-body { flex: 1; width: 100%; max-width: 808px; margin: 0 auto; padding: 8px 24px 0; display: flex; flex-direction: column; }
.chat-body > .notice { margin-top: 16px; }
.shell .chat { gap: 22px; margin: 22px 0 8px; }
.shell .chat-next { display: flex; justify-content: flex-end; margin: 4px 0 12px; }
.shell .composer-dock { margin-top: auto; padding: 12px 0 16px; }
.composer-send { flex: none; display: grid; place-items: center; width: var(--h-control); height: var(--h-control); border: 0; border-radius: var(--r-field); background: var(--miami-ink); color: #fff; cursor: pointer; transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.composer-send:hover { background: var(--miami-ink-hover); }
.composer-send:active { transform: scale(.96); }
.composer-send.is-loading { opacity: .6; cursor: progress; }
.shell .composer-hint { text-align: center; font-size: var(--fs-xs); }
.msg-act { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-compact); padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); font: 600 var(--fs-sm) var(--sans); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.msg-act:hover { background: var(--line-soft); color: var(--text); }
.msg-act[aria-pressed="true"] { color: var(--sunrise-ink); background: var(--sunrise-wash); }
.msg-act[hidden] { display: none; }
@media (max-width: 900px) {
  .chat-shell { grid-template-columns: minmax(0, 1fr); }
  .chat-side { display: none; }
  .shell .chat-head { padding: 10px 16px; }
  .chat-body { padding: 0 16px; }
}

/* Ask, the home tab: the greeting and ask box centred, then your path and chats side by side (src/views/dashboard.eta). */
.home-top { max-width: 760px; margin: 0 auto; padding-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.greet { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.home-top .ask-box { margin: 0; padding: 18px 18px 14px; }
.ask-ready { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.ready-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb37a; flex: none; }
.ask-send { flex: none; margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--miami-ink); color: #fff; cursor: pointer; transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.ask-send:hover { background: var(--miami-ink-hover); transform: translateY(var(--lift)); }
.ask-send.is-loading { opacity: .6; cursor: progress; }
.home-top .ask-chips { margin: 0; justify-content: center; flex-wrap: wrap; overflow: visible; }
.ask-chip:hover { transform: translateY(var(--lift)); }
.home-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 40px; }
.home-split.home-one { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.home-split.home-one ~ .biz-prompt { max-width: 760px; margin-inline: auto; }
.home-col { display: flex; flex-direction: column; gap: 20px; }
.your-chats { margin: 0; padding: var(--sp-6) var(--sp-4) var(--sp-4); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.your-chats-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 10px 8px; }
.your-chats-head h2 { margin: 0; font: 700 var(--fs-title)/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.your-chats-head a, .your-chats-saved a { font-size: var(--fs-ui); font-weight: 600; text-decoration: none; }
.your-chats .chat-rows a { align-items: center; gap: 12px; padding: 12px 10px; border-radius: var(--r-field); transition: background-color var(--dur) var(--ease); }
.your-chats .chat-rows a:hover { background: var(--bg); }
.your-chats .chat-rows a:hover span { color: var(--text); text-decoration: none; }
.your-chats .chat-rows small { width: 52px; text-align: right; }
.chat-tag { color: var(--muted); background: var(--line-soft); max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.chat-tag-code { background: var(--miami-wash); color: var(--miami-ink); }
/* No answer yet: a chat whose answer failed says so (Your chats, the chat sidebar, home Recent chats). */
.chat-no-answer { flex: none; margin-right: 4px; background: var(--sunrise-wash); color: var(--text); }
.chat-side-list .chat-no-answer { font-size: 11px; padding: 0 6px; vertical-align: 1px; }
/* On phones a chat's name gets the whole line, with where it's filed and when underneath. */
@media (max-width: 640px) { .chat-list a { flex-wrap: wrap; row-gap: 2px; } .chat-list-title { flex-basis: 100%; white-space: normal; } }
.your-chats-saved { margin: 8px 10px 0; padding-top: 10px; border-top: 1px solid var(--line-soft); }
@media (max-width: 860px) { .home-split { grid-template-columns: minmax(0, 1fr); } }

/* Codes: title and search on one row, filter pills, then a grid of cards (src/views/codes.eta, partials/book-cards.eta). */
.codes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding-top: 24px; }
.codes-head h1 { margin: 4px 0 0; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
/* The slim search box (Codes, Your chats): the field border and the shared focus ring. */
.codes-search, .search-box { display: flex; align-items: center; gap: 8px; width: 300px; max-width: 100%; height: 44px; margin: 0; padding: 0 14px; background: var(--bg3); border: 1px solid var(--field-line); border-radius: var(--r-field); color: var(--muted); transition: border-color var(--dur) var(--ease); }
.codes-search:focus-within, .search-box:focus-within { border-color: var(--miami-ink); outline: 3px solid var(--miami-ink); outline-offset: 2px; }
.codes-search input, .search-box input { flex: 1; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--text); }
.codes-search input:focus, .search-box input:focus { outline: none; }
/* Your chats: the search box, the filter as a compact select, a quiet Apply and Clear, on one row. */
.slim-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 20px 0 14px; }
.slim-search .search-box { flex: 1 1 100%; width: auto; }
.slim-search select { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 12px; }
.slim-search .button { flex: none; }
.slim-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: var(--fs-ui); font-weight: 600; color: var(--muted); }
.slim-clear:hover { color: var(--text); }
@media (min-width: 641px) {
  .slim-search .search-box { flex: 0 1 340px; }
  .slim-search select { flex: 0 1 240px; }
}
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.seg + .seg { margin-top: 10px; }
.seg a { display: inline-flex; align-items: center; min-height: var(--h-compact); padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg3); color: var(--text-2); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.seg a:hover { border-color: var(--border-strong); color: var(--text); }
.seg a[aria-current] { background: var(--text); border-color: var(--text); color: #fff; }
.codes-clear { margin: 12px 0 0; font-size: var(--fs-ui); font-weight: 600; }
.code-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.code-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.code-card:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-lift); border-color: var(--border); color: var(--text); }
.code-kind { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.code-kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.code-card[data-kind="webinar"] .code-kind i { background: var(--miami); }
.code-card[data-kind="private_session"] .code-kind i { background: var(--sunrise); }
.code-card[data-kind="special_reading"] .code-kind i { background: var(--rolex); }
/* A Code card carries a band in its session's colour. */
.code-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--line); }
.code-card[data-kind="webinar"]::before { background: var(--miami); }
.code-card[data-kind="private_session"]::before { background: var(--sunrise); }
.code-card[data-kind="special_reading"]::before { background: var(--rolex); }
.code-card .chapter-title { margin: 0; font-family: var(--head); font-weight: 400; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); text-transform: none; }
.code-card-line { margin: 0; color: var(--muted); font-size: var(--fs-ui); }
.code-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.code-meta span { color: var(--text-2); background: var(--bg); }
.code-grid + .list-summary, .code-grid + .empty + .list-summary { margin-top: 24px; }
.recent .code-grid { margin-top: 14px; }
@media (max-width: 980px) { .code-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .code-grid { grid-template-columns: minmax(0, 1fr); } .codes-search { width: 100%; } }

/* A Code: kind and date, a big title and Continue, a jump bar, then path, About you and Watch (src/views/code.eta). */
.code-top { padding-top: 16px; }
.code-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 0; padding: 0; background: none; border: 0; }
.code-hero::before, .code-hero .zodiac-bg { display: none; }
.code-hero-text { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.code-hero h1 { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.code-hero .dash-sub { margin: 0; color: var(--text-2); font-size: var(--fs-title); }
.code-hero[data-kind="webinar"] .code-kind i { background: var(--miami); }
.code-hero[data-kind="private_session"] .code-kind i { background: var(--sunrise); }
.code-hero[data-kind="special_reading"] .code-kind i { background: var(--rolex); }
.code-continue { min-height: 44px; }
.code-jump-in { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.code-jump a:hover { color: var(--text); border-color: var(--miami); }
.code-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.code-section-head h2 { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.code-section-head span { color: var(--muted); font-size: var(--fs-ui); }
/* A video's thumbnail: the brand wash with a faint zodiac wheel, a white play button, and which video it is. */
.video-thumb { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(120deg, var(--miami-wash) 0%, var(--miami-tint) 50%, var(--sunrise-wash) 100%); border-bottom: 1px solid var(--line); }
.video-thumb .zodiac-bg { width: 240px; height: 240px; right: -64px; top: -78px; opacity: .55; }
.video-tag { position: absolute; left: 14px; top: 12px; background: rgba(255, 255, 255, .85); color: var(--miami-ink); }
.video a:hover .video-play { transform: scale(1.06); }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .path-step { grid-template-columns: 36px minmax(0, 1fr); }
  .path-step .step-acts { grid-column: 2; justify-content: flex-start; }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .code-continue { width: 100%; }
}
@media (min-width: 641px) { .code-jump { margin-inline: 0; padding: 0; background: var(--bg); border-top: 0; } }

/* Charts: title with Copy chart prompt and Ask about your charts beside it (src/views/my-chart.eta). */
.charts-head .dash-sub { margin: 6px 0 0; color: var(--muted); }
.charts-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.charts-acts form { margin: 0; }
.charts-acts .button { min-height: 44px; }
.charts-status { flex-basis: 100%; text-align: right; font-size: var(--fs-sm); color: var(--muted); }
.charts-status:empty { display: none; }
.charts-head + .chat-live { margin-top: 18px; }
@media (max-width: 640px) { .charts-acts { width: 100%; justify-content: stretch; } .charts-acts > *, .charts-acts .button { flex: 1; } .charts-status { text-align: left; } }
.chat-back-icon, .chat-sub { display: none; }
@media (max-width: 900px) {
  .chat-back-icon { display: grid; place-items: center; flex: none; width: var(--h-control); height: var(--h-control); margin-left: -8px; border-radius: var(--r-sm); color: var(--text); }
  .chat-back-icon:hover { background: var(--bg); }
  .chat-sub { display: block; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .shell .chat-head .chat-path, .shell .chat-filed { display: none; }
  .shell .chat-head-top { gap: 8px; }
  .shell .chat-head h1 { font-size: var(--fs-body); }
}
/* On a phone a chat fills the screen: no tab bar, the composer at the very bottom. */
@media (max-width: 640px) {
  body.member.shell .site .tabs { display: none; }
  body.member.shell { padding-bottom: 0; }
  body.member.shell .composer-dock { bottom: 0; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
/* A moving parent would carry the fixed ask box with it, so on a phone the greeting block doesn't animate in. */
@media (max-width: 640px) { .wrap > .home-top { animation: none; } .home-top { padding-top: 8px; } .home-split { margin-top: 24px; } }
/* On a phone the suggestions sit under the greeting, in the page, so the bar at the bottom is only the ask box. */
@media (max-width: 640px) { .home-top .ask-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; } .home-top .ask-chip { min-height: 40px; padding: 0 14px; font-size: var(--fs-ui); } }
/* Wide screens: room between the ask box and its suggestions. */
@media (min-width: 641px) { .home-top .ask-dock { display: flex; flex-direction: column; gap: 16px; } }
/* A chat: the header spans the full width so the logo lines up with the chats down the side. */
@media (min-width: 901px) {
  body.shell .site-inner { max-width: none; padding-left: 24px; padding-right: 24px; }
  body.shell .chat-side { padding-left: 24px; padding-right: 24px; }
  body.shell .chat-side-list a, body.shell .chat-side-list .chat-side-label { margin-left: -10px; margin-right: -10px; }
  body.shell .chat-side-list .chat-side-label { margin-left: 0; }
  body.shell .chat-side-saved { padding-left: 0; }
}

/* Books (November 2026): less at once. Every word of the book stays; the hub's own labels carry .hub-ui. */
/* A page: the reading column starts under the logo, the pages are listed on the right, Your line comes first. */
.bk-page .book-nav { display: contents; }
.bk-page .book-top { position: sticky; top: var(--header-h); z-index: 6; display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.bk-page .book-top .home { min-height: 40px; display: inline-flex; flex: 0 1 auto; align-items: center; gap: 4px; color: var(--muted); font-size: var(--fs-ui); font-weight: 600; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-page .book-top .home:hover { color: var(--text); }
.bk-page .book-top .eyebrow { display: none; }
.page-of { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; }
.page-dots { display: flex; gap: 5px; }
.page-dots i { width: 22px; height: 5px; border-radius: 4px; background: var(--border); }
.page-dots i.on { background: var(--miami); }
.pages-toggle { display: none; place-items: center; flex: none; width: var(--h-control); height: var(--h-control); border-radius: var(--r-sm); color: var(--text); }
.pages-toggle:hover { background: var(--bg2); color: var(--text); }
.bk-page .steps { display: flex; flex-direction: column; gap: 2px; scroll-margin-top: calc(var(--header-h) + 72px); margin: 0; padding: 16px 10px 10px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: visible; }
.steps-title { padding: 0 10px 6px; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.bk-page .steps a { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 0; padding: 9px 12px; border: 0; border-radius: var(--r-sm); background: none; box-shadow: none; color: var(--text); font-size: var(--fs-ui); font-weight: 500; line-height: 1.35; white-space: normal; text-decoration: none; transition: background-color var(--dur) var(--ease); }
.bk-page .steps a::after, .bk-page .steps a::before { display: none; }
.bk-page .steps a:hover { background: var(--bg); color: var(--text); }
.bk-page .steps b { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bk-page .steps a[aria-current=page] { background: var(--miami-wash); color: var(--miami-ink); font-weight: 600; box-shadow: none; }
.bk-page .steps a[aria-current=page] b { color: var(--miami-ink); }
.bk-page section.book-page { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 32px 0 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.bk-page .book-page > * { order: 2; margin: 0; }
.bk-page .book-page > .chap, .bk-page .book-page > .page-title { order: 0; }
.bk-page .book-page > .line { order: 1; }
.bk-page .chap { margin-bottom: -8px; }
/* The title lines up with the cards under it. */
.bk-page .book-page > .chap, .bk-page .book-page > .page-title, .bk-page .book-page > .intro, .bk-page .book-page > .reading { padding-inline: 0; }
.bk-page .page-title { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.bk-page .line { padding: var(--sp-6); background: var(--bg3); border: 1px solid #f3dc97; border-radius: var(--r-card); box-shadow: var(--shadow-card); font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 27px); line-height: 1.3; letter-spacing: 0; }
.bk-page .line small { display: block; margin-bottom: 4px; font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--sunrise-ink); font-weight: 600; }
.bk-page .line .full { margin-top: 12px; font-family: var(--sans); font-size: var(--fs-md); line-height: 1.6; color: var(--text-2); }
.bk-page .line .full span { display: block; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bk-page .line .src { margin-top: 12px; font-family: var(--sans); font-size: var(--fs-sm); line-height: 1.5; }
.bk-page .intro { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); }
.how-read { font-size: var(--fs-sm); color: var(--muted); }
.how-read > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--miami-ink); font-weight: 600; }
.how-read > summary::-webkit-details-marker { display: none; }
.how-read > summary::before { content: "i"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 10px; font-weight: 700; }
.how-read .how, .how-read .legend2 { margin: 6px 0 0; max-width: 40em; }
.bk-page .block { display: flex; flex-direction: column; gap: 10px; padding: var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.bk-page .block h3 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: var(--fs-h4); letter-spacing: 0; line-height: 1.3; text-transform: none; color: var(--text); }
.bk-page .block p { margin: 0; font-size: var(--fs-title); line-height: 1.7; color: #22293a; }
/* What works and Watch: a straight inset bar on the left, not a border bent round the corner. */
.bk-page .block.good, .bk-page .block.stop { position: relative; border-left: 1px solid var(--line); }
.bk-page .block.good::before, .bk-page .block.stop::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--go); }
.bk-page .block.stop::before { background: var(--stop); }
.bk-page .block.wait { border: 1px solid var(--line-soft); background: var(--fill-soft); box-shadow: none; }
.bk-page .block.try { background: linear-gradient(135deg, var(--miami-wash), #fdf8ea); border: 0; box-shadow: none; }
.bk-page .block.try h3 { color: var(--miami-ink); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.bk-page .pp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.bk-page .pp li { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-inner); background: var(--fill-soft); }
.bk-page .pp .tag { align-self: flex-start; }
.bk-page .pp li > div { font-size: var(--fs-ui); line-height: 1.55; color: var(--text-2); }
.bk-page .rare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* From your chart: folded away, opened by its own label. */
details.src { display: block; }
details.src > summary, details.src > summary.lab { list-style: none; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: var(--h-compact); padding: 0 14px 0 12px; border-radius: var(--r-pill); background: var(--bg); color: var(--muted); font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; text-transform: none; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
details.src > summary::-webkit-details-marker { display: none; }
details.src > summary::before { content: ""; width: 5px; height: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) var(--ease); }
details.src[open] > summary::before { transform: rotate(45deg); }
details.src > summary:hover { background: var(--bg2); color: var(--text); }
details.src .src-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; animation: pop var(--dur) var(--ease) both; }
details.src .src-items .d { font-size: var(--fs-sm); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px; color: var(--text-2); }
/* Go deeper: Ask about this page first, the prompts for your own AI folded under it. */
.bk-page .prompt { margin: var(--sp-8) 0 0; padding: 0; overflow: hidden; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.page-ask { display: grid; gap: 8px; justify-items: start; margin: 0; padding: 24px; background: var(--text); color: #fff; }
.page-ask-label { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--miami-line); }
.page-ask p { margin: 0; color: var(--on-dark-muted); }
.page-ask .button { margin-top: 6px; background: var(--miami); color: var(--on-miami); }
.page-ask .button:hover { background: var(--miami-hover); color: var(--on-miami); }
.page-ask ~ .own-ai { padding: 6px 24px 20px; }
.own-ai { padding: 6px 24px 24px; }
.own-ai > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--miami-ink); }
.own-ai > summary::-webkit-details-marker { display: none; }
.own-ai > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) var(--ease); }
.own-ai[open] > summary::after { transform: rotate(45deg); }
.own-ai .two { margin-top: 12px; }
.bk-page .next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; }
.bk-page .next a { display: flex; align-items: center; justify-content: flex-start; min-height: 56px; padding: 14px 18px; border-radius: var(--r-inner); font-size: var(--fs-md); text-align: left; }
.bk-page .next a:last-child { justify-content: flex-end; text-align: right; }
@media (min-width: 1000px) {
  .bk-page { display: grid; grid-template-columns: minmax(0, 740px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .bk-page > * { grid-column: 1; min-width: 0; }
  .bk-page .book-top { grid-column: 1 / -1; }
  .bk-page .steps { grid-column: 2; grid-row: 2 / span 30; position: sticky; top: calc(var(--header-h) + 80px); margin-top: 32px; }
}
@media (max-width: 999px) {
  .pages-toggle { display: grid; }
  .bk-page .steps { display: none; margin-top: 16px; }
  .bk-page .steps:target { display: flex; }
}
@media (max-width: 640px) {
  .bk-page .page-dots { display: none; }
  .bk-page .book-top .home { display: block; line-height: 40px; }
  .bk-page .block { padding: 18px; }
  .bk-page .pp, .bk-page .rare { grid-template-columns: minmax(0, 1fr); }
  .bk-page .next { grid-template-columns: minmax(0, 1fr); }
  .bk-page .next a:last-child { justify-content: flex-start; text-align: left; }
  .page-ask, .own-ai, .page-ask ~ .own-ai { padding-inline: 18px; }
}
/* The front page: title and wheel, your lines as cards, what's certain folded, the pages as cards. */
.bk-front .hero { gap: var(--sp-8); padding: var(--sp-8); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); }
.bk-front .hero h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); margin: 6px 0 10px; }
.hero-acts { margin: 20px 0 0; }
.bk-front .card4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: var(--sp-8); padding: 0; background: none; border: 0; box-shadow: none; }
.bk-front .card4-title { margin: 0; font-family: var(--head); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 400; text-transform: none; color: var(--text); }
.bk-front .card4 .row { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: var(--sp-4) var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); }
.bk-front .card4 .k { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bk-front .card4 .v { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.35; }
.fl-more > summary { list-style: none; cursor: pointer; margin-top: 8px; font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; color: var(--miami-ink); }
.fl-more > summary::-webkit-details-marker { display: none; }
.fl-more > summary::after { content: " ▸"; }
.fl-more[open] > summary::after { content: " ▾"; }
.bk-front .card4 .fl { margin-top: 6px; font-family: var(--sans); font-size: var(--fs-ui); line-height: 1.55; color: var(--text-2); }
.bk-front .certainwrap { margin: 20px 0 0; padding: 0 var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); }
.bk-front .certainwrap > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 58px; margin: 0; }
.bk-front .certainwrap > summary::-webkit-details-marker { display: none; }
.bk-front .certainwrap > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
.bk-front .certainwrap[open] > summary::after { transform: rotate(-135deg); }
.bk-front .certainwrap[open] { padding-bottom: 18px; }
.bk-front .book-pages-grid { gap: 16px; margin-top: 28px; }
.bk-front .book-pages-grid a { display: flex; flex-direction: column; gap: 8px; min-height: 170px; padding: var(--sp-6); border-radius: var(--r-card); }
.bk-front .book-pages-grid p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: var(--fs-ui); }
.bk-front .book-pages-grid .go { margin-top: auto; }
@media (min-width: 900px) {
  .bk-front .card4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-front .card4-title { grid-column: 1 / -1; }
  .bk-front .book-pages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The book fades in part by part, not as one block, so a long page never sits blank while it loads. */
.wrap > .bk { animation: none; }
.bk > *:not(.book-nav) { animation: rise var(--dur) var(--ease) both; }

/* Your business (FEATURES.md): one form in white cards. Team size and AI tools are pills, roles are rows. */
.biz-form { display: grid; gap: 14px; margin-top: 18px; }
.biz-card { min-width: 0; padding: var(--sp-6) var(--sp-4); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.biz-card h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin: 0 0 10px; }
.biz-card .field + .field, .biz-card .field + .biz-set, .biz-card .biz-set + .field { margin-top: 14px; }
.biz-card .field .hint { margin: 6px 0 0; }
.biz-card textarea { min-height: 110px; margin: 0; line-height: 1.5; padding: 10px 12px; resize: vertical; }
.biz-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.biz-set legend { padding: 0; margin-bottom: 8px; font-size: var(--fs-ui); font-weight: 600; }
.biz-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-pick { position: relative; }
.biz-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.biz-pick span { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-control); padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg3); color: var(--text-2); font-size: var(--fs-ui); font-weight: 600; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.biz-pick:hover span { border-color: var(--border-strong); color: var(--text); }
.biz-pick input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.biz-pick input[type="checkbox"]:checked + span::before { content: "✓"; }
.biz-pick input:focus-visible + span { outline: 3px solid var(--miami-ink); outline-offset: 2px; }
.biz-rows { display: grid; gap: 8px; margin-top: 12px; }
.biz-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; }
.biz-row[hidden] { display: none; }
.biz-row-head { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.biz-row input { width: 100%; min-height: 44px; padding: 0 12px; }
.biz-add { margin-top: 12px; min-height: var(--h-control); padding: 0 16px; font-size: var(--fs-ui); }
.biz-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 4px 0 8px; }
.biz-save .hint { margin: 0; }
@media (min-width: 720px) { .biz-card { padding: 24px; } .biz-form { max-width: 760px; } }

/* The account menu's link to Your business, above Sign out. */
.me-link { display: flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0 10px; border-radius: var(--r-sm); color: var(--text); font-size: var(--fs-md); font-weight: 600; text-decoration: none; }
.me-link:hover { background: var(--bg); }
.me-link + form .me-out { margin-top: 0; }

/* Ask (home): the card asking for business details, until they're saved. */
.biz-prompt { display: flex; align-items: center; gap: 16px; margin-top: var(--sp-6); padding: var(--sp-4) var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.biz-prompt-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--miami-wash); color: var(--miami-ink); }
.biz-prompt-body { flex: 1; min-width: 0; }
.biz-prompt-body b { display: block; font-size: var(--fs-body); }
.biz-prompt-body span { color: var(--muted); font-size: var(--fs-ui); }
.biz-prompt .button { flex: none; }
@media (max-width: 480px) { .biz-prompt { flex-wrap: wrap; } .biz-prompt .button { width: 100%; } }

/* Your connections (FEATURES.md): the invite link card and the list, in the same white cards as Your business. */
.me-link + .me-link { margin-top: 0; }
.cx-grid { display: grid; gap: 14px; margin-top: 18px; }
.cx-grid > * { min-width: 0; }
.cx-invite p { margin: 0 0 12px; }
.cx-invite .hint { margin: 12px 0 0; }
.cx-linkbox { display: grid; gap: 10px; }
.cx-linkbox .button { justify-self: start; }
.cx-linkbox textarea { width: 100%; margin: 0; font: inherit; font-size: var(--fs-ui); line-height: 1.45; padding: 10px 12px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-field); resize: none; overflow-wrap: anywhere; word-break: break-all; }
.cx-count { margin-left: 6px; background: var(--sunrise-wash); color: var(--text); }
.cx-list { margin: 0; padding: 0; list-style: none; }
.cx-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.cx-row:first-child { border-top: 0; }
.cx-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-who b { font-size: var(--fs-body); overflow-wrap: anywhere; }
.cx-rel { font-size: var(--fs-ui); font-weight: 600; color: var(--miami-ink); }
.cx-state { font-size: var(--fs-sm); color: var(--muted); }
.cx-incoming .cx-state { color: var(--text); font-weight: 600; }
.cx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-acts form { margin: 0; }
.cx-acts .button { min-height: var(--h-control); padding: 0 15px; font-size: var(--fs-ui); border-radius: var(--r-field); }
.cx-list-card .list-summary { margin: 0 0 4px; }
@media (min-width: 720px) { .cx-grid { max-width: 760px; } }
.biz-card .field + .hint { margin: 10px 0 0; }

/* Sharing: what a member shares with a connection, and a connection's shared profile */
.cx-share { font-size: var(--fs-ui); color: var(--text-2); overflow-wrap: anywhere; }
.sh-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sh-form .biz-card h2 { margin-bottom: 8px; }
.sh-form .biz-card .hint { margin: 10px 0 0; }
.sh-grid { display: grid; gap: 14px; margin-top: 18px; }
.sh-grid > * { min-width: 0; }
.sh-empty { margin-top: 18px; }
.sh-empty p { margin: 0; }
.sh-list { margin: 0; display: grid; gap: 10px; }
.sh-list div { display: grid; gap: 2px; }
.sh-list dt { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.sh-list dd { margin: 0; overflow-wrap: anywhere; }
.sh-charts-h { margin-top: 28px; }
@media (min-width: 720px) { .sh-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

/* A share or invite link fits its box. */
textarea.link-out { min-height: 0; height: auto; resize: none; font-size: var(--fs-ui); }
/* A Code's path: Start step runs the step from here (Ask chat on); a step's title opens its page, with its video and Look for. */
form.code-continue, .step-acts form { margin: 0; }
@media (max-width: 640px) { form.code-continue .button { width: 100%; } }
.step-title-link { color: inherit; text-decoration: none; }
.step-title-link:hover, .step-title-link:focus-visible { color: var(--miami-ink); text-decoration: underline; }
.path > .chat-live { margin-top: 12px; }
.continue-acts form { margin: 0; }
/* "Nothing here yet": what a member can do while Matteen finishes their Codes. */
.meanwhile { max-width: 760px; margin-top: 8px; }
.meanwhile h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); margin: 0 0 12px; }
.meanwhile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.meanwhile a { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: var(--sp-4) var(--sp-6); background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; transition: border-color var(--dur) var(--ease); }
.meanwhile a:hover, .meanwhile a:focus-visible { border-color: var(--miami); }
.meanwhile a span { color: var(--muted); font-size: var(--fs-ui); }
/* Charts on a phone: Ask about your charts first, both buttons full width, and the at-a-glance cards two to a row. */
@media (max-width: 640px) {
  .charts-acts { display: grid; grid-template-columns: minmax(0, 1fr); }
  .charts-acts .button { width: 100%; }
  .glance-group .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .cx-share a { display: inline-block; padding: 11px 0; margin: -4px 0; } }
/* Phones: links that stand on their own line are a full finger tall, and the footer link has room around it. */
@media (max-width: 640px) {
  .more-link a, .your-chats-head a, .your-chats-saved a, .path-step .step-page, .chat-side-saved { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer a { display: inline-block; padding: 12px 0; }
}
/* Phones: small toggles and pill links get a full-finger (44px) hit area without changing how they look or where things sit. */
@media (max-width: 640px) {
  .fl-more > summary { display: inline-block; padding: 13px 0; margin: -5px 0 -13px; }
  .how-read > summary { min-height: 44px; margin: -6px 0; }
  .ask-this, .group-all { position: relative; }
  .ask-this::after, .group-all::after { content: ""; position: absolute; inset: -8px -2px; }
}
.codes-search input, .search-box input { align-self: stretch; }
/* Narrow phones: matteen.ai takes its own line instead of leaving the "·" dangling at the end of the first. */
@media (max-width: 480px) {
  .foot-sep { display: none; }
  .site-footer a { display: block; width: fit-content; }
  body.bare .site-footer > span { flex-basis: 100%; }
  body.bare .site-footer a { margin-inline: auto; }
}
@media (max-width: 640px) { .step-title-link { display: inline-block; padding: 11px 0; margin: -11px 0; } .code-book h3 a { display: inline-block; padding: 10px 0; margin: -10px 0; } }

/* Live now (FEATURES.md, Live): a slim dark strip under the header on Home and that session's Code, while Matteen is live. */
.live-strip { background: var(--text); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.live-strip-in { max-width: var(--page); margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 52px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; flex: none; background: rgba(255, 255, 255, .1); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6f; animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 111, .5); } 50% { box-shadow: 0 0 0 6px rgba(255, 107, 111, 0); } }
.live-what { flex: 1 1 auto; min-width: 0; font-size: var(--fs-ui); color: var(--on-dark-muted); }
.live-what b { color: #fff; font-weight: 700; }
.live-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--h-control); padding: 0 16px; border-radius: var(--r-pill); background: var(--miami); color: var(--on-miami); font-size: var(--fs-ui); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background var(--dur) var(--ease); }
.live-go:hover { background: var(--miami-hover); color: var(--on-miami); }
.live-go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .live-strip-in { padding-block: 10px; }
  .live-what { flex-basis: calc(100% - 160px); }
  .live-go { flex: 1 1 100%; min-height: 44px; }
}
/* Parts a live check swapped in are already on screen, so they skip the page's entrance animation. */
.wrap > .live-swapped { animation: none; }
/* The step Matteen just opened, after the page opened it in place. */
.path-step.is-new { border-color: var(--miami); box-shadow: 0 0 0 3px rgba(0, 162, 200, .22), var(--shadow-lift); animation: live-new .9s ease-out 1; }
.continue-card.is-new { border-color: var(--miami); box-shadow: 0 0 0 3px rgba(0, 162, 200, .22), var(--shadow-card); }
@keyframes live-new { from { box-shadow: 0 0 0 10px rgba(0, 162, 200, .0), var(--shadow-lift); background: #e3f6fb; } }
/* Empty lists: a small brand icon, one line, and one next step, in the "While you wait" card look. */
.empty-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin: var(--sp-3) 0 0; padding: var(--sp-4) var(--sp-6); max-width: 760px; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.empty-icon { flex: none; display: grid; place-items: center; width: var(--h-control); height: var(--h-control); border-radius: var(--r-inner); background: var(--miami-wash); color: var(--miami-ink); }
.empty-body { flex: 1 1 220px; min-width: 0; margin: 0; color: var(--text-2); }
.empty-go { flex: none; }
.empty-compact { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; gap: var(--sp-3); }
.empty-compact .empty-icon { width: var(--h-compact); height: var(--h-compact); border-radius: var(--r-field); }
.empty-compact .empty-icon svg { width: var(--icon); height: var(--icon); }
.empty-compact .empty-body { flex-basis: 160px; color: var(--muted); }
.message-wait .empty-icon { width: 52px; height: 52px; margin-bottom: var(--sp-4); }
@media (max-width: 480px) { .empty-state:not(.empty-compact) .empty-go { width: 100%; } }

/* Live now strip on the page of the member's own next step: a note, not a link back to the same page. */
.live-here { font-size: var(--fs-ui); font-weight: 700; color: #fff; white-space: nowrap; }
@media (max-width: 640px) { .live-here { flex: 1 1 100%; } }

/* Round 13: a step that has a video says so with a small play icon (it isn't a link). */
.step-has-video { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.step-has-video svg { color: var(--miami-ink); }
/* Watch: the small play icon is for the compact rows on phones only. */
.video-mini { display: none; }
@media (max-width: 600px) {
  .videos { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .video:not(.video-whole) a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 2px; min-height: 64px; padding: 12px 14px; }
  .video:not(.video-whole) .video-thumb { display: none; }
  .video:not(.video-whole) .video-mini { display: grid; place-items: center; grid-row: 1 / span 2; width: 40px; height: 40px; padding-left: 2px; border-radius: 50%; background: var(--miami-wash); color: var(--miami-ink); }
  .video:not(.video-whole) b, .video:not(.video-whole) small { grid-column: 2; padding: 0; margin: 0; }
}
/* Round 13: the count sits above the Codes and Private cards, with room under the search. */
.list-summary:has(+ .code-grid) { margin: 16px 0 12px; }
