/* Page « État des services » */
.st { width: min(1040px, 100% - 40px); margin: 0 auto; padding: 8px 0 80px; display: flex; flex-direction: column; gap: 28px; }
.st-h { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: var(--fg); }
.st-muted { color: var(--muted); margin: 0; }

.st-overall { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line); background: rgb(24 34 59 / 0.55); }
.st-overall strong { display: block; font-size: 20px; color: var(--fg); }
.st-overall small { color: var(--muted); font-size: 14px; }
.st-overall .st-server { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; }
.st-dot { width: 16px; height: 16px; border-radius: 50%; background: #5d6b8f; box-shadow: 0 0 0 6px rgb(93 107 143 / 0.2); flex: none; }
.st-overall[data-state='operational'] { border-color: rgb(47 211 143 / 0.4); background: rgb(47 211 143 / 0.08); }
.st-overall[data-state='operational'] .st-dot { background: #2fd38f; box-shadow: 0 0 0 6px rgb(47 211 143 / 0.2); }
.st-overall[data-state='degraded'] { border-color: rgb(245 181 68 / 0.45); background: rgb(245 181 68 / 0.08); }
.st-overall[data-state='degraded'] .st-dot { background: #f5b544; box-shadow: 0 0 0 6px rgb(245 181 68 / 0.2); }
.st-overall[data-state='outage'] { border-color: rgb(242 85 90 / 0.5); background: rgb(242 85 90 / 0.08); }
.st-overall[data-state='outage'] .st-dot { background: #f2555a; box-shadow: 0 0 0 6px rgb(242 85 90 / 0.2); }
.st-overall[data-state='maintenance'] { border-color: rgb(74 92 240 / 0.5); background: rgb(74 92 240 / 0.1); }
.st-overall[data-state='maintenance'] .st-dot { background: #7c8cff; box-shadow: 0 0 0 6px rgb(124 140 255 / 0.2); }

.st-card { padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: rgb(24 34 59 / 0.4); }
.st-card h2, .st-card h3 { margin: 0 0 4px; color: var(--fg); font-size: 18px; }
.st-card p { margin: 0; color: var(--muted); font-size: 15px; }
.st-card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.st-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.st-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--fg); }
.st-steps li span.d { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.st-steps .ic { width: 18px; text-align: center; }
.st-verdict { margin: 16px 0 0 !important; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); color: var(--fg) !important; }
.st-verdict.ok { border-color: rgb(47 211 143 / 0.4); background: rgb(47 211 143 / 0.08); }
.st-verdict.warn { border-color: rgb(245 181 68 / 0.45); background: rgb(245 181 68 / 0.08); }
.st-verdict.bad { border-color: rgb(242 85 90 / 0.5); background: rgb(242 85 90 / 0.08); }

.st-services { display: grid; gap: 12px; }
.svc { padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: rgb(24 34 59 / 0.4); }
.svc-top { display: flex; align-items: center; gap: 12px; }
.svc-name { color: var(--fg); font-weight: 600; font-size: 16.5px; }
.svc-desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.svc-state { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.svc-state i { width: 10px; height: 10px; border-radius: 50%; background: #2fd38f; }
.svc[data-s='degraded'] .svc-state { color: #f5b544; } .svc[data-s='degraded'] .svc-state i { background: #f5b544; }
.svc[data-s='outage'] .svc-state { color: #ff7a7e; } .svc[data-s='outage'] .svc-state i { background: #f2555a; }
.svc[data-s='maintenance'] .svc-state { color: #9aa8ff; } .svc[data-s='maintenance'] .svc-state i { background: #7c8cff; }
.svc[data-s='operational'] .svc-state { color: #5fe0aa; }
.svc-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin: 14px 0 6px; }
.bar { display: inline-block; height: 26px; border-radius: 4px; background: #2a3556; }
.svc-bars .bar { width: 100%; }
.st-legend .bar { width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.bar.ok { background: #2fd38f; } .bar.good { background: #8be3a9; } .bar.warn { background: #f5b544; } .bar.bad { background: #f2555a; } .bar.none { background: #2a3556; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.svc-spark { width: 160px; height: 28px; flex: none; }
.st-legend { margin: 12px 4px 0; color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }

.st-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.metric { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgb(24 34 59 / 0.4); }
.metric b { display: block; color: var(--fg); font-size: 24px; font-weight: 700; }
.metric span { color: var(--muted); font-size: 13.5px; }

.st-list { display: grid; gap: 10px; }
.inc { padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgb(24 34 59 / 0.4); }
.inc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inc-title { color: var(--fg); font-weight: 600; }
.tag { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.tag.down { color: #ff7a7e; border-color: rgb(242 85 90 / 0.5); } .tag.degraded { color: #f5b544; border-color: rgb(245 181 68 / 0.5); }
.tag.maintenance { color: #9aa8ff; border-color: rgb(124 140 255 / 0.5); } .tag.done { color: #5fe0aa; border-color: rgb(47 211 143 / 0.4); }
.inc-meta { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.inc-actions { margin-left: auto; display: flex; gap: 10px; }
.inc-actions button { background: none; border: 0; color: #a5b1ff; cursor: pointer; font: inherit; font-size: 13px; }

.st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; color: var(--muted); }
.st-table td, .st-table th { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.st-table td:first-child { color: var(--fg); word-break: break-all; }
.st-errors { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.st-errors b { color: #ff9a9d; }
.st-form { display: grid; gap: 12px; align-content: start; }
.st-form label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.st-form input, .st-form select { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: #060a14; color: var(--fg); font: inherit; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 760px) {
  .st-grid2, .st-row { grid-template-columns: 1fr; }
  .st-card-head { flex-direction: column; align-items: stretch; }
  .svc-top { flex-wrap: wrap; } .svc-state { margin-left: 0; }
  .st-overall { flex-wrap: wrap; } .st-overall .st-server { margin-left: 0; text-align: left; }
}
