/* ---------- страница статуса (/status) ---------- */
/* --warn и мягкие фоны статусов (--ok-soft, --warn-line…) — в tokens.css, для обеих тем. */

.st-wrap { max-width: 860px; }
.st-wrap .section-head { margin-bottom: 32px; }

[data-state='ok'] { --st: var(--ok); --st-soft: var(--ok-soft); --st-line: var(--ok-line); }
[data-state='degraded'] { --st: var(--warn); --st-soft: var(--warn-soft); --st-line: var(--warn-line); }
[data-state='down'] { --st: var(--bad); --st-soft: var(--bad-soft); --st-line: var(--bad-line); }
[data-state='loading'], [data-state='unknown'] { --st: var(--muted); --st-soft: var(--bg-1); --st-line: var(--line-2); }

.st-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--st, var(--muted)); }

.st-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--st-soft); border: 1px solid var(--st-line);
}
.st-banner .st-dot { width: 14px; height: 14px; box-shadow: 0 0 0 6px var(--st-soft); }
.st-banner[data-state='ok'] .st-dot, .st-banner[data-state='down'] .st-dot { animation: st-pulse 2.4s var(--ease) infinite; }
.st-banner-text { display: grid; gap: 4px; min-width: 0; }
.st-banner-text b { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.st-banner-text small { color: var(--text-2); font-size: 0.8125rem; }

.st-h { font-size: 0.9375rem; font-weight: 600; color: var(--text-2); margin: 40px 0 12px; }

.st-list, .st-history { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); overflow: hidden; }

.st-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 16px 20px; border-top: 1px solid var(--line);
}
.st-item:first-child, .st-event:first-child { border-top: 0; }
.st-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-name b { font-weight: 600; overflow-wrap: anywhere; }
.st-since { color: var(--muted); font: 500 0.75rem/1.4 var(--mono); white-space: nowrap; }

.st-pill {
  display: inline-block; white-space: nowrap;
  font: 600 0.75rem/1 Inter, system-ui, sans-serif; color: var(--st);
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--st-line); background: var(--st-soft);
}

.st-event {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.st-time { color: var(--muted); font: 500 0.75rem/1.4 var(--mono); }
.st-what { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.st-what b { font-weight: 600; margin-right: 4px; }
.st-arrow { color: var(--muted); display: inline-flex; }
.st-arrow .icon { width: 14px; height: 14px; }

.st-empty { color: var(--muted); padding: 16px 20px; }
.st-note { color: var(--muted); font-size: 0.8125rem; margin-top: 12px; }

@keyframes st-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--st-line); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

@media (max-width: 640px) {
  .st-banner { padding: 18px; gap: 14px; }
  .st-banner-text b { font-size: 1.125rem; }
  .st-item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; }
  .st-item .st-since { grid-column: 1; grid-row: 2; padding-left: 22px; }
  .st-item .st-pill { grid-column: 2; grid-row: 1 / span 2; }
  .st-event { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .st-what b { flex-basis: 100%; }
  .st-empty { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-banner .st-dot { animation: none !important; }
}
