:root {
  color-scheme: dark;
  --bg: #07090f;
  --surface: #0d1117;
  --surface-soft: #111827;
  --surface-raised: #121923;
  --text: #e2e8f0;
  --muted: var(--text);
  --dim: var(--text);
  --border: #1e2d40;
  --accent: #0ea5e9;
  --accent-dim: #0369a1;
  --accent-light: #38bdf8;
  --accent-violet: #818cf8;
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.12);
  --warning: #fde68a;
  --warning-soft: rgba(253, 230, 138, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --unknown: #94a3b8;
  --unknown-soft: rgba(148, 163, 184, 0.12);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
  --nav-bg: rgba(7, 9, 15, 0.88);
  --panel-bg: rgba(13, 17, 23, 0.98);
  --hover: rgba(148, 163, 184, 0.12);
  --brand-gradient: linear-gradient(135deg, #00a4ff 0%, #9a00fb 100%);
  --star-color: #dbe8ff;
  --star-glow: 0 0 4px 0 rgba(255, 255, 255, 0.9);
  --star-glow-mobile: 0 0 7px 1px rgba(255, 255, 255, 0.95);
  --panel-tint: rgba(7, 9, 15, 0.4);
}

html.light {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #eef5fb;
  --surface-raised: #f8fbff;
  --text: #0f172a;
  --muted: #64748b;
  --dim: #475569;
  --border: #d9e5f2;
  --unknown: #64748b;
  --unknown-soft: rgba(100, 116, 139, 0.13);
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --nav-bg: rgba(247, 251, 255, 0.9);
  --panel-bg: rgba(255, 255, 255, 0.98);
  --hover: rgba(14, 165, 233, 0.1);
  --star-color: #475569;
  --star-glow: 0 0 3px 0 rgba(71, 85, 105, 0.5);
  --star-glow-mobile: 0 0 6px 1px rgba(71, 85, 105, 0.65);
  --panel-tint: transparent;
}

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

html {
  min-width: 320px;
  background:
    url("/amazonia-cloud-forest-landscape.jpg") center 35% / cover fixed no-repeat,
    var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--panel-tint);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  line-height: 1.6;
}

html.light body {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.92) 0%, rgba(247, 251, 255, 0.84) 52%, rgba(247, 251, 255, 0.92) 100%),
    url("/amazonia-cloud-forest-landscape.jpg") center 35% / cover fixed no-repeat,
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.starfall {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.falling-star {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--star-color);
  opacity: 0;
  box-shadow: var(--star-glow);
  transform: translateX(var(--start-x)) translateY(-10px);
  animation: starfall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.falling-star-mobile {
  display: none;
}

@keyframes starfall {
  0% { opacity: 0; }
  10% { opacity: 0.5; }
  12% { opacity: 1; }
  15% { opacity: 0.5; }
  50% { opacity: 0; }
  100% {
    opacity: 0;
    transform: translateX(var(--end-x)) translateY(100vh);
  }
}

@keyframes loading-logo-pulse {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes status-footer-dot-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.status-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.status-loader[hidden] {
  display: none;
}

.status-loading .site-nav,
.status-loading main,
.status-loading .site-footer {
  visibility: hidden;
}

.loading-logo {
  position: relative;
  top: -10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform-origin: center;
}

.loading-logo img {
  width: 96px;
  height: 96px;
  opacity: 0.3;
  object-fit: contain;
  transition: opacity 160ms ease, filter 160ms ease, width 160ms ease, height 160ms ease;
}

.loading-logo > span {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0.3;
}

.loading-logo > span > span {
  margin-left: 4px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loading-logo--animated {
  animation-name: loading-logo-pulse;
  animation-duration: 500ms;
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
  animation-fill-mode: both;
  will-change: opacity, transform;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: oklab(0.140403 -0.0003668 -0.0138251 / 0.85);
  backdrop-filter: blur(14px);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: normal;
  gap: 12px;
  width: min(100%, 1120px);
  min-height: 60px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  flex: 0 0 auto;
  column-gap: 8px;
  row-gap: normal;
  height: 48px;
  min-width: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: auto;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: inline-flex;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.brand-wordmark span,
.footer-brand > span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-wordmark span {
  margin-left: -4px;
}

.hdr-nav,
.hdr-right,
.footer-links,
.mnav-list,
.mnav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hdr-nav,
.hdr-right {
  display: flex;
  align-items: center;
}

.hdr-nav {
  gap: 4px;
  margin-left: 28px;
}

.hdr-right {
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.hdr-right .search-toggle,
.hdr-right .theme-toggle,
.hdr-right .mnav-toggle {
  color: #94a3b8;
}

.hdr-nav > li > a,
.hdr-nav button,
.login-link,
.nav-dropdown-up button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.4;
  padding: 6px 10px;
  transition: background 0.16s ease, color 0.16s ease;
}

.hdr-nav > li > a:hover,
.hdr-nav button:hover,
.hdr-nav > li > a:focus-visible,
.hdr-nav button:focus-visible,
.login-link:hover,
.login-link:focus-visible,
.nav-dropdown-up button:hover,
.nav-dropdown-up button:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.search-toggle:hover,
.search-toggle:focus-visible {
  background: var(--hover);
  color: var(--text);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.chevron-icon {
  display: inline-flex;
  transition: transform 0.16s ease;
}

.nav-dropdown:hover .chevron-icon,
.nav-dropdown:focus-within .chevron-icon {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  opacity: 0;
  padding-top: 8px;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-panel-inner {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html.light .nav-dropdown-panel-inner {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.nav-dropdown-panel a {
  display: block;
  border-radius: 7px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  padding: 9px 10px;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  background: var(--hover);
  color: var(--text);
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: normal;
  gap: 6px;
  min-height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2c73fe 0%, #7f17f3 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 740;
  padding: 7px 15px;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.mnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  padding: 0;
}

.mnav-toggle:hover,
.mnav-toggle:focus-visible,
.mnav-toggle[aria-expanded="true"] {
  background: var(--hover);
  color: var(--text);
  outline: none;
}

.mnav-bar {
  transform-origin: center;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.mnav-toggle[aria-expanded="true"] .mnav-bar-1 {
  transform: translateY(5px) rotate(45deg);
}

.mnav-toggle[aria-expanded="true"] .mnav-bar-2 {
  opacity: 0;
}

.mnav-toggle[aria-expanded="true"] .mnav-bar-3 {
  transform: translateY(-5px) rotate(-45deg);
}

.mnav-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(100vw - 28px, 1120px);
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  background: var(--panel-bg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.mnav-list {
  padding: 8px;
}

.mnav-list > li + li {
  border-top: 0;
}

.mnav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px 0;
}

.mnav-row:hover,
.mnav-row:focus-visible,
.mnav-sub a:hover,
.mnav-sub a:focus-visible {
  background: var(--hover);
  color: var(--text);
  outline: none;
}

.mnav-chevron {
  display: inline-flex;
  transition: transform 0.16s ease;
}

.mnav-group[open] > summary .mnav-chevron {
  transform: rotate(180deg);
}

.mnav-sub {
  padding: 0;
}

.mnav-sub a {
  display: block;
  border-radius: 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  padding: 11px 12px 11px 20px;
}

.shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 48px, 1120px);
  min-height: calc(100vh - 156px);
  margin: 0 auto;
  padding: 0 0 56px;
}

body > main {
  margin-top: 0;
  padding-top: 0;
}

.status-content {
  width: 100%;
  padding: 24px 0 28px;
  border-radius: 18px;
  border: 1px solid rgba(30, 45, 64, 0.82);
  background: rgba(7, 9, 15, 0.38);
  backdrop-filter: blur(2px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

html.light .status-content {
  border-color: rgba(217, 229, 242, 0.9);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.editor-shell {
  width: min(100% - 48px, 1120px);
}

.page-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.page-meta[hidden] {
  display: none;
}

.topbar,
.section-heading,
.component-main,
.component-meta {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.top-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--dim);
  font-size: 13px;
}

.top-meta span,
#editor-state {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(30, 45, 64, 0.78);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.72);
  padding: 3px 10px;
}

.summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(129, 140, 248, 0.07) 58%, rgba(13, 17, 23, 0) 88%),
    var(--surface);
  box-shadow: var(--shadow);
}

#summary-panel {
  position: sticky;
  top: 60px;
  z-index: 20;
  padding-top: 20px;
}

#summary-panel > div:nth-child(1) > p {
  padding-bottom: 10px;
}

.summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--unknown);
}

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

.summary-degraded::before,
.summary-partial-outage::before,
.summary-maintenance::before {
  background: var(--warning);
}

.summary-major-outage::before {
  background: var(--danger);
}

.summary-no-data::before,
.summary-loading::before {
  background: var(--unknown);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.summary-updated {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.summary-updated::before {
  content: "·";
  margin-right: 8px;
  color: var(--border);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 44px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.summary h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 0;
  white-space: nowrap;
}

.summary-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.summary-title-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.summary p:last-child,
.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-badge,
.component-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
}

.status-badge {
  min-width: 144px;
  padding: 10px 14px;
}

.subscribe-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #2c73fe 0%, #7f17f3 100%);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 740;
  padding: 7px 15px;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.subscribe-trigger:hover,
.subscribe-trigger:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.component-status {
  min-width: 142px;
  justify-content: flex-end;
  justify-content: right;
  padding: 7px 0;
  border: 0;
  background: transparent;
}

.status-operational {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.28);
}

.status-degraded,
.status-partial-outage,
.status-maintenance {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: rgba(253, 230, 138, 0.28);
}

.status-major-outage {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.28);
}

.status-no-data {
  color: var(--unknown);
  background: var(--unknown-soft);
  border-color: rgba(148, 163, 184, 0.25);
}

.component-status.status-operational,
.component-status.status-degraded,
.component-status.status-partial-outage,
.component-status.status-maintenance,
.component-status.status-major-outage,
.component-status.status-no-data {
  background: transparent;
  border-color: transparent;
}

.section {
  margin-top: 28px;
}

body > main > div > section:nth-child(3) {
  padding: 0 18px;
}

.section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-heading p {
  font-size: 14px;
}

.uptime-value {
  color: var(--accent-light);
  font-size: 24px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.component-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.component-row {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.component-row:hover {
  border-color: rgba(14, 165, 233, 0.42);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.component-main {
  justify-content: space-between;
  gap: 18px;
}

.component-name {
  display: block;
  color: var(--text);
  font-weight: 780;
}

.component-detail {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.history {
  display: grid;
  grid-template-columns: repeat(var(--history-days, 30), minmax(2px, 1fr));
  gap: 0;
  min-height: 34px;
  margin-top: 14px;
}

/* .bar-slot is the grid item: it owns layout (size, divider, grid alignment)
   and the tooltip anchor, and its own box never changes on hover (no CLS).
   The colored/sized bar inside it is a separate element that only gets a
   transform on hover, so it can "pop" without reflowing the grid and
   without visually stretching the tooltip (a transform on .bar-slot itself
   would also distort the nested .bar-tooltip). */
.bar-slot {
  position: relative;
}

.bar-slot:last-child {
  border-right: none;
}

.bar-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 8px 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
  z-index: 50;
}

.bar-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--surface-raised);
}

.bar-tooltip-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.bar-tooltip-desc {
  font-size: 12px;
  font-weight: 400;
  color: color-mix(in srgb, var(--text) 65%, transparent);
}

.bar-slot:hover .bar-tooltip {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-bar-tooltip {
  position: absolute;
  z-index: 1000;
  transform: translate(-50%, -100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  pointer-events: none;
  white-space: nowrap;
}

.mobile-bar-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--surface-raised);
}

.mobile-bar-tooltip-below {
  transform: translate(-50%, 0);
}

.mobile-bar-tooltip-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--surface-raised);
}

.mobile-bar-tooltip[hidden] {
  display: none;
}

.history .bar-slot {
  height: 34px;
  align-self: end;
  border-right: 2px solid var(--border);
}

.history-duration .bar-slot {
  height: var(--history-height, 34px);
}

.history-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.22);
  transition: filter 0.12s ease, transform 0.12s ease;
}

.bar-slot:hover .history-bar,
.bar-slot.tooltip-active .history-bar {
  filter: brightness(0.7);
  transform: scaleY(1.18);
  transform-origin: bottom;
}

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

.history-bar.degraded,
.history-bar.partial-outage,
.history-bar.maintenance {
  background: var(--warning);
}

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

.history-scale {
  display: grid;
  grid-template-columns: auto minmax(32px, 1fr) auto minmax(32px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  color: #aaa;
  font-size: 12px;
  overflow: visible;
}

.history-scale span {
  min-width: 0;
}

.history-scale-label,
.history-scale-center {
  white-space: nowrap;
}

.history-scale-label-end {
  text-align: right;
}

.history-scale-rule {
  display: block;
  height: 1px;
  background: currentColor;
  opacity: 0.58;
}

.history-scale-center {
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.latency-scale {
  grid-template-columns: auto minmax(32px, 1fr) auto;
  width: 100%;
}

.latency-wrapper {
  width: 100%;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 45, 64, 0.7);
}

.history-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #bbb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.history-label .component-status {
  align-self: center;
  min-width: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.2;
  text-transform: none;
}

.latency-history {
  display: grid;
  grid-template-columns: repeat(var(--latency-checks, 120), minmax(1px, 1fr));
  align-items: end;
  gap: 0;
  width: 100%;
  min-height: 44px;
}

.latency-history .bar-slot {
  height: var(--latency-height, 4px);
  border-right: 1px solid var(--border);
}

.latency-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  opacity: 0.9;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.latency-bar.no-data {
  background: var(--unknown);
  opacity: 0.35;
}

.bar-slot:hover .latency-bar,
.bar-slot.tooltip-active .latency-bar {
  filter: brightness(0.7);
  transform: scaleY(1.18);
  transform-origin: bottom;
}

.incident-list {
  display: grid;
  gap: 10px;
}

.incident {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.88);
}

.incident-date {
  color: var(--dim);
  font-size: 13px;
}

.incident-title {
  margin: 4px 0;
  color: var(--text);
  font-weight: 780;
}

.incident-summary {
  margin: 0;
  color: var(--muted);
}

.incident-body {
  margin: 10px 0 0;
  color: var(--text);
  white-space: pre-wrap;
}

.incident-html > *:first-child {
  margin-top: 0;
}

.incident-html > *:last-child {
  margin-bottom: 0;
}

.empty-state {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.7);
  color: var(--muted);
}

.subscribe-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: transparent;
  pointer-events: auto;
}

.subscribe-overlay[hidden] {
  display: none;
}

.subscribe-modal {
  position: fixed;
  top: var(--subscribe-modal-top, 96px);
  left: var(--subscribe-modal-left, 12px);
  width: var(--subscribe-modal-width, min(100%, 360px));
  max-height: min(88vh, 680px);
  overflow: visible;
  border: 1px solid rgba(30, 45, 64, 0.95);
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(129, 140, 248, 0.05) 54%, transparent),
    var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

.subscribe-tabs {
  display: grid;
  grid-template-columns: repeat(5, 44px) 1fr 44px;
  min-height: 44px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.92);
}

.subscribe-tab,
.subscribe-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.subscribe-tab[aria-selected="true"] {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.5);
}

.subscribe-tab:hover,
.subscribe-tab:focus-visible,
.subscribe-close:hover,
.subscribe-close:focus-visible {
  background: var(--hover);
  outline: none;
}

.subscribe-tab[aria-selected="true"]:hover,
.subscribe-tab[aria-selected="true"]:focus-visible {
  background: var(--brand-gradient);
}

.subscribe-close {
  grid-column: 7;
  border-right: 0;
  border-left: 1px solid var(--border);
  font-size: 15px;
  font-weight: 850;
}

.subscribe-content {
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 18px 16px 16px;
}

.subscribe-content h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.subscribe-panel h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.subscribe-panel p {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.48;
}

.subscribe-panel strong {
  font-weight: 850;
}

.subscribe-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
}

.subscribe-input {
  display: block;
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(7, 9, 15, 0.88);
  color: var(--text);
  padding: 8px 10px;
}

.subscribe-input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(14, 165, 233, 0.2);
}

.subscribe-help {
  margin-top: 6px;
  color: var(--dim);
  font-size: 12px;
}

.subscribe-submit,
.subscribe-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin-top: 12px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #2c73fe 0%, #7f17f3 100%);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 740;
  letter-spacing: 0;
  text-transform: none;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.subscribe-secondary {
  width: auto;
  min-width: 160px;
  padding: 0 18px;
}

.subscribe-submit:hover,
.subscribe-submit:focus-visible,
.subscribe-secondary:hover,
.subscribe-secondary:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.subscribe-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--accent-light);
  font-size: 13px;
}

.subscribe-disclaimer {
  margin-top: 14px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.36;
}

.subscribe-panel-center {
  padding: 12px 0 4px;
  text-align: center;
}

html.light .subscribe-modal {
  border-color: rgba(217, 229, 242, 0.96);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(129, 140, 248, 0.05) 54%, transparent),
    #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
}

html.light .subscribe-tabs {
  background: rgba(248, 251, 255, 0.94);
}

html.light .subscribe-input {
  background: #ffffff;
}

.editor-section {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13, 17, 23, 0.9);
  box-shadow: var(--shadow);
}

.alert-section {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.07), rgba(129, 140, 248, 0.04) 62%, rgba(13, 17, 23, 0.9)),
    var(--surface);
}

.alert-section .section-heading {
  align-items: flex-start;
  flex-direction: column;
}

.alert-section .section-heading p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.alert-list {
  display: grid;
  gap: 8px;
}

.alert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 9, 15, 0.38);
}

.alert-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.alert-copy strong,
.alert-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-copy strong {
  color: var(--text);
}

.alert-copy span {
  color: var(--muted);
  font-size: 13px;
}

.alert-state {
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.alert-state.is-silenced {
  color: var(--warning);
}

.incident-editor-textarea {
  display: block;
  width: 100%;
  min-height: min(64vh, 720px);
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #07090f;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.55;
}

.incident-editor-textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(14, 165, 233, 0.18);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

html.light .top-meta span,
html.light #editor-state,
html.light .alert-row,
html.light .empty-state {
  border-color: rgba(217, 229, 242, 0.9);
  background: rgba(255, 255, 255, 0.72);
}

html.light .component-row,
html.light .incident,
html.light .editor-section {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

html.light .latency-wrapper {
  border-top-color: rgba(217, 229, 242, 0.9);
}

html.light .alert-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9)),
    var(--surface);
}

html.light .incident-editor-textarea {
  background: #fff;
}

.primary-button,
.secondary-button {
  min-width: 96px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 760;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.primary-button {
  border-color: rgba(14, 165, 233, 0.65);
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent-dim);
  outline: none;
}

.secondary-button {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(14, 165, 233, 0.5);
  background: var(--surface-raised);
  outline: none;
}

.primary-button:disabled,
.secondary-button:disabled,
.incident-editor-textarea:disabled {
  cursor: progress;
  opacity: 0.65;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: transparent;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 32px 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.footer-brand img {
  width: 46px;
  height: 48px;
}

.footer-brand > span {
  margin-left: -4px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links > li {
  display: inline-flex;
  align-items: center;
}

.footer-links a,
.footer-links button {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  transition: color 0.16s ease, background 0.16s ease;
}

.footer-links .nav-dropdown-up > button {
  min-height: 0;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.footer-status-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  line-height: inherit;
  vertical-align: baseline;
}

.footer-status-dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  flex: 0 0 0.375rem;
  border-radius: 9999px;
  background: var(--success);
  color: transparent;
  font-size: 0;
  line-height: 0;
  animation: status-footer-dot-pulse 2s infinite;
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.nav-dropdown-up .nav-dropdown-panel {
  top: auto;
  bottom: calc(100% + 8px);
}

.nav-dropdown-up:hover .chevron-icon,
.nav-dropdown-up:focus-within .chevron-icon {
  transform: rotate(0deg);
}

.theme-toggle,
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.search-icon {
  transform: translateY(1px);
}

.theme-icon-moon {
  display: none;
}

html.light .theme-icon-sun {
  display: none;
}

html.light .theme-icon-moon {
  display: inline-block;
}

@media (max-width: 1023px) {
  .falling-star {
    width: calc(var(--size) * 1.8);
    height: calc(var(--size) * 1.8);
    box-shadow: var(--star-glow-mobile);
  }

  .falling-star-desktop {
    display: none;
  }

  .falling-star-mobile {
    display: block;
  }

  .hdr-nav {
    display: none;
  }

  .mnav-toggle {
    display: inline-flex;
  }

  .mnav-panel {
    left: 50%;
    width: 100vw;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
  }

  .mnav-list {
    width: min(100% - 48px, 1120px);
    margin: 0 auto;
    padding: 4px 0 19px;
  }

  #summary-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 12px;
  }

  #summary-panel > div:first-child {
    display: contents;
  }

  #summary-panel > div:nth-child(1) > p {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #summary-title {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  #summary-panel .summary-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-items: end;
    width: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .falling-star {
    animation: none;
    opacity: 0;
  }

  .footer-status-dot {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .shell,
  .editor-shell,
  .footer-inner {
    width: min(100% - 48px, 1120px);
  }

  .nav-inner {
    min-height: 60px;
    width: min(100%, 1120px);
    gap: 12px;
    padding: 0 24px;
  }

  .hdr-right {
    gap: 8px;
  }

  .brand-wordmark {
    font-size: 20px;
  }

  .brand {
    min-width: 48px;
    overflow: hidden;
  }

  .brand-mark {
    width: auto;
    height: 48px;
  }

  .login-link {
    display: none;
  }

  .nav-cta {
    min-height: auto;
    line-height: 1.428571;
    font-size: 16px;
    font-weight: 500;
    padding: 7.2px 17.6px;
  }

  .shell {
    width: auto;
    min-height: calc(100vh - 218px);
    margin-left: 12px;
    margin-right: 12px;
    padding-top: 0;
  }

  .topbar,
  .summary,
  .section-heading,
  .component-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-meta,
  .top-meta {
    justify-content: flex-start;
  }

  .summary {
    padding: 24px;
  }

  #summary-panel {
    top: 60px;
  }

  .summary-actions {
    justify-items: start;
    width: 100%;
  }

  .status-badge,
  .component-status {
    min-width: 0;
  }

  .component-status {
    align-self: stretch;
  }

  .history-label .component-status {
    align-self: center;
  }

  .subscribe-tabs {
    grid-template-columns: repeat(5, 40px) 1fr 40px;
  }

  .subscribe-modal {
    width: var(--subscribe-modal-width, min(100%, 320px));
  }

  .subscribe-tab,
  .subscribe-close {
    min-width: 40px;
  }

  .history {
    grid-template-columns: repeat(var(--history-days, 30), minmax(3px, 1fr));
  }

  .latency-history {
    grid-template-columns: repeat(var(--latency-checks, 120), minmax(1px, 1fr));
  }

  .bar-tooltip {
    display: none;
  }

  .bar-slot {
    cursor: pointer;
  }

  .editor-actions {
    justify-content: stretch;
  }

  .primary-button,
  .secondary-button {
    flex: 1;
  }

  .alert-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .alert-state {
    grid-column: 2;
    grid-row: 1;
  }

  .alert-row button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .footer-inner {
    align-items: center;
    flex-direction: row;
    width: min(100%, 1120px);
    padding: 32px 24px;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    gap: 12px;
    width: min(100%, 1120px);
  }

  .hdr-right {
    gap: 8px;
  }

  .nav-cta {
    display: inline-flex;
    padding: 7.2px 17.6px;
  }

  .mnav-panel {
    width: 100vw;
  }

  h1 {
    font-size: 30px;
  }

  #summary-title {
    font-size: 26px;
  }

  .summary-title-logo {
    width: 36px;
    height: 36px;
  }

  .history-scale {
    grid-template-columns: auto minmax(14px, 1fr) auto minmax(14px, 1fr) auto;
    gap: 8px;
    font-size: 11px;
  }

  .latency-scale {
    grid-template-columns: auto minmax(14px, 1fr) auto;
  }
}

@media (max-width: 380px) {
  .summary {
    padding: 16px;
  }

  #summary-title {
    gap: 8px;
    font-size: 20px;
  }

  .summary-title-logo {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 340px) {
  .hdr-right {
    gap: 2px;
  }
}
.privacy-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(760px, calc(100vw - 40px));
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--surface-raised));
  border-radius: 16px;
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 18px 55px rgb(0 0 0 / 35%);
}

.privacy-consent__copy {
  display: grid;
  gap: 6px;
}

.privacy-consent__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.privacy-consent__copy a {
  width: fit-content;
  color: var(--accent-light);
  font-size: 13px;
}

.privacy-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.privacy-consent__button,
.privacy-settings {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.privacy-consent__button--secondary {
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
  background: transparent;
  color: var(--text);
}

.privacy-settings {
  position: fixed;
  z-index: 900;
  right: 16px;
  bottom: 16px;
  min-height: 36px;
  padding: 6px 11px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .privacy-consent {
    right: 10px;
    bottom: 10px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    width: calc(100vw - 20px);
    padding: 16px;
  }

  .privacy-consent__actions {
    justify-content: flex-end;
  }
}
/* Same domain-based locale selector as the other public AYAsec services. */
#status-language {
  max-width: 10rem;
  padding: 0.3rem 0.5rem;
  color: inherit;
  background: var(--bg, #111827);
  border: 1px solid currentColor;
  border-radius: 0.4rem;
  font: inherit;
}

@media (max-width: 640px) {
  .footer-links { position: relative; }
  .footer-links .nav-dropdown { position: static; }
  #summary-panel { grid-template-columns: minmax(0, 1fr); }
  #summary-title { grid-column: 1 / -1; white-space: normal; }
  #summary-title span { min-width: 0; overflow-wrap: anywhere; }
  #summary-panel .summary-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-items: start;
  }
}
