// Ensure pill CSS is always available, independent of colour swap/theme engine
(function ensureLogoPillCSS() {
  if (document.getElementById('bc-logo-pill-style')) return;

  const style = document.createElement('style');
  style.id = 'bc-logo-pill-style';
  style.textContent = `
    /* Base: let themes do their own logo frame */
    html .headerLogo-logoFrame {
      padding: 0 !important;
      background: transparent !important;
      border-radius: 0 !important;
    }

    /* Optional fix: blue pill when the option is enabled */
    html.bc-logo-solid .headerLogo-logoFrame {
      background-color: #255ba3 !important;
      padding: 3px 8px !important;
      border-radius: 4px !important;
    }
  `;
  document.head.appendChild(style);
})();