:root {
  --bg: #0b1220;
  --card: #151f32;
  --text: #f2f5fa;
  --muted: #aeb9cc;
  --accent: #5ea8ff;
  --ok: #34d399;
  --err: #f87171;
  --border: #2a3a56;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

header h1 { margin: 0; font-size: 24px; }
.subtitle { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

section h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.field { margin-bottom: 14px; }

.field-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.field-row .field { flex: 1; min-width: 160px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

input, select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--card);
  color: var(--text);
}

input:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

button {
  background: var(--accent);
  color: #0b1220;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: default; }

.result { margin: 12px 0 0; font-size: 14px; }
.result.ok { color: var(--ok); }
.result.err { color: var(--err); }

.links { list-style: none; margin: 0; padding: 0; }

.links li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.links li:last-child { border-bottom: 0; }

.links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.links a:hover { text-decoration: underline; }

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