/* Unified TB Service logo mark (same as CRM topbar) */

.tb-brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(2, 6, 23, 0.18),
    0 0 18px rgba(96, 165, 250, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.tb-brand-logo-wrap--lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.tb-brand-logo-wrap--sm {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.tb-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 5px;
  background: transparent;
  object-position: center;
}

.tb-brand-logo-fallback {
  display: none;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  color: #13356e;
  letter-spacing: -0.04em;
}

.tb-brand-logo-wrap--fallback .tb-brand-logo-fallback {
  display: block;
}

.tb-brand-logo-wrap--fallback .tb-brand-logo {
  display: none;
}

.market-brand .tb-brand-logo-wrap--lg,
.ref-brand .tb-brand-logo-wrap {
  width: 44px;
  height: 44px;
}

.ref-admin-sidebar-brand .tb-brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.ref-admin-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.ref-admin-topbar-brand .tb-brand-logo-wrap {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}
