/* cc-model-badge — a model name and its provider mark, inseparably.
 *
 * Operator mandate 2026-09-20. The mark has a reserved box that is never zero
 * width, so a missing icon shows as the neutral placeholder rather than as a
 * name that silently lost its provider.
 */
.cc-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-ui);
}
.cc-model-badge__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.cc-model-badge__mark img { width: 14px; height: 14px; border-radius: 3px; }
.cc-model-badge__mark--unknown {
  border: 1px solid var(--ui-line);
  border-radius: 3px;
  color: var(--ui-muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.cc-model-badge__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cc-model-badge--chip .cc-model-badge__name { font-size: 12px; font-weight: 650; }
.cc-model-badge--row .cc-model-badge__name { font-size: 13px; font-weight: 500; }

/* The FAMILY variant's initials, and the dark-theme inversion the Settings
   list already had. Moved here with the mark itself so one file owns how a
   model's mark looks, wherever it is drawn. */
.cc-model-badge__mark--text {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 4px;
  color: var(--ui-muted);
  font: 700 6.5px/1 var(--font-mono);
}
html[data-theme="dark"] .cc-model-badge__mark[src$="/openai.png"] { filter: invert(1); }
