body {
  font-family: system-ui, sans-serif;
  margin: 0;
  color: #1c1e21;
  background: #f5f6f7;
}
header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.2rem;
  background: #23272f;
  color: #fff;
}
header h1 { font-size: 1.1rem; margin: 0; }
header a { color: #fff; text-decoration: none; }
nav a { color: #cbd2d9; margin-right: 0.9rem; text-decoration: none; }
nav a:hover { color: #fff; }
main { max-width: 860px; margin: 1.5rem auto; padding: 0 1rem; }
.card {
  background: #fff;
  border: 1px solid #dde1e6;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
button {
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
button.secondary { background: #6b7280; }
button.danger { background: #dc2626; }
button:disabled { opacity: 0.5; cursor: default; }
input[type="text"], textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  font-family: inherit;
}
textarea { min-height: 9rem; font-family: ui-monospace, monospace; }
label { display: block; margin: 0.6rem 0 0.25rem; font-weight: 600; font-size: 0.9rem; }
.muted { color: #6b7280; font-size: 0.85rem; }
.error { color: #dc2626; }
.ok { color: #059669; }
.scheme-list { list-style: none; padding: 0; }
.scheme-list li { border-bottom: 1px solid #eee; padding: 0.5rem 0; }
.card h3 { margin: 1rem 0 0.4rem; }
.card h3:first-of-type { margin-top: 0.6rem; }
code { background: #eef1f4; padding: 0.1rem 0.3rem; border-radius: 4px; }
pre {
  background: #23272f;
  color: #e8eaed;
  padding: 0.7rem;
  border-radius: 6px;
  overflow-x: auto;
}
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.autocomplete {
  background: #fff;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  margin-top: 2px;
  max-height: 14rem;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.autocomplete-item {
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}
.autocomplete-item.active, .autocomplete-item:hover { background: #e8eefc; }
.var-list { line-height: 1.9; }
.var-table { border-collapse: collapse; width: 100%; }
.var-table th, .var-table td {
  border-bottom: 1px solid #eee;
  padding: 0.4rem 0.6rem;
  text-align: left;
  font-size: 0.9rem;
}
.var-table th { color: #6b7280; font-weight: 600; }
