* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #f4f5f7;
    color: #1f2430;
}
.page { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px; background: #1f2430; color: #e8eaf0;
    padding: 16px; flex-shrink: 0;
}
.brand { font-size: 1.25rem; font-weight: 600; margin-bottom: 24px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
    color: #c7ccd9; text-decoration: none; padding: 8px 12px;
    border-radius: 6px; font-size: .95rem;
}
.nav-link:hover { background: #2c3240; color: #fff; }
.nav-link.active { background: #3b82f6; color: #fff; }
main { flex: 1; }
.content { padding: 24px 32px; max-width: 1100px; }
h1 { font-size: 1.5rem; margin-top: 0; }
table { width: 100%; border-collapse: collapse; background: #fff;
    border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef0f3; font-size: .92rem; }
th { background: #fafbfc; font-weight: 600; }
tr:last-child td { border-bottom: none; }
.btn { border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer;
    font-size: .85rem; margin-right: 4px; }
.btn-primary { background: #3b82f6; color: #fff; }
.btn-secondary { background: #e5e7eb; color: #1f2430; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-success { background: #22c55e; color: #fff; }
.btn:hover { opacity: .9; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; color: #fff; }
.b-ok { background: #22c55e; }
.b-down { background: #ef4444; }
.b-silent { background: #f59e0b; }
.b-unreachable { background: #a855f7; }
.b-unknown { background: #9ca3af; }
.b-restartfailed { background: #b91c1c; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.metric { font-size: 2rem; font-weight: 700; }
.metric-label { color: #6b7280; font-size: .85rem; }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: .9rem; }
input, select { width: 100%; padding: 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: .9rem; }
.form-row { margin-bottom: 8px; }
.toolbar { margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.muted { color: #6b7280; font-size: .85rem; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
