:root {
  --bg: #0b0f17;
  --panel: #131a26;
  --panel-2: #1a2332;
  --line: #243349;
  --text: #e6edf6;
  --muted: #8aa0b8;
  --accent: #6aa9ff;
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header {
  border-bottom: 1px solid var(--line);
  padding: 14px 22px; display: flex; gap: 18px; align-items: center;
  background: var(--panel);
}
header h1 { font-size: 16px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
header nav { display: flex; gap: 14px; }
header nav a { color: var(--muted); font-size: 13px; }
header nav a.active { color: var(--text); }
main { padding: 22px; max-width: 1100px; margin: 0 auto; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 18px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
input, select, textarea, button {
  font: inherit; color: inherit;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; font-family: ui-monospace, monospace; font-size: 13px; }
button {
  background: var(--accent); color: #0b0f17; border: 0;
  font-weight: 600; cursor: pointer; padding: 9px 14px;
  width: auto; min-width: 100px;
}
button.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
pre {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px; overflow: auto; font-size: 12px;
  font-family: ui-monospace, monospace; color: var(--text); margin: 0;
}
.tag {
  display: inline-block; padding: 2px 7px; border-radius: 999px;
  font-size: 11px; background: var(--panel-2); color: var(--muted);
}
.tag.good { color: var(--good); }
.tag.warn { color: var(--warn); }
.tag.bad  { color: var(--bad); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.kv {
  display: grid; grid-template-columns: 200px 1fr; gap: 6px 12px; font-size: 13px;
}
.kv > div:nth-child(odd) { color: var(--muted); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input { width: auto; flex: 1; }
