/* OWN Charts — app shell & ChartCard styles */

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ivory); color: var(--ink); }

/* ---- Internal / Studio tool marker (strippable for live) ----- */
.internal-band {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 20px 40px 0; padding: 10px 16px;
  background: rgba(201,162,75,0.10); border: 1px solid rgba(201,162,75,0.35);
  border-radius: 12px; font-family: var(--font-sans);
}
.ib-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8A6D24; background: rgba(201,162,75,0.22); border-radius: 999px;
  padding: 3px 9px; white-space: nowrap;
}
.ib-text { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
@media print { .internal-band { display: none !important; } }

.shell { min-height: 100vh; display: grid; grid-template-rows: auto auto 1fr; }

/* ---- Top brand bar -------------------------------------------- */
.brand-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px) 0;
  gap: 24px;
}
.brand-mark {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-sans);
}
.brand-name { font-weight: 700; font-size: 14px; letter-spacing: 0.18em; color: var(--ink); }
.brand-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--ocean); display: inline-block; transform: translateY(-3px); }
.brand-sub { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }

.brand-actions { display: flex; align-items: center; gap: 22px; }
.brand-meta { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.brand-persona { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-soft); }
.brand-persona .avi { width: 28px; height: 28px; border-radius: 999px; background: var(--ocean); color: var(--ivory); display: grid; place-items: center; font-family: var(--font-serif); font-size: 13px; font-weight: 500; }

/* ---- Editorial title strip ------------------------------------ */
.title-strip {
  padding: 24px clamp(20px, 4vw, 48px) 22px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  border-bottom: 1px solid var(--line);
}
.title-strip h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px); line-height: 0.96;
  letter-spacing: -0.035em; color: var(--ink); margin: 6px 0 0;
}
.title-strip .strap {
  font-family: var(--font-sans); font-size: 14px; color: var(--ink-soft);
  max-width: none; margin-top: 10px; text-wrap: pretty;
}
.title-eye { font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ocean); }
.title-rule { display: inline-block; width: 22px; height: 1px; background: var(--ocean); margin: 0 8px 4px 0; vertical-align: middle; }
.title-strip .right {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); text-align: right;
}
.title-strip .right .as-of { display: block; margin-top: 6px; color: var(--ink-faint); }

/* ---- Tabs ----------------------------------------------------- */
.tabs {
  display: flex; gap: 0; align-items: stretch;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 18px 0; margin-right: 32px;
  font-family: var(--font-sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.04em; color: var(--ink-mute); background: transparent;
  border: 0; cursor: pointer; position: relative; white-space: nowrap;
  transition: color var(--dur-card) var(--ease-standard);
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1.5px; background: var(--ink);
}
.tab .tab-n { font-size: 10px; letter-spacing: 0.18em; color: var(--ink-faint); margin-right: 8px; font-variant-numeric: tabular-nums; }
.tab.on .tab-n { color: var(--ocean); }

/* ---- Page ----------------------------------------------------- */
.page {
  padding: 40px clamp(20px, 4vw, 48px) 96px;
  max-width: 1600px; margin: 0 auto; width: 100%;
}

/* ---- Page intro (editorial standfirst) ------------------------ */
.intro {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px;
  padding-bottom: 36px; margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .intro { grid-template-columns: 1fr; gap: 24px; } }
.intro h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06;
  letter-spacing: -0.028em; color: var(--ink); margin: 6px 0 0;
  text-wrap: pretty;
}
.intro p { font-family: var(--font-sans); font-size: 16px; color: var(--ink-soft); line-height: 1.55; text-wrap: pretty; }
.intro .intro-kick { font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ocean); margin-bottom: 8px; }
.intro .stat-strip {
  display: flex; flex-wrap: wrap; gap: 32px 48px;
  border-left: 1px solid var(--line); padding-left: 32px;
}
@media (max-width: 880px) { .intro .stat-strip { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }
.intro .stat-strip .stat .lbl { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.intro .stat-strip .stat .val { font-family: var(--font-serif); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.intro .stat-strip .stat .delta { font-family: var(--font-sans); font-size: 12px; color: var(--ink-mute); margin-top: 4px; }
.intro .stat-strip .stat .delta.up { color: var(--gain); }
.intro .stat-strip .stat .delta.down { color: var(--loss); }

/* ---- Grid ----------------------------------------------------- */
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }

@media (max-width: 1180px) {
  .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8 { grid-column: span 12; }
}
@media (max-width: 680px) {
  .span-6 { grid-column: span 12; }
}

/* ============================================================
   CHART CARD
   ============================================================ */
.cc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card-dense);
  padding: 22px;
  box-shadow: 0 12px 38px rgba(0,0,0,0.045);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 290px;
  scroll-margin-top: 24px;
}
.cc.dark { background: var(--obsidian); border-color: rgba(244,244,241,0.10); color: var(--ivory); box-shadow: 0 18px 48px rgba(0,0,0,0.16); }

/* Float-on-hover — the card lifts a touch and its shadow deepens, so it reads
   as floating above the page rather than pasted onto it. Motion-safe only. */
@media (prefers-reduced-motion: no-preference) {
  .cc { transition: box-shadow .35s cubic-bezier(.22,1,.36,1); }
  .cc:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.09), 0 24px 56px rgba(0,0,0,0.12); }
  .cc.dark:hover { box-shadow: 0 32px 70px rgba(0,0,0,0.34); }
  .cc.hero:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.10), 0 32px 72px rgba(0,0,0,0.14); }
}
.cc.dark .cc-t { color: var(--ivory); }
.cc.dark .cc-sub { color: rgba(244,244,241,0.68); }
.cc.dark .cc-kick { color: var(--sea); }
.cc.dark .cc-f { border-color: rgba(244,244,241,0.14); }
.cc.compact { padding: 16px; min-height: 200px; border-radius: var(--r-nested); }
.cc.tall { min-height: 400px; }
.cc.hero { min-height: 450px; padding: 28px; border-radius: var(--r-card); box-shadow: 0 24px 64px rgba(0,0,0,0.08); }

.cc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.cc-h-l { flex: 1; min-width: 0; }
.cc-h-r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.cc-kick { font-family: var(--font-sans); font-weight: 500; font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ocean); margin-bottom: 11px; }
.cc-t { font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -0.018em; color: var(--ink); margin: 0; text-wrap: pretty; }
.cc.hero .cc-t { font-size: 34px; line-height: 1.05; letter-spacing: -0.025em; }
.cc-sub { font-family: var(--font-sans); font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; margin: 13px 0 0; max-width: none; text-wrap: pretty; }
.cc-fig { font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cc.hero .cc-fig { font-size: 56px; }
.cc-pill-wrap { display: flex; gap: 6px; }
.cc-ctrls { display: flex; gap: 8px; }
.cc-body { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.cc-f { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cc-f-note { font-family: var(--font-sans); font-size: 12.5px; color: var(--ink-mute); font-style: italic; line-height: 1.4; }

/* ---- Pill ----------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-weight: 500; font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill-d { width: 5px; height: 5px; border-radius: 999px; }
.pill.gain { background: #DDE6D9; color: #1C3A2A; } .pill.gain .pill-d { background: #1C3A2A; }
.pill.loss { background: #ECDADC; color: #5C1D22; } .pill.loss .pill-d { background: #5C1D22; }
.pill.alert{ background: #ECE4D2; color: #6B5328; } .pill.alert .pill-d { background: #A48758; }
.pill.info { background: #DDE5E5; color: #0E3A3E; } .pill.info .pill-d { background: #0E3A3E; }
.pill.flat { background: rgba(10,10,10,0.06); color: var(--ink-soft); } .pill.flat .pill-d { background: var(--ink-faint); }
.pill.ocean{ background: var(--ocean); color: var(--ivory); } .pill.ocean .pill-d { background: var(--sea); }

/* ---- Atlas note — collapsible (rests as the mark; opens to the insight) ---- */
.atlas-note {
  border-radius: 18px;
  background: transparent;
  padding: 0;
  transition: background var(--dur-card, 220ms) var(--ease-standard),
              padding 340ms var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.atlas-note.open { background: rgba(14, 58, 62, 0.05); padding: 12px 14px; }
.cc.dark .atlas-note.open { background: rgba(134, 199, 192, 0.10); }

/* the resting / toggle line — disc + label + chevron, always visible */
.atlas-note-head {
  appearance: none; -webkit-appearance: none;
  border: 0; background: none; margin: 0; padding: 0; width: auto;
  display: inline-flex; align-items: center; gap: 11px;
  cursor: pointer; font: inherit; color: inherit; text-align: left;
  border-radius: 999px;
  transition: transform 200ms var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.atlas-note[data-open="false"] .atlas-note-head:hover { transform: translateY(-1px); }

.atlas-note .atlas-disc {
  box-shadow: 0 6px 16px rgba(20,18,15,.16), 0 1px 4px rgba(20,18,15,.10);
  transition: box-shadow 220ms var(--ease-standard);
}
.atlas-note.open .atlas-disc { box-shadow: 0 2px 8px rgba(20,18,15,.12); }

.atlas-label { font-family: var(--font-sans); font-weight: 600; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ocean); white-space: nowrap; }
.cc.dark .atlas-label { color: var(--sea); }

.atlas-chev {
  width: 15px; height: 15px; flex: none; color: var(--ink-faint);
  opacity: .5;
  transition: opacity 200ms var(--ease-standard), transform 260ms var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.atlas-note-head:hover .atlas-chev { opacity: .85; }
.atlas-note.open .atlas-chev { transform: rotate(180deg); opacity: .6; }
.cc.dark .atlas-chev { color: var(--paper-faint); }

/* the reveal — height is driven inline by JS so it animates reliably */
.atlas-reveal { overflow: hidden; transition: height 360ms var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.atlas-body {
  font-family: var(--font-sans); font-size: 13px; color: var(--ink);
  line-height: 1.5; text-wrap: pretty; padding-top: 9px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 240ms var(--ease-standard) 60ms,
              transform 300ms var(--ease-out, cubic-bezier(.16,1,.3,1)) 60ms;
}
.atlas-note.open .atlas-body { opacity: 1; transform: none; }
.cc.dark .atlas-body { color: rgba(244,244,241,0.92); }

@media (prefers-reduced-motion: reduce) {
  .atlas-note, .atlas-note-head, .atlas-chev, .atlas-reveal, .atlas-body { transition: none; }
}

/* ---- Segmented ----------------------------------------------- */
.seg {
  display: inline-flex; background: rgba(10,10,10,0.045); border-radius: 999px; padding: 3px;
}
.seg-b {
  font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: 0.04em;
  padding: 6px 12px; border: 0; background: transparent; border-radius: 999px; cursor: pointer;
  color: var(--ink-mute);
  transition: color 180ms ease, background 180ms ease,
              transform 200ms cubic-bezier(.34,1.56,.64,1), box-shadow 200ms ease;
}
/* Hover lift — the tab pops up off its track a touch. */
.seg-b:hover { color: var(--ink); }
.seg-b:hover:not(.on) { background: rgba(255,255,255,0.75); box-shadow: 0 4px 11px rgba(20,18,15,0.12); }
.seg-b:active { transform: translateY(0); box-shadow: none; }
.seg-b.on { background: var(--ink); color: var(--ivory); box-shadow: 0 2px 6px rgba(20,18,15,0.16); }
.seg-b.on:hover { box-shadow: 0 6px 15px rgba(20,18,15,0.22); }
.cc.dark .seg { background: rgba(244,244,241,0.08); }
.cc.dark .seg-b { color: rgba(244,244,241,0.62); }
.cc.dark .seg-b.on { background: var(--ivory); color: var(--ink); }

/* ---- Callout (chart-edge annotation) ------------------------- */
.callout {
  position: absolute; max-width: 200px;
  font-family: var(--font-sans); font-size: 11.5px; line-height: 1.4;
  color: var(--ink); padding: 8px 12px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(2px);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.callout .co-lbl { font-weight: 500; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ocean); display: block; margin-bottom: 2px; }
.cc.dark .callout { background: rgba(11,11,12,0.92); border-color: rgba(244,244,241,0.14); color: var(--ivory); }
.cc.dark .callout .co-lbl { color: var(--sea); }

/* ---- Legend -------------------------------------------------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-sans); font-size: 12px; color: var(--ink-mute); }
.legend .li { display: inline-flex; align-items: center; gap: 8px; }
.legend .li .d { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.legend .li.dot .d { border-radius: 999px; }

/* ---- Canvas (summary) view ----------------------------------- */
.canvas-view {
  background: var(--paper);
  margin: -40px clamp(-20px, -4vw, -48px) -96px;
  padding: 56px clamp(28px, 5vw, 80px) 96px;
  min-height: 100%;
}
.canvas-view .cv-h { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(10,10,10,0.18); }
.canvas-view h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.028em; line-height: 1.0; margin: 0; }
.canvas-view .cv-sub { font-family: var(--font-sans); font-size: 14px; color: var(--ink-soft); margin-top: 12px; max-width: none; }
.canvas-view .cv-right { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); text-align: right; }
.canvas-view .cv-section { margin-bottom: 64px; }
.canvas-view .cv-section-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.canvas-view .cv-section-h .lbl { font-family: var(--font-sans); font-weight: 500; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ocean); }
.canvas-view .cv-section-h .ttl { font-family: var(--font-serif); font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; margin: 7px 0 0; }
.canvas-view .cv-section-h .mtr { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- Generic utility ----------------------------------------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.btw { justify-content: space-between; }
.dim { color: var(--ink-mute); }
.serif { font-family: var(--font-serif); }
.sans  { font-family: var(--font-sans); }
.tnum  { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.eye   { font-family: var(--font-sans); font-weight: 500; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); }
.delta-up   { color: var(--gain); } .delta-down { color: var(--loss); }

/* ---- Section divider (within page) -------------------------- */
.sec-div {
  margin: 32px 8px 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: end;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.sec-div .num { font-family: var(--font-serif); font-size: 56px; line-height: 0.9; letter-spacing: -0.04em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.sec-div .lbl { font-family: var(--font-sans); font-weight: 500; font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ocean); }
.sec-div .ttl { font-family: var(--font-serif); font-weight: 400; font-size: 30px; letter-spacing: -0.025em; color: var(--ink); margin: 8px 0 0; line-height: 1.1; }
.sec-div .sub { font-family: var(--font-sans); font-size: 13px; color: var(--ink-soft); margin-top: 9px; }

/* slider input style */
input[type="range"].own-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; background: rgba(10,10,10,0.12);
  border-radius: 999px; outline: none;
}
input[type="range"].own-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 999px; background: var(--ocean);
  cursor: pointer; box-shadow: 0 0 0 4px rgba(14,58,62,0.10);
  transition: transform 160ms cubic-bezier(.34,1.56,.64,1), box-shadow 160ms ease;
}
input[type="range"].own-range:hover::-webkit-slider-thumb {
  transform: scale(1.18); box-shadow: 0 2px 8px rgba(14,58,62,0.25), 0 0 0 5px rgba(14,58,62,0.12);
}
input[type="range"].own-range:active::-webkit-slider-thumb { transform: scale(1.08); }
input[type="range"].own-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 999px; background: var(--ocean);
  cursor: pointer; border: 0;
}

/* ---- Replay button (re-runs a card's entrance animation) ------ */
.story-h-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.cc-h-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.cc-tools { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.replay-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-mute);
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px 5px 9px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: color .18s ease, border-color .18s ease, background .18s ease,
              transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}
.replay-btn:hover { color: var(--ocean); border-color: var(--ocean); background: rgba(14,58,62,0.06);
  box-shadow: 0 6px 15px rgba(14,58,62,0.14); }
.replay-btn:active { transform: translateY(0); box-shadow: none; }
.replay-btn svg { display: block; }
@keyframes replaySpin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
/* During a replay reset, transitions are suppressed so the card snaps to its
   start frame instantly (no reverse animation) before re-running forward. */
.replay-reset, .replay-reset * {
  transition: none !important;
  animation: none !important;
}

/* ---- Hover-lift "aliveness" on chart controls — disabled for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .seg-b:hover, .seg-b.on:hover, .replay-btn:hover, .tog:hover,
  input[type="range"].own-range:hover::-webkit-slider-thumb {
    transform: none !important;
  }
}

/* ---- ChartHover — stock-chart-style hover readout ------------- */
.ck-hoverwrap { position: relative; }
.ck-hover {
  position: absolute; inset: 0; z-index: 4;
  cursor: crosshair; touch-action: none;
  overflow: visible;
}
.ck-hover-line {
  position: absolute; width: 0; transform: translateX(-50%);
  border-left: 1px dashed rgba(10,10,10,0.32);
  pointer-events: none;
}
.cc.dark .ck-hover-line { border-left-color: rgba(244,244,241,0.34); }
.ck-hover-dot {
  position: absolute; width: 11px; height: 11px; border-radius: 999px;
  transform: translate(-50%,-50%);
  background: currentColor; box-shadow: 0 0 0 2.5px var(--paper), 0 1px 4px rgba(10,10,10,0.25);
  pointer-events: none;
}
.ck-hover-tip {
  position: absolute; transform: translate(10px, -2px);
  min-width: 132px; max-width: 230px;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(3px);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20,18,15,0.16), 0 3px 8px rgba(20,18,15,0.08);
  padding: 9px 11px; pointer-events: none;
  font-family: var(--font-sans);
  transition: opacity 80ms ease;
}
.ck-hover-tip *, .ck-hover-tip::before, .ck-hover-tip::after { pointer-events: none; }
.ck-hover-tip.flip { transform: translate(calc(-100% - 10px), -2px); }
.cc.dark .ck-hover-tip { background: rgba(17,17,18,0.96); border-color: rgba(244,244,241,0.16); }
.ck-hover-tip-d {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 7px;
}
.ck-hover-tip-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 2.5px 0;
}
.ck-hover-tip-k {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-soft); white-space: nowrap;
}
.ck-hover-tip-sw { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.ck-hover-tip-v {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cc.dark .ck-hover-tip-v { color: var(--ivory); }


/* ── Loading placeholder (2026-07-03) ─────────────────────────────────────
   Library pages render their content with React into #root from ~40 deferred
   scripts. Until they execute, the page was header + footer squeezed together
   — which reads as a broken/old page flashing by on every navigation. While
   #root is empty, hold the content area open and show a quiet spinner; the
   moment React mounts, :empty stops matching and this all disappears. */
#root:empty {
  min-height: 72vh;
  display: grid;
  place-items: center;
}
#root:empty::after {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 10, 0.12);
  border-top-color: #0D7A72;
  animation: own-lib-wait 0.8s linear infinite;
}
@keyframes own-lib-wait {
  to { transform: rotate(360deg); }
}
