:root {
  --bg-top: #f5f7fb;
  --bg-bottom: #dfe7f4;
  --panel: #ffffff;
  --border: #d6deea;
  --text: #0d1b2a;
  --muted: #4d5b70;
  --accent: #1b6ef3;
  --accent-hover: #145bcb;
  --success: #107d40;
  --error: #bf1f2f;
  --radius: 12px;
  --shadow: 0 18px 36px rgba(16, 35, 70, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  padding: 28px;
}

.layout {
  margin: 0 auto;
  max-width: 1160px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-left {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-right {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

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

input,
textarea,
button {
  font-family: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 110, 243, 0.16);
}

textarea {
  resize: vertical;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #e6eefc;
  color: #12396d;
  font-weight: 700;
  padding: 11px 12px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
}

.btn:hover {
  background: #d8e6fd;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.group {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9fbff;
}

.response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.status-badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #f3f7ff;
}

.status-badge.success {
  color: var(--success);
  border-color: rgba(16, 125, 64, 0.4);
  background: rgba(16, 125, 64, 0.08);
}

.status-badge.error {
  color: var(--error);
  border-color: rgba(191, 31, 47, 0.4);
  background: rgba(191, 31, 47, 0.08);
}

#response {
  flex: 1;
  min-height: 560px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #0f1723;
  color: #cfe4ff;
}

@media (max-width: 980px) {
  body {
    padding: 14px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  #response {
    min-height: 360px;
  }
}
