:root {
  --bg: #fbfaf7;
  --bg-tint: #f2f1ec;
  --panel: #ffffff;
  --ink: #16191f;
  --ink-2: #3a404a;
  --muted: #6b7280;
  --line: #e3e1da;
  --line-2: #d3d0c7;

  --ours: #0072b2;
  --ours-soft: #e3f0f8;
  --iso: #9aa0a8;
  --oracle: #16191f;
  --feas: #1b9e77;
  --cons: #e0533d;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 10px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ours); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
.wrap.wide { max-width: 1160px; }

/* ---------- top nav ---------- */
.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform .25s ease, border-color .25s ease;
}
.topnav.show { transform: none; border-bottom-color: var(--line); }
.topnav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 600; font-size: 14px; color: var(--ink); letter-spacing: .02em; }
.navlinks { display: flex; gap: 22px; }
.navlinks a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.navlinks a:hover { color: var(--ours); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 56px; text-align: center; }
.venue {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0;
  color: var(--ink);
}
.venue-tag {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ours); color: #fff; padding: 4px 11px 3px; border-radius: 999px;
}
.title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.14; letter-spacing: -.01em;
  margin: 0 0 26px;
}
.authors { margin: 0; font-size: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.authors span { color: var(--ink); font-weight: 500; }
.authors a { color: var(--ours); }
.authors a:hover { text-decoration: underline; text-underline-offset: 3px; }
.affil { margin: 6px 0 18px; color: var(--muted); font-size: 16px; }
.affil-note { display: block; margin-top: 3px; font-size: 13px; }
.authors sup, .affil-note sup { font-size: 0.7em; margin-left: 1px; }

.buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: #2c323c; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.btn.is-placeholder { background: #fff; color: var(--muted); border: 1px dashed var(--line-2); cursor: default; }
.btn.is-placeholder:hover { transform: none; background: #fff; }
.btn.is-placeholder::after {
  content: "soon"; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-tint); padding: 1px 6px; border-radius: 4px; margin-left: 2px;
}

.teaser { margin: 0; }
.tldr {
  max-width: 820px; margin: 22px auto 0;
  font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--ink-2);
}
.c-feas { color: var(--feas); font-weight: 600; }
.c-cons { color: var(--cons); font-weight: 600; }
.c-ours { color: var(--ours); font-weight: 600; }
.c-iso { color: #6f757e; font-weight: 600; }
.c-oracle { color: var(--oracle); font-weight: 600; }

/* ---------- placeholders ---------- */
.media-ph {
  position: relative; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(22,25,31,.025) 14px 28px),
    linear-gradient(180deg, #eceae4, #e4e2db);
  border: 1px solid var(--line);
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ph-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
}
.ph-tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); background: rgba(255,255,255,.75); border: 1px solid var(--line-2);
  padding: 4px 10px; border-radius: 6px;
}
.ph-text { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- sections ---------- */
.sec { padding: 80px 0; }
.sec.tinted { background: var(--bg-tint); }
h2 {
  font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.2;
  margin: 0 0 22px; letter-spacing: -.005em;
}
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 820px; margin: 0 0 32px; }
.abstract { text-align: justify; hyphens: auto; color: var(--ink-2); margin: 0 0 16px; }
.note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.fig { margin: 0 0 28px; }
.fig img { width: 100%; border-radius: 6px; }

.video-frame { box-shadow: 0 1px 0 var(--line); }

/* method steps */
.steps {
  list-style: none; padding: 0; margin: 8px 0 36px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.steps li {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 18px 18px;
}
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.step-no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 10px;
}

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 36px; }
.fact { border-top: 2px solid var(--ink); padding-top: 12px; }
.fact-num { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.fact-label { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.viewer-slot { margin: 0 0 48px; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.split .fig { margin: 0; }
.split-text p { color: var(--ink-2); margin: 0 0 12px; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink-2);
}
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-val { font-family: var(--mono); font-size: 15px; margin-top: 2px; white-space: nowrap; }
.kpi-val b { color: var(--ours); font-weight: 500; }
.kpi-val .o { color: var(--muted); }

/* charts */
.chart-block { margin-top: 48px; }
.chart-block h3 .sub { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink-2); margin: 4px 0 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.sw-iso { background: var(--iso); }
.sw-ours { background: var(--ours); }
.sw-oracle { background: #fff; border: 1.5px solid var(--oracle); }
.chart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 8px; }
.chart-card h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
svg.chart .val { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-2); }
svg.chart .val.ours { fill: var(--ours); font-weight: 500; }
svg.chart .axis { stroke: var(--line-2); stroke-width: 1; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .ref { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }

/* tables */
.table-details { margin-top: 28px; }
.table-details summary { cursor: pointer; font-weight: 500; color: var(--ink-2); font-size: 15px; }
.table-scroll { overflow-x: auto; margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 9px 12px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data th { font-weight: 600; color: var(--ink-2); background: #faf9f6; }
table.data td:first-child, table.data th:first-child { text-align: left; }
table.data td { font-family: var(--mono); font-size: 13px; }
table.data td:first-child { font-family: var(--sans); font-size: 14px; }
table.data tr:last-child td { border-bottom: 0; }
table.data b { color: var(--ours); font-weight: 500; }

/* real */
.real-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.real-card { margin: 0; }
.real-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: #ddd; }
.real-media img { width: 100%; height: 100%; object-fit: cover; }
.real-step, .soon {
  position: absolute; left: 8px; top: 8px; z-index: 1;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(255,255,255,.88); color: var(--ink-2); padding: 2px 7px; border-radius: 4px;
}
.real-card figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 14.5px; }
.real-card figcaption span { color: var(--muted); font-size: 13px; }

/* analysis */
.analysis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.card p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* limitations */
.limits { padding-left: 20px; margin: 0; color: var(--ink-2); }
.limits li { margin-bottom: 10px; }

/* bibtex */
.bib-note { margin: 0 0 14px; }
.bib { position: relative; }
.bib pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
}
.copy {
  position: absolute; right: 10px; top: 10px; font: inherit; font-size: 13px; cursor: pointer;
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2);
}

.footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-grid { grid-template-columns: 1fr; }
  .real-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 40px; }
  .navlinks { gap: 14px; }
  .navlinks a:nth-child(n+4) { display: none; }
  .steps, .facts, .kpis { grid-template-columns: 1fr 1fr; }
  .real-grid { grid-template-columns: repeat(2, 1fr); }
  .tldr { font-size: 18px; }
  .sec { padding: 56px 0; }
  h2 { font-size: 28px; }
}

table.data.mini { margin-top: 12px; font-size: 12.5px; }
table.data.mini td { padding: 5px 4px; text-align: left; white-space: normal; border-bottom: 1px solid var(--line); }
table.data.mini td:first-child { font-size: 12.5px; color: var(--muted); }
table.data.mini td:last-child { font-size: 12px; text-align: right; }

.legend.small { font-size: 12.5px; gap: 12px; margin: 6px 0 0; }
.ln { width: 16px; height: 2px; display: inline-block; border-radius: 1px; }
.ln.dash { background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px); }
@media (max-width: 640px) {
  .abstract { text-align: left; hyphens: manual; }
  .venue { font-size: 16.5px; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
}

/* ---------- 3D viewer ---------- */
.viewer { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; margin: 0 0 48px; }
.viewer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.viewer-title h3 { margin: 0 0 2px; }
.viewer-title p { margin: 0; font-size: 14px; color: var(--muted); max-width: 560px; line-height: 1.5; }
.seg { display: inline-flex; background: var(--bg-tint); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 14px; font-weight: 500; border: 0; background: transparent; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg.small button { font-size: 13px; padding: 4px 12px; }
.viewer-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #f4f3ef; }
.viewer-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.viewer-loading { position: absolute; inset: 0; display: none; place-items: center; color: var(--muted); font-size: 14px; background: #f4f3ef; }
.viewer.loading .viewer-loading { display: grid; }
.viewer-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.viewer-steps button {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  border-radius: 10px; padding: 9px 12px; display: flex; align-items: center; gap: 9px;
}
.viewer-steps button span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-tint); font-size: 12px; font-weight: 600; }
.viewer-steps button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }
.viewer-steps button[aria-selected="true"] span { background: var(--ink); color: #fff; }
.viewer-caption { margin: 12px 2px 0; font-size: 15.5px; color: var(--ink-2); min-height: 3.2em; }
.viewer-exec { display: none; margin-top: 6px; }
.viewer.exec-mode .viewer-exec { display: block; }
.exec-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.icon-btn { font: inherit; font-size: 11px; letter-spacing: -1px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 8px; padding: 5px 9px; cursor: pointer; color: var(--ink-2); }
#v-scrub { flex: 1; min-width: 140px; accent-color: var(--ours); }
.v-time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); min-width: 300px; }
.v-plot { margin-top: 8px; }
.v-plot svg { width: 100%; height: 150px; display: block; }
.viewer-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) {
  .viewer { padding: 12px; }
  .viewer-steps { grid-template-columns: repeat(2, 1fr); }
  .v-time { min-width: 0; }
}

/* ---------- videos ---------- */
.video-frame-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9e8e3; line-height: 0; }
.video-frame-wrap video { width: 100%; height: auto; display: block; }
.sim-view { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; }
.sim-view-note { font-size: 14px; color: var(--muted); }
.small-note { font-size: 13.5px; margin-top: 8px; }

.ens-gallery { margin: 0 0 36px; }
.ens-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ens-grid div { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e7e6e2; }
.ens-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ens-grid span { position: absolute; left: 10px; top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.8); padding: 1px 8px; border-radius: 999px; }
.ens-gallery figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
@media (max-width: 960px) { .ens-grid { grid-template-columns: repeat(2, 1fr); } }

.viewer-sub { margin: 0; font-size: 14px; color: var(--muted); max-width: 560px; line-height: 1.5; }
.viewer-gains {
  position: absolute; left: 12px; top: 12px; display: none; min-width: 250px;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 8px;
  font-size: 12.5px; line-height: 1.4; backdrop-filter: blur(4px);
}
.viewer.gain-mode .viewer-gains { display: block; }
.g-title { font-weight: 600; color: var(--ink); font-size: 13px; }
.g-sub { color: var(--muted); margin-bottom: 6px; }
.g-row { display: grid; grid-template-columns: 76px repeat(3, 34px 30px); align-items: center; gap: 0 4px; margin: 3px 0; }
.g-name { color: var(--ink-2); }
.g-bar { height: 7px; background: var(--bg-tint); border-radius: 4px; overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: 4px; }
.g-val { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.plot-legend { margin-top: 2px; }
.viewer-results { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.viewer-results h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.viewer-results h4 .sub { font-weight: 400; color: var(--muted); font-size: 13.5px; margin-left: 6px; }
.viewer-results h4 .sub b { color: var(--ours); font-weight: 500; }
.viewer-results .kpis { margin-top: 8px; }
@media (max-width: 640px) { .viewer-gains { transform: scale(.78); transform-origin: top left; } }

.g-item { display: grid; grid-template-columns: 12px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  width: 100%; text-align: left; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: none; border: 0;
  padding: 4px 0; cursor: pointer; }
.g-item i { width: 12px; height: 12px; border-radius: 3px; grid-row: 1 / span 2; }
.g-item span { grid-column: 2; font-weight: 400; color: var(--muted); font-size: 12px; }
.g-item[aria-pressed="false"] { opacity: .4; }
.viewer-gains .g-sub { margin: 6px 0 0; }

.real-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.real-step { transition: background .2s, color .2s; }
.real-step.exec { background: var(--ours); color: #fff; }
.real-step.ens { background: #16191f; color: #fff; }

/* real ratio table */
.table-scroll.plain { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 6px; }
table.ratio-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; table-layout: fixed; }
.ratio-table thead th:first-child { width: 22%; }
.ratio-table th, .ratio-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ratio-table thead th { font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-bottom: 1.5px solid var(--line-2); background: #faf9f6; }
.ratio-table thead th span { display: block; font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--muted); }
.ratio-table tbody th { font-weight: 400; }
.ratio-table tbody th > * { vertical-align: middle; }
.ratio-table tbody th img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; margin-right: 12px; display: inline-block; }
.ratio-table tbody th span { display: inline-flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.35; }
.ratio-table tbody th span b { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.rc-top { display: flex; align-items: baseline; gap: 2px; margin-bottom: 5px; }
.rc-top b { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1; }
.rc-top b.better { color: var(--ours); }
.rc-top b.worse { color: #d55e00; }
.rc-top sup { color: var(--muted); font-size: 11px; }
.rc-raw { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 5px; white-space: nowrap; line-height: 1.45; }
.rb { position: relative; display: block; height: 10px; }
.rb i { position: absolute; top: 0; bottom: 0; left: 0; display: block; border-radius: 3px; }
.rb .rb-iso { background: #c9cdd3; }
.rb .rb-ours { background: var(--ours); }
.rb .rb-over { background: #d55e00; border-radius: 0 3px 3px 0; }
.ratio-table tr.avg th, .ratio-table tr.avg td { border-bottom: 0; padding-top: 16px; }
.ratio-table tr.avg th { padding-left: 70px; }
.rt-key { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.rt-key { flex-wrap: wrap; column-gap: 16px; row-gap: 2px; }
.key-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.key-sw { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.key-sw.iso { background: #c9cdd3; } .key-sw.ours { background: var(--ours); } .key-sw.over { background: #d55e00; }
.ratio-table tbody th, .ratio-table thead th:first-child { position: sticky; left: 0; background: var(--panel); z-index: 1; }
@media (max-width: 640px) {
  .ratio-table tbody th img { display: none; }
  .ratio-table tbody th { min-width: 110px; }
  .ratio-table tr.avg th { padding-left: 14px; }
}


.rb .rb-oracle { width: 9px; height: 9px; top: -1px; margin-left: -4.5px; transform: rotate(45deg); background: #fff; border: 1.6px solid var(--ink); z-index: 1; }
.rc-top b.na { color: var(--muted); font-family: var(--sans); }
.ratio-table tbody tr.sel th, .ratio-table tbody tr.sel td { background: var(--ours-soft); }
.ratio-table tbody tr { transition: background .2s; }

.sec.tinted .ratio-table tbody tr.sel th { background: var(--ours-soft); }

.ens-row-label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.ens-row-label:first-child { margin-top: 0; }
.ens-grid.real { grid-template-columns: repeat(5, 1fr); }
.ens-grid.real img { aspect-ratio: 1; }
@media (max-width: 960px) { .ens-grid.real { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ens-grid.real { grid-template-columns: repeat(2, 1fr); } }
/* contrast / layout fixes (2026-10-04) */
.real-card figcaption { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.35; }
.c-iso { color: #555c66; }

/* "Twists & PCA" step */
.viewer-steps.five { grid-template-columns: repeat(5, 1fr); }
.viewer-spec { position: absolute; right: 12px; bottom: 12px; width: 310px; display: none;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 4px; }
.viewer.twist-mode.spec-on .viewer-spec { display: block; }
@media (max-width: 640px) { .viewer-steps.five { grid-template-columns: repeat(3, 1fr); } .viewer-spec { width: 210px; } }
