:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --primary: #0f4c81;
  --primary-dark: #0b3558;
  --danger: #b42318;
  --ok: #067647;
  --text: #1f2937;
  --muted: #667085;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.container { max-width: 480px; margin: 0 auto; padding: 16px; }
header { text-align: center; margin-bottom: 16px; }
h1 { margin: 0; color: var(--primary); font-size: 1.6rem; }
.subtitle { color: var(--muted); margin-top: 4px; }
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.08);
  margin-bottom: 16px;
}
label { display: block; margin: 12px 0 6px; font-weight: 600; }
input, select, button {
  width: 100%;
  font-size: 1rem;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
}
button.primary {
  background: var(--primary);
  color: white;
  border: none;
  margin-top: 16px;
  font-weight: 700;
}
button.secondary {
  background: #eef2f6;
  color: var(--text);
  border: none;
}
button.link {
  width: auto;
  background: transparent;
  border: none;
  color: var(--primary);
  padding: 0;
}
.row.between { display: flex; justify-content: space-between; align-items: center; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hidden { display: none !important; }
.error { color: var(--danger); margin-top: 10px; }
.success { border: 1px solid #abefc6; background: #f6fef9; }
.hint { color: var(--muted); font-size: 0.92rem; }
.preview {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
  font-family: Consolas, monospace;
  white-space: pre-wrap;
  line-height: 1.5;
}
