:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --border: #334155;
  --ok: #22c55e;
  --warn: #f59e0b;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 1.5rem;
}

.topbar {
  max-width: 900px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand h1 {
  font-size: 1.5rem;
}

.brand p {
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher label {
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-switcher select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  max-width: 420px;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
}

button {
  background: var(--accent);
  color: #082f49;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover {
  opacity: 0.92;
}

.status-box {
  font-size: 0.9rem;
  color: var(--muted);
}