/* One file, no framework, no font from anywhere else. The page is served to
   the internet by a server whose whole argument is that it is small and
   auditable, and a stylesheet pulled from a CDN would be a third party in the
   sign-in path. */
:root {
  color-scheme: light dark;
  --fg: #16181d;
  --muted: #5d626e;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #d9dce3;
  --accent: #2f5d9e;
  --bad: #9e2f36;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e8ee; --muted: #98a0b0; --bg: #14161b; --card: #1c1f26;
    --line: #2c313b; --accent: #7ba6e8; --bad: #e2848a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 2rem 1rem; background: var(--bg); color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 34rem; margin: 0 auto; }
h1 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
h2 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em;
     color: var(--muted); margin: 1.75rem 0 0.5rem; }
section {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem;
}
.lead { margin-top: 0; }
.hint { color: var(--muted); font-size: 0.9rem; }
button {
  font: inherit; font-weight: 600; padding: 0.6rem 1.1rem; border-radius: 8px;
  border: 1px solid transparent; background: var(--accent); color: #fff;
  cursor: pointer;
}
button:disabled { opacity: 0.55; cursor: progress; }
#sign-out { background: transparent; color: var(--muted); border-color: var(--line); }
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0.25rem; }
input {
  font: inherit; width: 100%; padding: 0.55rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
}
#code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }
details { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
details button { margin-top: 1rem; }
ul { list-style: none; padding: 0; margin: 0; }
li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
li:last-child { border-bottom: 0; }
li .age { color: var(--muted); float: right; font-variant-numeric: tabular-nums; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
#message { min-height: 1.5rem; margin: 1rem 0 0; font-size: 0.9rem; }
#message.bad { color: var(--bad); }
