:root {
  --forest: #1c382c;
  --forest-2: #24473a;
  --honey: #f2c94c;
  --fur: #6e4527;
  --paper: #f6f2ea;
  --ink: #1d1a16;
  --muted: #6b6257;
  --line: #ddd4c6;
  --brick: #561a12;
  --ember: #ffbe6e;
  --danger: #a3261b;
  --ok: #1f6b45;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
/* Anything marked hidden stays hidden, whatever display its class sets
   (.panel, a.button and img all set one). */
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
img { max-width: 100%; display: block; }

main {
  max-width: 460px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  display: grid;
  gap: 18px;
}
main.wide { max-width: 760px; }

.hero {
  background: var(--forest);
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
}
.hero img.scene { width: 100%; aspect-ratio: 375 / 144; object-fit: cover; }
.hero .copy { padding: 16px 18px 20px; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--honey); }
.hero p { margin: 8px 0 0; color: #d9e3dc; font-size: 15px; line-height: 1.4; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; }
.brand.officials { color: var(--brick); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.panel h2 { margin: 0; font-size: 19px; }
.panel p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
input, textarea, select {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 100%;
}
input[type="checkbox"] { width: 20px; height: 20px; padding: 0; }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--forest-2); outline-offset: 1px; border-color: transparent; }

button {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: var(--forest);
  color: #fff;
}
button:disabled { opacity: 0.55; cursor: default; }
button.wallet { background: #000; }
button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
button.danger { background: var(--danger); }
button.small { font-size: 15px; padding: 9px 12px; border-radius: 10px; }
button.link {
  background: none; color: var(--forest-2); padding: 0; font-size: 15px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
button.google {
  background: #fff; color: #1f1f1f; border: 1px solid #c9c4bc;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
a.button {
  display: block; text-align: center; text-decoration: none;
  font-weight: 600; font-size: 17px; padding: 14px 16px; border-radius: 12px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
a.button.report { background: var(--fur); color: #fff; border: 0; }
a.button.small-link { font-size: 15px; padding: 9px 12px; border-radius: 10px; flex: 1; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > button { flex: 1; }

.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.status { margin: 0; min-height: 1.3em; color: var(--muted); font-size: 15px; }
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }

footer { text-align: center; color: var(--muted); font-size: 14px; }

/* Report */
.big-report {
  width: 100%; aspect-ratio: 1.6; border-radius: 22px; font-size: 26px;
  background: var(--fur); display: grid; place-items: center; gap: 6px;
}
.big-report small { font-size: 15px; font-weight: 500; opacity: 0.85; }
.photo-preview { border-radius: 12px; max-height: 260px; object-fit: cover; width: 100%; }

/* Officials and admin lists */
.list { display: grid; gap: 12px; }
.item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: grid; gap: 8px;
}
.item header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.item h3 { margin: 0; font-size: 17px; }
.item .meta { color: var(--muted); font-size: 14px; }
.item .row { display: flex; gap: 8px; flex-wrap: wrap; }
.item img { border-radius: 10px; max-height: 280px; object-fit: cover; width: 100%; }
.pill {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 99px;
  background: #f3e3c4; color: #6a4a12; white-space: nowrap;
}
.pill.open { background: #f9d4cf; color: var(--brick); }
.pill.responding { background: #fde7c2; color: #7a4a06; }
.pill.resolved { background: #d6ebdf; color: var(--ok); }

.tabs { display: flex; gap: 8px; }
.tabs button { flex: 1; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.tabs button[aria-selected="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

.copybox { display: flex; gap: 8px; }
.copybox input { font-size: 14px; }

.officials-theme { --forest: #561a12; --forest-2: #7a2a1d; }

/* A plain vertical stack of blocks with the page spacing. */
.stack { display: grid; gap: 18px; }
.stack h2 { margin: 6px 0 0; }

/* Invite QR code: dark on white with a quiet zone, sized for scanning. */
.qr { background: #fff; padding: 14px; border-radius: 14px; border: 1px solid var(--line); width: min(280px, 100%); justify-self: center; }
.qr svg { display: block; width: 100%; height: auto; }

/* Home: the three Wallet steps and the card bonus. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; gap: 8px; }
.steps li svg { width: 100%; height: auto; border-radius: 14px; display: block; }
.steps li span { font-size: 15px; line-height: 1.45; color: var(--ink); }
.steps li span::before { content: counter(step) ". "; font-weight: 700; color: var(--fur); }
.bonus { text-align: center; justify-items: center; }
.bonus img { width: 72px; height: 72px; }
.bonus .wallet { width: 100%; }
.fine { font-size: 14px !important; text-align: center; }
.report-panel .link { justify-self: center; }
