:root {
  color-scheme: light;
  --ink: #173932;
  --muted: #596e66;
  --paper: #f6f7f2;
  --line: #dbe2d8;
  --green: #225647;
  --mint: #e6eee1;
  --amber: #795b13;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 17px;
  background: var(--green);
  color: white;
  font-weight: 650;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9b7109;
  outline-offset: 3px;
}
input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #b6c3b7;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  margin: 10px 0 5px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
  font-weight: 700;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.03rem;
}
p {
  margin-bottom: 14px;
}
a {
  color: inherit;
}
.local-banner {
  text-align: center;
  background: #173932;
  color: #e7efdf;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 10px 20px;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 32px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 108px;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.quiet,
.muted {
  font-size: 0.87rem;
  color: var(--muted);
}
.connect-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 90px;
  padding: 75px 0 90px;
  align-items: center;
}
.lede {
  font-size: 1.14rem;
  max-width: 460px;
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  margin-bottom: 14px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.connect-panel button {
  width: 100%;
  margin: 18px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 38px;
}
.page-heading h1 {
  font-size: 2.8rem;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.toolbar {
  display: flex;
  gap: 10px;
}
.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.text-button {
  background: transparent;
  color: var(--ink);
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  margin: 24px 0 32px;
}
.balance-card {
  background: var(--mint);
  padding: 28px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.balance-card strong {
  font-size: 3.4rem;
  line-height: 1.2;
  letter-spacing: -0.06em;
}
.balance-card p:last-child {
  font-size: 0.83rem;
  color: #415e50;
  margin: 18px 0 0;
}
.balance-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.coverage h2 {
  margin-bottom: 8px;
}
.coverage dl {
  margin: 0 0 14px;
}
.coverage dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
  font-size: 0.85rem;
}
.coverage dd {
  margin: 0;
  color: var(--amber);
  font-weight: 650;
}
.coverage .muted {
  margin-bottom: 0;
  font-size: 0.79rem;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.tabs button {
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  border-bottom: 3px solid transparent;
  padding: 10px 3px;
}
.tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--green);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 24px 0 14px;
}
.section-heading h2 {
  margin: 0;
}
.chore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.chore {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chore-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.reward {
  white-space: nowrap;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--mint);
  border-radius: 20px;
  padding: 4px 12px;
  align-self: flex-start;
}
.chore form {
  margin-top: 15px;
}
.chore .muted {
  min-height: 2.6em;
}
.chore input[type="file"] {
  font-size: 0.8rem;
}
.chore button {
  margin-top: 12px;
}
.configure {
  display: flex;
  align-items: end;
  gap: 12px;
}
.configure input {
  max-width: 100px;
}
.configure label {
  margin: 0;
}
.configure button {
  margin: 0;
}
.submission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.submission {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.submission h3 {
  margin-bottom: 6px;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  background: #f3ead1;
  color: #725516;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 650;
  margin: 0 0 12px;
}
.badge.approved {
  background: var(--mint);
  color: var(--green);
}
.submission img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #f2f2ee;
  border-radius: 8px;
  margin: 12px 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.empty {
  padding: 28px;
  background: #edf0e9;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 1/-1;
}
.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
}
th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 0.76rem;
}
td small {
  display: block;
}
.about {
  max-width: 800px;
}
.about h3 {
  margin-top: 28px;
}
.about li {
  margin-bottom: 10px;
}
#message {
  position: sticky;
  bottom: 18px;
  padding: 0;
  z-index: 2;
}
#message:not(:empty) {
  padding: 14px 20px;
  background: #173932;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px #18392f22;
}
#message.error {
  background: #853e2c;
}
footer {
  font-size: 0.76rem;
  color: var(--muted);
  padding-top: 48px !important;
  padding-bottom: 28px !important;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .shell {
    padding: 0 18px;
  }
  header {
    min-height: 82px;
  }
  .quiet {
    display: none;
  }
  .connect-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 0;
  }
  .connect-panel h1 {
    font-size: 2.8rem;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .toolbar {
    flex-direction: column;
    gap: 0;
  }
  .overview,
  .chore-grid,
  .submission-grid {
    grid-template-columns: 1fr;
  }
  .overview {
    gap: 14px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .coverage dl div {
    gap: 10px;
  }
  .tabs {
    gap: 24px;
  }
  .card,
  .balance-card,
  .submission,
  .chore {
    padding: 20px;
  }
  .local-banner {
    font-size: 0.61rem;
  }
  .balance-card strong {
    font-size: 3rem;
  }
}

.demo-panel { margin: 12px 0 24px; }
.demo-panel .toolbar { flex-wrap: wrap; justify-content: flex-start; }
.demo-panel button { min-height: 44px; }
