/* Quant research terminal: tabbed platform view with a backtest workspace. */
.qc-platform {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 36px;
  border-top: 1px solid #172326;
}
.qc-eye {
  margin: 0 0 10px;
  color: #e39b3a;
  font: 700 11px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.16em;
}
.qc-platform h2 {
  margin: 0 0 12px;
  max-width: 16ch;
  color: #f4f7fb;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.qc-intro {
  max-width: 62ch;
  margin: 0;
  color: #9aa8b4;
  font-size: 16px;
  line-height: 1.5;
}
.qc-tabrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.qc-platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2a3848;
  border-radius: 8px;
  background: #101820;
  color: #c5d0da;
  padding: 10px 12px;
  letter-spacing: 0.08em;
  font: 650 11px/1 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.qc-platform-tab svg { display: block; }
.qc-platform-tab.active {
  border-color: #9ec0dc;
  background: #1a2836;
  color: #fff;
}
.qc-split {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 0;
}
.qc-kicker {
  margin: 0 0 8px;
  color: #e39b3a;
  font: 700 11px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.14em;
}
.qc-process-label {
  margin: 0 0 14px;
  color: #f4f7fb;
  font: 650 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
}
.qc-process h3 {
  margin: 0 0 14px;
  color: #f7fafc;
  font-size: 32px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.qc-process p { margin: 0 0 12px; color: #a9b6c2; font-size: 14.5px; line-height: 1.55; }
.qc-cta {
  margin-top: 8px;
  border: 1px solid #3c5164;
  border-radius: 8px;
  background: transparent;
  color: #eef3f8;
  padding: 11px 14px;
  font: 600 14px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.qc-cta:hover { border-color: #8fb4d4; }
.qc-visual { display: grid; min-height: 460px; }
.qc-visual > * { grid-area: 1 / 1; }
#qc-ide {
  width: 100%;
  height: 460px;
  display: block;
  border-radius: 12px;
  background: #0b1016;
  cursor: crosshair;
}
#qc-ide[hidden],
.qc-panel[hidden] { display: none !important; }
.qc-panel {
  height: 640px;
  overflow: auto;
  border: 1px solid #243044;
  border-radius: 12px;
  background: #0c1219;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.qc-nb, .qc-ai { padding: 16px 18px 20px; color: #d5dde6; }
.qc-nb-top, .qc-ai-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #8ea0b0;
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.qc-nb-top i, .qc-ai-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4a5c;
}
.qc-nb pre, .qc-ai pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #101820;
  color: #d5e7df;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}
.qc-nb .c { color: #6f8494; }
.qc-out { color: #b7f0d8 !important; }
.qc-cell {
  border: 0;
  border-radius: 8px;
  background: #e8eef5;
  color: #101820;
  padding: 8px 12px;
  font: 650 13px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.qc-ai-log p { margin: 0 0 8px; }
.qc-ai-log .who {
  margin-top: 12px;
  color: #e39b3a;
  font: 700 10px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
}
.qc-ai-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.qc-ai-prompts button {
  border: 1px solid #314556;
  border-radius: 999px;
  background: transparent;
  color: #d5dde6;
  padding: 8px 12px;
  cursor: pointer;
}
.qc-ai-prompts button:hover,
.qc-ai-prompts button.active { border-color: #8fb4d4; color: #fff; }
@media (max-width: 980px) {
  .qc-split { grid-template-columns: 1fr; }
  #qc-ide, .qc-panel { height: 420px; }
  .qc-visual { min-height: 420px; }
}
