:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #6b7280;
  --border: #e3e5ea;
  --accent: #16a34a;
  --accent-ink: #ffffff;
  --danger: #dc2626;
  --header: #111318;
  --header-text: #f5f6f8;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 6%);

  --c-kcal: #f59e0b;
  --c-p: #3b82f6;
  --c-f: #ef4444;
  --c-cs: #8b5cf6;
  --c-cf: #ec4899;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

button, input, select { font: inherit; color: inherit; }

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(22 163 74 / 15%); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn.secondary { background: #e9ebef; color: var(--text); }
.btn.danger { background: var(--danger); }
.btn.link { background: none; color: var(--muted); padding: 6px 8px; font-weight: 500; }

.error { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.muted { color: var(--muted); }

.k-kcal { color: var(--c-kcal); }
.k-p { color: var(--c-p); }
.k-f { color: var(--c-f); }
.k-cs { color: var(--c-cs); }
.k-cf { color: var(--c-cf); }
