* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #111;
  color: #eee;
  min-height: 100vh;
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}
h1 { font-size: 1.3rem; text-align: center; }
.card {
  background: #1c1c1c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
input, select, button {
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #222;
  color: #eee;
  width: 100%;
  margin-bottom: 10px;
}
button {
  background: #333;
  cursor: pointer;
  font-weight: 600;
}
button:active { transform: scale(0.98); }
.error { color: #ff6b6b; min-height: 1.2em; text-align: center; }
.sos-button {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-width: 280px;
  margin: 24px auto;
  border-radius: 50%;
  background: #d32f2f;
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  border: none;
  box-shadow: 0 0 0 8px rgba(211,47,47,0.25);
}
.sos-button:active { background: #a11d1d; }
.status-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: #999; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.online { background: #4caf50; }
.dot.offline { background: #666; }
.alert-card { border-left: 4px solid #d32f2f; }
.alert-card.resolved { border-left-color: #4caf50; opacity: 0.6; }
.resp-buttons { display: flex; gap: 8px; }
.resp-buttons button { flex: 1; margin-bottom: 0; font-size: 0.85rem; padding: 10px 6px; }
.resp-list { font-size: 0.85rem; color: #aaa; margin-top: 8px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.top-bar a, .top-bar button { width: auto; }
.link-btn { background: none; border: none; color: #8ab4f8; text-decoration: underline; padding: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { text-align: left; padding: 8px 4px; border-bottom: 1px solid #333; }
