* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a2332; background: #f3f5f8; }
a { color: #1e66d0; text-decoration: none; }
a:hover { text-decoration: underline; }
.nav { background: #1a2332; color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.nav .brand { font-weight: 600; font-size: 17px; }
.nav a { color: #cfd8e3; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .spacer { flex: 1; }
.nav .user { font-size: 13px; color: #9fb0c4; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
h1 { margin: 0 0 16px; font-size: 22px; }
h2 { margin: 0 0 12px; font-size: 17px; }
.card { background: #fff; border-radius: 6px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e4e8ee; font-size: 14px; }
th { font-weight: 600; color: #566577; background: #f7f9fb; }
tr:hover td { background: #f9fafc; }
.btn { display: inline-block; padding: 8px 14px; border-radius: 4px; border: 1px solid #1e66d0; background: #1e66d0; color: #fff; cursor: pointer; font-size: 14px; text-decoration: none; }
.btn:hover { background: #1854ad; text-decoration: none; color: #fff; }
.btn.secondary { background: #fff; color: #1e66d0; }
.btn.danger { background: #d03a3a; border-color: #d03a3a; }
.btn.danger:hover { background: #b02e2e; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
input[type=text], input[type=email], input[type=password], select { width: 100%; padding: 8px 10px; border: 1px solid #cfd8e3; border-radius: 4px; font-size: 14px; font-family: inherit; }
label { display: block; font-size: 13px; color: #566577; margin-bottom: 4px; margin-top: 10px; }
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.flash.err { background: #fde8e8; color: #9a1a1a; }
.flash.ok { background: #e2f5e7; color: #1c6b35; }
.login-box { max-width: 360px; margin: 80px auto; background: #fff; padding: 30px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.login-box h1 { text-align: center; margin-bottom: 20px; }
.map-wrap { height: calc(100vh - 110px); border-radius: 6px; overflow: hidden; }
#map { height: 100%; width: 100%; }
.muted { color: #8193a8; font-size: 13px; }
.actions { display: flex; gap: 6px; }
form.inline { display: inline; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #e4e8ee; color: #566577; }
.pill.on { background: #c8ecd3; color: #1c6b35; }
.pill.off { background: #f5d7d7; color: #8c2929; }
