/* astrolens, v4 "Pastel". Clean cards on a soft blue-white page, no purple anywhere, six pastel fills with matching deep inks.
   Standards live in docs/DESIGN.md. Rules of thumb:
   - Pastels are fills only. Text on a pastel uses --ink or the matching *-ink colour.
   - No element scrolls on its own: the page is the only scroller (no overflow:auto, no max-height lists).
   - Light by default; [data-theme="dark"] on <html> switches. */
:root {
  /* surfaces and text */
  --bg: #F4F7FA; --surface: #FFFFFF; --surface-2: #F8FAFC; --ink: #172231; --ink-2: #3B4757; --muted: #617083; --faint: #9BA6B4;
  --line: #E2E8EF; --line-2: #EDF1F6;
  /* brand */
  --primary: #2D6AA0; --primary-hover: #245A8A; --on-primary: #FFFFFF;
  /* pastel fills */
  --sage: #E7F0DC; --sky: #E0EFFC; --mint: #DDF4E7; --peach: #FDE8DA; --butter: #FCF2CF; --rose: #FCE3EA; --teal: #DAF0F0; --stone: #E9EDF2; --sand: #F2EBDF;
  /* matching inks (AA on their fill and on white) */
  --sage-ink: #4C6A2B; --sky-ink: #285F8F; --mint-ink: #2A7150; --peach-ink: #9C4F1B; --butter-ink: #7C5E0A; --rose-ink: #A33A60; --teal-ink: #1F6B6A; --stone-ink: #55606E; --sand-ink: #75613F;
  /* meaning */
  --good: var(--mint-ink); --good-bg: var(--mint); --test: var(--rose-ink); --test-bg: var(--rose); --shift: var(--peach-ink); --shift-bg: var(--peach);
  /* shape, depth, space */
  --r-lg: 18px; --r: 12px; --r-sm: 8px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 34, 52, .04), 0 6px 20px rgba(20, 34, 52, .05);
  --shadow-up: 0 -6px 24px rgba(20, 34, 52, .07);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --pad: clamp(16px, 2.6vw, 48px);
  --head: 68px;
  --f-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-glyph: "Noto Sans Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", "Apple Symbols", sans-serif;
  /* older names still used by the chart drawing */
  --page: var(--surface); --paper: var(--bg); --rule: var(--line); --accent: var(--primary); --lapis: var(--sky-ink);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F141C; --surface: #172030; --surface-2: #1C2738; --ink: #E8EEF5; --ink-2: #C4CEDA; --muted: #94A1B2; --faint: #66738A;
  --line: #283548; --line-2: #202B3C;
  --primary: #93C5F0; --primary-hover: #A9D2F4; --on-primary: #0E1A28;
  --sage: #25321B; --sky: #1C3147; --mint: #1B3629; --peach: #3D2B1F; --butter: #38311A; --rose: #3D2232; --teal: #183536; --stone: #263040; --sand: #352F25;
  --sage-ink: #B7D594; --sky-ink: #93C5F0; --mint-ink: #86D6AE; --peach-ink: #F2B38B; --butter-ink: #E8CF77; --rose-ink: #F2A0BE; --teal-ink: #84D2D0; --stone-ink: #B3BDCA; --sand-ink: #D9C39D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-up: 0 -6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.65 var(--f-body); font-variant-numeric: tabular-nums; min-height: 100vh; }
svg { max-width: 100%; }
svg text { font-family: var(--f-body); }
svg .glyph { font-family: var(--f-glyph); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1 { font-family: var(--f-display); font-size: clamp(30px, 2.7vw, 42px); line-height: 1.1; }
h2 { font-family: var(--f-display); font-size: 23px; line-height: 1.2; }
h3 { font-family: var(--f-display); font-size: 19px; line-height: 1.25; }
p { margin: 0 0 .85em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--test); font-size: 13.5px; margin: 0; min-height: 1em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- colour helpers: .c-sky, .c-sage ... give a fill and its ink ---------- */
.c-sage { --c: var(--sage); --ci: var(--sage-ink); } .c-sky { --c: var(--sky); --ci: var(--sky-ink); } .c-mint { --c: var(--mint); --ci: var(--mint-ink); }
.c-peach { --c: var(--peach); --ci: var(--peach-ink); } .c-butter { --c: var(--butter); --ci: var(--butter-ink); } .c-rose { --c: var(--rose); --ci: var(--rose-ink); }
.c-teal { --c: var(--teal); --ci: var(--teal-ink); } .c-stone { --c: var(--stone); --ci: var(--stone-ink); } .c-sand { --c: var(--sand); --ci: var(--sand-ink); }

/* ---------- controls ---------- */
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: var(--on-primary); padding: 10px 18px; border-radius: var(--r-pill); font-weight: 500; font-size: 14px; line-height: 1.2; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--primary-hover); }
.btn.line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 16px; font-size: 13.5px; }
.btn.line:hover { background: var(--sky); box-shadow: inset 0 0 0 1px transparent; }
.btn.soft { background: var(--sky); color: var(--sky-ink); padding: 8px 16px; font-size: 13.5px; }
.btn.soft:hover { background: color-mix(in srgb, var(--sky) 70%, var(--sky-ink) 12%); }
.btn.text { background: none; color: var(--ink-2); padding: 6px 10px; font-size: 13.5px; border-radius: var(--r-pill); }
.btn.text:hover { background: var(--line-2); color: var(--ink); }
.btn.danger { color: var(--test); }
.btn.danger:hover { background: var(--rose); color: var(--rose-ink); }
.btn[disabled] { opacity: .45; cursor: default; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea, select.plain { width: 100%; padding: 10px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; min-width: 0; }
.field input:focus, .field select:focus, select.plain:focus, textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.switch { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--line-2); }
.switch button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--muted); }
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { background: var(--surface); color: var(--sky-ink); font-weight: 500; box-shadow: 0 1px 3px rgba(20, 34, 52, .12); }
:root[data-theme="dark"] .switch button[aria-pressed="true"] { background: var(--sky); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 10px; border-radius: var(--r-pill); background: var(--c, var(--sky)); color: var(--ci, var(--sky-ink)); white-space: nowrap; vertical-align: middle; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ci, var(--primary)); flex: 0 0 auto; display: inline-block; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--c, var(--sky)); color: var(--ci, var(--sky-ink)); display: inline-grid; place-items: center; font-family: var(--f-display); font-size: 16px; flex: 0 0 auto; }
.av.lg { width: 56px; height: 56px; font-size: 26px; }

/* ---------- cards: the one container ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); min-width: 0; }
.card.tint { background: var(--c); border-color: transparent; box-shadow: none; }
.card > h2:first-child, .card > .hd:first-child { margin-bottom: var(--s4); }
.card + .card { margin-top: var(--s5); }
.hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hd h2 { display: flex; align-items: center; gap: 10px; }
.hd h2 .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--c); color: var(--ci); display: inline-grid; place-items: center; font-family: var(--f-glyph); font-size: 16px; }

/* ---------- sign-in, password, notices ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--pad); background:
  radial-gradient(circle at 12% 18%, var(--sage) 0, transparent 38%), radial-gradient(circle at 88% 14%, var(--peach) 0, transparent 34%),
  radial-gradient(circle at 80% 88%, var(--mint) 0, transparent 36%), radial-gradient(circle at 16% 86%, var(--sky) 0, transparent 34%), var(--bg); }
.gate .box { width: min(440px, 100%); display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.gate .mark { width: 76px; height: 76px; }
.gate h1 { font-size: 36px; }
.gate h1.sm { font-size: 30px; }
.gate .lead { color: var(--muted); margin: 8px 0 0; }
.gate form { display: grid; gap: 14px; }
.gate form .btn { width: 100%; padding: 12px 18px; }
.gate .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .bar { min-height: var(--head); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); }
.top .brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 21px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.top .brand .mark { width: 30px; height: 30px; }
.wordmark { font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; }
.wordmark b { font-weight: 400; color: var(--primary); }
.top .brand .fam-nm { font-family: var(--f-body); font-size: 13px; color: var(--muted); padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; flex: 1; align-items: center; }
.top nav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); color: var(--muted); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.top nav a:hover { color: var(--ink); background: var(--line-2); }
.top nav a[aria-current="page"] { color: var(--sky-ink); background: var(--sky); font-weight: 500; }
.top nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px; flex: 0 0 auto; }
.menu { position: relative; }
.menu > button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 4px 12px 4px 4px; border-radius: var(--r-pill); }
.menu > button:hover { background: var(--line-2); }
.menu .drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(20, 34, 52, .16); padding: 8px; display: grid; }
.menu .drop .who { padding: 8px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.menu .drop .who b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.menu .drop .lbl { padding: 8px 10px 6px; font-size: 12.5px; color: var(--muted); }
.menu .drop .switch { margin: 0 10px 8px; }
.menu .drop > button { all: unset; cursor: pointer; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; }
.menu .drop > button:hover, .menu .drop > button:focus-visible { background: var(--sky); }
.top .mnav { display: none; }

main.page { padding: var(--s6) var(--pad) 72px; }
.loading { padding: 48px var(--pad); color: var(--muted); }

/* ---------- page header: same on every page ---------- */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; margin-bottom: var(--s5); }
.hero .who { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hero .sub { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.facts > div { background: var(--c); border-radius: var(--r); padding: 10px 16px 11px; min-width: 132px; }
.facts dt { font-size: 12px; font-weight: 500; color: var(--ci); }
.facts dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 20px; line-height: 1.2; white-space: nowrap; color: var(--ink); }
.facts dd small { display: block; font-family: var(--f-body); font-size: 12.5px; color: var(--ink-2); opacity: .85; }

/* ---------- person ---------- */
.person { display: grid; grid-template-columns: minmax(400px, 520px) minmax(0, 1fr) minmax(280px, 330px); gap: var(--s5); align-items: start; }
.chartcol .switch { margin-bottom: var(--s3); }
.chartcol .cap { color: var(--muted); font-size: 13px; margin: 10px 0 16px; text-align: center; }
.wheel { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
table.pos { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.pos th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
table.pos td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.pos tr:last-child td { border-bottom: 0; }
table.pos .gl { font-family: var(--f-glyph); color: var(--sky-ink); display: inline-block; width: 20px; }
.flag { display: inline-block; font-size: 11px; font-weight: 500; line-height: 1; padding: 3px 7px; border-radius: var(--r-pill); background: var(--butter); color: var(--butter-ink); margin-left: 6px; white-space: nowrap; }
.flag.r { background: var(--rose); color: var(--rose-ink); }

.read > section + section { margin-top: var(--s5); }
.read .hd { margin-bottom: var(--s4); }
.read h3 { margin: 24px 0 8px; }
.read h3:first-child { margin-top: 0; }
.read p { color: var(--ink-2); }
.read .intro { font-size: 14px; color: var(--muted); margin-top: -6px; }
/* Wide cards: reading sections as side-by-side tiles, so text never leaves a blank strip on the right. */
.read > section { container-type: inline-size; }
.rs h3 { margin-top: 0; }
.rsecs { display: grid; gap: 26px; }
.rp p:last-child, .ptxt p:last-child { margin-bottom: 0; }
.pgrid { display: grid; gap: 4px; margin-bottom: 22px; }
.pguide .guide-t:first-child { margin-top: 0; }
@container (min-width: 720px) {
  .rsecs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 44px; }
  .rsecs > .rs:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rsecs > .rs:last-child:nth-child(odd) .rp:has(p + p), .rsecs.solo .rp:has(p + p) { columns: 2; column-gap: 44px; }
  .rsecs .rp p { break-inside: avoid; }
  .rsecs.solo { grid-template-columns: minmax(0, 1fr); }
  .pgrid { grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); gap: 0 36px; align-items: start; }
  .pgrid .pguide .guide { grid-template-columns: 1fr; }
}
.note-box { background: var(--butter); color: var(--ink); padding: 14px 18px; margin: 0 0 22px; font-size: 14.5px; border-radius: var(--r); }
.note-box.bad { background: var(--rose); }
.note-box b { color: var(--butter-ink); }
.note-box.bad b { color: var(--rose-ink); }
.pending { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--sky); color: var(--ink); }
.pending b { color: var(--sky-ink); font-weight: 500; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--sky-ink) 25%, transparent); border-top-color: var(--sky-ink); flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: sp 1s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } } }

.span { margin: 8px 0 24px; }
.span .bar { display: flex; height: 38px; border-radius: var(--r-sm); position: relative; gap: 3px; }
.span .bar div { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--ci); background: var(--c); border-radius: 6px; overflow: hidden; white-space: nowrap; min-width: 0; }
.span .bar div.cur { box-shadow: inset 0 0 0 2px var(--ci); }
.span .bar i { position: absolute; top: -6px; bottom: -6px; width: 3px; border-radius: 2px; background: var(--ink); }
.span .scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 8px; }
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.subs div { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; line-height: 1.35; }
.subs div span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.subs div.past { opacity: .55; }
.subs div.cur { background: var(--c); border-color: transparent; }
.subs div.cur b { color: var(--ci); }
.subs div span.pill { display: inline-flex; margin: 0 0 0 6px; background: var(--surface); color: var(--ci); padding: 3px 8px; }

.when-list { display: grid; gap: 10px; }
.yr { font-family: var(--f-display); font-size: 20px; color: var(--sky-ink); padding: 12px 0 2px; }
.yr:first-child { padding-top: 0; }
.ev { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 4px 20px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); border-left: 4px solid var(--ci); }
.ev .d { font-size: 13px; color: var(--muted); line-height: 1.45; }
.ev .t { font-weight: 500; color: var(--ink); }
.ev .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 4px 0 6px; }
.ev p { margin: 0; color: var(--ink-2); }
.ev.now .pill { background: var(--surface); }
.ev.now { background: var(--c); border-color: transparent; border-left-color: var(--ci); }
.tone-up { --c: var(--good-bg); --ci: var(--good); } .tone-test { --c: var(--test-bg); --ci: var(--test); } .tone-shift { --c: var(--shift-bg); --ci: var(--shift); }

.rail { display: grid; gap: var(--s4); align-content: start; }
.rail .card + .card { margin-top: 0; }
.rail .big { font-family: var(--f-display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.rail .big small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rail li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; }
.rail li .dot { margin-top: 6px; }
.rail li .when { display: block; font-size: 12.5px; color: var(--muted); }
.rail .toc { display: flex; flex-wrap: wrap; gap: 6px; }
.rail .toc a { padding: 6px 12px; border-radius: var(--r-pill); background: var(--line-2); color: var(--ink-2); text-decoration: none; font-size: 13px; }
.rail .toc a:hover { background: var(--sky); color: var(--sky-ink); }
.rail .btn { width: 100%; }

/* ---------- together ---------- */
.together { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.score { display: flex; align-items: center; gap: 18px; margin: 4px 0 6px; }
.score .ring { width: 104px; height: 104px; flex: 0 0 auto; }
.score b { font-family: var(--f-display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--ink); }
.score span { color: var(--ink-2); font-size: 14px; }
.factors { display: grid; gap: 8px; margin-top: 18px; }
.factor { display: grid; grid-template-columns: minmax(0, 1fr) 110px 58px; gap: 4px 14px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); }
.factor .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.factor .bar i { display: block; height: 100%; border-radius: 3px; background: var(--ci); }
.factor .n { text-align: right; white-space: nowrap; font-size: 13px; color: var(--muted); }
.factor small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.45; }
ul.points { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
ul.points li { padding: 12px 14px 12px 42px; position: relative; color: var(--ink); background: var(--c); border-radius: var(--r-sm); }
ul.points li::before { content: "✓"; position: absolute; left: 14px; top: 12px; font-weight: 600; color: var(--ci); }
ul.points.rub li::before { content: "!"; left: 18px; }

/* ---------- ask: the page scrolls, the composer sticks to the bottom ---------- */
.ask { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: var(--s5); align-items: start; padding: var(--s5) var(--pad) 0; }
.ask .hd { margin-bottom: var(--s3); }
.convs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.conv { all: unset; cursor: pointer; display: block; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.conv .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv small { display: block; color: var(--faint); font-size: 12px; margin-top: 3px; }
.conv:hover { background: var(--line-2); }
.conv[aria-current="true"] { background: var(--sky); color: var(--ink); }
.conv[aria-current="true"] small { color: var(--sky-ink); }
.more { margin-top: 8px; }
.chat { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--head) - var(--s5)); min-height: calc(100dvh - var(--head) - var(--s5)); }
.chat .ctitle, .chat .log > *, .chat .compose form { width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; }
.chat .ctitle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 var(--s4); }
.chat .log { flex: 1; display: flex; flex-direction: column; gap: 22px; padding-bottom: var(--s5); }
.q .by, .a .by { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.q .by { justify-content: flex-end; }
.q .txt { background: var(--sky); border-radius: 18px 18px 4px 18px; padding: 12px 18px; margin-left: auto; width: fit-content; max-width: 80%; color: var(--ink); }
.a .body { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 18px 22px; color: var(--ink-2); box-shadow: var(--shadow); }
.a .by { color: var(--sky-ink); font-weight: 500; }
.a ul { padding-left: 1.2em; margin: 0 0 .85em; }
.a p:last-child { margin-bottom: 0; }
.a strong { color: var(--ink); font-weight: 600; }
.chat .compose { position: sticky; bottom: 0; padding: var(--s3) 0 var(--s4); background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.chat .compose form { display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-up); }
.chat .compose form:focus-within { border-color: var(--primary); }
.chat textarea { flex: 1; min-width: 0; resize: none; overflow: hidden; min-height: 44px; padding: 10px 0; border: 0; background: none; color: var(--ink); font: inherit; line-height: 1.5; }
.chat textarea:focus { box-shadow: none; outline: none; }
.empty { margin: auto 0; text-align: center; padding: var(--s7) var(--s5); }
.empty .mark { width: 64px; height: 64px; margin: 0 auto 14px; display: block; }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.side-r { display: grid; gap: var(--s4); }
.ask .stick { position: sticky; top: calc(var(--head) + var(--s5)); }
.side-r .card + .card { margin-top: 0; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.sugg button { all: unset; cursor: pointer; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.4; color: var(--ink); background: var(--c); }
.sugg button:hover { box-shadow: inset 0 0 0 1px var(--ci); }
dl.kv { margin: 0; font-size: 14px; display: grid; gap: 6px; }
dl.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--c, var(--surface-2)); }
dl.kv dt { color: var(--ci, var(--muted)); font-weight: 500; } dl.kv dd { margin: 0; text-align: right; color: var(--ink); }

/* ---------- family ---------- */
.fam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.fam.solo { grid-template-columns: minmax(0, 960px); }
.list { display: grid; gap: 8px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); }
.item .main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.item b { font-weight: 500; }
.item b + .pill { margin-left: 8px; }
.item .meta { font-size: 13px; color: var(--muted); }
.item .acts { display: flex; gap: 2px 4px; flex-wrap: wrap; }
.item form { width: 100%; display: grid; gap: 12px; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.secret { width: 100%; font-size: 14px; background: var(--butter); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); user-select: all; overflow-wrap: anywhere; }
.form-block { margin-top: var(--s5); padding: var(--s5); border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 14px; }
.places ul { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); display: grid; gap: 2px; box-shadow: var(--shadow); }
.places li button { all: unset; cursor: pointer; display: block; width: 100%; padding: 8px 10px; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.places li button:hover, .places li button:focus-visible { background: var(--sky); }
.usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.usage div { padding: 14px 16px; border-radius: var(--r); background: var(--c); }
.usage b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 28px; color: var(--ink); }
.usage span { font-size: 13px; color: var(--ci); font-weight: 500; }
.help { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  .person { grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); }
  .person .chartcol { grid-row: 1 / span 2; }
  .person .rail { grid-column: 2; grid-row: 1; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .person .rail .toc-card, .person .rail .lst { display: none; }
  .person .read { grid-column: 2; grid-row: 2; }
  .together { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); }
  .together > .score-col { grid-row: 1 / span 2; }
  .together > .read { grid-column: 2; }
  .ask { grid-template-columns: 270px minmax(0, 1fr) 290px; }
}
@media (max-width: 1100px) {
  .ask { grid-template-columns: 250px minmax(0, 1fr); }
  .ask > .side-r { display: none; }
  .together, .fam { grid-template-columns: minmax(0, 1fr); }
  .together > .score-col, .together > .read { grid-column: 1; grid-row: auto; }
}
@media (max-width: 900px) {
  :root { --head: 0px; }
  .top .bar { min-height: 60px; }
  .top { position: static; }
  html { scroll-padding-top: 16px; }
  .top .bar { gap: 14px; }
  .top .bar nav { display: none; }
  .top .brand .nm, .top .brand .fam-nm { display: none; }
  .top .mnav { display: flex; padding: 0 var(--pad) 10px; gap: 6px; }
  .top .mnav a { padding: 6px 12px; font-size: 14px; background: var(--line-2); }
  .menu { margin-left: auto; }
  .menu > button .nm { display: none; }
  .menu > button { padding: 4px; }
  main.page { padding-top: var(--s5); }
  .card { padding: var(--s4); border-radius: var(--r); }
  .hero { gap: 16px; }
  .hero .who { gap: 14px; }
  .av.lg { width: 46px; height: 46px; font-size: 22px; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person .chartcol, .person .rail, .person .read { grid-column: 1; grid-row: auto; }
  .person .rail { grid-template-columns: minmax(0, 1fr); }
  .facts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .facts > div { min-width: 0; padding: 10px 12px; }
  .facts dd { white-space: normal; font-size: 18px; }
  .ask { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: var(--s4); }
  .ask > aside.convcol { order: 2; }
  .chat { min-height: 0; }
  .ev { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .factor { grid-template-columns: minmax(0, 1fr) 70px 54px; }
  .usage b { font-size: 22px; }
  .usage div { padding: 12px; }
  .q .txt { max-width: 92%; }
  .a .body { padding: 14px 16px; }
  .gate .box { padding: 26px 22px; }
  .item .acts { width: 100%; }
}
.avs { display: flex; flex: 0 0 auto; }
.avs .av + .av { margin-left: -14px; box-shadow: 0 0 0 3px var(--bg); }

/* ---------- explanations: underlined terms and the shared tooltip ---------- */
.term { text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, var(--sky-ink) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; border-radius: 3px; transition: background-color .15s, color .15s, text-decoration-color .15s; -webkit-tap-highlight-color: transparent; }
.term:hover, .term.on, .term:focus-visible { background: var(--sky); color: var(--ink); text-decoration-color: var(--sky-ink); text-decoration-style: solid; outline: none; }
.pill.term { text-decoration: none; box-shadow: inset 0 -1.5px 0 color-mix(in srgb, var(--ci) 55%, transparent); }
.pill.term:hover, .pill.term.on { background: var(--surface); }
[data-tip] { cursor: help; }
.tip { position: fixed; z-index: 60; width: min(340px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 44px rgba(20, 34, 52, .18), 0 2px 6px rgba(20, 34, 52, .06); padding: 14px 16px 12px; font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(4px) scale(.98); transition: opacity .16s ease, transform .16s ease; pointer-events: auto; }
.tip[data-side="above"] { transform: translateY(-4px) scale(.98); }
.tip.in { opacity: 1; transform: none; }
.tip p { margin: 8px 0 0; color: var(--ink-2); }
.tip p span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.tip p.gr { background: var(--sky); border-radius: var(--r-sm); padding: 8px 10px; color: var(--ink); }
.tip p.gr span { color: var(--sky-ink); }
.tip-hd { padding-right: 26px; }
.tip-hd b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.2; color: var(--ink); }
.tip-hd .vn { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--sage-ink); background: var(--sage); padding: 2px 8px; border-radius: var(--r-pill); }
.tip-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin: 10px 0 0; }
.tip-facts div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 8px; min-width: 0; }
.tip-facts dt { font-size: 11px; color: var(--muted); }
.tip-facts dd { margin: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.tip-x { all: unset; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--muted); cursor: pointer; }
.tip-x:hover { background: var(--line-2); color: var(--ink); }
@media (hover: hover) and (min-width: 700px) { .tip:not(.sheet) .tip-x { display: none; } }
/* phones: the explanation slides up from the bottom as a sheet */
.tip.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; border-radius: 20px 20px 0 0; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); font-size: 15px; box-shadow: 0 -12px 40px rgba(20, 34, 52, .22); }
.tip.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
.tip.sheet.in { transform: none; }
.tip.sheet .tip-x { top: 12px; right: 12px; width: 36px; height: 36px; background: var(--line-2); }

/* ---------- interactive chart ---------- */
.wheel .seg, .wheel .hw { transition: filter .15s, fill .15s, opacity .15s; }
.wheel .seg:hover, .wheel .seg.on { filter: brightness(.94) saturate(1.3); }
:root[data-theme="dark"] .wheel .seg:hover, :root[data-theme="dark"] .wheel .seg.on { filter: brightness(1.35); }
.wheel .hw:hover, .wheel .hw.on { fill: var(--line-2); }
.wheel .sg, .wheel .lines, .wheel .hub, .wheel .aspects { pointer-events: none; }
.wheel .pl { cursor: help; }
.wheel .pl .halo { fill: var(--sky); opacity: 0; transition: opacity .15s; }
.wheel .pl .pi { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); transform-box: view-box; }
.wheel .pl:hover .pi, .wheel .pl.hl .pi, .wheel .pl.on .pi, .wheel .pl:focus-visible .pi { transform: scale(1.3); }
.wheel .pl:hover .halo, .wheel .pl.hl .halo, .wheel .pl.on .halo, .wheel .pl:focus-visible .halo { opacity: 1; }
.wheel .pl:focus { outline: none; }
table.pos tr[data-n] { transition: background-color .15s; cursor: help; }
table.pos tr.hl td, table.pos tr.on td { background: var(--sky); }
table.pos tr.hl td:first-child, table.pos tr.on td:first-child { border-radius: 6px 0 0 6px; }
table.pos tr.hl td:last-child, table.pos tr.on td:last-child { border-radius: 0 6px 6px 0; }
.span .bar div { cursor: help; transition: filter .15s, transform .15s; }
.span .bar div:hover, .span .bar div.on { filter: saturate(1.5) brightness(.97); transform: translateY(-2px); }
.subs div[data-tip] { cursor: help; }

/* ---------- light motion everywhere (switched off for people who ask their device for less motion) ---------- */
body { transition: background-color .3s ease, color .3s ease; }
.card, .item, .ev, .subs > div, .facts > div, .conv, .sugg button, .factor, dl.kv div, .usage div, ul.points li, .top nav a, .switch button, .btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn:active, .switch button:active, .conv:active, .sugg button:active { transform: scale(.97); }
@media (hover: hover) {
  .item:hover, .ev:hover, .subs > div:hover, .facts > div:hover, .factor:hover, .usage div:hover, ul.points li:hover, .sugg button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .btn:hover { transform: translateY(-1px); }
  .rail .toc a:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
  @keyframes growX { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes segIn { from { opacity: 0; transform: scale(.88) rotate(-6deg); } to { opacity: 1; transform: none; } }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 35%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
  @keyframes arc { from { stroke-dasharray: 0 400; } }
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
  @keyframes slideL { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
  @keyframes slideR { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
  #work.enter .hero, #work.enter .card, #work.enter .ev, #work.enter .item, #work.enter .subs > div, #work.enter .facts > div, #work.enter .factor, #work.enter ul.points li, #work.enter .conv, #work.enter .sugg button { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
  .gate .box { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .gate .mark { animation: segIn .9s cubic-bezier(.2, .7, .2, 1) both .1s; }
  .wheel .seg, .wheel .sg { transform-box: view-box; transform-origin: 0 0; animation: segIn .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 28ms); }
  .wheel .pl { animation: pop .45s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(320ms + var(--i) * 45ms); transform-box: fill-box; transform-origin: center; }
  .wheel .lines, .wheel .aspects { animation: fade .6s ease both .25s; }
  .span .bar div { transform-origin: left; animation: growX .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
  .span .bar i.now-mark { animation: fade .4s both .8s, pulse 2.4s ease-in-out 1.4s infinite; }
  .factor .bar i { transform-origin: left; animation: growX .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(200ms + var(--i) * 60ms); }
  .score .arc { animation: arc 1.1s cubic-bezier(.2, .7, .2, 1) both .2s; }
  .q { animation: slideR .35s cubic-bezier(.2, .7, .2, 1) both; }
  .a { animation: slideL .4s cubic-bezier(.2, .7, .2, 1) both; }
  .a .body.streaming > :last-child::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--sky-ink); animation: blink 1s steps(1) infinite; }
  .thinking .dots i { display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: var(--muted); animation: dot 1.2s ease-in-out infinite; }
  .thinking .dots i:nth-child(2) { animation-delay: .15s; } .thinking .dots i:nth-child(3) { animation-delay: .3s; }
  .menu .drop:not([hidden]) { animation: rise .18s ease both; }
  .places ul:not([hidden]), .secret:not([hidden]), .form-block, .item form { animation: rise .25s ease both; }
  .svgbox { animation: fade .3s ease both; }
  .pending { animation: rise .4s ease both; }
}
.thinking { color: var(--muted); font-size: 14px; margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } .tip { transition: none; } }
@media (max-width: 900px) {
  .term { text-underline-offset: 4px; padding: 1px 0; }
  .wheel .pl .hit { r: 20; }
}

/* ---------- personal notes and the Do / Don't block ---------- */
.tip-me { margin-top: 10px; background: var(--butter); border-radius: var(--r-sm); padding: 9px 11px; }
.tip-me .lbl { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--butter-ink); }
.tip-me p { margin: 3px 0 0; color: var(--ink); }
.tip-me .pend { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.when { font-size: 10.5px; letter-spacing: .04em; padding: 1px 7px; border-radius: var(--r-pill); }
.when.w-now { background: var(--sage); color: var(--sage-ink); }
.when.w-coming { background: var(--sky); color: var(--sky-ink); }
.when.w-past { background: var(--stone); color: var(--stone-ink); }
.tip-me .when { background: var(--surface); }
.tip-gen { margin-top: 8px; }
.tip-gen summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--sky-ink); padding: 6px 0; list-style: none; }
.tip-gen summary::-webkit-details-marker { display: none; }
.tip-gen summary::after { content: " ▾"; }
.tip-gen[open] summary::after { content: " ▴"; }
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.guide > div { border-radius: var(--r-sm); padding: 8px 10px 9px; min-width: 0; }
.guide .g-do { background: var(--mint); color: var(--ink); }
.guide .g-dont { background: var(--peach); color: var(--ink); }
.guide b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.guide .g-do b { color: var(--mint-ink); }
.guide .g-dont b { color: var(--peach-ink); }
.guide b i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); font-size: 11px; }
.guide ul { margin: 4px 0 0; padding-left: 16px; font-size: 13.5px; line-height: 1.45; }
.guide li + li { margin-top: 3px; }
.guide-foot { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.guide-t { margin: 16px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tip .guide ul { font-size: 13px; }
.rail .guide { grid-template-columns: 1fr; }
.rail .tint .guide > div { background: var(--surface); }
.ev .guide { margin-top: 10px; }
.ev .guide-foot { display: none; }
.a .body .guide { margin: 14px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .guide { animation: rise .4s cubic-bezier(.2, .7, .2, 1) both .1s; }
  .tip-me { animation: fade .25s ease both; }
}
.tip .tip-me p { margin: 3px 0 0; color: var(--ink); }
.tip .guide-foot { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.tip.wide:not(.sheet) { width: min(440px, calc(100vw - 24px)); }
.tip.wide:not(.sheet) .tip-facts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.tip[data-side="beside"] { transform: translateX(-4px) scale(.98); }
.tip.in[data-side="beside"] { transform: none; }
.tip-tabs { display: flex; gap: 4px; margin-top: 12px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.tip-tabs button { all: unset; flex: 1; text-align: center; font-size: 13.5px; font-weight: 500; padding: 7px 10px; border-radius: var(--r-pill); color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.tip-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 34, 52, .12); }
.tip .tp[data-p="me"] .tip-me { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) { .tip .tp:not([hidden]) { animation: fade .2s ease both; } }
.rail .guide ul { display: block; list-style: disc; padding-left: 16px; }
.rail .guide li { display: list-item; font-size: 13.5px; }
.tip.sheet .tip-me .lbl .t { display: none; }
.tip.sheet .tip-me .lbl:not(:has(.when)) { display: none; }
.tip.sheet .tip-me p { margin-top: 0; }
.tip-me + .tip-me { margin-top: 6px; }
.tip.sheet .tip-me:not(:only-of-type) .lbl, .tip.sheet .tp .tip-me + .tip-me .lbl { display: flex; }
.tip.sheet .tp .tip-me:has(+ .tip-me) .lbl .t, .tip.sheet .tp .tip-me + .tip-me .lbl .t { display: inline; }

/* ---------- chart: continuous light motion ---------- */
:root { --glint: #ffffff; --glint-o: .6; }
:root[data-theme="dark"] { --glint: #9fc3e6; --glint-o: .3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glint: #9fc3e6; --glint-o: .3; } }
.wheel .sweep, .wheel .orbit, .wheel .beat { pointer-events: none; }
.wheel .sweep { opacity: 0; }
.wheel .orbit { opacity: 0; }
.wheel .beat { fill: var(--sky); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wheel .sweep { transform-box: view-box; transform-origin: 0 0; animation: glintIn 1s ease 1.1s forwards, turn 40s linear 1.1s infinite; }
  .wheel .orbit { transform-box: view-box; transform-origin: 0 0; animation: orbitIn 1s ease 1.4s forwards, turn 26s linear infinite; }
  .wheel .pl .beat { transform-box: fill-box; transform-origin: center; animation: beat calc(var(--n, 10) * 1.6s) ease-in-out infinite; animation-delay: calc(1.6s + var(--i) * 1.6s); }
  .wheel .aspects line { animation: breathe 5s ease-in-out infinite alternate; }
  .wheel .aspects line:nth-child(3n+1) { animation-delay: -1.7s; } .wheel .aspects line:nth-child(3n+2) { animation-delay: -3.4s; }
  .svgbox:hover .wheel .sweep, .svgbox:hover .wheel .orbit, .svgbox:hover .wheel .beat, .svgbox:hover .wheel .aspects line { animation-play-state: paused; }
  @keyframes turn { to { transform: rotate(-360deg); } }
  @keyframes glintIn { to { opacity: var(--glint-o); } }
  @keyframes orbitIn { to { opacity: .6; } }
  @keyframes beat { 0% { opacity: 0; transform: scale(.6); } 6% { opacity: .8; transform: scale(1); } 14%, 100% { opacity: 0; transform: scale(1.4); } }
  @keyframes breathe { from { opacity: .3; } to { opacity: .75; } }
}

/* ---------- person page: section tabs (wide screens only) ---------- */
.sec-tabs { display: none; }
.rail .more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--primary); text-decoration: none; }
.rail .more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1501px) {
  .read.tabbed .sec-tabs { display: flex; gap: 4px; padding: 5px; margin-bottom: var(--s4); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 1px 2px rgba(20, 34, 52, .05)); position: sticky; top: calc(var(--head) + 12px); z-index: 6; }
  .sec-tabs button { all: unset; cursor: pointer; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; border-radius: var(--r-pill); font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background-color .18s, color .18s; }
  .sec-tabs button .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--c); color: var(--ci); display: inline-grid; place-items: center; font-family: var(--f-glyph); font-size: 14px; }
  .sec-tabs button:hover { background: var(--line-2); color: var(--ink); }
  .sec-tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  .sec-tabs button[aria-selected="true"] { background: var(--sky); color: var(--sky-ink); font-weight: 500; }
  .read.tabbed > section:not(.on) { display: none; }
  .read.tabbed > section + section { margin-top: 0; }
  .read.tabbed > section > .hd { display: none; }
  .read.tabbed .sec-tabs { box-shadow: 0 -13px 0 1px var(--bg), 0 4px 14px rgba(20, 34, 52, .06); }
}
@media (min-width: 1501px) and (prefers-reduced-motion: no-preference) { .read.tabbed > section.on { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; } }
