:root {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --accent: #2563eb;
  --card: #f8fafc;
  --ok: #047857;
  --err: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090e1a;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --line: #1f2937;
    --accent: #60a5fa;
    --card: #0f172a;
    --ok: #34d399;
    --err: #f87171;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); }
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand { color: var(--fg); font-weight: 650; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-header nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 2.2em 0 0.5em; }
h3 { font-size: 17px; margin: 1.6em 0 0.4em; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.summary ul { margin: 0; padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--card); }
.caps { text-transform: uppercase; font-size: 14px; }
pre.license {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p, details ul { margin: 8px 0 0; }
form { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
input, select, textarea {
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  justify-self: start;
}
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.status { font-size: 14px; min-height: 1.4em; margin: 0; }
.status.err { color: var(--err); }
.status.ok { color: var(--ok); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 20px 16px; }
