.shell.research-shell {
  --research-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #f8f7fb;
}
.research-shell .sidebar .eyebrow { font-family: var(--research-mono); font-size: .65rem; }
.research-shell .main { padding-top: 24px; }

.research-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
}
.research-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid #e2d3f3;
  border-radius: 8px;
  background: #f6efff;
  color: #3d2a57;
  font-size: .86rem;
}
.research-notice .icon { margin-top: 2px; color: var(--accent); }
.research-notice strong { color: #342348; }
.research-notice p { color: #5b4a6b; }
.research-intro { min-width: 0; }
.research-intro h1 { font-size: clamp(1.95rem, 4vw, 3.1rem); letter-spacing: -.052em; line-height: 1.06; }
.research-intro p { margin-top: 6px; color: var(--muted); }

.research-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}
.research-metrics > * {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 10px clamp(9px, 1.5vw, 17px);
  background: var(--surface);
}
.research-metrics span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.25;
}
.research-metrics strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.1; }
.research-metrics .research-metric-primary strong { font-size: clamp(1.85rem, 3.4vw, 2.65rem); }
.research-metrics .research-metric-primary span { color: var(--ink); }

.research-filters { border-radius: 11px; }
.research-form { display: grid; gap: 11px; padding: 13px; }
.research-company-field, .research-secondary { display: grid; align-items: end; gap: 9px; }
.research-company-field { grid-template-columns: minmax(0, 1fr) auto; }
.research-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.research-form .field { font-size: .81rem; }
.research-form .field :is(input, select) {
  min-height: 38px;
  border-radius: 8px;
  padding: 7px 9px;
}
.research-form .field input::placeholder { color: var(--muted); opacity: 1; }
.research-form .btn { min-height: 38px; }
.research-guided-filter[hidden], .research-guided-filter [hidden] { display: none; }
.research-guided-filter {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.research-guided-filter .research-form { max-width: 680px; padding: 13px 0 0; }
.research-guided-filter .research-form > :is(.research-company-field, .research-secondary):not([hidden]) {
  display: flex;
  flex-wrap: wrap;
}
.research-guided-filter .field { flex: 1 1 150px; }

.research-result-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.research-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.research-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  color: #382b46;
  font-size: .82rem;
  font-weight: 690;
}
.research-tabs button:hover { border-color: #a887de; }
.research-tabs button[aria-pressed=true] { border-color: #2b2138; background: #2b2138; color: #fff; }
.research-tabs button span {
  min-width: 1.6em;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--workspace-tint);
  color: #573487;
  font-family: var(--research-mono);
  font-size: .72rem;
  text-align: center;
}
.research-tabs button[aria-pressed=true] span { background: #59466d; color: #fff; }
.research-focus { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; min-width: 0; color: #5b4a6b; font-size: .82rem; }
.research-focus span { overflow-wrap: anywhere; }

.research-workspace #results .card { border-radius: 11px; }
.research-workspace #results .section-head { padding: 13px 15px; }
.research-workspace #results th {
  background: #f7f6fa;
  font-family: var(--research-mono);
  font-size: .71rem;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.research-workspace #results td { padding-block: 9px; }
.research-workspace #results .avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; }
.research-workspace #results [data-driver] > :nth-child(3) { min-width: 140px; white-space: normal; overflow-wrap: anywhere; }
.research-workspace #results .foot { padding: 9px 15px; }
.research-workspace .tray { margin-top: 0; }

@media (max-width: 780px) {
  .research-shell .header { min-height: 53px; }
  .research-shell .main { padding-top: 15px; }
  .research-workspace { gap: 12px; }
}
@media (max-width: 570px) {
  .research-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-metrics > * { padding-block: 9px; }
  .research-metrics strong { font-size: 1.25rem; }
  .research-metrics span { font-size: .75rem; }
  .research-form .field :is(input, select) { font-size: 16px; }
  .research-workspace #results :is(th, td) { padding-inline: 8px; }
  .research-workspace #results [data-driver] > :nth-child(3) { min-width: 88px; }
  .research-workspace #results .avatar { width: 26px; height: 26px; }
}
@media (max-width: 390px) {
  .research-company-field, .research-secondary { grid-template-columns: minmax(0, 1fr); }
  .research-form .btn { justify-self: start; }
}
