/* Self-hosted webfonts (Block 8). Besley (slab serif) ≈ the book's Sentinel — the reading voice;
   Inter ≈ Trade Gothic — the operating voice. Variable TTFs served locally from /fonts. No CDN. */
/* Subset to Latin-Extended woff2 (diacritics survive) + the app's symbols (· … — → ← ▾ ★ ☆ ✓). The
   full unsubset TTFs (874KB Inter) are kept only as a legacy fallback — modern browsers fetch only
   the woff2 (Inter 200KB / Besley 43KB / Besley-Italic 47KB). Preloaded in index.html. */
@font-face{font-family:'Besley';src:url('../fonts/Besley-var.woff2') format('woff2'),url('../fonts/Besley-var.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Besley';src:url('../fonts/Besley-Italic-var.woff2') format('woff2'),url('../fonts/Besley-Italic-var.ttf') format('truetype');font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:'Inter';src:url('../fonts/Inter-var.woff2') format('woff2'),url('../fonts/Inter-var.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}

:root{
  /* surfaces — the cover's deep indigo-violet night sky, sampled from the cover art. Darkest at the
     TOP of the sky, lightening to a violet glow toward the horizon (gradient runs dark->light, as
     the cover does). Cooler green pulled out; a touch of violet added, matching the sampled hue. */
  --bg-top:#03063f; --bg:#0b0f52; --bg-bottom:#1a1c68;
  --panel:#161c58; --panel-2:#0a0e3e; --edge:#2c2f66; --scrim:rgba(4,5,26,.92);
  --cover:url('../img/cover-bg.jpg');   /* cover artwork; swapped to a smaller file on phones below */
  /* text — near-white warm; periwinkle secondary. Both clear WCAG AA on --bg (see Block-8 flags) */
  --ink:#f4f1e8; --muted:#a6b0e4; --muted-deep:#8e99d4;
  /* accents — GOLD only. The constellation (stars AND lines) is entirely gold; no blue anywhere in it. */
  --gold:#e7c873; --gold-bright:#f6e7b4; --gold-deep:#b8924a;
  --ok:#8fe0a0; --warn:#ffb45a;
  --serif:'Besley',Georgia,'Times New Roman',serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
body{min-height:100vh;color:var(--ink);font-family:var(--sans);-webkit-text-size-adjust:100%;background-color:var(--bg)}
/* Cover artwork as a FIXED layer — position:fixed (reliable on iOS) rather than
   background-attachment:fixed. Under a darkening indigo overlay (lighter over the dark sky at the
   top, heavier over the pale salt-flat at the bottom) so text keeps a consistent, readable ground.
   Behind all content (z-index -1); solid --bg shows if the image fails to load. */
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(3,6,55,.40),rgba(3,6,55,.66) 58%,rgba(3,6,55,.86)),var(--cover) center/cover no-repeat}
/* fine paint-grain over the art (§4) — fixed, seamless-tiled, low-opacity soft-light; text stays crisp. */
body::after{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.06;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:200px 200px}
/* phones: smaller cover file (45KB vs 282KB) */
@media (max-width:720px){:root{--cover:url('../img/cover-bg-sm.jpg')}}

/* top bar + step nav */
.topbar{display:flex;align-items:center;gap:8px;padding:12px 16px;min-height:64px;
  border-bottom:1px solid var(--edge);position:sticky;top:0;background:rgba(0,9,32,.92);backdrop-filter:blur(6px);z-index:5}
/* masthead: COMPANION sits at the left; the wordmark is absolutely centered in the bar (so it's the
   true middle, independent of the side elements) and is click-through so it never blocks a control */
.companion{color:var(--muted);font-size:10px;letter-spacing:.22em;text-transform:uppercase;margin-right:auto;flex:0 0 auto}
.wordmark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:50px;width:auto;pointer-events:none}
.topbar button{white-space:nowrap}   /* keep "Sign in" / account chip on one line */
/* phones: too tight to center between a left label and the right controls — left-align the mark
   (back in flow) and drop the COMPANION label so nothing collides */
@media (max-width:520px){
  .companion{display:none}
  .wordmark{position:static;transform:none;height:38px;margin-right:auto;pointer-events:auto}
}

/* Constellations dropdown (view / reset) — fixed popover, escapes the step-nav overflow clip */
.cstpop{position:fixed;z-index:20;min-width:196px;background:var(--panel);border:1px solid var(--edge);
  border-radius:10px;padding:6px;box-shadow:0 16px 44px rgba(0,0,0,.55);display:flex;flex-direction:column;gap:2px}
/* display:flex above overrides the UA [hidden]{display:none}, so the menu would sit visible at its
   default (bottom-left) until a click positioned it — the "unanchored menu" bug. This wins on
   specificity (0,2,0 > 0,1,0) and actually hides it when closed. */
.cstpop[hidden]{display:none}
.cstitem{width:100%;text-align:left;background:transparent;border:0;border-radius:7px;padding:9px 11px;font-size:13px;color:var(--ink);cursor:pointer}
.cstitem:hover{background:#1c2060}
.cstitem.danger{color:#ff9db0}
.cstitem.danger:hover{background:#3a1620}
.steps{display:flex;gap:6px;overflow-x:auto;padding:10px 12px;border-bottom:1px solid var(--edge);
  position:sticky;top:60px;background:var(--bg);z-index:4;-webkit-overflow-scrolling:touch}   /* JS syncs exact height */
/* Block 8D item 1: on desktop, center the nav under the (viewport-centered) wordmark and pin
   "Constellations" right as a utility control (absolute, so it doesn't skew the centering). On
   phones the row stays left-aligned and horizontally scrollable (centering + scroll fights).
   Block 14: the nav is the book's spine — a Part One group (by chapter) and a Part Two group (the
   eight Steps). On desktop the groups wrap onto two rows when they don't fit side by side; the side
   padding keeps them clear of the pinned "Constellations" control. */
.navgroup{display:flex;align-items:center;gap:6px;flex:none}
.navpart{flex:none;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-deep);
  padding:0 4px 0 2px;white-space:nowrap}
.navgroup + .navgroup{border-left:1px solid var(--edge);padding-left:10px;margin-left:4px}
@media (min-width:720px){
  .steps{justify-content:center;overflow:visible;flex-wrap:wrap;row-gap:6px;padding-left:150px;padding-right:150px}
  .navitem.home{margin-left:0;position:absolute;right:12px;top:50%;transform:translateY(-50%)}
}
@media (min-width:720px) and (max-width:1439px){
  /* two rows: the vertical divider becomes meaningless once the groups stack */
  .navgroup + .navgroup{border-left:0;padding-left:0;margin-left:0}
}
.navitem{white-space:nowrap;font-size:12px;padding:6px 10px;border-radius:20px;color:var(--muted);
  text-decoration:none;border:1px solid transparent}
a.navitem{color:var(--ink)}
.navitem.active{background:var(--panel);border-color:var(--gold-deep);color:var(--gold-bright)}
.navitem.off{opacity:.4}
/* phones: the nav row overflows and a fresh reader can't tell the rest exists to the right (a link
   sits cut at the edge). Fade whichever edge still hides links, as a "there's more" cue, and
   snap items so a swipe settles cleanly. JS (app.js) toggles .fade-l/.fade-r by scroll position; the
   fades self-disable on desktop (centered nav doesn't overflow, so neither class is set). */
@media (max-width:719px){
  .steps{scroll-snap-type:x proximity}
  .navitem{scroll-snap-align:start}
  .steps.fade-r{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 34px),transparent);
                        mask-image:linear-gradient(to right,#000 calc(100% - 34px),transparent)}
  .steps.fade-l:not(.fade-r){-webkit-mask-image:linear-gradient(to right,transparent,#000 34px);
                                     mask-image:linear-gradient(to right,transparent,#000 34px)}
  .steps.fade-l.fade-r{-webkit-mask-image:linear-gradient(to right,transparent,#000 34px,#000 calc(100% - 34px),transparent);
                               mask-image:linear-gradient(to right,transparent,#000 34px,#000 calc(100% - 34px),transparent)}
}

/* ONE measure for the whole content column — the Insight's reading width — so every element on a
   Step shares one left edge and one right edge (Block 8C item 1). */
.main{max-width:33rem;margin:0 auto;padding:30px 20px 96px;position:relative;z-index:1}
.step{animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.insight{margin-bottom:26px}   /* width now governed by the single .main measure (item 1) */
/* mobile-first: headline sized for ~380px; scaled up on wider viewports (§2, see @media below) */
.insight h2,.pagehead h2{font-family:var(--serif);font-weight:600;letter-spacing:.01em;margin:.1em 0 .5em;font-size:22px;line-height:1.24}
/* Block 8D — the ONE page header: eyebrow + title, centered on the wordmark's axis. Tight gap
   eyebrow->title (read as one unit), generous space below before the LEFT-aligned Insight (item 3). */
.pagehead{text-align:center;margin-bottom:30px}
.pagehead .crumb{margin:0 0 3px}
.pagehead h2{margin:0}
/* .crumb (step eyebrow / section label) — typed by the R6 LABEL rule at the foot of this file. */
/* Insight passages (§3, Block 8B): ROMAN Besley — italic is for emphasis, not 80 words of body.
   ONE continuous left rule for the whole block (paragraphs abut with no margin gap; spacing is
   padding INSIDE the rule). Measure capped ~65ch, hard. Sized to sit under, not rival, the head. */
.slot{font-family:var(--serif);font-style:normal;color:var(--muted);font-size:15px;line-height:1.62;
  margin:0;padding:0 0 .5em 16px}   /* indent-only (Block 8C item 5 = B): the indent, not a rule, is the
                                       signal that distinguishes the book's voice from the app's chrome */
.slot:last-child{padding-bottom:0}
/* scale the reading type UP for tablet/desktop; mobile (~380px) is the base above (§2) */
@media (min-width:720px){
  .insight h2,.pagehead h2{font-size:28px;line-height:1.2}
  .slot{font-size:15.5px;line-height:1.66}
}
/* instructional chrome — ONE treatment everywhere (Block 8C item 2): 14px, periwinkle --muted.
   The .muted modifier no longer fades a hint; standalone .muted (metadata) stays fainter. */
.hint,.hint.muted{color:var(--muted);font-size:14px;line-height:1.5}
.muted{color:var(--muted-deep)}
.tag{display:inline-block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;background:#3a2a12;
  color:var(--warn);padding:2px 6px;border-radius:5px;margin-left:8px;vertical-align:middle}

/* buttons + inputs */
button{font:inherit;cursor:pointer;border-radius:9px;border:1px solid var(--edge);background:var(--panel);
  color:var(--ink);padding:10px 14px;transition:border-color .15s,background .15s}
button:hover{border-color:var(--gold-deep)}
button:disabled{opacity:.4;cursor:not-allowed}
button.primary,button#tostep6{background:var(--gold-deep);border-color:var(--gold);color:#1a1406;font-weight:600}
/* chrome is all Inter — the reader ACTS here (§3). Besley is reserved for reading (and the wordmark). */
button,input,textarea,select,.navitem,.ratio{font-family:var(--sans)}
.ghost{background:transparent;border-color:var(--edge);color:var(--muted);padding:6px 10px;font-size:12px}
input[type=text]{font:inherit;flex:1;background:var(--panel-2);border:1px solid var(--edge);color:var(--ink);
  border-radius:9px;padding:11px 12px;min-width:0}
input[type=text]:focus{outline:none;border-color:var(--gold-deep)}
.addrow{display:flex;gap:8px;margin-bottom:12px}
.navrow{display:flex;justify-content:space-between;gap:10px;margin-top:26px}
.mini{padding:4px 8px;font-size:12px;background:transparent;color:var(--muted)}

/* pursuit list */
.plist{list-style:none;padding:0;margin:0 0 14px}
.plist li{display:flex;justify-content:space-between;align-items:center;padding:9px 4px;border-bottom:1px solid var(--edge)}

/* Step 1 weigh grid */
.gridwrap{position:relative;margin:22px 0 8px;padding:22px 30px}
.gridwrap .axis{position:absolute;color:var(--muted);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.axis.top{top:0;left:50%;transform:translateX(-50%)} .axis.bottom{bottom:0;left:50%;transform:translateX(-50%)}
.axis.left{left:0;top:50%;transform:translate(-4px,-50%) rotate(-90deg)} .axis.right{right:0;top:50%;transform:translate(4px,-50%) rotate(90deg)}
.grid{position:relative;aspect-ratio:1;border:1px solid var(--edge);border-radius:12px;
  background:radial-gradient(circle at 50% 50%,#141a55,var(--bg-top))}
.cross{position:absolute;background:var(--edge)} .cross.v{left:50%;top:0;bottom:0;width:1px} .cross.h{top:50%;left:0;right:0;height:1px}
.tray{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;min-height:34px}
.chip{display:inline-flex;align-items:center;padding:7px 12px;border-radius:20px;background:var(--panel);
  border:1px solid var(--gold-deep);color:var(--gold-bright);font-size:13px;touch-action:none;user-select:none;
  box-shadow:0 2px 8px rgba(0,0,0,.35)}
.chip.placed{position:absolute;transform:translate(-50%,-50%);z-index:2}
.chip.dragging{z-index:99;opacity:.92}

/* Step 2 scoring */
.scorerow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--edge)}
.scorerow.unscored{background:linear-gradient(90deg,rgba(231,200,115,.12),transparent);border-radius:8px;padding-left:8px}
.pname{font-size:15px}
.scores{display:flex;gap:6px}
.scorebtn{width:40px;padding:9px 0;text-align:center;color:var(--muted)}
.scorebtn.on{background:var(--gold-deep);border-color:var(--gold);color:#1a1406;font-weight:700}

/* spider cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin-top:8px}
.card{background:var(--panel);border:1px solid var(--edge);border-radius:12px;padding:12px}
.card h3{font-family:var(--serif);font-size:16px;margin:.2em 0 .4em}
.avgs{color:var(--muted);font-size:12px;margin-top:6px;text-align:center}
.card.is-empty{border-style:dashed;opacity:.92}
.cardgraph{position:relative}
.cardgraph .emptybadge{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);  /* type is the R6 LABEL rule */
  background:rgba(0,9,32,.82);border:1px solid var(--edge);border-radius:8px;padding:4px 10px;pointer-events:none;white-space:nowrap}
.cardnote{color:var(--warn);font-size:12px;margin-top:6px;text-align:center}

/* Step 6 venn */
.venn{position:relative;aspect-ratio:1;max-width:460px;margin:14px auto;touch-action:none}
.vennsvg{position:absolute;inset:0;width:100%;height:100%}
.vcirc{fill:var(--gold);fill-opacity:.05;stroke:var(--gold-deep);stroke-width:.5;stroke-opacity:.7}
/* Inner/Outer/Higher are part of the artifact, not the chrome. The Style Bible does not
   specify a diagram-label treatment (FLAGGED); per Block-4 direction they take the poster
   TITLE family — serif, small-caps, letter-spaced, warm gold. */
.clab{fill:var(--gold-deep);font-size:4.4px;text-anchor:middle;font-family:var(--serif);
  font-variant:small-caps;letter-spacing:.4px;font-weight:600}
.token{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;gap:6px;
  touch-action:none;user-select:none;cursor:grab;z-index:2}
.token .dot{width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 50% 45%,#fffdf3,var(--gold-bright) 55%,var(--gold));
  box-shadow:0 0 6px var(--gold-bright),0 0 15px rgba(231,200,115,.5),0 0 2px #fff}
.token .lbl{font-size:12px;background:rgba(0,9,32,.8);padding:2px 7px;border-radius:10px;border:1px solid var(--edge);white-space:nowrap}
.token.dragging{z-index:99;cursor:grabbing}

.summary-list{list-style:none;padding:0} .summary-list li{padding:9px 0;border-bottom:1px solid var(--edge);font-size:14px;line-height:1.5}
.navitem.home{margin-left:auto;border-color:var(--edge)}
button.danger{background:#5a2030;border-color:#8a3048;color:#ffd9e0;font-weight:600}
.small{font-size:12px}

/* Step 8 story fields */
.field{display:block;margin:14px 0}
.field>span{display:block;margin-bottom:6px}   /* type is the R6 LABEL rule at the foot */
.field input,.field textarea{width:100%;background:var(--panel-2);border:1px solid var(--edge);color:var(--ink);border-radius:9px;
  padding:11px 12px;font:inherit;line-height:1.5}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--gold-deep)}
.field textarea{resize:vertical;min-height:140px}
.fieldnote{display:block;color:var(--muted);font-size:12px;margin-top:5px;font-style:normal}

/* ── The front door + the fork (Block 15/16) ─────────────────────────────────────────────────
   Existing type roles only: title = R1 (pageHead), everything read = R2 reading (.slot, Besley),
   everything acted on = Inter (fields, buttons, the restore link, status lines = R5). The book-voice
   indent is dropped here — this is the companion speaking, full width inside the gutter. ONE spacing
   scale: 14px between paragraphs, 28px before the form. Cover yellow on the one primary button only. */
.frontdoor .pagehead{margin-bottom:22px}
.frontdoor .slot.fd-p{padding:0;margin:0 0 14px}
.fd-sample{margin:28px 0 14px;text-align:center}
.fd-frame{width:66%;margin:0 auto}                 /* an example, not a hero: ~2/3 of the column */
.fd-frame svg{display:block;width:100%;height:auto;border-radius:6px}
.fd-sample figcaption.slot.fd-p{margin:14px 0 0;text-align:center}
.fd-form,.fd-stack{display:flex;flex-direction:column;gap:14px}
.fd-form{margin-top:28px}
.fd-stack[hidden]{display:none}
.fd-form input{width:100%;font:inherit;background:var(--panel-2);border:1px solid var(--edge);color:var(--ink);
  border-radius:9px;padding:11px 12px}
.fd-form input:focus{outline:none;border-color:var(--gold-deep)}
.fd-form button{width:100%;white-space:nowrap}
.hint.fd-msg{margin:0}
.hint.fd-msg:empty{display:none}
.hint.fd-restore{margin:28px 0 0;text-align:center}
.fd-link{background:none;border:0;padding:0;font:inherit;color:var(--ink);text-decoration:underline;cursor:pointer}
.fd-link:hover{color:var(--gold-bright)}
/* Before access (Block 17): the holding ground, the front door (incl. "Check again") and the fork show
   the masthead with Sign in — a reader who paid elsewhere always has a way in — but no nav rows and no
   Constellations menu. The nav appears once the reader is inside the work. */
body.holding .steps,body.preaccess .steps,body.holding #journal-toggle{display:none}
.holdline{font-family:var(--sans);color:var(--muted);font-size:14px;text-align:center;margin-top:28vh}
/* "Check again" — functional copy, plain Inter (R4 body), not book voice */
.fd-plain{font-family:var(--sans);color:var(--ink);line-height:1.55;margin:0}
.fd-restore a{color:var(--ink);text-decoration:underline}
/* The thank-you banner (Block 17): quiet, eyebrow-styled (R6 via the rule at the foot), not a modal */
.thanksbar{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 18px;text-align:center;
  transition:opacity .4s ease}
.thanksbar.out{opacity:0}
.thanksbar .tb-x{background:none;border:0;padding:2px 6px;color:var(--muted);font-size:16px;line-height:1;cursor:pointer}
.thanksbar .tb-x:hover{color:var(--gold-bright)}
.fd-restore a:hover{color:var(--gold-bright)}

/* ── Part One (Block 14) — unnumbered screens + the read-only carry-forward at Steps 1 and 8.
   A read-back is the reader's OWN words, shown exactly (pre-wrap keeps their line breaks), never
   styled as the app speaking: no quote marks, no attribution, no commentary. */
.p1-readback{white-space:pre-wrap;font-family:var(--serif);font-size:15px;line-height:1.6;color:var(--ink);
  background:var(--panel-2);border-left:2px solid var(--gold-deep);border-radius:0 9px 9px 0;padding:10px 14px;margin:10px 0}
.p1-examples{margin:4px 0 14px;padding-left:20px;font-family:var(--serif);color:var(--muted);font-size:15px;line-height:1.6}
/* The six Edge questions are full questions the reader READS — R2 reading role, like .reflq, NOT the R6
   uppercase label (.field>span). The selector out-ranks the R6 rule on purpose. */
.p1-q,.field>span.p1-q{display:block;font-family:var(--serif);text-transform:none;letter-spacing:normal;font-weight:400;
  font-size:15px;line-height:1.55;color:var(--muted)}
.p1-pair{margin:16px 0}
.p1-moment{display:flex;gap:8px;align-items:flex-end}
.p1-moment .field{flex:1;margin:10px 0}
.p1-moment .p1-rm{margin-bottom:12px}
.p1-moment textarea{flex:1;width:100%;background:var(--panel-2);border:1px solid var(--edge);color:var(--ink);
  border-radius:9px;padding:11px 12px;font:inherit;line-height:1.5;resize:vertical;min-height:84px}
.p1-moment textarea:focus,.p1-wide:focus{outline:none;border-color:var(--gold-deep)}
.p1-namerow{margin:14px 0}
.p1-namerow input[type=text]{width:100%}
.p1-beside{white-space:pre-wrap;color:var(--muted);font-size:14px;line-height:1.5;margin-top:6px}
.p1-mname{color:var(--gold-bright);font-size:15px}
.p1-wide{width:100%;background:var(--panel-2);border:1px solid var(--edge);color:var(--ink);border-radius:9px;
  padding:11px 12px;font:inherit;line-height:1.5;resize:vertical;min-height:140px}
#p1-add{margin-top:4px}
/* Step 1's collapsible panel + Step 8's original statement (both read-only, both only when written) */
details.p1carry{border:1px solid var(--edge);border-radius:12px;padding:0 14px;margin:0 0 22px}
details.p1carry summary{cursor:pointer;list-style:none;color:var(--gold-deep);font-size:13px;padding:11px 0}
details.p1carry summary::-webkit-details-marker{display:none}
details.p1carry summary::before{content:'▸ ';display:inline-block;width:1em}
details.p1carry[open] summary::before{content:'▾ '}
details.p1carry[open]{padding-bottom:10px}
.p1carry h4{margin:12px 0 4px}   /* type: the R6 LABEL rule at the foot */
.p1origin{margin:0 0 22px}
.p1label{font-family:var(--sans);font-size:14px;color:var(--muted);margin-bottom:6px}   /* functional label, plain Inter (R5) */
/* Zoom Out: the reader's answers arrive after the breath (ZOOM_BEAT_MS in partone.js). Reduced motion
   collapses the fade (global rule) but keeps the pause — the pause is the point, not the motion. */
.p1-later{opacity:0;visibility:hidden;transition:opacity 1.4s ease,visibility 0s linear 1.4s}
.p1-later.in{opacity:1;visibility:visible;transition:opacity 1.4s ease}
.posterbox{border:1px dashed var(--edge);border-radius:10px;padding:12px 14px;margin:16px 0}
/* .posterlabel — typed by the R6 LABEL rule at the foot of this file. */
.posterbox code{background:var(--panel-2);padding:1px 5px;border-radius:4px;color:var(--gold-bright)}

/* Step 7 constellation */
.constellation{position:relative;aspect-ratio:1;max-width:480px;margin:14px auto;touch-action:manipulation}
.skysvg{position:absolute;inset:0;width:100%;height:100%}
.scirc{fill:var(--gold);fill-opacity:.10;stroke:var(--gold);stroke-width:.9;stroke-opacity:.95;opacity:1}
/* points of light: 44px hit target (button), small glowing dot inside; glow on hover/tap */
.revstar{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;padding:0;border:0;
  background:none;display:grid;place-items:center;cursor:pointer;z-index:2}
/* stars glow, not just fill: warm core + layered soft halo (§6) */
.revstar .revdot{width:11px;height:11px;border-radius:50%;background:radial-gradient(circle at 50% 45%,#fffdf3,var(--gold-bright) 55%,var(--gold));
  box-shadow:0 0 5px var(--gold-bright),0 0 13px rgba(231,200,115,.6),0 0 24px rgba(231,200,115,.28),0 0 2px #fff;
  transition:width .18s ease,height .18s ease,box-shadow .18s ease}
.revstar:hover .revdot,.revstar:focus-visible .revdot,.revstar.lit .revdot{
  width:16px;height:16px;box-shadow:0 0 8px var(--gold-bright),0 0 20px var(--gold),0 0 34px rgba(231,200,115,.35),0 0 3px #fff}
.revstar:focus-visible{outline:none}
.circles .scirc{transition:opacity 2200ms ease-out}     /* the slowest animation in the app */
.circles.faded .scirc{opacity:0}
/* Step 7 line-drawing instruction (Inter chrome): held at opacity 0 through the 2200ms reveal fade,
   then eased in via .shown so it never competes with the reveal beat. */
.lineinstruct{opacity:0;transition:opacity .5s ease;margin-top:10px}
.lineinstruct.shown{opacity:1}
.cline{stroke:var(--gold);stroke-width:.7;stroke-opacity:.9;stroke-linecap:round}
.star{position:absolute;transform:translate(-50%,-50%);background:none;border:none;padding:0;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:3px;z-index:2}
.star .glow{width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 50% 45%,#fffdf3,var(--gold-bright) 55%,var(--gold));
  box-shadow:0 0 6px var(--gold-bright),0 0 15px rgba(231,200,115,.55),0 0 26px rgba(231,200,115,.26),0 0 3px #fff;transition:box-shadow .2s}
.star.selected .glow{box-shadow:0 0 0 3px rgba(246,231,180,.85),0 0 16px var(--gold),0 0 4px #fff}
.star .slbl{font-size:11px;color:var(--muted);background:rgba(0,9,32,.7);padding:1px 6px;border-radius:9px;white-space:nowrap}

/* seal + charts + carry */
.sealcopy{background:var(--panel);border:1px solid var(--edge);border-left:3px solid #8a3048;border-radius:10px;padding:14px 18px;line-height:1.6}
.sealcopy b{color:var(--gold-bright)}
.chartlist,.carrylist{list-style:none;padding:0}
.chartcard{background:var(--panel);border:1px solid var(--edge);border-radius:10px;padding:12px 14px;margin-bottom:10px}
.posterframe{margin-top:12px;max-width:300px}
.posterframe svg{display:block;width:100%;height:auto;border-radius:6px}
/* Beat 2: the figure kindles in slowly behind the anchors — "the sky drawing, not a spinner" */
.figlayer{opacity:0}
.figlayer.lit{opacity:.62;transition:opacity 2600ms ease-out}
.carryrow{display:flex;align-items:center;gap:10px;padding:11px 4px;border-bottom:1px solid var(--edge)}
.carryrow input{width:18px;height:18px;accent-color:var(--gold-deep)}
.carryrow span:first-of-type{flex:1}

/* numbered tokens + legend (Block 3) */
.tok{position:absolute;transform:translate(-50%,-50%);min-width:44px;min-height:44px;display:grid;place-items:center;
  background:none;border:none;padding:0;cursor:grab;touch-action:none;z-index:2}
.tok.dragging{cursor:grabbing;z-index:99}
.tokdot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;pointer-events:none;
  background:color-mix(in srgb,var(--tc) 24%,var(--bg));border:2px solid var(--tc);box-shadow:0 0 8px rgba(0,0,0,.55)}
.toknum{font-size:13px;font-weight:700;color:var(--tc);pointer-events:none;font-variant-numeric:tabular-nums}
.tok.hi .tokdot{box-shadow:0 0 0 3px rgba(246,231,180,.7),0 0 12px var(--tc)}
.toktip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;
  background:rgba(0,9,32,.96);border:1px solid var(--edge);border-radius:8px;padding:3px 8px;font-size:12px;color:var(--ink);
  pointer-events:none;opacity:0;transition:opacity .12s;z-index:10}
.tok:hover .toktip,.tok:focus-visible .toktip,.tok.hi .toktip{opacity:1}
.legend{background:var(--panel);border:1px solid var(--edge);border-radius:10px;padding:10px 12px;margin:12px 0}
.legtitle{margin-bottom:6px}   /* type is the R6 LABEL rule at the foot */
.legend ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}
.legrow{display:flex;align-items:center;gap:9px;padding:5px 6px;border-radius:7px;cursor:pointer}
.legrow:hover,.legrow.hi{background:#1c2060}
.legdot{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;
  color:var(--tc);border:2px solid var(--tc);background:color-mix(in srgb,var(--tc) 22%,var(--bg));font-variant-numeric:tabular-nums}
.legname{font-size:14px}
.legrow.off{opacity:.4}

/* Step 2 overlay capstone */
.overlay-wrap{margin:8px 0}
.overlay-note{max-width:420px;margin:10px auto 0;text-align:center;color:var(--muted);font-size:13px;line-height:1.5}
.thin-readout{background:var(--panel);border:1px solid var(--edge);border-radius:10px;padding:12px 16px;margin-top:14px;line-height:1.55}
.thin-readout h4{margin:.2em 0 .4em}   /* type is the R6 LABEL rule at the foot */
.palette-flag{background:#3a2a12;border:1px solid #6a4a1a;color:var(--warn);border-radius:8px;padding:9px 12px;margin:10px 0;font-size:13px}

/* Step 7 final names + leader lines */
.namelayer{position:absolute;inset:0;pointer-events:none}
/* solid scrim so a rolled-over name is never lost over a star or a connection line */
.nametag{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;font-size:12px;color:var(--gold-bright);
  font-family:var(--sans);font-variant:small-caps;letter-spacing:.06em;
  background:rgba(0,9,32,.94);border:1px solid var(--gold-deep);border-radius:9px;padding:3px 10px;
  box-shadow:0 2px 10px rgba(0,0,0,.5);pointer-events:none;z-index:3}
.leader{stroke:var(--gold-deep);stroke-width:.4;stroke-opacity:.7}

/* ---- Block 5: Steps 3 (Refine), 4 (Invite), 5 (Claim) ---------------------- */
.ghost:hover{border-color:var(--gold-deep);color:var(--gold-bright)}

/* Step 3 — Refine */
.reflist{list-style:none;padding:0;margin:6px 0}
.refrow{display:flex;align-items:center;gap:10px;padding:8px 6px;border-bottom:1px solid var(--edge)}
.refrow .legdot{flex:0 0 auto}
.refedit{flex:1;background:var(--panel-2);color:var(--ink);border:1px solid transparent;border-radius:8px;padding:8px 10px;font:inherit}
.refedit:hover{border-color:var(--edge)} .refedit:focus{outline:none;border-color:var(--gold-deep)}
.refname{flex:1}
/* "Add" is secondary to the field beside it — outline, not solid gold. Solid gold is reserved for
   the step-advancing action (.primary). (Block 8B item 4) */
/* "Add" is NOT the screen's primary action (typing is) — neutral outline, no gold. Solid gold is
   reserved for the step-advancing button. Gold only surfaces on hover. (Block 8C item 6) */
.addrow button,#addbtn{background:transparent;border:1px solid var(--edge);color:var(--muted);font-weight:600;padding:0 16px;border-radius:9px;cursor:pointer}
.addrow button:hover,#addbtn:hover{border-color:var(--gold-deep);color:var(--gold-bright)}
.archived{margin:10px 0}
.archived summary{color:var(--muted);cursor:pointer;font-size:13px}
.archived-row{opacity:.7}
.ov3{margin-top:18px}

/* Step 4 — Invite */
.linkbox{background:var(--panel);border:1px solid var(--edge);border-radius:10px;padding:12px 14px;margin:12px 0}
.linkrow{display:flex;gap:8px;margin-top:8px}
.linkrow input{flex:1;background:var(--panel-2);color:var(--gold-bright);border:1px solid var(--edge);border-radius:8px;padding:8px 10px;font:13px monospace}
.linkrow button{background:var(--gold-deep);border:1px solid var(--gold);color:#1a1406;font-weight:600;padding:0 14px;border-radius:8px;cursor:pointer}
.invites{margin:14px 0}
.idline{color:var(--muted);font-size:14px;margin:2px 0 16px}   /* settled identity — R5 INSTRUCTION; the name in it is --ink via <b> */
.linkbtn{background:none;border:0;padding:0;font:inherit;color:var(--gold-deep);text-decoration:underline;cursor:pointer}
.linkbtn:hover{color:var(--gold)}
.mintrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 4px}
.mintrow input[type=text]{flex:1 1 240px}
.mintrow button{flex:0 0 auto}
.invlist{list-style:none;padding:0;margin:14px 0 6px}
.invrow{display:flex;align-items:center;gap:10px;padding:7px 4px;border-bottom:1px solid var(--edge);font-size:14px;color:var(--muted)}   /* R5 INSTRUCTION — status line */
.invrow .dot{width:9px;height:9px;border-radius:50%;background:var(--edge);flex:0 0 auto}
.invrow .dot.on{background:var(--gold-bright);box-shadow:0 0 8px var(--gold)}

/* Step 5 — Claim */
.claimgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:6px 0 4px}
@media (max-width:720px){.claimgrid{grid-template-columns:1fr}}
.claimcol .legtitle{margin-bottom:8px}
.claimlist,.refllist{list-style:none;padding:0;margin:0}
.claimrow{margin:6px 0}
.starbtn{width:100%;display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--edge);
  border-radius:10px;padding:10px 12px;cursor:pointer;color:var(--ink);text-align:left;font:inherit}
.starbtn:hover{border-color:var(--gold-deep)}
.starbtn:disabled{cursor:default;opacity:.85}
.claimrow.starred .starbtn{border-color:var(--gold);background:var(--panel);box-shadow:0 0 0 1px var(--gold-deep) inset}
.claimname{flex:1}
.starmark{font-size:20px;color:var(--gold-bright)}
.claimrow.unscored .claimname{color:var(--muted)}
/* "needs scoring" DEMOTED (item 3): quiet R7 CAPTION metadata, not the amber R8 tag — it no longer
   competes with the Pursuit name it sits beside. */
.needsscore{font-size:11px;color:var(--muted-deep);margin-left:2px;white-space:nowrap}
.reflcard{background:var(--panel);border:1px solid var(--edge);border-radius:10px;padding:12px 14px;margin-bottom:10px}
.reflhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
/* Step 5 reflections read as prose, not UI. The answer is what someone who loves the reader
   actually said — Besley --ink, the read-back reading role (R3 PROSE). The question above it frames
   the answer quietly — Besley --muted, the insight-body reading role (R2). No caps, sentence case:
   these are full questions being read, not labels being scanned. */
.reflqa{margin:12px 0;font-family:var(--serif);color:var(--ink);font-size:15px;line-height:1.62}
.reflq{color:var(--muted);font-size:13.5px;line-height:1.45;letter-spacing:normal;
  text-transform:none;font-variant:normal;display:inline-block;margin-bottom:1px}
.hidden-reflection{opacity:.6}
.reflqa .small,.muted.small{font-size:12px}
.notice{background:#181f4a;border:1px solid var(--gold-deep);border-radius:10px;padding:11px 14px;margin:0 0 14px;line-height:1.5}
.notice button{margin-left:0}   /* action now sits on its own row, separated from the message (item 3) */

/* ---- Block 7: share / download controls on chart cards --------------------- */
.sharerow{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.ratiopick{display:inline-flex;border:1px solid var(--edge);border-radius:9px;overflow:hidden}
.ratiopick .ratio{background:transparent;border:0;border-radius:0;color:var(--muted);padding:7px 12px;font-size:13px}
.ratiopick .ratio.on{background:var(--gold-deep);color:#1a1406;font-weight:600}
.sharerow .sharebtn{padding:8px 16px}
.sharerow .dlbtn{padding:8px 14px}

/* ---- Copy Pass v2 flag builds: Step 2 how-to, paywall Version B, post-payment ---- */
/* How to Score (v2 §3): open block on Dimension 1, quiet toggle on the rest */
.howto{background:#12182a;border:1px solid var(--edge);border-radius:10px;padding:12px 14px;margin:0 0 14px}
.howto p{color:var(--muted);font-size:14px;line-height:1.55;margin:.5em 0}
.howto .crumb{margin-bottom:4px}
details.howto{padding:0}
details.howto summary{cursor:pointer;color:var(--gold-deep);font-family:var(--sans);font-variant:small-caps;
  letter-spacing:.12em;font-size:12px;padding:9px 14px;list-style:none}
details.howto summary::-webkit-details-marker{display:none}
details.howto[open]{padding:0 14px 6px}

/* Paywall Version B — quiet "why $13.88?" expander (never modal, never blocking) */

/* Returning-reader greeting on Home (v2 §8b) */
/* folded into the Insight reading role (Block 8C): the only gold Besley belonged to no system */
.welcomeback{font-family:var(--serif);color:var(--muted);font-size:15.5px;line-height:1.6;margin:0 0 14px}

/* Post-payment overlays (Flag 5 + timeout): sit above the reader's restored work */
.overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(5,7,15,.72);backdrop-filter:blur(3px);animation:fade .25s ease}
.overlaycard{background:var(--panel);border:1px solid var(--gold-deep);border-radius:14px;
  padding:22px;max-width:460px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.overlaycard .navrow{margin-top:16px}

/* ---- Block 9: the Journal — a notebook drawer beside the work ---- */
#journal-toggle{margin-left:4px}
.jscrim{position:fixed;inset:0;z-index:60;background:rgba(3,6,25,.55);backdrop-filter:blur(2px)}
.jdrawer{position:fixed;top:0;right:0;bottom:0;z-index:61;width:min(440px,92vw);max-width:92vw;
  background:linear-gradient(180deg,var(--panel),#101540);border-left:1px solid var(--edge);
  box-shadow:-16px 0 44px rgba(0,0,0,.5);padding:16px 20px 44px;overflow-y:auto;
  transform:translateX(100%);transition:transform .18s ease}
.jdrawer.in{transform:none}
.jbar{display:flex;margin-bottom:12px}
.jclose{font-size:12px}
/* the ONE framing line — Besley, quiet, at the top of the space (never a repeated banner) */
.jframe{font-family:var(--serif);color:var(--muted);font-size:15.5px;line-height:1.62;max-width:34em;
  margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid var(--edge)}
.jentries{display:flex;flex-direction:column;gap:20px;margin-bottom:16px}
/* quiet Step·date marker (Inter chrome) + the reader's own prose (Besley, read like a notebook) */
.jmark{font-family:var(--sans);font-variant:small-caps;letter-spacing:.14em;font-size:11px;color:var(--muted-deep);margin-bottom:5px}
.jtext{font-family:var(--serif);color:var(--ink);font-size:15.5px;line-height:1.62;white-space:pre-wrap;overflow-wrap:break-word}
.jwrite{display:block;width:100%;min-height:230px;resize:vertical;background:transparent;border:0;outline:none;
  color:var(--ink);font-family:var(--serif);font-size:15.5px;line-height:1.62;padding:16px 0 0;border-top:1px dashed var(--edge)}

/* ---- Block 8C: instructional chrome — empty-state list lines ---- */
/* Placed last so it wins over the per-list `li` rules: an empty-state line reads like every other
   hint (14px, periwinkle) and never carries a divider rule (item 2 + item 3). */
li.muted{border-bottom:0;font-size:14px;line-height:1.5;color:var(--muted)}

/* ---- Block 10: reopen, onboarding, the wall ---------------------------------------------------
   PLACEHOLDER marker — every block of copy Michael still owns is wrapped in .ph so provisional text
   is unmistakable in the running app and never mistaken for final voice. */
.ph{position:relative;border:1px dashed var(--gold-deep);border-radius:10px;padding:12px 14px;margin:16px 0;background:rgba(231,200,115,.04)}
.phtag{display:block;font-family:var(--sans);text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:700;color:var(--gold-deep);margin-bottom:8px}
.ph>*:last-child{margin-bottom:0}
.ph .insight{margin-bottom:0}

/* Step 1 — Pursuit vs goal teaching pairs: quiet, right under the input, not a callout box. */
.goalpairs{margin:8px 0 4px;font-size:13.5px;line-height:1.6;color:var(--muted-deep)}
.goalpairs p{margin:2px 0}
.goalpairs .pu{color:var(--muted);font-style:italic}

/* Home — reopen a sealed Constellation as a new version (distinct action from Begin new). */
.reopenrow{margin-top:10px;border-top:1px solid var(--edge);padding-top:10px}
.reopenbtn{font-size:13px}

/* Paywall — a preview of the journey + one representative (sample) poster. */
.wallpreview ul{margin:6px 0 6px 2px;padding-left:18px}
.wallpreview li{margin:3px 0}

/* Step 8 — origin-myth prompts to consider (never a template the app fills). */
.mythhints ul{margin:6px 0 0 2px;padding-left:18px}
.mythhints li{margin:3px 0}

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   TYPE SYSTEM — the intended roles (recorded per Block 8C). A NEW SCREEN PICKS A ROLE; it does not
   invent a treatment. Un-systematised treatments are what let this drift to ~19. Eight roles:
   three reading voices (Besley / --serif) and five operating voices (Inter / --sans).

     R1 DISPLAY      Besley 600 · 22→28px  · --ink        screen headline        .insight h2 .pagehead h2
     R2 INSIGHT      Besley 400 · 15→15.5px · --muted     the book's voice       .slot  .welcomeback  .jframe  .reflq  .p1-q
                     (16px indent, NO rule — the indent is the voice signal)
     R3 PROSE        Besley · 15.5–16px · --ink           reader's words read back  .card h3  .jtext
     R4 BODY         Inter 400 · 16px · --ink             operating text + controls (base) buttons inputs
     R5 INSTRUCTION  Inter 400 · 14px · --muted           hints, empty states    .hint  li.muted
     R6 LABEL        Inter UPPERCASE 700 · 12px/.14em · --gold-deep  section eyebrow  .crumb .legtitle .field>span …
                     (.reflq is NOT R6 — full questions being read, moved to R2/R3 reading roles)
     R7 CAPTION      Inter 400 · 12px · --muted-deep       quiet metadata         .avgs .fieldnote .small …
     R8 NOTICE       Inter 400 · 12px · --warn             warnings / flags       .tag .cardnote .palette-flag

   The three rules below ENFORCE R6/R7/R8 as single treatments (Block 8C consolidation of clusters
   1–4). To add a screen: reuse one of these selectors' roles, or add your selector to the right
   rule here — do NOT set an ad-hoc size/colour inline. ══════════════════════════════════════════ */

/* R6 LABEL — one size, one colour, one letter-spacing. FULL CAPS via text-transform (NOT
   font-variant:small-caps — small-caps on already-mixed-case source renders a tall first letter
   over short remainder, e.g. "Step 1" → big S + small TEP). Bold: at 12px/.14em plain weight reads
   too light. .reflq is deliberately NOT here — those are full questions the reader READS in Step 5,
   set on the Besley reading roles (R2 muted question / R3 ink answer), not a scannable label. */
.crumb,.legtitle,.field>span,.posterlabel,.thin-readout h4,.cardgraph .emptybadge,.p1carry h4,.thanksbar .tb-text{
  font-family:var(--sans);text-transform:uppercase;font-variant:normal;font-feature-settings:normal;
  letter-spacing:.14em;font-weight:700;color:var(--gold-deep);font-size:12px}

/* R7 CAPTION — one size; quiet metadata is --muted-deep everywhere (positional/uppercase context kept) */
.avgs,.fieldnote,.overlay-note,.star .slbl,.token .lbl,.gridwrap .axis,.jmark,.small{
  color:var(--muted-deep);font-size:12px}

/* R8 NOTICE — one size (colour is already --warn on each) */
.tag,.cardnote,.palette-flag{font-size:12px}

/* ── Block 8D rulings (recorded so the next session doesn't re-open them) ──────────────────────
   PAGE HEADER = pageHead(title, eyebrow) → .pagehead: eyebrow + title, both centered on the
   wordmark axis, used on every Step, the sealed view, Constellations home, the front door, the fork, account.
   • The eyebrow ("STEP 1") rides R6 LABEL — gold-deep, ON PURPOSE. An earlier note called it
     "muted"; that predates this type system and the role wins. Do NOT flip R6 to muted or make
     the eyebrow a muted one-off — either move reintroduces the second section-label colour that
     Block 8C removed.
   • MODAL DIALOG TITLES are a SEPARATE STRUCTURE, deliberately. The centered postpay overlays
     (postpay.js: "Thank you." / "Your payment went through.") keep their own <h2> and are NOT on
     pageHead — a modal dialog is not a page header, and pageHead assumes the page column. Do not
     unify them. ═════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY (infrastructure pass — no visual/palette/timing change to the DEFAULT experience)
   ══════════════════════════════════════════════════════════════════════════════════════════════ */

/* Item 2 — prefers-reduced-motion. Collapse ALL animation/transition to instant for readers who ask
   for reduced motion. This is the override the 2200ms circle reveal and the 2600ms figure "kindle"
   exist for; end states (constellation revealed, figure lit) are unchanged, only the motion to them.
   Does NOT touch the default timing — it applies only under the media query. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* Item 3 — a real focus-visible ring on every interactive element, verified on the dark ground.
   :focus-visible so it shows for keyboard / assistive tech, not on mouse click. gold-bright (#f6e7b4)
   on --bg is ~13:1 — far past the 3:1 WCAG 2.4.11/2.4.7 minimum for a focus indicator. !important
   overrides the scattered `:focus{outline:none}` treatments (inputs, stars) that previously left
   keyboard users with only a border-colour change (or nothing, on buttons). */
:focus-visible{outline:2px solid var(--gold-bright) !important;outline-offset:2px}

/* ---- the figure panel (Block 20) ---- */
.figpanel{margin-top:14px;padding-top:12px;border-top:1px solid var(--edge)}
.fighead{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.figframe{max-width:360px;margin:8px 0 10px}
.figframe svg{display:block;width:100%;height:auto;border-radius:6px}
.figframe .figshown{opacity:1;transition:opacity 2200ms ease-out}
.figframe.entering .figshown,.figframe.bare .figshown{opacity:0}
.figframe.bare .figshown{transition-duration:900ms}
.figrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.figrow button{padding:8px 14px}
.figpick{display:inline-flex;border:1px solid var(--edge);border-radius:9px;overflow:hidden}
.figpick .figver{background:transparent;border:0;border-radius:0;color:var(--muted);padding:7px 12px;font-size:13px;min-width:38px}
.figpick .figver.on{background:var(--gold-deep);color:#1a1406;font-weight:600}
.figwait{margin:6px 0}
.fignote{margin-top:8px}
.figcredit{margin:10px 0 0;font-size:12px;color:var(--muted)}
.figcredit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media (prefers-reduced-motion:reduce){.figframe .figshown{transition:none}}
