:root {
  --bg: #07080b;
  --card: #12141a;
  --muted: #9ca3af;
  --text: #f5f7fb;
  --line: rgba(255, 255, 255, 0.1);
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(239, 68, 68, 0.14), transparent 60%),
    radial-gradient(900px 700px at 85% 15%, rgba(239, 68, 68, 0.08), transparent 62%),
    linear-gradient(180deg, #06070a 0%, #0a0e15 100%);
  min-height: 100vh;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 16px;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

p {
  margin: 6px 0;
}

.muted {
  color: var(--muted);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.row-spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input,
select,
button,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0e1016;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
}

textarea {
  min-height: 130px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

button {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.75);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-primary {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border-color: rgba(239, 68, 68, 0.9);
}

.btn-danger {
  background: linear-gradient(180deg, #991b1b, #7f1d1d);
  border-color: rgba(248, 113, 113, 0.75);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.ok { color: var(--green); }
.warn { color: var(--yellow); }
.err { color: #fb7185; }

.grid2 {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid3 {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hidden {
  display: none;
}

@media (max-width: 780px) {
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
}
