:root {
    --bg: #e9edf2;
    --card: #ffffff;
    --text: #1a2a3a;
    --muted: #5f6f81;
    --indigo: #0d5fa6;
    --indigo-dark: #0a4b83;
    --border: #c9d3dd;
    --header: #dce4ec;
}

* { box-sizing: border-box; }
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}
.container { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
.topbar {
    background: linear-gradient(180deg, #1d6fb7 0%, #0d5fa6 100%);
    color: #fff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0a4b83;
}
.topbar a { color: #fff; text-decoration: none; margin-left: 10px; font-size: 13px; }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(30, 42, 58, 0.08);
}
.button, button {
    display: inline-block;
    padding: 9px 12px;
    border-radius: 4px;
    background: var(--indigo);
    color: #fff;
    border: none;
    text-decoration: none;
    cursor: pointer;
}
.button-secondary {
    background: #e8edf2;
    color: #1a2a3a;
    border: 1px solid #bcc7d3;
}
input, select, textarea {
    width: 100%;
    border: 1px solid #b7c4d1;
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 6px;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0d5fa6;
    box-shadow: 0 0 0 2px rgba(13, 95, 166, 0.15);
}
label { display: block; margin-top: 10px; font-weight: 600; font-size: 13px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid #e1e7ee; padding: 8px; font-size: 13px; }
th { background: var(--header); color: #223547; font-weight: 600; border-bottom: 1px solid #c9d3dd; }
.flash { border-radius: 4px; padding: 10px; margin-bottom: 12px; border: 1px solid #8fb3d3; background: #edf5fc; }
.badge { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: bold; }
.badge-low { background: #d1fae5; color: #065f46; }
.badge-medium { background: #fde68a; color: #92400e; }
.badge-high { background: #fecaca; color: #991b1b; }
.badge-critical { background: #fca5a5; color: #7f1d1d; }
.map { height: 360px; border-radius: 10px; }
.thumb { width: 120px; border-radius: 8px; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }

@media (max-width: 768px) {
    .container { margin: 12px auto; padding: 0 10px; }
    .row { grid-template-columns: 1fr; }
    .topbar { flex-direction: column; align-items: flex-start; gap: 6px; }
    .topbar a { margin-left: 0; margin-right: 10px; }
    table { min-width: 760px; }
    .card { padding: 12px; }
    .button, button { width: 100%; text-align: center; }
}
