:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1f232c;
  --border: #2a2f3a;
  --text: #e6e8ee;
  --text-muted: #9aa0ae;
  --accent: #6ea8fe;
  --accent-hover: #8fbfff;
  --danger: #ff6b6b;
  --success: #5ad17f;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  min-height: 100vh;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px;
}

header h1 {
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.field input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.field input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.field.readonly output {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", Consolas, monospace;
}

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

.actions {
  margin-top: 8px;
}

button {
  width: 100%;
  background: var(--accent);
  color: #0b0d12;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
}

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

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

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