/* healthily: minimal phase 0 styles. */
:root {
  --bg: #fbfbf9;
  --fg: #1c1f1d;
  --muted: #5f6662;
  --line: #dcdfdb;
  --accent: #1f6f5c;
  --accent-fg: #ffffff;
  --error: #a3261b;
  --radius: 8px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141615;
    --fg: #e9ece9;
    --muted: #a3aaa5;
    --line: #2c312e;
    --accent: #5cc0a4;
    --accent-fg: #0c1a15;
    --error: #ff8a7e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 4px 8px; }
.site-header {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.tabs { display: flex; gap: 16px; flex: 1; }
.tabs a { color: var(--muted); text-decoration: none; }
.tabs a[aria-current=page] { color: var(--fg); font-weight: 600; }
.signout { display: flex; align-items: center; gap: 12px; margin-left: auto; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.narrow { max-width: 420px; }
h1 { font-size: 1.75rem; margin: 0 0 16px; }
.lede { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.error { color: var(--error); margin: 4px 0; }
label { display: block; font-weight: 600; margin: 16px 0 4px; }
input[type=email], input:not([type]), input[type=text] {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius);
}
input[aria-invalid=true] { border-color: var(--error); }
button, .button {
  display: inline-block; margin-top: 12px; padding: 10px 16px; font: inherit; font-weight: 600;
  color: var(--accent-fg); background: var(--accent); border: 0; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
}
button.secondary { margin: 0; padding: 6px 12px; color: var(--fg); background: transparent; border: 1px solid var(--line); }
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row input { flex: 1; letter-spacing: 0.2em; font-size: 1.25rem; }
.code-row button { margin-top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.flash { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.connections { list-style: none; margin: 0; padding: 0; }
.connection {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.connection h2 { font-size: 1.1rem; margin: 0; }
.connection p { margin: 2px 0; }
.connection-actions { display: flex; gap: 8px; align-items: center; }
.connection-actions button { margin-top: 0; }
.status.ok { color: var(--accent); font-weight: 600; }
.status.warn { color: var(--error); font-weight: 600; }
.range { display: flex; gap: 16px; margin: 8px 0; }
.range a[aria-current=page] { color: var(--fg); font-weight: 600; text-decoration: none; }
.table-wrap { overflow-x: auto; }
table.coverage { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.coverage th, table.coverage td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.coverage th { color: var(--muted); font-weight: 600; }
table.coverage tr.flagged td { background: color-mix(in srgb, var(--error) 8%, transparent); }
