:root {
  --ink: #1d3329;
  --green: #236b53;
  --paper: #fafbf8;
  --pale: #ecf4ed;
  --line: #dbe6dc;
  --muted: #64766b;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  background: #f1f5f0;
  margin: 0;
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    sans-serif;
}
main {
  max-width: 700px;
  margin: auto;
  min-height: 100vh;
  background: var(--paper);
  padding: 22px 20px 108px;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.4px;
  margin: 0;
}
h2 {
  font-size: 19px;
  margin: 10px 0 18px;
}
h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
p {
  margin: 8px 0;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--green);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  margin: 12px 0;
  box-shadow: 0 2px 8px #163d2706;
}
.banner {
  background: var(--pale);
  padding: 20px;
  border-radius: 17px;
  margin-bottom: 18px;
}
.tag {
  display: inline-block;
  background: var(--pale);
  color: var(--green);
  border-radius: 7px;
  font-size: 11px;
  padding: 4px 7px;
  font-weight: 700;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.row.wrap {
  flex-wrap: wrap;
}
button,
.btn {
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 10px;
  padding: 12px 16px;
  font: 600 14px system-ui;
  cursor: pointer;
  min-height: 42px;
}
button.secondary,
.btn.secondary {
  background: var(--pale);
  color: var(--green);
}
button.ghost {
  background: white;
  color: var(--green);
  border: 1px solid var(--line);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input,
select,
textarea {
  width: 100%;
  margin: 5px 0 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  font-size: 12px;
  font-weight: 700;
}
nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: white;
  border-top: 1px solid var(--line);
  padding: 8px 5px 16px;
  z-index: 2;
}
nav button {
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 2px;
  min-height: 40px;
}
nav button.active {
  color: var(--green);
  font-weight: 800;
  background: var(--pale);
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hide {
  display: none !important;
}
.error {
  color: #ad3434;
}
.success {
  color: #157251;
}
.small {
  font-size: 12px;
}
.notice {
  padding: 11px;
  background: var(--pale);
  border-radius: 10px;
  margin: 12px 0;
}
.pillrow {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0;
}
.pillrow button {
  white-space: nowrap;
  min-height: 34px;
}
.scroll {
  max-height: 55vh;
  overflow: auto;
}
.message {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.message:last-child {
  border: 0;
}
.message p {
  margin: 0 0 4px;
}
.message button.ghost {
  min-height: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.fixedtoast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: #193c2d;
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  max-width: min(640px, 90%);
  z-index: 5;
}
@media (min-width: 750px) {
  main {
    border: 1px solid var(--line);
    margin: 20px auto 0;
    border-radius: 22px;
  }
  nav {
    bottom: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
  }
}
