.research-broker-shelf {
  --research-canvas: #07110f;
  --research-surface: #10231f;
  --research-ink: #e7f4ee;
  --research-muted: #a9c7b9;
  --research-evidence: #70d6a4;
  --research-line: #356553;
  --research-focus: #f5c76b;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--research-line);
  border-radius: 14px;
  color: var(--research-ink);
  background: var(--research-canvas);
}

.research-broker-shelf *,
.research-broker-shelf *::before,
.research-broker-shelf *::after { box-sizing: border-box; }

.research-broker-shelf h2,
.research-broker-shelf h3,
.research-broker-shelf h4 { color: var(--research-ink); }
.research-broker-shelf p { margin: 8px 0; }
.research-broker-shelf small,
.research-broker-shelf dt,
.research-broker-shelf .research-empty { color: var(--research-muted); }
.research-broker-shelf .research-eyebrow {
  margin: 0;
  color: var(--research-evidence);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.research-broker-shelf .research-fixture-label {
  padding: 10px;
  border-left: 4px solid var(--research-evidence);
  background: var(--research-surface);
}
.research-broker-shelf .research-request,
.research-broker-shelf .research-promotion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.research-broker-shelf .research-field { min-width: 0; display: grid; gap: 4px; }
.research-broker-shelf label { font-weight: 650; }
.research-broker-shelf input,
.research-broker-shelf select,
.research-broker-shelf button {
  min-width: 44px;
  min-height: 44px;
  font: inherit;
}
.research-broker-shelf input,
.research-broker-shelf select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--research-line);
  border-radius: 6px;
}
.research-broker-shelf .research-action {
  padding: 8px 14px;
  border: 1px solid var(--research-evidence);
  border-radius: 7px;
  color: var(--research-canvas);
  background: var(--research-evidence);
  cursor: pointer;
  font-weight: 700;
}
.research-broker-shelf .research-action[disabled] {
  border-color: var(--research-line);
  color: var(--research-muted);
  background: var(--research-surface);
  cursor: not-allowed;
}
.research-broker-shelf .research-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px;
  margin-top: 16px;
  min-width: 0;
}
.research-broker-shelf .research-results,
.research-broker-shelf .research-shelf,
.research-broker-shelf .research-lens {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--research-line);
  background: var(--research-surface);
}
.research-broker-shelf .research-shelf-scroll {
  max-height: 230px;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.research-broker-shelf .research-result-card { min-width: 0; }
.research-broker-shelf .research-result-card details summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 700;
}
.research-broker-shelf .research-result-select,
.research-broker-shelf .research-shelf-entry,
.research-broker-shelf .research-return {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid var(--research-line);
  border-radius: 7px;
  color: var(--research-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.research-broker-shelf .research-result-select small { display: block; margin-top: 2px; }
.research-broker-shelf .research-state-cue {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 1.3em;
  min-height: 1.3em;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--research-evidence);
}
.research-broker-shelf .research-result-facts,
.research-broker-shelf .research-provenance {
  display: grid;
  grid-template-columns: minmax(6rem, .5fr) minmax(0, 1fr);
  gap: 5px 10px;
  margin: 12px 0 0;
}
.research-broker-shelf .research-result-facts div,
.research-broker-shelf .research-provenance div { display: contents; }
.research-broker-shelf dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.research-broker-shelf code { overflow-wrap: anywhere; }
.research-broker-shelf a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--research-evidence);
}
.research-broker-shelf .research-lens {
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.research-broker-shelf .research-lens:focus-visible,
.research-broker-shelf button:focus-visible,
.research-broker-shelf input:focus-visible,
.research-broker-shelf select:focus-visible {
  outline: 3px solid var(--research-focus);
  outline-offset: 2px;
}
.research-broker-shelf .research-return { width: auto; margin-top: 14px; }
.research-broker-shelf .research-refusal {
  margin-top: 14px;
  padding: 10px;
  border-left: 4px solid #f5c76b;
  background: #263021;
}
.research-broker-shelf .research-refusal::before { content: "◆ "; }
.research-broker-shelf .research-promotion {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
}
.research-broker-shelf .research-promotion-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
}
.research-broker-shelf [data-state="promoted"]::before,
.research-broker-shelf [data-state="success"]::before,
.research-broker-shelf [data-state="refused"]::before {
  content: "◆ ";
}
.research-broker-shelf [data-state="promoted"] { color: var(--research-evidence); }
.research-broker-shelf [data-state="success"] { color: var(--research-evidence); }
.research-broker-shelf [data-state="refused"] { color: #f5c76b; }

@media (max-width: 820px) {
  .research-broker-shelf .research-request,
  .research-broker-shelf .research-columns,
  .research-broker-shelf .research-promotion { grid-template-columns: minmax(0, 1fr); }
  .research-broker-shelf .research-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .research-broker-shelf *,
  .research-broker-shelf *::before,
  .research-broker-shelf *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
