/* Deliberately minimal. Function first; visual polish is explicitly out of scope. */

:root {
  --fg: #1a1a1a;
  --muted: #666;
  --line: #ddd;
  --bad: #b00020;
  --good: #0a7a3d;
}

body {
  margin: 0 auto;
  padding: 1.5rem;
  max-width: 60rem;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--fg);
}

header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

auth-gate {
  display: block;
}

.userbar {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.signin {
  margin: 3rem auto;
  max-width: 22rem;
  text-align: center;
}

.error {
  color: var(--bad);
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.user {
  font-size: 0.875rem;
  color: var(--muted);
}

a.button,
button.link {
  font: inherit;
  cursor: pointer;
}

a.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--fg);
  border-radius: 4px;
  text-decoration: none;
  color: var(--fg);
}

button.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
}

h1 {
  font-size: 1.25rem;
}

health-badge {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--muted);
}

health-badge[data-state="ok"] {
  color: var(--good);
}

health-badge[data-state="error"] {
  color: var(--bad);
}
