.st-main {
    --st-up: #22c55e;
    --st-slow: #f59e0b;
    --st-down: #ef4444;
    --st-off: rgba(167, 167, 167, 0.35);
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 112px 24px 96px;
    color: var(--ld-text);
    font-family: var(--ld-font);
}

.st-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--ld-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.st-live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--st-up);
}

.st-live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--st-up);
    animation: st-pulse 2s ease-out infinite;
}

@keyframes st-pulse {
    from { transform: scale(1); opacity: .7; }
    to { transform: scale(3); opacity: 0; }
}

.st-title {
    margin: 0 0 24px;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.st-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid;
    border-radius: 16px;
    transition: background-color .3s ease, border-color .3s ease, opacity .3s ease;
}

.st-banner.is-stale { opacity: .6; }

.st-banner__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.st-banner__copy { min-width: 0; }
.st-banner h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.st-banner p { margin: 0; color: var(--ld-muted); font-size: 15px; }

.st-banner--operational { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .1); }
.st-banner--operational .st-banner__icon { background: var(--st-up); }
.st-banner--operational .st-banner__icon::before { content: "✓"; }

.st-banner--degraded { border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .1); }
.st-banner--degraded .st-banner__icon,
.st-banner--partial .st-banner__icon { background: var(--st-slow); }
.st-banner--degraded .st-banner__icon::before,
.st-banner--partial .st-banner__icon::before { content: "!"; }

.st-banner--partial { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .14); }

.st-banner--major { border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .12); }
.st-banner--major .st-banner__icon { background: var(--st-down); }
.st-banner--major .st-banner__icon::before { content: "×"; }

.st-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 40px;
    color: var(--ld-muted);
    font-size: 13px;
}

.st-meta p { margin: 0; }

.st-meta__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.st-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--ld-line);
    border-radius: 8px;
    background: transparent;
    color: var(--ld-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.st-refresh:hover { border-color: var(--ld-brand); }
.st-refresh:disabled { opacity: .55; cursor: progress; }
.st-refresh:disabled svg { animation: st-spin 1s linear infinite; }

@keyframes st-spin { to { transform: rotate(360deg); } }

.st-components__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.st-components__head h2 {
    margin: 0;
    color: var(--ld-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.st-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ld-muted);
    font-size: 12px;
}

.st-legend i {
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 2px;
}

.st-legend i.is-operational { background: var(--st-up); }
.st-legend i.is-degraded { background: var(--st-slow); }
.st-legend i.is-down { background: var(--st-down); }

.st-list {
    margin: 0;
    padding: 0;
    border: 1px solid var(--ld-line);
    border-radius: 16px;
    background: var(--ld-card);
    list-style: none;
    overflow: hidden;
}

.st-row {
    padding: 18px 20px;
    border-bottom: 1px solid var(--ld-line);
}

.st-row:last-child { border-bottom: 0; }

.st-row__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.st-row__name {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.st-row__name h3 { margin: 0 0 2px; font-size: 15px; font-weight: 650; }
.st-row__name p { margin: 0; color: var(--ld-muted); font-size: 13px; }

.st-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--st-off);
}

.st-row--operational .st-dot { background: var(--st-up); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.st-row--degraded .st-dot { background: var(--st-slow); box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.st-row--down .st-dot { background: var(--st-down); box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); }

.st-row__state {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    max-width: 50%;
    text-align: right;
}

.st-row__state strong { font-size: 14px; }
.st-row--operational .st-row__state strong { color: var(--st-up); }
.st-row--degraded .st-row__state strong { color: var(--st-slow); }
.st-row--down .st-row__state strong { color: var(--st-down); }
.st-row--unknown .st-row__state strong { color: var(--ld-muted); }

.st-row__state span {
    color: var(--ld-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.st-bars {
    display: flex;
    gap: 2px;
    height: 28px;
    margin: 14px 0 6px;
}

.st-bars i {
    flex: 1;
    min-width: 0;
    border-radius: 2px;
    background: var(--st-off);
}

.st-bars i.is-operational { background: var(--st-up); }
.st-bars i.is-degraded { background: var(--st-slow); }
.st-bars i.is-down { background: var(--st-down); }
.st-bars i.is-unknown,
.st-bars i.is-empty { background: var(--st-off); opacity: .45; }
.st-bars i:hover { opacity: .7; }

.st-row__foot {
    display: flex;
    justify-content: space-between;
    color: var(--ld-muted);
    font-size: 12px;
}

.st-note {
    min-height: 1em;
    margin: 12px 0 0;
    color: var(--ld-muted);
    font-size: 12px;
}

.st-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding: 24px;
    border: 1px solid var(--ld-line);
    border-radius: 16px;
    background: var(--ld-card);
}

.st-help h2 { margin: 0 0 4px; font-size: 18px; }
.st-help p { margin: 0; color: var(--ld-muted); font-size: 14px; }

.st-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    background: var(--ld-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.st-btn:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
    .st-main { padding: 96px 16px 64px; }
    .st-banner { padding: 16px; }
    .st-banner h2 { font-size: 18px; }
    .st-row { padding: 16px; }
    .st-row__top { flex-direction: column; gap: 8px; }
    .st-row__state {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 8px;
        max-width: none;
        padding-left: 22px;
        text-align: left;
    }
    .st-bars { gap: 1px; height: 24px; }
    .st-bars i:nth-child(-n+30) { display: none; }
    .st-row__foot span:first-child { visibility: hidden; }
    .st-help { flex-direction: column; align-items: stretch; text-align: center; }
    .st-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .st-live-dot::after,
    .st-refresh:disabled svg { animation: none; }
}
