:root {
    --bg: #111;
    --card: #1b1b1b;
    --border: #333;
    --text: #ccc;
    --text-dim: #888;
    --ok: #27c93f;
    --bad: #ff3b30;
    --unknown: #1e90ff;
    --stat-bg: #2a2a2a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, sans-serif;
    overflow-y: auto;
    padding: 24px;
}

.page {
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    width: min(1100px, 100%);
}

.card {
    width: min(500px, 46vw);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    text-align: center;
}

.list {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
}

.row:last-child {
    border-bottom: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ok);
}

.row.down .dot {
    background: var(--bad);
}

.row.unknown .dot {
    background: var(--unknown);
}

.name {
    flex: 1;
    font-weight: 500;
}

.stat {
    background: var(--stat-bg);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    color: var(--text-dim);
}

footer {
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    font-size: 0.9em;
    color: var(--text-dim);

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 85px;
}

.footer-segment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-left {
    justify-self: end;
}

.footer-right {
    justify-self: start;
}

.footer-bold {
    font-weight: 600;
    color: var(--text);
}

.separator {
    color: var(--border);
    user-select: none;
    justify-self: center;
}

@media (max-width: 900px) {
    body {
        padding: 20px 0;
    }

    .page {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 18px;
        padding: 0 14px;
    }

    .card {
        width: min(500px, 92vw);
    }

    footer {
        column-gap: 60px;
    }
}
