/* LegacySwitch — clean, minimal, no external assets. */
:root {
  color-scheme: light dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.site-header {
  border-bottom: 1px solid var(--border, #ddd);
}
.site-title {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem;
}
.site-footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.85rem;
  opacity: 0.7;
}
.card {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
}
h1 {
  margin-top: 0;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}
.btn-primary {
  background: #1d4ed8;
  color: #fff;
}
.contact-list { padding: 0; list-style: none; }
.contact-list li { margin: 0.5rem 0; display: flex; gap: 1rem; align-items: baseline; }
.contact-list span { flex: 1; }
.btn-danger { background: #b91c1c; color: #fff; }

/* The check-in is the one action the owner returns for, so it is the
   largest control on the page. */
.btn-checkin {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}
.status-line { margin-top: 0; }
.status-ACTIVE { color: #15803d; }
.status-WARNING { color: #b45309; }
.status-GRACE_PERIOD { color: #b45309; }
.status-TRIGGERED { color: #b91c1c; }
.status-PAUSED { opacity: 0.75; }
/* Validation message, or a state the owner must not miss. */
.alert {
  padding: 0.75rem 1rem;
  border-left: 3px solid #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}
.hint { margin-top: 0.25rem; font-size: 0.85rem; opacity: 0.75; }
.disclaimer {
  font-size: 0.85rem;
  opacity: 0.75;
  border-top: 1px solid var(--border, #ddd);
  padding-top: 1rem;
}

/* Cross-page navigation. Every area shipped in Phases 3-8 was originally
   reachable only by typing its URL, which made finished features look
   missing; these links are the fix, so they live in the layout. */
.site-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: baseline; }
.site-nav .site-title { margin-right: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.9rem; }
