/* VPI Dashboard â€” classes prefixed .vpid- ; values from design tokens only */

.vpid-root {
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: var(--color-terminal);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  --vpid-num-col-width: 8.5ch;
  /* Coupling (R) â€” dynamic opacity curve (token-controlled) */
  --vpid-coupling-deadzone: 0.25;
  --vpid-coupling-cap: 0.8;
  --vpid-coupling-steepness: 4.0;
  --vpid-vol-on-gold-text: var(--marcus-black);
}

/* Heatmap â€” absolute thresholds in JS; subtle cell wash (grid lines stay visible) */
.vpid-heatmap-neutral {
  background: transparent;
}
/* P / D-P RVOL: 2â€“5 / 5â€“7 / 7â€“10 / 10+ (x) */
.vpid-heatmap-rvol-20 {
  background: var(--vpid-heatmap-rvol-20);
}
.vpid-heatmap-rvol-40 {
  background: var(--vpid-heatmap-rvol-40);
}
.vpid-heatmap-rvol-60 {
  background: var(--vpid-heatmap-rvol-60);
}
.vpid-heatmap-rvol-80 {
  background: var(--vpid-heatmap-rvol-80);
}
.vpid-heatmap-rvol-100 {
  background: var(--vpid-heatmap-rvol-100);
}

.vpid-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);
  gap: var(--space-2);
}

@media (max-width: 900px) {
  .vpid-shell {
    padding: var(--space-2) var(--space-3);
  }
}

.vpid-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--input-radius);
  background: var(--color-terminal);
  overflow: hidden;
  /* Match titlebar left edge to first grid column label text (cell border + padding). */
  --vpid-chrome-inset-x: calc(1px + var(--space-2));
}

.vpid-titlebar {
  flex-shrink: 0;
  margin: 0;
  padding: var(--space-2) var(--space-2) var(--space-1) var(--vpid-chrome-inset-x);
  background: var(--color-terminal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.vpid-titlebar__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.vpid-discovery-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vpid-egress-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.vpid-egress-led--on {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.65);
}

.vpid-egress-led--off {
  background: var(--color-terminal);
  box-shadow: var(--color-terminal);
}

.vpid-ai-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-family-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--input-radius, 4px);
  cursor: pointer;
  height: 24px;
  display: flex;
  align-items: center;
}

.vpid-ai-toggle:hover {
  border-color: var(--marcus-gold, #C9A84C);
  color: var(--marcus-gold, #C9A84C);
}

.vpid-ai-toggle--on {
  border-color: var(--marcus-gold, #C9A84C);
  color: var(--marcus-gold, #C9A84C);
}

/* Pinned anchor rows (PIN button) become frozen header rows: the host is a
   display:contents pass-through inside .vpid-grid-header, so pinned rows lay
   out exactly like the labels/filter/header rows (subgrid columns) and the
   vertical freeze is structural — they live outside the scrolling body.
   Horizontal alignment rides the existing header<->body scroll mirror. */
.vpid-grid-pinned {
  display: contents;
}

.vpid-grid-pinned[hidden] {
  display: none;
}

.vpid-grid-pinned .vpid-grid-row {
  box-shadow: 0 1px 0 var(--color-border);
}

.vpid-mode-switch {
  display: inline-flex;
  align-items: center;
}

/* Konsole mode pilot switch â€” same simple switch as before, no text inside.
   Active mode = patekke gold (the one identity accent), regardless of which
   mode; the thumb slides left/center/right; the legend names the active
   option. Burgundy/fairway are semantic-only (down/up) and carry no mode
   identity. */
.vpid-mode-pilot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.vpid-mode-pilot__track {
  position: relative;
  display: block;
  width: 72px;
  height: 24px;
  box-sizing: border-box;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--marcus-slate);
  border-radius: var(--radius-sm, 4px);
  transition: box-shadow 0.15s ease;
}
.vpid-mode-pilot:hover .vpid-mode-pilot__track {
  box-shadow: inset 0 0 0 1px var(--marcus-gold);
}
.vpid-mode-pilot:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 2px;
}
.vpid-mode-pilot__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  background: var(--marcus-gold);
  border-radius: calc(var(--radius-sm, 4px) - 1px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--marcus-slate);
  transition: transform 0.2s ease;
}
.vpid-mode-pilot__label {
  font-family: var(--font-family-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.vpid-mode-pilot--universe .vpid-mode-pilot__thumb {
  transform: translateX(24px);
}
.vpid-mode-pilot--tradfi .vpid-mode-pilot__thumb {
  transform: translateX(48px);
}
.vpid-mode-pilot:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}















.vpid-mode-pilot:disabled {
  cursor: not-allowed;
}

.vpid-mode-legend {
  display: inline-flex;
  gap: 10px;
  margin-left: 10px;
  font-family: var(--font-family-mono);
  font-size: var(--konsole-tier-font-size);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.03em;
  color: var(--marcus-cashmere-a40);
  white-space: nowrap;
}

.vpid-mode-legend__item--active.vpid-mode-legend__item--watchlist {
  color: var(--marcus-gold);
}

.vpid-mode-legend__item--active.vpid-mode-legend__item--universe {
  color: var(--marcus-gold);
}

.vpid-mode-legend__item--active.vpid-mode-legend__item--tradfi {
  color: var(--marcus-gold);
}

/* Round Start button â€” same pilot language as the mode switch: slate body,
   cashmere play glyph, patekke gold ring; gold fill on hover. */
.vpid-mode-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 0 0 8px;
  padding: 0;
  box-sizing: border-box;
  border-radius: var(--radius-sm, 4px);
  background: transparent;
  border: 1px solid var(--marcus-slate);
  color: var(--marcus-cashmere);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.vpid-mode-start__glyph {
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

.vpid-mode-start:hover:not(:disabled) {
  color: var(--marcus-gold);
  border-color: var(--marcus-gold);
}

.vpid-mode-start:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 2px;
}

.vpid-mode-start:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Stop scan: square stop glyph, danger ring when actionable. */
.vpid-mode-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 0 0 4px;
  padding: 0;
  box-sizing: border-box;
  border-radius: var(--radius-sm, 4px);
  background: transparent;
  border: 1px solid var(--marcus-slate);
  color: var(--marcus-cashmere);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.vpid-mode-stop__glyph {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 1px;
}

.vpid-mode-stop:hover:not(:disabled) {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.vpid-mode-stop:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 2px;
}

.vpid-mode-stop:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Start â†’ Stop flip while a scan is running (salmon = warning action). */
.vpid-mode-start--stop {
  border-color: var(--color-warn);
  color: var(--color-warn);
}

.vpid-mode-start--stop:hover:not(:disabled) {
  background: var(--color-warn);
  border-color: var(--color-warn);
  color: var(--marcus-slate);
}

.vpid-mode-start--stop .vpid-mode-start__glyph {
  width: 8px;
  height: 8px;
  border: none;
  background: currentColor;
  margin-left: 0;
}

.vpid-tier-btn {
  margin: 0;
  padding: var(--konsole-tier-padding-y) var(--konsole-tier-padding-x);
  min-height: var(--konsole-toolbar-block-height);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-mono);
  font-size: var(--konsole-tier-font-size);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.03em;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  background: var(--konsole-tier-btn-bg);
  border: 1px solid var(--konsole-toolbar-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.vpid-mode-switch .vpid-tier-btn {
  cursor: default;
}

.vpid-tier-btn:hover:not(:disabled) {
  border-color: var(--color-timeframe-menu);
  color: var(--marcus-gold);
}

.vpid-tier-btn:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 1px;
}

.vpid-tier-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vpid-discovery-toolbar .vpid-tier-btn--on,
.vpid-discovery-toolbar .vpid-tier-btn[aria-pressed='true'] {
  color: var(--marcus-gold);
  border-color: var(--marcus-gold);
  background: var(--konsole-tier-btn-bg-active);
}

.vpid-tier-btn-wrap {
  display: inline-flex;
}

.vpid-title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.vpid-last-scan {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-muted);
}

.vpid-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.vpid-workspace-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}


.vpid-loading {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--input-radius);
  background: var(--scrollbar-track);
}

.vpid-loading-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.vpid-loading-label {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: var(--line-height-tight);
}

.vpid-loading-label--watchlist-hint {
  font-weight: 700;
  color: var(--marcus-gold);
}

.vpid-loading-hint-list {
  margin: 0;
  padding-left: 1.1em;
  list-style: disc;
}

.vpid-loading-hint-list li {
  font-weight: 700;
  color: var(--marcus-gold);
  line-height: 1.45;
}

.vpid-loading-track {
  height: var(--ic-range-track-height);
  border-radius: var(--ic-range-track-radius);
  background: var(--ic-range-track-bg);
  overflow: hidden;
}

.vpid-loading-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--ic-range-track-radius);
  background: var(--ic-range-thumb-bg);
  transition: width 0.15s ease-out;
}

.vpid-loading-bar--indeterminate {
  width: 40%;
  animation: vpid-loading-shimmer 1.2s ease-in-out infinite;
}

@keyframes vpid-loading-shimmer {
  0% {
    transform: translateX(-100%);
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(250%);
    opacity: 0.5;
  }
}

.vpid-grid-scroll--busy {
  pointer-events: none;
  position: relative;
}

.vpid-grid-scroll--busy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay-dark);
  pointer-events: none;
}

/* Loading with an empty grid: hide the body so the load bar is the only
   display â€” never a fake "0 tickers" grid while work is in flight. */
.vpid-grid-scroll--busy-empty {
  visibility: hidden;
}

.vpid-mode-switch__andon {
  margin-left: var(--space-1);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  color: var(--color-warn);
  font-weight: var(--font-weight-semibold);
}

/* Pro Konsole grid: frozen header + body scroll; scrollbar rail outside columns */
.vpid-grid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  /* --vpid-grid-cols: set from KONSOLE_COLUMNS in vpi-dashboard.js */
}

.vpid-grid-main {
  flex: 1;
  min-width: var(--konsole-table-min-width);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vpid-grid-rail {
  flex: 0 0 var(--scrollbar-width);
  background: var(--scrollbar-track);
  border-left: 1px solid var(--color-border);
}

.vpid-grid-header {
  flex-shrink: 0;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: var(--vpid-grid-cols);
  padding-right: var(--scrollbar-width);
  background-color: var(--color-bg);
  overflow-x: hidden; /* scrolled programmatically via JS, not by user drag */
}

.vpid-grid-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.vpid-grid-body {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: var(--vpid-grid-cols);
  overflow: visible;
  background: var(--color-bg);
}

.vpid-grid-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  box-sizing: border-box;
  height: var(--konsole-grid-row-height);
  align-items: stretch;
  column-gap: 0;
}

.vpid-grid-row--filter {
  background: var(--color-bg);
}

.vpid-grid-row--labels .vpid-grid-cell {
  align-items: flex-end;
  padding: 0 var(--space-4) var(--space-1);
  background: var(--marcus-slate);
  border-top: 1px solid var(--marcus-slate);
  border-right: 2px solid var(--marcus-slate-a85);
  border-bottom: 2px solid var(--marcus-slate-a85);
}

.vpid-grid-row--filter .vpid-grid-cell {
  padding: 0;
  border-top: none;
  align-items: stretch;
}

/* Filter row: remove right vertical divider only (â˜…, TIER, (R), Vol). */
.vpid-grid-row--filter .vpid-filter-cell--no-side-border {
  border-right: none;
}

/* Filter row: MC keeps its left vertical divider after TIER (identity reorder). */
.vpid-grid-row--filter .vpid-col-mc {
  border-left: 2px solid var(--marcus-slate-a85);
}
/* Filter row: SYMBOL (ticker) input keeps its left vertical divider after M. */
.vpid-grid-row--filter .vpid-col-ticker {
  border-left: 2px solid var(--marcus-slate-a85);
}

.vpid-filter-cell-title {
  display: block;
  font-size: var(--konsole-label-font-size);
  font-weight: var(--font-weight-bold);
  color: var(--marcus-cashmere) !important;
  letter-spacing: var(--konsole-label-letter-spacing);
  user-select: none;
  text-transform: uppercase;
}

.vpid-filter-holiday-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: var(--color-bg);
  border: none;
  box-sizing: border-box;
  border-radius: 0;
  padding: 0 var(--space-2);
  overflow: hidden;
  white-space: nowrap;
}

.vpid-filter-readonly-holiday {
  display: block;
  width: 100%;
  height: 100%;
  line-height: var(--konsole-grid-row-height);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  color: var(--marcus-gold);
  user-select: none;
}

.vpid-filter-readonly-holiday.vpid-bank-holiday-text--today {
  color: var(--color-warn);
}

.vpid-grid-row--filter .vpid-filter-input {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  background: var(--color-bg);
  border: none;
  box-sizing: border-box;
  border-radius: 0;
  padding: 0 var(--space-2);
  color: var(--color-text);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
}

.vpid-grid-row--filter .vpid-filter-input::placeholder {
  color: var(--color-text-muted);
}

.vpid-grid-row--filter .vpid-filter-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--marcus-gold);
}

.vpid-grid-row--filter .vpid-filter-input.vpid-filter-field--active {
  box-shadow: inset 0 0 0 1px var(--marcus-gold);
}

.vpid-empty-watchlist {
  grid-column: 1 / -1;
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
}

.vpid-empty-watchlist__title {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

.vpid-empty-watchlist__scan {
  margin-top: var(--space-3);
}

.vpid-empty-watchlist__hint {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  max-width: 36rem;
  margin-inline: auto;
}

.vpid-col-first,
.vpid-grid-cell.vpid-num-first {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  justify-content: center;
  text-align: center;
}

/* Column header row: 4H energy is the trailing column */
.vpid-grid-row--header .vpid-col-energy-4h {
  border-right: none;
}

.vpid-grid-energy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 18px;
}

.vpid-signal-score {
  font-family: var(--font-family-mono);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
  letter-spacing: 0;
  color: var(--color-text);
}

.vpid-grid-cell.vpid-col-z,
.vpid-grid-cell.vpid-col-fund-spark {
  justify-content: center;
  text-align: center;
}

.vpid-z-score,
.vpid-num-spr {
  font-family: var(--font-family-mono);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-xs);
  letter-spacing: 0;
  color: var(--color-text);
}

.vpid-grid-cell.vpid-col-spr,
.vpid-grid-cell.vpid-num-spr {
  justify-content: center;
  text-align: center;
}

.vpid-spr-inner {
  display: inline-flex;
  align-items: baseline;
}

.vpid-spr-prefix {
  width: 2ch;
  flex-shrink: 0;
  text-align: left;
}

.vpid-spr-value {
  width: 5ch;
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vpid-spr-wide { background: var(--marcus-salmon-a15); }

.vpid-grid-row--data {
  height: 52px;
}

.vpid-grid-cell.vpid-col-energy,
.vpid-grid-cell.vpid-col-energy-1h,
.vpid-grid-cell.vpid-col-energy-4h {
  padding-left: var(--space-1);
  padding-right: var(--space-1);
  justify-content: center;
  min-width: 0;
}

.vpid-grid-energy {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* EMA-stack Z KITT LED row — original advisory scan-dot geometry, colours by state */
.vpid-grid-energy .vpid-ema-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}
.vpid-grid-energy .led {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: var(--marcus-cashmere-a15);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.vpid-grid-energy .led.lit.bull {
  background: var(--marcus-fairway);
  box-shadow: 0 0 6px 1px rgba(107, 142, 107, 0.8);
}
.vpid-grid-energy .led.lit.bear {
  background: var(--marcus-burgundy);
  box-shadow: 0 0 6px 1px rgba(139, 26, 26, 0.8);
}
.vpid-grid-energy .led.lit.neutral {
  background: var(--marcus-cashmere);
  box-shadow: 0 0 5px 1px rgba(214, 205, 184, 0.5);
}
.vpid-grid-energy .led.lit.tip {
  background: var(--marcus-salmon);
  box-shadow: 0 0 7px 2px rgba(240, 128, 48, 0.95);
}
/* Energy EMA-Z LED strip filter (above headers): exact copy of the cell strip, clickable. */
.vpid-ema-led-filter .led {
  cursor: pointer;
}
.vpid-ema-led-filter .led:focus-visible {
  outline: 1px solid var(--marcus-gold);
  outline-offset: 1px;
}

.vpid-egy {
  display: block;
  width: 100%;
  height: 30px;
}

.vpid-egy-axis {
  stroke: rgba(214, 205, 184, 0.28);
  stroke-width: 1;
}

.vpid-egy-zero {
  stroke: rgba(214, 205, 184, 0.78);
  stroke-width: 1.5;
}

.vpid-egy-band--ext {
  fill: rgba(201, 168, 76, 0.28);
}

.vpid-egy-band--xtr {
  fill: rgba(166, 61, 61, 0.38);
}

.vpid-egy-bar {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.vpid-egy-bar--ext {
  stroke: var(--marcus-gold);
}

.vpid-egy-bar--xtr {
  stroke: #A63D3D;
}

.vpid-egy-bar--up {
  stroke: var(--marcus-fairway);
}

.vpid-egy-pip--quiet {
  fill: rgba(214, 205, 184, 0.82);
}

.vpid-egy-pip--ext {
  fill: var(--marcus-gold);
  stroke: #0A0A0A;
  stroke-width: 1;
}

.vpid-egy-pip--xtr {
  fill: #A63D3D;
  stroke: #0A0A0A;
  stroke-width: 1;
}

.vpid-egy-pip--up {
  fill: var(--marcus-fairway);
  stroke: #0A0A0A;
  stroke-width: 1;
}


.vpid-grid-cell.vpid-col-structure {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  justify-content: stretch;
}

.vpid-grid-structure {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 44px;
}

.vpid-structure-spark-wrap {
  width: 100%;
  min-width: 0;
  height: 44px;
}



.vpid-structure-spark {
  display: block;
  width: 100%;
  height: 18px;
}

.vpid-structure-candles {
  display: block;
  width: 100%;
  height: 44px;
}

.vpid-structure-candles .vpid-cdl-base {
  stroke: rgba(214, 205, 184, 0.45);
  stroke-width: 0.5;
  stroke-dasharray: 3 3;
}

.vpid-structure-candles line.vpid-cdl--up {
  stroke: var(--marcus-fairway);
  stroke-width: 1;
}

.vpid-structure-candles rect.vpid-cdl--up {
  fill: var(--marcus-fairway);
}

.vpid-structure-candles line.vpid-cdl--dn {
  stroke: var(--marcus-burgundy);
  stroke-width: 1;
}

.vpid-structure-candles rect.vpid-cdl--dn {
  fill: var(--marcus-burgundy);
}

.vpid-structure-candles rect.vpid-cdl--last {
  stroke: var(--marcus-cashmere);
  stroke-width: 0.75;
}

.vpid-structure-spark__line {
  fill: none;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.vpid-structure-spark__dot {
  stroke: none;
}

.vpid-structure-spark__line.vpid-structure--bull {
  stroke: var(--marcus-fairway);
}

.vpid-structure-spark__dot.vpid-structure--bull {
  fill: var(--marcus-fairway);
}

.vpid-structure-spark__line.vpid-structure--bear {
  stroke: var(--marcus-burgundy);
}

.vpid-structure-spark__dot.vpid-structure--bear {
  fill: var(--marcus-burgundy);
}

.vpid-structure-spark__line.vpid-structure--mixed {
  stroke: var(--marcus-salmon);
}

.vpid-structure-spark__dot.vpid-structure--mixed {
  fill: var(--marcus-salmon);
}

.vpid-grid-cell.vpid-col-fund-spark {
  padding-left: var(--space-1);
  padding-right: var(--space-1);
}

.vpid-spark-wrap {
  display: block;
  width: 100%;
  min-width: 0;
  outline: none;
}

.vpid-spark-wrap:focus-visible {
  box-shadow: 0 0 0 2px var(--marcus-gold-a45);
  border-radius: 2px;
}

.vpid-spark {
  display: block;
  width: 100%;
  height: 18px;
  fill: none;
  overflow: visible;
}

.vpid-spark__line {
  fill: none;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke: var(--marcus-cashmere-a62);
  stroke-linejoin: round;
  stroke-linecap: round;
}

.vpid-spark__line.vpid-spark__line--pos {
  stroke: var(--marcus-fairway);
}

.vpid-spark__line.vpid-spark__line--neg {
  stroke: var(--marcus-burgundy);
}

.vpid-spark-tt--history {
  margin-bottom: 0;
}

.vpid-spark-tt--history .vpid-funding-spark-tt__th-rate,
.vpid-spark-tt--history tbody td:nth-child(2) {
  text-align: right;
  font-family: var(--font-family-mono);
  font-variant-numeric: tabular-nums;
}

.vpid-funding-spark-tt__meta-wrap {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--marcus-gold-a35);
}

.vpid-funding-spark-tt--meta {
  table-layout: fixed;
  width: 100%;
}

.vpid-funding-spark-tt--meta .vpid-funding-spark-tt__label {
  width: 6.75rem;
  padding-right: var(--space-3);
  color: var(--marcus-cashmere-a62);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  vertical-align: middle;
}

.vpid-funding-spark-tt--meta .vpid-funding-spark-tt__value {
  font-family: var(--font-family-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

.vpid-funding-spark-tt__next {
  display: inline-block;
  min-width: 8ch;
  color: var(--marcus-gold);
  font-weight: var(--font-weight-medium);
  text-align: right;
}

.vpid-funding-spark-tt__interval {
  display: inline-block;
  min-width: 2.25rem;
  margin-left: var(--space-2);
  color: var(--marcus-cashmere-a62);
  font-family: var(--font-family);
  font-size: var(--konsole-label-font-size);
  text-align: left;
}

.vpid-konsole-tooltip--funding-spark .vpid-konsole-tooltip__body--html {
  min-width: 16.5rem;
}

@keyframes konsole-tooltip-enter {
  0% {
    transform: translateY(4px);
    opacity: 0;
    filter: drop-shadow(0 0 0 transparent);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: drop-shadow(var(--konsole-tooltip-drop));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .vpid-konsole-tooltip.vpid-konsole-tooltip--funding-spark:not([hidden]) {
    animation: konsole-tooltip-enter 0.18s ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vpid-konsole-tooltip.vpid-konsole-tooltip--funding-spark:not([hidden]) {
    animation: none;
    transform: none;
    filter: none;
  }
  .vpid-mode-pilot__thumb,
  .vpid-mode-pilot__track,
  .vpid-mode-start {
    transition: none;
  }
}

.vpid-grid-row--header [role="columnheader"] {
  cursor: pointer;
}

.vpid-grid-cell {
  padding: 0 var(--space-4);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  line-height: 1;
  --vpid-cell-fg: var(--color-text);
  color: var(--vpid-cell-fg);
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  border-right: 2px solid var(--marcus-slate-a85);
  border-bottom: 2px solid var(--marcus-slate-a85);
  min-width: 0;
}

/* P / Vol body values â€” tight padding so values are not clipped */
.vpid-grid-cell.vpid-num-p,
.vpid-grid-cell.vpid-num-vol,
.vpid-grid-cell.vpid-num-ewma {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  justify-content: center;
  text-align: center;
  text-overflow: clip;
}

/* Raw RiskMetrics EWMA variance â€” dim context read on every session. */
.vpid-grid-cell.vpid-num-ewma {
  font-size: 11px;
  color: var(--marcus-cashmere-a40);
}

.vpid-grid-cell.vpid-num-p,
.vpid-grid-cell.vpid-num-vmc,
.vpid-grid-cell.vpid-num-volgk,
.vpid-grid-cell.vpid-num-r {
  justify-content: stretch;
  overflow: hidden;
}

.vpid-ink-barcell {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.vpid-ink-track {
  position: relative;
  height: 16px;
  background: rgba(214, 205, 184, 0.18);
  flex: 1 1 auto;
  min-width: 0;
}

.vpid-ink-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(214, 205, 184, 0.62);
}

.vpid-ink-fill--gold {
  background: var(--marcus-gold);
}

.vpid-ink-fill--warn {
  background: var(--marcus-salmon);
}

.vpid-ink-fill--dead {
  opacity: 0.45;
}

.vpid-ink-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: rgba(214, 205, 184, 0.62);
}

.vpid-ink-tick--btc {
  width: 2px;
  background: var(--marcus-gold);
}

.vpid-ink-tick--danger {
  width: 2px;
  background: var(--marcus-salmon);
}

.vpid-ink-muted {
  font-family: var(--font-family-mono);
  font-size: 10px;
  color: var(--marcus-cashmere-a40);
  flex: 0 0 auto;
}

.vpid-ink-bi {
  position: relative;
  height: 16px;
  background: rgba(214, 205, 184, 0.18);
  flex: 1 1 auto;
  min-width: 0;
}

.vpid-ink-bi__mid {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--marcus-cashmere-a40);
}

.vpid-ink-bi__arm {
  position: absolute;
  top: 3px;
  height: 10px;
  background: rgba(214, 205, 184, 0.62);
}

.vpid-ink-bi__arm--inv {
  background: var(--marcus-burgundy);
}

/* 24h Turnover â€” Volume / Market Cap spectrum (24h USD volume Ã· market cap). */
.vpid-grid-cell.vpid-num-vmc,
.vpid-grid-cell.vpid-num-volgk {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  text-align: center;
}

/* AVOL â€” tight padding so the value ("100%", 5 mono chars â‰ˆ 36px) fits the
   7ch track with the default 16px side padding removed. */
.vpid-grid-cell.vpid-num-avol {
  padding-left: var(--space-1);
  padding-right: var(--space-1);
  justify-content: center;
  text-align: center;
}

.vpid-grid-cell.vpid-structure-chg--up {
  color: var(--marcus-fairway);
}

.vpid-grid-cell.vpid-structure-chg--dn {
  color: var(--marcus-burgundy);
}

.vpid-grid-cell.vpid-structure-chg--flat {
  color: var(--marcus-cashmere-a62);
}
.vpid-vmc-illiquid {
  color: var(--marcus-cashmere-a40);
}
.vpid-vmc-healthy {
  color: var(--marcus-fairway);
}
.vpid-vmc-high {
  color: var(--marcus-gold);
}
.vpid-vmc-hyper {
  color: var(--marcus-salmon);
}
.vpid-vmc-extreme {
  color: var(--marcus-burgundy);
  font-weight: var(--font-weight-bold);
}
.vpid-vmc-switch {
  color: var(--marcus-cashmere-a40);
  font-style: italic;
  letter-spacing: 0.04em;
}
.vpid-vmc-loading {
  color: var(--marcus-cashmere-a40);
}

.vpid-grid-cell:first-child {
  border-left: 2px solid var(--marcus-slate-a85);
}



.vpid-grid-row--header .vpid-grid-cell {
  border-top: none !important;
  background: var(--marcus-slate);
  color: var(--marcus-cashmere);
  font-family: var(--font-family-mono);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--konsole-label-letter-spacing);
  font-size: var(--konsole-label-font-size);
  padding-top: 0;
  padding-bottom: 0;
}

.vpid-grid-row--header .vpid-konsole-th-label {
  cursor: pointer;
  outline: none;
}

.vpid-grid-row--header .vpid-konsole-th-label:focus-visible {
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--marcus-gold-a45);
}

.vpid-grid-row--header .vpid-col-z,
.vpid-grid-row--header .vpid-col-z .vpid-konsole-th-label {
  text-transform: none;
}

.vpid-konsole-tooltip {
  position: fixed;
  z-index: var(--konsole-tooltip-z-index);
  box-sizing: border-box;
  max-width: var(--konsole-tooltip-max-width);
  padding: var(--konsole-tooltip-padding);
  border: var(--konsole-tooltip-border);
  border-radius: var(--konsole-tooltip-radius);
  background: var(--konsole-tooltip-bg);
  box-shadow: var(--konsole-tooltip-shadow);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
}

@media (prefers-reduced-motion: no-preference) {
  .vpid-konsole-tooltip:not(.vpid-konsole-tooltip--funding-spark) {
    transition: opacity 0.12s ease;
  }
}

.vpid-konsole-tooltip[hidden] {
  display: none !important;
  opacity: 0;
}

.vpid-konsole-tooltip:not([hidden]) {
  opacity: 1;
}

.vpid-konsole-tooltip__heading {
  margin: 0;
  color: var(--konsole-tooltip-heading-color);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--konsole-label-letter-spacing);
  font-size: var(--konsole-label-font-size);
}

.vpid-konsole-tooltip__heading--case-preserve {
  text-transform: none;
}

.vpid-konsole-tooltip__body {
  margin: 0;
  color: var(--konsole-tooltip-color);
  overflow-wrap: break-word;
}

.vpid-konsole-tooltip__body--multiline {
  white-space: pre-wrap;
  max-height: min(40vh, 20rem);
  overflow-y: auto;
}

.vpid-konsole-tt-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--konsole-tooltip-color);
  font-family: var(--font-family);
}

.vpid-konsole-tt-table th,
.vpid-konsole-tt-table td {
  padding: var(--space-1) var(--space-3) var(--space-1) 0;
  text-align: left;
  vertical-align: top;
}

.vpid-konsole-tt-table th {
  color: var(--marcus-cashmere-a62);
  font-weight: var(--font-weight-medium);
  font-size: var(--konsole-label-font-size);
  letter-spacing: var(--konsole-label-letter-spacing);
  text-transform: uppercase;
}

.vpid-konsole-tt-table td:first-child {
  font-family: var(--font-family-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vpid-watch-cell,
.vpid-grid-cell.vpid-col-market,
.vpid-grid-cell.vpid-col-tier {
  justify-content: center;
  text-align: center;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.vpid-watch-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
}

.vpid-watch-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--marcus-gold-a45);
}

.vpid-watch-btn[aria-pressed="true"] {
  color: var(--marcus-gold);
}

.vpid-market-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--marcus-cashmere-a40); /* translucent cashmere default */
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  line-height: 1;
  cursor: pointer;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.vpid-market-btn:hover:not(:disabled) {
  color: var(--marcus-cashmere);
  border-color: var(--marcus-cashmere-a40);
}
.vpid-market-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--marcus-gold-a45);
}
.vpid-market-btn[aria-pressed="true"] {
  color: var(--marcus-gold); /* patekke gold — the identity accent for selected */
  border-color: var(--marcus-gold);
  background: var(--marcus-gold-a10);
}

.vpid-grid-row--header .vpid-col-watch.vpid-watch-header--sort .vpid-konsole-th-label,
.vpid-grid-row--header .vpid-col-watch.vpid-watch-header--filter .vpid-konsole-th-label,
.vpid-grid-row--header .vpid-col-energy-1h.vpid-watch-header--sort .vpid-konsole-th-label,
.vpid-grid-row--header .vpid-col-energy-1h.vpid-watch-header--filter .vpid-konsole-th-label,
.vpid-grid-row--header .vpid-col-energy-4h.vpid-watch-header--sort .vpid-konsole-th-label,
.vpid-grid-row--header .vpid-col-energy-4h.vpid-watch-header--filter .vpid-konsole-th-label {
  color: var(--marcus-gold);
}

.vpid-grid-row--header .vpid-col-watch.vpid-watch-header--filter,
.vpid-grid-row--header .vpid-col-energy-1h.vpid-watch-header--filter,
.vpid-grid-row--header .vpid-col-energy-4h.vpid-watch-header--filter {
  box-shadow: inset 0 0 0 1px var(--marcus-gold);
}

.vpid-grid-row--header .vpid-col-tier.vpid-tier-header--sort .vpid-konsole-th-label,
.vpid-grid-row--header .vpid-col-tier.vpid-tier-header--filter .vpid-konsole-th-label {
  color: var(--marcus-gold);
}

.vpid-grid-row--header .vpid-col-tier.vpid-tier-header--filter {
  box-shadow: inset 0 0 0 1px var(--marcus-gold);
}

.vpid-tier-cell {
  font-family: var(--font-family);
}

.vpid-badge {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.vpid-badge-a {
  color: var(--color-vpi-tier-a);
}

.vpid-badge-b {
  color: var(--color-vpi-tier-b);
}

.vpid-badge-c {
  color: var(--color-vpi-tier-c);
}

.vpid-tier-empty {
  display: none;
}

/* Body-only: the ticker cell holds the full-bleed ticker button. Scoped so the
   labels row (SYMBOL) and the header row (Ticker) keep their own padding and
   vertical alignment. */
.vpid-grid-row--data .vpid-grid-cell.vpid-col-ticker {
  padding: 0;
  cursor: default;
  display: flex;
  align-items: center;
}

.vpid-ticker-btn {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
  min-height: var(--konsole-grid-row-height);
  margin: 0;
  padding: 0 var(--space-4);
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-family-mono);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xs);
  line-height: 1;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vpid-ticker-btn:hover {
  color: var(--marcus-gold);
}

.vpid-ticker-btn:focus-visible {
  outline: 2px solid var(--marcus-gold-a45);
  outline-offset: -2px;
}

.vpid-ticker {
  font-family: var(--font-family-mono);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xs);
  line-height: 1;
}


.vpid-guidance-cell {
  font-family: var(--font-family);
  font-size: var(--font-size-xs);
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: var(--line-height-normal);
  vertical-align: top;
}

.vpid-age-young {
  color: var(--color-success);
}

.vpid-age-mid {
  color: var(--color-timeframe-menu);
}

.vpid-age-old {
  color: var(--color-danger);
}

.vpid-error {
  padding: var(--space-3);
  color: var(--color-danger);
  font-size: var(--font-size-xs);
}

/* IC Konsole â€” funding & 4H regime (tokens only; plan Â§5) */
.vpid-ic-funding {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.vpid-ic-funding-countdown {
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.vpid-ic-funding-sep {
  color: var(--color-text-muted);
}

.vpid-ic-funding--pos {
  color: var(--color-vpi-funding-positive);
}

.vpid-ic-funding--neg {
  color: var(--color-vpi-funding-negative);
}

.vpid-ic-regime {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.vpid-ic-regime--bull {
  color: var(--color-vpi-regime-bull);
}

.vpid-ic-regime--bear {
  color: var(--color-vpi-regime-bear);
}

.vpid-ic-regime--flat {
  color: var(--color-vpi-regime-flat);
}

/* IC Konsole â€” app-notification toasts (Rust plays sound) */
.ic-notification-toast-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.ic-notification-toast {
  pointer-events: auto;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm, 13px);
  font-weight: var(--font-weight-semibold, 600);
  box-shadow: 0 4px 16px var(--marcus-black-a35);
}
/* TradFi session recommend + market chip + AVOL */
/* TradFi market chip â€” instrument-class marker. Gold = the identity accent
   (Bloomberg yellow/interactive role); fairway is reserved for UP only. */
.vpid-grid-cell.vpid-col-market {
  display: flex;
  align-items: center;
}
.vpid-market-chip {
  font-family: var(--font-family-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--marcus-gold);
  background: rgba(var(--marcus-gold-rgb), 0.14);
  border: 1px solid rgba(var(--marcus-gold-rgb), 0.42);
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
  padding: 1px 4px;
}

/* Session pills â€” one language for header filter and body primary:
   amber = on, grey = off (Bloomberg monitor selected vs idle). */
.vpid-grid-cell.vpid-col-sess {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 3px;
  padding: 0 2px;
}
.vpid-session-rec {
  font-family: var(--font-family-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
  padding: 1px 4px;
  line-height: inherit;
  height: auto;
  color: var(--marcus-cashmere-a40);
  background: transparent;
  border: 1px solid transparent;
}
.vpid-session-rec.is-on {
  color: var(--marcus-cashmere);
  font-weight: 600;
  border-color: transparent;
  background: transparent;
}
.vpid-sess-header-badge {
  cursor: pointer;
}
.vpid-sess-header-badge.is-on {
  color: var(--marcus-gold);
  font-weight: 700;
  border-color: rgba(var(--marcus-gold-rgb), 0.45);
  background: rgba(var(--marcus-gold-rgb), 0.12);
}
.vpid-sess-header-badge:hover {
  color: var(--marcus-cashmere);
  border-color: var(--marcus-cashmere-a62);
}
.vpid-sess-header-badge.is-on:hover {
  color: var(--marcus-gold);
  border-color: rgba(var(--marcus-gold-rgb), 0.62);
}
.vpid-sess-hover {
  min-width: 150px;
}
.vpid-sess-hover > table {
  margin-top: 4px;
}
.vpid-sess-hover tr.is-on td {
  color: var(--marcus-cashmere);
}
/* AVOL severity (SMB "pre-market + extended hours % AVOL", Ã· 21-day RTH ADV):
   < 20% muted cashmere shade Â· 20â€“50% normal cashmere data text Â·
   50â€“100% gold (patekke, in play) Â· â‰¥ 100% salmon (warning/extreme).
   Burgundy stays reserved for down moves; fairway for up moves. */
.vpid-avol-muted { color: var(--marcus-cashmere-a40); }
.vpid-avol-normal { color: var(--marcus-cashmere); }
.vpid-avol-gold { color: var(--marcus-gold); }
.vpid-avol-salmon { color: var(--marcus-salmon); font-weight: 500; }
.vpid-share-bar { min-width: 160px; }
.vpid-share-row { display: flex; align-items: center; gap: 6px; margin: 2px 0; font-size: 11px; }
.vpid-share-tag { width: 26px; color: var(--marcus-cashmere); }
.vpid-share-track { flex: 1; height: 8px; background: var(--marcus-cashmere-a15); border-radius: 4px; overflow: hidden; }
.vpid-share-fill { display: block; height: 100%; background: var(--marcus-cashmere-a62); }
.vpid-share-row--primary .vpid-share-fill { background: var(--marcus-fairway); }
.vpid-share-row--rec .vpid-share-fill { background: var(--marcus-gold); }
.vpid-share-pct { width: 34px; text-align: right; color: var(--marcus-cashmere); }
.vpid-share-note { margin-top: 4px; font-size: 10px; color: var(--marcus-cashmere-a62); }
.vpid-share-recommend { margin-bottom: 4px; font-size: 11px; font-weight: 700; color: var(--marcus-fairway); }
/* PR H2 â€” energy cell HUD: â–²/â–¼ triangle (50/200 direction) + Z_Macro number.
   Green = bull (fairway), red = bear (burgundy); number dimmed cashmere,
   salmon when extreme (|Z_Macro| â‰¥ 3Ïƒ). Marcus tokens only. */
.vpid-egy-hud {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vpid-egy-tri {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.vpid-egy-tri--up {
  border-bottom: 6px solid var(--marcus-fairway);
}
.vpid-egy-tri--down {
  border-top: 6px solid var(--marcus-burgundy);
}
.vpid-egy-tri--flat {
  border-top: 3px solid var(--marcus-cashmere-a40);
  border-bottom: none;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.vpid-egy-num {
  font-family: var(--font-family-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--marcus-cashmere-a40);
  white-space: nowrap;
}
.vpid-egy-num--extreme {
  color: var(--marcus-salmon);
}


/* Konsole color dot + right-click menu (same visual language as the watchlist) */
.vpid-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: var(--space-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.vpid-color-dot[hidden] {
  display: none;
}
.vpid-color-menu {
  position: fixed;
  z-index: 1000;
  min-width: 132px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--input-radius);
  box-shadow: var(--shadow-dropdown);
  padding: var(--space-1);
  display: flex;
  flex-direction: column;
}
.vpid-color-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
}
.vpid-color-item:hover {
  background: var(--color-accent-subtle);
}
.vpid-color-item.selected,
.vpid-color-item.auto-on {
  color: var(--marcus-gold);
}
.vpid-color-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vpid-color-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-1) 0;
}
