:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --card: #17191f;
  --line: #2c3038;
  --text: #f4f1ea;
  --muted: #9b968c;
  --accent: #d6f25c;
  --accent-ink: #172000;
  --warn: #f0c7b4;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.4 "Segoe UI", system-ui, sans-serif;
  min-height: 100dvh;
}
.app { max-width: 520px; margin: 0 auto; padding: 20px 16px 108px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.brand { margin: 0; color: var(--accent); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin: 2px 0 0; font-size: 28px; line-height: 1.1; }
h2 { margin: 0 0 8px; font-size: 18px; }
p { margin: 0; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 12px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.card img { width: 100%; height: 160px; object-fit: contain; background: #101114; border-radius: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dose { color: var(--accent); font-weight: 700; }
form.stack button, .button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  min-height: 52px;
  padding: 0 16px;
  width: 100%;
}
button.text {
  appearance: none;
  background: transparent;
  color: var(--muted);
  border: 0;
  font: inherit;
  min-height: 44px;
  padding: 0;
}
.field { display: grid; gap: 6px; }
.field span { color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  background: #101114;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 88px; }
.error { color: var(--warn); }
.omit { color: var(--warn); }
.done { opacity: 0.55; }
.check { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.check input { width: 22px; height: 22px; min-height: 0; }
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 12px;
}
a.blocklink { color: inherit; text-decoration: none; display: block; }
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #121318;
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a {
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  line-height: 44px;
  border-radius: 12px;
}
.tabbar a.on { color: var(--accent-ink); background: var(--accent); font-weight: 700; }
.list { display: grid; gap: 10px; }
