/* Feinmec AI branding, served same-origin from /assets/ (README-OPS.md, "Branding").
   Linked from branding/index.html. Colours live in librechat.yaml (interface.theme); this file only
   does what the theme cannot: size the logo and swap it for the white one in LibreChat's dark theme. */
div:has(> img[src$="assets/logo.svg"]),
header:has(> img[src$="assets/logo.svg"]) {
  height: 3.25rem !important;
  margin-top: 2.25rem !important;
  margin-bottom: 1.5rem !important;
}
html.dark img[src$="assets/logo.svg"] {
  content: url("feinmec-logo-white.png");
}

/* Chrome autofill (and the click into an autofilled field) paints its own light blue background.
   LibreChat masks it with an inset box-shadow of the field colour, which does not always win; repeat it
   here with the theme's own variables so text, caret, field and floating label stay consistent in light,
   dark and after the manual theme toggle. The UA background cannot be overridden, the inset shadow covers it. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input:autofill,
input:autofill:focus {
  -webkit-text-fill-color: rgb(var(--field-text, var(--text-primary))) !important;
  caret-color: rgb(var(--field-text, var(--text-primary)));
  -webkit-box-shadow: 0 0 0 1000px rgb(var(--field-fill, var(--surface-primary))) inset !important;
  box-shadow: 0 0 0 1000px rgb(var(--field-fill, var(--surface-primary))) inset !important;
  transition: background-color 9999s ease-out 0s;
}
input:-webkit-autofill ~ label,
input:autofill ~ label {
  background-color: rgb(var(--field-fill, var(--surface-primary))) !important;
}

/* An agent without avatar falls back to the lucide feather icon. Never show it: paint the F mark instead.
   (Catch-all; the shared agent has its own avatar, and users cannot create agents.) */
svg.lucide-feather {
  background: url("icon-192x192.png") center / cover no-repeat;
  border-radius: 9999px;
  stroke: transparent !important;
}
svg.lucide-feather > * {
  display: none;
}
