:root {
  color-scheme: light;
  --bg: #f7f6f0;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --ink: #14211d;
  --muted: #66726d;
  --line: #dcd8cb;
  --line-strong: #c8c2b3;
  --accent: #0f8b6e;
  --accent-2: #2364aa;
  --warn: #b26b00;
  --soft-green: #e5f4ee;
  --soft-blue: #e6eff9;
  --soft-yellow: #fff1cf;
  --soft-red: #fae7e3;
  --shadow: 0 18px 48px rgba(31, 40, 35, .08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,.75) 0, rgba(247,246,240,0) 300px),
    var(--bg);
  color: var(--ink);
}

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

button, input {
  font: inherit;
}

.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;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, auto) auto minmax(280px, 720px);
  gap: 18px;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(220, 216, 203, .86);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(14px);
}

.navlinks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #3d4944;
  font-size: .84rem;
  font-weight: 760;
}

.navlinks a:hover,
.navlinks a:focus {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, #fefefe, #edf6f2);
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}

.search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--paper-strong);
  color: var(--ink);
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,139,110,.16);
}

.search button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid #0f6f59;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.search button:disabled,
.button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.button.small {
  height: 34px;
  padding: 0 10px;
  font-size: .78rem;
}

.button.secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--accent);
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: #53615b;
}

.search-results {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 50;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.search-hit {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.search-hit:last-child {
  border-bottom: 0;
}

.search-hit:hover,
.search-hit:focus {
  background: #f1f8f5;
  outline: none;
}

.hit-type {
  width: fit-content;
  align-self: start;
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: #1d508c;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hit-main strong {
  display: block;
  overflow-wrap: anywhere;
}

.hit-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.app {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 44px) 56px;
}

.app:focus {
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px) 0;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.15rem, 4.8vw, 4.7rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1rem;
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: #3a4742;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.hero-panel {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 22px;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vroom-hero {
  align-items: center;
  margin-bottom: 12px;
}

.vroom-hero .hero-copy {
  padding: 10px 0;
}

.vroom-hero h1 {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
}

.vroom-hero .lede {
  margin-top: 10px;
}

.vroom-hero .hero-panel {
  gap: 12px;
  padding: 14px;
}

.mini {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini strong {
  display: block;
  font-size: 1.3rem;
}

.mini small,
.caption,
.stamp {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.stamp {
  display: block;
  margin-top: 7px;
}

.section {
  margin-top: 28px;
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.section-head p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid > * {
  min-width: 0;
}

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

.two-col {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.panel,
.table-panel {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(31,40,35,.05);
}

.metric-card {
  min-height: 168px;
  padding: 17px;
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stat-tile {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 820;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.stat-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.stat-tile small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.metric-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.metric-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 16px;
  font-size: clamp(1.65rem, 3.5vw, 2.65rem);
  font-weight: 850;
  line-height: .98;
  overflow-wrap: anywhere;
}

.metric-basis {
  margin-top: 9px;
  color: #41504a;
  font-size: .86rem;
  line-height: 1.38;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--soft-green);
  color: #0d6f57;
  font-size: .72rem;
  font-weight: 820;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.tag.qualify {
  background: var(--soft-yellow);
  color: var(--warn);
}

.tag.blue {
  background: var(--soft-blue);
  color: #1d508c;
}

.tag.red {
  background: var(--soft-red);
  color: #9f392c;
}

.panel {
  padding: 18px;
}

.chart {
  width: 100%;
  min-height: 280px;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.axis-text {
  fill: #6d7772;
  font-size: 11px;
}

.chart-freshness {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
}

.chart-line.secondary {
  stroke: var(--accent-2);
}

.chart-line.warn {
  stroke: var(--warn);
}

.area {
  fill: rgba(15, 139, 110, .13);
}

.bar {
  fill: var(--accent);
}

.bar.secondary {
  fill: var(--accent-2);
}

.bar.warn {
  fill: var(--warn);
}

.table-panel {
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(247, 246, 240, .74);
  color: #3d4944;
  font-size: .78rem;
  font-weight: 820;
  text-transform: uppercase;
}

td {
  font-size: .92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.row-link {
  font-weight: 750;
  color: #0b6f59;
}

.cell-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.25;
}

.kv-subhead {
  margin: 16px 0 10px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.side-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.fact-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.fact-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.fact-card h3 {
  overflow-wrap: anywhere;
}

.fact-card p {
  margin: 0;
  color: #34413c;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fact-card footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.side-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.side-card .big {
  margin-top: 14px;
  font-size: 2rem;
  font-weight: 850;
}

.kv {
  display: grid;
  gap: 8px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.kv-row:last-child {
  border-bottom: 0;
}

.kv-row span:first-child {
  color: var(--muted);
}

.kv-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.split-list {
  display: grid;
  gap: 13px;
}

.split-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .86rem;
}

.split-head strong {
  color: var(--ink);
}

.split-track {
  overflow: hidden;
  height: 10px;
  border-radius: 8px;
  background: #eee8dc;
}

.split-track div {
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), #62b79f);
}

.empty,
.loading,
.error {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.error {
  border-color: #e7b6ae;
  background: #fff7f5;
}

.safety-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.safety-list li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #45524d;
  font-size: .82rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.whatif-workbench {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(31,40,35,.05);
}

.whatif-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(130px, .8fr)) minmax(150px, .8fr) minmax(150px, .8fr) auto;
  gap: 10px;
  align-items: end;
}

.whatif-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
}

.whatif-form input,
.whatif-form select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.whatif-form input:focus,
.whatif-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,139,110,.14);
}

.whatif-form button,
.link-button {
  border: 1px solid #0f6f59;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
}

.whatif-form button {
  height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.link-button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: .88rem;
}

.whatif-result {
  margin-bottom: 12px;
}

.scenario-pack {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(31,40,35,.05);
}

.scenario-message {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.scenario-message:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,139,110,.14);
  outline: none;
}

.proof-video-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.proof-video-section .video-card video {
  background: #f4f7fb;
}

.replay-inspector-details {
  overflow: hidden;
}

.replay-inspector-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.replay-inspector-details > summary::after {
  content: "Open";
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
}

.diagnostic-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(180, 83, 9, .28);
  border-radius: 6px;
  background: #fff7ed;
  color: #b45309;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.replay-inspector-details[open] > summary::after {
  content: "Close";
}

.replay-inspector-body {
  border-width: 1px 0 0;
  border-radius: 0;
}

.replay-inspector-details:not([open]) .replay-inspector-body {
  display: none;
}

.replay-stage {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.replay-canvas-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fffdf8;
}

.replay-canvas {
  display: block;
  width: 100%;
  min-height: 640px;
}

.replay-editor {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.replay-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.replay-editor-head strong,
.replay-editor-head span {
  display: block;
}

.replay-editor-head strong {
  color: var(--ink);
  font-size: .96rem;
}

.replay-editor-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.35;
}

.editor-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.editor-badges span {
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #3f4e48;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.details-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.details-panel summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 850;
}

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

.replay-controls {
  display: grid;
  grid-template-columns: repeat(5, auto) minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
}

.replay-controls button {
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 760;
}

.replay-controls button {
  min-width: 76px;
  cursor: pointer;
}

.replay-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.replay-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.replay-edit-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 760;
}

.replay-edit-grid input[type="number"],
.replay-edit-grid select {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 760;
}

.replay-edit-grid .toggle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.replay-edit-grid .toggle-line input {
  width: auto;
  accent-color: var(--accent);
}

.candidate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.candidate-links a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0b6f59;
  font-size: .82rem;
  font-weight: 800;
}

.candidate-links a.selected {
  border-color: var(--accent);
  background: var(--soft-green);
  color: var(--accent);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.primary-video-grid {
  grid-template-columns: 1fr;
}

.video-card {
  margin: 0;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3efe5;
  object-fit: contain;
}

.portrait-video video {
  aspect-ratio: 9 / 16;
  max-height: 820px;
  object-fit: contain;
  background: #f4f7fb;
}

.landscape-video video {
  max-height: 520px;
  object-fit: contain;
  background: #f4f7fb;
}

.video-feature {
  align-items: start;
}

.video-card figcaption {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.video-card figcaption strong {
  color: var(--ink);
  font-size: .88rem;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.asset-link-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.asset-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.asset-link-list a {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.asset-link-list strong {
  color: var(--ink);
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.asset-link-list span {
  color: var(--muted);
  font-size: .76rem;
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.big-benchmark {
  color: var(--accent);
  font-size: clamp(3rem, 9vw, 5.8rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
}

.benchmark-hero-card h2 {
  color: var(--accent);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: .95;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.thumb-grid a {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.thumb-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-card-list {
  display: none;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.flow-steps strong {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.flow-steps span {
  font-weight: 850;
}

.flow-steps small,
.question-list button,
.ask-form label {
  color: var(--muted);
}

.ask-form {
  display: grid;
  gap: 10px;
}

.ask-form label {
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ask-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.ask-form textarea:focus {
  outline: 2px solid rgba(0, 150, 136, .18);
  border-color: var(--accent);
}

.ask-form button,
.question-list button {
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.ask-form button {
  min-height: 42px;
  background: var(--ink);
  color: #fff;
}

.question-list {
  display: grid;
  gap: 8px;
}

.question-list button {
  text-align: left;
  padding: 10px 12px;
  background: #fffdfa;
  border: 1px solid var(--line);
}

.question-list button:hover,
.question-list button:focus {
  color: var(--accent);
  border-color: rgba(0, 150, 136, .35);
}

.ask-answer {
  margin-bottom: 22px;
}

.blocked-answer {
  border-color: rgba(188, 76, 76, .28);
}

.warn-box {
  border: 1px solid rgba(188, 76, 76, .28);
  background: #fff6f4;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.warn-box strong {
  color: #9d302e;
}

.ask-result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 16px;
  margin-top: 14px;
}

.ask-result-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.ask-result-card h3 {
  margin: 0;
}

.mini-table {
  margin-top: 12px;
}

.mini-table table {
  min-width: 640px;
}

.mini-table td span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 780;
  margin-bottom: 4px;
}

.vroom-shell {
  display: grid;
  gap: 12px;
}

.vroom-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.vroom-topline h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.vroom-topline .lede {
  margin-top: 10px;
  font-size: 1rem;
}

.vroom-topline .mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vroom-topline .mini {
  padding: 10px;
}

.vroom-stage {
  display: grid;
  justify-items: stretch;
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.vroom-canvas {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f7f6f0;
  object-fit: contain;
}

.vroom-source {
  display: none;
}

.vroom-picker {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.vroom-picker[hidden] {
  display: none;
}

.vroom-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vroom-picker-head strong {
  color: var(--ink);
  font-size: .9rem;
}

.vroom-picker-head span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.vroom-picker-strip {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.vroom-picker-tile {
  flex: 0 0 86px;
  display: grid;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.vroom-picker-tile:hover,
.vroom-picker-tile:focus,
.vroom-picker-tile.active {
  border-color: var(--accent);
  background: #f1f8f5;
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 151, 115, .12);
}

.vroom-picker-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f3efe5;
}

.vroom-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vroom-picker-thumb.video::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

.vroom-picker-thumb.video span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.vroom-picker-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
}

.vroom-picker-more {
  flex: 0 0 auto;
  align-self: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 780;
}

.vroom-editor textarea {
  min-height: 92px;
  resize: vertical;
}

.vroom-controls {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.vroom-transport {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.vroom-transport label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 780;
}

.vroom-transport input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.vroom-jump-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr)) minmax(108px, 132px);
  gap: 8px;
  align-items: center;
}

.vroom-jump-row button,
.vroom-jump-row select {
  width: 100%;
}

.vroom-speed {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}

.vroom-speed select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.vroom-meter-row {
  display: grid;
  grid-template-columns: minmax(90px, 130px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.vroom-meter-row span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 780;
}

.vroom-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece7da;
}

.vroom-meter div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .08s linear;
}

.vroom-asset {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.vroom-file-name,
#vroomActiveAsset {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  cursor: pointer;
}

.vroom-asset:hover,
.vroom-asset:focus,
.vroom-asset.active {
  border-color: var(--accent);
  background: #f1f8f5;
  outline: none;
}

.vroom-asset span,
.vroom-event span,
.vroom-event small {
  color: var(--muted);
  font-size: .78rem;
}

.vroom-event {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 7px;
}

.vroom-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 12px;
  align-items: start;
}

.vroom-result-grid video {
  width: 100%;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3efe5;
}

.vroom-result-grid textarea {
  grid-column: 1 / -1;
  min-height: 160px;
}

.vroom-simple-result {
  display: grid;
  gap: 12px;
}

.vroom-simple-result video {
  width: 100%;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3efe5;
}

.vroom-download-main {
  width: 100%;
  height: 54px;
  font-size: 1rem;
}

.vroom-download-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.vroom-download-actions .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.vroom-export-ready {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.vroom-export-ready.muted {
  color: var(--muted);
  background: #f8f5ed;
}

.vroom-export-ready span {
  color: var(--muted);
  font-size: .8rem;
}

/* ---- PlusX ecosystem room ---- */
.world-hero h1 {
  font-size: clamp(2.05rem, 4vw, 4.1rem);
  line-height: 1.2;
}

.world-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .34fr);
  gap: 14px;
  align-items: stretch;
}

.world-stage-frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,253,248,.92)),
    url("/assets/world-observatory-concept.png") center / cover no-repeat,
    var(--paper);
  box-shadow: var(--shadow);
}

.world-lens-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(220, 216, 203, .82);
  background: rgba(255, 253, 248, .86);
  backdrop-filter: blur(8px);
}

.world-lens-bar button {
  display: grid;
  gap: 2px;
  min-width: 112px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.world-lens-bar button:hover,
.world-lens-bar button:focus,
.world-lens-bar button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,139,110,.12), 0 8px 22px rgba(31,40,35,.055);
  outline: none;
}

.world-lens-bar button.is-active {
  transform: translateY(-1px);
}

.world-lens-bar span {
  font-size: .86rem;
  font-weight: 880;
}

.world-lens-bar small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 760;
  line-height: 1.2;
}

.world-timeline-controls {
  display: none;
  grid-template-columns: auto auto auto auto minmax(180px, 1fr) minmax(210px, .58fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(220, 216, 203, .82);
  background: rgba(255, 253, 248, .91);
}

.world-timeline-controls.is-visible {
  display: grid;
}

.world-timeline-controls button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-2);
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}

.world-timeline-controls button:hover,
.world-timeline-controls button:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(35,100,170,.12);
  outline: none;
}

.world-timeline-controls button.is-filtered {
  border-color: var(--accent);
  background: #0f8b6e;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15,139,110,.16);
}

.world-timeline-controls button:disabled,
.world-timeline-controls input:disabled {
  opacity: .55;
  cursor: default;
}

.world-timeline-controls input[type="range"] {
  width: 100%;
  min-width: 0;
  accent-color: var(--accent-2);
}

.world-timeline-controls output {
  color: #3a4742;
  font-size: .76rem;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.world-canvas {
  display: block;
  width: 100%;
  min-height: 560px;
}

.world-pool-history {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(220px, 1fr) minmax(220px, 1.05fr);
  gap: 12px;
  min-height: 148px;
  padding: 14px;
  border-top: 1px solid rgba(220, 216, 203, .82);
  background: rgba(255, 253, 248, .84);
}

.world-pool-history h3 {
  margin: 3px 0 4px;
  font-size: 1rem;
  line-height: 1.15;
}

.world-pool-history p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.world-history-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.world-history-pills button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #31413a;
  font-size: .68rem;
  font-weight: 820;
  cursor: pointer;
}

.world-history-pills button.is-active {
  border-color: rgba(15, 139, 110, .38);
  background: rgba(37, 215, 172, .16);
  color: #0b6f59;
}

.world-history-pills button span {
  min-width: 0;
}

.world-history-pills button b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .64rem;
  font-weight: 900;
}

.world-history-sample-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(215, 150, 35, .28);
  border-radius: 8px;
  background: rgba(255, 247, 229, .68);
  color: #6d5120;
  font-size: .7rem;
  font-weight: 760;
}

.world-history-sample-note.warn {
  border-color: rgba(211, 90, 74, .28);
  background: rgba(255, 241, 238, .72);
  color: #8b352b;
}

.world-history-sample-note button,
.world-history-sample-note a {
  appearance: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(15, 139, 110, .32);
  border-radius: 7px;
  background: #fff;
  color: #0b6f59;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.world-history-sample-note button.is-pinned {
  border-color: rgba(35, 100, 170, .34);
  background: rgba(35, 100, 170, .1);
  color: #2364aa;
}

.world-history-first-pin-hint {
  flex: 1 1 180px;
  min-width: 0;
  color: #5f6b65;
  font-size: .64rem;
  font-weight: 820;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.world-history-pins {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid rgba(35, 100, 170, .16);
  border-radius: 8px;
  background: rgba(246, 250, 255, .78);
}

.world-history-pins-head,
.world-history-pin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
}

.world-history-pins-head span {
  color: #2364aa;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.world-history-pins-head b {
  color: #2364aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
}

.world-history-pins-head b.is-full {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff3c4;
  color: #9a5b0b;
}

.world-history-pins-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.world-history-pins-head span {
  flex: 1 1 128px;
  min-width: 0;
}

.world-history-pins-head button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid rgba(35, 100, 170, .22);
  border-radius: 7px;
  background: #fff;
  color: #2364aa;
  font-size: .66rem;
  font-weight: 900;
  cursor: pointer;
}

.world-history-pins-head button:focus,
.world-history-pins-head button:focus-visible {
  outline: 2px solid rgba(15, 139, 110, .82);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(15, 139, 110, .14);
}

.world-history-pins-head [data-world-history-copy-set][data-copy-state="copied"] {
  border-color: rgba(16, 185, 129, .34);
  background: #f0fdf4;
  color: #0f6f59;
}

.world-history-pins-head [data-world-history-copy-set][data-copy-state="error"] {
  border-color: rgba(211, 90, 74, .42);
  background: rgba(211, 90, 74, .09);
  color: #a23f34;
}

.world-history-pins-head button.is-confirming {
  border-color: rgba(211, 90, 74, .42);
  background: rgba(211, 90, 74, .09);
  color: #a23f34;
}

.world-history-pin-summary {
  padding: 4px 7px;
  border: 1px solid rgba(35, 100, 170, .16);
  border-radius: 999px;
  background: rgba(35, 100, 170, .06);
  color: #4b6474;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .64rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.world-history-copy-set-note {
  flex: 1 1 118px;
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid rgba(16, 185, 129, .18);
  border-radius: 999px;
  background: rgba(16, 185, 129, .08);
  color: #0f6f59;
  font-size: .63rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  transition: opacity .24s ease;
}

.world-history-copy-set-note[data-state="error"] {
  border-color: rgba(211, 90, 74, .24);
  background: rgba(211, 90, 74, .08);
  color: #a23f34;
}

.world-history-pin-scope {
  padding: 5px 7px;
  border: 1px solid rgba(35, 100, 170, .14);
  border-radius: 7px;
  background: rgba(35, 100, 170, .05);
  color: #4b6474;
  font-size: .63rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.world-history-copy-note {
  padding: 6px 8px;
  border: 1px solid rgba(16, 185, 129, .24);
  border-radius: 7px;
  background: #f0fdf4;
  color: #0f6f59;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1.25;
  opacity: 1;
  overflow-wrap: anywhere;
  transition: opacity 3s ease, border-color 3s ease, background-color 3s ease;
}

.world-history-copy-note[data-state="fading"] {
  border-color: rgba(16, 185, 129, .08);
  background: rgba(240, 253, 244, .45);
  opacity: .18;
}

.world-history-copy-preview {
  border: 1px solid rgba(35, 100, 170, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  overflow: hidden;
}

.world-history-copy-preview summary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
  padding: 8px 9px;
  color: #2364aa;
  cursor: pointer;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.world-history-copy-preview summary span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.world-history-copy-preview summary small {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid rgba(35, 100, 170, .14);
  border-radius: 999px;
  background: rgba(35, 100, 170, .06);
  color: #4b6474;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .56rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.world-history-copy-preview summary:focus,
.world-history-copy-preview summary:focus-visible {
  outline: 2px solid rgba(35, 100, 170, .72);
  outline-offset: 2px;
}

.world-history-copy-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 7px 9px 0;
  border-top: 1px solid rgba(35, 100, 170, .12);
  background: #fff;
}

.world-history-copy-preview-actions button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(35, 100, 170, .2);
  border-radius: 8px;
  background: rgba(35, 100, 170, .07);
  color: #2364aa;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.world-history-copy-preview-actions button[data-select-state="selected"],
.world-history-copy-preview-actions button[data-download-state="downloaded"] {
  border-color: rgba(16, 185, 129, .34);
  background: rgba(16, 185, 129, .12);
  color: #047857;
}

.world-history-copy-preview-actions button[data-select-state="error"],
.world-history-copy-preview-actions button[data-download-state="error"] {
  border-color: rgba(214, 90, 49, .34);
  background: rgba(214, 90, 49, .08);
  color: #a63d22;
}

.world-history-copy-preview-download-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin: 7px 9px 0;
  padding: 8px 9px;
  border: 1px solid rgba(16, 185, 129, .22);
  border-radius: 8px;
  background: rgba(240, 253, 244, .9);
  color: #246b4d;
  line-height: 1.25;
}

.world-history-copy-preview-download-note b {
  font-size: .66rem;
  font-weight: 950;
}

.world-history-copy-preview-download-note span {
  min-width: 0;
  color: #133f31;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .59rem;
  font-weight: 850;
  overflow-wrap: anywhere;
  white-space: normal;
}

.world-history-copy-preview-download-note small {
  color: #64766a;
  font-size: .58rem;
  font-weight: 850;
}

.world-history-copy-preview-download-note[data-state="error"] {
  border-color: rgba(214, 90, 49, .25);
  background: rgba(255, 247, 237, .92);
  color: #a63d22;
}

.world-history-copy-preview pre {
  max-height: 220px;
  margin: 0;
  padding: 8px 9px;
  background: #fff;
  color: #34443e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .6rem;
  font-weight: 760;
  line-height: 1.35;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.world-history-pin-limit {
  padding: 6px 8px;
  border: 1px solid rgba(215, 150, 35, .2);
  border-radius: 7px;
  background: rgba(255, 243, 196, .62);
  color: #73500f;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.world-history-pins.is-empty {
  border-style: dashed;
  background: rgba(255, 253, 248, .72);
}

.world-history-pin-empty {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(15, 139, 110, .16);
  border-radius: 7px;
  background: rgba(15, 139, 110, .06);
  color: #45534d;
  line-height: 1.28;
}

.world-history-pin-empty b {
  color: #14211d;
  font-size: .72rem;
  font-weight: 900;
}

.world-history-pin-empty span {
  font-size: .66rem;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.world-history-pin-row {
  padding: 7px;
  border: 1px solid rgba(220, 216, 203, .9);
  border-radius: 7px;
  background: #fff;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.world-history-pin-row[data-copied="active"] {
  border-color: rgba(16, 185, 129, .34);
  background: #f0fdf4;
  box-shadow: inset 3px 0 0 #10b981;
}

.world-history-pin-row[data-copied="fading"] {
  border-color: rgba(220, 216, 203, .9);
  background: #fff;
  box-shadow: inset 3px 0 0 rgba(16, 185, 129, 0);
  transition: background-color 3s ease, border-color 3s ease, box-shadow 3s ease;
}

.world-history-pin-row.is-oldest {
  border-color: rgba(215, 150, 35, .42);
  background: rgba(255, 250, 232, .78);
}

.world-history-pin-row span {
  color: #25312d;
  font-size: .7rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.world-history-pin-row span em {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(121, 113, 96, .12);
  color: #6b6558;
  font-style: normal;
  font-size: .58rem;
  text-transform: uppercase;
}

.world-history-pin-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .66rem;
  overflow-wrap: anywhere;
}

.world-history-pin-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.world-history-pin-meta span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(121, 113, 96, .18);
  border-radius: 999px;
  background: rgba(121, 113, 96, .07);
  color: #4f5d57;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .58rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.world-history-restore-note {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: .67rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.world-history-restore-note b {
  color: inherit;
  font-size: .68rem;
}

.world-history-restore-note span {
  color: inherit;
  opacity: .86;
}

.world-history-restore-note.exact {
  border: 1px solid rgba(15, 139, 110, .2);
  background: rgba(15, 139, 110, .08);
  color: #0f6f59;
}

.world-history-restore-note.warn {
  border: 1px solid rgba(215, 150, 35, .24);
  background: rgba(215, 150, 35, .11);
  color: #8a5d12;
}

.world-history-restore-note.invalid {
  border: 1px solid rgba(211, 90, 74, .24);
  background: rgba(211, 90, 74, .09);
  color: #a23f34;
}

.world-history-pin-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.world-history-pin-status {
  grid-column: 1 / -1;
  min-height: 28px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: .65rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.world-history-pin-status.exact {
  border: 1px solid rgba(15, 139, 110, .2);
  background: rgba(15, 139, 110, .08);
  color: #0f6f59;
}

.world-history-pin-status.stale {
  border: 1px solid rgba(215, 150, 35, .24);
  background: rgba(215, 150, 35, .11);
  color: #8a5d12;
}

.world-history-pin-status.invalid {
  border: 1px solid rgba(211, 90, 74, .24);
  background: rgba(211, 90, 74, .09);
  color: #a23f34;
}

.world-history-pin-row button,
.world-history-pin-row a {
  min-height: 32px;
  padding: 5px 4px;
  border: 1px solid rgba(35, 100, 170, .22);
  border-radius: 7px;
  background: rgba(35, 100, 170, .06);
  color: #2364aa;
  font-size: .62rem;
  font-weight: 900;
  cursor: pointer;
}

.world-history-pin-row a {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.world-history-pin-row button:focus,
.world-history-pin-row a:focus,
.world-history-pin-row button:focus-visible,
.world-history-pin-row a:focus-visible {
  outline: 2px solid rgba(35, 100, 170, .72);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .world-history-pins-head span {
    flex-basis: 100%;
  }

  .world-history-pins-head button {
    flex: 1 1 calc(50% - 4px);
  }

  .world-history-pin-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.world-history-range {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.world-history-range span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(220, 216, 203, .9);
  border-radius: 8px;
  background: #fff;
  color: #59665f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .67rem;
  font-weight: 760;
  line-height: 1.15;
}

.world-history-range b {
  color: #31413a;
  font-family: inherit;
  font-size: .66rem;
  text-transform: uppercase;
}

.world-history-range em {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(35, 100, 170, .1);
  color: #2364aa;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.world-pool-history-spark {
  display: block;
  width: 100%;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.world-pool-history-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 760;
}

.world-pool-history-list {
  display: grid;
  gap: 6px;
  max-height: 142px;
  overflow: auto;
  padding-right: 2px;
}

.world-pool-history-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.world-pool-history-row b {
  color: var(--event-color);
  font-size: .68rem;
  font-weight: 900;
}

.world-pool-history-row span {
  justify-self: end;
  color: #31413a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .67rem;
  font-weight: 760;
}

.world-pool-history-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.world-pool-history-empty {
  display: grid;
  min-height: 54px;
  align-items: center;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
}

.world-side {
  display: grid;
  min-width: 0;
  gap: 12px;
  align-content: start;
}

.world-focus-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(31,40,35,.05);
}

.world-focus-card h2 {
  font-size: 1.45rem;
}

.world-focus-card p {
  margin: 0;
  color: #3a4742;
  line-height: 1.52;
}

.world-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.world-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3d4944;
  font-size: .76rem;
  font-weight: 780;
}

.world-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
}

.world-dot.green { background: var(--accent); }
.world-dot.amber { background: #d79623; }
.world-dot.blue { background: var(--accent-2); }
.world-dot.red { background: #d35a4a; }
.world-dot.gray { background: #9a9081; }

.world-ops-section {
  padding: 18px;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15,139,110,.06), rgba(35,100,170,.06) 48%, rgba(215,150,35,.08));
}

.world-ops-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.world-ops-head h2 {
  margin: 0;
}

.world-ops-head p {
  max-width: 820px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.world-ops-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.world-ops-rail::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(15,139,110,.25), rgba(35,100,170,.26), rgba(211,90,74,.24));
  pointer-events: none;
}

.world-op-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 116px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 253, 248, .93);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(31,40,35,.045);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.world-op-node:hover,
.world-op-node:focus,
.world-op-node.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,139,110,.13), 0 12px 30px rgba(31,40,35,.07);
  outline: none;
  transform: translateY(-2px);
}

.world-op-node.world-pinned-history.is-empty {
  border-color: rgba(121, 113, 96, .38);
  border-top-color: #9a9081;
  border-style: dashed;
  background: rgba(255, 253, 248, .78);
  color: #5d665f;
}

.world-op-node.world-pinned-history.is-empty:hover,
.world-op-node.world-pinned-history.is-empty:focus,
.world-op-node.world-pinned-history.is-empty.is-selected {
  border-color: rgba(15, 139, 110, .58);
  border-top-color: var(--accent);
  background: #fffdf8;
}

.world-op-node.blue {
  border-top-color: var(--accent-2);
}

.world-op-node.amber {
  border-top-color: #d79623;
}

.world-op-node.red {
  border-top-color: #d35a4a;
}

.world-op-node.link {
  border-top-color: #6f5ab8;
  background: #ffffff;
  text-decoration: none;
}

.world-op-node.world-pinned-history {
  border-top-color: #0f8b6e;
  background: #f6fffb;
}

.world-op-node span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.world-op-node strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.38rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.world-op-node small {
  color: #4e5b56;
  font-size: .78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.world-node-list {
  display: grid;
  gap: 8px;
}

.world-node-list a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.world-node-list a:hover,
.world-node-list a:focus {
  border-color: var(--accent);
  outline: none;
}

.world-node-list span {
  font-weight: 820;
  overflow-wrap: anywhere;
}

.world-node-list small {
  color: var(--muted);
  line-height: 1.35;
}

.world-source-list {
  display: grid;
  gap: 8px;
}

.world-source-list article {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.world-source-list article:hover,
.world-source-list article:focus {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(31,40,35,.07);
  outline: none;
  transform: translateY(-1px);
}

.world-source-list article.is-selected {
  border-color: var(--accent);
  background: #f5fbf8;
  box-shadow: 0 0 0 3px rgba(15,139,110,.14), 0 8px 22px rgba(31,40,35,.07);
}

.world-source-list header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.world-source-list p {
  margin: 0;
  color: #3a4742;
  font-size: .82rem;
  line-height: 1.38;
}

.world-mini-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.world-mini-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: .82rem;
}

.world-mini-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.world-token-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.world-token-medallion {
  display: inline-grid;
  grid-template-columns: 32px minmax(0, auto);
  grid-template-rows: auto auto;
  gap: 0 8px;
  align-items: center;
  min-height: 44px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.world-token-medallion:hover,
.world-token-medallion:focus {
  border-color: var(--token-color);
  box-shadow: 0 8px 22px rgba(31,40,35,.07);
  outline: none;
  transform: translateY(-1px);
}

.world-token-medallion.is-selected {
  border-color: var(--token-color);
  background: color-mix(in srgb, var(--token-color), white 92%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--token-color), transparent 78%), 0 8px 22px rgba(31,40,35,.07);
}

.world-token-medallion b {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--token-color), white 72%);
  color: color-mix(in srgb, var(--token-color), black 18%);
  border: 1px solid color-mix(in srgb, var(--token-color), white 45%);
  font-size: .72rem;
  font-weight: 900;
}

.world-token-medallion span {
  font-weight: 850;
  line-height: 1;
}

.world-token-medallion small {
  color: var(--muted);
  font-weight: 700;
  font-size: .68rem;
  line-height: 1.1;
}

.world-burst-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.world-burst-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.world-burst-list span {
  font-weight: 820;
  overflow-wrap: anywhere;
}

.world-burst-list strong {
  color: var(--accent-2);
  font-size: 1.1rem;
}

.world-burst-list small {
  color: var(--muted);
  line-height: 1.32;
}

.world-latest-trades {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.world-latest-trades div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.world-latest-trades div.sell {
  border-left-color: #d35a4a;
  background: #fff8f7;
}

.world-latest-trades b {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 900;
}

.world-latest-trades div.sell b {
  color: #b94435;
}

.world-latest-trades span {
  font-weight: 820;
  overflow-wrap: anywhere;
}

.world-latest-trades small {
  color: var(--muted);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.world-latest-trades div.route-row {
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.world-latest-trades div.route-row:hover,
.world-latest-trades div.route-row:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(15, 139, 110, .16);
  transform: translateY(-1px);
  outline: none;
}

.route-row-cue {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-weight: 820;
  opacity: 0;
  transition: opacity .12s ease;
}

.world-latest-trades div.route-row:hover .route-row-cue,
.world-latest-trades div.route-row:focus-visible .route-row-cue {
  opacity: 1;
}

.mini-table td strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero,
  .two-col,
  .world-shell {
    grid-template-columns: 1fr;
  }
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .world-ops-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .whatif-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .whatif-form button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .app {
    padding-top: 16px;
  }
  .topbar {
    position: relative;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .brand-copy small {
    white-space: normal;
  }
  .search {
    grid-template-columns: 1fr;
  }
  .search button {
    width: 100%;
  }
  .navlinks {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a {
    flex: 0 0 auto;
    justify-content: center;
  }
  .search-results {
    top: 100px;
  }
  .metrics,
  .three-col,
  .stat-tiles,
  .fact-grid,
  .inventory,
  .flow-steps,
  .world-ops-rail,
  .world-burst-list,
  .world-latest-trades {
    grid-template-columns: 1fr;
  }
  .world-ops-section {
    padding: 14px 12px;
  }
  .world-ops-head {
    display: grid;
    gap: 10px;
  }
  .world-ops-head .button {
    width: 100%;
  }
  .world-lens-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .world-lens-bar::-webkit-scrollbar {
    display: none;
  }
  .world-lens-bar button {
    flex: 0 0 122px;
    min-width: 122px;
  }
  .world-timeline-controls.is-visible {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 9px 10px;
  }
  .world-timeline-controls input[type="range"],
  .world-timeline-controls output {
    grid-column: 1 / -1;
  }
  .world-timeline-controls button {
    width: 100%;
    padding-inline: 6px;
  }
  .world-pool-history {
    grid-template-columns: 1fr;
    min-height: 244px;
    gap: 10px;
    padding: 12px 10px;
  }
  .world-pool-history-list {
    max-height: 178px;
  }
  .world-ops-rail::before {
    left: 20px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(15,139,110,.25), rgba(35,100,170,.26), rgba(211,90,74,.24));
  }
  .world-op-node {
    min-height: 92px;
    padding-left: 42px;
  }
  .hero-panel .mini-grid {
    grid-template-columns: 1fr;
  }
  .vroom-hero .hero-panel .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vroom-hero h1 {
    font-size: 2.35rem;
  }
  .vroom-hero .hero-copy {
    padding: 4px 0;
  }
  .hero-copy,
  .hero-panel {
    max-width: calc(100vw - 32px);
  }
  .metric-card {
    min-height: 140px;
  }
  .section-head {
    display: block;
  }
  .table-panel.compact table {
    min-width: 0;
  }
  .table-panel.compact thead {
    display: none;
  }
  .table-panel.compact tr {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .table-panel.compact td {
    display: grid;
    grid-template-columns: minmax(88px, .35fr) minmax(0, 1fr);
    gap: 10px;
    padding: 4px 0;
    border: 0;
    text-align: left;
    min-width: 0;
  }
  .table-panel.compact td::before {
    content: attr(data-label);
    color: var(--muted);
    text-align: left;
    font-weight: 760;
    overflow-wrap: anywhere;
  }
  .chart {
    min-height: 220px;
  }
  .world-canvas {
    min-height: 560px;
  }
  .world-stage-frame,
  .world-side,
  .world-focus-card {
    max-width: calc(100vw - 32px);
  }
  .world-source-list article,
  .world-mini-list div {
    max-width: 100%;
  }
  .replay-stage {
    padding: 12px;
  }
  .replay-canvas {
    min-height: 520px;
  }
  .replay-editor {
    padding: 12px;
  }
  .replay-editor-head {
    display: grid;
  }
  .editor-badges {
    justify-content: flex-start;
  }
  .replay-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vroom-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vroom-jump-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vroom-speed {
    grid-column: 1 / -1;
  }
  .replay-controls input[type="range"] {
    grid-column: 1 / -1;
  }
  .replay-controls button {
    width: 100%;
  }
  .replay-edit-grid {
    grid-template-columns: 1fr;
  }
  .whatif-form {
    grid-template-columns: 1fr;
  }
  .whatif-workbench {
    padding: 12px;
  }
  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-card video {
    max-height: 360px;
  }
  .portrait-video video {
    max-height: 560px;
  }
  .video-actions .button,
  .asset-actions .button {
    flex: 1 1 120px;
  }
  .asset-link-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .asset-actions {
    justify-content: flex-start;
  }
  .vroom-stage {
    padding: 8px;
  }
  .vroom-topline {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vroom-topline .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vroom-topline h1 {
    font-size: 2.1rem;
  }
  .vroom-canvas {
    max-height: 72vh;
  }
  .vroom-result-grid {
    grid-template-columns: 1fr;
  }
  .ask-result-card header {
    display: grid;
  }
}

/* ---- Per-trade route view ---- */
.route-btn {
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  color: var(--accent-2);
  font-weight: 760;
  font-size: .76rem;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease;
}
.route-btn:hover { background: var(--soft-blue); border-color: var(--accent-2); }

.route-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 16px;
  background: rgba(20, 33, 29, .42);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.route-overlay[hidden] { display: none; }
body.route-open { overflow: hidden; }

.route-modal {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  animation: routeIn .16s ease;
}
@keyframes routeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.route-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.route-title { font-size: 1.12rem; font-weight: 840; letter-spacing: -.01em; }
.route-sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.route-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.route-close:hover { color: var(--ink); }
.route-actions { display: flex; align-items: center; gap: 8px; }
.route-dl {
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  color: var(--accent-2);
  font-weight: 760;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.route-dl:hover { background: var(--soft-blue); border-color: var(--accent-2); }
.route-dl[disabled] { opacity: 0.6; cursor: default; }

.route-venues { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.route-loading, .route-empty { padding: 28px 4px; text-align: center; color: var(--muted); }

.route-flow { display: flex; flex-direction: column; align-items: center; }
.route-arrow { color: var(--line-strong); font-size: .95rem; line-height: 1; margin: 4px 0; }

.route-node {
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 820;
  font-size: .92rem;
}
.route-node span { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.route-node.lpx { background: var(--soft-green); color: #0d6f57; border: 1px solid #bfe3d5; }
.route-node.router { background: var(--soft-blue); color: #1d508c; border: 1px solid #c4d8ef; }

.route-hop {
  width: 100%;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
}
.route-hop-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.route-hop-n { font-size: .72rem; font-weight: 760; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.route-swap { font-size: .92rem; font-weight: 600; }
.route-swap strong { font-weight: 820; }
.route-to { color: var(--accent); font-weight: 820; margin: 0 3px; }
.route-hop-sub { font-size: .74rem; color: var(--muted); margin-top: 3px; }

.venue-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}
.venue-badge.v-px1 { background: #e5f4ee; color: #0d6f57; }
.venue-badge.v-px2 { background: #e2f1f4; color: #0f6b78; }
.venue-badge.v-9in { background: #fdeede; color: #9a5a12; }
.venue-badge.v-9mm { background: #efe7fb; color: #6a3fb0; }
.venue-badge.v-unk { background: #ecebe5; color: #66726d; }

.route-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Showcase Replay Styling (Day One Showcase) */
.showcase-section {
  padding: 14px;
  background: var(--bg);
  display: flex;
  justify-content: center;
}
.landing-showcase {
  margin-top: 0;
  margin-bottom: 22px;
  padding: 0;
}
.showcase-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 370px;
  max-width: 100%;
}
.landing-showcase .showcase-card {
  width: min(100%, 1180px);
}
.showcase-kicker {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.showcase-badge-container {
  display: flex;
  flex-direction: column;
}
.showcase-badge-val {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}
.showcase-badge-val.behind {
  color: #b43f36;
}
.showcase-badge-lbl {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.showcase-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.showcase-date {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
}
.showcase-view {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}
#il-readout-slot {
  display: none;
  margin-top: 0.55rem;
}
.il-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.38rem;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}
.il-readout strong {
  font-weight: 900;
}
.il-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.16rem 0.44rem;
  border: 1px solid #dbe7ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.il-chip.deficit {
  border-color: #f1c7c0;
  background: #fff4f2;
  color: #a53a31;
}
.il-chip.pending {
  border-color: #d8cdfd;
  background: #f5f1ff;
  color: #6d28d9;
}
.showcase-body {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.showcase-chart-wrap {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  position: relative;
  height: 240px;
}
.landing-showcase .showcase-chart-wrap,
.landing-showcase .showcase-cylinders-wrap {
  height: clamp(260px, 30vw, 360px);
}
#showcaseChart {
  width: 100%;
  height: 100%;
  display: block;
}
.showcase-cylinders-wrap {
  width: 100px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  position: relative;
  height: 240px;
}
#showcaseCylinders {
  width: 100%;
  height: 100%;
  display: block;
}
.showcase-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.showcase-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.showcase-play-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  border-left: 10px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.showcase-play-btn.playing::after {
  border: 0;
  left: 10px;
  top: 10px;
  width: 3px;
  height: 12px;
  background: #fff;
  box-shadow: 8px 0 0 #fff;
}
.showcase-slider-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  height: 16px;
}
.showcase-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}
.showcase-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 99px;
  background: #d9e6f1;
  z-index: 1;
  overflow: hidden;
}
.showcase-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.showcase-timecode {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  font-family: monospace;
  flex-shrink: 0;
}

/* Simulator Styles */
.sim-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
}
.sim-header h1 {
  font-size: 1.8rem;
  font-weight: 850;
  margin: 0 0 8px 0;
  color: var(--ink);
}
.sim-disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.sim-form {
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.sim-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .sim-field-group {
    grid-template-columns: 1fr;
  }
}
.sim-field {
  display: grid;
  gap: 6px;
}
.sim-field label {
  font-weight: 760;
  font-size: 0.88rem;
  color: var(--ink);
}
.sim-field select,
.sim-field input[type="number"] {
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.sim-slider-row {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 10px;
  align-items: center;
}
.sim-slider-row input[type="range"] {
  width: 100%;
}
.sim-slider-row input[type="number"] {
  width: 100%;
  height: 34px;
  font-size: 0.84rem;
  padding: 0 6px;
}
.sim-run-btn {
  width: 100%;
  height: 48px;
  background: #ff5722;
  border: 1px solid #e64a19;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 780;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
}
.sim-run-btn:hover {
  background: #f4511e;
}
.sim-run-btn:active {
  transform: scale(0.98);
}
.sim-results {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}
.sim-outcome-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sim-card {
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.sim-card.card-lpx {
  border-left: 4px solid var(--accent);
}
.sim-card.card-hold {
  border-left: 4px solid var(--accent-2);
}
.sim-card h3 {
  font-size: 0.84rem;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}
.sim-card-val {
  font-size: 1.5rem;
  font-weight: 850;
  color: var(--ink);
}
.sim-card-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
.sim-delta-row {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.sim-delta-val {
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--warn);
}
.sim-delta-val.positive {
  color: var(--accent);
}
.sim-delta-val.negative {
  color: #c62828;
}
.sim-narration-card {
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--soft-blue);
  border: 1px solid #c2dbf1;
  padding: 14px;
  border-radius: var(--radius);
  color: #1a4f80;
}
.sim-insight-card {
  font-size: 0.95rem;
  line-height: 1.5;
  background: var(--soft-green);
  border: 1px solid #b6e4d4;
  padding: 16px;
  border-radius: var(--radius);
  color: #0c5946;
}
.sim-chart-container {
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.sim-chart-container h3 {
  font-size: 1rem;
  font-weight: 780;
  margin: 0 0 16px 0;
}
.sim-canvas-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}
.sim-canvas-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.sim-chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 700;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.lpx-dot {
  background: var(--accent);
}
.legend-dot.hold-dot {
  background: var(--accent-2);
}
.sim-chart-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}
.sim-tape-container h3 {
  font-size: 1rem;
  font-weight: 780;
  margin: 20px 0 12px 0;
}
.sim-tape-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-strong);
}
.sim-tape-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}
.sim-tape-table th {
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 12px;
  font-weight: 760;
  color: var(--ink);
}
.sim-tape-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.sim-tape-table tr:last-child td {
  border-bottom: 0;
}
.sim-tape-table td.side-buy {
  color: var(--accent);
  font-weight: 700;
}
.sim-tape-table td.side-sell {
  color: #c62828;
  font-weight: 700;
}

/* STORY STRIP */
.world-story-strip {
  padding: 32px clamp(16px, 4vw, 44px);
  max-width: 1200px;
  margin: 0 auto;
}

.story-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(31, 40, 35, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.story-glyph {
  color: var(--accent);
  margin-bottom: 20px;
  background: var(--soft-green);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.story-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: auto;
}

@media (max-width: 700px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}




/* pool page compact + route CSV (2026-07-04) */

/* Compact Trades Table */
.compact-trades-table {
  width: 100%;
  border-collapse: collapse;
}
.compact-trades-table th, .compact-trades-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.compact-trades-table th {
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.compact-trades-table tbody tr.trade-row:hover {
  background: var(--paper);
}
.compact-trades-table td {
  font-size: 0.85rem;
}

/* Inventory Strip */
.inventory-strip {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.strip-side {
  flex: 1;
  padding: 12px 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.strip-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.strip-usd {
  font-size: 1.4rem;
  font-weight: 850;
  margin-bottom: 4px;
}
.strip-units {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hide-mobile {
    display: none !important;
  }
  .inventory-strip {
    flex-direction: column;
  }
  .strip-side {
    width: 100%;
  }
}



/* pool page mobile fit + fold sections (2026-07-04) */
@media (max-width: 600px) {
  .compact-trades-table { min-width: 0 !important; }
  .compact-trades-table th, .compact-trades-table td { padding: 8px 6px; }
  .trade-detail-panel .kv-row { flex-wrap: wrap; gap: 2px; }
}
.fold-section { margin: 18px 0; }
.fold-section > summary {
  cursor: pointer;
  font-weight: 750;
  padding: 14px 16px;
  background: var(--paper-strong, #f7f6f0);
  border: 1px solid var(--line);
  border-radius: 10px;
  list-style: none;
}
.fold-section > summary::-webkit-details-marker { display: none; }
.fold-section > summary::after { content: " \25B8"; color: var(--muted, #777); }
.fold-section[open] > summary::after { content: " \25BE"; }

/* route modal mobile header fix (2026-07-04): close button must never be overlapped */
.route-actions { position: relative; z-index: 4; }
@media (max-width: 600px) {
  .route-head { flex-wrap: wrap; }
  .route-actions { width: 100%; justify-content: flex-end; }
  .route-venues { margin-top: 10px; }
}


/* grouped route card modal (2026-07-04, per Yahya's reference card) */
.route-flow-c { display: flex; flex-direction: column; margin-top: 4px; }
.route-node-c {
  border-radius: 12px; padding: 10px 14px; text-align: center;
  display: flex; flex-direction: column; gap: 1px;
}
.route-node-c strong { font-size: .95rem; font-weight: 820; }
.route-node-c span { font-size: .78rem; color: var(--muted); }
.route-node-c.lpx { background: #e5f4ee; border: 1px solid #bfe3d5; }
.route-node-c.lpx strong { color: #0d6f57; }
.route-node-c.router { background: #e6eff9; border: 1px solid #c4d8ef; }
.route-node-c.router strong { color: #1d508c; }
.route-flow-c .route-arrow { text-align: center; margin: 3px 0; }
.route-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; border-left-width: 4px;
}
.route-card.rc-0 { border-left-color: #0f8b6e; }
.route-card.rc-1 { border-left-color: #1d508c; }
.route-card.rc-2 { border-left-color: #6d4fc2; }
.route-card.rc-3 { border-left-color: #b45309; }
.route-letter {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 850; font-size: 1rem; background: var(--paper-strong); border: 1px solid var(--line);
}
.rc-0 .route-letter { color: #0f8b6e; background: #e5f4ee; }
.rc-1 .route-letter { color: #1d508c; background: #e6eff9; }
.rc-2 .route-letter { color: #6d4fc2; background: #efeafc; }
.rc-3 .route-letter { color: #b45309; background: #fbf0e0; }
.route-card-body { min-width: 0; }
.route-card-title { font-size: .8rem; font-weight: 780; color: var(--muted); text-transform: none; }
.route-card-path { font-size: .98rem; font-weight: 800; margin: 2px 0; overflow-wrap: anywhere; }
.route-card-sub { font-size: .78rem; color: var(--muted); }
.route-card-hops { font-size: .74rem; color: var(--muted); background: var(--paper-strong); border-radius: 6px; padding: 3px 8px; margin-top: 5px; display: inline-block; overflow-wrap: anywhere; }
.route-summary { display: flex; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; }
.rs-chip {
  flex: 1 1 40%; min-width: 130px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--paper-strong);
}
.rs-chip strong { font-size: 1.05rem; }
.rs-chip.ok strong { color: #0f8b6e; }
.rs-chip span { font-size: .78rem; color: var(--muted); }
.route-note { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* provenance behind a small info dot (2026-07-04, Yahya: "have it in the small i") */
.stamp-i { display: inline-block; margin-top: 6px; }
.stamp-i > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: .78rem; font-weight: 650;
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; background: var(--paper-strong);
}
.stamp-i > summary::-webkit-details-marker { display: none; }
.stamp-i[open] > summary { color: var(--ink); }
.stamp-i .stamp, .stamp-i .safety-list { display: block; margin-top: 6px; }
.safety-i .safety-list { font-size: .8rem; color: var(--muted); padding-left: 18px; }
