:root {
  color-scheme: light dark;
  --bg: #f4f6f3;
  --card: #ffffff;
  --text: #17211b;
  --muted: #55625a;
  --line: #d9e0da;
  --accent: #14532d;
  --on-accent: #ffffff;
  --note: #e6f1e8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a14;
    --card: #17241c;
    --text: #e8efe9;
    --muted: #a4b3a9;
    --line: #2c3c32;
    --accent: #6fcf97;
    --on-accent: #0f1a14;
    --note: #1f3327;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main {
  max-width: 34rem;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .4rem; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.lead { margin: 0 0 1.1rem; color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.card p { margin: 0 0 .7rem; }
.card ol { margin: 0 0 .7rem; padding-left: 1.3rem; }
.small { font-size: .9rem; color: var(--muted); }
.note {
  background: var(--note);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
label { display: block; font-weight: 600; margin: 0 0 .3rem; }
input, select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  margin: 0 0 1rem;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
button {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
}
button.secondary { color: var(--accent); background: transparent; }
button.link {
  min-height: 44px;
  margin-top: 8px;
  color: var(--muted);
  background: none;
  border: 0;
  font-weight: 400;
  text-decoration: underline;
}
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px;
  margin: 0 0 14px;
}
.tiles dt { font-size: .78rem; line-height: 1.25; color: var(--muted); }
.tiles dd { margin: .15rem 0 0; font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; color: var(--muted); }
th, td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
footer { font-size: .82rem; color: var(--muted); padding: 4px 2px; }
footer p { margin: 0 0 .4rem; }
footer a { color: inherit; }
