:root {
  --bg: #f7f7f5; --panel: #ffffff; --ink: #1c1d1f; --muted: #5d6166;
  --line: #e2e3e0; --accent: #1f5f8b; --accent-ink: #ffffff; --ok: #2e7d4f; --bad: #b3372d;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151618; --panel: #1d1f22; --ink: #ecedee; --muted: #9ea3a8;
          --line: #2d3034; --accent: #6fb0de; --accent-ink: #0d1116; --ok: #6cc58f; --bad: #ef8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; min-height: 100vh;
       display: flex; flex-direction: column; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px;
       border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; gap: 8px; align-items: center; font-weight: 650; color: var(--ink); text-decoration: none; }
.who { color: var(--muted); font-size: 14px; }
.page { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 16px; }
.foot { padding: 16px 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 28px 0 8px; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 16px 0; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text] { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--bg);
       border: 1px solid var(--line); border-radius: 8px; }
input[type=text]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
button, .button { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 8px; border: 0; cursor: pointer;
       background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-block; }
button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.hint { font-size: 14px; color: var(--muted); margin-top: 8px; }
.error { color: var(--bad); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; }
/* phase 6a-2: signed-in home */
.who { display: flex; gap: 12px; align-items: center; }
button.small { padding: 6px 12px; font-size: 14px; }
.card.flush { padding: 0; overflow-x: auto; }
.card h2 { margin-top: 0; }
.pad { padding: 20px 20px 4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
     color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line); }
td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; margin: 0 6px 4px 0;
        border-radius: 999px; border: 1px solid var(--line); }
.pill.pass { color: var(--ok); } .pill.fail, .pill.error { color: var(--bad); } .pill.info { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat b { font-size: 24px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }
.ok { color: var(--ok); } .bad { color: var(--bad); }
@media (max-width: 520px) { th, td { padding: 10px 12px; } .pad { padding: 16px 12px 4px; } }
.bar { gap: 12px; }
.who button { white-space: nowrap; }
@media (max-width: 520px) { .who span { display: none; } }
