:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #6b7280;
  --accent: #0d9488;
  --danger: #b91c1c;
  --border: #d1d5db;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0 0, #d8f3ee, var(--bg) 38%);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

h1,h2,h3 { margin-top: 0; }
small, .muted { color: var(--muted); }

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

input, textarea, select, button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}

button {
  background: var(--accent);
  color: white;
  border: 0;
  cursor: pointer;
}

button.secondary {
  background: #334155;
}

button.danger {
  background: var(--danger);
}

.row { display: flex; gap: 8px; }
.row > * { flex: 1; }

pre {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
}

.status-ok { color: #047857; }
.status-warn { color: #b45309; }
.status-error { color: #b91c1c; }

.lang-indicator {
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}

.lang-switch button {
  width: auto;
  min-width: 44px;
  padding: 6px 10px;
  background: #e2e8f0;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.lang-switch button.active-lang {
  background: #0d9488;
  color: white;
  border-color: #0d9488;
}
