.brand-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--brand-icon-size, 28px);
  height: var(--brand-icon-size, 28px);
  line-height: 0;
  vertical-align: middle;
}

.brand-icon img,
.brand-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-icon--default { color: var(--accent, #3569ea); }
.brand-icon--kimi { padding: 3px; border-radius: 6px; background: #141824; }
html[data-theme="dark"] .brand-icon--openai,
html[data-theme="dark"] .brand-icon--grok { padding:3px; border-radius:6px; background:#141824; }

.theme-dark .brand-icon--openai img,
.theme-dark .brand-icon--grok img,
html[data-theme="dark"] .brand-icon--openai img,
html[data-theme="dark"] .brand-icon--grok img { filter: brightness(0) invert(1); }
