:root {
  color-scheme:dark;
  --bg:#0c131c;
  --surface:#121d29;
  --surface-raised:#172332;
  --surface-hover:#1a2a3a;
  --line:#253242;
  --line-light:#304153;
  --text:#edf2f7;
  --muted:#a0afc1;
  --subtle:#8293a7;
  --mint:#78d5bf;
  --amber:#e7ba7d;
  --red:#ef9a9d;
  --radius:12px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.5;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:90px;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}

button,input,select {
  font:inherit;
}

a {
  color:inherit;
  text-decoration:none;
}

button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.65;
}

svg {
  flex-shrink:0;
}

input,select {
  min-width:0;
  max-width:100%;
}

h1,h2,h3,p,figure {
  margin:0;
}

h1 {
  font-size:30px;
  line-height:1.25;
  letter-spacing:-1px;
  font-weight:650;
}

h2 {
  font-size:16px;
  line-height:1.4;
  letter-spacing:-.25px;
  font-weight:650;
}

h3 {
  font-size:14px;
  font-weight:600;
}

strong,b {
  font-weight:600;
}

small,.small {
  font-size:11px;
}

dl {
  margin:0;
}

dd {
  margin:0;
}

ul {
  list-style:none;
  padding:0;
  margin:0;
}

.shell {
  max-width:1392px;
  padding-left:40px;
  padding-right:40px;
  margin:auto;
}

.icon {
  width:18px;
  height:18px;
  display:inline-block;
  vertical-align:middle;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

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

.microcopy {
  font-size:11px;
  color:var(--subtle);
}

.positive-text,.mint-text {
  color:var(--mint)!important;
}

.negative-text {
  color:var(--red)!important;
}

.amber-text {
  color:var(--amber)!important;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link {
  position:fixed;
  top:10px;
  left:10px;
  padding:12px 18px;
  z-index:100;
  background:var(--mint);
  color:#09231b;
  border-radius:6px;
  transform:translateY(-150%);
}

.skip-link:focus {
  transform:translateY(0);
}

:focus-visible {
  outline:2px solid var(--mint);
  outline-offset:4px;
  border-radius:3px;
}

.js-only {
  display:none;
}

html.enhanced .js-only {
  display:inline-flex;
}

.topbar {
  position:sticky;
  top:0;
  z-index:20;
  background:#101925f5;
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}

.topbar-inner {
  height:76px;
  display:flex;
  align-items:center;
  gap:54px;
}

.identity {
  display:inline-flex;
  align-items:center;
  gap:11px;
  flex-shrink:0;
}

.brand-mark {
  width:37px;
  height:37px;
  background:var(--mint);
  color:#0c302b;
  display:grid;
  place-items:center;
  position:relative;
  border-radius:10px;
  font-weight:850;
  font-size:24px;
  letter-spacing:-3px;
  padding-right:5px;
}

.brand-mark span {
  position:absolute;
  right:7px;
  font-size:23px;
  font-weight:500;
}

.identity strong {
  display:block;
  font-size:14px;
  letter-spacing:-.2px;
}

.identity small {
  font-size:8px;
  letter-spacing:1.6px;
  color:var(--subtle);
  display:block;
  margin-top:2px;
  font-weight:600;
}

.version-tag {
  font-size:10px;
  font-weight:500;
  margin-left:8px;
  color:var(--subtle);
}

.primary-nav {
  display:flex;
  gap:6px;
  align-self:stretch;
  align-items:center;
}

.primary-nav a {
  display:flex;
  gap:9px;
  align-items:center;
  padding:9px 14px;
  border-radius:7px;
  font-size:12px;
  color:var(--muted);
  font-weight:550;
}

.primary-nav a .icon {
  width:16px;
  height:16px;
}

.primary-nav a:hover {
  color:var(--text);
  background:var(--surface-raised);
}

.primary-nav a[aria-current] {
  color:var(--mint);
  background:#1d3737;
}

.header-tools {
  display:flex;
  align-items:center;
  gap:24px;
  margin-left:auto;
}

.paper-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:9px;
  font-weight:650;
  letter-spacing:.8px;
  border:1px solid #314946;
  color:#a3c6bd;
  border-radius:5px;
  padding:5px 8px;
  background:#172725;
}

.paper-badge .icon {
  width:12px;
  height:12px;
}

.icon-button {
  border:0;
  background:transparent;
  color:var(--muted);
  width:42px;
  height:42px;
  border-radius:7px;
  display:inline-grid;
  place-items:center;
}

.icon-button:hover {
  background:var(--surface-raised);
  color:var(--text);
}

.context-bar {
  border-bottom:1px solid #1d2936;
  background:#0e1721;
}

.context-inner {
  height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  gap:12px;
}

.context-inner>span {
  display:flex;
  align-items:center;
  gap:8px;
}

.context-inner strong {
  font-size:10px;
  color:#c4d1df;
  letter-spacing:.6px;
}

.instrument-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--mint);
}

.context-separator {
  color:#3d4f63;
  margin:0 4px;
}

.context-right {
  display:flex;
  align-items:center;
  gap:26px;
}

.connection-state {
  display:flex;
  align-items:center;
  gap:7px;
}

.status-dot {
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
  flex-shrink:0;
}

.status-dot.online {
  background:var(--mint);
  box-shadow:0 0 0 3px #78d5bf0c;
}

.status-dot.offline {
  background:var(--amber);
}

#utc-clock {
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  color:var(--subtle);
  font-size:10px;
}

.main-content {
  padding-top:33px;
  padding-bottom:24px;
  min-height:calc(100vh - 195px);
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:24px;
}

.eyebrow {
  text-transform:uppercase;
  font-size:9px;
  letter-spacing:1.7px;
  font-weight:650;
  color:var(--mint);
  margin-bottom:8px;
}

.page-description {
  font-size:12px;
  color:var(--muted);
  margin-top:9px;
  line-height:1.7;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--text);
  border:1px solid var(--line-light);
  background:#14202d;
  border-radius:7px;
  min-height:39px;
  padding:8px 13px;
  font-size:11px;
  font-weight:550;
  white-space:nowrap;
  transition:background .15s,border-color .15s;
}

.button .icon {
  width:15px;
  height:15px;
}

.button:hover {
  background:#1d2d3f;
  border-color:#4e6475;
}

.button-primary {
  background:var(--mint);
  border-color:var(--mint);
  color:#10352d;
  font-weight:650;
}

.button-primary:hover {
  background:#99e4d2;
  border-color:#99e4d2;
}

.button-small {
  min-height:32px;
  padding:5px 10px;
  font-size:10px;
}

.refresh-button {
  align-self:flex-end;
  margin-bottom:3px;
}

.notice {
  display:flex;
  align-items:flex-start;
  gap:11px;
  background:#28231d;
  border:1px solid #584732;
  border-radius:9px;
  padding:13px 15px;
  color:#d8b88d;
  font-size:11px;
  line-height:1.7;
  margin-bottom:22px;
}

.notice>.icon {
  width:17px;
  height:17px;
  margin-top:1px;
  color:var(--amber);
}

.notice strong {
  color:#efd2ab;
}

.notice-meta {
  display:block;
  font-size:10px;
  color:#c7aa84;
  margin-top:2px;
}

.notice-link {
  display:flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
  margin-left:auto;
  color:#efce9e;
  padding-top:2px;
  font-size:10px;
}

.notice-link .icon {
  width:13px;
  height:13px;
}

.section-top,.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.mode-row {
  margin-bottom:18px;
}

.segmented {
  padding:3px;
  display:inline-flex;
  gap:3px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#0e1722;
}

.segmented a {
  display:inline-flex;
  min-height:30px;
  align-items:center;
  padding:5px 13px;
  font-size:11px;
  color:var(--subtle);
  border-radius:5px;
}

.segmented a.selected {
  background:#253342;
  color:var(--text);
  box-shadow:0 1px 3px #0003;
}

.segmented a:hover {
  color:var(--text);
}

.segmented.compact a {
  font-size:10px;
  min-height:27px;
  padding:3px 10px;
}

.kpi-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  margin-bottom:24px;
}

.kpi {
  background:linear-gradient(120deg,#15212e,#121c29);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 20px;
  min-height:132px;
  position:relative;
  overflow:hidden;
}

.kpi-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#b2bfd0;
  font-size:11px;
  gap:12px;
}

.kpi-top .icon {
  width:16px;
  height:16px;
  color:#60758a;
}

.kpi-value {
  font-size:32px;
  font-weight:600;
  letter-spacing:-1.1px;
  line-height:1.35;
  margin-top:10px;
  font-variant-numeric:tabular-nums;
}

.kpi-unit {
  font-size:13px;
  color:#6f8298;
  letter-spacing:0;
  font-weight:400;
  margin-left:7px;
}

.kpi p {
  font-size:10px;
  color:var(--subtle);
  margin-top:5px;
}

.mini-dot {
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  margin-right:5px;
  vertical-align:middle;
  flex-shrink:0;
}

.mini-dot.mint {
  background:var(--mint);
}

.mini-dot.amber {
  background:var(--amber);
}

.mini-dot.gray {
  background:#7e8ea2;
}

.inline-separator {
  color:#45586d;
  margin:0 4px;
}

.panel {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  min-width:0;
  overflow:hidden;
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:19px 21px;
}

.panel-heading p:not(.eyebrow) {
  font-size:10px;
  line-height:1.6;
  color:var(--subtle);
  margin-top:4px;
}

.panel-heading>.icon {
  color:var(--subtle);
  width:17px;
  height:17px;
}

.panel-body {
  padding:0 21px 22px;
}

.panel-footer {
  border-top:1px solid var(--line);
  padding:11px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:10px;
  color:var(--subtle);
  flex-wrap:wrap;
}

.panel-footer>span,.panel-footer a {
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.panel-footer .icon {
  width:13px;
  height:13px;
}

.panel-footer a {
  color:var(--mint);
}

.overview-grid {
  display:grid;
  grid-template-columns:minmax(0,2.35fr) minmax(260px,1fr);
  gap:20px;
  margin-bottom:30px;
}

.performance-panel {
  display:flex;
  flex-direction:column;
}

.performance-panel>.panel-footer {
  margin-top:auto;
}

.range-control {
  display:flex;
  align-items:center;
  gap:2px;
  background:#0e1721;
  border:1px solid var(--line);
  border-radius:6px;
  padding:3px;
}

.range-control a {
  font-size:9px;
  min-width:29px;
  min-height:25px;
  display:grid;
  place-items:center;
  color:var(--subtle);
  border-radius:3px;
}

.range-control a.selected {
  color:var(--text);
  background:#2a3b4c;
}

.range-control a:hover {
  color:var(--mint);
}

.chart-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 20px 6px;
}

.chart-legend {
  display:flex;
  gap:15px;
  font-size:9px;
  color:var(--muted);
  flex-wrap:wrap;
}

.chart-legend span {
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.legend-line {
  width:13px;
  height:2px;
  display:inline-block;
  background:var(--mint);
}

.legend-line.benchmark {
  background:none;
  border-top:2px dashed #a2b1c0;
}

.candidate-picker {
  display:flex;
  align-items:center;
  gap:5px;
}

.candidate-picker select {
  background:#0f1924;
  border:1px solid var(--line);
  border-radius:5px;
  padding:5px 7px;
  font-size:9px;
  color:var(--muted);
  max-width:170px;
  min-height:31px;
}

.empty-state {
  min-height:190px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:26px 20px;
}

.performance-panel>.empty-state {
  flex:1;
  min-height:232px;
  background-image:linear-gradient(#25344630 1px,transparent 1px),linear-gradient(90deg,#25344620 1px,transparent 1px);
  background-size:100% 45px,90px 100%;
  margin:10px 20px 18px;
  border-radius:6px;
  background-position:center;
}

.empty-glyph {
  background:#1d2e3e;
  color:#8bacae;
  width:39px;
  height:39px;
  border-radius:11px;
  display:grid;
  place-items:center;
  border:1px solid #2a3f4a;
  margin-bottom:14px;
}

.empty-glyph .icon {
  width:20px;
  height:20px;
}

.empty-state h3 {
  font-size:12px;
  font-weight:550;
  color:#c5d1df;
  margin-bottom:7px;
}

.empty-state p {
  max-width:330px;
  color:var(--subtle);
  font-size:11px;
  line-height:1.8;
}

.observation-panel .panel-heading {
  padding-bottom:7px;
  flex-wrap:wrap;
  gap:8px;
}

.observation-panel h2 {
  font-size:14px;
}

.live-label {
  display:inline-flex;
  gap:5px;
  align-items:center;
  font-size:9px;
  color:var(--subtle);
}

.cohort-progress {
  padding:15px 21px;
}

.cohort-progress>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted);
}

.cohort-progress strong {
  color:var(--text);
  font-size:20px;
  font-weight:550;
}

.cohort-progress small {
  color:var(--subtle);
  font-size:11px;
  font-weight:400;
}

progress {
  appearance:none;
  display:block;
  border:0;
  height:5px;
  border-radius:6px;
  width:100%;
  margin-top:10px;
  background:#283748;
}

progress::-webkit-progress-bar {
  background:#283748;
  border-radius:6px;
}

progress::-webkit-progress-value {
  background:var(--mint);
  border-radius:6px;
}

progress::-moz-progress-bar {
  background:var(--mint);
  border-radius:6px;
}

.status-list {
  padding:0 21px 15px;
}

.status-list>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:7px 0;
  font-size:10px;
}

.status-list dt {
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:3px;
}

.status-list dd {
  font-variant-numeric:tabular-nums;
  color:#d8e3ef;
  font-size:11px;
}

.market-snapshot {
  border-top:1px solid var(--line);
  padding:17px 21px;
  background:#0f1925;
}

.market-label {
  font-size:10px;
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:550;
}

.market-label .icon {
  width:17px;
  height:17px;
  color:var(--amber);
}

.market-label>span {
  margin-left:auto;
  color:var(--subtle);
  font-size:8px;
  letter-spacing:1px;
}

.market-price {
  display:block;
  font-size:25px;
  font-weight:500;
  letter-spacing:-.5px;
  margin-top:9px;
}

.market-price small {
  font-size:9px;
  letter-spacing:0;
  color:var(--subtle);
  font-weight:400;
}

.market-pair {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:9px;
  color:var(--subtle);
  margin-top:6px;
}

.market-pair b {
  color:#b9c7d6;
  margin-left:5px;
  font-weight:400;
}

.market-snapshot>p {
  font-size:9px;
  color:var(--subtle);
  margin-top:10px;
}

.section-heading {
  margin:28px 0 17px;
}

.section-heading .eyebrow {
  font-size:8px;
  letter-spacing:1.4px;
  margin-bottom:5px;
  color:var(--subtle);
}

.section-heading h2 {
  font-size:19px;
  letter-spacing:-.5px;
}

.text-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  color:var(--mint);
}

.text-link .icon {
  width:14px;
  height:14px;
}

.text-link:hover {
  text-decoration:underline;
}

.family-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}

.family-card {
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:18px 19px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#121c28;
  transition:border-color .15s,background .15s;
}

.family-card:hover {
  border-color:#3a615c;
  background:#172832;
}

.family-code {
  display:inline-grid;
  place-items:center;
  min-width:37px;
  height:34px;
  border-radius:7px;
  background:#20332f;
  color:#93cfbc;
  border:1px solid #2a4940;
  font-size:10px;
  font-weight:650;
  letter-spacing:.5px;
}

.family-card-body {
  min-width:0;
  flex:1;
}

.family-card h3 {
  font-size:12px;
  margin:0 0 4px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.family-card p {
  color:var(--subtle);
  font-size:10px;
  line-height:1.7;
}

.family-card>.icon {
  height:14px;
  width:14px;
  color:var(--subtle);
  margin-top:9px;
}

.family-card-bottom {
  display:flex;
  gap:15px;
  align-items:center;
  font-size:9px;
  color:var(--muted);
  margin-top:10px;
}

.family-card-bottom>span {
  display:flex;
  align-items:center;
}

.control-label {
  font-size:7px;
  letter-spacing:.6px;
  color:#d9ba86;
  background:#352e22;
  border:1px solid #514333;
  border-radius:3px;
  padding:2px 4px;
  font-weight:550;
  white-space:nowrap;
}

.lower-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:24px;
}

.tag {
  font-size:8px;
  font-weight:550;
  letter-spacing:.5px;
  color:var(--subtle);
  border:1px solid var(--line-light);
  border-radius:4px;
  padding:4px 7px;
  display:inline-flex;
  white-space:nowrap;
}

.comparison-list {
  padding:0 20px;
}

.comparison-list>a {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
  border-top:1px solid var(--line);
  gap:15px;
}

.comparison-list strong {
  display:block;
  font-size:12px;
}

.comparison-list strong span {
  margin-left:5px;
  font-weight:400;
}

.panel-note {
  font-size:10px;
  line-height:1.8;
  color:var(--subtle);
  padding:6px 20px 20px;
}

.activity-list {
  padding:0 20px 16px;
}

.activity-list li {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
  border-top:1px solid var(--line);
  font-size:10px;
}

.activity-list a {
  color:var(--mint);
  font-weight:550;
}

.activity-list time {
  margin-left:auto;
  font-size:9px;
  color:var(--subtle);
}

.research-footnote {
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:10px;
  color:var(--subtle);
  line-height:1.9;
  margin-top:24px;
}

.research-footnote>.icon {
  width:14px;
  height:14px;
  margin-top:3px;
  color:#647c87;
}

.footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding-top:20px;
  padding-bottom:24px;
  font-size:9px;
  color:#8495a8;
  border-top:1px solid var(--line);
}

.footer>div {
  display:flex;
  align-items:center;
  gap:10px;
}

.footer-mark {
  font-size:13px;
  font-weight:700;
  color:#82a9a2;
  letter-spacing:-2px;
}

.footer-separator {
  margin:0 8px;
  color:#43566b;
}

.refresh-status {
  min-height:0;
  font-size:10px;
  color:var(--amber);
}

.refresh-status:not(:empty) {
  padding:9px 12px;
  border:1px solid #554733;
  background:#28231d;
  border-radius:6px;
  margin-bottom:16px;
}

.badge {
  font-size:9px;
  padding:4px 7px;
  border-radius:5px;
  display:inline-flex;
  gap:5px;
  align-items:center;
  white-space:nowrap;
  font-weight:500;
  line-height:1.3;
}

.badge.warning {
  color:#e5bf88;
  background:#332c21;
  border:1px solid #4c3e2c;
}

.badge.positive {
  color:#9cdac5;
  background:#203a31;
  border:1px solid #315445;
}

.badge.neutral {
  color:#a8b7c7;
  background:#233041;
  border:1px solid #324255;
}

.filter-panel {
  padding:16px;
  display:flex;
  align-items:flex-end;
  gap:11px;
  margin-bottom:17px;
}

.search-field {
  position:relative;
  flex:1;
  min-width:165px;
}

.search-field .icon {
  position:absolute;
  left:12px;
  top:12px;
  width:16px;
  height:16px;
  color:var(--subtle);
}

input,select {
  color:var(--text);
  background:#0d1722;
  border:1px solid #314254;
  border-radius:6px;
  padding:9px 11px;
  min-height:39px;
  font-size:11px;
}

input::placeholder {
  color:#8292a5;
}

.search-field input {
  width:100%;
  padding-left:37px;
}

.filter-select {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.filter-select label {
  font-size:9px;
  color:var(--subtle);
}

.filter-select select {
  padding-right:24px;
  max-width:205px;
  font-size:10px;
}

.filter-select.direction-select select {
  max-width:110px;
}

.registry-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:17px;
}

.filter-chips {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.filter-chip {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  color:var(--muted);
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:6px;
  min-height:33px;
}

.filter-chip span {
  font-size:9px;
  background:#263447;
  color:#adbbcc;
  padding:1px 5px;
  border-radius:4px;
  min-width:18px;
  text-align:center;
}

.filter-chip.selected {
  background:#1b3733;
  border-color:#3c6154;
  color:#a7e3d1;
}

.filter-chip.selected span {
  background:#2c5145;
  color:#bde8d7;
}

.filter-chip:hover {
  border-color:#466276;
}

.results-summary {
  font-size:10px;
  color:var(--subtle);
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
}

.results-summary strong {
  color:var(--text);
}

.text-button {
  border:0;
  background:transparent;
  color:var(--mint);
  font-size:10px;
  padding:7px 0 7px 7px;
}

.family-groups {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.family-group>summary {
  display:flex;
  align-items:center;
  gap:13px;
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  min-height:80px;
}

.family-group>summary::-webkit-details-marker {
  display:none;
}

.family-group>summary>.icon {
  width:15px;
  height:15px;
  color:var(--subtle);
  transition:transform .15s;
}

.family-group:not([open])>summary>.icon {
  transform:rotate(-90deg);
}

.group-title {
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
  min-width:0;
}

.group-title strong {
  font-size:12px;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}

.group-title small {
  font-size:10px;
  color:var(--subtle);
  font-weight:400;
}

.group-count {
  font-size:9px;
  color:var(--subtle);
  white-space:nowrap;
}

.desktop-table {
  border-top:1px solid var(--line);
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:11px;
  line-height:1.6;
}

thead {
  background:#172433;
}

thead th {
  color:#94a6ba;
  font-size:8px;
  font-weight:550;
  letter-spacing:.3px;
  text-transform:uppercase;
  padding:11px 12px;
  white-space:nowrap;
}

thead th a {
  display:inline-flex;
  align-items:center;
  gap:3px;
  min-height:23px;
}

thead th a:hover {
  color:var(--mint);
}

thead .icon {
  height:10px;
  width:10px;
  color:#7890a5;
}

td,tbody th {
  padding:14px 12px;
  border-top:1px solid var(--line);
  font-weight:400;
}

tbody tr:hover {
  background:#172838;
}

.strategy-table {
  font-size:10px;
  table-layout:auto;
}

.strategy-table th:first-child {
  padding-left:18px;
}

.strategy-table td:last-child {
  padding-right:13px;
}

.strategy-table .small {
  font-size:9px;
}

.strategy-table td {
  white-space:nowrap;
}

.strategy-id {
  font-size:11px;
  letter-spacing:.2px;
  font-weight:600;
  color:var(--mint);
}

.strategy-id:hover {
  text-decoration:underline;
}

.table-family {
  display:block;
  color:var(--subtle);
  font-size:8px;
  margin-top:3px;
}

.numeric {
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.numeric a {
  justify-content:flex-end;
}

.timeframe {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10px;
  color:#c3d1df;
  white-space:nowrap;
  background:#202e3e;
  padding:3px 6px;
  border-radius:4px;
}

.row-arrow {
  width:28px;
  height:32px;
  display:inline-grid;
  place-items:center;
  color:var(--subtle);
}

.row-arrow .icon {
  width:13px;
  height:13px;
}

.row-arrow:hover {
  color:var(--mint);
}

.mobile-strategies {
  display:none;
}

.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-top:22px;
  font-size:10px;
  color:var(--subtle);
  flex-wrap:wrap;
}

.pagination form,.pagination nav {
  display:flex;
  align-items:center;
  gap:10px;
}

.pagination select {
  min-height:32px;
  padding:4px 8px;
  font-size:10px;
}

.empty-action {
  text-align:center;
  padding:0 20px 25px;
}

.back-link {
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--subtle);
  font-size:10px;
  margin-bottom:22px;
}

.back-link .icon {
  width:13px;
  height:13px;
}

.back-link:hover {
  color:var(--mint);
}

.detail-tags {
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:-10px;
  margin-bottom:21px;
}

.cause-note {
  display:flex;
  gap:10px;
  align-items:flex-start;
  border-left:2px solid #8b7452;
  padding:7px 13px;
  background:#1c2022;
  margin-bottom:20px;
  color:#aab7c5;
  font-size:11px;
}

.cause-note .icon {
  width:15px;
  height:15px;
  color:var(--amber);
  margin-top:2px;
}

.cause-note strong {
  display:block;
  color:#ccdae6;
  font-size:10px;
  margin-bottom:3px;
}

.detail-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:20px;
  margin-top:20px;
}

.detail-grid>.panel {
  min-width:0;
}

.detail-grid .empty-state {
  min-height:250px;
}

.chart-legend.standalone {
  padding:0 21px 5px;
}

.plot {
  padding:0 18px 10px;
  min-width:0;
}

.plot>svg {
  display:block;
  width:100%;
  height:auto;
  min-height:170px;
  max-height:310px;
}

.chart-grid {
  stroke:#2a3a4d;
  stroke-width:1;
  stroke-dasharray:3 5;
}

.chart-label {
  fill:#91a3b8;
  font-size:11px;
  font-family:inherit;
}

.equity-line {
  stroke:var(--mint);
  stroke-width:2.5;
  fill:none;
  stroke-linejoin:round;
}

.benchmark-line {
  stroke:#a4b3c7;
  stroke-width:1.6;
  fill:none;
  stroke-dasharray:6 5;
}

.drawdown-line {
  stroke:var(--amber);
  stroke-width:2;
  fill:none;
}

.single-point {
  fill:var(--mint);
}

.plot figcaption {
  font-size:9px;
  color:var(--subtle);
  padding:3px 12px;
  line-height:1.7;
}

.chart-data {
  margin:10px 10px 4px;
  font-size:10px;
  color:var(--muted);
}

.chart-data summary {
  cursor:pointer;
  padding:6px 0;
  color:var(--mint);
  min-height:30px;
}

.chart-data table {
  font-size:10px;
}

.data-scroll {
  overflow:auto;
  max-width:100%;
  overscroll-behavior-x:contain;
}

.chart-data .data-scroll {
  max-height:270px;
}

.chart-data td {
  white-space:nowrap;
  padding:8px 10px;
}

.historical-info {
  padding:13px 16px;
  border:1px solid #354b65;
  border-radius:8px;
  background:#142537;
  margin-bottom:17px;
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:10px;
  color:#abbfd4;
}

.hypothesis {
  font-size:11px;
  color:var(--muted);
  line-height:1.9;
  overflow-wrap:anywhere;
}

.rule-box {
  padding:15px;
  margin-top:16px;
  background:#0e1822;
  border:1px solid var(--line-light);
  border-radius:7px;
}

.field-label {
  font-size:9px;
  letter-spacing:.3px;
  display:block;
  color:var(--subtle);
  margin-bottom:5px;
}

.rule-box>p {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;
  line-height:1.95;
  color:#d2e2ec;
  overflow-wrap:anywhere;
}

.definition-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px;
  margin:22px 0;
}

.definition-grid dt {
  font-size:9px;
  color:var(--subtle);
  margin-bottom:4px;
}

.definition-grid dd {
  font-size:10px;
  color:#c6d3df;
}

.key-values>div {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
  padding:11px 0;
  border-bottom:1px solid #25324288;
  font-size:11px;
  line-height:1.6;
}

.key-values>div:first-child {
  padding-top:1px;
}

.key-values>div:last-child {
  border-bottom:0;
}

.key-values dt {
  color:var(--subtle);
  flex-shrink:0;
  max-width:50%;
  font-size:10px;
}

.key-values dd {
  text-align:right;
  font-size:10px;
  overflow-wrap:anywhere;
}

.provenance-panel .field-label {
  margin-top:16px;
}

.hash {
  display:block;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:9px;
  overflow-wrap:anywhere;
  background:#0d1722;
  padding:10px;
  border:1px solid var(--line);
  border-radius:5px;
  color:#a3c6c4;
  margin-bottom:10px;
}

.definitions {
  margin-top:15px;
  border-top:1px solid var(--line);
  padding-top:8px;
  color:var(--muted);
  font-size:10px;
}

.definitions summary {
  padding:7px 0;
  cursor:pointer;
  color:var(--mint);
  min-height:35px;
}

.definitions p {
  line-height:1.9;
  margin:8px 0;
}

.sample-warning {
  display:flex;
  gap:9px;
  padding:12px;
  background:#24241f;
  border:1px solid #45422e;
  border-radius:7px;
  margin-top:13px;
  font-size:10px;
  color:#d2bc95;
  line-height:1.8;
}

.sample-warning .icon {
  width:15px;
  height:15px;
  margin-top:2px;
}

.ledger-panel,.signal-panel {
  margin-top:20px;
}

.ledger-group-title {
  font-size:10px;
  color:#b5c8dc;
  padding:11px 21px;
  background:#1b2c3e;
  border-top:1px solid var(--line);
}

.ledger-group-title span {
  font-weight:400;
  font-size:9px;
  color:var(--subtle);
  margin-left:8px;
}

.ledger-table,.signal-table {
  font-size:10px;
}

.ledger-table td,.signal-table td {
  font-size:10px;
  vertical-align:top;
}

.ledger-table td {
  white-space:nowrap;
}

.signal-table td {
  max-width:250px;
  overflow-wrap:anywhere;
  min-width:140px;
}

.signal-table th {
  min-width:120px;
}

.system-status {
  display:flex;
  align-items:center;
  gap:20px;
  padding:23px;
  margin-bottom:20px;
}

.system-status-icon {
  width:49px;
  height:49px;
  border:1px solid #514832;
  background:#2c281f;
  border-radius:13px;
  color:var(--amber);
  display:grid;
  place-items:center;
  flex-shrink:0;
}

.system-status-icon.healthy {
  color:var(--mint);
  background:#1b3a31;
  border-color:#2d5846;
}

.system-status-icon .icon {
  width:25px;
  height:25px;
}

.system-status .eyebrow {
  font-size:8px;
  color:var(--subtle);
  margin-bottom:6px;
}

.system-status h2 {
  font-size:19px;
}

.system-status p:not(.eyebrow) {
  font-size:10px;
  color:var(--muted);
  margin-top:6px;
}

.system-status>.badge {
  margin-left:auto;
  flex-shrink:0;
}

.health-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
  margin-bottom:20px;
}

.health-card {
  padding:20px;
  position:relative;
}

.health-card-icon {
  position:absolute;
  right:18px;
  top:21px;
  color:#6f8898;
}

.health-card-icon .icon {
  width:16px;
  height:16px;
}

.health-card .field-label {
  padding-right:24px;
}

.health-card>strong {
  display:block;
  font-size:18px;
  margin-top:15px;
  font-weight:500;
}

.health-card>p {
  font-size:9px;
  margin-top:7px;
  color:var(--subtle);
}

.system-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:20px;
}

.coverage-list {
  padding:0 20px 6px;
}

.coverage-row {
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 0;
  border-top:1px solid var(--line);
}

.coverage-row:first-child {
  border-top:0;
}

.coverage-row>.timeframe {
  min-width:45px;
  text-align:center;
}

.coverage-row>div {
  flex:1;
  min-width:0;
}

.coverage-row strong {
  display:block;
  font-size:10px;
  font-weight:400;
}

.coverage-row small {
  font-size:9px;
  color:var(--subtle);
  display:block;
  margin-top:3px;
}

.coverage-row>.badge {
  font-size:8px;
}

.commit {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}

.warning-message {
  padding:18px 22px 24px;
  font-size:12px;
  color:var(--amber);
  overflow-wrap:anywhere;
  line-height:1.8;
}

.login-shell {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100svh;
}

.login-intro {
  position:relative;
  display:flex;
  flex-direction:column;
  padding:50px 65px;
  background:radial-gradient(ellipse at 0% 90%,#173c373b,transparent 70%),#101b27;
  border-right:1px solid var(--line);
}

.login-story {
  margin:auto 0;
  padding:75px 0;
  max-width:480px;
}

.login-story>.eyebrow {
  font-size:9px;
  letter-spacing:1.6px;
  margin-bottom:20px;
}

.login-story h1 {
  font-size:clamp(52px,5.8vw,84px);
  line-height:1.12;
  letter-spacing:-3px;
  font-weight:550;
}

.login-story h1 span {
  color:var(--mint);
}

.login-story>p:not(.eyebrow) {
  max-width:350px;
  font-size:13px;
  line-height:1.9;
  color:var(--muted);
  margin-top:30px;
}

.login-stats {
  display:flex;
  gap:40px;
  margin-top:46px;
  padding-top:27px;
  border-top:1px solid var(--line-light);
  max-width:390px;
}

.login-stats strong {
  font-size:24px;
  font-weight:500;
  display:block;
  letter-spacing:-.6px;
}

.login-stats span {
  font-size:9px;
  color:var(--subtle);
  display:block;
  margin-top:5px;
}

.login-foot {
  font-size:10px;
  letter-spacing:.4px;
  color:var(--subtle);
}

.login-side {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  padding:60px 35px;
}

.login-card {
  width:100%;
  max-width:350px;
}

.login-lock {
  color:var(--mint);
  width:45px;
  height:45px;
  border:1px solid #31534a;
  background:#17332c;
  border-radius:12px;
  display:grid;
  place-items:center;
  margin-bottom:29px;
}

.login-lock .icon {
  width:23px;
  height:23px;
}

.login-card h2 {
  font-size:26px;
  letter-spacing:-.8px;
  font-weight:600;
}

.login-card>p:not(.eyebrow):not(.login-note) {
  font-size:12px;
  color:var(--muted);
  margin-top:9px;
}

.login-card form {
  display:flex;
  flex-direction:column;
  margin-top:32px;
}

.login-card label {
  font-size:11px;
  color:#bac7d5;
  margin:0 0 8px;
}

.login-card input {
  min-height:46px;
  font-size:12px;
  padding:12px 13px;
  margin-bottom:21px;
  background:#131f2c;
}

.login-submit {
  width:100%;
  min-height:46px;
  font-size:12px;
  justify-content:space-between;
  margin-top:5px;
  padding:12px 15px;
}

.login-note {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:10px;
  color:var(--subtle);
  margin-top:21px;
}

.login-note .icon {
  width:12px;
  height:12px;
}

.login-bottom {
  font-size:9px;
  color:var(--subtle);
  text-align:center;
  line-height:1.9;
  margin-top:70px;
  max-width:320px;
}

.login-error {
  margin-top:20px;
  margin-bottom:0;
}

.error-page {
  max-width:650px;
  margin:12vh auto;
  padding:24px;
}

.error-page .identity {
  margin-bottom:65px;
}

.error-page h1 {
  margin-bottom:20px;
}

.error-page>p:not(.eyebrow) {
  color:var(--muted);
  font-size:13px;
  margin-bottom:25px;
  line-height:1.9;
}

.error-page>.text-link {
  margin-left:20px;
}

.error-page>.button {
  margin-bottom:15px;
}

@media(min-width:1400px) {
  .strategy-table td,.strategy-table th {
    padding-left:14px;
    padding-right:14px;
  }

}

@media(max-width:1190px) {
  .shell {
    padding-left:26px;
    padding-right:26px;
  }

  .topbar-inner {
    gap:30px;
  }

  .desktop-table {
    display:none;
  }

  .mobile-strategies {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    border-top:1px solid var(--line);
  }

  .strategy-card {
    display:block;
    padding:18px;
    border-bottom:1px solid var(--line);
    min-width:0;
  }

  .strategy-card:nth-child(odd) {
    border-right:1px solid var(--line);
  }

  .strategy-card:hover {
    background:#172838;
  }

  .strategy-card-top {
    display:flex;
    align-items:center;
    gap:8px;
  }

  .strategy-card-top>strong {
    color:var(--mint);
    font-size:13px;
  }

  .strategy-card-top .badge {
    margin-left:auto;
  }

  .strategy-card-top>.icon {
    width:13px;
    height:13px;
    color:var(--subtle);
  }

  .strategy-card-sub {
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:10px;
    font-size:9px;
    color:var(--muted);
  }

  .card-metrics {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-top:16px;
  }

  .card-metrics dt {
    font-size:8px;
    color:var(--subtle);
    margin-bottom:6px;
  }

  .card-metrics dd {
    font-size:12px;
    font-variant-numeric:tabular-nums;
  }

  .card-reason {
    font-size:9px;
    color:var(--subtle);
    margin-top:15px;
    line-height:1.8;
    overflow-wrap:anywhere;
  }

  .card-updated {
    display:block;
    font-size:8px;
    color:#8497ad;
    margin-top:9px;
  }

  .filter-panel {
    flex-wrap:wrap;
  }

  .search-field {
    flex-basis:100%;
  }

  .filter-select {
    flex:1;
  }

  .filter-select select {
    max-width:none;
    width:100%;
  }

  .overview-grid {
    grid-template-columns:minmax(0,1.9fr) minmax(245px,1fr);
  }

  .chart-toolbar {
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }

  .candidate-picker {
    width:100%;
  }

  .candidate-picker select {
    max-width:none;
    flex:1;
  }

  .performance-panel>.empty-state {
    min-height:205px;
  }

  .health-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .login-intro {
    padding:40px;
  }

  .login-stats {
    gap:27px;
  }

}

@media(max-width:900px) {
  .topbar-inner {
    height:68px;
    gap:25px;
  }

  .header-tools {
    gap:9px;
  }

  .primary-nav a {
    padding:9px 11px;
  }

  .primary-nav a .icon {
    display:none;
  }

  .paper-badge {
    font-size:8px;
    padding:5px;
  }

  .context-right {
    gap:15px;
  }

  .kpi-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .kpi {
    min-height:125px;
  }

  .overview-grid {
    grid-template-columns:minmax(0,1fr);
    gap:16px;
  }

  .observation-panel {
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto;
  }

  .observation-panel .panel-heading {
    grid-column:1;
    grid-row:1;
    padding-top:17px;
  }

  .cohort-progress {
    grid-column:1;
    grid-row:2;
    padding-top:5px;
    padding-bottom:5px;
  }

  .status-list {
    grid-column:1;
    grid-row:3;
    padding-bottom:18px;
  }

  .market-snapshot {
    grid-column:2;
    grid-row:1 / 4;
    border-top:0;
    border-left:1px solid var(--line);
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .market-label>span {
    margin-left:15px;
  }

  .performance-panel>.empty-state {
    min-height:230px;
  }

  .chart-toolbar {
    flex-direction:row;
    align-items:center;
  }

  .candidate-picker {
    max-width:260px;
  }

  .family-grid {
    gap:10px;
  }

  .family-card {
    padding:15px 14px;
    gap:10px;
  }

  .family-card p {
    font-size:9px;
  }

  .detail-grid,.system-grid {
    grid-template-columns:1fr;
    gap:16px;
  }

  .lower-grid {
    gap:16px;
  }

  .system-status {
    gap:15px;
    padding:20px;
  }

  .system-status h2 {
    font-size:17px;
  }

  .system-status>.badge {
    font-size:8px;
  }

  .login-shell {
    grid-template-columns:.95fr 1fr;
  }

  .login-intro {
    padding:35px 28px;
  }

  .login-story h1 {
    font-size:58px;
  }

  .login-stats {
    gap:23px;
  }

  .login-stats span {
    font-size:8px;
  }

  .login-side {
    padding:45px 28px;
  }

  .footer {
    font-size:8px;
  }

  .registry-tools {
    align-items:flex-start;
  }

  .filter-chips {
    gap:5px;
  }

  .filter-chip {
    font-size:9px;
    padding:6px 8px;
  }

  .results-summary {
    padding-top:3px;
  }

  .group-title small {
    max-width:460px;
  }

  .plot>svg {
    min-height:155px;
  }

  .detail-grid .plot>svg {
    max-height:310px;
  }

}

@media(max-width:640px) {
  .shell {
    padding-left:18px;
    padding-right:18px;
  }

  .topbar-inner {
    height:64px;
    gap:10px;
    position:relative;
    flex-wrap:wrap;
    padding-bottom:0;
  }

  .identity {
    gap:9px;
  }

  .identity strong {
    font-size:12px;
  }

  .identity small {
    font-size:7px;
    letter-spacing:1.2px;
  }

  .brand-mark {
    width:31px;
    height:31px;
    border-radius:8px;
    font-size:21px;
  }

  .brand-mark span {
    right:6px;
    font-size:20px;
  }

  .version-tag {
    font-size:9px;
    margin-left:5px;
  }

  .header-tools {
    gap:5px;
  }

  .paper-badge {
    font-size:7px;
    letter-spacing:.3px;
    padding:4px 5px;
    gap:4px;
  }

  .paper-badge .icon {
    width:10px;
    height:10px;
  }

  .icon-button {
    height:36px;
    width:30px;
  }

  .icon-button .icon {
    height:15px;
    width:15px;
  }

  .primary-nav {
    order:3;
    width:100%;
    gap:6px;
    position:absolute;
    top:64px;
    left:0;
    padding:7px 18px;
    background:#101925;
    border-bottom:1px solid var(--line);
    justify-content:center;
    height:48px;
  }

  .primary-nav a {
    display:flex;
    justify-content:center;
    gap:7px;
    padding:7px 10px;
    font-size:11px;
    flex:1;
    min-height:32px;
  }

  .primary-nav a .icon {
    display:block;
    width:13px;
    height:13px;
  }

  .topbar {
    margin-bottom:48px;
  }

  .context-inner {
    height:37px;
    font-size:9px;
    gap:6px;
  }

  .context-inner>span {
    gap:5px;
  }

  .context-inner strong {
    font-size:9px;
  }

  .context-separator {
    margin:0 1px;
  }

  .desktop-context {
    display:none;
  }

  .context-right {
    gap:0;
  }

  .connection-state {
    font-size:8px;
    gap:5px;
  }

  #utc-clock {
    display:none;
  }

  .main-content {
    padding-top:25px;
  }

  .page-heading {
    gap:12px;
    margin-bottom:20px;
    align-items:flex-start;
  }

  .eyebrow {
    font-size:8px;
    letter-spacing:1.4px;
    margin-bottom:8px;
  }

  h1 {
    font-size:25px;
    letter-spacing:-.8px;
    line-height:1.25;
  }

  .page-description {
    font-size:11px;
    line-height:1.85;
    margin-top:9px;
  }

  .refresh-button {
    padding:7px 9px;
    min-height:34px;
    font-size:10px;
    align-self:flex-start;
    margin-top:22px;
    gap:5px;
  }

  .refresh-button .icon {
    width:12px;
    height:12px;
  }

  .notice {
    font-size:10px;
    padding:12px;
    gap:9px;
    margin-bottom:20px;
    flex-wrap:wrap;
    line-height:1.85;
  }

  .notice>.icon {
    width:15px;
    height:15px;
  }

  .notice>div {
    flex:1;
    min-width:0;
  }

  .notice-meta {
    font-size:9px;
    margin-top:5px;
  }

  .notice-link {
    margin-left:24px;
    font-size:9px;
    padding-top:0;
  }

  .mode-row {
    gap:10px;
    align-items:flex-start;
    flex-direction:column;
    margin-bottom:15px;
  }

  .mode-row>.microcopy {
    font-size:9px;
    margin-left:1px;
  }

  .segmented a {
    min-height:32px;
    padding:6px 13px;
    font-size:10px;
  }

  .kpi-grid {
    grid-template-columns:1fr;
    gap:10px;
    margin-bottom:20px;
  }

  .kpi {
    min-height:112px;
    padding:15px 17px;
  }

  .kpi-value {
    font-size:29px;
    margin-top:7px;
  }

  .kpi-top {
    font-size:11px;
  }

  .kpi p {
    font-size:9px;
    margin-top:3px;
  }

  .kpi-unit {
    font-size:12px;
  }

  .kpi-top .icon {
    height:16px;
    width:16px;
  }

  .panel-heading {
    padding:17px 16px;
    align-items:center;
    gap:9px;
  }

  .panel-heading h2 {
    font-size:14px;
  }

  .panel-heading p:not(.eyebrow) {
    font-size:9px;
  }

  .range-control {
    padding:2px;
    flex-shrink:0;
  }

  .range-control a {
    min-width:25px;
    min-height:27px;
    font-size:8px;
  }

  .chart-toolbar {
    padding:0 16px 7px;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .chart-legend {
    font-size:8px;
    gap:15px;
  }

  .candidate-picker {
    width:100%;
    max-width:none;
  }

  .candidate-picker select {
    font-size:10px;
    min-height:34px;
  }

  .candidate-picker .button {
    min-height:34px;
  }

  .performance-panel>.empty-state {
    margin:10px 14px 16px;
    min-height:220px;
    padding:25px 12px;
  }

  .empty-state h3 {
    font-size:11px;
  }

  .empty-state p {
    font-size:10px;
    max-width:280px;
  }

  .empty-state {
    padding:24px 16px;
    min-height:190px;
  }

  .panel-footer {
    padding:12px 15px;
    font-size:9px;
    gap:9px;
    line-height:1.8;
  }

  .overview-grid {
    margin-bottom:24px;
    gap:16px;
  }

  .observation-panel {
    display:block;
  }

  .observation-panel .panel-heading {
    padding:17px 16px 9px;
    display:flex;
  }

  .cohort-progress {
    padding:10px 16px;
  }

  .status-list {
    padding:0 16px 16px;
  }

  .status-list>div {
    padding:8px 0;
    font-size:10px;
  }

  .market-snapshot {
    border-left:0;
    border-top:1px solid var(--line);
    padding:17px 16px;
  }

  .market-label>span {
    margin-left:auto;
  }

  .market-price {
    font-size:27px;
  }

  .market-pair {
    font-size:10px;
  }

  .section-heading {
    gap:13px;
    margin:26px 0 16px;
    align-items:center;
  }

  .section-heading h2 {
    font-size:17px;
    max-width:235px;
    line-height:1.5;
  }

  .section-heading .text-link {
    font-size:9px;
    gap:3px;
    white-space:nowrap;
  }

  .section-heading .text-link .icon {
    width:12px;
  }

  .family-grid {
    grid-template-columns:1fr;
    gap:9px;
  }

  .family-card {
    padding:16px;
    gap:13px;
  }

  .family-card h3 {
    font-size:12px;
  }

  .family-card p {
    font-size:10px;
    line-height:1.8;
  }

  .family-code {
    min-width:35px;
    height:33px;
  }

  .family-card-bottom {
    font-size:9px;
    margin-top:9px;
  }

  .lower-grid {
    grid-template-columns:1fr;
    margin-top:18px;
    gap:16px;
  }

  .research-footnote {
    font-size:9px;
    margin-top:21px;
  }

  .footer {
    flex-direction:column;
    align-items:flex-start;
    gap:11px;
    padding-top:17px;
    padding-bottom:20px;
    font-size:8px;
  }

  .filter-panel {
    padding:13px;
    gap:12px;
  }

  .search-field {
    min-width:100%;
    flex-basis:100%;
  }

  .search-field input {
    min-height:43px;
    font-size:11px;
  }

  .search-field .icon {
    top:13px;
  }

  .filter-select {
    min-width:calc(50% - 6px);
    flex:1;
  }

  .filter-select select {
    min-height:42px;
    font-size:10px;
  }

  .filter-select.direction-select {
    min-width:calc(50% - 6px);
  }

  .filter-select.direction-select select {
    max-width:none;
  }

  .filter-panel>.button {
    flex:1;
    min-height:42px;
  }

  .filter-select label {
    font-size:9px;
  }

  .registry-tools {
    flex-direction:column;
    gap:12px;
    margin-bottom:14px;
  }

  .filter-chips {
    width:100%;
    gap:5px;
  }

  .filter-chip {
    font-size:9px;
    min-height:35px;
    padding:6px 7px;
    gap:5px;
    flex:1;
    justify-content:center;
    white-space:nowrap;
  }

  .filter-chip span {
    font-size:8px;
    padding:1px 4px;
    min-width:15px;
  }

  .results-summary {
    width:100%;
    font-size:10px;
    gap:7px;
  }

  .results-summary .text-button {
    margin-left:auto;
    padding-right:1px;
    font-size:10px;
  }

  .family-group>summary {
    padding:15px 13px;
    gap:10px;
    min-height:78px;
    flex-wrap:wrap;
  }

  .group-title strong {
    font-size:11px;
    gap:6px;
  }

  .group-title small {
    font-size:9px;
    line-height:1.7;
  }

  .group-title .control-label {
    font-size:6px;
  }

  .group-count {
    display:none;
  }

  .family-group>summary>.icon {
    width:13px;
    height:13px;
  }

  .mobile-strategies {
    display:block;
  }

  .strategy-card {
    padding:17px 14px;
    border-right:0!important;
  }

  .strategy-card:last-child {
    border-bottom:0;
  }

  .strategy-card-top>strong {
    font-size:13px;
  }

  .strategy-card-top .badge {
    font-size:8px;
    padding:4px 6px;
  }

  .strategy-card-sub {
    font-size:9px;
    line-height:1.6;
    flex-direction:column;
    gap:3px;
  }

  .strategy-card-sub>span:last-child {
    font-size:8px;
    color:var(--subtle);
  }

  .card-metrics {
    gap:8px;
    margin-top:13px;
  }

  .card-metrics dt {
    font-size:7px;
    line-height:1.5;
    white-space:nowrap;
  }

  .card-metrics dd {
    font-size:11px;
  }

  .card-reason {
    font-size:9px;
    line-height:1.9;
    margin-top:13px;
  }

  .card-updated {
    font-size:8px;
    margin-top:8px;
  }

  .pagination {
    gap:15px;
    font-size:9px;
  }

  .pagination form {
    margin-left:auto;
    gap:7px;
  }

  .pagination nav {
    width:100%;
    justify-content:center;
  }

  .pagination select {
    font-size:10px;
    min-height:36px;
  }

  .pagination .button {
    min-height:36px;
  }

  .back-link {
    font-size:10px;
    margin-bottom:19px;
  }

  .detail-tags {
    gap:6px;
    margin-top:-6px;
    margin-bottom:18px;
  }

  .detail-tags .badge {
    font-size:9px;
  }

  .detail-tags .tag {
    font-size:7px;
  }

  .cause-note {
    font-size:10px;
    padding:9px 11px;
    margin-bottom:18px;
  }

  .cause-note strong {
    font-size:9px;
  }

  .detail-grid {
    gap:16px;
    margin-top:16px;
  }

  .panel-body {
    padding:0 16px 18px;
  }

  .hypothesis {
    font-size:10px;
    line-height:1.9;
  }

  .rule-box {
    padding:13px;
    margin-top:13px;
  }

  .rule-box>p {
    font-size:10px;
    line-height:2;
  }

  .definition-grid {
    grid-template-columns:1fr;
    gap:14px;
    margin:19px 0;
  }

  .definition-grid dt {
    font-size:9px;
  }

  .definition-grid dd {
    font-size:10px;
  }

  .key-values>div {
    padding:12px 0;
    gap:12px;
  }

  .key-values dt,.key-values dd {
    font-size:9px;
  }

  .key-values dt {
    max-width:45%;
  }

  .hash {
    font-size:9px;
    padding:9px;
  }

  .detail-grid .empty-state {
    min-height:220px;
  }

  .plot {
    padding:0 7px 10px;
  }

  .plot>svg {
    min-height:160px;
    width:100%;
  }

  .plot figcaption {
    font-size:8px;
    padding:3px 7px;
  }

  .chart-label {
    font-size:14px;
  }

  .chart-data {
    font-size:9px;
  }

  .chart-data summary {
    min-height:36px;
    padding-top:10px;
  }

  .chart-legend.standalone {
    padding:0 16px 4px;
  }

  .ledger-panel,.signal-panel {
    margin-top:16px;
  }

  .ledger-panel .panel-heading {
    align-items:flex-start;
  }

  .ledger-panel .panel-heading>div {
    flex:1;
  }

  .ledger-panel .segmented {
    margin-top:1px;
  }

  .segmented.compact a {
    padding:3px 7px;
    font-size:9px;
    min-height:30px;
  }

  .ledger-group-title {
    padding:10px 16px;
  }

  .ledger-table th,.ledger-table td,.signal-table th,.signal-table td {
    font-size:9px;
    padding:12px;
  }

  .data-scroll {
    scrollbar-width:thin;
  }

  .system-status {
    padding:17px;
    gap:12px;
    flex-wrap:wrap;
  }

  .system-status-icon {
    width:38px;
    height:38px;
    border-radius:10px;
  }

  .system-status-icon .icon {
    width:21px;
    height:21px;
  }

  .system-status>div:nth-child(2) {
    flex:1;
    min-width:190px;
  }

  .system-status h2 {
    font-size:16px;
  }

  .system-status .eyebrow {
    font-size:7px;
    letter-spacing:1px;
  }

  .system-status p:not(.eyebrow) {
    font-size:9px;
    line-height:1.8;
  }

  .system-status>.badge {
    margin-left:50px;
    font-size:8px;
  }

  .health-grid {
    grid-template-columns:1fr;
    gap:10px;
    margin-bottom:16px;
  }

  .health-card {
    padding:17px;
  }

  .health-card>strong {
    font-size:18px;
    margin-top:10px;
  }

  .health-card>p {
    font-size:9px;
  }

  .health-card-icon {
    top:17px;
    right:17px;
  }

  .health-card .field-label {
    font-size:10px;
  }

  .system-grid {
    gap:16px;
    margin-bottom:16px;
  }

  .coverage-list {
    padding:0 14px 4px;
  }

  .coverage-row {
    gap:9px;
    padding:14px 0;
    flex-wrap:wrap;
  }

  .coverage-row>div {
    min-width:160px;
  }

  .coverage-row>.timeframe {
    font-size:9px;
    min-width:40px;
  }

  .coverage-row strong {
    font-size:9px;
    overflow-wrap:anywhere;
  }

  .coverage-row small {
    font-size:8px;
  }

  .coverage-row .badge {
    font-size:7px;
    padding:4px 5px;
  }

  .system-grid .panel-footer {
    font-size:8px;
  }

  .login-shell {
    grid-template-columns:1fr;
  }

  .login-intro {
    padding:27px 23px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .login-story {
    padding:34px 0 28px;
    max-width:none;
  }

  .login-story h1 {
    font-size:45px;
    line-height:1.1;
    letter-spacing:-1.7px;
  }

  .login-story h1 br {
    display:none;
  }

  .login-story h1 br:after {
    content:' ';
  }

  .login-story h1 span {
    display:block;
  }

  .login-story>.eyebrow {
    font-size:7px;
    letter-spacing:1.3px;
    margin-bottom:13px;
  }

  .login-story>p:not(.eyebrow) {
    font-size:11px;
    max-width:300px;
    margin-top:17px;
  }

  .login-stats {
    margin-top:23px;
    padding-top:18px;
    gap:38px;
    max-width:none;
  }

  .login-stats strong {
    font-size:20px;
  }

  .login-stats span {
    font-size:8px;
  }

  .login-foot {
    font-size:8px;
  }

  .login-side {
    padding:32px 24px 30px;
    align-items:stretch;
  }

  .login-card {
    max-width:440px;
    margin:auto;
  }

  .login-lock {
    display:none;
  }

  .login-card .eyebrow {
    font-size:8px;
  }

  .login-card h2 {
    font-size:24px;
  }

  .login-card>p:not(.eyebrow):not(.login-note) {
    font-size:11px;
    margin-top:8px;
  }

  .login-card form {
    margin-top:25px;
  }

  .login-card input {
    min-height:46px;
    font-size:14px;
  }

  .login-card label {
    font-size:11px;
  }

  .login-submit {
    min-height:46px;
    font-size:12px;
  }

  .login-note {
    font-size:9px;
  }

  .login-bottom {
    margin:29px auto 0;
    font-size:8px;
  }

  .login-error {
    font-size:10px;
  }

  .login-error>.icon {
    display:none;
  }

  .error-page {
    margin:6vh auto;
    padding:25px;
  }

  .error-page .identity {
    margin-bottom:45px;
  }

  .error-page h1 {
    font-size:28px;
  }

  .error-page>.text-link {
    margin-left:0;
    display:flex;
  }

  .error-page>p:not(.eyebrow) {
    font-size:12px;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }

  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
  }

}

@media print {
  .topbar,.context-bar,.refresh-button,.filter-panel,.footer,.pagination,.notice-link,.range-control {
    display:none!important;
  }

  body {
    background:white;
    color:#111;
  }

  .panel,.kpi {
    background:white;
    border-color:#ccc;
    break-inside:avoid;
  }

  .main-content {
    padding:0;
  }

  .family-group:not([open])>* {
    display:block;
  }

  .muted,.microcopy,.field-label {
    color:#555;
  }

  .desktop-table {
    display:block;
  }

  .mobile-strategies {
    display:none;
  }

  .research-footnote {
    color:#444;
  }

}

/* Keep the health link below the notice copy on narrow screens. */
@media(max-width:640px) {
  .notice-link {
    flex-basis:calc(100% - 24px);
  }

  .notice>div {
    flex-basis:calc(100% - 28px);
  }

}

.version-cell {
  max-width:95px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.strategy-card-sub>span {
  overflow-wrap:anywhere;
}

@media(max-width:640px) {
  .range-control a {
    min-height:32px;
  }

  .filter-chip,.primary-nav a {
    min-height:36px;
  }

  .back-link,.text-link {
    min-height:32px;
  }

  .empty-state h3 {
    font-size:12px;
  }

  .empty-state p {
    font-size:11px;
  }

  .page-description {
    font-size:12px;
  }

  .strategy-card-sub {
    font-size:10px;
  }

  .card-metrics dt {
    font-size:8px;
  }

  .card-metrics dd {
    font-size:12px;
  }

  .card-reason {
    font-size:10px;
  }

  .group-title small {
    font-size:10px;
  }

}

@media(max-width:640px) {
  #utc-clock { display:block; font-size:8px; }
  .context-right { gap:10px; }
}

.journal-grid { margin-top:20px; }
.research-records { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.research-record { padding:18px 20px; border-top:1px solid var(--line); min-width:0; }
.research-record:nth-child(odd) { border-right:1px solid var(--line); }
.research-record>div { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.research-record>code { display:block; overflow-wrap:anywhere; font-size:10px; color:var(--subtle); margin-top:9px; }
.research-record p { font-size:11px; color:var(--muted); margin-top:9px; line-height:1.8; overflow-wrap:anywhere; }
.research-record h3 { margin-top:10px; line-height:1.7; overflow-wrap:anywhere; }
.news-link { color:var(--mint); }
.news-link .icon { width:13px; height:13px; }
.report-links { margin-top:14px; }
@media(max-width:640px) {
  .research-records { grid-template-columns:1fr; }
  .research-record { padding:16px; border-right:0!important; }
  .primary-nav { gap:3px; }
  .primary-nav a { padding:7px 6px; gap:4px; font-size:10px; }
}

.research-section { margin-top:24px; scroll-margin-top:96px; }
.research-status { align-items:flex-start; }
.research-status p { margin-top:4px; line-height:1.7; }
.research-status-live { border-color:rgba(120,213,191,.25); background:rgba(120,213,191,.055); }
.research-jumps { display:flex; gap:8px 20px; flex-wrap:wrap; margin:20px 0; font-size:11px; color:var(--mint); }
.research-jumps a { display:inline-flex; align-items:center; gap:6px; padding:6px 0; }
.research-jumps .icon { width:12px; height:12px; }
.research-more { border-top:1px solid var(--line); }
.research-more>summary { cursor:pointer; padding:16px 20px; color:var(--mint); font-size:11px; }
.calendar-records { grid-template-columns:1fr; }
.calendar-records .research-record:nth-child(odd) { border-right:0; }
.calendar-time { color:var(--mint)!important; font-variant-numeric:tabular-nums; }
.source-status-list small,.key-values dt>small { display:block; font-size:10px; color:var(--subtle); line-height:1.7; margin-top:5px; }
.source-required { color:var(--muted)!important; }
.research-ledger-note { padding:18px 20px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; line-height:1.8; }
.research-ledger-note p { margin-top:8px; }
.research-footnote { margin-top:20px; line-height:1.8; }
@media(max-width:640px) {
  .research-jumps { gap:6px 14px; font-size:10px; }
  .research-status { font-size:11px; line-height:1.8; }
  .source-status-list>div { gap:10px; }
  .source-status-list dt { min-width:0; overflow-wrap:anywhere; }
  .source-status-list dd { max-width:60%; overflow-wrap:anywhere; }
}

@media(max-width:640px) {
  .research-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .research-kpis .kpi { padding:14px; }
  .research-kpis .kpi-value { font-size:28px; }
  .research-kpis .kpi p { font-size:10px; }
}

@media(max-width:640px) { .research-section { scroll-margin-top:128px; } }
