* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1c1c1e;
  padding-bottom: 70px;
}
header.topbar {
  background: #1c1c1e;
  color: white;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.topbar a { color: #9fd3ff; text-decoration: none; font-size: 0.9rem; }
main { padding: 16px; max-width: 640px; margin: 0 auto; }
nav.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: white;
  border-top: 1px solid #ddd;
}
nav.bottomnav a {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  text-decoration: none;
  color: #555;
  font-size: 0.8rem;
}
nav.bottomnav a.active { color: #007aff; font-weight: 600; }
.card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h3 { margin: 0 0 6px 0; font-size: 1rem; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.ok { background: #e2f8ec; color: #1e8e4b; }
.badge.warn { background: #fdecea; color: #c62828; }
.badge.neutral { background: #eef0f2; color: #555; }
form.stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
input, select, button {
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
button {
  background: #007aff;
  color: white;
  border: none;
  font-weight: 600;
}
button.danger { background: #e5484d; }
.row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.muted { color: #777; font-size: 0.85rem; }
.error { color: #c62828; margin-bottom: 12px; }
.success { color: #2e7d32; margin-bottom: 12px; }
h1 { font-size: 1.3rem; }
h2 { font-size: 1.1rem; }
