:root {
  --paper: #f4f6f1;
  --card: #fff;
  --ink: #273c33;
  --muted: #637568;
  --line: #dfe6dc;
  --green: #355c48;
  --pale: #edf3e8;
  --hero-surface: #e4eddf;
  font: 16px/1.5 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.2rem; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

.shell { max-width: 760px; margin-inline: auto; padding: 0 24px 105px; }
.topbar { display: flex; align-items: center; height: 72px; margin-bottom: 14px; }
.site-name { background: transparent; color: var(--green); border: 0; padding: 0; min-height: 44px; font-weight: 700; font-size: 1.15rem; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.between { justify-content: space-between; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
.card > h2 { margin-bottom: 8px; }
.btn, .select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  padding: 7px 12px;
}
.btn.primary { background: var(--green); border-color: var(--green); color: white; }
.select { background: var(--paper); }
.bottom-nav { position: fixed; inset: auto 0 0; background: var(--paper); border-top: 1px solid var(--line); padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); }
.nav { display: flex; gap: 4px; max-width: 420px; margin-inline: auto; }
.nav button {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  min-height: 52px;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 11px;
}
.nav [aria-current] { background: var(--hero-surface); color: var(--green); }
.nav-label { font-size: .75rem; }
.nav-icon { font-size: 1.2rem; line-height: 1; }
.toast {
  position: fixed;
  bottom: calc(75px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  border-radius: 12px;
  padding: 10px 15px;
  color: white;
  background: var(--green);
}
