/* Shared visual foundation for the homepage and both venue dashboards. */
html:root {
  --pm-width: 1680px;
  --pm-gutter: clamp(16px, 2.4vw, 40px);
  --pm-font: Inter, "Segoe UI", Arial, sans-serif;
  --pm-bg: #071216;
  --pm-panel: #0b1b20;
  --pm-raised: #10252b;
  --pm-border: #29434a;
  --pm-text: #ecf3f5;
  --pm-muted: #a4b7bf;
  --pm-accent: #42d9bf;
}
html:root[data-theme="light"] {
  --pm-bg: #f1f5f6;
  --pm-panel: #ffffff;
  --pm-raised: #e8f0f2;
  --pm-border: #c5d5db;
  --pm-text: #142c35;
  --pm-muted: #4e6671;
  --pm-accent: #087b6b;
}
body.pm-interface {
  --bg: var(--pm-bg); --surface: var(--pm-panel); --surface2: var(--pm-raised);
  --surface-1: var(--pm-panel); --surface-2: var(--pm-raised); --surface-3: var(--pm-raised);
  --text: var(--pm-text); --text-soft: var(--pm-muted); --text-muted: var(--pm-muted);
  --soft: var(--pm-muted); --muted: var(--pm-muted); --muted2: var(--pm-muted);
  --line: var(--pm-border); --line-soft: var(--pm-border); --line-strong: var(--pm-border);
  --teal: var(--pm-accent); --mint: var(--pm-accent);
  --sans: var(--pm-font); --mono: var(--pm-font);
  --shell-max: var(--pm-width); --shell-radius: 6px; --radius: 6px;
  --type-2xs: 12px; --type-xs: 12px; --type-sm: 13px; --type-md: 14px;
  --space-panel: 20px;
  font-family: var(--pm-font); font-size: 15px; letter-spacing: 0;
  background: var(--pm-bg); color: var(--pm-text);
}
.pm-interface *, .pm-interface *::before, .pm-interface *::after { box-sizing: border-box; }
.pm-interface :where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--pm-accent); outline-offset: 4px;
}
body.pm-interface .shell { width: 100%; max-width: none; margin: 0; padding: 0; }
body.pm-interface main {
  width: min(var(--pm-width), calc(100% - var(--pm-gutter) * 2));
  max-width: var(--pm-width); margin: 0 auto; padding: 24px 0 40px;
}
body.pm-interface .site-header,
body.pm-interface .topbar.unified-shell-header {
  position: relative; top: auto; width: 100%; max-width: none; height: auto;
  min-height: 76px; margin: 0;
  padding: 12px max(var(--pm-gutter), calc((100% - var(--pm-width)) / 2));
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 24px;
  align-items: center; border: 0; border-bottom: 1px solid var(--pm-border);
  background: var(--pm-bg); border-radius: 0; box-shadow: none;
}
body.pm-interface :is(.wordmark, .shell-wordmark) { width: 200px; height: auto; margin: 0; }
body.pm-interface :is(.wordmark, .shell-wordmark) img { width: 198px; height: auto; }
body.pm-interface :is(.primary-nav, .shell-nav) { display: flex; gap: 22px; align-items: center; }
body.pm-interface :is(.primary-nav, .shell-nav) a {
  font: 500 12px/1.4 var(--pm-font); letter-spacing: .035em;
  padding: 12px 0; color: var(--pm-muted); white-space: nowrap;
}
body.pm-interface :is(.header-actions, .shell-actions) {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  overflow: visible; padding: 0;
}
body.pm-interface :is(.venue-chip, .shell-venue-chip) {
  min-height: 38px; height: auto; padding: 8px 10px; border-radius: 4px;
  font: 600 12px/1.25 var(--pm-font); letter-spacing: 0;
  background: var(--pm-panel); border: 1px solid var(--pm-border); color: var(--pm-text);
}
body.pm-interface :is(.venue-chip, .shell-venue-chip) em { font-size: 9px; }
body.pm-interface :is(.systems, .topbar .system-status) { font: 500 11px/1.4 var(--pm-font); }
body.pm-interface .theme-control { display: flex; height: auto; min-height: 38px; margin: 0; padding: 2px; }
body.pm-interface .theme-control button { min-height: 32px; height: auto; font: 500 12px/1.3 var(--pm-font); padding: 5px 8px; }
body.pm-interface :is(.panel, .market-state, .kpi, .market-workspace, .research-workspace, .leader-card) {
  border: 1px solid var(--pm-border); border-radius: 6px; background: var(--pm-panel);
  box-shadow: none;
}
body.pm-interface :is(.panel, .market-state, .kpi)::before { display: none; }
body.pm-interface :is(.hero, .hero-composition) { margin: 0 0 20px; }
body.pm-interface .hero { padding: 24px 0 32px; gap: 32px; }
body.pm-interface .hero::before { display: none; }
body.pm-interface .hero-copy h1 { font-family: var(--pm-font); font-weight: 650; letter-spacing: -.035em; }
body.pm-interface .hero h1 { font-size: clamp(32px, 3vw, 48px); line-height: 1.15; }
html:root[data-theme] body.pm-interface.shell-unified .kpis { border: 0; background: transparent; gap: 16px; box-shadow: none; }
html:root[data-theme] body.pm-interface.shell-unified :is(.panel, .market-state, .kpi, .market-workspace, .research-workspace, .leader-card) { border-color: var(--pm-border); }
body.pm-interface .theme-control button[aria-pressed="false"] { background: transparent; color: var(--pm-muted); box-shadow: none; }
body.pm-interface .theme-control button[aria-pressed="true"] { background: var(--pm-raised); color: var(--pm-text); box-shadow: none; }
body.pm-interface :is(.lighter-logo-midnight, .shell-lighter-logo-dark) { filter: brightness(0) invert(1); }
html[data-theme="light"] body.pm-interface :is(.lighter-logo-light, .shell-lighter-logo-light) { filter: brightness(0); }
body.pm-interface .hero-copy p { font: 400 16px/1.65 var(--pm-font); color: var(--pm-muted); }
body.pm-interface .hero-composition {
  height: auto; border: 1px solid var(--pm-border); border-radius: 6px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(300px, .78fr);
  grid-template-rows: minmax(370px, auto) auto; overflow: hidden;
}
body.pm-interface .hero-composition .hero-copy { padding: 32px 26px; align-self: center; }
body.pm-interface .hero-composition h1 { font-size: clamp(34px, 2.9vw, 48px); line-height: 1.12; }
body.pm-interface .eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .065em; margin-bottom: 12px; }
body.pm-interface .cta-row { gap: 12px; flex-wrap: wrap; }
body.pm-interface .cta { width: auto; min-height: 46px; height: auto; padding: 13px 16px; gap: 20px; flex: 1 1 175px; font-size: 14px; }
body.pm-interface .hero-viz {
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  padding: 24px 8px 16px; overflow: hidden; border-left: 0;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--pm-accent) 7%, transparent), transparent 70%);
}
body.pm-interface .layer-labels { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; order: 2; padding: 4px 8px; }
body.pm-interface .layer-labels span { min-width: 0; height: auto; padding: 5px 7px; font-size: 10px; color: var(--pm-muted); }
body.pm-interface .layer-labels b { display: none; }
body.pm-interface .market-stack { position: static; width: 100%; height: auto; aspect-ratio: 650 / 380; overflow: visible; filter: drop-shadow(0 16px 20px #0002); }
body.pm-interface .overview { margin: 16px; padding: 18px; }
body.pm-interface .panel-title { font-size: 13px; gap: 8px; flex-wrap: wrap; }
body.pm-interface .panel-title small { font-size: 11px; }
body.pm-interface .overview-head { font-size: 10px; padding-top: 16px; }
body.pm-interface .mrow { min-height: 37px; height: auto; font-size: 13px; gap: 4px; }
body.pm-interface .mrow em { font-size: 11px; }
body.pm-interface .vol-title { font-size: 11px; padding-top: 14px; }
body.pm-interface .vol-row { height: 34px; font-size: 13px; gap: 8px; }
body.pm-interface .vol-row em, body.pm-interface .overview-note { font-size: 11px; line-height: 1.5; }
body.pm-interface .metric-strip { border-right: 0; }
body.pm-interface .metric-strip > div { padding: 16px; min-width: 0; }
body.pm-interface .metric-strip strong { display: block; font-size: 22px; }
body.pm-interface .metric-strip strong small { display: block; margin: 4px 0 0; font-size: 11px; }
body.pm-interface .metric-strip > div > span { font-size: 12px; line-height: 1.5; margin-top: 5px; }
body.pm-interface :is(.venue-grid, .capabilities, .bottom-grid) { margin: 16px 0 0; gap: 16px; }
body.pm-interface .venue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.pm-interface .venue { height: auto; padding: 18px; min-width: 0; }
body.pm-interface .venue-head { height: auto; min-height: 48px; gap: 12px; flex-wrap: wrap; }
body.pm-interface .venue-name h2 { font-size: 18px; }
body.pm-interface .venue-name p { font-size: 11px; white-space: normal; line-height: 1.5; }
body.pm-interface .venue-link { font-size: 13px; min-height: 40px; }
body.pm-interface .coming { font-size: 11px; padding: 9px; }
body.pm-interface .venue-stats { height: auto; min-height: 94px; margin-top: 14px; }
body.pm-interface .venue-stats > div { padding: 12px 9px 24px; min-width: 0; }
body.pm-interface .venue-stats label { font-size: 11px; white-space: normal; line-height: 1.4; }
body.pm-interface .venue-stats b { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
body.pm-interface .axis { font-size: 10px; gap: 12px; flex-wrap: wrap; line-height: 1.5; padding-top: 8px; }
body.pm-interface .prelaunch-copy span { font-size: 12px; }
body.pm-interface .capabilities article { height: auto; min-height: 108px; padding: 16px; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
body.pm-interface .capabilities .ico { width: 44px; height: 44px; }
body.pm-interface .capabilities h3 { font-size: 13px; line-height: 1.4; }
body.pm-interface .capabilities p { font-size: 13px; line-height: 1.55; }
body.pm-interface .table-panel { height: auto; min-width: 0; padding: 18px; }
body.pm-interface .bottom-grid { grid-template-columns: 1.1fr 1.1fr 1fr; }
body.pm-interface .bottom-title { height: auto; min-height: 36px; font-size: 13px; gap: 12px; flex-wrap: wrap; }
body.pm-interface :is(.view-all, .bottom-title > a) { font-size: 12px; }
body.pm-interface :is(.trow, .arow, .srow) { height: auto; min-height: 38px; font-size: 12px; gap: 8px; line-height: 1.5; padding-block: 8px; }
body.pm-interface .thead { height: 30px; font-size: 10px; }
body.pm-interface .trow { grid-template-columns: 32px minmax(0, 1fr) 12px; }
/* Header logo variants must outrank home.css .chip-logo img. */
body.pm-interface .lighter-chip-logo .lighter-logo-light { display: none; }
html[data-theme="light"] body.pm-interface .lighter-chip-logo .lighter-logo-midnight { display: none; }
html[data-theme="light"] body.pm-interface .lighter-chip-logo .lighter-logo-light { display: block; }
body.pm-interface .venue-logo-dual .lighter-logo-light { display: none; }
html[data-theme="light"] body.pm-interface .venue-logo-dual .lighter-logo-midnight { display: none; }
html[data-theme="light"] body.pm-interface .venue-logo-dual .lighter-logo-light { display: block; }
@media (max-width: 1450px) {
  body.pm-interface :is(.systems, .topbar .system-status) { display: none; }
  body.pm-interface :is(.site-header, .topbar.unified-shell-header) { gap: 16px; }
  body.pm-interface :is(.primary-nav, .shell-nav) { gap: 14px; }
  body.pm-interface .hero-composition { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; }
  body.pm-interface .overview { grid-area: 2 / 2 / 4 / 3; margin: 0 20px 20px; }
  body.pm-interface .metric-strip { grid-area: 2 / 1 / 4 / 2; grid-template-columns: 1fr 1fr; align-content: center; }
  body.pm-interface .metric-strip > div { border: 0; padding: 20px 26px; }
  body.pm-interface .venue-stats { grid-template-columns: 1fr 1fr; }
  body.pm-interface .venue-stats > div:nth-child(2) { border-right: 0; }
  body.pm-interface .venue-stats > div:nth-child(n+3) { border-top: 1px solid var(--pm-border); }
  body.pm-interface .capabilities { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
  body.pm-interface :is(.site-header, .topbar.unified-shell-header) { grid-template-columns: 200px minmax(0, 1fr); }
  body.pm-interface :is(.primary-nav, .shell-nav) { justify-content: flex-end; }
  body.pm-interface :is(.header-actions, .shell-actions) { grid-column: 1 / -1; justify-content: flex-end; }
  body.pm-interface .bottom-grid { grid-template-columns: 1fr 1fr; }
  body.pm-interface .bottom-grid .status { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body.pm-interface .venue-grid { grid-template-columns: 1fr; }
  body.pm-interface .venue-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.pm-interface .venue-stats > div:nth-child(2) { border-right: 1px solid var(--pm-border); }
  body.pm-interface .venue-stats > div:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 760px) {
  body.pm-interface main { padding-top: 16px; }
  body.pm-interface :is(.site-header, .topbar.unified-shell-header) { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 16px; }
  body.pm-interface :is(.primary-nav, .shell-nav) { justify-content: flex-start; gap: 18px; flex-wrap: wrap; overflow: visible; }
  body.pm-interface :is(.primary-nav, .shell-nav) a { font-size: 12px; padding: 10px 0; }
  body.pm-interface :is(.header-actions, .shell-actions) { justify-content: flex-start; }
  body.pm-interface :is(.venue-chip, .shell-venue-chip) { min-height: 44px; }
  body.pm-interface .theme-control button { min-height: 38px; }
  body.pm-interface .hero { grid-template-columns: minmax(0, 1fr); padding: 16px 0 24px; }
  body.pm-interface .hero-composition { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  body.pm-interface .hero-composition .hero-copy { grid-area: 1 / 1; padding: 24px 20px; }
  body.pm-interface .hero-copy h1 { font-size: clamp(30px, 7.4vw, 42px); line-height: 1.15; }
  body.pm-interface .hero-copy p { font-size: 16px; }
  body.pm-interface .cta-row { flex-direction: column; }
  body.pm-interface .cta { flex: auto; width: 100%; min-height: 48px; }
  body.pm-interface .hero-viz { grid-area: 2 / 1; padding: 12px 6px 20px; border-block: 1px solid var(--pm-border); }
  body.pm-interface .layer-labels span { font-size: 11px; }
  body.pm-interface .overview { grid-area: 3 / 1; margin: 16px; padding: 16px; }
  body.pm-interface .metric-strip { grid-area: 4 / 1; border-top: 1px solid var(--pm-border); }
  body.pm-interface .metric-strip > div { padding: 16px; }
  body.pm-interface .metric-strip strong { font-size: 20px; overflow-wrap: anywhere; }
  body.pm-interface :is(.capabilities, .bottom-grid) { grid-template-columns: minmax(0, 1fr); }
  body.pm-interface .venue-stats { grid-template-columns: 1fr 1fr; }
  body.pm-interface .venue-stats > div:nth-child(2) { border-right: 0; }
  body.pm-interface .venue-stats > div:nth-child(n+3) { border-top: 1px solid var(--pm-border); }
  body.pm-interface .venue-stats label { font-size: 12px; }
  body.pm-interface .venue-stats b { font-size: 20px; }
  body.pm-interface .venue-name p, body.pm-interface .axis { font-size: 11px; }
  body.pm-interface .overview-head { grid-template-columns: .9fr 1fr 1fr; font-size: 11px; }
  body.pm-interface .mrow { grid-template-columns: .9fr 1fr 1fr; font-size: 14px; min-height: 42px; }
  body.pm-interface .mrow em { font-size: 12px; }
  body.pm-interface .overview-head > :last-child, body.pm-interface .move-glyph { display: none; }
  body.pm-interface .arow { grid-template-columns: .65fr .9fr 1.1fr .8fr; font-size: 11px; }
  body.pm-interface .srow { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.pm-interface *, body.pm-interface *::before, body.pm-interface *::after { transition: none; animation: none; }
}

/* Reference-inspired wireframe market stack. */
body.pm-interface .hero-viz {
  --stack-mint: #34e5bf; --stack-blue: #8299f4; --stack-violet: #a18aff;
  --stack-amber: #ffa03e; --stack-grid: #7396b5; --stack-plane: #09191e;
  display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center;
  gap: 0; padding: 20px 0 20px 8px;
  background: radial-gradient(ellipse at 60% 40%, #26bfaf0a, transparent 70%);
}
html[data-theme="light"] body.pm-interface .hero-viz {
  --stack-mint: #00af91; --stack-blue: #586ac7; --stack-violet: #7763ee;
  --stack-amber: #ff982b; --stack-grid: #afc4df; --stack-plane: #f7fbff;
  background: radial-gradient(ellipse at 65% 45%, #effffc, #fbfdff 75%);
}
body.pm-interface .layer-labels {
  position: relative; inset: auto; order: 0; display: grid; align-content: center;
  gap: 12px; padding: 0; z-index: 2;
}
body.pm-interface .layer-labels span {
  min-width: 0; width: 100%; min-height: 28px; padding: 6px 7px;
  font-size: 10px; letter-spacing: 0; border-color: color-mix(in srgb, var(--stack-grid) 30%, transparent);
  background: color-mix(in srgb, var(--pm-panel) 80%, transparent);
}
body.pm-interface .layer-labels b { display: inline; margin-left: 4px; font-size: 15px; line-height: 1; }
body.pm-interface .market-stack {
  width: 100%; height: auto; aspect-ratio: 660 / 400; filter: none;
  transform: scale(1.04); transform-origin: center;
}
@media (max-width: 760px) {
  body.pm-interface .hero-viz { grid-template-columns: 88px minmax(0, 1fr); padding: 24px 8px; min-height: 240px; }
  body.pm-interface .layer-labels { gap: 10px; }
  body.pm-interface .layer-labels span { font-size: 10px; padding-inline: 5px; min-height: 27px; }
}

/* Original mockup pixels, framed by SVG viewports without redrawing the artwork. */
body.pm-interface .hero-viz.original-market-art {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0; min-height: 0; background: transparent;
}
body.pm-interface .reference-art { display: block; width: 100%; height: auto; overflow: hidden; }
body.pm-interface .reference-art-dark { aspect-ratio: 590 / 300; }
body.pm-interface .reference-art-light { display: none; aspect-ratio: 474 / 224; }
html[data-theme="light"] body.pm-interface .reference-art-dark { display: none; }
html[data-theme="light"] body.pm-interface .reference-art-light { display: block; }
@media (max-width: 760px) {
  body.pm-interface .hero-viz.original-market-art { padding-block: 20px; }
}

/* Scalable artwork measured from the original reference. No bitmap rendering. */
body.pm-interface .hero-viz.vector-market-art {
  --art-grid: #547c8b; --art-green: #36d4b4; --art-orange: #f2ac4a;
  --art-indigo: #a3b2d2; --art-label: #bed0d7;
  --art-label-bg: #0b1b20; --art-label-border: #29434a;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0; min-height: 0; background: transparent;
}
html[data-theme="light"] body.pm-interface .hero-viz.vector-market-art {
  --art-grid: #bcd2e3; --art-green: #00b997; --art-orange: #ff971c;
  --art-indigo: #7475c9; --art-label: #586f94;
  --art-label-bg: #fbfdff; --art-label-border: #d7e3ef;
}
body.pm-interface .vector-illustration { width: 100%; height: auto; aspect-ratio: 481 / 229; overflow: hidden; }
@media (max-width: 760px) {
  body.pm-interface .hero-viz.vector-market-art { padding-block: 20px; }
}

/* Homepage metric icons share the same light stroke as the capability icons. */
body.pm-interface .metric-strip > div {
  display: grid; grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: minmax(48px, auto) auto; column-gap: 10px;
  align-content: start;
}
body.pm-interface .metric-heading { display: contents; }
body.pm-interface .metric-heading strong { min-width: 0; grid-column: 2; grid-row: 1; line-height: 1.2; }
body.pm-interface .metric-heading strong small { line-height: 1.4; }
body.pm-interface .metric-strip > div > span { grid-column: 2; grid-row: 2; margin-top: 5px; }
body.pm-interface .metric-icon {
  width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px;
  fill: none; stroke: var(--pm-accent); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  grid-column: 1; grid-row: 1;
}
body.pm-interface .metric-strip strong > #instrumentTotal::before { content: none; }
@media (max-width: 760px) {
  body.pm-interface .metric-strip > div { grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; grid-template-rows: minmax(52px, auto) auto; }
  body.pm-interface .metric-icon { width: 20px; height: 20px; flex-basis: 20px; }
}
