:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.45 ui-sans-serif, system-ui, sans-serif;
  background: #efeae2;
  color: #1c1915;
}
main { max-width: 28rem; margin: 0 auto; padding: 1rem 1rem 8rem; }
a { color: #0b3d2e; }
h1 { font-size: 1.7rem; margin: 0.15rem 0 0.8rem; letter-spacing: -0.02em; }
h2 { font-size: 1.05rem; margin: 0 0 0.55rem; }
p { margin: 0.35rem 0; }
label { display: block; margin: 0.8rem 0; font-weight: 650; }
input, select, button, textarea { font: inherit; }
input, select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  min-height: 3rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #ddd4c6;
  border-radius: 0.75rem;
  background: #fffdf9;
}
button, .button {
  display: block;
  width: 100%;
  scroll-margin-bottom: 5.5rem;
  min-height: 3.1rem;
  margin-top: 0.7rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.9rem;
  background: #0b3d2e;
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
button.ghost {
  background: #fffdf9;
  color: #8c1d18;
  border: 1px solid #e4b6b2;
}
.pair { display: flex; gap: 0.55rem; margin-top: 0.7rem; }
.pair > .button, .pair > button { flex: 1; width: auto; margin-top: 0; }
header { margin-bottom: 0.8rem; }
.who { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.id { display: flex; flex-direction: column; line-height: 1.2; }
.id span { color: #6d665c; font-size: 0.85rem; }
header button {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0.35rem 0.15rem;
  background: transparent;
  color: #0b3d2e;
  font-weight: 650;
}
.hero {
  background: #0b3d2e;
  color: #f6f1e8;
  border-radius: 1.3rem;
  padding: 1.15rem 1.2rem 1.25rem;
  margin: 0.2rem 0 0.9rem;
}
.hero .pot { color: inherit; font-size: 2.7rem; }
.hero .lede, .hero .eyebrow { color: rgba(246, 241, 232, 0.78); }
.hero.short { background: #6e241c; }
.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gap { margin: 0.1rem 0 0; font-weight: 700; }
.card {
  background: white;
  border-radius: 1.05rem;
  padding: 0.95rem 1rem;
  margin: 0.7rem 0;
  box-shadow: 0 1px 0 rgba(28, 25, 21, 0.04);
}
a.card { text-decoration: none; color: inherit; }
.card.link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.end { text-align: right; }
.amount { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; }
.pot { font-size: 2rem; font-weight: 750; letter-spacing: -0.03em; margin: 0; }
.chev { display: block; margin-top: 0.15rem; color: #8a8378; font-size: 1.4rem; line-height: 1; }
.muted { color: #6d665c; font-weight: 500; }
.back { margin: 0 0 0.2rem; font-size: 0.92rem; }
.error, .notice { padding: 0.75rem 0.9rem; border-radius: 0.8rem; }
.error { background: #fde8e4; }
.notice { background: #e5f2ec; }
.short { color: #8c1d18; }
.hero .short, .hero .gap { color: #ffd0c8; }
.ok { color: #0b3d2e; font-weight: 700; }
.hero .ok { color: #d7f5e4; }
.wait { color: #8a5a00; font-weight: 700; }
.hero .wait { color: #ffe3a3; }
.bar { height: 0.45rem; background: rgba(255,255,255,0.25); border-radius: 99px; overflow: hidden; margin: 0.55rem 0 0.2rem; }
.bar span { display: block; height: 100%; background: #f6f1e8; }
.line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid #f0ebe3;
}
.line:first-of-type { border-top: 0; }
.remain { font-size: 1.05rem; }
.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 0.25rem;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.4rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.96);
  border-top: 1px solid #e4ddd2;
  backdrop-filter: blur(8px);
}
.tabs a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #6d665c;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.2rem;
  border-radius: 0.7rem;
}
.tabs a.on { color: #0b3d2e; background: #e5f2ec; }
.kind { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; color: #6d665c; font-weight: 700; }
details.card > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.6rem;
  cursor: pointer;
  font-weight: 700;
  color: #0b3d2e;
  list-style: none;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after {
  content: "›";
  color: #8a8378;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}
details.card[open] > summary { margin-bottom: 0.35rem; }
details.card[open] > summary::after { transform: rotate(90deg); }
