:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #dfe5ef;
    --text: #1f2937;
    --muted: #6b7280;
    --success: #087f23;
    --warning: #8a5a00;
    --danger: #b00020;
    --info: #005a9e;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}
.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.header h1, .header h2 {
    margin: 0 0 6px;
}
.nav a, .actions a, .link {
    color: #0645ad;
    text-decoration: none;
}
.nav a:hover, .actions a:hover, .link:hover { text-decoration: underline; }
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
}
.metric {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}
.metric .label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}
.metric .value {
    font-size: 24px;
    font-weight: 700;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}
.filters label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}
input, select, button {
    padding: 9px 10px;
    border: 1px solid #cfd7e6;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
button, .button {
    display: inline-block;
    background: #0b5cad;
    color: #fff !important;
    border-color: #0b5cad;
    cursor: pointer;
    text-decoration: none !important;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.button.secondary { background: #374151; border-color: #374151; }
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
th, td {
    border-bottom: 1px solid var(--border);
    padding: 10px 9px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}
th {
    background: #f9fafb;
    font-size: 12px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.badge.success { background: #e8f6ee; color: var(--success); }
.badge.warning { background: #fff4d6; color: var(--warning); }
.badge.danger { background: #fde8e8; color: var(--danger); }
.badge.neutral { background: #eef2f7; color: #374151; }
.badge.info { background: #e8f2ff; color: var(--info); }
.muted { color: var(--muted); }
.ok { color: var(--success); font-weight: 700; }
.bad { color: var(--danger); font-weight: 700; }
.warn { color: var(--warning); font-weight: 700; }
pre {
    max-height: 360px;
    overflow: auto;
    background: #0f172a;
    color: #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
}
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
    .header { flex-direction: column; }
}
