:root {
  --bg: #1f1f1f;
  --fg: #f5f5f5;
  --muted: #b3b3b3;
  --accent: #990000;
  --border: #383838;
}
* { box-sizing: border-box; }
body {
  margin: 0; font: 13px/1.5 system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--fg);
}
main { padding: 16px; }
h1 { font-size: 14px; margin: 0 0 12px; color: var(--accent); }
h2 { font-size: 12px; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

button {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; border: 0;
  font: inherit; font-weight: 600;
  padding: 8px 12px; border-radius: 4px;
  cursor: pointer; margin: 4px 4px 4px 0;
}
button[data-secondary] { background: transparent; border: 1px solid var(--border); color: var(--fg); }
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: not-allowed; }

.row { display: flex; gap: 6px; flex-wrap: wrap; }
.field { margin-bottom: 8px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.field input {
  width: 100%; padding: 6px 8px;
  background: transparent; border: 1px solid var(--border); color: var(--fg);
  border-radius: 4px; font: inherit;
}

.log {
  margin-top: 12px; max-height: 200px; overflow-y: auto;
  font: 11px/1.5 ui-monospace, Menlo, monospace;
  background: rgba(0,0,0,.3); padding: 8px; border-radius: 4px;
  white-space: pre-wrap;
}
.log .ok    { color: #6cd06c; }
.log .err   { color: #ff7070; }
.log .info  { color: var(--muted); }
