/* Базовые стили шаблона. Цвет приложения меняется одной переменной --accent. */
:root {
  --accent: #2f7d5b;
  --bg: #f6f5f1;
  --card: #ffffff;
  --text: #1d2420;
  --muted: #6b736e;
  --line: #e2e0d8;
  --bad: #b3261e;
  --ok: #2f7d5b;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151816; --card: #1f2421; --text: #e9ece9; --muted: #9aa39d; --line: #333a36; }
}
* { box-sizing: border-box; }
body { margin: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
main { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 1.6rem; margin: 8px 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
label { display: block; font-size: .9rem; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
button {
  font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 12px 18px; min-height: 48px;
  background: var(--accent); color: #fff; cursor: pointer;
}
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--bad); border: 1px solid var(--line); }
button:disabled { opacity: .5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 auto; }
.muted { color: var(--muted); font-size: .9rem; }
.status { min-height: 1.4em; font-size: .95rem; margin-top: 10px; }
.status.bad { color: var(--bad); }
.status.ok { color: var(--ok); }
.hidden { display: none !important; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
code { background: var(--line); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
