/* Account-only research credentials panel; shared theme tokens follow My Feed. */
.mb-research-keys {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 20px;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  font: 14px/1.5 var(--font-sans);
}
.mb-research-keys::backdrop { background: var(--c-text); opacity: 0.35; }
.mb-research-keys__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mb-research-keys__header h2 { margin: 0; font-size: 19px; line-height: 1.2; text-transform: none; }
.mb-research-keys__header h2:focus { outline: none; }
.mb-research-keys p { margin: 14px 0; }
.mb-research-keys__form { display: grid; gap: 8px; }
.mb-research-keys .mb-myfeed__actions { gap: 10px; }
.mb-research-keys :is(#research-key-create, #research-key-copy) { color: var(--c-surface); background: var(--c-text); border-color: var(--c-text); font-weight: 600; }
.mb-research-keys__terms, .mb-research-keys__muted { color: var(--c-text-muted); font-size: 12px; }
.mb-research-keys .mb-research-keys__terms { margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--c-line); }
.mb-research-keys #research-keys-list { list-style: none; margin: 16px 0; padding: 0; }
.mb-research-keys #research-keys-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mb-research-keys__key-details { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.mb-research-keys__key-meta { color: var(--c-text-muted); font-size: 12px; }
.mb-research-keys #research-keys-list button { flex-shrink: 0; }
.mb-research-keys #research-keys-status:empty { display: none; }
.mb-research-keys textarea {
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
  margin-top: 6px;
  padding: 8px;
  color: var(--c-text);
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xs);
  font: 13px/1.5 var(--font-data);
}
.mb-research-keys textarea:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* Account forms share My Feed controls and stay readable within the full content width. */
.mb-account-page > section { max-width: 560px; }
.mb-account-page #myfeed-in h2 { overflow-wrap: anywhere; }
