:root {
  color-scheme: dark;

  --canvas: #08090a;
  --chrome: #0c0d10;
  --chrome-elevated: #101114;
  --bubble: #0e0f12;
  --widget: #121318;
  --widget-code: #07080a;
  --widget-hover: #181920;

  --border-subtle: rgba(255, 255, 255, 0.035);
  --border-default: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(255, 255, 255, 0.14);
  --border-glimmer: rgba(255, 255, 255, 0.11);
  --border-glimmer-soft: rgba(255, 255, 255, 0.04);

  --text-primary: #ffffff;
  --text-body: #a8adb6;
  --text-secondary: #858a94;
  --text-muted: #686d76;
  --text-faint: #4e525a;

  --text-xs: 10px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 18px;
  --text-xl: 22px;
  --leading-tight: 1.35;
  --leading-normal: 1.55;
  --leading-relaxed: 1.65;

  --doc-glow: rgba(255, 255, 255, 0.035);
  --doc-glow-wide: rgba(255, 255, 255, 0.02);

  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --button-bg: rgba(255, 255, 255, 0.045);
  --button-bg-hover: rgba(255, 255, 255, 0.075);
  --button-bg-active: rgba(255, 255, 255, 0.09);
  --button-border: rgba(255, 255, 255, 0.08);

  --signal: #6b94dc;
  --signal-hover: #7ba3e4;
  --signal-muted: rgba(107, 148, 220, 0.12);
  --signal-border: rgba(107, 148, 220, 0.38);
  --signal-glow: rgba(107, 148, 220, 0.22);

  --chart-1: #6b94dc;
  --chart-2: #62b896;
  --chart-3: #b89558;
  --chart-4: #b86b88;
  --chart-5: #8f84c4;

  --success: #5fa882;
  --success-muted: rgba(95, 168, 130, 0.1);
  --success-dot: #5fa882;
  --danger: #e07070;
  --danger-badge: #e5484d;
  --danger-muted: rgba(229, 72, 77, 0.1);
  --warning: #b89558;
  --unhealthy: #b86b88;

  --font-ui: var(--font-inter), system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: var(--font-jetbrains-mono), "SF Mono", Menlo, ui-monospace, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-widget: 8px;
  --radius-chrome: 10px;
  --radius-pill: 999px;

  --shadow-glimmer: inset 0 1px 0 var(--border-glimmer), 0 0 0 1px var(--border-default);
  --shadow-glimmer-hover: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px var(--border-strong);
  --shadow-panel: var(--shadow-glimmer), 0 16px 48px rgba(0, 0, 0, 0.5);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 140ms;
  --duration-normal: 220ms;

  --bg: var(--canvas);
  --border: var(--border-default);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --glass: var(--widget);
  --accent: var(--signal);
  --accent-2: var(--signal);
  --ok: var(--success);
  --warn: var(--warning);
  --bad: var(--danger);
  --font-display: var(--font-ui);
  --font-body: var(--font-ui);
  --zone-us: var(--chart-1);
  --zone-eu: var(--chart-5);
  --zone-apac: var(--chart-3);
  --zone-global: var(--text-secondary);

  --page-pad: clamp(1rem, 4vw, 1.5rem);
  --section-gap: clamp(1.5rem, 4vw, 2.5rem);
  --header-h: 3.25rem;

  font-family: var(--font-ui);
  font-size: var(--text-md);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--text-body);
  position: relative;
  line-height: var(--leading-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.page-shell {
  position: relative;
  z-index: 1;
  min-width: 0;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 42% 12%, var(--doc-glow-wide) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 58% 8%, var(--doc-glow) 0%, transparent 50%);
  filter: blur(48px);
}

.page-shell > .site-header,
.page-shell > .page-main,
.page-shell > .site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--chrome);
  border-bottom: 1px solid var(--border-default);
}

.site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--chrome-elevated);
  border: 1px solid var(--border-default);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 400;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.site-nav a.is-active {
  color: var(--text-primary);
  background: var(--button-bg-active);
  box-shadow: inset 0 1px 0 var(--border-glimmer-soft), 0 0 0 1px var(--border-subtle);
}

.page-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--page-pad);
  padding-bottom: 3rem;
  min-width: 0;
}

.content-section {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
  margin-bottom: var(--section-gap);
}

.content-section:not(:first-child) {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.panel-glass {
  background: var(--widget);
  border-radius: var(--radius-widget);
  box-shadow: var(--shadow-glimmer);
  min-width: 0;
  transition: box-shadow var(--duration-fast) var(--ease-out);
}

@media (hover: hover) {
  .panel-glass:hover {
    box-shadow: var(--shadow-glimmer-hover);
  }

  .zone-block.panel-glass:hover,
  .history-card.panel-glass:hover,
  .hero.panel-glass:hover {
    box-shadow: var(--shadow-glimmer);
  }
}

.hero {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

h1 {
  font-family: var(--font-ui);
  font-size: clamp(1.35rem, 4vw, 2.125rem);
  margin: 0 0 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: var(--leading-tight);
}

.hero-status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.hero-status-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.hero-headline {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(var(--text-md), 3vw, var(--text-lg));
  font-weight: 500;
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.hero-sub {
  margin: 0.35rem 0 0;
  font-size: 15px;
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.hero-sub code {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
}

.hero-status > .badge {
  align-self: flex-start;
}

.status-pulse {
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pulse.operational {
  background: var(--success-dot);
}

.status-pulse.degraded,
.status-pulse.partial_outage {
  background: var(--warning);
  animation: status-dot-pulse 1.5s var(--ease-out) infinite;
}

.status-pulse.major_outage {
  background: var(--unhealthy);
  animation: status-dot-pulse 1.5s var(--ease-out) infinite;
}

.status-pulse.maintenance {
  background: var(--text-secondary);
}

@keyframes status-dot-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.95;
  }
}

.section-title-bar {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-title-bar h2 {
  font-family: var(--font-ui);
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.024em;
}

.section-desc {
  margin: 0.35rem 0 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 68ch;
}

.section-desc strong {
  color: var(--text-primary);
  font-weight: 500;
}

.muted.section-desc,
.muted.hero-sub {
  color: var(--text-secondary);
}

.section-stack,
.zone-stack,
.history-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-panel {
  padding: clamp(1rem, 3vw, 1.25rem);
}

.subsection-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.subsection-head h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.zone-header h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
}

.count-pill {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-body);
  box-shadow: inset 0 1px 0 var(--border-glimmer-soft), 0 0 0 1px var(--border-subtle);
}

.incident-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.deployment-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.deployment-card {
  padding: 1rem;
  border-radius: var(--radius-widget);
  background: var(--chrome);
  box-shadow: inset 0 1px 0 var(--border-glimmer-soft), 0 0 0 1px var(--border-subtle);
  min-width: 0;
}

.deployment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}

.deployment-title,
.history-card-title {
  min-width: 0;
  flex: 1;
}

.deployment-header h4,
.history-card-head h4 {
  margin: 0 0 0.25rem;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.components {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border-subtle);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.row:last-child {
  border-bottom: none;
}

.row-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-base);
  color: var(--text-body);
}

.incident-card {
  padding: 1rem;
  border-radius: var(--radius-widget);
  background: var(--chrome);
  box-shadow: var(--shadow-glimmer);
  min-width: 0;
}

.incident-card.resolved {
  opacity: 0.85;
}

.incident-card h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: var(--text-base);
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  line-height: var(--leading-tight);
}

.incident-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.incident-meta .severity,
.incident-meta .state,
.incident-zone {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 var(--border-glimmer-soft), 0 0 0 1px var(--border-subtle);
}

.incident-meta .severity,
.incident-meta .state {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-body);
}

.incident-zone {
  background: transparent;
  color: var(--text-secondary);
}

.severity.major,
.severity.critical {
  background: var(--danger-muted);
  color: var(--danger);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(229, 72, 77, 0.25);
}

.severity.minor {
  color: var(--warning);
}

.state.monitoring,
.state.identified {
  color: var(--signal);
  background: var(--signal-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--signal-border);
}

.state.resolved {
  background: var(--success-muted);
  color: var(--success);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(95, 168, 130, 0.25);
}

.incident-summary {
  margin: 0;
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.incident-time {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.history-card {
  padding: clamp(1rem, 3vw, 1.15rem);
  min-width: 0;
}

.history-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.uptime-pct {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.uptime-value {
  font-family: var(--font-ui);
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.uptime-label {
  font-size: 0.82rem;
}

.uptime-strip-wrap {
  width: 100%;
  min-width: 0;
}

.uptime-strip-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.uptime-strip {
  display: flex;
  gap: 2px;
  height: 32px;
  min-width: 100%;
  width: max(100%, 540px);
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--widget-code);
  box-shadow: inset 0 1px 0 var(--border-glimmer-soft), 0 0 0 1px var(--border-subtle);
}

.uptime-bar {
  flex: 1 1 0;
  min-width: 3px;
  max-width: 8px;
  border-radius: 2px;
}

.uptime-bar.operational {
  background: var(--success);
}

.uptime-bar.degraded {
  background: var(--warning);
}

.uptime-bar.outage {
  background: var(--danger);
}

.uptime-bar.none {
  background: rgba(255, 255, 255, 0.08);
}

.uptime-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.uptime-legend .dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.dot.operational {
  background: var(--success);
}

.dot.degraded {
  background: var(--warning);
}

.dot.outage {
  background: var(--danger);
}

.dot.none {
  background: rgba(255, 255, 255, 0.15);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-transform: capitalize;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 var(--border-glimmer-soft), 0 0 0 1px var(--border-subtle);
}

.badge.sm {
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
}

.badge.lg {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.badge.operational {
  background: var(--success-muted);
  color: var(--success);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(95, 168, 130, 0.25);
}

.badge.degraded,
.badge.partial_outage {
  background: rgba(184, 149, 88, 0.12);
  color: var(--warning);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(184, 149, 88, 0.25);
}

.badge.major_outage {
  background: var(--danger-muted);
  color: var(--danger);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(229, 72, 77, 0.25);
}

.badge.maintenance {
  background: var(--signal-muted);
  color: var(--signal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--signal-border);
}

.muted {
  color: var(--text-muted);
}

.warn {
  color: var(--warn);
  font-size: 0.86rem;
  margin: 0.5rem 0 0;
}

.empty-inline {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem var(--page-pad) 2rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

.map-section {
  padding: clamp(0.75rem, 2vw, 1rem);
}

.deployment-code,
.map-location-table code {
  font-size: 11px;
  font-family: var(--font-mono);
}

.deployment-code {
  margin: 0;
}

.tier-line {
  margin: 0.1rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.cloud-line {
  margin: 0.15rem 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.incident-deployment {
  margin: 0.35rem 0 0;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  text-transform: lowercase;
}

.world-map-wrap {
  min-width: 0;
  position: relative;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.map-zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.map-zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.map-zone-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-secondary);
}

.map-zone-chip.sm {
  font-size: var(--text-xs);
  padding: 3px 8px;
}

.map-zone-chip.zone-us {
  color: var(--text-secondary);
}

.map-zone-chip.zone-us::before {
  background: var(--chart-1);
}

.map-zone-chip.zone-eu {
  color: var(--text-secondary);
}

.map-zone-chip.zone-eu::before {
  background: var(--chart-5);
}

.map-zone-chip.zone-apac {
  color: var(--text-secondary);
}

.map-zone-chip.zone-apac::before {
  background: var(--chart-3);
}

.map-zone-chip.zone-global::before {
  background: var(--text-muted);
}

.map-zoom-controls {
  display: flex;
  gap: 0.35rem;
}

.map-zoom-btn {
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--button-bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-glimmer);
  transition:
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.map-zoom-btn:hover {
  background: var(--button-bg-hover);
  box-shadow: var(--shadow-glimmer-hover);
}

.map-zoom-btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.map-hint {
  margin: 0 0 0.5rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.map-canvas {
  position: relative;
  border-radius: var(--radius-widget);
  overflow: hidden;
  background: var(--widget-code);
  box-shadow: inset 0 1px 0 var(--border-glimmer-soft), 0 0 0 1px var(--border-subtle);
}

.map-canvas.is-dragging {
  cursor: grabbing;
}

.map-canvas .world-map {
  cursor: grab;
}

.map-canvas.is-dragging .world-map {
  cursor: grabbing;
}

.world-map {
  width: 100%;
  height: auto;
  display: block;
  min-height: 220px;
  touch-action: none;
  user-select: none;
}

.world-map-base {
  opacity: 0.92;
  filter: saturate(0.4) brightness(0.5) contrast(1.08);
}

.map-zone-region {
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.map-zone-region.zone-us {
  fill: color-mix(in srgb, var(--chart-1) 18%, transparent);
  stroke: color-mix(in srgb, var(--chart-1) 45%, transparent);
}

.map-zone-region.zone-eu {
  fill: color-mix(in srgb, var(--chart-5) 18%, transparent);
  stroke: color-mix(in srgb, var(--chart-5) 45%, transparent);
}

.map-zone-region.zone-apac {
  fill: color-mix(in srgb, var(--chart-3) 18%, transparent);
  stroke: color-mix(in srgb, var(--chart-3) 45%, transparent);
}

.map-hit {
  fill: transparent;
  pointer-events: all;
}

.map-pin {
  cursor: pointer;
}

.map-dot.operational {
  fill: var(--success-dot);
}

.map-dot.degraded,
.map-dot.partial_outage {
  fill: var(--warning);
}

.map-dot.major_outage {
  fill: var(--unhealthy);
}

.map-dot.maintenance {
  fill: var(--text-secondary);
}

.map-pulse {
  fill: rgba(255, 255, 255, 0.06);
  animation: map-breathe 3.5s ease-in-out infinite;
}

.map-pulse.operational {
  fill: var(--success-muted);
}

.map-pulse.degraded,
.map-pulse.partial_outage {
  fill: rgba(184, 149, 88, 0.12);
  animation-duration: 2.8s;
}

.map-pulse.major_outage {
  fill: var(--danger-muted);
  animation-duration: 2.2s;
}

.map-pin.active .map-pulse {
  fill: rgba(255, 255, 255, 0.14);
}

.map-pin.active .map-dot {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.25;
}

@keyframes map-breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform: translateY(-100%);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-widget);
  background: var(--widget);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
  max-width: 14rem;
  animation: map-tip-in 0.08s ease-out;
}

@keyframes map-tip-in {
  from {
    opacity: 0;
    transform: translateY(calc(-100% + 4px));
  }
  to {
    opacity: 1;
    transform: translateY(-100%);
  }
}

.map-tooltip strong {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
}

.map-tooltip-zone {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.map-tooltip-zone.zone-us {
  color: var(--zone-us);
}

.map-tooltip-zone.zone-eu {
  color: var(--zone-eu);
}

.map-tooltip-status {
  text-transform: capitalize;
  font-weight: 600;
  margin-top: 0.15rem;
}

.map-tooltip-status.operational {
  color: var(--success);
}

.map-tooltip-status.degraded,
.map-tooltip-status.partial_outage {
  color: var(--warning);
}

.map-tooltip-status.major_outage {
  color: var(--danger);
}

.map-row-active {
  background: var(--button-bg-active);
}

.map-location-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.map-location-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.map-location-table th,
.map-location-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.map-location-table td {
  color: var(--text-secondary);
}

.map-location-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.map-location-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.map-location-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 500;
}

.map-location-table code {
  font-weight: 400;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.map-table-status {
  text-transform: capitalize;
  font-weight: 600;
  font-size: 0.8rem;
}

.map-table-status.operational {
  color: var(--success);
}

.map-table-status.degraded,
.map-table-status.partial_outage {
  color: var(--warning);
}

.map-table-status.major_outage {
  color: var(--danger);
}

.map-table-status.maintenance {
  color: var(--signal);
}

.section-desc a {
  color: var(--signal);
  text-decoration: none;
}

.section-desc a:hover {
  text-decoration: underline;
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 500;
}

@media (min-width: 640px) {
  .hero-status {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-status > .badge {
    align-self: center;
  }

  .history-card-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .uptime-pct {
    justify-content: flex-end;
    text-align: right;
  }

  #history .section-title-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

@media (min-width: 768px) {
  .incident-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deployment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .deployment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uptime-strip {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .deployment-header {
    flex-direction: column;
    align-items: stretch;
  }

  .deployment-header .badge {
    align-self: flex-start;
  }

  .zone-header .badge {
    width: 100%;
    text-align: center;
  }
}
