:root {
  --bg: #ffffff;
  --surface: #f6f4fa;
  --text: #1d1a24;
  --muted: #5b5666;
  --line: #e2dde9;
  --accent: #7a1fd6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131a;
    --surface: #1f1c26;
    --text: #ece9f2;
    --muted: #a9a3b6;
    --line: #34303d;
    --accent: #c08cff;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { max-width: 860px; margin: 0 auto; padding: 0 16px; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
header img { height: 44px; width: auto; display: block; }
/* The logo's lettering is dark, so it sits on a light tile in dark mode. */
@media (prefers-color-scheme: dark) {
  header img { background: #ffffff; border-radius: 8px; padding: 4px 8px; height: 52px; }
}
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
nav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); }
a { color: var(--accent); }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 28px 0 8px; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
p.lead { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
/* Words wrap only at spaces. Long emails carry <wbr> and long IDs class="id", so they can break on a phone
   without letting the table squeeze a column down to one letter. */
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
th { color: var(--muted); font-weight: 600; width: 34%; }
thead th { width: auto; }
/* Column tables: the name column gets room, short values and headings stay on one line. */
thead th:first-child:not(.short) { width: 26%; }
td.short, th.short { white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; }
ol li, ul li { margin: 4px 0; }
footer { color: var(--muted); font-size: 0.9rem; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 40px; }
@media (max-width: 560px) {
  th { width: 40%; }
  thead th:first-child { width: auto; }
  td.short, th.short { white-space: normal; }
  th, td { padding: 8px 6px; }
  .id { overflow-wrap: anywhere; }
  h1 { font-size: 1.45rem; }
}
