/* Публичная страница статуса */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.st-wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }
.st-muted { color: var(--text-2); }

/* шапка */
.st-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.st-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.st-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; color: var(--text); min-width: 0; }
.st-logo:hover { text-decoration: none; }
.st-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-logo i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #14b8a6); flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.st-logo img { height: 30px; max-width: 120px; object-fit: contain; flex: none; }
.st-links { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.st-links a { color: var(--text-2); }
.st-lang { font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface-3); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; cursor: pointer; }
@media (max-width: 560px) { .st-links a { display: none; } }

main.st-wrap { padding-top: 28px; padding-bottom: 48px; display: grid; gap: 20px; }

/* общий баннер */
.st-banner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.st-banner h1 { font-size: 22px; line-height: 1.25; }
.st-banner p { margin: 2px 0 0; font-size: 13.5px; }
.st-banner-icon { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); }
.st-banner-icon::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.st-banner[data-level="operational"] { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.st-banner[data-level="operational"] .st-banner-icon { background: var(--ok-soft); color: var(--ok); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.st-banner[data-level="degraded"] { border-color: var(--warn-line); }
.st-banner[data-level="degraded"] .st-banner-icon, .st-banner[data-level="maintenance"] .st-banner-icon { background: var(--warn-soft); color: var(--warn); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7h2v7h-2zm0 9h2v2h-2z'/%3E%3C/svg%3E"); }
.st-banner[data-level="maintenance"] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.st-banner[data-level="maintenance"] .st-banner-icon { background: var(--accent-soft); color: var(--accent); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.7 19 13.6 9.9c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/%3E%3C/svg%3E"); }
.st-banner[data-level="outage"] { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.st-banner[data-level="outage"] .st-banner-icon { background: var(--bad-soft); color: var(--bad); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z'/%3E%3C/svg%3E"); }

/* карточки */
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.st-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; flex-wrap: wrap; }
.st-card-head h2 { font-size: 16px; }
.st-legend { font-size: 13px; }

/* компонент */
.st-comp { padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.st-card-head + div .st-comp:first-child { border-top: 0; }
.st-comp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-comp-name { font-weight: 600; min-width: 0; }
.st-comp-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.st-comp-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lv-operational { color: var(--ok); }
.lv-degraded { color: var(--warn); }
.lv-outage { color: var(--bad); }
.lv-maintenance { color: var(--accent); }

.st-bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 30px; margin-top: 10px; }
.st-bars i { display: block; border-radius: 2px; background: var(--line-2); min-width: 0; cursor: default; }
.st-bars i[data-l="operational"] { background: var(--ok); }
.st-bars i[data-l="degraded"] { background: var(--warn); }
.st-bars i[data-l="outage"] { background: var(--bad); }
.st-bars i[data-l="maintenance"] { background: var(--accent); }
.st-bars i:hover, .st-bars i:focus { opacity: .7; outline: none; }
.st-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.st-axis b { font-weight: 600; color: var(--text-2); }
@media (max-width: 640px) {
  .st-bars { grid-template-columns: repeat(30, 1fr); }
  .st-bars i:nth-child(-n+60) { display: none; }
  .st-axis .d90 { display: none; }
}
@media (min-width: 641px) { .st-axis .d30 { display: none; } }

/* сети — компактно */
.st-nets .st-comp { padding: 10px 20px 12px; }
.st-nets .st-bars { height: 20px; margin-top: 8px; }

/* инциденты */
.st-section-title { font-size: 16px; margin: 6px 2px 10px; }
.st-inc { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--r-lg); padding: 16px 20px; box-shadow: var(--shadow-sm); }
.st-inc + .st-inc { margin-top: 12px; }
.st-inc[data-impact="outage"] { border-left-color: var(--bad); }
.st-inc[data-impact="maintenance"] { border-left-color: var(--accent); }
.st-inc.done { border-left-color: var(--line-2); }
.st-inc h3 { font-size: 16px; line-height: 1.35; }
.st-inc-meta { font-size: 13px; margin-top: 2px; }
.st-upd { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.st-upd li { font-size: 14px; }
.st-upd b { font-weight: 650; }
.st-upd time { display: block; font-size: 12.5px; color: var(--text-3); }
.st-upd p { margin: 1px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 16px 20px; color: var(--text-2); font-size: 14px; }

.st-foot { text-align: center; font-size: 13px; margin: 8px 0 0; }

/* подсказка над полоской */
.st-tip { position: fixed; z-index: 10; pointer-events: none; max-width: 240px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.45;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.st-tip b { display: block; font-weight: 650; }
#active:empty, #scheduled:empty, #recent:empty { display: none; }
