::selection { background: #d97757; color: #fff; }
/* /token-gpu/ dashboard — cobalt blueprint developer-runtime style, aligned to
   the Barry RS portal (barryai.cn). No gradients, no shadows, no
   glassmorphism, no remote fonts/CDNs. */

/* Montserrat (self-hosted latin variable weights 100-900); Chinese falls back
   to PingFang SC. Same font file already used by the barryai.cn portal. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/montserrat-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --blue: #1b34e8;
  --blue-ink: #14205c;
  --cobalt-950: #1b34e8;
  --cobalt-900: #1b34e8;
  --cobalt-800: #16299f;
  --cobalt-700: #123a8f;
  --cobalt-600: #1c4fd6;
  --cobalt-500: #2f6bff;
  --rule-blue: rgba(255, 255, 255, 0.3);
  --rule-blue-soft: rgba(255, 255, 255, 0.16);
  --ink: #0a1730;
  --paper: #ffffff;
  --cold-50: #f4f6fb;
  --cold-100: #eef1f7;
  --border: #c9d3e6;
  --border-strong: #93a6cf;
  --good: #146c4c;
  --warn: #8a5a00;
  --bad: #a52418;
  --radius: 3px;
  --font-sans: "Montserrat", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Montserrat", "PingFang SC", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --series-token-expenditure: #1c4fd6;
  --series-token-open_expenditure: #146c4c;
  --series-token-closed_expenditure: #a52418;
  --series-ornn-h100_sxm: #1c4fd6;
  --series-ornn-h200: #146c4c;
  --series-ornn-b200: #a52418;
  --series-ornn-a100_sxm4: #8a5a00;
  --series-ornn-rtx_5090: #6a3fb0;
  --series-otpi-anthropic: #c35f20;
  --series-otpi-openai: #146c4c;
  --series-otpi-google: #1c4fd6;
  --series-otpi-deepseek: #6a3fb0;
  --series-gpu-neo_h100: #1c4fd6;
  --series-gpu-neo_a100: #146c4c;
  --series-gpu-neo_h200: #a52418;
  --series-gpu-neo_b200: #8a5a00;
  --series-gpu-neo_mi300x: #6a3fb0;
  --series-gpu-neo_b300: #0f6e7a;
  --series-gpu-hyper_h100: #1c4fd6;
  --series-gpu-hyper_a100: #146c4c;
}

* { box-sizing: border-box; }
/* Gate/app toggle sections and rows with the hidden attribute; several of
   those elements also carry display:grid/flex, which would otherwise win. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-sans); line-height: 1.15; margin: 0 0 0.5em; }
code, kbd, .mono, .unit-badge, .data-table, .tooltip, .runtime-status, .source-line, figcaption {
  font-family: var(--font-mono);
}
a { color: var(--cobalt-600); }
a:hover { color: var(--cobalt-500); }
img, svg { max-width: 100%; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cobalt-900);
  color: #fff;
  padding: 0.75em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--cobalt-500);
  outline-offset: 2px;
}

/* ── header + home mark ─────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--blue);
  border-bottom: 1px solid var(--rule-blue);
  flex-wrap: wrap;
}

/* Barry RS home mark: exact 48px mark reused from the barryai.cn portal —
   blue square, 1px white inset border for contrast against the equally
   blue header, "BARRY" over "RS". */
.barry-rs-home {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 2px;
  line-height: 1;
}
.barry-rs-home:hover { border-width: 2px; }
.barry-rs-home .brs-top { font-size: 8px; font-weight: 600; letter-spacing: 0.12em; text-indent: 0.12em; }
.barry-rs-home .brs-bot { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; margin-top: 3px; }

.key-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.key-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0 0.75em;
  border: 1px solid var(--rule-blue);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.key-nav a:hover { border-color: #fff; color: #fff; }
.key-nav kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 0.1em 0.35em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--rule-blue);
  border-radius: 2px;
  font-size: 0.8em;
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--blue);
  color: #ffffff;
  padding: 1.5rem 1.25rem;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero__content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.hero__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}
/* ── layout ─────────────────────────────────────────────────────────── */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--paper);
}
.panel__head h2 {
  font-size: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.unit-badge {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--cobalt-700);
  background: var(--cold-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.15em 0.5em;
}
.panel__desc { color: #43506e; max-width: 68ch; }

/* ── kpi tiles ──────────────────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.kpi-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.kpi-tile__label { font-size: 0.78rem; color: #43506e; margin: 0 0 0.3rem; }
.kpi-tile__value { font-family: var(--font-mono); font-size: 1.3rem; margin: 0; }
.kpi-tile__meta { font-family: var(--font-mono); font-size: 0.72rem; color: #6c7794; margin: 0.25rem 0 0; }

/* ── controls ───────────────────────────────────────────────────────── */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.range-control, .group-filter, .series-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.range-btn, .group-btn, .toggle-btn, .filter-select {
  min-height: 44px;
  padding: 0 0.85em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
}
.range-btn.is-active, .group-btn.is-active {
  background: var(--cobalt-700);
  border-color: var(--cobalt-700);
  color: #fff;
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.toggle-btn__swatch {
  width: 0.85em;
  height: 0.85em;
  border-radius: 1px;
  background: var(--swatch-color, #888);
  display: inline-block;
}
.toggle-btn[aria-pressed="false"] {
  color: #8a93ab;
  border-style: dashed;
}
.toggle-btn[aria-pressed="false"] .toggle-btn__swatch { opacity: 0.35; }
.filter-select { min-width: 10rem; }

/* ── charts ─────────────────────────────────────────────────────────── */
.chart-figure { margin: 0 0 1.25rem; }
.swipe-hint {
  display: block;
  font-size: 0.75rem;
  color: #6c7794;
  margin: 0 0 0.4rem;
}
@media (min-width: 640px) { .swipe-hint { display: none; } }
.chart-scroll { overflow-x: auto; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--cold-50); }

/* Token panel: one portrait card per series, three across on desktop. The
   2:3 plot plus a per-card y-domain makes each series' own movement legible, which
   a single shared-scale wide chart flattened. Narrow viewports scroll the strip
   inside .chart-scroll rather than squashing the ratio. */
.token-chart-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
}
.token-chart-card {
  flex: 1 0 280px;
  max-width: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.5rem;
}
.token-chart-card__title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-ink);
  text-align: center;
  margin: 0 0 0.4rem;
}
.token-chart-card__plot { width: 100%; aspect-ratio: 2 / 3; }
.token-chart-card__plot svg { display: block; width: 100%; height: 100%; }
/* The strip only overflows below ~850px, so keep the swipe hint that long. */
#token .swipe-hint { display: block; }
@media (min-width: 880px) { #token .swipe-hint { display: none; } }
@media (min-width: 1040px) { .token-chart-row { justify-content: center; } }

.token-date-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; width: 100%; }
.token-date-range label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; min-width: 0; }
.token-date-range input { min-height: 44px; min-width: 0; max-width: 100%; padding: 0.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); color: var(--blue-ink); font: inherit; }
#token-date-error { flex-basis: 100%; margin: 0; }
#token.is-single .token-chart-card { flex: 1 1 0; min-width: 0; max-width: none; }
#token.is-single .token-chart-card__plot { aspect-ratio: auto; height: 340px; }
#token.is-single .swipe-hint { display: none; }

/* GPU panel: the same portrait small-multiple treatment as Token, one card per
   series in the selected group. Six Neo-cloud cards clear a 1440px viewport in
   one row (1192px of panel content vs 6x176px + gaps); flex-shrink stays 0 so
   anything narrower scrolls inside .chart-scroll instead of squashing the 2:3
   ratio or overflowing the document. */
.gpu-chart-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
}
.gpu-chart-card {
  flex: 1 0 176px;
  max-width: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.5rem;
}
.gpu-chart-card__title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-ink);
  text-align: center;
  margin: 0 0 0.4rem;
}
.gpu-chart-card__plot { width: 100%; aspect-ratio: 2 / 3; }
.gpu-chart-card__plot svg { display: block; width: 100%; height: 100%; }
/* Hyperscaler shows only two series, so its cards centre and run wider. */
.gpu-chart-row[data-group="hyperscaler"] { justify-content: center; }
.gpu-chart-row[data-group="hyperscaler"] .gpu-chart-card { flex: 1 0 260px; max-width: 380px; }
/* The six-card strip only overflows below ~1225px, so keep the hint that long.
   Scoped to the figure so the table's own swipe hint is left alone. */
#gpu .chart-figure .swipe-hint { display: block; }
@media (min-width: 1240px) { #gpu .chart-figure .swipe-hint { display: none; } }
.chart-axis-line { stroke: var(--border); stroke-width: 1; }
.chart-grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-axis-label { fill: #43506e; font-family: var(--font-mono); font-size: 11px; }
.chart-series-path { fill: none; stroke-width: 2; }
.chart-point {
  stroke: var(--paper);
  stroke-width: 1;
  cursor: pointer;
}
.chart-point:focus-visible { outline: 2px solid var(--cobalt-500); outline-offset: 1px; }
figcaption { color: #6c7794; font-size: 0.78rem; margin-top: 0.35rem; }

/* ── tables ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; min-width: 480px; }
.data-table caption { text-align: left; padding: 0.6rem 0.75rem; font-family: var(--font-sans); font-weight: 600; border-bottom: 1px solid var(--border); }
.data-table th, .data-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { background: var(--cold-100); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── rates cards (mobile) ───────────────────────────────────────────── */
.rate-cards { display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .rate-cards { display: none; } }
.rates-desktop { display: none; }
@media (min-width: 720px) { .rates-desktop { display: block; } }
.rate-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.rate-card h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.rate-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; margin: 0; font-size: 0.85rem; }
.rate-card dt { color: #6c7794; }
.rate-card dd { margin: 0; font-family: var(--font-mono); }

.source-line { font-size: 0.78rem; color: #43506e; }
.loading-copy, .error-copy { font-family: var(--font-mono); font-size: 0.85rem; }
.error-copy { color: var(--bad); }
.panel__status { font-family: var(--font-mono); font-size: 0.82rem; margin: 0.5rem 0 0; }
.panel__status.is-ok { color: var(--good); }
.panel__status.is-stale, .panel__status.is-partial { color: var(--warn); }
.panel__status.is-failed { color: var(--bad); }
.panel__status.is-unknown { color: #43506e; }
.method-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.method-grid dt { font-weight: 700; margin-bottom: 0.25rem; }
.method-grid dd { margin: 0; color: #303c58; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #43506e;
}

/* ── runtime status (page bottom) ───────────────────────────────────── */
.runtime-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.status-card {
  background: var(--cold-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.status-card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #43506e;
  margin: 0 0 0.35rem;
}
.status-card__value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink);
}
.status-card__value.is-ok { color: var(--good); }
.status-card__value.is-stale, .status-card__value.is-partial { color: var(--warn); }
.status-card__value.is-failed { color: var(--bad); }
.status-card__value.is-unknown { color: #43506e; }
.runtime-status__loading { color: #43506e; font-family: var(--font-mono); margin: 0; }
.noscript-note {
  background: var(--cold-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.tooltip {
  position: fixed;
  z-index: 50;
  background: var(--cobalt-950);
  color: #fff;
  border: 1px solid var(--cobalt-700);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  pointer-events: none;
  max-width: 240px;
}
.tooltip[hidden] { display: none; }

/* ── access shell (public preview + gate form) ──────────────────────── */
/* Same panel chrome as the data sections; a cobalt left rule marks it as
   the entry point rather than another index. */
.access { border-left: 4px solid var(--blue); }
.access__kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}
.access__kpis .kpi-tile__label { white-space: nowrap; }
.kpi-tile__value-line {
  display: flex;
  align-items: baseline;
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.access__kpis .kpi-tile__value { font-size: 1.05rem; }
.kpi-tile__value-unit { font-size: 0.7rem; color: #6c7794; }
/* Price direction is not "good" or "bad" here, so the detail stays neutral. */
.kpi-tile__detail { font-family: var(--font-mono); font-size: 0.72rem; margin: 0.25rem 0 0; color: var(--cobalt-700); white-space: nowrap; }

.access__trend {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem 0.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--cold-50);
}
.access__trend svg { display: block; width: 100%; height: auto; max-height: 120px; }
.access__trend-area { fill: rgba(27, 52, 232, 0.08); }
.access__trend-line { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.access__trend-end { fill: var(--blue); stroke: var(--paper); stroke-width: 1.5; }
.access__trend figcaption { margin-top: 0.5rem; }

.access__loading, .access__error { margin: 0.5rem 0; }

.access__form {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.access__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}
.access__field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.access__field--wide { grid-column: 1 / -1; }
.access__field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue-ink);
}
.access__field input {
  min-height: 44px;
  padding: 0 0.75em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  width: 100%;
}
.access__field input::placeholder { color: #8a93ab; }
.access__field input:focus-visible {
  outline: 2px solid var(--cobalt-500);
  outline-offset: 0;
  border-color: var(--cobalt-500);
}
.access__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}
.access__submit {
  min-height: 44px;
  padding: 0 1.5em;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.access__submit:hover { background: var(--cobalt-600); border-color: var(--cobalt-600); }
.access__submit:disabled { opacity: 0.6; cursor: wait; }
.access__note { font-size: 0.78rem; color: #6c7794; }

.access__unlocked {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cold-100);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--good);
}
.access__viewer:not(:empty)::before { content: "，"; }
.access__viewer { color: var(--ink); }
.access__reset { margin-left: auto; font-size: 0.78rem; color: #43506e; }

@media (max-width: 720px) {
  .access__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── mobile ≤480px ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .access { border-left-width: 3px; }
  .access__grid { grid-template-columns: 1fr; }
  .access__submit { width: 100%; }
  .access__reset { margin-left: 0; }
  .site-header { padding: 0.6rem 0.85rem; flex-direction: column; align-items: flex-start; }
  .key-nav { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 0.4rem; }
  .key-nav a { font-size: 0.78rem; padding: 0 0.5em; justify-content: center; }
  .hero { padding: 0.9rem 0.85rem; }
  .hero__title { font-size: 1.35rem; line-height: 1.3; }
  .runtime-status { grid-template-columns: 1fr 1fr; }
  main { padding: 1.75rem 0.85rem 3rem; gap: 1.75rem; }
  .panel { padding: 1.1rem; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access__kpis { gap: 0.5rem; }
  .access__kpis .kpi-tile { min-width: 0; padding: 0.65rem 0.4rem; }
  .access__kpis .kpi-tile__label { font-size: 0.56rem; }
  .access__kpis .kpi-tile__detail { font-size: 0.66rem; }
  .access__kpis .kpi-tile__value-unit { font-size: 0.64rem; }
  .controls { flex-direction: column; align-items: stretch; }
  .range-control, .group-filter, .series-toggle { width: 100%; }
}

/* ── reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.ornn-chart-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
}
.ornn-chart-card {
  flex: 1 0 200px;
  max-width: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.5rem;
}
.ornn-chart-card__title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-ink);
  text-align: center;
  margin: 0 0 0.4rem;
}
.ornn-chart-card__plot { width: 100%; aspect-ratio: 2 / 3; }
.ornn-chart-card__plot svg { display: block; width: 100%; height: 100%; }

#ornn .chart-figure .swipe-hint { display: block; }
@media (min-width: 1160px) { #ornn .chart-figure .swipe-hint { display: none; } }
.site-footer .disclaimer { margin-top: 1.5rem; text-align: center; }

/* Owner OTPI: four lab series share one responsive price chart. */
.otpi-kpis .kpi-tile.is-featured { grid-column: span 2; border-color: var(--series-otpi-anthropic); }
.otpi-kpis .is-featured .kpi-tile__value { font-size: 1.9rem; }
/* Half-width mobile tiles are too narrow for number + unit on one line. */
.otpi-kpis .kpi-tile__value-line { flex-wrap: wrap; column-gap: 0.35em; }
.otpi-kpis .kpi-tile__value-unit { white-space: nowrap; }
.otpi-kpi__changes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin: 0.25rem 0 0;
  color: var(--cobalt-700);
}
.otpi-chart-row { width: 100%; min-width: 0; }
.otpi-chart-row svg { display: block; width: 100%; height: auto; min-width: 0; }
.otpi-axis-unit { font-size: 0.78rem; color: var(--cobalt-700); margin: 0 0 0.5rem; }
.otpi-note { font-size: 0.78rem; color: #43506e; max-width: 80ch; margin: 0 0 0.5rem; }
@media (max-width: 480px) { .otpi-kpis .kpi-tile.is-featured { grid-column: 1 / -1; } }

.otpi-owner__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.otpi-owner__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.otpi-owner__form input,
.otpi-owner__form button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
}
.otpi-owner__form input { padding: 0 0.75rem; }
.otpi-owner__form button {
  padding: 0 1rem;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

/* Price comparison: the wide plot and its legend scroll together locally.
   Existing panels keep their own geometry. SVG units stay readable at 390px. */
.comparison-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.comparison-canvas { min-width: 960px; padding: 0.75rem; }
.comparison-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.comparison-toggle {
  min-height: 44px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--border);
  border-top: 3px solid var(--comparison-color);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: 0.8rem/1.5 var(--font-mono);
  cursor: pointer;
}
.comparison-label { font-weight: 700; }
.comparison-swatch { display: inline-block; width: 1.1rem; height: 3px; margin-right: 0.4rem; vertical-align: middle; background: var(--comparison-color); }
.comparison-toggle[aria-pressed="false"] { border-style: dashed; background: var(--cold-50); }
.comparison-toggle[aria-pressed="false"] .comparison-swatch { background: transparent; border-bottom: 2px dashed var(--comparison-color); }
.comparison-toggle:disabled { cursor: not-allowed; opacity: 1; }
.comparison-pending { color: var(--comparison-color); }
.comparison-toggle:focus-visible, .comparison-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#comparison-chart svg { display: block; width: 100%; height: auto; }
.comparison-axis { fill: #43506e; font: 12px var(--font-mono); }
.comparison-grid { stroke: #e2e7f0; stroke-width: 1; }
.comparison-axis-line { stroke: #9aa5bb; stroke-width: 1; }
.comparison-base-date, .comparison-base-index { stroke: #68728a; stroke-width: 1.2; stroke-dasharray: 6 5; }
.comparison-path { stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.comparison-point { cursor: crosshair; fill-opacity: 0; pointer-events: all; }
.comparison-isolated { fill-opacity: 1; r: 2.6; }
.comparison-point:hover, .comparison-point:focus { fill-opacity: 1; r: 5; stroke: var(--blue); stroke-width: 2; outline: none; }
.comparison-help, .comparison-status, .comparison-readout, .comparison-empty { font-size: 0.85rem; overflow-wrap: anywhere; }
.comparison-readout { min-height: 2.6em; font-family: var(--font-mono); }
.comparison-empty { text-align: center; padding: 0.5rem; }
