/* GlobalFlows — dark spare instrument; BubblinCrude viewport lessons */
@font-face {
  font-family: "PlainZero";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/l/font?kit=UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZhzjIU&skey=c491285d6722e4fa&v=v20")
    format("truetype");
  unicode-range: U+0030;
}
@font-face {
  font-family: "PlainZero";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://fonts.gstatic.com/l/font?kit=UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZhzjIU&skey=c491285d6722e4fa&v=v20")
    format("truetype");
  unicode-range: U+0030;
}
@font-face {
  font-family: "PlainZero";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://fonts.gstatic.com/l/font?kit=UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZhzjIU&skey=c491285d6722e4fa&v=v20")
    format("truetype");
  unicode-range: U+0030;
}
@font-face {
  font-family: "PlainZero";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/l/font?kit=UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZhzjIU&skey=c491285d6722e4fa&v=v20")
    format("truetype");
  unicode-range: U+0030;
}

:root {
  --bg: #000000;
  --bg2: #16191e;
  --bg3: #22262c;
  --line: #2e333a;
  --text: #e8edf5;
  --muted: #8b97a8;
  --mono: "PlainZero", "IBM Plex Mono", ui-monospace, monospace;
  --sans: "PlainZero", "IBM Plex Sans", system-ui, sans-serif;
  --ease: #1db87a;
  --neutral: #ffffff;
  --tight: #f23645;
  --accent: #6aa7ff;
  --pick: #e6b84d;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --pwa-fill-h: 100%;
  --pwa-extra-b: 0px;
  /* Phone is 1.0 (94 / 3 / 75 at 16px). From 721px the strip scales together. */
  --ui-scale: 1;
  --lights-h: calc(5.875rem * var(--ui-scale));
  --favor-h: calc(4.6875rem * var(--ui-scale));
  --lights-favor-gap: calc(0.1875rem * var(--ui-scale));
  --favor-tenor-gap: calc(0.4375rem * var(--ui-scale));
  --lights-col: calc(4.5rem * var(--ui-scale));
  --track-w: calc(3.25rem * var(--ui-scale));
  --track-h: calc(0.875rem * var(--ui-scale));
  --track-xs-w: calc(2.25rem * var(--ui-scale));
  --needle-h: calc(3.125rem * var(--ui-scale));
  --needle-top: calc(-1.5625rem * var(--ui-scale));
  --needle-xs-h: calc(2.375rem * var(--ui-scale));
  --needle-xs-top: calc(-1.1875rem * var(--ui-scale));
  --sheet-top: calc(var(--safe-t) + 8px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  min-height: 100%;
  overscroll-behavior-y: none;
  /* No overflow here: overflow-x + visible-y pairs to auto and breaks sticky + scroll-spy. */
}

html.pwa-standalone,
html.pwa-standalone body {
  height: calc(var(--pwa-fill-h) + var(--pwa-extra-b));
  min-height: calc(var(--pwa-fill-h) + var(--pwa-extra-b));
}

.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 calc(4px + var(--safe-r)) calc(6px + var(--safe-b))
    calc(4px + var(--safe-l));
  gap: 6px;
  max-width: 100%;
  width: 100%;
  margin: 0;
  overflow: visible;
}

.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  flex-shrink: 0;
}

.topbar-title {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
  flex-wrap: wrap;
}

.brand-title {
  margin: 0;
  font-family: Michroma, "IBM Plex Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 26px;
  white-space: nowrap;
}

.dials-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.dials-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.topbar-nav .nav-link {
  background: var(--bg2);
}

.nav-link {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 12px;
  font: 500 0.78rem var(--sans);
  cursor: pointer;
  text-decoration: none;
}

.nav-link-sm {
  padding: 3px 9px;
  font-size: 0.68rem;
}

.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  text-decoration: none;
  line-height: 0;
}

.nav-link-icon img {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: transparent;
}

.nav-link:active {
  transform: scale(0.98);
}

/* Liquidity + Regime: gray off, 1px blue ring on. */
.dials-actions .nav-link {
  color: var(--muted);
  background: var(--bg2);
  border-color: var(--line);
  box-shadow: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.dials-actions .nav-link:focus,
.dials-actions .nav-link:focus-visible,
.dials-actions .nav-link:active {
  outline: none;
  transform: none;
}

.dials-actions .nav-link[aria-pressed="true"] {
  color: var(--muted);
  border-color: var(--accent);
}

.dlg-body h4 {
  margin: 14px 0 6px;
  font-size: 0.85rem;
}

.glossary {
  margin: 0 0 10px;
  display: grid;
  gap: 8px;
}

.glossary > div {
  display: grid;
  gap: 2px;
}

.glossary dt {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
}

.glossary dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.dlg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 2px;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg3);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  font: 500 0.8rem var(--sans);
  cursor: pointer;
}

/* Quiet text action — not a second Close */
.btn.link {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 7px 4px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
}

.btn.link:hover,
.btn.link:focus-visible {
  color: var(--text);
  text-decoration-color: color-mix(in srgb, var(--text) 55%, transparent);
}

.btn:active {
  transform: scale(0.98);
}

.sentence {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  cursor: pointer;
  outline: none;
}

.sentence:focus,
.sentence:focus-visible {
  outline: none;
  border-color: var(--line);
}

.dials-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

/* Whole top chrome stays put — brand, first chip row, lights, strip, series chips. */
.pin-stack {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: auto;
  min-width: 0;
  flex-shrink: 0;
  padding: var(--safe-t) 0 2px;
  margin: 0 calc(-1 * (4px + var(--safe-r))) 0 calc(-1 * (4px + var(--safe-l)));
  padding-left: calc(4px + var(--safe-l));
  padding-right: calc(4px + var(--safe-r));
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
  overflow: visible;
}

.pin-stack .lights {
  overflow: visible;
  /* keep focus ring from clipping at the pin edge */
  padding: 1px;
}

.pin-stack .favor-strip {
  overflow: visible;
  padding: 1px;
}

/* 3px between the light boxes and the asset-class boxes.
   Pin gap stays 6px for the tabs below; lights keep 1px pad. */
.lights + .favor-strip {
  margin-top: calc(var(--lights-favor-gap) - 6px - 1px);
}

/* Cover notch while pin is stuck (layout-neutral). Not on About —
   that slab clips the page background into a black band. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-t);
  background: var(--bg);
  z-index: 40;
  pointer-events: none;
}

html.page-about body::before,
body.page-about::before {
  content: none;
}

.regime-horizon {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.regime-horizon .btn.tiny-btn {
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.regime-horizon .btn.tiny-btn:focus,
.regime-horizon .btn.tiny-btn:focus-visible {
  outline: none;
}

.favor-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
}

.favor-so {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 2px 1px;
  font: 500 calc(0.62rem * var(--ui-scale)) var(--sans);
  line-height: 1.2;
  color: color-mix(in srgb, var(--text) 45%, var(--muted));
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favor-strip[hidden] {
  display: none;
}

.favor-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: calc(3px * var(--ui-scale));
  min-width: 0;
  height: var(--favor-h);
  min-height: var(--favor-h);
  padding: calc(5px * var(--ui-scale)) calc(2px * var(--ui-scale)) calc(6px * var(--ui-scale));
  overflow: visible;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
}

.favor-cell[data-focus="true"] {
  z-index: 3;
  border-color: var(--accent);
}

.favor-cell:focus,
.favor-cell:focus-visible {
  outline: 1px solid var(--accent, #3b82f6);
  outline-offset: 1px;
}

.favor-title {
  font-size: calc(0.48rem * var(--ui-scale));
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: normal;
  overflow: hidden;
  hyphens: manual;
  overflow-wrap: break-word;
  max-width: 100%;
  min-height: 2.3em;
}

.favor-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 7px currentColor;
}

.favor-cell[data-state="easing"] .favor-dot {
  background: var(--ease);
  color: var(--ease);
}
.favor-cell[data-state="neutral"] .favor-dot {
  background: var(--neutral);
  color: var(--neutral);
}
.favor-cell[data-state="tight"] .favor-dot {
  background: var(--tight);
  color: var(--tight);
}

.favor-curve {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}

.favor-cell.favor-ust {
  padding-bottom: 1px;
  padding-left: 2px;
  gap: 2px;
}

.favor-ust .favor-curve {
  /* 5 / IG / Cy / Oi stay put; 10s and 30s drop into the slack. */
  gap: var(--favor-tenor-gap);
}

.favor-ust .favor-tenor {
  padding-left: 0;
  padding-right: 0;
}

.favor-ust .favor-tenor b {
  text-align: left;
}

.favor-tenor {
  display: grid;
  grid-template-columns: 1.35em minmax(0, 1fr);
  align-items: center;
  column-gap: 3px;
  background: transparent;
  font: 600 calc(0.58rem * var(--ui-scale)) var(--mono);
  line-height: 1.25;
  letter-spacing: 0.02em;
  width: 100%;
  padding: 0 1px;
}

.favor-tenor b {
  font-weight: 600;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.favor-tenor .track {
  width: 100%;
  max-width: none;
}

.favor-strip .track {
  margin-top: -3px;
}

.favor-tenor.favor-spot-needle {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  min-height: 1.25em;
}

.dlg-body .rubric-extra {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 0;
  padding-left: 0;
}

.dlg-body .rubric-split {
  display: block;
  font-size: 0.78rem;
  line-height: 1.3;
}

.dlg-body .rubric-split .rubric-name {
  font-size: 0.78rem;
}

/* Split analog: one class verdict, then a short rose-in line under each tenor. */
.dlg-body .rubric-analog-rate {
  margin-top: 0;
  padding-left: 8px;
  border-left-color: transparent;
}

.sentence strong {
  font-weight: 600;
}

.sentence strong[data-state="easing"] {
  color: var(--ease);
}
.sentence strong[data-state="neutral"] {
  color: var(--neutral);
}
.sentence strong[data-state="tight"] {
  color: var(--tight);
}
.sentence strong[data-state="empty"] {
  color: var(--muted);
}

/* Five components: compact cards, packed left (all widths). */
.lights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, var(--lights-col)));
  gap: calc(5px * var(--ui-scale));
  width: max-content;
  max-width: 100%;
  align-self: start;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

.light {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(5px * var(--ui-scale));
  padding: calc(8px * var(--ui-scale)) calc(3px * var(--ui-scale));
  height: var(--lights-h);
  min-height: var(--lights-h);
  min-width: 0;
  /* Clip long needles; the frame sits in ::after so it cannot be covered. */
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  background: var(--bg2);
  border: none;
  border-radius: 6px;
  color: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 1;
}

/* Frame drawn inside the box — overflow:hidden was eating the bottom hairline. */
.light::after {
  content: "";
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
  z-index: 6;
}

.light[data-focus="true"]::after {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.light .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 0 3px;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

.impulse-chev {
  font-size: calc(0.58rem * var(--ui-scale));
  line-height: 1;
  font-weight: 700;
  height: calc(12px * var(--ui-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  transform: translateY(calc(-4px * var(--ui-scale)));
  letter-spacing: -0.02em;
}
.impulse-chev::after {
  content: "1m";
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92em;
}
.impulse-chev[data-dir="up"]::before {
  content: "▲";
  color: var(--ease);
}
.impulse-chev[data-dir="down"]::before {
  content: "▼";
  color: var(--tight);
}
.impulse-chev[data-dir="flat"]::before {
  content: "–";
  color: var(--neutral);
}

.light[data-state="easing"] .dot {
  background: var(--ease);
  color: var(--ease);
}
.light[data-state="neutral"] .dot {
  background: var(--neutral);
  color: var(--neutral);
}
.light[data-state="tight"] .dot {
  background: var(--tight);
  color: var(--tight);
}
.light[data-state="empty"] .dot {
  background: #445;
  color: #445;
  box-shadow: none;
}

.light .lbl {
  font-size: calc(0.52rem * var(--ui-scale));
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transform: translateY(calc(-5px * var(--ui-scale)));
}

.light .word {
  font-size: calc(0.72rem * var(--ui-scale));
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: visible;
  transform: translateY(calc(-5px * var(--ui-scale)));
}
/* First open: word waits until the needle stops. Space stays reserved. */
html.gf-open-settle .light .word {
  opacity: 0;
}
html.gf-open-arrive .light .word {
  transition: opacity 0.18s ease-out;
}
html.gf-open-run .track-mark {
  transition: left 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.light .score {
  font-family: var(--mono);
  font-size: calc(0.58rem * var(--ui-scale));
  color: var(--muted);
  margin: 0;
  line-height: 1;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(calc(-5px * var(--ui-scale)));
}

/* The five: −1 left, +1 right; ticks at 0 and ±0.45. The six: center only. */
.track {
  display: block;
  width: 100%;
  max-width: var(--track-w);
  height: var(--track-h);
  flex-shrink: 0;
  margin: 1px 0 0;
  overflow: visible;
}
.light .track {
  max-width: 100%;
}
.track-sm {
  max-width: 44px;
  height: 12px;
  margin-top: 0;
}
.track-sm .track-rail {
  margin-top: 5px;
}
.track-xs {
  max-width: 100%;
  height: calc(0.625rem * var(--ui-scale));
  margin: 0;
}
.track-rail {
  display: block;
  position: relative;
  height: 1px;
  margin-top: 6px;
  background: #fff;
  border-radius: 0;
}
.track-xs .track-rail {
  margin-top: 4px;
  height: 1px;
}
.track-mid,
.track-cut {
  position: absolute;
  top: -12px;
  width: 1px;
  height: 24px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}
.track-mid {
  left: 50%;
  height: 28px;
  top: -14px;
  background: #fff;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .track-rail {
    transform: scaleY(0.5);
    transform-origin: 50% 50%;
  }
  .track-mid,
  .track-cut {
    transform: translateX(-50%) scaleX(0.5);
  }
}
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 3dppx) {
  .track-rail {
    transform: scaleY(0.333);
    transform-origin: 50% 50%;
  }
  .track-mid,
  .track-cut {
    transform: translateX(-50%) scaleX(0.333);
  }
}
.track-cut-lo {
  left: 27.5%;
}
.track-cut-hi {
  left: 72.5%;
}
.track-mark {
  position: absolute;
  top: var(--needle-top);
  width: calc(2.5px * var(--ui-scale));
  height: var(--needle-h);
  border-radius: 1px;
  transform: translateX(-50%);
  background: var(--neutral);
  pointer-events: none;
}
.track-xs .track-mark {
  top: var(--needle-xs-top);
  width: calc(2.5px * var(--ui-scale));
  height: var(--needle-xs-h);
}
.track[data-state="easing"] .track-mark {
  background: var(--ease);
}
.track[data-state="tight"] .track-mark {
  background: var(--tight);
}
.track[data-state="empty"] .track-mark {
  background: #445;
}

@media (min-width: 721px) {
  :root {
    --ui-scale: 1.3;
  }
}

.sentence .sent-flags {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: normal;
}

.sentence strong.sent-flag {
  display: block;
  font-weight: 600;
  margin-top: 2px;
}

.dlg-body .sent-story {
  margin: 0 0 6px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.dlg-body .sent-kicker {
  margin: 8px 0 2px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dlg-body .sent-foot {
  margin: 8px 0 0;
}

.dlg-body .sent-explain {
  margin: 0;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

.dlg-body .sent-explain:last-of-type {
  border-bottom: none;
}

.dlg-body .sent-explain-title {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.dlg-body .sent-hint {
  font-weight: 400;
  font-size: 0.78rem;
}

.dlg-body .rubric-row .sent-explain-title {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: baseline;
}

.dlg-body .rubric-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
}

.dlg-body .rubric-row .sent-hint {
  grid-column: 1 / -1;
}

.dlg-body .sent-explain p {
  margin: 0;
}

.dlg-body .sent-explain-flag {
  border-bottom: 1px solid var(--line);
  padding-top: 4px;
}

.dlg-body .sent-explain-flag:last-of-type {
  border-bottom: none;
}

.dlg-body strong[data-state="easing"] {
  color: var(--ease);
}
.dlg-body strong[data-state="neutral"] {
  color: var(--neutral);
}
.dlg-body strong[data-state="tight"] {
  color: var(--tight);
}

.heatmap-head + .heat-toolbar {
  margin-top: -4px;
}

.heat-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 0;
}

.heat-toolbar .btn.tiny-btn {
  padding: 3px 3px;
}

.layer-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.layer-tabs .btn.tiny-btn {
  flex: 0 0 auto;
}

.layer-tabs .btn.tiny-btn[aria-selected="true"],
.layer-tabs .btn.tiny-btn[data-scroll-on="true"] {
  color: var(--muted);
  border-color: var(--accent);
  background: var(--bg2);
}

.main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 0;
}

.btn.tiny-btn.compare-go {
  border-color: var(--accent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 22%, var(--bg2));
}

.btn.tiny-btn.compare-done {
  border-color: var(--line);
}

.btn.tiny-btn.danger {
  border-color: color-mix(in srgb, var(--tight) 45%, var(--line));
  color: color-mix(in srgb, var(--tight) 70%, var(--text));
}

.btn.tiny-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.heat-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex: 0 1 auto;
  min-width: 0;
}

.heat-controls .ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: none;
  background: transparent;
}

.heat-controls .ctrl-group[hidden] {
  display: none;
}

.heat-controls .ctrl-group .btn.tiny-btn[aria-pressed="true"],
.heat-controls .ctrl-group .btn.tiny-btn.compare-go {
  color: var(--muted);
  border-color: var(--accent);
  background: var(--bg2);
}

.heat-controls .ctrl-group .btn.tiny-btn.danger {
  border-color: transparent;
}

.name-cell {
  cursor: pointer;
}

.heatmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 2px;
  padding-right: 2px;
}

.heatmap-titles {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heatmap-head h2 {
  margin: 0;
  font-size: 1rem;
}

.street-hint {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 0.72rem var(--sans);
  padding: 0;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
  text-underline-offset: 2px;
}

.street-hint:active {
  color: var(--accent);
}

.street-hint[hidden] {
  display: none;
}

.title-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.title-live[hidden] {
  display: none;
}

.title-age {
  font: 500 0.78rem var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-refresh {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-refresh svg {
  width: 12px;
  height: 12px;
  display: block;
}

.btn-refresh:active {
  color: var(--text);
  border-color: var(--accent);
}

.btn-refresh:disabled {
  cursor: default;
  opacity: 0.55;
}

.btn-refresh.is-loading svg {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-refresh.is-loading svg {
    animation: none;
  }
}

.dur-group {
  display: flex;
  gap: 2px;
}

.btn.tiny-btn {
  padding: 3px 6px;
  font-size: 0.68rem;
  border-radius: 6px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: var(--bg2);
  color: var(--muted);
  border-color: var(--line);
}

.btn.tiny-btn[aria-pressed="true"] {
  color: var(--muted);
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: none;
}

.chart-cell {
  padding: 1px 4px !important;
  vertical-align: middle;
  /* Let the spark shrink inside a fixed table — canvas width=600 was blowing the row right. */
  width: 62%;
  max-width: 0;
  white-space: normal;
}

.spark-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 20px;
  overflow: hidden;
  cursor: pointer;
}

.spark-wrap canvas.spark {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 20px;
  background: transparent;
}

.spark-chg {
  flex: 0 0 3.6em;
  width: 3.6em;
  text-align: right;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.spark-chg[data-dir="up"] {
  color: var(--ease);
}

.spark-chg[data-dir="down"] {
  color: var(--tight);
}

.spark-chg[data-dir="flat"] {
  color: var(--muted);
}

.spark-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-size: 0.65rem;
  pointer-events: none;
}

.spark-msg:empty {
  display: none;
}

.tiny {
  font-size: 0.75rem;
}

.muted {
  color: var(--muted);
}

.table-scroll {
  /* Prefer clip so x:auto does not force y:auto (sticky/spy regression). */
  overflow-x: auto;
  overflow-y: clip;
  margin-top: 4px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

@supports not (overflow: clip) {
  .table-scroll {
    /* Older WebKit: avoid creating a vertical scrollport; allow x swipe only via touch. */
    overflow: visible;
  }
}

.heat {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  /* separate: collapse breaks position:sticky on th in WebKit */
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.72rem;
}

.heat tbody tr {
  height: 25px;
  cursor: pointer;
}

.heat th,
.heat td {
  height: 25px;
  padding: 2px 5px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  box-sizing: border-box;
}

.heat th:first-child,
.heat td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--bg);
  z-index: 1;
  padding-left: 4px;
  width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heat th:last-child,
.heat td:last-child {
  padding-right: 4px;
}

.heat th {
  /* Layout-only — column labels live in the table; lookback sits in #heatColhead. */
  height: 0;
  max-height: 0;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  color: transparent;
  position: static;
  background: transparent;
  box-shadow: none;
}

.heat th:first-child {
  z-index: 1;
}

html {
  scroll-padding-top: var(--pin-h, 0px);
}

.heat .th-full {
  display: none;
}

@media (min-width: 560px) {
  .heat .th-abbr {
    display: none;
  }
  .heat .th-full {
    display: inline;
  }
}

.heat th:first-child {
  z-index: 3;
}

.heat tbody tr.heat-section {
  height: auto;
  cursor: default;
}

.heat tbody tr.heat-section td {
  height: auto;
  padding: 10px 5px 3px 4px;
  border-bottom: 1px solid var(--accent);
  text-align: left;
  white-space: nowrap;
  color: var(--accent);
  background: var(--bg);
  font: 600 0.68rem var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heat tbody tr.heat-section + tr td {
  border-top: none;
}

.heat tbody tr[data-voter] td:first-child {
  box-shadow: inset 1px 0 0 var(--accent);
}

.heat tbody tr[data-voter] td {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg2));
}

.heat tbody tr[data-voter] td:first-child {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg2));
}

.heat tbody tr:hover td {
  background: var(--bg3);
}

.heat tbody tr[data-voter]:hover td {
  background: color-mix(in srgb, var(--accent) 14%, var(--bg3));
}

.heat tbody tr:hover td:first-child {
  background: var(--bg3);
}

.heat tbody tr[data-voter]:hover td:first-child {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg3));
}

/* Pick tint (amber) — third state vs none / blue vote; wins when both. */
.heat tbody tr[data-compare] td {
  background: color-mix(in srgb, var(--pick) 9%, var(--bg2));
}

.heat tbody tr[data-compare] td:first-child {
  box-shadow: inset 3px 0 0 var(--pick);
  background: color-mix(in srgb, var(--pick) 12%, var(--bg2));
}

.heat tbody tr[data-compare]:hover td {
  background: color-mix(in srgb, var(--pick) 14%, var(--bg3));
}

.heat tbody tr[data-compare]:hover td:first-child {
  background: color-mix(in srgb, var(--pick) 16%, var(--bg3));
}

.heat .name {
  font-weight: 500;
}

.heat a {
  color: var(--accent);
  text-decoration: none;
}

.z-pos {
  color: var(--ease);
}
.z-neg {
  color: var(--tight);
}
.z-mid {
  color: var(--neutral);
}
.empty {
  color: var(--muted);
  font-style: italic;
}

.cell-heat {
  border-radius: 3px;
  padding: 1px 3px;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.dlg {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--text);
  padding: 0;
  max-width: min(420px, calc(100% - 24px));
}

/* Tap sheets: hug the copy, Close on the card — Liquidity / Regime / series. */
.dlg-tap[open] {
  position: fixed !important;
  inset: unset !important;
  top: var(--sheet-top) !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  width: min(640px, calc(100vw - 16px)) !important;
  max-width: min(640px, calc(100vw - 16px)) !important;
  height: max-content;
  max-height: calc(100dvh - var(--sheet-top) - var(--safe-b) - 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dlg-tap[open] form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  height: auto;
  overflow: hidden;
  flex: 1 1 auto;
  padding: 10px 12px 8px;
}

.dlg-tap[open] .dlg-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 6px;
}

.dlg-tap[open] .dlg-actions {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0;
  justify-content: flex-end;
}

.dlg-tap .btn {
  padding: 3px 8px;
  font-size: 0.68rem;
  border-radius: 6px;
  line-height: 1.2;
}

#dlgLight .light-teach {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

body.dlg-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

html:has(body.dlg-open) {
  overflow: hidden;
  overscroll-behavior: none;
}

body.dlg-open .app {
  overflow: hidden;
  pointer-events: none;
}

body.dlg-open dialog {
  pointer-events: auto;
}

#dlgSentence[open] > form > h3 {
  flex: 0 0 auto;
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.95rem;
}

#dlgSentence[open] .dlg-body {
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.35;
}

#dlgSentence.dlg-hug[open] {
  width: min(420px, calc(100vw - 24px)) !important;
  max-width: min(420px, calc(100vw - 24px)) !important;
}

.dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 0 12px;
}

.dlg-head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
}

.dlg-x {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.dlg-topsheet .dlg-body {
  font-size: 0.8rem;
  line-height: 1.3;
}

.dlg::backdrop {
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--sheet-top),
    rgba(0, 0, 0, 0.55) var(--sheet-top)
  );
}

.dlg form {
  padding: 10px 12px;
}

.dlg h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.dlg-body {
  font-size: 0.82rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.dlg-body .light-teach {
  margin: 0 0 6px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text);
}

.dlg-body .series-blurb {
  margin: 0 0 6px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text);
}

.dlg-body .series-lag {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.dlg-body .series-vote {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text);
}

.dlg-body .series-vote strong {
  color: var(--accent);
}

.dlg-body .series-meta {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.dlg-body .series-meta code {
  font-size: 0.72rem;
}

.dlg-body .series-stats {
  margin: 0;
  display: grid;
  gap: 4px;
}

.dlg-body .series-stats > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 0.8rem;
  line-height: 1.3;
}

.dlg-body .series-stats dt {
  margin: 0;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dlg-body .series-stats dd {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.dlg-body ol {
  padding-left: 1.2rem;
}

.dlg-body code {
  font-family: var(--mono);
  font-size: 0.8rem;
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 4px;
}

.dlg-body a,
.dlg a {
  color: #9ec5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.dlg-body a:focus,
.dlg-body a:focus-visible,
.dlg a:focus,
.dlg a:focus-visible {
  outline: none;
  box-shadow: none;
}

.dlg-body a:active,
.dlg a:active {
  color: #c5dcff;
}

/* —— About page —— */
/* Full-bleed document scroll; Back + mark float — no edge fades. */
html.page-about,
html.page-about body,
.page-about {
  background: var(--bg);
  min-height: 100%;
}

.about-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 calc(14px + var(--safe-r)) calc(28px + var(--safe-b))
    calc(14px + var(--safe-l));
}

.about-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) 12px
    calc(14px + var(--safe-l));
  box-sizing: border-box;
  background: transparent;
}

.about-main {
  padding-top: calc(var(--safe-t) + 60px);
}

.about-back,
.about-math {
  min-width: 0;
  background: var(--bg2);
}

.about-back {
  justify-self: start;
}

.about-math {
  justify-self: end;
  text-align: right;
}

.about-math[aria-current="page"] {
  color: var(--muted);
  border-color: var(--accent);
}

.about-top-mark {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.about-top-mark .dot,
.about-legend .swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.ease,
.swatch.ease {
  background: var(--ease);
}
.dot.mid,
.swatch.mid {
  background: var(--neutral);
}
.dot.tight,
.swatch.tight {
  background: var(--tight);
}

.about-hero {
  padding: 18px 0 8px;
}

.about-kicker {
  margin: 0 0 10px;
  font: 500 0.7rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-brand {
  margin: 0 0 14px;
  font-family: Michroma, "IBM Plex Sans", system-ui, sans-serif;
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.about-lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #c5cedc;
  max-width: 34rem;
}

.about-toc {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-toc a {
  display: inline-block;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--muted);
  border-radius: 6px;
  padding: 3px 9px;
  font: 500 0.68rem var(--sans);
  text-decoration: none;
}

.about-toc a:hover {
  border-color: color-mix(in srgb, var(--muted) 50%, var(--line));
  color: var(--text);
}

.about-toc a:active {
  border-color: var(--accent);
}

.about-block {
  margin: 10px 0 0;
  padding: 16px 14px 14px;
  scroll-margin-top: 56px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-block h2 {
  margin: 0 0 12px;
  font-family: Michroma, "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-block > p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #b7c0cf;
}

.about-block a {
  color: var(--accent);
  text-decoration: none;
}

.about-block a:hover {
  color: #c5dcff;
}

.about-chain {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.about-chain li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--line);
  min-width: 0;
}

.chain-label {
  font: 600 0.68rem var(--mono);
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chain-sub {
  font-size: 0.65rem;
  line-height: 1.25;
  color: var(--muted);
}

.about-doors {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .about-doors {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-door {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg3);
}

.about-door h3 {
  margin: 0 0 6px;
  font: 600 0.85rem var(--sans);
  color: var(--accent);
}

.about-door p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.about-steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.about-steps li {
  padding: 10px 12px;
  border-left: 1px solid var(--accent);
  background: var(--bg3);
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #b7c0cf;
}

.about-steps strong {
  color: var(--text);
}

.about-legend {
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.about-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-grid-2 {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .about-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.about-panel {
  padding: 14px 14px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg3);
}

.about-panel h3 {
  margin: 0 0 8px;
  font: 600 0.82rem var(--sans);
  color: var(--neutral);
}

.about-panel p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.about-read {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: read;
  display: grid;
  gap: 6px;
}

.about-read li {
  counter-increment: read;
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 6px;
  align-items: baseline;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

.about-read li::before {
  content: counter(read);
  font: 600 0.72rem var(--mono);
  color: var(--ease);
}

.about-read strong {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}

.about-status {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

@media (min-width: 560px) {
  .about-status {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-status > div {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg3);
  min-width: 0;
}

.status-label {
  display: block;
  font: 500 0.65rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.status-value {
  display: block;
  font: 500 0.85rem var(--mono);
  color: var(--text);
  word-break: break-word;
}

.status-value.is-ok {
  color: var(--ease);
}

.status-value.is-bad {
  color: var(--tight);
}

.about-formula p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #b7c0cf;
}

.formula-dl {
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.formula-dl > div {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg3);
}

.formula-dl dt {
  margin: 0 0 4px;
  font: 600 0.72rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.formula-dl dd {
  margin: 0;
}

.formula-dl code {
  font: 500 0.78rem var(--mono);
  color: var(--text);
  word-break: break-word;
}

.formula-dl .ident-note {
  display: block;
  margin-top: 6px;
  font: 400 0.78rem var(--sans);
  line-height: 1.45;
  color: var(--muted);
}

code.about-ident {
  display: block;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg3);
  font: 500 0.78rem var(--mono);
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.about-gloss-head {
  margin: 22px 0 10px;
  font: 600 0.72rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-block .glossary {
  margin: 0 0 4px;
  display: grid;
  gap: 12px;
}

.about-block .glossary > div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.about-block .glossary > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.about-block .glossary dt {
  margin: 0;
  font: 600 0.88rem var(--sans);
  color: var(--text);
}

.about-block .glossary dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.about-honest {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.about-honest li {
  position: relative;
  padding: 0 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #b7c0cf;
}

.about-honest li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ease);
}

.about-foot {
  margin: 8px 0 0;
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-main .muted.tiny {
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 420px) {
  .about-chain {
    grid-template-columns: 1fr 1fr;
  }
  .about-chain li:last-child {
    grid-column: 1 / -1;
  }
}


/* Base rates: what the market did after the days most like today. */
.base-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 8px 0 10px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.base-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  background: var(--bg3);
}
.base-name {
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.base-med {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.base-up {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 56px;
}

/* Base rate shown against the call it judges. */
.rubric-base {
  display: block;
  margin-top: 5px;
  padding-left: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  line-height: 1.45;
}
/*
 * Whether the record backs a call is a different question from which way the
 * machine is leaning, so it deliberately does not use the axis palette. Green,
 * white and red mean reflationary/mixed/contractionary everywhere else in the
 * app, and red also carries an unavoidable "something is broken" reading; a red
 * ring on a call would collide with both. Brightness carries it instead — bright
 * for the case worth stopping on, muted for agreement — which also survives
 * colour blindness and greyscale.
 */
.rubric-base[data-verdict="disagrees"] {
  border-left-color: rgba(255, 255, 255, 0.55);
}
.rubric-base > strong {
  font-weight: 600;
  color: var(--muted, #8b97a8);
}
.rubric-base[data-verdict="disagrees"] > strong {
  color: #e8edf5;
}
