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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Mono", "Menlo", monospace;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.5;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #21262d;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #f0f6fc;
}

#last-update {
    font-size: 12px;
    color: #8b949e;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}

.status-card.error {
    border-color: #da3633;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #8b949e;
}

.status-indicator.ok {
    background: #3fb950;
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.4);
}

.status-indicator.error {
    background: #da3633;
    box-shadow: 0 0 8px rgba(218, 54, 51, 0.4);
}

.status-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 2px;
}

.status-info p {
    font-size: 11px;
    color: #8b949e;
}

section {
    margin-bottom: 24px;
}

section h2 {
    font-size: 15px;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #21262d;
}

.action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #21262d;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    color: #c9d1d9;
    background: #21262d;
}

.btn:hover {
    background: #30363d;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #fff;
}

.btn-primary:hover {
    background: #388bfd;
}

.btn-warning {
    background: #9e6a03;
    border-color: #9e6a03;
    color: #fff;
}

.btn-warning:hover {
    background: #bb8009;
}

.btn-danger {
    background: #da3633;
    border-color: #da3633;
    color: #fff;
}

.btn-danger:hover {
    background: #f85149;
}

.btn-secondary {
    background: #21262d;
    border-color: #30363d;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
}

.history-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #161b22;
}

.history-ts {
    color: #8b949e;
    font-size: 11px;
    min-width: 160px;
}

.history-action {
    color: #c9d1d9;
    min-width: 140px;
}

.history-result {
    font-weight: 600;
    min-width: 60px;
}

.history-result.ok { color: #3fb950; }
.history-result.warn { color: #d29922; }
.history-result.error { color: #da3633; }

.history-detail {
    color: #8b949e;
    font-size: 11px;
}

.empty {
    color: #8b949e;
    font-size: 13px;
}

.report-details table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.report-details td {
    padding: 4px 8px;
    border-bottom: 1px solid #21262d;
}

.report-details td:first-child {
    color: #8b949e;
    width: 120px;
}

.warn { color: #d29922; }
.error { color: #da3633; }

@media (max-width: 640px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    .action-grid {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
