:root {
    --brand-50: #f9f9f5;
    --brand-100: #e2e2d4;
    --brand-200: #cfceb7;
    --brand-500: #00373a;
    --brand-900: #00191c;

    --gray-50: #f2f3f3;
    --gray-100: #dadcdc;
    --gray-200: #c3c6c6;
    --gray-300: #abafaf;
    --gray-400: #949999;
    --gray-500: #7c8383;
    --gray-600: #636969;
    --gray-700: #4b4e4e;
    --gray-800: #323434;
    --gray-900: #191a1a;

    --accent-green: #49b9b1;
    --accent-green-light: #daf1ef;
    --accent-red: #e5675c;
    --accent-red-light: #fde5e2;
    --warning: #ff871a;
    --warning-light: #ffdeae;

    --surface: #f9f9f5;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-md: 0 4px 12px rgba(0, 55, 58, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Figtree", "Figtree Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--surface);
    color: var(--gray-800);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.page {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-500);
    margin: 0 0 4px;
    line-height: 1.1;
}

.header p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}

.refresh-meta {
    text-align: right;
    font-size: 12px;
    color: var(--gray-500);
}

.refresh-meta strong {
    color: var(--gray-800);
    font-weight: 600;
}

.summary {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.summary--up {
    border-left: 4px solid var(--accent-green);
}

.summary--down {
    border-left: 4px solid var(--accent-red);
}

.summary--paused {
    border-left: 4px solid var(--gray-400);
}

.summary__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.summary--up .summary__dot {
    background: var(--accent-green);
    box-shadow: 0 0 0 6px var(--accent-green-light);
}

.summary--down .summary__dot {
    background: var(--accent-red);
    box-shadow: 0 0 0 6px var(--accent-red-light);
}

.summary--paused .summary__dot {
    background: var(--gray-400);
    box-shadow: 0 0 0 6px var(--gray-100);
}

.summary__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-500);
    margin: 0 0 2px;
}

.summary__detail {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
}

.checks {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.check {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-50);
}

.check__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    align-items: start;
}

.check:last-child {
    border-bottom: none;
}

.check__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 2px;
    line-height: 1.3;
}

.check__url {
    font-size: 12px;
    color: var(--gray-500);
    word-break: break-all;
}

.check__note {
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
}

.bar {
    display: flex;
    gap: 2px;
    width: 100%;
    margin-top: 4px;
}

.bar__seg {
    flex: 1 1 0;
    height: 20px;
    border-radius: 2px;
    background: var(--gray-100);
    transition: transform 0.1s ease, opacity 0.1s ease;
    cursor: help;
}

.bar__seg:hover {
    transform: scaleY(1.15);
    opacity: 0.85;
}

.bar__seg--up {
    background: var(--accent-green);
}

.bar__seg--partial {
    background: var(--warning);
}

.bar__seg--down {
    background: var(--accent-red);
}

.bar__seg--unknown {
    background: var(--gray-100);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
}

.stats__legend {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.stats__numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}

.stats__sla {
    color: var(--brand-500);
}

.stats__sla abbr {
    text-decoration: none;
    border-bottom: 1px dotted var(--gray-400);
    cursor: help;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    margin-right: 4px;
}

.stats__sla strong {
    font-weight: 700;
    font-size: 14px;
}

.stats__total {
    color: var(--gray-500);
}

.stats__divider {
    color: var(--gray-300);
}

.stats__downtime {
    color: var(--accent-red);
    font-weight: 600;
}

.sla-note {
    margin: 16px 4px 0;
    font-size: 11px;
    color: var(--gray-500);
    text-align: right;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge--up {
    background: var(--accent-green-light);
    color: #1f6e69;
}

.badge--up .badge__dot {
    background: var(--accent-green);
}

.badge--down {
    background: var(--accent-red-light);
    color: #9a2319;
}

.badge--down .badge__dot {
    background: var(--accent-red);
}

.badge--paused {
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge--paused .badge__dot {
    background: var(--gray-400);
}

.error {
    background: var(--accent-red-light);
    border: 1px solid var(--accent-red);
    color: #6f1811;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

.footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
}

.footer a {
    color: var(--gray-500);
    text-decoration: none;
}

.footer a:hover {
    color: var(--brand-500);
}

@media (max-width: 600px) {
    .page {
        padding: 32px 16px 48px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
    }

    .refresh-meta {
        text-align: left;
    }

    .check {
        padding: 16px 18px;
    }

    .bar__seg {
        height: 16px;
    }
}
