/* Shared Home aesthetic. Keep layout, entitlement and chart behavior in their
   owning modules. Specificity also covers the deferred Analytics stylesheet. */
:root {
  --volt-surface: linear-gradient(120deg, #141326, #081927 70%);
  --volt-line: #27364f;
  --volt-muted: #aabbd1;
  --volt-radius: 20px;
  --volt-inset: inset 3px 0 #a970ff55;
  --pink: #ff3fa4;
  --teal: #08d8d1;
  --yellow: #ffd64a;
}

/* Home is the reference for both marketplace and older operational surfaces. */
body .shell :is(.panel, .toolbar, .auth-gate),
body #marketplaceView.marketplace .vm-panel {
  background: var(--volt-surface);
  border: 1px solid var(--volt-line);
  border-radius: var(--volt-radius);
  box-shadow: var(--volt-inset);
  padding: 22px;
}
/* This component previously pinned a separate theme with important declarations. */
body #marketplaceView.marketplace .vm-analytics-summary {
  background: var(--volt-surface) !important;
  border-color: var(--volt-line) !important;
  padding: 22px !important;
}
body #marketplaceView.marketplace .vm-page-title h1 {
  color: #f2f5ff;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
}
body #marketplaceView.marketplace .vm-heading h2,
body .shell .compact-show-page-heading h2,
body .shell .panel-heading h2,
body .shell .panel > h2 {
  color: var(--pink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body #marketplaceView.marketplace :is(.vm-note, .vm-analytics-intro),
body .shell :is(.result-range, .stat-label) {
  color: var(--volt-muted);
  line-height: 1.5;
}
body #marketplaceView.marketplace .vm-note { font-size: 12px; }

/* Nested metric cards share Home's three quiet accent washes. Numeric signs
   retain their existing semantic colors; accents don't imply performance. */
body #marketplaceView.marketplace :is(.vm-kpi, .vm-analytics-card),
body .shell .stat-card {
  border-radius: 12px;
  border: 1px solid #473765;
  background: linear-gradient(125deg, #a970ff18, #091827);
  box-shadow: none;
}
body #marketplaceView.marketplace :is(.vm-kpi:nth-child(3n + 1), .vm-analytics-card[data-accent="pink"]) {
  border-color: #62305b;
  background: linear-gradient(125deg, #ff3fa414, #091827);
}
body #marketplaceView.marketplace :is(.vm-kpi:nth-child(3n), .vm-analytics-card[data-accent="teal"]) {
  border-color: #155365;
  background: linear-gradient(125deg, #08d8d114, #091827);
}
body #marketplaceView.marketplace .vm-analytics-card[data-accent="yellow"] {
  border-color: #64562e;
  background: linear-gradient(125deg, #ffd64a12, #091827);
}
body #marketplaceView.marketplace .vm-analytics-card-value {
  color: inherit;
  font-size: clamp(23px, 2.35vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
body #marketplaceView.marketplace .vm-analytics-card h3,
body #marketplaceView.marketplace .vm-kpi span {
  color: #e1e9f7;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
}
body #marketplaceView.marketplace .vm-analytics-card::after { display: none; }
body #marketplaceView.marketplace .vm-analytics-icon { box-shadow: none; }
body #marketplaceView.marketplace .vm-analytics-card:hover { transform: none; }
body #marketplaceView.marketplace :is(.vm-result-row, .vm-signal-row, .vm-analytics-row),
body #marketplaceView.marketplace .vm-personal-capability {
  background: linear-gradient(120deg, #111929, #081927);
  border-color: var(--volt-line);
  border-radius: 12px;
}
body #marketplaceView.marketplace :is(.vm-button, .vm-search),
body .shell :is(.btn-ghost, .filter) {
  border-color: #28445b;
  border-radius: 10px;
}
body #marketplaceView.marketplace :is(.vm-segments, .vm-tabs) {
  border-color: var(--volt-line);
  background: #081927;
  border-radius: 12px;
}
body #marketplaceView.marketplace:has(.vm-analytics-content) .vm-analytics-intents button[data-intent].is-active {
  color: white;
  background: linear-gradient(105deg, #ff3fa4, #a970ff 48%, #08d8d1);
  box-shadow: none;
}
body #marketplaceView.marketplace :is(.vm-range, .vm-metric-switch, .vm-sort) .is-active {
  border-color: var(--teal);
}
body #marketplaceView.marketplace :is(.vm-button, .vm-search):focus-visible,
body .shell :is(.btn, .filter):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
@media (hover: hover) {
  body #marketplaceView.marketplace :is(.vm-result-row, .vm-signal-row, .vm-analytics-row):hover {
    border-color: #08d8d180;
  }
}
@media (max-width: 640px) {
  body .shell :is(.panel, .toolbar, .auth-gate),
  body #marketplaceView.marketplace .vm-panel {
    padding: 14px;
    border-radius: 16px;
  }
  body #marketplaceView.marketplace .vm-analytics-summary { padding: 14px !important; }
  body #marketplaceView.marketplace .vm-page-title h1 { font-size: 20px; }
  body #marketplaceView.marketplace .vm-heading h2,
  body .shell .panel-heading h2 { font-size: 13px; letter-spacing: .12em; }
  body #marketplaceView.marketplace .vm-analytics-card-value { font-size: clamp(22px, 6vw, 30px); }
}

/* Tracking's operational cards keep their state indicators and action layout. */
body #trackingShowsView .compact-show-card-v324,
body [data-admin-tracking-saved-shows] .compact-show-card {
  background: var(--volt-surface);
  border-radius: 16px;
}

/* One continuous color field per navigation group, never a restarted gradient
   inside every button. Inactive surfaces dim their part of that same field. */
body #marketplaceView.marketplace :is(.vm-segments, .vm-tabs),
body .vm-nav .vm-nav-links {
  background: linear-gradient(90deg, #ff3fa4 0%, #9478b3 50%, #08d8d1 100%);
  padding: 2px;
  gap: 2px;
  border: 0;
  border-radius: 12px;
}
body #marketplaceView.marketplace :is(.vm-segments, .vm-tabs) {
  display: flex;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 0 10px;
}
body #marketplaceView.marketplace :is(.vm-segments, .vm-tabs) > button,
body .vm-nav .vm-nav-links > .vm-nav-link {
  background: #090d1ae6;
  color: #e1e9f7;
  border: 0;
  box-shadow: none;
  border-radius: 9px;
}
body #marketplaceView.marketplace :is(.vm-segments, .vm-tabs) > button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 8px 5px;
  font-size: 12px;
  white-space: normal;
}
body #marketplaceView.marketplace:has(.vm-analytics-content) .vm-analytics-intents button[data-intent].is-active,
body #marketplaceView.marketplace :is(.vm-segments, .vm-tabs) > button.is-active,
body .vm-nav .vm-nav-links > .vm-nav-link.is-active {
  background: transparent;
  color: #081322;
  font-weight: 750;
  box-shadow: inset 0 0 0 1px #ffffff50;
}
body #marketplaceView.marketplace .vm-page-title {
  margin: 4px 0 14px;
}
body #marketplaceView.marketplace .vm-page-title h1 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.5;
  color: var(--pink);
  text-transform: uppercase;
}
body #marketplaceView.marketplace .vm-analytics-intro {
  margin: -6px 0 12px;
  font-size: 12px;
}
body #marketplaceView.marketplace .vm-analytics-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
body #marketplaceView.marketplace .vm-profile-head { margin-top: 0; }
body #trackingShowsView .compact-show-page-heading h2 {
  color: var(--pink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
}
@media (min-width: 721px) {
  body .vm-nav .vm-nav-links {
    background: linear-gradient(180deg, #ff3fa4 0%, #9478b3 50%, #08d8d1 100%);
  }
}
@media (max-width: 720px) {
  body #marketplaceView.marketplace .vm-tabs > button { font-size: 10px; }
  body .vm-nav .vm-nav-links > .vm-nav-link { border-radius: 7px; }
}
