/* /status/ and /en/status/ — the public status page (11.10). Layout after status pages people know
   (a headline, one row of daily bars per service, past incidents), in the site's graphite. */
.status-page {
  --st-ok: #5dbb7f;
  --st-degraded: #d9b44a;
  --st-partial: #e8853d;
  --st-major: #f26d5e;
  --st-maintenance: #6fa3e8;
  --st-offline: #6f737a;
  --st-none: var(--surface-3, #303338);
}
.status-page .container { max-width: 880px; }
.st-hero { padding: 28px 0 8px; }
.st-hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.05; }
.st-hero p { margin: 10px 0 0; color: var(--muted); max-width: 60ch; }

[data-level="operational"] { --st-c: var(--st-ok); }
[data-level="degraded"] { --st-c: var(--st-degraded); }
[data-level="partial"] { --st-c: var(--st-partial); }
[data-level="major"] { --st-c: var(--st-major); }
[data-level="maintenance"] { --st-c: var(--st-maintenance); }
[data-level="offline"] { --st-c: var(--st-offline); }
[data-level="nodata"] { --st-c: var(--st-none); }

/* --- headline */
.st-banner {
  display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; padding: 18px 20px;
  border: 1px solid var(--line-strong, #36393e); border-radius: var(--radius-card, 20px); background: var(--surface, #1b1d20);
}
.st-banner-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--st-b, var(--st-none)); color: #121315;
}
.st-banner-icon svg { width: 18px; height: 18px; }
.st-banner-icon .st-i { display: none; }
.st-banner[data-state="operational"] { --st-b: var(--st-ok); }
.st-banner[data-state="degraded"] { --st-b: var(--st-degraded); }
.st-banner[data-state="partial"] { --st-b: var(--st-partial); }
.st-banner[data-state="major"], .st-banner[data-state="error"] { --st-b: var(--st-major); }
.st-banner[data-state="maintenance"] { --st-b: var(--st-maintenance); }
.st-banner[data-state="stale"] { --st-b: var(--st-degraded); }
.st-banner[data-state="operational"] .st-i-ok,
.st-banner[data-state="maintenance"] .st-i-tool,
.st-banner:is([data-state="degraded"], [data-state="partial"], [data-state="major"], [data-state="error"], [data-state="stale"]) .st-i-warn { display: block; }
.st-banner[data-state="loading"] .st-banner-icon { animation: st-pulse 1.4s ease-in-out infinite; }
.st-banner-text { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex: 1; }
.st-banner-text strong { font-family: var(--display); font-size: clamp(18px, 3.4vw, 22px); font-weight: 700; line-height: 1.25; }
.st-banner-text span { color: var(--muted-2, #a39c8c); font-size: 13px; }
@keyframes st-pulse { 50% { opacity: .45; } }

/* --- open incidents */
.st-active { display: grid; gap: 10px; margin: 0 0 14px; }
.st-active-card {
  padding: 16px 18px 14px; border: 1px solid var(--line-strong, #36393e); border-left: 4px solid var(--st-c);
  border-radius: 16px; background: var(--surface, #1b1d20);
}
.st-active-title { margin: 0; font-family: var(--body); font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.st-active-text { margin: 6px 0 0; color: var(--text); }
.st-active-meta { margin: 6px 0 0; color: var(--muted-2, #a39c8c); font-size: 13px; }

/* --- services */
.st-services { margin: 0 0 8px; }
.st-services-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.st-services-head h2, .st-history h2 { font-size: clamp(20px, 3.6vw, 26px); }
.st-services-head p { margin: 0; color: var(--muted-2, #a39c8c); font-size: 13px; }
.st-list {
  list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-strong, #36393e);
  border-radius: var(--radius-card, 20px); background: var(--surface, #1b1d20); overflow: hidden;
}
.st-row { padding: 16px 20px 14px; }
.st-row + .st-row { border-top: 1px solid var(--line, #282b2f); }
.st-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.st-row-title { min-width: 0; }
.st-row-name { margin: 0; font-family: var(--body); font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.st-row-about { margin: 2px 0 0; color: var(--muted-2, #a39c8c); font-size: 13px; line-height: 1.35; }
.st-row-state { flex: none; color: var(--st-c); font-size: 14px; font-weight: 600; white-space: nowrap; }
.st-bars { display: flex; gap: 2px; height: 34px; margin: 12px 0 8px; }
.st-bar {
  flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--st-c); cursor: pointer;
  transition: opacity var(--t-press, 120ms), transform var(--t-press, 120ms);
}
.st-bar[data-level="nodata"] { cursor: default; }
.st-bars:hover .st-bar:not(:hover):not([data-active]) { opacity: .72; }
.st-bar[data-active] { transform: scaleY(1.08); }
.st-row-foot { display: flex; align-items: center; gap: 10px; color: var(--muted-2, #a39c8c); font-size: 12.5px; white-space: nowrap; }
.st-rule { flex: 1; height: 1px; background: var(--line-strong, #36393e); }
.st-uptime { color: var(--muted, #b3aa98); }
.st-parts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; }
.st-part { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted, #b3aa98); }
.st-part[data-level="offline"] { color: var(--muted-2, #a39c8c); }
.st-part[data-level="offline"] .st-part-name { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-c); flex: none; }
.st-part-state { color: var(--st-c); }
.st-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 4px 0; padding: 0; color: var(--muted-2, #a39c8c); font-size: 12.5px; }
.st-legend li { display: inline-flex; align-items: center; gap: 6px; }
.st-legend .st-swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--st-c); }

/* --- tooltip */
.st-tip {
  position: fixed; z-index: 60; width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 10px 12px;
  border: 1px solid var(--line-strong, #36393e); border-radius: 12px; background: var(--surface-2, #25282c);
  box-shadow: 0 12px 32px rgba(0,0,0,.45); font-size: 13px; line-height: 1.4; pointer-events: none;
}
.st-tip p { margin: 4px 0 0; color: var(--muted, #b3aa98); }
.st-tip-date { display: block; color: var(--text); }
.st-tip-uptime { color: var(--text) !important; }
.st-tip-incident { padding-left: 10px; border-left: 3px solid var(--st-c); color: var(--text) !important; }

/* --- history */
.st-history { margin: 30px 0 0; }
.st-history h2 { margin: 0 0 6px; }
.st-day { padding: 14px 0; border-bottom: 1px solid var(--line, #282b2f); }
.st-day-title { margin: 0; font-family: var(--body); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.st-day-empty { margin: 6px 0 0; color: var(--muted-2, #a39c8c); font-size: 14px; }
.st-incident { margin: 10px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--st-c); }
.st-incident-title { margin: 0; font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--st-c); text-transform: none; letter-spacing: 0; }
.st-update { margin: 6px 0 0; font-size: 14px; color: var(--text); }
.st-update strong { font-weight: 700; }
.st-update-time { display: block; color: var(--muted-2, #a39c8c); font-size: 12.5px; }
.st-incident-meta { margin: 6px 0 0; color: var(--muted-2, #a39c8c); font-size: 12.5px; }

.st-help { margin: 26px 0 40px; color: var(--muted, #b3aa98); font-size: 14px; }
.st-help a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .st-hero { padding-top: 18px; }
  .st-row { padding: 14px 14px 12px; }
  .st-bars { gap: 2px; height: 30px; }
  .st-banner { padding: 14px 16px; gap: 12px; }
  .st-banner-text { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .st-bar { transition: none; }
  .st-banner[data-state="loading"] .st-banner-icon { animation: none; }
}
