.status-shell {
  display: grid;
  gap: 24px;
  max-width: 1520px;
  margin: 0 auto;
}

.status-hero {
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: center;
}

.status-summary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.summary-item {
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--glass-border) 50%, transparent);
  background: color-mix(in srgb, var(--glass-bg) 60%, transparent);
  backdrop-filter: blur(var(--blur-sm)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 6, 12, 0.4), 0 0 20px rgba(123, 220, 255, 0.05);
}

.status-grid {
  display: grid;
  gap: 16px;
}

.status-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.status-list {
  display: grid;
  gap: 12px;
  position: relative;
  /* Flow on the page instead of an inner 720px scrollbox — removes the
     custom-scrollbar JS (forced reflows on scroll) and lets content-visibility
     cull off-screen cards during normal page scroll. Big perf win. */
}

.status-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cyno-scrollbar {
  position: absolute;
  top: 10px;
  right: 8px;
  bottom: 10px;
  width: 8px;
  pointer-events: auto;
  z-index: 5;
}

.cyno-scrollbar.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.cyno-scrollbar__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cyno-scrollbar__thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(123, 220, 255, 0.38), rgba(255, 255, 255, 0.16));
  box-shadow: 0 8px 20px rgba(2, 6, 12, 0.22),
              inset 0 0 0 1px rgba(255, 255, 255, 0.16),
              0 0 12px rgba(123, 220, 255, 0.12);
  touch-action: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cyno-scrollbar__thumb:hover {
  background: linear-gradient(180deg, rgba(123, 220, 255, 0.5), rgba(255, 255, 255, 0.2));
  box-shadow: 0 8px 20px rgba(2, 6, 12, 0.22),
              inset 0 0 0 1px rgba(255, 255, 255, 0.2),
              0 0 18px rgba(123, 220, 255, 0.2);
}

.status-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Status row: header + expandable details */
.status-row {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  min-height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--glass-border) 70%, transparent);
  background: color-mix(in srgb, var(--glass-bg) 76%, transparent);
  box-shadow: inset 0 0 0 1px var(--border-inner), 0 12px 24px rgba(2, 6, 12, 0.4);
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: border-color 0.35s ease,
              box-shadow 0.4s ease,
              background 0.35s ease;
  backdrop-filter: blur(var(--blur-md)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(160%);
}

/* Header: product info on left, tags on right */
.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.status-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.status-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}

.status-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.status-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  opacity: 0.6;
}

.status-chevron::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: -3px;
}

.status-row.is-expanded .status-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent);
}

.status-row:hover .status-chevron {
  opacity: 0.9;
}

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

/* Expand section: hidden by default, revealed with max-height + opacity */
.status-expand {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              margin 0.35s ease,
              padding 0.35s ease;
  margin-top: 0;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.status-row.is-expanded .status-expand {
  max-height: 1200px;
  opacity: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--glass-border) 40%, transparent);
}

/* Divider line between collapsed and expanded content */
.status-expand-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--glass-border) 50%, transparent), transparent);
  margin: 4px 0 0;
}

/* Expanded detail grid */
.expand-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.expand-detail-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--glass-border) 50%, transparent);
  background: color-mix(in srgb, var(--glass-bg) 50%, transparent);
  backdrop-filter: blur(var(--blur-sm)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-sm)) saturate(140%);
  display: grid;
  gap: 8px;
}

.expand-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.expand-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.expand-detail-sub {
  font-size: 12px;
  color: var(--text-soft);
}

/* Uptime bars */
.uptime-bars {
  display: grid;
  gap: 10px;
}

.uptime-row {
  display: grid;
  grid-template-columns: 50px 1fr 52px;
  align-items: center;
  gap: 10px;
}

.uptime-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.uptime-track {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--glass-bg-strong) 60%, transparent);
  overflow: hidden;
  position: relative;
}

.uptime-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--status-success), color-mix(in srgb, var(--status-success) 80%, white));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.uptime-fill.warn {
  background: linear-gradient(90deg, var(--status-warning), color-mix(in srgb, var(--status-warning) 80%, white));
}

.uptime-fill.bad {
  background: linear-gradient(90deg, var(--status-danger), color-mix(in srgb, var(--status-danger) 80%, white));
}

.uptime-pct {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Mini incidents list */
.expand-incidents {
  display: grid;
  gap: 8px;
}

.expand-incident-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--glass-bg) 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--glass-border) 30%, transparent);
}

.expand-incident-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.expand-incident-dot.critical { background: var(--status-danger); box-shadow: 0 0 6px color-mix(in srgb, var(--status-danger) 40%, transparent); }
.expand-incident-dot.high { background: #f97316; box-shadow: 0 0 6px color-mix(in srgb, #f97316 40%, transparent); }
.expand-incident-dot.medium { background: var(--status-warning); box-shadow: 0 0 6px color-mix(in srgb, var(--status-warning) 40%, transparent); }
.expand-incident-dot.low { background: var(--status-success); box-shadow: 0 0 6px color-mix(in srgb, var(--status-success) 40%, transparent); }

.expand-incident-text {
  flex: 1;
  min-width: 0;
}

.expand-incident-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expand-incident-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Region grid */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.region-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--glass-bg) 35%, transparent);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

.region-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.region-dot.online { background: var(--status-success); }
.region-dot.degraded { background: var(--status-warning); }
.region-dot.offline { background: var(--status-danger); }

/* Response time display */
.response-time-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.response-time-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.response-time-unit {
  font-size: 12px;
  color: var(--text-muted);
}

/* Section headers within expanded content */
.expand-section-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 30%, transparent);
  margin-bottom: 4px;
}

/* Liquid highlight overlay */
.status-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-highlight);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  clip-path: inset(0 round var(--radius-md));
  z-index: 0;
}

.status-row.is-active {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-border));
  background: color-mix(in srgb, var(--accent) 12%, var(--glass-bg) 88%);
}

.status-row.is-active::before {
  opacity: 0.6;
}

.status-row:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--glass-border));
  box-shadow:
    inset 0 0 0 1px var(--border-inner),
    0 18px 36px rgba(2, 6, 12, 0.45),
    0 0 24px rgba(123, 220, 255, 0.05);
}

.status-row:hover::before {
  opacity: 0.7;
}

.status-controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

@media (max-width: 720px) {
  .status-controls {
    grid-template-columns: 1fr;
  }
}

/* Enhanced LED status dots with glow */
.status-dot--live {
  box-shadow: 0 0 6px 2px rgba(74, 222, 128, 0.4),
              0 0 16px 4px rgba(74, 222, 128, 0.15);
}

.status-dot--warning {
  box-shadow: 0 0 6px 2px rgba(250, 204, 21, 0.4),
              0 0 16px 4px rgba(250, 204, 21, 0.15);
}

.status-dot--danger {
  box-shadow: 0 0 6px 2px rgba(248, 113, 113, 0.4),
              0 0 16px 4px rgba(248, 113, 113, 0.15);
}

.no-led-pulse .status-dot--live,
.no-led-pulse .status-dot--warning,
.no-led-pulse .status-dot--danger {
  animation: none;
  box-shadow: none;
}

.expand-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.status-editor-form {
  display: grid;
  gap: 12px;
}

.status-service-panel .panel-body {
  display: grid;
  gap: 12px;
}

.status-service-panel #serviceStatusList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.service-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--glass-border) 70%, transparent);
  background: color-mix(in srgb, var(--glass-bg) 76%, transparent);
  box-shadow: inset 0 0 0 1px var(--border-inner), 0 12px 24px rgba(2, 6, 12, 0.4);
  backdrop-filter: blur(var(--blur-md)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(160%);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--liquid-highlight);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px var(--border-inner),
    0 18px 36px rgba(2, 6, 12, 0.45),
    0 0 24px rgba(123, 220, 255, 0.06);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--glass-border));
}

.service-card:hover::before {
  opacity: 0.7;
}

/* Incident History */
.status-incidents-panel {
  padding: 0;
}

.status-incidents {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.incident-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--glass-border) 75%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--glass-bg-strong) 80%, transparent), color-mix(in srgb, var(--glass-bg) 65%, transparent));
  backdrop-filter: blur(var(--blur-md)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(160%);
  box-shadow: var(--glass-shadow), var(--glass-glow), inset 0 0 0 1px var(--border-inner);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.incident-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 20px 50px rgba(3, 8, 18, 0.45), 0 0 35px rgba(118, 224, 255, 0.15), inset 0 0 0 1px var(--border-inner);
}

.incident-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.incident-card-info {
  display: grid;
  gap: 4px;
}

.incident-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.incident-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.severity-critical {
  color: var(--status-danger);
  font-weight: 700;
}

.severity-high {
  color: #f97316;
  font-weight: 600;
}

.severity-medium {
  color: var(--status-warning);
  font-weight: 600;
}

.severity-low {
  color: var(--status-success);
}

.incident-card-body {
  display: grid;
  gap: 8px;
}

.incident-card-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

.incident-card-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.resolution-note {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.status-pill--resolved {
  background: none;
  color: var(--status-success);
  border: none;
}

@media (max-width: 768px) {
  .status-incidents {
    grid-template-columns: 1fr;
  }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .expand-incident-item,
  .uptime-fill,
  .region-dot {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   Product status board (status-products.js)
   ============================================================================ */
.status-prod-section-title {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted, #a8b9d4);
  margin: 6px 2px 12px;
}
.status-prod-section-title + .status-prod-grid { margin-bottom: 26px; }

.status-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.status-prod {
  display: block;
  text-decoration: none; color: inherit;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), border-color 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
}
.status-prod:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent, #7bdcff) 30%, transparent);
  box-shadow: 0 14px 32px rgba(2,6,14,0.4), 0 0 28px color-mix(in srgb, var(--accent, #7bdcff) 12%, transparent);
}

.status-prod-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.status-prod-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  font-family: "Sora", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent, #7bdcff);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent, #7bdcff) 20%, #0c1626), color-mix(in srgb, var(--accent-2, #8de6d6) 12%, #0c1626));
  border: 1px solid color-mix(in srgb, var(--accent, #7bdcff) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}
.status-prod-id { min-width: 0; flex: 1; }
.status-prod-name {
  display: block; font-size: 14px; font-weight: 600; color: var(--text, #eef3ff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-prod-meta {
  display: block; font-size: 11px; color: var(--text-muted, #a8b9d4); opacity: 0.8; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.status-prod-ac {
  display: block; font-size: 10px; color: var(--text-muted, #a8b9d4); opacity: 0.55;
  margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Status pill + LED, colored per state */
.status-prod .status-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0; border-radius: 0;
  border: none; background: none;
}
.status-led { width: 6px; height: 6px; border-radius: 50%; }
.status-pill--operational { color: #6ee7b7; background: none; border: none; }
.status-pill--operational .status-led { background: #34d399; box-shadow: 0 0 6px #34d399; animation: statusLed 1.6s ease-in-out infinite; }
.status-pill--monitoring { color: #fcd34d; background: none; border: none; }
.status-pill--monitoring .status-led { background: #eab308; box-shadow: 0 0 6px #eab308; }
.status-pill--updating { color: #93c5fd; background: none; border: none; }
.status-pill--updating .status-led { background: #60a5fa; box-shadow: 0 0 6px #60a5fa; animation: statusLed 1s ease-in-out infinite; }
.status-pill--offline { color: #fca5a5; background: none; border: none; }
.status-pill--offline .status-led { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.status-pill--detected { color: #fca5a5; background: none; border: none; }
.status-pill--detected .status-led { background: #ef4444; box-shadow: 0 0 6px #ef4444; animation: statusLed 0.6s ease-in-out infinite; }
.status-pill--undetected { color: #6ee7b7; background: none; border: none; }
.status-pill--undetected .status-led { background: #34d399; box-shadow: 0 0 6px #34d399; }
.status-pill--testing { color: #c4b5fd; background: none; border: none; }
.status-pill--testing .status-led { background: #a78bfa; box-shadow: 0 0 6px #a78bfa; animation: statusLed 1.2s ease-in-out infinite; }
.status-pill--maintenance { color: #fde68a; background: none; border: none; }
.status-pill--maintenance .status-led { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.status-pill--paused { color: #d1d5db; background: none; border: none; }
.status-pill--paused .status-led { background: #9ca3af; box-shadow: 0 0 6px #9ca3af; }
.status-pill--beta { color: #5eead4; background: none; border: none; }
.status-pill--beta .status-led { background: #2dd4bf; box-shadow: 0 0 6px #2dd4bf; animation: statusLed 1.4s ease-in-out infinite; }
.status-pill--closed { color: #9ca3af; background: none; border: none; }
.status-pill--closed .status-led { background: #6b7280; box-shadow: 0 0 4px #6b7280; }
.status-pill--coming-soon { color: #f9a8d4; background: none; border: none; }
.status-pill--coming-soon .status-led { background: #ec4899; box-shadow: 0 0 6px #ec4899; animation: statusLed 2s ease-in-out infinite; }
@keyframes statusLed { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Uptime spark bars */
.status-spark {
  display: flex; align-items: flex-end; gap: 2px;
  height: 28px; margin-bottom: 12px;
}
.status-spark-bar {
  flex: 1; border-radius: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, #7bdcff) 70%, transparent), color-mix(in srgb, var(--accent, #7bdcff) 25%, transparent));
  min-height: 3px;
}
.status-spark-bar.is-low {
  background: linear-gradient(180deg, #fcd34d, color-mix(in srgb, #eab308 30%, transparent));
}

.status-prod-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
}
.status-prod-uptime { color: var(--text, #eef3ff); font-weight: 600; font-family: "JetBrains Mono", ui-monospace, monospace; }
.status-prod-updated {
  color: var(--text-muted, #a8b9d4); opacity: 0.75;
  cursor: pointer; border-bottom: 1px dashed transparent; transition: color 0.15s, border-color 0.15s;
}
.status-prod-updated:hover {
  color: var(--accent, #7bdcff); opacity: 1;
  border-bottom-color: color-mix(in srgb, var(--accent, #7bdcff) 50%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .status-pill .status-led { animation: none !important; }
  .status-tl-marker { animation: none !important; }
}
@media (max-width: 520px) {
  .status-prod-grid { grid-template-columns: 1fr; }
}
/* ── Banner mark (image with letter fallback) ── */
.status-prod { /* card is now a <button> */
  width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  -webkit-appearance: none; appearance: none;
}
.status-prod:focus-visible {
  outline: 2px solid var(--accent, #7bdcff); outline-offset: 2px;
}
.status-prod-mark {
  position: relative;
  width: 42px; height: 56px; flex-shrink: 0;
  border-radius: 9px; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent, #7bdcff) 28%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent, #7bdcff) 20%, #0c1626), color-mix(in srgb, var(--accent-2, #8de6d6) 12%, #0c1626));
}
.status-prod-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.status-prod-mono {
  display: none;
  font-family: "Sora", sans-serif; font-size: 14px; font-weight: 700;
  color: var(--accent, #7bdcff);
}
.status-prod-mark.is-fallback .status-prod-mono { display: block; }
.status-prod-mark--svc svg { width: 20px; height: 20px; }

/* ============================================================================
   Product detail modal
   ============================================================================ */
.status-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(3, 7, 14, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.22s ease;
}
/* Honor the hidden attribute — the display:grid above was overriding it, so
   after closing, the overlay stayed as an invisible full-screen click-blocker
   (you couldn't open any other card). */
.status-modal-overlay[hidden] { display: none !important; }
.status-modal-overlay.is-open { opacity: 1; }
.status-modal {
  width: min(520px, 100%);
  max-height: 88vh; overflow-y: auto;
  border-radius: 22px;
  position: relative;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.4,0.5,1);
}
.status-modal-overlay.is-open .status-modal { transform: none; }
.status-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  color: var(--text, #eef3ff);
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}
.status-modal-close:hover { background: rgba(0,0,0,0.55); transform: scale(1.06); }
.status-modal-close svg { width: 16px; height: 16px; }

.status-modal-banner {
  position: relative;
  /* Match the wide aspect of the source banner art instead of a fixed crop
     height, so the whole image shows without harsh zoom/cut. */
  aspect-ratio: 16 / 7;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent, #7bdcff) 26%, #0c1626), color-mix(in srgb, var(--accent-2, #8de6d6) 16%, #0c1626));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Blurred, cover-scaled copy of the same art fills any letterbox gap behind the
   crisp contained image — so banners of any aspect read full and intentional. */
.status-modal-banner .status-modal-img--blur {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(1.3) brightness(0.7);
  transform: scale(1.15);
  z-index: 0;
}
/* The real banner: shown in full, fit to the widget, never cropped. */
.status-modal-img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.status-modal-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(8,13,24,0.7));
  pointer-events: none;
}
.status-modal-mono {
  display: none;
  font-family: "Sora", sans-serif; font-size: 44px; font-weight: 800;
  color: color-mix(in srgb, var(--accent, #7bdcff) 85%, #fff);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.status-modal-banner.is-fallback .status-modal-mono { display: block; }
.status-modal-pill { position: absolute; bottom: 12px; left: 16px; z-index: 2; }

.status-modal-body { padding: 18px 22px 22px; }
.status-modal-title {
  font-family: "Sora","Manrope",sans-serif; font-size: 22px; font-weight: 700;
  margin: 0 0 16px; color: var(--text, #eef3ff);
}
.status-modal-note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft, #c4d2ea);
}

/* Per-loadout builds (Internal / External) */
.sm-builds { display: grid; gap: 8px; }
.sm-build {
  display: grid;
  grid-template-columns: 96px 1fr auto 20px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--glass-border, rgba(255,255,255,0.1)) 70%, transparent);
  background: color-mix(in srgb, var(--glass-bg, rgba(255,255,255,0.04)) 45%, transparent);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.sm-build:hover {
  border-color: color-mix(in srgb, var(--accent, #7bdcff) 40%, transparent);
  background: color-mix(in srgb, var(--accent, #7bdcff) 6%, transparent);
}
.sm-build-arrow {
  justify-self: end; opacity: 0.3; transition: opacity 0.15s;
}
.sm-build-arrow svg { width: 14px; height: 14px; }
.sm-build:hover .sm-build-arrow { opacity: 0.7; }
.sm-build-type {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text, #eef3ff);
}
.sm-build-type::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent, #7bdcff);
}
.sm-build--external .sm-build-type::before {
  background: color-mix(in srgb, var(--accent-2, #9b8cff) 90%, transparent);
  border-radius: 50%;
}
.sm-build-ver {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; color: var(--text-soft, #c4d2ea);
}
.sm-build-pill { justify-self: end; }
@media (max-width: 480px) {
  .sm-build { grid-template-columns: 1fr auto 20px; }
  .sm-build-ver { grid-column: 1 / -1; }
}
.status-modal-grid {
  display: grid; gap: 1px; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); margin-bottom: 18px;
}
.status-modal-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: rgba(255,255,255,0.02);
}
.status-modal-key { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted, #a8b9d4); }
.status-modal-val { font-size: 13px; font-weight: 600; color: var(--text, #eef3ff); font-family: "JetBrains Mono", ui-monospace, monospace; }
.status-modal-section { margin-bottom: 16px; }
.status-modal-section .eyebrow { margin-bottom: 8px; }
.status-spark--lg { height: 44px; }
.status-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.status-modal-tag {
  font-size: 11px; padding: 0; border-radius: 0;
  color: var(--accent, #7bdcff);
  background: none;
  border: none;
}
.status-modal-log {
  margin: 0; padding-left: 18px;
  font-size: 13px; line-height: 1.7; color: var(--text-soft, #a8b9d4);
}
.status-modal-cta { width: 100%; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  .status-modal-overlay, .status-modal { transition: none; }
}
/* ── Modal: premium stat tiles + graph (features/log removed) ── */
.status-modal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 20px;
}
.sm-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.sm-stat-val {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 18px; font-weight: 700; color: var(--text, #eef3ff);
  line-height: 1.1;
}
.sm-stat-accent {
  background: linear-gradient(135deg, var(--accent, #7bdcff), var(--accent-2, #8de6d6));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sm-stat-key {
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted, #a8b9d4); opacity: 0.75;
}

.sm-graph-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sm-graph-head .eyebrow { margin: 0; }
.sm-graph-avg {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px;
  color: var(--accent, #7bdcff);
}
.sm-graph {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
/* baseline reference line */
.sm-graph::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 26%;
  height: 1px; background: rgba(255,255,255,0.10);
}
.status-spark--lg { height: 56px; position: relative; z-index: 1; }
.status-spark-bar.is-interactive {
  cursor: pointer; transition: filter 0.12s, transform 0.12s;
}
.status-spark-bar.is-interactive:hover {
  filter: brightness(1.3); transform: scaleY(1.06);
  transform-origin: bottom;
}
.status-spark-bar.is-selected {
  filter: brightness(1.5); outline: 1.5px solid var(--accent, #7bdcff);
  outline-offset: 1px; border-radius: 3px;
}
.status-spark-bar.bar--updating {
  background: linear-gradient(to top, rgba(96, 165, 250, 0.55), rgba(96, 165, 250, 0.25));
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.2);
}
.status-spark-bar.bar--offline {
  background: linear-gradient(to top, rgba(248, 113, 113, 0.6), rgba(248, 113, 113, 0.25));
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.2);
}
.status-spark-bar.bar--monitoring {
  background: linear-gradient(to top, rgba(251, 191, 36, 0.55), rgba(251, 191, 36, 0.25));
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.2);
}
.sm-bar-tooltip {
  position: absolute; left: 14px; bottom: calc(100% + 14px);
  min-width: 200px; max-width: 280px;
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 26, 45, 0.97), rgba(10, 18, 32, 0.98));
  border: 1px solid rgba(123, 220, 255, 0.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 12px 36px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  z-index: 10; font-size: 12.5px;
  transform: translateX(-50%);
  pointer-events: none;
  animation: smTipIn 0.15s ease-out;
}
@keyframes smTipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.sm-bar-tooltip::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  transform: translateX(-50%);
  width: 12px; height: 6px;
  background: rgba(10, 18, 32, 0.98);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.sm-bar-tooltip[hidden] { display: none; }
.sm-tip-date {
  font-size: 11px; font-weight: 700; color: var(--accent, #7bdcff);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em;
}
.sm-tip-ok {
  display: flex; align-items: center; gap: 8px;
  color: #34d399; font-weight: 600; font-size: 13px;
}
.sm-tip-ok svg { filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.4)); }
.sm-tip-divider {
  height: 1px; margin: 10px 0;
  background: linear-gradient(90deg, transparent, rgba(123, 220, 255, 0.15), transparent);
}
.sm-tip-event {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; color: var(--text, #eef3ff); font-weight: 500;
  line-height: 1.4;
}
.sm-tip-event + .sm-tip-event { border-top: 1px solid rgba(255,255,255,0.05); }
.sm-tip-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, #7bdcff);
  margin-top: 3px;
  box-shadow: 0 0 6px currentColor;
}
.sm-tip-dot--operational { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); }
.sm-tip-dot--updating { background: #60a5fa; box-shadow: 0 0 6px rgba(96, 165, 250, 0.5); }
.sm-tip-dot--offline { background: #f87171; box-shadow: 0 0 6px rgba(248, 113, 113, 0.5); }
.sm-tip-dot--monitoring { background: #fbbf24; box-shadow: 0 0 6px rgba(251, 191, 36, 0.5); }
.sm-tip-reason {
  padding-left: 16px; font-size: 11px; line-height: 1.4;
  color: var(--text-muted, #a8b9d4); opacity: 0.75;
  padding-bottom: 2px;
}
.sm-graph-axis {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--text-muted, #a8b9d4); opacity: 0.6;
}
/* ============================================================================
   Premium status hero + summary (status.html redesign)
   ============================================================================ */
.status-hero2 {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px;
  padding: 34px 44px 34px 36px;
}
.status-hero2-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent, #7bdcff) 14%, transparent), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--accent-2, #8de6d6) 9%, transparent), transparent 55%);
}
.status-hero2-left { position: relative; z-index: 1; min-width: 0; }
.status-hero2-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0; border-radius: 0;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #6ee7b7;
  background: none; border: none;
  margin-bottom: 14px;
}
.status-hero2-led { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: statusLed 1.6s ease-in-out infinite; }
.status-hero2 h1 { margin: 0 0 8px; }
.status-hero2 .metric-label { max-width: 52ch; }

/* Heartbeat EKG line */
.status-heartbeat { width: 100%; height: 48px; margin-top: 16px; overflow: visible; }
.status-heartbeat-track { stroke: rgba(255,255,255,0.07); stroke-width: 1.5; fill: none; }
.status-heartbeat-line {
  stroke: url(#hbGrad); stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent, #7bdcff) 55%, transparent));
  stroke-dasharray: 760; stroke-dashoffset: 760;
  animation: hbSweep 3.4s cubic-bezier(0.6,0,0.2,1) infinite;
}
@keyframes hbSweep { 0% { stroke-dashoffset: 760; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -760; } }

/* Uptime ring */
.status-hero2-right { position: relative; z-index: 1; padding: 6px; }
.status-uptime-ring { position: relative; width: 150px; height: 150px; }
.status-uptime-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.status-uptime-ring .ring-bg { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 7; }
.status-uptime-ring .ring-fill {
  fill: none; stroke: url(#ringGrad); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 339; stroke-dashoffset: 12;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent, #7bdcff) 45%, transparent));
  transition: stroke-dashoffset 1.1s cubic-bezier(0.16,1,0.3,1);
}
.status-uptime-ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; text-align: center;
}
.status-uptime-val {
  font-family: "Sora","Manrope",sans-serif; font-size: 26px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--text, #eef3ff), var(--accent, #7bdcff));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.status-uptime-cap {
  font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted, #a8b9d4); white-space: nowrap;
}

/* Summary stat strip */
.status-summary2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.status-stat {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease;
}
.status-stat:hover { transform: translateY(-3px); }
.status-stat-dot { width: 9px; height: 9px; border-radius: 50%; }
.status-stat-num { font-family: "Sora","Manrope",sans-serif; font-size: 30px; font-weight: 700; line-height: 1; color: var(--text, #eef3ff); }
.status-stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted, #a8b9d4); }
.status-stat[data-stat="operational"] { border-color: rgba(52,211,153,0.22); }
.status-stat[data-stat="operational"] .status-stat-dot { background: #34d399; box-shadow: 0 0 8px #34d399; }
.status-stat[data-stat="monitoring"] .status-stat-dot { background: #eab308; box-shadow: 0 0 8px #eab308; }
.status-stat[data-stat="updating"] .status-stat-dot { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.status-stat[data-stat="offline"] .status-stat-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* Board control bar */
.status-board-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.status-board-bar-id h2 { margin: 2px 0 0; }
.status-live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent, #7bdcff);
  background: none;
  border: none;
  box-shadow: none;
}
.status-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #7bdcff); box-shadow: 0 0 8px var(--accent, #7bdcff); animation: statusLed 1.4s ease-in-out infinite; }
.status-board-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.status-led-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .status-heartbeat-line, .status-hero2-led, .status-live-dot { animation: none; }
  .status-heartbeat-line { stroke-dashoffset: 0; }
}
@media (max-width: 760px) {
  .status-hero2 { grid-template-columns: 1fr; }
  .status-hero2-right { justify-self: center; }
  .status-summary2 { grid-template-columns: repeat(2, 1fr); }
  .status-board-bar, .status-board-controls { flex-direction: column; align-items: flex-start; }
}
/* ============================================================================
   Performance: keep paint isolated per card. (content-visibility was removed —
   with a multi-column grid + wrong intrinsic size it caused scroll-time
   re-layout jank, which was the real lag source.)
   ============================================================================ */
.status-prod { contain: paint; }

/* The pulsing LED on every pill is cheap individually but ~25 at once adds up.
   Keep it only on the hero/live indicators; product-card LEDs stay static. */
.status-prod .status-pill .status-led { animation: none !important; }
.status-prod .status-spark-bar { will-change: auto; }
/* ── Recent incidents timeline ── */
.status-timeline { list-style: none; margin: 6px 0 0; padding: 0; position: relative; }
.status-timeline::before {
  content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent, #7bdcff) 38%, transparent),
    color-mix(in srgb, var(--accent, #7bdcff) 12%, transparent) 60%,
    transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent, #7bdcff) 20%, transparent);
}
.status-tl-item { position: relative; padding: 0 0 22px 34px; }
.status-tl-item:last-child { padding-bottom: 4px; }

/* Marker orb — glowing, with a ring; resolved shows a check, live ones pulse. */
.status-tl-marker {
  position: absolute; left: -1px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,0.16);
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.08), rgba(8,14,24,0.9));
  z-index: 1;
}
.status-tl-marker svg { width: 11px; height: 11px; }
.status-tl-pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Resolved — filled green orb + check */
.status-tl-resolved .status-tl-marker {
  color: #04130d; border-color: transparent;
  background: linear-gradient(140deg, #34d399, #2dd4bf);
  box-shadow: 0 0 14px rgba(52,211,153,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
/* Monitoring — amber glow, pulsing */
.status-tl-monitoring .status-tl-marker {
  color: #eab308; border-color: color-mix(in srgb, #eab308 55%, transparent);
  box-shadow: 0 0 0 4px rgba(234,179,8,0.10), 0 0 16px rgba(234,179,8,0.5);
  animation: statusTlPulse 2s ease-in-out infinite;
}
/* Investigating — red glow, pulsing */
.status-tl-investigating .status-tl-marker {
  color: #ef4444; border-color: color-mix(in srgb, #ef4444 55%, transparent);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.10), 0 0 16px rgba(239,68,68,0.5);
  animation: statusTlPulse 1.6s ease-in-out infinite;
}
/* Updating — blue glow, pulsing */
.status-tl-updating .status-tl-marker {
  color: #60a5fa; border-color: color-mix(in srgb, #60a5fa 55%, transparent);
  box-shadow: 0 0 0 4px rgba(96,165,250,0.10), 0 0 16px rgba(96,165,250,0.5);
  animation: statusTlPulse 1.6s ease-in-out infinite;
}
.status-tl-monitoring .status-tl-pulse { box-shadow: 0 0 8px #eab308; }
.status-tl-investigating .status-tl-pulse { box-shadow: 0 0 8px #ef4444; }
.status-tl-updating .status-tl-pulse { box-shadow: 0 0 8px #60a5fa; }

@keyframes statusTlPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,0.0), 0 0 16px currentColor; }
  50% { box-shadow: 0 0 0 7px rgba(255,255,255,0.0), 0 0 24px currentColor; }
}

.status-tl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.status-tl-title { font-size: 14px; font-weight: 600; color: var(--text, #eef3ff); }
.status-tl-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0; border-radius: 0;
}
.status-tl-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.status-tl-badge-resolved { color: #6ee7b7; background: none; border: none; }
.status-tl-badge-monitoring { color: #fcd34d; background: none; border: none; }
.status-tl-badge-investigating { color: #fca5a5; background: none; border: none; }
.status-tl-badge-updating { color: #93c5fd; background: none; border: none; }
.status-tl-text { margin: 0 0 6px; font-size: 13px; line-height: 1.55; color: var(--text-soft, #a8b9d4); max-width: 70ch; }
.status-tl-meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--text-muted, #a8b9d4); opacity: 0.75;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.status-tl-dot { opacity: 0.5; }
/* Duration label — prominent colored text for active incident states */
.status-tl-dur { font-weight: 600; }
.status-tl-dur--investigating { color: #fca5a5; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 0 10px rgba(239, 68, 68, 0.35); }
.status-tl-dur--monitoring { color: #fcd34d; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 0 10px rgba(234, 179, 8, 0.35); }
.status-tl-auto {
  display: inline-block;
  margin-left: 6px;
  padding: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: none;
  border-radius: 0;
  vertical-align: middle;
}
/* ============================================================================
   PERFORMANCE (status page): an animated full-screen background behind many
   backdrop-filter glass panels forces the browser to re-blur every frame.
   Freeze the ambient background here and lighten glass so the page is smooth.
   Visuals look the same (static blurred gradient) — only the constant re-
   compositing is removed.
   ============================================================================ */
body[data-page="status"] .body-bg::before,
body[data-page="status"] .body-bg::after {
  animation: none !important;
}
/* Product cards never sat over moving content anyway — make sure they don't
   use backdrop-filter (they use a solid-ish fill), and isolate them. */
.status-prod { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* The big section panels: drop the heavy blur to a cheap one. The dark fill
   already reads as glass; the expensive part is the live blur. */
body[data-page="status"] .glass-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: linear-gradient(160deg, rgba(20,30,52,0.82), rgba(10,16,30,0.86)) !important;
}
/* Lite card (no inline spark graph) — tighten spacing so it doesn't look empty */
.status-prod--lite .status-prod-head { margin-bottom: 12px; }
.status-prod--lite .status-prod-foot { padding-top: 2px; }

/* Show-all button */
.status-showall {
  margin-top: 14px;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text, #eef3ff);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.1);
  -webkit-appearance: none; appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.status-showall:hover {
  background: color-mix(in srgb, var(--accent, #7bdcff) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent, #7bdcff) 32%, transparent);
}
.status-showall span {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px;
  color: var(--accent, #7bdcff);
  padding: 0; border-radius: 0;
  background: none;
}

/* Guest hint — some titles hidden until sign-in */
.status-guest-note {
  margin: 14px 0 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 12.5px; letter-spacing: 0.01em;
  color: var(--text-dim, #9fb1cc);
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.status-guest-note a {
  color: var(--accent, #7bdcff);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent, #7bdcff) 35%, transparent);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.status-guest-note a:hover {
  color: color-mix(in srgb, var(--accent, #7bdcff) 80%, white 20%);
  border-bottom-color: var(--accent, #7bdcff);
}

/* ============================================================================
   Update history modal
   ============================================================================ */
.upd-modal {
  width: min(480px, 100%);
  max-height: 85vh; overflow-y: auto;
  border-radius: 22px; position: relative;
}
.upd-modal-body { padding: 28px 24px 24px; }
.upd-modal-title {
  margin: 0 0 2px; font-size: 20px; font-weight: 700;
  color: var(--text, #eef3ff);
}
.upd-modal-subtitle {
  margin: 0 0 20px; font-size: 12px; font-weight: 500;
  color: var(--text-muted, #a8b9d4); opacity: 0.7;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.upd-modal-loading {
  padding: 40px 0; text-align: center;
  color: var(--text-muted, #a8b9d4); font-size: 13px;
}
.upd-summary {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  margin-bottom: 22px;
}
.upd-summary-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.upd-summary-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #7bdcff) 12%, transparent);
}
.upd-summary-icon svg { width: 16px; height: 16px; stroke: var(--accent, #7bdcff); }
.upd-summary-card > div { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.upd-summary-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted, #a8b9d4); opacity: 0.7;
  white-space: nowrap;
}
.upd-summary-val {
  font-size: 13px; font-weight: 600;
  color: var(--text, #eef3ff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upd-summary-date {
  font-size: 11px;
  color: var(--text-muted, #a8b9d4); opacity: 0.6;
  margin-left: auto; white-space: nowrap;
}
.upd-section { margin-bottom: 18px; }
.upd-section .eyebrow { margin-bottom: 10px; }
.upd-timeline { position: relative; padding-left: 22px; }
.upd-timeline::before {
  content: ""; position: absolute; left: 5px; top: 0; bottom: 0;
  width: 1px; background: rgba(255,255,255,0.08);
}
.upd-timeline--scroll { max-height: 260px; overflow-y: auto; scrollbar-width: none; }
.upd-timeline--scroll::-webkit-scrollbar { display: none; }
.upd-tl-item {
  position: relative; display: flex; gap: 12px;
  padding-bottom: 14px;
}
.upd-tl-item:last-child { padding-bottom: 0; }
.upd-tl-item--status { padding-left: 0; }
.upd-tl-item--status .upd-tl-pill { margin-left: 0; padding-left: 0; }
.upd-tl-dot {
  position: absolute; left: -19px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid rgb(16, 24, 40);
  animation: statusLed 1.4s ease-in-out infinite;
}
.upd-tl-dot--operational { background: #34d399; box-shadow: 0 0 6px #34d399; }
.upd-tl-dot--updating { background: #60a5fa; box-shadow: 0 0 6px #60a5fa; }
.upd-tl-dot--offline { background: #ef4444; box-shadow: 0 0 6px #ef4444; animation: none; }
.upd-tl-dot--monitoring { background: #eab308; box-shadow: 0 0 6px #eab308; }
.upd-tl-content { min-width: 0; flex: 1; }
.upd-tl-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text, #eef3ff);
}
.upd-tl-date {
  display: block; font-size: 11px;
  color: var(--text-muted, #a8b9d4); opacity: 0.6;
  margin-top: 2px;
}
.upd-tl-status-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 2px;
}
.upd-tl-pill { transform: scale(0.85); transform-origin: left center; }
.upd-tl-arrow {
  font-size: 11px; color: var(--text-muted, #a8b9d4); opacity: 0.5;
}
.upd-tl-from {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted, #a8b9d4);
}
.upd-tl-reason {
  display: block; font-size: 12px;
  color: var(--text-muted, #a8b9d4); opacity: 0.75;
  margin-top: 2px;
}
.upd-empty {
  text-align: center; padding: 20px 0;
  color: var(--text-muted, #a8b9d4); opacity: 0.6;
  font-size: 13px;
}