/* Small always-on account/presence styles; full auth styles load on intent. */
:root {
  --bc-login-accent: #10b981;
  --bc-login-accent-soft: rgba(16, 185, 129, 0.07);
  --bc-login-border: #e5e7eb;
  --bc-login-text: #111827;
  --bc-login-muted: #6b7280;
  --bc-login-bg: #ffffff;
  --bc-login-overlay: rgba(15, 23, 42, 0.78);
}

.bc-account-icon {
  --bc-size: 40px;
  width: var(--bc-size);
  height: var(--bc-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #111827;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  transition:
    background-color .16s ease,
    border-color .16s ease,
    transform .08s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

.bc-account-icon--textonly {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0;
  display: inline;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  line-height: 1;
  color: #fff;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: baseline;
}

.bc-account-icon--textonly:hover,
.bc-account-icon--textonly:focus,
.bc-account-icon--textonly:active,
.bc-account-icon--textonly:visited {
  color: #fff;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
}

.bc-account-icon--textonly svg,
.bc-account-icon--textonly::before,
.bc-account-icon--textonly::after {
  display: none !important;
}

.bc-account-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.bc-account-icon:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: #e5e7eb;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  opacity: 0.96;
}

.bc-account-icon:active {
  transform: translateY(0);
  box-shadow: none;
}

.bc-login-btn {
  all: unset;
}

.bc-login-btn.bc-account-icon {
  all: revert;
}

.bc-login-overlay {
  position: fixed;
  inset: 0;
  display: none;
  /* align-items:center; */
  justify-content: center;
  background: var(--bc-login-overlay);
  z-index: 999999;
  /* padding: 5px; */
}

.bc-login-overlay.is-open {
  display: flex;
}

.bc-user-presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.2;
}

.bc-user-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

.bc-user-presence-badge.is-active .bc-user-presence-dot {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.bc-user-presence-badge.is-inactive .bc-user-presence-dot {
  background: #9ca3af;
}

/* .bc-user-presence-badge.is-active .bc-user-presence-text {
  color: #166534;
} */

.bc-user-presence-badge.is-inactive .bc-user-presence-text {
  color: #6b7280;
}

/* Keep provider buttons in the DOM for their existing bindings without a flash. */
[data-bc-auth-pending] [data-bc-login-overlay] { visibility: hidden !important; }
.bc-auth-loader-notice {
  position: fixed; bottom: 18px; right: 18px; z-index: 1000001;
  max-width: min(360px, calc(100vw - 36px)); padding: 14px 18px;
  background: #fff; color: #111827; border: 1px solid #d1d5db;
  border-radius: 8px; box-shadow: 0 4px 20px #0003;
  font: 14px/1.5 system-ui, sans-serif;
}
.bc-auth-loader-notice a { color: #047857; text-decoration: underline; }
