:root {
  --bg: #0b1020;
  --panel: #121a2f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef2ff;
  --muted: #9aa6c1;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(700px 400px at 100% 0%, rgba(16, 185, 129, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.kicker {
  margin: 0;
  color: var(--accent-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.lede {
  color: var(--muted);
  line-height: 1.55;
  max-width: 42rem;
}

.box,
.status,
.list,
.detail {
  background: color-mix(in srgb, var(--panel) 92%, black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 18px;
}

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

.row {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0f1c;
  color: var(--text);
  padding: 14px 14px;
  font-size: 1rem;
}

button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.hint {
  margin: 10px 0 0;
  color: var(--accent-2);
  font-size: 0.92rem;
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--ok);
}

.msg {
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 10px;
  cursor: pointer;
}

.msg:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.msg strong {
  display: block;
  margin-bottom: 4px;
}

.msg .meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  line-height: 1.5;
  color: #dbe4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.detail h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

@media (max-width: 560px) {
  .row {
    flex-direction: column;
  }
  button {
    min-height: 46px;
  }
}
