:root {
  --bg: #f6f7f9;
  --card: #fff;
  --ink: #1d2330;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #2f5bea;
  --danger: #c0362c;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line);
}
header h1 { font-size: 18px; margin: 0; }
header h1 a { color: inherit; text-decoration: none; }
a { color: var(--accent); }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
label input, label textarea { font-weight: normal; }
.nowrap { white-space: nowrap; }
main { max-width: 960px; margin: 24px auto; padding: 0 16px; display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.narrow { max-width: 420px; margin: 48px auto; width: 100%; }
h2 { font-size: 16px; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 8px; }
textarea { min-height: 280px; }
input, select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
textarea { font-family: ui-monospace, Menlo, monospace; resize: vertical; }
button, a.button {
  display: inline-block; font: inherit; font-size: 14px; padding: 7px 14px; border-radius: 6px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none;
}
button.ghost, a.button.ghost { background: transparent; color: var(--accent); }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button.small, a.button.small { padding: 3px 8px; font-size: 12px; }
form { margin: 0; }
td.actions form { display: inline; }
.notice { margin: 0; padding: 10px 14px; border: 1px solid #b7d7b0; background: #eff8ec; border-radius: 6px; font-size: 14px; }
table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; }
td.actions { text-align: right; white-space: nowrap; }
td.actions > * { margin-left: 4px; }
code, pre { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 6px; overflow-x: auto; }
.keys { display: flex; flex-wrap: wrap; gap: 4px; }
.key { font-size: 12px; padding: 1px 6px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
