:root {
  --bg: #fbfbf9; --fg: #1d2126; --muted: #5d6670; --line: #dcdfe3; --card: #ffffff;
  --accent: #0b5cad; --accent-fg: #ffffff; --strong: #1f8a5b; --possible: #c98200; --error: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171a; --fg: #e6e8eb; --muted: #9aa3ad; --line: #2c3238; --card: #1b1f23;
          --accent: #6fb1f5; --accent-fg: #10151a; --strong: #4cc38a; --possible: #f0b445; --error: #f2857d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 "Segoe UI", system-ui, Arial, sans-serif; }
a { color: var(--accent); }
header.site, footer.site { border-color: var(--line); border-style: solid; border-width: 0 0 1px 0; }
footer.site { border-width: 1px 0 0 0; margin-top: 48px; color: var(--muted); font-size: 14px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
header.site .wrap, footer.site .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
header.site .brand { font-weight: 700; text-decoration: none; color: var(--fg); margin-right: auto; }
header.site form { display: inline; }
main { padding: 24px 0; }
h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 21px; margin: 28px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.btn, button { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 6px;
  padding: 9px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.secondary, button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 400; text-decoration: underline; }
button.danger { background: transparent; color: var(--error); border: 1px solid var(--line); }
input[type=text], input[type=email], input[type=number], input[type=search], textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card);
  color: var(--fg); font: inherit; }
textarea { min-height: 150px; font-family: Consolas, Menlo, monospace; font-size: 14px; }
label { display: block; font-weight: 600; margin: 16px 0 4px; }
.hint { color: var(--muted); font-size: 14px; margin: 2px 0 6px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { flex: 1 1 180px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 0 0 12px; }
.card.strong { border-left: 4px solid var(--strong); }
.card.possible { border-left: 4px solid var(--possible); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 6px; border: 1px solid var(--line); }
.tag.new { color: var(--error); }
.error { color: var(--error); font-weight: 600; }
.notice { border: 1px solid var(--possible); border-radius: 6px; padding: 8px 12px; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
