:root {
  --bg: #0f1115;
  --card: #171a21;
  --border: #262b36;
  --text: #e6e9ef;
  --muted: #8b93a5;
  --accent: #ff6b35;
  --accent2: #3b82f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1b2030 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 16px;
  line-height: 1.5;
}

.container { max-width: 860px; margin: 0 auto; }

header { text-align: center; margin-bottom: 28px; }
header h1 {
  font-size: 30px;
  background: linear-gradient(90deg, var(--accent), #ffb26b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sub { color: var(--muted); font-size: 13px; margin-top: 6px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
label small { color: #5f6879; }

input[type="text"], select {
  width: 100%;
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus, select:focus { border-color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

details { margin-top: 16px; border-top: 1px dashed var(--border); padding-top: 14px; }
summary { cursor: pointer; color: var(--accent2); font-size: 13px; user-select: none; }

.checks { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 7px; color: var(--text); margin: 0; font-size: 13px; }
.checks input { accent-color: var(--accent); width: 16px; height: 16px; }

.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

button {
  background: linear-gradient(135deg, var(--accent), #ff8c42);
  border: none;
  color: #fff;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
button:hover { opacity: 0.9; }
button:active { transform: scale(0.98); }
button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}
button.ghost:hover { border-color: var(--accent); color: var(--text); }

.apiBox {
  margin-top: 14px;
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  overflow-x: auto;
}
.apiBox code { font-size: 12px; color: #6ee7b7; white-space: pre; font-family: ui-monospace, monospace; }

.resultHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}
#status { color: var(--accent2); font-weight: 600; }
#meta { color: var(--muted); }

pre {
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #c9d1d9;
  max-height: 460px;
  overflow: auto;
  white-space: pre;
}

footer { text-align: center; color: #4a5261; font-size: 12px; margin-top: 24px; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

textarea {
  width: 100%;
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none;
  resize: vertical;
  line-height: 1.5;
}
textarea:focus { border-color: var(--accent); }
