/* Logo-only status control, shared by the desktop and mobile headers. */
body .brand-status-button.brand-status-button {
  --brand-status-halo: rgb(0 110 182 / 28%);
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 68px;
  min-width: 44px;
  height: 48px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
  background: transparent;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  isolation: isolate;
  transform: none;
  transition: none;
}

body .brand-status-button.brand-status-button[data-status="success"] { --brand-status-halo: rgb(22 163 74 / 48%); }
body .brand-status-button.brand-status-button[data-status="error"] { --brand-status-halo: rgb(220 38 38 / 52%); }
body .brand-status-button.brand-status-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--brand-status-halo), transparent 72%);
  filter: blur(5px);
  pointer-events: none;
}
body .brand-status-button.brand-status-button::after { content: none; }
body .brand-status-button.brand-status-button:is(:hover, :active) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}
body .brand-status-button.brand-status-button:focus-visible {
  outline: 2px solid var(--brand-blue, #006eb6);
  outline-offset: 3px;
}
body .brand-status-button .brand-status-logo {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 32px;
  max-width: none;
  margin: 0;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 5px var(--brand-status-halo));
}

body .brand-status-tooltip {
  position: fixed;
  z-index: 2147483000;
  box-sizing: border-box;
  width: max-content;
  max-width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #17212b;
  background: #fff;
  box-shadow: 0 8px 28px rgb(15 23 42 / 18%);
  font: 500 13px/1.45 var(--font-sans, Inter, Arial, sans-serif);
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  transform: none;
  animation: none;
  transition: none;
}
body .brand-status-tooltip[hidden] { display: none !important; }
body[data-theme="dark"] .brand-status-tooltip {
  border-color: #465970;
  color: #eef4fa;
  background: #172536;
  box-shadow: 0 8px 28px rgb(0 0 0 / 35%);
}
body .brand-status-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  body .brand-status-button.brand-status-button,
  body .brand-status-button.brand-status-button::before,
  body .brand-status-button .brand-status-logo,
  body .brand-status-tooltip { animation: none !important; transition: none !important; }
}
