/* RESEARCH slide-over (2026-11-01) — per-symbol research panel.
   Desktop: right-anchored slide-over, the chart stays visible behind
   it (no blank spaces). Phone (<=760px): the same surface becomes a
   full-screen vertical scroll. All visuals are our own — the Vortex
   read renders as a score bar + signal chip, never a vendor gauge. */

.csb-research-btn {
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid #2ea043;
  border-radius: 6px;
  background: rgba(46, 160, 67, 0.12);
  color: #3fb950;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
}
.csb-research-btn:hover { background: rgba(46, 160, 67, 0.28); color: #56d364; }

.mvr-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(560px, 94vw);
  background: #0d1117;
  color: #e6edf3;
  border-left: 1px solid #30363d;
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.55);
  z-index: 1300;
  transform: translateX(106%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.mvr-panel.open { transform: translateX(0); }

.mvr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #21262d;
  flex: 0 0 auto;
}
.mvr-title { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: #8b949e; }
.mvr-close {
  border: 1px solid #30363d;
  background: #161b22;
  color: #e6edf3;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.mvr-close:hover { border-color: #f85149; color: #f85149; }

.mvr-body { overflow-y: auto; padding: 14px 16px 28px; flex: 1 1 auto; }
.mvr-loading, .mvr-error { padding: 28px 6px; color: #8b949e; font-size: 14px; }

.mvr-sym-name { font-size: 20px; font-weight: 700; line-height: 1.25; }
.mvr-sym-sub { font-size: 12px; color: #8b949e; margin-top: 2px; letter-spacing: 0.04em; }
.mvr-px-row { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.mvr-px { font-size: 30px; font-weight: 700; }
.mvr-chg { font-size: 15px; font-weight: 600; }
.mvr-chg.up { color: #3fb950; }
.mvr-chg.down { color: #f85149; }
.mvr-ext { font-size: 12px; color: #8b949e; width: 100%; }
.mvr-asof { font-size: 11px; color: #6e7681; margin-top: 4px; }

.mvr-section { margin-top: 22px; }
.mvr-section h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #8b949e;
  margin: 0 0 10px;
  font-weight: 700;
}
.mvr-note { font-size: 11px; color: #6e7681; margin-top: 8px; line-height: 1.5; }

.mvr-ranges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.mvr-range-btn {
  border: 1px solid #30363d;
  background: #161b22;
  color: #c9d1d9;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.mvr-range-btn.active { border-color: #2ea043; color: #3fb950; background: rgba(46, 160, 67, 0.12); }
.mvr-range-btn:disabled { opacity: 0.35; cursor: default; }
.mvr-chart { width: 100%; height: 140px; display: block; }

.mvr-signal {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #21262d;
  color: #e6edf3;
}
.mvr-signal.call { background: rgba(46, 160, 67, 0.18); color: #3fb950; border: 1px solid #2ea043; }
.mvr-signal.put { background: rgba(248, 81, 73, 0.14); color: #f85149; border: 1px solid #f85149; }
.mvr-score-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; }
.mvr-score-row .lbl { width: 38px; color: #8b949e; font-weight: 700; }
.mvr-score-track { flex: 1; height: 10px; background: #21262d; border-radius: 5px; overflow: hidden; }
.mvr-score-fill { height: 100%; border-radius: 5px; }
.mvr-score-fill.call { background: #2ea043; }
.mvr-score-fill.put { background: #f85149; }
.mvr-score-val { width: 40px; text-align: right; font-weight: 700; }
.mvr-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: 13px; }
.mvr-levels .k { color: #8b949e; }
.mvr-levels .v { text-align: right; font-weight: 600; }
.mvr-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.mvr-chip {
  font-size: 11px;
  border: 1px solid #30363d;
  border-radius: 999px;
  padding: 3px 9px;
  color: #c9d1d9;
  background: #161b22;
}
.mvr-chip b { color: #e6edf3; }
.mvr-placard {
  border: 1px dashed #8b949e;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: #c9d1d9;
  text-align: center;
  letter-spacing: 0.04em;
}

.mvr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.mvr-stat .k { font-size: 11px; color: #8b949e; letter-spacing: 0.03em; }
.mvr-stat .v { font-size: 16px; font-weight: 700; margin-top: 2px; }
.mvr-stat .s { font-size: 11px; color: #6e7681; margin-top: 1px; line-height: 1.4; }

.mvr-next { border: 1px solid #21262d; border-radius: 8px; padding: 10px 12px; background: #161b22; font-size: 13px; line-height: 1.6; }
.mvr-next b { color: #e6edf3; }
.mvr-next .dim { color: #8b949e; }

.mvr-bars { display: flex; align-items: stretch; gap: 4px; height: 150px; margin-top: 6px; }
.mvr-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mvr-col-plot { position: relative; flex: 1; }
.mvr-bar { position: absolute; border-radius: 2px 2px 0 0; }
.mvr-bar.rev { background: #2f81f7; }
.mvr-bar.ni { background: #3fb950; }
.mvr-bar.ni.neg { background: #f85149; }
.mvr-bar.eps { background: #2f81f7; left: 22%; width: 56%; }
.mvr-bar.eps.neg { background: #f85149; }
.mvr-col-lbl { font-size: 10px; color: #8b949e; text-align: center; margin-top: 5px; white-space: nowrap; overflow: hidden; }
.mvr-col-sub { font-size: 10px; color: #6e7681; text-align: center; white-space: nowrap; }
.mvr-legend { display: flex; gap: 14px; font-size: 11px; color: #8b949e; margin-top: 8px; }
.mvr-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.mvr-toggle { display: flex; gap: 6px; margin-bottom: 4px; }
.mvr-toggle button {
  border: 1px solid #30363d; background: #161b22; color: #c9d1d9;
  border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.mvr-toggle button.active { border-color: #2ea043; color: #3fb950; }

.mvr-div { font-size: 14px; line-height: 1.6; color: #c9d1d9; }
.mvr-about { font-size: 13px; }
.mvr-about .row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid #161b22; }
.mvr-about .k { color: #8b949e; }
.mvr-about .v { text-align: right; font-weight: 600; }
.mvr-about .src { display: block; font-size: 10px; color: #6e7681; font-weight: 400; }

.mvr-news-item { display: block; padding: 9px 0; border-bottom: 1px solid #161b22; text-decoration: none; }
.mvr-news-item .t { font-size: 14px; color: #e6edf3; line-height: 1.4; }
.mvr-news-item:hover .t { color: #58a6ff; }
.mvr-news-item .m { font-size: 11px; color: #6e7681; margin-top: 3px; }

.mvr-footer { margin-top: 26px; border-top: 1px solid #21262d; padding-top: 12px; font-size: 11px; color: #6e7681; line-height: 1.6; }

@media (max-width: 760px) {
  .mvr-panel { width: 100vw; border-left: none; }
  .mvr-stats { gap: 10px 14px; }
}
