* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background: #0f1115;
  color: #e6e6e6;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: #171a21;
  border-bottom: 1px solid #2a2e37;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-user { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; color: #a3a9b3; }
.nav a { color: #e6e6e6; text-decoration: none; font-weight: 600; }
.nav a:hover { color: #4da3ff; }
.link-button {
  background: none; border: none; color: #a3a9b3; text-decoration: underline;
  cursor: pointer; padding: 0; font-size: 0.9rem;
}
.link-button:hover { color: #4da3ff; }
.container { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
h1 { margin-top: 0; }
.button, button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
}
button.danger { background: #dc2626; }
.table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.table th, .table td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #2a2e37; }
.mono { font-family: monospace; font-size: 0.85rem; color: #a3a9b3; }
.form { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }
.form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; }
.form input { padding: 0.5rem; border-radius: 6px; border: 1px solid #2a2e37; background: #171a21; color: white; }
.canvas-wrap { max-width: 900px; }
#zone-canvas { max-width: 100%; border: 1px solid #2a2e37; cursor: crosshair; }
.toolbar { margin-top: 1rem; display: flex; gap: 0.75rem; }
.schedule-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.day-check { width: 90px; display: flex; align-items: center; gap: 0.4rem; }
.alert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.alert-card { background: #171a21; border-radius: 8px; overflow: hidden; border: 1px solid #2a2e37; }
.alert-card.escalated { border-color: #dc2626; box-shadow: 0 0 0 1px #dc2626; }
.alert-card.reviewed { opacity: 0.85; }
.alert-card img { width: 100%; display: block; }
.alert-meta { padding: 0.5rem 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; }
.alert-meta .notes { color: #a3a9b3; font-style: italic; }
.review-form { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.review-form input { flex: 1 1 100px; min-width: 0; padding: 0.35rem; border-radius: 6px; border: 1px solid #2a2e37; background: #0f1115; color: white; font-size: 0.8rem; }
.review-form button { flex-shrink: 0; white-space: nowrap; padding: 0.35rem 0.6rem; font-size: 0.8rem; }

.login-wrap { max-width: 360px; margin: 4rem auto; }
.error { color: #f87171; }

.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.station-card {
  background: #171a21; border: 1px solid #2a2e37; border-radius: 8px; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; color: #e6e6e6;
}
.station-card .count { color: #a3a9b3; font-size: 0.9rem; }
.station-card.has-alerts { border-color: #dc2626; }
.station-card.has-alerts .count { color: #f87171; font-weight: 600; }

.hint { color: #a3a9b3; font-size: 0.9rem; }
