/* Markets → Stocks → Predictions Deep Dive (prediction_intelligence) */

.pri-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pri-hdr .section-title { margin-bottom: 0; }
.pri-hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.predictions-ai-meta { display: flex; align-items: center; }
.predictions-ai-meta[hidden] { display: none; }
.predictions-ai-meta .cc-meta { margin: 0; }
#predictions-view-switcher { margin: 0; }
#predictions-view-switcher .wl-view-btn .ta-brain-icon { margin: 0; filter: none; }
#predictions-view-switcher .wl-view-btn.active .ta-brain-icon { color: inherit; filter: none; }
html[data-theme="light"] #predictions-view-switcher { background: var(--bg-hover); }

.pri-root { display: flex; flex-direction: column; gap: 18px; }
.pri-h2 {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.pri-prose {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.pri-why {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.pri-muted { font-size: 12px; color: var(--text-muted); }
.pri-name { font-size: 13px; font-weight: 650; color: var(--text-primary); }

.pri-spot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pri-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.pri-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
}
.pri-card-b { padding: 0 14px 14px; }
.pri-quad-bar { height: 8px; width: 100%; }
.pri-tone-accel_up,
.pri-tone-confirm { background: var(--gain); }
.pri-tone-decel_up { background: var(--gain); opacity: 0.4; }
.pri-tone-accel_down,
.pri-tone-contradict { background: var(--loss); }
.pri-tone-decel_down { background: var(--loss); opacity: 0.4; }

.pri-stock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pri-logo {
  object-fit: contain;
  background: #e8ecf0;
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
}

.pri-pill {
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.pri-pill-on {
  color: var(--accent-primary);
  border-color: rgba(14, 116, 144, 0.45);
}
html[data-theme="dark"] .pri-pill-on {
  border-color: rgba(0, 240, 255, 0.45);
}

.pri-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pri-tab {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.pri-tab.active {
  color: var(--accent-primary);
  border-color: rgba(14, 116, 144, 0.45);
}
html[data-theme="dark"] .pri-tab.active {
  border-color: rgba(0, 240, 255, 0.45);
}
.pri-tab:disabled { opacity: 0.4; cursor: default; }

.pri-delta, .pri-pace-bars { display: flex; flex-direction: column; gap: 6px; }
.pri-delta-track, .pri-pbar-track {
  height: 12px;
  width: 100%;
  background: var(--bg-hover);
  display: flex;
}
.pri-pbar-track { height: 10px; }
.pri-delta-fill, .pri-pbar-fill { height: 100%; min-width: 6px; }
.pri-up { background: var(--gain); }
.pri-down { background: var(--loss); }
.pri-up-t { color: var(--gain); font-weight: 650; }
.pri-down-t { color: var(--loss); font-weight: 650; }
.pri-delta-cap, .pri-pbar-cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.pri-delta-pill { display: flex; justify-content: flex-end; }

.pri-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 14px;
}
.pri-pair .pri-pair-col { min-width: 0; }
.pri-pair-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-secondary);
}
.pri-pair-mark.pri-vs { color: var(--loss); }

@media (max-width: 720px) {
  .pri-spot { grid-template-columns: 1fr; }
  .pri-pair { grid-template-columns: 1fr; }
}
