/* Persistent service-request status. All colors follow the active site theme.
   The JS theme toggle updates html[data-theme], so no duplicate JS is needed. */
html[data-theme="dark"] {
  --status-chip-bg: rgba(8, 23, 36, .94);
  --status-chip-text: #f7f9fd;
  --status-chip-muted: #b7c6d5;
  --status-chip-border: rgba(247, 185, 63, .30);
  --status-chip-shadow: 0 14px 40px rgba(0, 0, 0, .32), 0 0 28px rgba(247, 185, 63, .08);
  --status-chip-arrow: #f7b93f;
  --status-chip-hover-bg: rgba(17, 35, 52, .97);
}
html[data-theme="light"] {
  --status-chip-bg: rgba(255, 254, 250, .96);
  --status-chip-text: #172437;
  --status-chip-muted: #536276;
  --status-chip-border: rgba(176, 122, 38, .28);
  --status-chip-shadow: 0 12px 34px rgba(49, 63, 83, .12), 0 2px 6px rgba(49, 63, 83, .045);
  --status-chip-arrow: #a26b18;
  --status-chip-hover-bg: rgba(255, 250, 237, .98);
}
.global-status-chip {
  position: fixed;
  z-index: 1000;
  inset-inline-end: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid var(--status-chip-border);
  border-radius: 16px;
  background: var(--status-chip-bg);
  box-shadow: var(--status-chip-shadow);
  color: var(--status-chip-text);
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              box-shadow .2s ease, opacity .2s ease;
}
.global-status-chip:hover {
  background: var(--status-chip-hover-bg);
  border-color: var(--status-chip-arrow);
}
.global-status-chip:focus-visible {
  outline: 2px solid var(--status-chip-arrow);
  outline-offset: 3px;
}
.global-status-chip__dot {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35ce7b;
  box-shadow: 0 0 0 3px rgba(53, 206, 123, .11), 0 0 10px rgba(53, 206, 123, .33);
}
.global-status-chip__copy { display: grid; gap: 3px; min-width: 0; }
.global-status-chip__copy strong {
  color: var(--status-chip-text);
  font-size: .78rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}
.global-status-chip__copy span {
  color: var(--status-chip-muted);
  font-size: .72rem;
  line-height: 1.4;
}
.global-status-chip__arrow {
  flex: 0 0 auto;
  color: var(--status-chip-arrow);
  font-weight: 800;
}
@media (max-width: 620px) {
  .global-status-chip {
    inset-inline: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    justify-content: center;
  }
}
/* The drawer takes precedence over the status link on every language. */
body.nav-open .global-status-chip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .global-status-chip { transition: none; }
}
