/* ── library-spa.css local palette (6.1 colour hoist) — this file's own colours, named and in ONE
   place so the surface can be re-tinted without hunting through the rules below. ── */
:root {
  --lib2-leaf-bg: #fff;
  --rdr-thumb-fg: #1a140c;
  --rdr-pagewrap-bg: #3b2513;
  --rdr-pagewrap-bg2: #221308;
  --rdr-pagewrap-bg3: #2f1d0e;
  --rdr-leaf-pg-fg: #171006;
  --rdr-leaf-pg-bg: #e9ca6c;
  --rdr-leaf-pg-bg2: #b5903a;
}

/* The Library — unified content/data explorer. Candlelit-Grimoire "Athenaeum" surface. */

/* Fill the viewport exactly so the WINDOW never scrolls — only .lib2-rail / .lib2-main scroll
   internally. Chrome above/below the panel = topbar (50) + .app-main padding (22 top + 66 bottom)
   + this panel's border (2) = 140px. One var keeps the panel and both scroll areas in lockstep. */
/* Page header (matches the rosters' eyebrow → Cormorant title), then the full-height explorer frame. */
.lib2-head { margin-bottom: var(--sp-7); }
.lib2-head .char-h1 { font-size: clamp(1.625rem, 1vw + 1.375rem, 2.125rem); }

.lib2 { --lib2-h: calc(100vh - 13.25rem); display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 0; height: var(--lib2-h);
  border: 0.0625rem solid var(--border); border-radius: var(--r-2xl); overflow: hidden; background: var(--bg);
  box-shadow: var(--shadow-card); }
.lib2-boot { padding: 3.75rem; text-align: center; color: var(--muted); font: 500 var(--fs-md) var(--font-display, serif); }
.lib2-muted { color: var(--muted); padding: 1.125rem var(--sp-3); }
.lib2-bad { color: var(--bad); padding: 1.125rem; }

/* ── lens rail ─────────────────────────────────────────────────────────────────────────────── */
.lib2-rail { background: var(--panel); border-right: 0.0625rem solid var(--border-soft); padding: var(--sp-8) var(--sp-7);
  display: flex; flex-direction: column; gap: var(--sp-7); overflow-y: auto; max-height: var(--lib2-h); }
.lib2-lenses { display: flex; flex-direction: column; gap: var(--sp-2); }
.lib2-lens { display: flex; align-items: center; gap: 0.5625rem; padding: var(--sp-5) var(--sp-6); border: 0.0625rem solid transparent;
  border-radius: var(--r-lg); background: none; color: var(--muted); cursor: pointer; font: 600 var(--fs-base) var(--font-sans);
  text-align: left; transition: background .12s, color .12s; }
.lib2-lens:hover { color: var(--text); background: rgba(var(--accent-rgb), .07); }
.lib2-lens.on { color: var(--text); background: rgba(var(--accent-rgb), .15);
  border-color: rgba(var(--accent-rgb), .42); box-shadow: var(--glow-ember, 0 0 1.125rem -0.5rem rgba(var(--accent-rgb), .6)); }
.lib2-lens-ico { font-size: var(--fs-md); color: var(--accent); width: 1.125rem; text-align: center; }

.lib2-srcf { margin: var(--sp-4) var(--sp-5) 0; }
.lib2-sysf { margin: var(--sp-5) var(--sp-5) 0; }
.lib2-scope-toggle { display: flex; align-items: center; gap: var(--sp-4); background: none; border: none; cursor: pointer;
  color: var(--muted); font: 600 var(--fs-2xs) var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: var(--sp-1); }
.lib2-scope-toggle:hover { color: var(--text); }
.lib2-scope-n { color: var(--accent); }
.lib2-caret { margin-left: auto; }
.lib2-scope { display: flex; flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-1) 0 var(--sp-4); }
.lib2-srcchip { font: 600 var(--fs-2xs) var(--font-mono); color: var(--muted); background: var(--bg-2);
  border: 0.0625rem solid var(--border-soft); border-radius: var(--r-sm); padding: var(--sp-1) var(--sp-4); cursor: pointer; }
.lib2-srcchip:hover { color: var(--text); }
.lib2-srcchip.on { color: var(--text); border-color: var(--accent); background: rgba(var(--accent-rgb), .16); }
.lib2-srcclear { font: 500 var(--fs-2xs) var(--font-sans); color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; }

.lib2-cats { display: flex; flex-direction: column; gap: var(--sp-7); margin-top: var(--sp-1); }
.lib2-fam h4 { font: 600 var(--fs-micro) var(--font-mono); letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.3125rem; padding: 0 var(--sp-3); }
.lib2-cat { display: flex; align-items: center; gap: var(--sp-5); width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0.0625rem solid transparent; border-radius: var(--r-md); padding: var(--sp-3) var(--sp-5); color: var(--muted);
  font: 500 var(--fs-smplus) var(--font-sans); }
.lib2-cat:hover:not(:disabled) { color: var(--text); background: rgba(var(--accent-rgb), .07); }
.lib2-cat.on { color: var(--text); background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .35); }
.lib2-cat-nm { flex: 1 1 auto; }
.lib2-cat-n { font: 600 var(--fs-2xs) var(--font-mono); color: var(--muted); }
.lib2-cat.on .lib2-cat-n { color: var(--accent); }

/* ── main panel ────────────────────────────────────────────────────────────────────────────── */
.lib2-main { padding: 1.125rem 1.375rem; overflow-y: auto; max-height: var(--lib2-h); min-width: 0; }
.lib2-head { display: flex; align-items: center; gap: var(--sp-9); margin-bottom: var(--sp-8); }
.lib2-head h1 { font: 600 var(--fs-page) var(--font-display, serif); color: var(--text); margin: 0; letter-spacing: .01em; }
.lib2-tally { font: 600 var(--fs-sm) var(--font-mono); color: var(--muted); margin-left: auto; white-space: nowrap; }

.lib2-omni { flex: 1 1 auto; display: flex; align-items: center; gap: var(--sp-5); background: var(--bg-2);
  border: 0.0625rem solid var(--border); border-radius: var(--r-xl); padding: 0.4375rem var(--sp-7); max-width: 35rem; }
.lib2-omni:focus-within { border-color: var(--accent); box-shadow: 0 0 0 0.1875rem rgba(var(--accent-rgb), .12); }
.lib2-omni-ico { color: var(--accent); font-size: var(--fs-lg); }
.lib2-omni-in { flex: 1 1 auto; background: none; border: none; color: var(--text); font: 400 var(--fs-md) var(--font-sans); }
.lib2-sem { display: inline-flex; align-items: center; gap: 0.3125rem; font: 600 var(--fs-xs) var(--font-mono); color: var(--muted);
  cursor: pointer; border-left: 0.0625rem solid var(--border); padding-left: 0.5625rem; }
.lib2-sem input { accent-color: var(--accent); }
.lib2-omni-go { background: none; border: none; color: var(--accent); cursor: pointer; white-space: nowrap;
  font: 600 var(--fs-xs) var(--font-mono); border-left: 0.0625rem solid var(--border); padding-left: 0.5625rem; }
.lib2-omni-go:hover { color: var(--gold); }
.lib2-offline { background: rgba(var(--bad-rgb, 200 90 90), .12); border: 0.0625rem solid var(--bad); color: var(--text);
  border-radius: var(--r-lg); padding: 0.5625rem var(--sp-7); font-size: var(--fs-smplus); margin-bottom: var(--sp-7); }

.lib2-facets { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-bottom: var(--sp-8); }
.lib2-facets .ui-select { min-width: 10.625rem; max-width: 16.25rem; }

/* ── results table ─────────────────────────────────────────────────────────────────────────── */
.lib2-sortcaret { color: var(--accent); margin-left: var(--sp-3); font-size: var(--fs-micro); }
.l-nm { font-weight: 600; color: var(--text); }
.l-dash { color: var(--muted); opacity: .5; }
.l-chip { display: inline-block; font: 500 var(--fs-2xs) var(--font-sans); color: var(--muted); background: var(--bg-2);
  border: 0.0625rem solid var(--border-soft); border-radius: var(--r-sm); padding: 0 var(--sp-4); margin: 0 var(--sp-2) var(--sp-2) 0; }
.l-prose { color: var(--muted); }
.l-tprose { max-width: 23.75rem; }

/* ── documents lens ────────────────────────────────────────────────────────────────────────── */
.lib2-doctiers { display: flex; flex-direction: column; gap: 1.375rem; }
.lib2-tier h3 { font: 600 var(--fs-md) var(--font-display, serif); color: var(--gold); margin: 0 0 var(--sp-1); }
.lib2-tier-n { font: 600 var(--fs-2xs) var(--font-mono); color: var(--muted); }
.lib2-tier-blurb { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 var(--sp-6); max-width: 70ch; }
.lib2-doccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--sp-6); }
.lib2-doccard { display: flex; flex-direction: column; gap: var(--sp-2); text-align: left; cursor: pointer; padding: 0.6875rem 0.8125rem;
  background: var(--panel); border: 0.0625rem solid var(--border-soft); border-radius: var(--r-lg); color: var(--text); }
.lib2-doccard:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); }
.lib2-doc-title { font: 600 var(--fs-base) var(--font-sans); }
.lib2-doc-meta { font: 500 var(--fs-xs) var(--font-mono); color: var(--muted); }
.lib2-doc-ext { font: 500 var(--fs-2xs) var(--font-sans); color: var(--accent); margin-top: var(--sp-2); }

/* ── record lightbox — the open book ───────────────────────────────────────────────────────────
   The source page is the hero (left stage); the overview rides the right rail. A 2-page record is
   a true book spread with a center-gutter shadow; 3+ pages scroll-snap. `solo` = no source page →
   the rail alone, centered. */
.lib2-pop-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(7, 5, 3, .82);
  -webkit-backdrop-filter: blur(0.4375rem) saturate(1.05); backdrop-filter: blur(0.4375rem) saturate(1.05);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-10);
  animation: lib2-fade .15s ease; }
@keyframes lib2-fade { from { opacity: 0; } to { opacity: 1; } }
.lib2-pop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(21.25rem, 26vw);
  width: 100%; height: 100%; max-width: 111.25rem; min-height: 0;
  border: 0.0625rem solid var(--border); border-radius: var(--r-2xl); overflow: hidden; background: var(--panel);
  box-shadow: 0 2.125rem 5.625rem -1.5rem rgba(0, 0, 0, .95), 0 0 0 0.0625rem rgba(var(--gold-rgb), .06);
  animation: lib2-settle .24s var(--ease-soft, ease); }
@keyframes lib2-settle { from { transform: scale(.985) translateY(0.375rem); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lib2-pop, .lib2-pop-wrap { animation: none; } }
.lib2-pop.solo { display: block; width: min(45rem, 96vw); height: auto; max-height: min(88vh, 62.5rem); }   /* hug the view card — no dead zone below */
.lib2-pop.solo .lib2-pop-rail { height: auto; max-height: min(88vh, 62.5rem); }

/* the stage — a candlelit desk the page lies on */
.lib2-pop-stage { position: relative; min-width: 0; min-height: 0; overflow: auto;
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--gold-rgb), .06), transparent 55%), var(--bg); }

.lib2-leaf { margin: 0; position: relative; flex: 0 0 auto; }
.lib2-leaf img { display: block; border-radius: var(--r-xs); background: var(--lib2-leaf-bg); cursor: zoom-in;
  box-shadow: var(--shadow-drop-md); }
.lib2-leaf-pg { position: absolute; left: 50%; transform: translateX(-50%); bottom: -1.375rem; white-space: nowrap;
  font: 600 var(--fs-2xs) var(--font-mono); color: var(--muted); }
.lib2-leaf-pg a { color: var(--accent); text-decoration: none; margin-left: 0.3125rem; }

/* the book fold: facing inner edges darken toward the gutter */



/* the rail */
.lib2-pop-rail { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%;
  border-left: 0.0625rem solid var(--border); background: var(--panel); }
.lib2-pop.solo .lib2-pop-rail { border-left: none; }
.lib2-pop-head { display: flex; align-items: flex-start; gap: var(--sp-5); padding: var(--sp-8) var(--sp-8) 0.6875rem 1.125rem;
  border-bottom: 0.0625rem solid var(--border-soft); }
.lib2-pop-id { flex: 1 1 auto; min-width: 0; }
.lib2-pop-x, .lib2-pop-max, .lib2-gear-btn { flex: 0 0 auto; background: none; border: 0.0625rem solid transparent;
  color: var(--muted); font-size: var(--fs-md); line-height: 1; cursor: pointer; padding: 0.3125rem 0.4375rem; border-radius: var(--r-md); }
.lib2-pop-x:hover, .lib2-pop-max:hover, .lib2-gear-btn:hover { color: var(--text); border-color: var(--border); }
.lib2-pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--sp-8) 1.125rem 1.375rem; }

/* the ⚙ surfaces menu — click-toggle, like the nav drops */
.lib2-gear { position: relative; flex: 0 0 auto; }
.lib2-gear-menu { position: absolute; right: 0; top: calc(100% + 0.375rem); z-index: 5; min-width: 8.125rem;
  display: flex; flex-direction: column; gap: var(--sp-1); padding: 0.3125rem;
  background: var(--panel-2); border: 0.0625rem solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-drop-md); }
.lib2-gear-menu button { text-align: left; background: none; border: none; color: var(--muted);
  font: 500 var(--fs-smplus) var(--font-sans); padding: var(--sp-4) var(--sp-6); border-radius: var(--r-md); cursor: pointer; white-space: nowrap; }
.lib2-gear-menu button:hover { color: var(--text); background: rgba(var(--accent-rgb), .10); }
.lib2-gear-menu button.on { color: var(--gold); }

/* doc outline sections become jump targets */
.lib2-sec.jump { cursor: pointer; }
.lib2-sec.jump:hover { color: var(--text); }

/* narrow screens: page on top, rail below */
@media (max-width: 920px) {
  .lib2-pop-wrap { padding: var(--sp-6); }
  .lib2-pop { grid-template-columns: 1fr; grid-template-rows: 56vh minmax(0, 1fr); }
  .lib2-pop-rail { border-left: none; border-top: 0.0625rem solid var(--border); }
  .lib2-spread { padding: var(--sp-8) var(--sp-8) 1.875rem; }
}

.lib2-rec-cat { font: 600 var(--fs-2xs) var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lib2-rec-name { font: 600 var(--fs-page) var(--font-display, serif); color: var(--text); margin: var(--sp-1) 0 var(--sp-3); line-height: 1.1; }
.lib2-rec-prov { font: 600 var(--fs-2xs) var(--font-mono); color: var(--gold); border: 0.0625rem solid rgba(var(--gold-rgb), .4);
  border-radius: var(--r-sm); padding: 0.0625rem 0.4375rem; }


.lib2-formatted .lib2-summary { color: var(--text); margin: 0 0 var(--sp-8); font-size: var(--fs-md); }
.lib2-dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-3) var(--sp-9); margin: 0 0 var(--sp-8); }
.lib2-dl > div { display: contents; }
.lib2-dl dt { font: 600 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lib2-dl dd { margin: 0; color: var(--text); }
.lib2-arr { margin: 0 0 var(--sp-6); }
.lib2-arr-l { display: block; font: 600 var(--fs-xs) var(--font-mono); text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-3); }
.lib2-rules { margin-top: var(--sp-8); border-top: 0.0625rem solid var(--border-soft); padding-top: var(--sp-7); }
.lib2-rules h4 { font: 600 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin: 0 0 var(--sp-4); }
.lib2-rule { margin: 0 0 var(--sp-5); color: var(--text); }

/* rollable reference tables (DMG treasure tables, any payload.tables) */
.lib2-tbl { margin: 0 0 1.125rem; }
.lib2-tbl h4 { font: 600 var(--fs-xs) var(--font-mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--gold); margin: 0 0 var(--sp-4); display: flex; align-items: baseline; gap: var(--sp-5); }
.lib2-dice { font: 600 var(--fs-2xs) var(--font-mono); color: var(--bg, #12100c); background: var(--gold);
  border-radius: var(--r-sm); padding: 0.0625rem var(--sp-4); text-transform: none; letter-spacing: 0; }
.lib2-roll { width: 100%; border-collapse: collapse; font-size: var(--fs-smplus); }
.lib2-roll th { text-align: left; font: 600 var(--fs-2xs) var(--font-mono); text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent); padding: var(--sp-3) var(--sp-6) var(--sp-3) 0; border-bottom: 0.0625rem solid var(--border); white-space: nowrap; }
.lib2-roll td { padding: var(--sp-3) var(--sp-6) var(--sp-3) 0; color: var(--text); vertical-align: top; border-bottom: 0.0625rem solid var(--border-soft); }
.lib2-roll td:first-child { font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.lib2-roll tr:hover td { background: var(--bg-2); }

.lib2-fields { width: 100%; border-collapse: collapse; font-size: var(--fs-smplus); }
.lib2-fields th { text-align: left; font: 500 var(--fs-xs) var(--font-mono); color: var(--accent); padding: var(--sp-3) var(--sp-7) var(--sp-3) 0;
  vertical-align: top; white-space: nowrap; border-bottom: 0.0625rem solid var(--border-soft); }
.lib2-fields td { padding: var(--sp-3) 0; color: var(--text); vertical-align: top; border-bottom: 0.0625rem solid var(--border-soft); word-break: break-word; }

.lib2-json-wrap { position: relative; }
.lib2-copy { position: absolute; top: 0.375rem; right: 0.375rem; font: 600 var(--fs-2xs) var(--font-mono); color: var(--muted);
  background: var(--bg-2); border: 0.0625rem solid var(--border); border-radius: var(--r-sm); padding: var(--sp-1) var(--sp-5); cursor: pointer; z-index: 1; }
.lib2-copy:hover { color: var(--text); border-color: var(--accent); }
.lib2-json, .lib2-text { background: var(--bg); border: 0.0625rem solid var(--border-soft); border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-8); font: 400 var(--fs-sm)/1.6 var(--font-mono); color: var(--text); overflow-x: auto; white-space: pre-wrap;
  word-break: break-word; max-height: 70vh; overflow-y: auto; margin: 0; }
.lib2-text { white-space: pre-wrap; }


.lib2-doctree { display: flex; flex-direction: column; gap: var(--sp-5); }
.lib2-wu-h { width: 100%; text-align: left; background: var(--bg-2); border: 0.0625rem solid var(--border-soft); border-radius: var(--r-md);
  padding: var(--sp-5) 0.6875rem; color: var(--text); cursor: pointer; font: 600 var(--fs-smplus) var(--font-sans); }
.lib2-wu-n { display: block; font: 500 var(--fs-2xs) var(--font-mono); color: var(--muted); margin-top: var(--sp-1); }
.lib2-sections { list-style: none; margin: var(--sp-4) 0 var(--sp-3); padding: 0 0 0 var(--sp-4); }
.lib2-sec { display: flex; align-items: baseline; gap: var(--sp-5); padding: var(--sp-1) 0; color: var(--text); font-size: var(--fs-smplus); border-left: 0.0625rem solid var(--border-soft); padding-left: var(--sp-6); }
.lib2-sec.lvl-2 { padding-left: 1.375rem; color: var(--muted); }
.lib2-sec.lvl-3, .lib2-sec.lvl-4 { padding-left: 2.125rem; color: var(--muted); font-size: var(--fs-sm); }
.lib2-sec-pg { margin-left: auto; font: 500 var(--fs-2xs) var(--font-mono); color: var(--muted); }

/* cross-reference graph */
.lib2-related { margin-top: 1.125rem; border-top: 0.0625rem solid var(--border-soft); padding-top: var(--sp-7); }
.lib2-rel-grp { margin-bottom: var(--sp-5); }
.lib2-rel-l { display: block; font: 600 var(--fs-2xs) var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3125rem; }
.lib2-relchip { font: 500 var(--fs-xs) var(--font-sans); color: var(--text); background: var(--bg-2); border: 0.0625rem solid var(--border-soft);
  border-radius: var(--r-sm); padding: var(--sp-1) var(--sp-5); margin: 0 var(--sp-3) var(--sp-3) 0; cursor: pointer; }
.lib2-relchip:hover { border-color: var(--accent); color: var(--accent); }

/* section-reference (best-effort parent page) markers */

@media (max-width: 860px) {
  .lib2 { grid-template-columns: 1fr; }
  .lib2-rail { max-height: none; }
}

/* ── in-place document reader (opens INSIDE the Documents panel; full PDF viewer) ───────────────── */
.lib2-main.lib2-reader { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lib2-reader-head { display: flex; align-items: center; gap: var(--sp-8); margin: 0; padding: var(--sp-7) 1.125rem;
  border-bottom: 0.0625rem solid var(--border-soft); background: var(--panel); }
.lib2-back { background: none; border: 0.0625rem solid var(--border); color: var(--muted); cursor: pointer;
  padding: 0.3125rem 0.8125rem; border-radius: var(--r-pill); font: 600 var(--fs-smplus) var(--font-sans); white-space: nowrap;
  transition: color .12s, border-color .12s; }
.lib2-back:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .5); }
.lib2-reader-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: var(--sp-6); }
.lib2-reader-title h1 { margin: 0; font: 600 var(--fs-sub) var(--font-display, serif); color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib2-reader-title .lib2-tally { margin: 0; }
.lib2-reader-otog { flex: none; background: none; border: 0.0625rem solid transparent; color: var(--muted);
  cursor: pointer; padding: 0.3125rem var(--sp-6); border-radius: var(--r-lg); font: 600 var(--fs-xs) var(--font-mono); }
.lib2-reader-otog.on { color: var(--gold); border-color: var(--border); }
.lib2-reader-otog:hover { color: var(--accent); }

.lib2-reader-body { flex: 1; min-height: 0; display: flex; }
.lib2-outline { width: 15.25rem; flex: none; border-right: 0.0625rem solid var(--border-soft);
  overflow-y: auto; padding: var(--sp-4) var(--sp-1) var(--sp-11); background: var(--panel); }
.lib2-owu { margin-bottom: var(--sp-5); }
.lib2-owu-h { font: 700 var(--fs-2xs) var(--font-mono); text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 0.4375rem var(--sp-6) var(--sp-3); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.lib2-osecs { list-style: none; margin: 0; padding: 0; }
.lib2-osec { display: flex; align-items: baseline; gap: var(--sp-4); padding: var(--sp-3) var(--sp-6) var(--sp-3) var(--sp-7); cursor: pointer;
  font: var(--fs-base) var(--font-sans); color: var(--text); border-left: 0.125rem solid transparent; }
.lib2-osec:hover { background: rgba(var(--accent-rgb), .08); }
.lib2-osec.on { color: var(--gold); border-left-color: var(--gold); background: rgba(var(--gold-rgb), .09); }
.lib2-osec.nopg { color: var(--muted); cursor: default; }
.lib2-osec.nopg:hover { background: none; }
.lib2-osec.lvl-1 { font-weight: 600; }
.lib2-osec.lvl-2 { padding-left: 1.375rem; }
.lib2-osec.lvl-3 { padding-left: 2rem; font-size: var(--fs-smplus); }
.lib2-osec.lvl-4 { padding-left: 2.625rem; font-size: var(--fs-sm); }
.lib2-osec-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib2-osec-pg { flex: none; font: var(--fs-2xs) var(--font-mono); color: var(--muted); }
.lib2-osec.on .lib2-osec-pg { color: var(--gold); }



/* ── Stat-block card (Library monster view) — MM layout, site theme tokens ── */
.statblock {
  position: relative;
  font-family: var(--font-sans); color: var(--text);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 0.0625rem solid var(--border); border-top: 0.1875rem solid var(--accent); border-radius: var(--r-xl);
  padding: var(--sp-9) 1.125rem 1.125rem; box-shadow: var(--shadow-drop-md);
}
/* top-right action buttons (Source PDF, …) */
.sb-actions { position: absolute; top: 0.625rem; right: 0.625rem; display: flex; gap: var(--sp-4); z-index: 1; }
.sb-act { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem;
  border: 0.0625rem solid var(--border); border-radius: var(--r-md); background: var(--panel);
  color: var(--muted); font-size: var(--fs-md); text-decoration: none; cursor: pointer; transition: color .12s, border-color .12s; }
.sb-act:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .6); }
.sb-name { font: 600 var(--fs-page)/1.05 var(--font-display); color: var(--gold); letter-spacing: 0.01875rem; padding-right: 2.5rem; }
.sb-meta { font-style: italic; font-size: var(--fs-base); color: var(--muted); margin: var(--sp-1) 0; }
.sb-bar { height: 0.1875rem; margin: 0.5625rem 0; opacity: .9;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  clip-path: polygon(0 50%, 0.4375rem 0, calc(100% - 0.4375rem) 0, 100% 50%, calc(100% - 0.4375rem) 100%, 0.4375rem 100%); }
.sb-red { font-size: var(--fs-base); line-height: 1.5; }
.sb-line { margin: 0.0625rem 0; color: var(--text); }
.sb-k { font-weight: 600; color: var(--gold); }
.sb-abils { display: flex; justify-content: space-between; text-align: center; gap: var(--sp-4); margin: var(--sp-1) 0; }
.sb-abil { flex: 1 1 0; min-width: 0; }
.sb-abil-k { font: 600 var(--fs-sm)/1 var(--font-mono); letter-spacing: .05em; color: var(--accent); }
.sb-abil-v { font-size: var(--fs-md); color: var(--text); margin-top: var(--sp-1); }
.sb-abil-m { color: var(--muted); }
.sb-sec { color: var(--gold); font: 600 var(--fs-sub)/1.1 var(--font-display); letter-spacing: 0.01875rem;
  border-bottom: 0.0625rem solid var(--border); margin: var(--sp-7) 0 0.3125rem; padding-bottom: var(--sp-2); }
.sb-block, .sb-intro { font-size: var(--fs-base); line-height: 1.5; color: var(--text); margin: var(--sp-4) 0; }
.sb-bi { font-weight: 600; font-style: italic; color: var(--text); }
.sb-traits { margin-top: var(--sp-1); }
.sb-flavor { font-style: italic; color: var(--muted); margin-top: var(--sp-7); font-size: var(--fs-base); line-height: 1.5; }
.sb-source { margin-top: var(--sp-7); font: 600 var(--fs-2xs) var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
@media (max-width: 460px) { .sb-abils { flex-wrap: wrap; } .sb-abil { flex-basis: 30%; } }

/* ── Reader — THE shared document/page reader (.rdr-*, _reader.js) ─────────────────────────────
   One component for the record lightbox, the doc lightbox, and the full-screen reader. */
.rdr { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; flex: 1 1 auto; }
.rdr-bar { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; padding: var(--sp-5) var(--sp-7);
  border-top: 0.0625rem solid var(--border-soft); font: 600 var(--fs-sm) var(--font-mono); color: var(--muted); }
.rdr-nav { display: inline-flex; align-items: center; gap: var(--sp-3); }
.rdr-bar button, .rdr-tool { background: var(--bg-2); border: 0.0625rem solid var(--border); color: var(--text);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-5); cursor: pointer; font: inherit; text-decoration: none; line-height: 1.4; }
.rdr-bar button:disabled { opacity: .35; cursor: default; }
.rdr-bar button:hover:not(:disabled), .rdr-tool:hover { border-color: var(--accent); }
.rdr-tool.on { color: var(--accent); border-color: var(--accent); }
.rdr-pageno { display: inline-flex; align-items: center; gap: 0.3125rem; }
.rdr-pageno input { width: 3.5rem; font: inherit; text-align: right; background: var(--bg-2); color: var(--text);
  border: 0.0625rem solid var(--border); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-4); }
.rdr-pageno i { font-style: normal; }
.rdr-span { font: inherit; color: var(--gold); border: 0.0625rem solid rgba(var(--gold-rgb), .45); background: none;
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-5); cursor: pointer; }
.rdr-span.in { background: rgba(var(--gold-rgb), .12); cursor: default; }
.rdr-sp { flex: 1 1 auto; }
.rdr-seg button { font-size: var(--fs-xs); padding: var(--sp-1) var(--sp-5); }
.rdr-zoom { display: inline-flex; align-items: center; gap: var(--sp-3); }
.rdr-zoom i { font-style: normal; min-width: 2.375rem; text-align: center; }

/* find-in-book */
.rdr-search { padding: var(--sp-5) var(--sp-7); border-top: 0.0625rem solid var(--border-soft); display: flex;
  flex-direction: column; gap: var(--sp-4); }
.rdr-search input { font: 500 var(--fs-base) var(--font-sans); background: var(--bg-2); color: var(--text);
  border: 0.0625rem solid var(--border); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-6); width: min(26.25rem, 100%); }
.rdr-search-n { font: 600 var(--fs-xs) var(--font-mono); color: var(--muted); }
.rdr-hits { list-style: none; margin: 0; padding: 0; max-height: 11.25rem; overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--sp-1); }
.rdr-hits li { font: var(--fs-sm) var(--font-sans); color: var(--muted); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md);
  cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdr-hits li b { color: var(--gold); font-family: var(--font-mono); font-size: var(--fs-xs); margin-right: var(--sp-4); }
.rdr-hits li:hover, .rdr-hits li.on { color: var(--text); background: rgba(var(--accent-rgb), .10); }
.rdr-nohit { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* body: optional thumbnail rail + the stage */
.rdr-body { flex: 1 1 auto; min-height: 0; display: flex; }
.rdr-thumbs { flex: 0 0 6rem; overflow-y: auto; border-right: 0.0625rem solid var(--border-soft);
  padding: var(--sp-5) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-5); background: var(--bg-2); }
.rdr-thumb { background: none; border: 0.125rem solid transparent; border-radius: var(--r-md); padding: var(--sp-1);
  cursor: pointer; position: relative; }
.rdr-thumb img { width: 100%; display: block; border-radius: var(--r-xs); background: var(--bg-2); min-height: 2.5rem; }
.rdr-thumb span { position: absolute; right: 0.25rem; bottom: 0.25rem; font: 600 var(--fs-micro) var(--font-mono);
  color: var(--rdr-thumb-fg); background: rgba(var(--gold-rgb), .9); border-radius: var(--r-sm); padding: 0 var(--sp-3); }
.rdr-thumb.on, .rdr-thumb:hover { border-color: var(--accent); }
/* The stage SCROLLS, so anything meant to stay put over the page lives in this wrapper instead —
   an absolute child of the stage would scroll away with the artwork. */
.rdr-view { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; }
.rdr-stage { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; position: relative;
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--gold-rgb), .06), transparent 55%), var(--bg); }

/* Over-the-page paging. Nearly invisible while reading; a hint appears when the pointer is
   anywhere in the reader, and the control resolves fully only when you actually reach for it. */
.rdr-pgbtn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  display: grid; place-items: center; width: 2.75rem; height: 4.5rem; padding: 0;
  font: 400 1.75rem/1 var(--font-body); cursor: pointer;
  color: var(--text); background: rgba(7, 5, 3, .62);       /* same ink as the lightbox scrim */
  border: 0.0625rem solid var(--border-soft); border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(0.125rem); backdrop-filter: blur(0.125rem);
  opacity: 0; transition: opacity .16s ease, background-color .16s ease, border-color .16s ease; }
/* Hug the painted page (--pg-l/--pg-r are published by the Reader), tucked just inside its edge.
   max() keeps them onscreen when the page is wider than the view (fit-width / zoom). */
.rdr-pgbtn.prev { left: max(var(--sp-5), calc(var(--pg-l, 0px) + var(--sp-5))); }
.rdr-pgbtn.next { right: max(var(--sp-5), calc(var(--pg-r, 0px) + var(--sp-5))); }
.rdr-view:hover .rdr-pgbtn { opacity: .28; }
.rdr-view .rdr-pgbtn:hover { opacity: 1; background: var(--bg-2); border-color: var(--accent); }
.rdr-pgbtn:focus-visible { opacity: 1; background: var(--bg-2); border-color: var(--accent); }
.rdr-pgbtn:disabled { cursor: default; }
.rdr-view:hover .rdr-pgbtn:disabled { opacity: .1; }
@media (hover: none) {                    /* touch: no hover to reveal them, so keep them legible */
  .rdr-pgbtn { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) { .rdr-pgbtn { transition: none; } }
.rdr-stage.fit-z { cursor: grab; }
.rdr-stage.fit-z:active { cursor: grabbing; }
.rdr-spread { display: flex; align-items: center; justify-content: center; gap: var(--sp-1);
  padding: 1.375rem 1.375rem 2rem; min-height: 100%; min-width: 100%; width: max-content; margin: 0 auto; }
.rdr-leaf { margin: 0; position: relative; flex: 0 0 auto; }
.rdr-leaf .rdr-pagewrap > img { display: block; border-radius: var(--r-xs); background: transparent; cursor: zoom-in;
  box-shadow: var(--shadow-drop-md); }
.rdr-leaf-pg { position: absolute; left: 50%; transform: translateX(-50%); bottom: -1.25rem;
  font: 600 var(--fs-2xs) var(--font-mono); color: var(--muted); white-space: nowrap; }
/* fit ▣ — the DEFAULT: the whole page (or the whole 2-up pair) fits the stage, no scrolling in
   any direction (operator law 2026-07-17). Leafs shrink together; images letterbox via contain. */
.rdr-stage.fit-p { overflow: hidden; }
.rdr-stage.fit-p .rdr-spread { height: 100%; width: 100%; }
.rdr-stage.fit-p .rdr-leaf { height: 100%; min-width: 0; flex: 0 1 auto; display: flex;
  align-items: center; justify-content: center; }
/* auto+max (NOT 100%): the img's intrinsic size — real or from stamped width/height attrs while
   still loading — is what feeds the auto-sized pagewrap/leaf chain; %-sized imgs contribute
   nothing and the whole right leaf collapses until the image arrives. */
.rdr-stage.fit-p .rdr-leaf .rdr-pagewrap > img { max-height: 100%; max-width: 100%;
  width: auto; height: auto; object-fit: contain; }
/* 2-up: the leafs split the stage, so a height-limited page would float mid-half — pin each
   page to the shared fold so the spread reads as one centered book. object-position covers any
   residual contain-letterbox slack inside the img box. */
.rdr-stage.fit-p .rdr-leaf.l-left { justify-content: flex-end; }
.rdr-stage.fit-p .rdr-leaf.l-right { justify-content: flex-start; }
.rdr-stage.fit-p .rdr-leaf.l-left .rdr-pagewrap > img { object-position: right center; }
.rdr-stage.fit-p .rdr-leaf.l-right .rdr-pagewrap > img { object-position: left center; }
.rdr-stage.fit-h .rdr-spread { height: 100%; }
.rdr-stage.fit-h .rdr-leaf { height: calc(100% - 0.625rem); }
.rdr-stage.fit-h .rdr-leaf .rdr-pagewrap { height: 100%; }
.rdr-stage.fit-h .rdr-leaf .rdr-pagewrap > img { height: 100%; width: auto; max-width: none; }
.rdr-stage.fit-w .rdr-spread { width: 100%; }
.rdr-stage.fit-w .rdr-leaf { flex: 1 1 0; min-width: 0; }
.rdr-stage.fit-w .rdr-leaf .rdr-pagewrap > img { width: 100%; height: auto; cursor: zoom-out; }
.rdr-stage.fit-z .rdr-leaf .rdr-pagewrap > img { cursor: inherit; }
/* Double-buffered page slots: the incoming page (.pg-off) loads INVISIBLY above the current one;
   the page swap is a class flip between two already-painted imgs — visible pixels are never
   unmounted or re-src'd, so a page change is structurally incapable of blanking. */
.rdr-pagewrap .pg-off { position: absolute; inset: 0; opacity: 0; z-index: 2;
  object-fit: contain; pointer-events: none; }
/* the book fold on a 2-up spread — a real span INSIDE .rdr-pagewrap so it is bounded by the
   PAGE box, never the (possibly taller) leaf: a width-bound fit leaves top/bottom space in the
   leaf and a leaf-anchored gradient would bleed past the page edges. */
.rdr-fold { position: absolute; top: 0; bottom: 0; width: 1.625rem; pointer-events: none; z-index: 3; }
.rdr-stage.fit-z .rdr-fold { display: none; }
.rdr-leaf.l-left .rdr-fold { right: 0;
  background: linear-gradient(to right, transparent, rgba(20, 12, 4, .38)); }
.rdr-leaf.l-right .rdr-fold { left: 0;
  background: linear-gradient(to left, transparent, rgba(20, 12, 4, .30)); }

/* ── book-simulation effects — per-user toggles (Profile → Book effects), .fx-* on .rdr ──────── */
/* fx-edges: stacked page edges on the outer sides — thickness tracks how deep into the book you
   are (--edg-l/--edg-r are set on .rdr-spread by the Reader). */
/* .rdr-edge spans live inside .rdr-pagewrap too (page-bounded, like .rdr-fold); the Reader
   renders them only in 2-up with fx-edges on. */
.rdr-edge { position: absolute; top: 1.5%; bottom: 1%; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(90deg,
    rgba(236, 224, 202, .38) 0 0.0625rem, rgba(52, 40, 24, .85) 0.0625rem 0.125rem, rgba(22, 16, 9, .85) 0.125rem 0.1875rem);
  box-shadow: var(--shadow-drop-md); }
.rdr-stage.fit-z .rdr-edge { display: none; }
.rdr-leaf.l-left .rdr-edge { right: 100%; width: var(--edg-l, 0); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.rdr-leaf.l-right .rdr-edge { left: 100%; width: var(--edg-r, 0); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
/* fx-paper: parchment grain + warm vignette per page (multiply overlay), and a visible concave
   page-bow into the gutter: shade builds toward the fold with a bright sheen band just before it
   (the sheen lives on the leaf's fold overlay, which is NOT blend-multiplied, so it lightens). */
.rdr.fx-paper .rdr-stage:not(.fit-z) .rdr-pagewrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--r-xs);
  mix-blend-mode: multiply;
  background:
    linear-gradient(to right, rgba(66, 46, 22, .10), transparent 16%, transparent 84%, rgba(66, 46, 22, .10)),
    radial-gradient(115% 100% at 50% 42%, transparent 55%, rgba(66, 46, 22, .17) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.35 0 0 0 0 0.24 0 0 0 0.09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: auto, auto, 12.5rem 12.5rem; }
.rdr.fx-paper .rdr-leaf.l-left .rdr-fold { width: 2.125rem;
  background: linear-gradient(to right, transparent,
    rgba(255, 250, 234, .18) 38%, rgba(46, 32, 15, .18) 68%, rgba(18, 11, 4, .52)); }
.rdr.fx-paper .rdr-leaf.l-right .rdr-fold { width: 2.125rem;
  background: linear-gradient(to left, transparent,
    rgba(255, 250, 234, .14) 42%, rgba(46, 32, 15, .14) 72%, rgba(18, 11, 4, .40)); }
/* fx-desk: one soft contact shadow under the spread (a book lying on the desk) instead of the
   floating per-page rectangle shadow. */
.rdr.fx-desk .rdr-stage:not(.fit-z) .rdr-leaf .rdr-pagewrap > img { box-shadow: var(--shadow-drop-sm); }
.rdr.fx-desk .rdr-stage:not(.fit-z) .rdr-pagewrap::before {
  content: ""; position: absolute; z-index: -1; left: -3%; right: -3%; bottom: -0.9375rem; height: 1.625rem;
  pointer-events: none; filter: blur(0.25rem);
  background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, .55), transparent 72%); }
/* fx-cover: first/last page render as a bound cover — leather board + gilt rule, single leaf. */
.rdr.fx-cover .rdr-leaf.l-cover .rdr-pagewrap { padding: var(--sp-7) var(--sp-8) var(--sp-8);
  border-radius: var(--r-sm) var(--r-2xl) var(--r-2xl) var(--r-sm);
  background: linear-gradient(135deg, var(--rdr-pagewrap-bg), var(--rdr-pagewrap-bg2) 55%, var(--rdr-pagewrap-bg3));
  box-shadow: inset 0 0 0 0.0625rem rgba(var(--gold-rgb), .35), inset 0 0 0 0.25rem rgba(0, 0, 0, .5),
    0 1.25rem 3.4375rem -1rem rgba(0, 0, 0, .95); }
.rdr.fx-cover .rdr-leaf.l-cover .rdr-pagewrap > img { border-radius: var(--r-xs); }
/* fx-gilt: page-number plates + gilded outer page edges. */
.rdr.fx-gilt .rdr-leaf-pg { color: var(--rdr-leaf-pg-fg); bottom: -1.375rem; padding: 0.0625rem var(--sp-5) var(--sp-1); border-radius: var(--r-sm);
  font: 600 var(--fs-2xs) var(--font-mono);
  background: linear-gradient(180deg, var(--rdr-leaf-pg-bg), var(--rdr-leaf-pg-bg2));
  box-shadow: var(--shadow-drop-sm); }
.rdr.fx-gilt .rdr-stage.two:not(.fit-z) .rdr-leaf.l-left .rdr-pagewrap > img {
  border-left: 0.125rem solid rgba(var(--gold-rgb), .4); }
.rdr.fx-gilt .rdr-stage.two:not(.fit-z) .rdr-leaf.l-right .rdr-pagewrap > img {
  border-right: 0.125rem solid rgba(var(--gold-rgb), .4); }

/* ── selectable text layer + look-up chip + the reader's View Panel ───────────────────────────── */
.rdr-pagewrap { position: relative; display: flex; min-width: 0; min-height: 0; }
/* The pagewrap IS the page box: sized by the real page aspect (--pgar, stamped on the stage from
   the first loaded page) against both max constraints, so it hugs the painted page whether the
   fit is height-bound OR width-bound. Everything page-anchored (fold/edges/desk/grain/flap/
   textlayer) keys off it — a taller-than-page wrap breaks all of them AND the turn animation. */
.rdr-stage.fit-p .rdr-leaf .rdr-pagewrap { height: auto; aspect-ratio: var(--pgar, 105 / 148);
  max-height: 100%; max-width: 100%; }
.rdr-stage.fit-w .rdr-leaf .rdr-pagewrap { width: 100%; }
.rdr-textlayer { position: absolute; inset: 0; container-type: size; pointer-events: none; z-index: 4; }
.rdr-tblock { position: absolute; overflow: hidden; color: transparent; cursor: text;
  white-space: nowrap; line-height: 1.05; user-select: text; pointer-events: auto; }
.rdr-tblock::selection { background: rgba(var(--accent-rgb), .35); }
.rdr-chip { position: absolute; transform: translate(-50%, calc(-100% - 0.5rem)); z-index: 8;
  font: 600 var(--fs-sm) var(--font-sans); color: var(--on-accent); background: var(--gold);
  border: none; border-radius: var(--r-pill); padding: 0.3125rem var(--sp-7); cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-drop-md); }
.rdr-chip:hover { background: var(--accent); }
.rdr-card { flex: 0 0 minmax(0, 21.25rem); width: 21.25rem; min-width: 0; display: flex; flex-direction: column;
  border-left: 0.0625rem solid var(--border); background: var(--panel); }
.rdr-card-h { display: flex; align-items: center; gap: var(--sp-5); padding: var(--sp-6) var(--sp-7);
  border-bottom: 0.0625rem solid var(--border-soft); }
.rdr-card-q { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 var(--fs-sm) var(--font-mono); color: var(--gold); }
.rdr-card-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--sp-7) var(--sp-8); }
.rdr-card-n { margin: 0 0 var(--sp-5); font-size: var(--fs-sm); color: var(--muted); }

/* ── Read-aloud editor (admin, inline on an adventure section's record) ───────
   The book's boxed narration, typed by hand where the extraction was refused. Sits under the view
   card in the record rail — you type the box where you read the section. */
.ra-edit { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6);
  padding-top: var(--sp-6); border-top: 0.0625rem solid var(--border); }
.ra-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.ra-box { display: flex; flex-direction: column; gap: var(--sp-2); }
.ra-text { width: 100%; resize: vertical; font: inherit; line-height: 1.5;
  background: var(--panel-2); color: var(--text); border: 0.0625rem solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-4); }
.ra-row { display: flex; align-items: center; gap: var(--sp-3); }
.ra-trigger { flex: 1; min-width: 0; }
.ra-none { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.ra-foot { display: flex; justify-content: flex-end; }
