.sf-header-status {
  --sf-status-color: var(--sf-muted);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 112px;
  width: 112px; min-width: 0; height: 28px; padding: 4px 8px; gap: 6px;
  border: 1px solid color-mix(in srgb, var(--sf-status-color) 35%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--sf-status-color) 10%, var(--sf-surface));
  color: var(--sf-text); font-size: 11.5px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; cursor: default;
}
.sf-header-status[data-state="open"] { --sf-status-color: #22c55e; }
.sf-header-status[data-state="closed"] { --sf-status-color: #ef4444; }
.sf-header-status__dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--sf-status-color); }
.sf-header-status[data-state="open"] .sf-header-status__dot { animation: sf-header-status-pulse 3s ease-in-out infinite; }
@keyframes sf-header-status-pulse { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-status-color) 14%, transparent); } }
/* Only use a second information row when actual measured controls collide. */
@media (min-width: 901px) {
  .sf-frontend-header.sf-header-status-below .sf-frontend-header__inner { min-height: calc(var(--sf-frontend-header-height, 88px) + 36px); padding-bottom: 50px; }
  .sf-frontend-header.sf-header-status-below .sf-frontend-header__actions { top: calc((100% - 36px) / 2); }
  .sf-frontend-header.sf-header-status-below .sf-header-status { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .sf-header-status { grid-column: 2; grid-row: 1; justify-self: center; }
  .sf-frontend-header.sf-header-status-below .sf-frontend-header__inner { grid-template-rows: var(--sf-mobile-header-row) 30px auto; }
  .sf-frontend-header.sf-header-status-below .sf-header-status { grid-column: 1 / -1; grid-row: 2; }
  .sf-frontend-header.sf-header-status-below .sf-frontend-header__brand { grid-row: 3; }
  body.sf-page-home .sf-frontend-header.sf-header-status-below .sf-frontend-header__inner { grid-template-rows: var(--sf-mobile-header-row) 30px; }
}
@media (prefers-reduced-motion: reduce) { .sf-header-status__dot { animation: none !important; } }
