* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 system-ui, sans-serif; background: #0f1115; color: #e6e6e6; }
.hidden { display: none !important; }
.login { display: flex; height: 100vh; align-items: center; justify-content: center; }
.login form { background: #1a1d24; padding: 32px; border-radius: 12px; width: 280px; }
.login input { width: 100%; padding: 10px; margin: 12px 0; background: #0f1115; border: 1px solid #333; color: #fff; border-radius: 6px; }
.login button { width: 100%; padding: 10px; background: #2d7; border: 0; border-radius: 6px; font-weight: 600; cursor: pointer; }
.err { color: #e55; margin-top: 8px; min-height: 18px; }
header { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 0 24px 24px; }
.card { background: #1a1d24; border-radius: 12px; padding: 16px; border-left: 4px solid #444; cursor: pointer; }
.card.alive { border-left-color: #2d7; }
.card.dead { border-left-color: #e55; }
.card h2 { margin: 0 0 8px; font-size: 16px; display: flex; justify-content: space-between; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.alive { background: #2d7; } .dot.dead { background: #e55; }
.row { display: flex; justify-content: space-between; margin: 3px 0; color: #aaa; }
.row b { color: #fff; }
.bars { margin-top: 10px; border-top: 1px solid #2a2e36; padding-top: 8px; }
.bar { height: 6px; background: #2a2e36; border-radius: 3px; margin: 4px 0; overflow: hidden; }
.bar > i { display: block; height: 100%; background: #4af; }
.bar > i.warn { background: #fa3; } .bar > i.crit { background: #e55; }
.muted { color: #667; }
#city-view { padding: 16px 24px; }
#back { background: #2a2e36; color: #cc8; border: 0; padding: 8px 14px; border-radius: 6px; cursor: pointer; margin-bottom: 12px; }
.chart { background: #1a1d24; border-radius: 10px; padding: 12px; margin: 10px 0; }
.chart h3 { margin: 0 0 8px; font-size: 13px; color: #9af; }
.chart svg { width: 100%; height: 80px; display: block; }
.chart polyline { fill: none; stroke: #4af; stroke-width: 2; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid #2a2e36; }
