:root {
  --bg: #020617;
  --card: #020617;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.16);
  --border: #1e293b;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #111827, #020617 60%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 980px;
  background: linear-gradient(135deg, #020617, #020617);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
  padding: 20px 22px 22px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
  gap: 18px;
}

.panel {
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.6);
  padding: 14px 14px 16px;
}

.panel-title {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

select,
input[type="text"],
textarea,
input[type="color"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.45);
}

.row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.row > div {
  flex: 1;
}

.field-group {
  margin-bottom: 10px;
}

.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

button {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary {
  background: #020617;
  color: var(--muted);
  border: 1px solid #1f2937;
}

.btn-primary {
  background: var(--accent);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.4);
}

.small {
  font-size: 11px;
  color: var(--muted);
}

.status {
  margin-top: 6px;
  font-size: 12px;
}

.status-ok {
  color: #22c55e;
}

.status-err {
  color: #f97373;
}
