body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 24px;
}
.container {
    max-width: 1180px;
    margin: 0 auto;
}
.container.narrow {
    max-width: 700px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.navlinks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.subtitle {
    color: #94a3b8;
    margin-top: 6px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.card {
    background: #1e293b;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.label {
    color: #94a3b8;
    font-size: 14px;
}
.value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 8px;
}
.button {
    display: inline-block;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
}
.button.secondary {
    background: #334155;
}
.button.danger {
    background: #dc2626;
}
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.alert.success {
    background: #14532d;
    color: #dcfce7;
}
.alert.error {
    background: #7f1d1d;
    color: #fee2e2;
}
label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #cbd5e1;
}
input, select, textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
}
textarea.code {
    font-family: monospace;
    min-height: 480px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #334155;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}
.badge.ok {
    background: #14532d;
    color: #dcfce7;
}
.badge.bad {
    background: #7f1d1d;
    color: #fee2e2;
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .topbar {
        flex-direction: column;
    }
}


.badge.warn {
    background: #78350f;
    color: #fef3c7;
}

.badge.secondary {
    background: #334155;
    color: #e2e8f0;
}
