* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #f4f5f7; color: #1c2024; }
header { background: #fff; border-bottom: 1px solid #dde; padding: 12px 24px; display: flex; gap: 20px; align-items: center; }
header h1 { font-size: 18px; margin: 0 16px 0 0; }
header a.nav { text-decoration: none; color: #555; padding: 6px 10px; border-radius: 6px; }
header a.nav.active { background: #e6edff; color: #2a4bd7; }
header .spacer { flex: 1; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.btn { border: 1px solid #ccd; background: #fff; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 14px; text-decoration: none; color: inherit; }
.btn.primary { background: #2a4bd7; color: #fff; border-color: #2a4bd7; }
.btn.danger { color: #c22; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card { background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 2px #0001; }
.card .label { font-size: 12px; color: #667; text-transform: uppercase; letter-spacing: .04em; }
.card .value { font-size: 26px; font-weight: 600; margin-top: 4px; }
.card .sub { font-size: 12px; color: #778; }
.panel { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px #0001; }
.panel h2 { margin: 0 0 10px; font-size: 15px; }
.grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.range { display: flex; gap: 6px; margin-bottom: 10px; }
.range button.on { background: #e6edff; border-color: #2a4bd7; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: #fafbfc; font-size: 12px; text-transform: uppercase; color: #667; }
.tag { padding: 2px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.t-normal { background: #d8f5e1; color: #166a33; } .t-elevated { background: #fff3c4; color: #7a5b00; }
.t-high1 { background: #ffe0c2; color: #8a4200; } .t-high2 { background: #ffd0d0; color: #a11; }
.t-crisis { background: #c22; color: #fff; } .t-low { background: #d6e8ff; color: #145; }
dialog { border: none; border-radius: 12px; padding: 22px; width: min(440px, 94vw); box-shadow: 0 10px 40px #0004; }
dialog::backdrop { background: #0006; }
dialog h2 { margin-top: 0; }
label { display: block; font-size: 13px; margin-bottom: 12px; color: #445; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; border: 1px solid #ccd; border-radius: 6px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
label.check { display: flex; gap: 8px; align-items: center; } label.check input { width: auto; margin: 0; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
.err { color: #c22; font-size: 13px; min-height: 18px; }
.empty { color: #778; text-align: center; padding: 30px; }
