* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #e1e4e8;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #21262d;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
}

.subtitle {
    font-size: 0.85rem;
    color: #8b949e;
    margin-top: 0.25rem;
}

.overall-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.overall-badge.operational {
    background: #0d1f0d;
    color: #3fb950;
    border: 1px solid #238636;
}

.overall-badge.degraded {
    background: #2a1f00;
    color: #d29922;
    border: 1px solid #9e6a03;
}

.overall-badge.critical {
    background: #2d0000;
    color: #f85149;
    border: 1px solid #da3633;
}

.overall-badge.unknown {
    background: #1c1c1c;
    color: #8b949e;
    border: 1px solid #30363d;
}

/* Groups */
.check-group {
    margin-bottom: 2rem;
}

.group-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8b949e;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Checks grid */
.checks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.check-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.15s;
}

.check-card.ok { border-left: 3px solid #3fb950; }
.check-card.warn { border-left: 3px solid #d29922; }
.check-card.critical { border-left: 3px solid #f85149; }
.check-card.error { border-left: 3px solid #f85149; }
.check-card.unknown { border-left: 3px solid #484f58; }

.check-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.ok { background: #3fb950; box-shadow: 0 0 6px rgba(63,185,80,0.4); }
.status-dot.warn { background: #d29922; box-shadow: 0 0 6px rgba(210,153,34,0.4); }
.status-dot.critical { background: #f85149; box-shadow: 0 0 6px rgba(248,81,73,0.4); animation: pulse 2s infinite; }
.status-dot.error { background: #f85149; animation: pulse 2s infinite; }
.status-dot.unknown { background: #484f58; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.check-label {
    font-weight: 500;
    flex-grow: 1;
    font-size: 0.9rem;
}

.check-status-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #8b949e;
}

.check-card.ok .check-status-text { color: #3fb950; }
.check-card.warn .check-status-text { color: #d29922; }
.check-card.critical .check-status-text { color: #f85149; }

.check-body .check-message {
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.check-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #484f58;
}

.meta-item.uptime {
    font-weight: 600;
    color: #58a6ff;
}

/* Incidents */
.incidents-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #21262d;
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.incident {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: #161b22;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid #21262d;
}

.incident-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.incident-dot.active { background: #f85149; animation: pulse 2s infinite; }
.incident-dot.resolved { background: #3fb950; }

.incident-name {
    font-weight: 500;
    min-width: 120px;
}

.incident-started, .incident-resolved {
    color: #8b949e;
}

.incident-ongoing {
    color: #f85149;
    font-weight: 600;
    font-size: 0.75rem;
}

.no-incidents {
    color: #3fb950;
    font-size: 0.85rem;
    padding: 1rem;
    background: #0d1f0d;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #238636;
}

/* Footer */
footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #21262d;
    text-align: center;
}

footer p {
    font-size: 0.75rem;
    color: #484f58;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .checks-grid {
        grid-template-columns: 1fr;
    }
    .incident {
        flex-wrap: wrap;
    }
}
