:root {
  --bg: #0b0f14;
  --panel: #121820;
  --border: #243041;
  --text: #e8eef5;
  --muted: #8fa0b5;
  --accent: #4fd1c5;
  --danger: #f87171;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.lead {
  color: var(--muted);
  margin: 0 0 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  background: #0b1018;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  margin-bottom: 0.75rem;
}

textarea {
  min-height: 72px;
  font-family: var(--mono);
  font-size: 0.85rem;
}

button {
  background: var(--accent);
  color: #04201d;
  border: 0;
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

button.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 500;
}

.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.flash {
  background: #10261f;
  border: 1px solid #1f5f52;
  color: #9ef0e4;
  padding: 0.75rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  word-break: break-all;
}

.error {
  background: #2a1212;
  border: 1px solid #7f1d1d;
  color: #fecaca;
  padding: 0.75rem;
  border-radius: 8px;
  margin: 0.75rem 0;
}

.hidden {
  display: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: -0.35rem;
  margin-bottom: 0.75rem;
}
