/* NeighborVouched: member app styles. Large type, high contrast, one action per screen. */
:root {
  --ink: #1a1a1a;
  --muted: #5b5b5b;
  --line: #dde3df;
  --line-strong: #cfd8d3;
  --green: #1e5e3f;
  --green-dark: #164831;
  --green-tint: #e6f2ec;
  --green-soft: #9cc5b0;
  --amber: #b45309;
  --amber-tint: #fff4e5;
  --amber-line: #f3d9a8;
  --amber-ink: #8a4b06;
  --bg: #ffffff;
  --bg-soft: #f1f4f2;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg-soft); font-size: 18px; line-height: 1.45; }
a { color: var(--green); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.sr { position: absolute; left: -9999px; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; position: relative; }
@media (min-width: 520px) { #app { min-height: calc(100vh - 32px); margin: 16px auto; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.08); } }

.screen { display: flex; flex-direction: column; flex: 1; min-height: 100vh; }
@media (min-width: 520px) { .screen { min-height: calc(100vh - 32px); } }
.top { padding: calc(20px + env(safe-area-inset-top)) 24px 12px; display: flex; align-items: center; gap: 12px; }
.top h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.top .sub { font-size: 16px; color: var(--muted); }
.back { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 22px; background: var(--bg-soft); flex-shrink: 0; border: 0; color: var(--ink); }
.body { flex: 1; padding: 8px 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.body.pad-bottom { padding-bottom: 120px; }
.foot { padding: 12px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--bg); }

.hero { padding: calc(56px + env(safe-area-inset-top)) 24px 24px; background: var(--green); color: #fff; display: flex; flex-direction: column; gap: 16px; }
.hero .kicker { font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.2; }
.hero p { margin: 0; font-size: 18px; opacity: .92; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 14px; font-size: 20px; font-weight: 600; padding: 0 20px; width: 100%; border: 0; text-align: center; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); color: #fff; }
.btn.secondary { background: var(--green-tint); color: var(--green); }
.btn.ghost { background: var(--bg); border: 2px solid var(--line-strong); color: var(--ink); }
.btn.warn { background: var(--amber); color: #fff; }
.btn.sm { min-height: 52px; font-size: 18px; }
.btn.xs { min-height: 44px; font-size: 16px; width: auto; padding: 0 16px; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }
.link { background: none; border: 0; color: var(--green); font-weight: 600; font-size: 17px; padding: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.tiny { font-size: 15px; }
.kicker { font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kicker.green { color: var(--green); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 17px; font-weight: 600; }
.field input, .field textarea, .field select { font-size: 20px; padding: 12px 16px; border: 2px solid var(--line-strong); border-radius: 12px; min-height: 56px; width: 100%; background: #fff; }
.field textarea { resize: none; line-height: 1.4; font-size: 19px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--green-soft); border-color: var(--green); }
.hint { font-size: 16px; color: var(--muted); }
.error { background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: 12px; padding: 12px 14px; color: var(--amber-ink); font-size: 16px; }
.notice { background: var(--green-tint); border-radius: 12px; padding: 12px 14px; color: var(--green); font-size: 16px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.card.tint { background: var(--green-tint); border-color: #cfe4d8; }
.card.link-card { color: var(--ink); }
.card.link-card:hover { border-color: var(--green); }
.card .lbl { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card .big { font-size: 24px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 112px; }
.tile:hover { border-color: var(--green); }
.tile .t { font-size: 19px; font-weight: 600; }
.tile .c { font-size: 15px; color: var(--muted); }
.tile svg { color: var(--green); }

.search { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line-strong); border-radius: 14px; padding: 0 14px; min-height: 56px; background: #fff; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 19px; background: transparent; }

.banner { display: flex; gap: 12px; align-items: flex-start; background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: 14px; padding: 14px; color: var(--ink); }
.banner .who { font-size: 16px; font-weight: 700; color: var(--amber-ink); }
.banner svg { flex-shrink: 0; margin-top: 2px; color: var(--amber); }

.fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); width: min(432px, calc(100% - 48px)); z-index: 5; }
.fab a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; border-radius: 30px; background: var(--green); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 6px 18px rgba(30,94,63,.3); }
.nav { position: sticky; bottom: 0; display: flex; border-top: 1px solid var(--line); background: #fff; padding-bottom: env(safe-area-inset-bottom); z-index: 4; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; font-size: 14px; font-weight: 600; color: var(--muted); padding: 10px 0 12px; }
.nav a.on { color: var(--green); }

.vrow { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.vrow:hover { border-color: var(--green); }
.vrow .n { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 700; }
.vrow .price { font-size: 16px; font-weight: 600; color: var(--green); white-space: nowrap; }
.vrow .price.muted { color: var(--muted); }
.stat { display: flex; gap: 6px; align-items: center; font-size: 16px; color: var(--muted); flex-wrap: wrap; }
.stat strong { color: var(--ink); }
.star { color: var(--green); }

.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--green-tint); color: var(--green); font-size: 16px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tip { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.tip:first-of-type { border-top: 0; padding-top: 4px; }
.tip .what { font-size: 17px; line-height: 1.4; }
.tip .who { font-size: 15px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.helpful { background: none; border: 1px solid var(--line-strong); border-radius: 16px; padding: 4px 10px; font-size: 14px; font-weight: 600; color: var(--muted); min-height: 32px; }
.helpful.on { border-color: var(--green); color: var(--green); background: var(--green-tint); }

.pill { min-width: 72px; min-height: 48px; border-radius: 12px; font-size: 18px; font-weight: 600; border: 2px solid var(--line-strong); background: #fff; color: var(--ink); padding: 0 14px; }
.pill.on { background: var(--green); color: #fff; border-color: var(--green); }
.pill.on-no { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.lg { min-height: 84px; font-size: 26px; font-weight: 700; border-radius: 16px; flex: 1; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.yn { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yn .q { font-size: 17px; font-weight: 600; flex: 1; }
.yn .opts { display: flex; gap: 8px; }

.choice { display: flex; justify-content: space-between; align-items: center; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 19px; font-weight: 600; min-height: 60px; text-align: left; color: var(--ink); width: 100%; gap: 10px; }
.choice:hover { border-color: var(--green); }
.choice small { font-size: 15px; color: var(--muted); font-weight: 400; }
.choice.dashed { border-style: dashed; color: var(--green); }
.choice.sel { border-color: var(--green); background: var(--green-tint); }

.progress { height: 8px; background: var(--green-tint); border-radius: 4px; overflow: hidden; }
.progress > div { height: 8px; background: var(--green); border-radius: 4px; transition: width .3s; }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 5px; background: var(--line); }
.dot.on { background: var(--green); }
.dot.done { background: var(--green-soft); }

.amount { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line-strong); border-radius: 14px; padding: 0 16px; min-height: 72px; background: #fff; }
.amount span { font-size: 30px; font-weight: 700; color: var(--muted); }
.amount input { border: 0; font-size: 32px; font-weight: 700; outline: 0; min-width: 0; width: 100%; background: transparent; }

.range { position: relative; height: 58px; }
.range .track { position: absolute; left: 0; right: 0; top: 26px; height: 6px; border-radius: 3px; background: var(--green-tint); }
.range .band { position: absolute; top: 26px; height: 6px; border-radius: 3px; background: var(--green-soft); }
.range .pt { position: absolute; top: 22px; width: 14px; height: 14px; border-radius: 7px; background: var(--green); border: 2px solid #fff; margin-left: -7px; }
.range .you { position: absolute; top: 10px; margin-left: -19px; width: 38px; height: 38px; border-radius: 19px; background: var(--amber); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.ticks { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 16px; display: flex; gap: 16px; align-items: center; z-index: 20; width: min(432px, calc(100% - 48px)); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.toast button { background: none; border: 0; color: var(--green-soft); font-weight: 700; font-size: 16px; }

.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.avatar.lg { width: 52px; height: 52px; border-radius: 26px; font-size: 20px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; }
.list { display: flex; flex-direction: column; gap: 12px; }
.check { width: 72px; height: 72px; border-radius: 36px; background: var(--green-tint); display: flex; align-items: center; justify-content: center; color: var(--green); }
.loading { padding: 60px 24px; text-align: center; color: var(--muted); }
.dev { background: #fff8dc; border: 1px dashed #d4b106; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #5c4a00; word-break: break-all; }
