.opportunity-research-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
}

.opportunity-research-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.opportunity-research-strip {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 0.9fr) minmax(240px, 1.6fr);
  gap: 10px;
}

.opportunity-research-strip > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
}

.opportunity-research-strip span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.opportunity-research-strip strong {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 26px;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.2;
}

.opportunity-research-strip em,
.reason-strip em,
.reason-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.opportunity-research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: var(--space-2);
}

.opportunity-research-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(240px, 1fr);
  gap: 8px;
  min-width: 0;
  align-items: start;
}

.opportunity-research-card .product-card-grid {
  grid-template-columns: 1fr;
}

.factor-panel {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
}

.factor-panel-head,
.factor-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
}

.factor-panel-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.factor-panel-head span,
.factor-panel-head strong {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.factor-panel-head strong {
  color: var(--primary-strong);
  text-align: right;
  overflow-wrap: anywhere;
}

.factor-grid {
  display: grid;
  gap: 5px;
}

.factor-row span,
.factor-row b {
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.factor-row b {
  text-align: right;
}

.factor-meta {
  display: flex;
  grid-column: 1 / -1;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
}

.factor-meta span {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.factor-meta .risk {
  color: var(--warning);
}

.factor-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: var(--bg-surface-muted);
  overflow: hidden;
}

.factor-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--info), var(--success));
}

.reason-strip {
  display: flex;
  grid-column: 1 / -1;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.reason-strip span {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.reason-strip em.risk {
  color: var(--warning);
  background: var(--warning-soft);
}

@media (max-width: 640px) {
  .opportunity-research-controls,
  .opportunity-research-strip,
  .opportunity-research-grid,
  .opportunity-research-card {
    grid-template-columns: 1fr;
  }
}
