/* Volanee app: native-iOS-style layout. Green brand, white cards, dark floating tab bar, Zillow-style listing cards. */
:root {
  --green: #2FB35A; --green-dark: #27994C; --green-soft: #E6F7E9; --green-ink: #2E8F3A;
  --orange: #FF9F0A; --orange-soft: #FFF1DB;
  --bg: #F5F5F7; --card: #FFFFFF; --card-2: #F2F2F5; --line: #E6E6EA;
  --ink: #111214; --ink-2: #4B4E55; --grey: #787878;
  --red: #FF3B30; --red-soft: #FFECEB; --blue: #04B7F9; --vol: #1B6FD1; --vol-soft: #EAF2FF;
  --shadow: 0 2px 10px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.06);
  --r: 16px; --r-sm: 12px; --tab-h: 64px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); min-height: 100dvh; }
a { color: var(--green-ink); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(76,201,91,.55); outline-offset: 2px; }
.muted { color: var(--grey); } .small { font-size: 14px; } .green { color: var(--green-ink); }
.num { font-variant-numeric: tabular-nums; font-weight: 700; } .num.is-credit { color: var(--green-ink); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.block { display: block; }
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; flex: none; }
.ic-sm { width: 16px; height: 16px; vertical-align: -3px; } .ic-ok { color: var(--green-ink); }

/* layout */
#main { max-width: 520px; margin: 0 auto; padding: 10px 14px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); min-height: 100dvh; }
body.is-frame #main { padding: 0; max-width: none; min-height: 100dvh; }
body.is-frame .modal-top .cancel { visibility: hidden; }
.screen { display: flex; flex-direction: column; gap: 12px; }
.screen.is-full { margin: -12px -16px; padding: 0; gap: 0; }
body.is-frame .screen.is-full { margin: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 2px; }
.top h1 { font-size: 24px; }
@media (min-width: 720px) { .top h1 { font-size: 30px; } }
.top-actions { display: flex; align-items: center; gap: 8px; }
.rbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); position: relative; }
.rbtn.is-green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(76,201,91,.4); }
.rbtn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--green-ink); font-weight: 600; font-size: 16px; min-height: 40px; background: none; border: 0; padding: 0; cursor: pointer; }
.modal-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 0; }
.modal-top h1 { font-size: 17px; font-weight: 700; text-align: center; }
.modal-top .cancel { color: var(--green-ink); font-weight: 600; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: 16px; }

/* tab bar */
#nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; width: min(480px, calc(100% - 32px)); height: var(--tab-h); background: #1C1C1E; border-radius: 22px; display: flex; align-items: center; justify-content: space-around; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.nav-item { flex: 1; height: 52px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: #B4B4B8; position: relative; }
.nav-item .ic { width: 22px; height: 22px; }
.nav-item.is-active { color: var(--green); background: rgba(76,201,91,.16); }
.nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; display: grid; place-items: center; line-height: 1; }
/* desktop: top bar instead of the tab bar; no sidebar */
#topnav { display: none; position: sticky; top: 0; z-index: 40; background: rgba(245,245,247,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tn-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 18px; }
.tn-brand { display: inline-flex; align-items: center; }
.tn-mark { height: 22px; width: auto; display: block; }
.tn-wordmark { font-family: var(--display, inherit); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.tn-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 0 14px; }
.tn-search .ic { color: var(--grey); }
.tn-search input { border: 0; min-height: 40px; padding: 0; background: transparent; box-shadow: none !important; font-size: 15px; }
.tn-links { display: flex; gap: 2px; margin-left: auto; }
.tn-links .nav-item { flex: none; height: 40px; padding: 0 12px; flex-direction: row; gap: 8px; font-size: 14px; color: var(--ink-2); border-radius: 12px; }
.tn-links .nav-item .ic { width: 18px; height: 18px; }
.tn-links .nav-item.is-active { color: var(--green-ink); background: var(--green-soft); }
.tn-links .nav-badge { position: static; margin-left: 4px; }
.tn-right { display: flex; align-items: center; gap: 10px; }
@media (min-width: 720px) {
  #topnav:not([hidden]) { display: block; }
  #nav { display: none; }
  #main { max-width: 1120px; padding: 20px 20px 60px; }
  .zgrid { grid-template-columns: repeat(3, 1fr); }
  .screen.is-wide { max-width: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); max-width: 640px; }
  .searchbar, .chips, .filters { max-width: 720px; }
}
body.is-frame #topnav { display: none !important; }

/* cards & lists */
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: block; }
.stat .l { color: var(--grey); font-size: 13px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 15px; margin: 0; }
.kv dt { color: var(--grey); } .kv dd { margin: 0; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.sec-h h2 { font-size: 18px; }
.sec-h a { font-weight: 600; font-size: 14px; }

/* Post-a-job hero card */
.postcard { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); }
.postcard .plus { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.postcard .t { font-weight: 700; font-size: 16px; } .postcard .d { color: var(--grey); font-size: 13px; }
.postcard .chev { color: #C0C0C4; margin-left: auto; }

/* chips */
.chips { display: flex; gap: 6px; background: #E9E9EE; border-radius: 22px; padding: 4px; }
.chips button { flex: 1; min-height: 34px; border: 0; background: transparent; border-radius: 18px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.chips button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.catchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.catchips::-webkit-scrollbar { display: none; }
.catchips button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.catchips button[aria-pressed=true] { background: var(--green); border-color: var(--green); color: #fff; }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 22px; padding: 0 14px; box-shadow: var(--shadow); }
.searchbar .ic { color: var(--grey); }
.searchbar input { border: 0; min-height: 44px; padding: 0; background: transparent; box-shadow: none !important; }

/* Zillow-style listing card */
.zgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.zcard { display: block; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); }
.zimg { position: relative; aspect-ratio: 16 / 10; background: var(--card-2) center / cover no-repeat; }
.zimg.is-cover { display: grid; place-items: center; background: linear-gradient(135deg, #DDF5E1, #BFEAC7); color: var(--green-ink); }
.zimg.is-cover.is-vol { background: linear-gradient(135deg, #E3EEFF, #C9DCFA); color: var(--vol); }
.zimg.is-cover .ic { width: 56px; height: 56px; stroke-width: 1.6; opacity: .9; }
.zimg .zbadge { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 9px; display: inline-flex; align-items: center; gap: 5px; }
.zimg .zbadge.is-vol { color: var(--vol); }
.zimg .zbadge .ic { width: 14px; height: 14px; stroke-width: 2; opacity: 1; }
.zimg .zcount { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 8px; }
.zbody { padding: 12px 14px 14px; }
.zprice { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; }
.zprice .per { font-size: 13px; font-weight: 600; color: var(--grey); letter-spacing: 0; }
.zprice.is-vol { color: var(--vol); font-size: 17px; }
.zfacts { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.zfacts span + span::before { content: "·"; margin: 0 7px; color: #C0C0C4; }
.zfacts b { font-weight: 700; color: var(--ink); }
.ztitle { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.zloc { margin-top: 4px; color: var(--grey); font-size: 13.5px; display: flex; align-items: center; gap: 4px; }
.zposter { margin-top: 8px; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.zflag { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--green-ink); }
/* detail gallery */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .zimg { flex: 0 0 88%; scroll-snap-align: start; border-radius: var(--r); aspect-ratio: 4 / 3; }
.gallery .zimg:only-child { flex-basis: 100%; }
.photos-manage { display: flex; gap: 8px; flex-wrap: wrap; }
.photos-manage .ph { position: relative; width: 92px; height: 72px; border-radius: 10px; background: var(--card-2) center / cover; }
.photos-manage .ph button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; display: grid; place-items: center; padding: 0; }
.photos-manage .ph button .ic { width: 12px; height: 12px; stroke-width: 3; }
.photos-manage .add { width: 92px; height: 72px; border-radius: 10px; border: 2px dashed var(--line); background: var(--card); color: var(--green-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.facts-bar { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 8px; }
.facts-bar div { text-align: center; }
.facts-bar b { display: block; font-size: 16px; }
.facts-bar span { font-size: 12px; color: var(--grey); }

/* job rows (My Jobs) */
.jobs { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.job { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.cat-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--green-soft); color: var(--green-ink); }
.cat-ic .ic { width: 24px; height: 24px; }
.cat-ic.is-vol { background: var(--vol-soft); color: var(--vol); }
.job .t { font-weight: 700; font-size: 15px; line-height: 1.25; } .job .s { color: var(--grey); font-size: 13px; margin-top: 1px; }
.job .pay { color: var(--green-ink); font-weight: 800; font-size: 14px; margin-top: 2px; }
.job .meta { color: var(--grey); font-size: 12.5px; margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.job .right { display: flex; align-items: center; gap: 4px; color: #C0C0C4; flex: none; }
.job .right .tag { font-size: 11px; padding: 2px 7px; max-width: 108px; white-space: normal; text-align: center; line-height: 1.2; }

/* tags */
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: var(--card-2); color: var(--ink-2); white-space: nowrap; }
.tag-accepted, .tag-in_progress, .tag-worker_done, .tag-open, .tag-filled { background: var(--green-soft); color: var(--green-ink); }
.tag-completed { background: var(--vol-soft); color: var(--vol); }
.tag-pending_guardian { background: var(--orange-soft); color: #A35B00; }
.tag-declined, .tag-cancelled, .tag-withdrawn { background: var(--card-2); color: var(--grey); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 25px; border: 0; background: var(--card-2); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(76,201,91,.35); }
.btn-primary:hover { background: var(--green-dark); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-ghost { background: transparent; color: var(--green-ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 19px; }
.btnrow { display: flex; gap: 10px; } .btnrow > .btn { flex: 1; }
.sticky-cta { position: sticky; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 10px 0 0; }
@media (min-width: 720px) { .sticky-cta { bottom: 0; } }

/* forms */
form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 13px; color: var(--grey); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px rgba(76,201,91,.18); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--green); margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status { font-size: 14px; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.status.is-err { color: #B3261E; background: var(--red-soft); }
.status.is-ok { color: var(--green-ink); background: var(--green-soft); }
.status.is-warn { color: #A35B00; background: var(--orange-soft); }
.err { color: var(--red); }

/* Post Opportunity rows */
.form-rows { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.frow { display: grid; grid-template-columns: 34px 82px 1fr; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow.is-top { align-items: flex-start; }
.frow .fi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); }
.frow .fi .ic { width: 16px; height: 16px; }
.frow .fi.is-orange { background: var(--orange); } .frow .fi.is-grey { background: #9A9AA0; } .frow .fi.is-blue { background: var(--vol); }
.frow .fl { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.frow .fv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.frow .fv input, .frow .fv select, .frow .fv textarea { min-height: 40px; padding: 8px 12px; border-radius: 10px; background: var(--card-2); border-color: transparent; font-size: 15px; }
.frow .fv textarea { min-height: 72px; width: 100%; }
.frow .fv .arrow { color: var(--grey); }
.frow .fv input[type=date] { width: auto; min-width: 150px; } .frow .fv input[type=time] { width: auto; min-width: 118px; }
.frow .note { grid-column: 2 / 4; font-size: 12.5px; color: var(--grey); margin-top: -4px; }
.frow .note.is-ok { color: var(--green-ink); font-weight: 600; }
.frow .unit { color: var(--grey); font-size: 13px; }
.frow .fv input.pay { max-width: 110px; font-weight: 700; }
.frow .fv input.short { max-width: 150px; }

/* avatars */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--hue) 55% 85%); color: hsl(var(--hue) 45% 28%); display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar-lg { width: 68px; height: 68px; font-size: 24px; } .avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.avatar-cluster { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-cluster .avatar { width: 52px; height: 52px; font-size: 16px; border: 3px solid #fff; box-shadow: var(--shadow); }
.stars { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.stars .ic { color: #F5A623; fill: #F5A623; stroke: none; width: 15px; height: 15px; }
.workers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.worker { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--ink); }
.worker .t { font-weight: 700; font-size: 15px; } .worker .d { font-size: 12.5px; color: var(--grey); }

.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border-radius: var(--r); color: inherit; box-shadow: var(--shadow); }
.item .t { font-weight: 700; } .item .d { font-size: 13.5px; color: var(--grey); margin-top: 2px; }
/* A row whose actions sit under the text rather than beside it — an hour request
   carries an hours box and two buttons, which will not fit on a phone in a line. */
.item.col { flex-direction: column; align-items: stretch; gap: 10px; }
.item.col .row { justify-content: flex-end; }
.item.is-unread { border-left: 4px solid var(--green); }
.list { display: flex; flex-direction: column; gap: 10px; }
.empty { padding: 36px 16px; text-align: center; color: var(--grey); display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* PIN */
.pin { font-size: 40px; letter-spacing: .3em; font-weight: 800; text-align: center; padding: 14px; background: var(--green-soft); color: var(--green-ink); border-radius: 14px; font-variant-numeric: tabular-nums; }
.pin-input { font-size: 26px; letter-spacing: .3em; text-align: center; font-weight: 700; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; color: var(--grey); align-items: center; }
.timeline li .n { width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.timeline li.done { color: var(--ink-2); } .timeline li.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.timeline li.now { color: var(--ink); font-weight: 700; } .timeline li.now .n { border-color: var(--green); color: var(--green-ink); }

/* messages */
.thread { display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; }
.msg.mine { align-self: flex-end; background: var(--green); color: #fff; box-shadow: none; }
.msg .at { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.composer { position: sticky; bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); background: var(--bg); padding: 8px 0; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 48px; max-height: 120px; flex: 1; border-radius: 24px; }
@media (min-width: 720px) { .composer { bottom: 0; } }

/* map */
.mapwrap { position: relative; height: 100dvh; width: 100%; }
#map { position: absolute; inset: 0; background: #DCEBFF; }
.map-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.searching { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 22px; padding: 8px 14px 8px 10px; box-shadow: var(--shadow); }
.searching .ic { color: var(--green); }
.searching .l { font-size: 11px; color: var(--grey); line-height: 1.1; } .searching .v { font-weight: 700; font-size: 15px; line-height: 1.15; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.map-locate { position: absolute; right: 16px; bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); z-index: 500; }
body.is-frame .map-locate { bottom: 24px; }
.map-tabs { position: absolute; top: calc(66px + env(safe-area-inset-top)); left: 12px; z-index: 500; }
.map-tabs .chips { box-shadow: var(--shadow); } .map-tabs .chips button { min-width: 80px; }
.pinlabel { position: relative; background: var(--card); border: 2px solid var(--green); border-radius: 14px; padding: 5px 10px; box-shadow: var(--shadow); white-space: nowrap; font-family: var(--font); line-height: 1.15; cursor: pointer; }
.pinlabel .c { font-size: 11.5px; font-weight: 600; color: var(--ink-2); display: block; }
.pinlabel .p { font-size: 14px; font-weight: 800; color: var(--green-ink); display: block; }
.pinlabel.is-vol { border-color: var(--vol); } .pinlabel.is-vol .p { color: var(--vol); font-size: 11px; letter-spacing: .04em; }
.pinlabel::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; background: var(--card); border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateX(-50%) rotate(45deg); }
.pinlabel.is-vol::after { border-color: var(--vol); }
.pinme { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(4,183,249,.25); }
.leaflet-div-icon { background: transparent; border: 0; }
.sheet { position: absolute; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 30px + env(safe-area-inset-bottom)); z-index: 600; }
.sheet .zcard { box-shadow: 0 10px 30px rgba(0,0,0,.2); display: grid; grid-template-columns: 104px 1fr; }
.sheet .zcard .zbadge { display: none; }
.sheet .zcard .zimg.is-cover .ic { width: 40px; height: 40px; }
.sheet .zcard .zimg { aspect-ratio: auto; height: 100%; min-height: 120px; }
.sheet .zcard .zbody { padding: 10px 12px; }
.sheet .zcard .ztitle { font-size: 15px; }
.leaflet-control-attribution { font-size: 9px; }
.leaflet-bottom.leaflet-right { bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); }
body.is-frame .leaflet-bottom.leaflet-right { bottom: 0; }

/* auth */
.auth { max-width: 420px; margin: 0 auto; padding-top: 28px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto 16px; }
.auth-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px rgba(47,179,90,.28); }
.auth-wordmark { display: block; font-family: var(--display, inherit); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.auth h1 { text-align: center; font-size: 28px; } .auth .sub { text-align: center; color: var(--grey); margin-bottom: 8px; }
.auth .foot { text-align: center; color: var(--grey); font-size: 14px; }
.roles { display: grid; gap: 10px; }
.role { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--card); border: 0; border-radius: var(--r); text-align: left; box-shadow: var(--shadow); }
.role .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; flex: none; }
.role .t { font-weight: 700; } .role .d { font-size: 13.5px; color: var(--grey); }

/* settings list */
.settings { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.srow { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--ink); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-size: 16px; }
.srow:last-child { border-bottom: 0; }
.srow .fi { width: 32px; height: 32px; border-radius: 9px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; flex: none; }
.srow .fi .ic { width: 18px; height: 18px; }
.srow .fi.is-red { background: var(--red-soft); color: var(--red); } .srow .fi.is-orange { background: var(--orange-soft); color: #A35B00; } .srow .fi.is-blue { background: var(--vol-soft); color: var(--vol); }
.srow .d { font-size: 13px; color: var(--grey); } .srow .chev { margin-left: auto; color: #C0C0C4; }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--orange-soft); color: #7A4A00; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.notice.is-info { background: var(--green-soft); color: var(--green-ink); } .notice.is-danger { background: var(--red-soft); color: #B3261E; }
#card-el { padding: 4px 0; }

.btn, .job, .item, input, select, textarea { transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease; }
.btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.print-only { display: none; }
@media print { #nav, .btn, .back { display: none !important; } body { padding: 0; background: #fff; } .print-only { display: block; } .card, .item { box-shadow: none; border: 1px solid #ddd; } }

/* search filters */
.filters { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.filters summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.filters summary::-webkit-details-marker { display: none; }
.filters .fcount { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.filters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.filters-grid select { min-height: 42px; padding: 8px 10px; font-size: 14px; border-radius: 10px; }
.filters-grid .btn { grid-column: 1 / -1; }
.results-sum { color: var(--grey); font-size: 14px; }
.results-sum b { color: var(--ink); }
/* home tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 12px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.tile .n { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .l { font-size: 12px; color: var(--grey); }

/* leaderboard */
.lb-me { background: linear-gradient(135deg, #1C1C1E, #2A2E2B); color: #fff; border-radius: var(--r); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.lb-me .rank { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lb-me .rank small { font-size: 14px; font-weight: 600; opacity: .7; margin-left: 4px; }
.lb-me .l { font-size: 13px; opacity: .75; }
.lb-me .v { font-size: 15px; font-weight: 700; }
.lb-me .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); position: relative; margin-top: 8px; overflow: hidden; }
.lb-me .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 4px; }
.lb-me .bar b { position: absolute; top: -3px; width: 2px; height: 14px; background: #fff; }
.lb-rows { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 28px 36px 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.lb-row:last-child { border-bottom: 0; }
.lb-row.is-me { background: var(--green-soft); }
.lb-row .r { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--grey); text-align: center; }
.lb-row .r.m1 { color: #C9A100; } .lb-row .r.m2 { color: #8A8F98; } .lb-row .r.m3 { color: #B4702B; }
.lb-row .t { font-weight: 700; font-size: 15px; } .lb-row .d { font-size: 12.5px; color: var(--grey); }
.lb-row .h { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; }
.lb-row .h small { display: block; font-size: 11px; color: var(--grey); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); }
.badge.is-locked { background: var(--card-2); color: var(--grey); }
.badge .ic { width: 14px; height: 14px; }
.compare { display: grid; gap: 8px; }
.compare .row2 { display: grid; grid-template-columns: 90px 1fr 56px; gap: 10px; align-items: center; font-size: 14px; }
.compare .track { height: 10px; border-radius: 5px; background: var(--card-2); overflow: hidden; }
.compare .track i { display: block; height: 100%; background: var(--green); border-radius: 5px; }
.compare .track i.is-avg { background: #C0C0C4; }
.compare .n { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
/* desktop grid (must follow the base .zgrid rule) */
@media (min-width: 720px) { .zgrid { grid-template-columns: repeat(3, 1fr); } .zgrid.two { grid-template-columns: repeat(2, 1fr); } }

/* ---- trust: onboarding, verification, support ---- */
.ob h1 { margin: 6px 0 4px; } .ob .sub { margin-bottom: 14px; }
.steps { display: flex; gap: 6px; justify-content: center; margin: 4px 0 18px; } .steps .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .steps .dot.is-on { background: var(--green); }
.bullets { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; } .bullets li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; } .bullets .ic { flex: none; margin-top: 3px; }
.famcode { font-size: 30px; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; margin: 6px 0 8px; color: var(--green-ink); } .card.center { text-align: center; }
.checklist { display: grid; gap: 4px; margin-bottom: 12px; } .ck { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; color: inherit; text-decoration: none; border: 1px solid var(--line); } .ck.is-ok { border-color: transparent; background: var(--card-2); } .ck .ic { color: var(--muted); } .ck.is-ok .ic { color: var(--green); } .ck > span:first-of-type { flex: 1; }
.legal-checks { display: grid; gap: 10px; margin: 4px 0 8px; } .legal-checks .check { align-items: flex-start; line-height: 1.4; } .legal-checks a { color: var(--green-ink); text-decoration: underline; } .legal-wrap { padding: 10px 0 0; border-top: 1px solid var(--line); margin-top: 6px; }
.vcard .fi.is-ok { background: #DDF5E1; color: var(--green-ink); } .vcard .fi.is-red { background: #FDE2E2; color: #B42318; } .vcard .vact { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.vstat { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--card-2); color: var(--muted); vertical-align: middle; } .vstat.is-passed { background: #DDF5E1; color: var(--green-ink); } .vstat.is-needs_review, .vstat.is-pending { background: #FFF1D6; color: #8A5A00; } .vstat.is-failed { background: #FDE2E2; color: #B42318; }
.tree { display: grid; gap: 8px; margin: 12px 0 16px; } .trow { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; min-height: 56px; } .trow .fi { flex: none; } .trow .t { font-weight: 600; } .trow .d { font-size: 13px; color: var(--muted); } .trow.is-danger { border-color: #F5B5B5; } .trow.is-danger .fi { background: #FDE2E2; color: #B42318; }
.sev { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--card-2); color: var(--muted); border: 1px solid transparent; font-family: inherit; cursor: default; } button.sev { cursor: pointer; } .sev.is-critical { background: #FDE2E2; color: #B42318; } .sev.is-high { background: #FFF1D6; color: #8A5A00; } .sev.is-normal { background: #E3EEFF; color: #1D4ED8; } .sev.is-on { border-color: currentColor; }
.nextstep { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); } .nextstep p { margin: 4px 0 0; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--card-2); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tl { display: grid; gap: 8px; margin: 12px 0; } .tev { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); } .tev.is-mine { background: #EAF8EE; border-color: transparent; } .tev.is-system, .tev.is-action { background: var(--card-2); border-color: transparent; } .tev.is-note { border-style: dashed; } .tev.is-evidence { background: #FFF7E0; border-color: transparent; } .tev .tb { white-space: pre-wrap; line-height: 1.45; } .tev .tm { font-size: 12px; color: var(--muted); margin-top: 4px; }
.helplink { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: 14px; color: var(--muted); text-decoration: none; min-height: 44px; } .helplink:hover { color: var(--ink); }
.actions-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .row.wrap { flex-wrap: wrap; gap: 8px; } input.short { width: 70px; }
.idimg { display: block; max-width: 100%; border-radius: 12px; margin-top: 12px; border: 1px solid var(--line); }
.tile.is-danger { border-color: #F5B5B5; } .tile.is-danger .n { color: #B42318; }
.notice.is-ok { background: #EAF8EE; color: var(--green-ink); }
/* A notice that is also the way to act on it. */
a.notice.is-link { text-decoration: none; align-items: center; }
a.notice.is-link .chev { flex: none; opacity: .6; }
a.notice.is-link:hover { filter: brightness(.97); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; } .chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; } .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- shadowing, vault, tracker, school ---- */
.zprice.is-shadow, .zbadge.is-shadow { color: #6D28D9; } .zbadge.is-shadow { background: #EDE9FE; } .zimg.is-cover.is-shadow { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: #6D28D9; }
.cat-ic.is-shadow, .cat-ic.is-shadowing { background: #EDE9FE; color: #6D28D9; } .cat-ic.is-school { background: #FFF1D6; color: #8A5A00; } .cat-ic.is-volunteer { background: #E3EEFF; color: var(--vol); } .cat-ic.is-paid { background: #DDF5E1; color: var(--green-ink); }
.vstat.is-ok { background: #DDF5E1; color: var(--green-ink); } .vstat.is-warn { background: #FFF1D6; color: #8A5A00; } .vstat.is-bad { background: #FDE2E2; color: #B42318; }
.docpick { display: grid; gap: 8px; margin: 8px 0; } .docreq { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 14px; background: var(--card-2); } .docreq.is-ok { color: var(--green-ink); } .docreq.is-missing { background: #FFF1D6; color: #8A5A00; } .docreq a { margin-left: auto; }
.addcard summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; min-height: 44px; list-style: none; } .addcard summary::-webkit-details-marker { display: none; } .addcard[open] summary { margin-bottom: 8px; }
.tlsteps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 4px 0 14px; } .tlsteps li { flex: 1; font-size: 12px; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--card-2); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; } .tlsteps li.is-done { background: #DDF5E1; color: var(--green-ink); } .tlsteps li.is-now { background: var(--ink); color: #fff; }
.note-card { border-left: 4px solid var(--green); } .pre { white-space: pre-wrap; line-height: 1.5; }
.buckets { display: grid; gap: 10px; margin: 8px 0 14px; } @media (min-width: 720px) { .buckets { grid-template-columns: repeat(3, 1fr); } }
.bucket { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 8px; } .bucket .n { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .bucket .n .unit { font-size: 13px; font-weight: 600; color: var(--muted); } .bucket .l { font-size: 13px; color: var(--muted); }
.bucket.is-volunteer .cat-ic { background: #E3EEFF; color: var(--vol); } .bucket.is-shadowing .cat-ic { background: #EDE9FE; color: #6D28D9; } .bucket.is-paid .cat-ic { background: #DDF5E1; color: var(--green-ink); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .bar .fill { display: block; height: 100%; width: 0; background: var(--green); border-radius: 3px; transition: width .4s ease; }
/* One goal a student is working toward: name and count, a bar, then why any hours are not counting. */
.goalrow { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.goalrow:first-of-type { border-top: 0; padding-top: 2px; }
.goalrow > p { margin: 0; }
.item.is-col { flex-direction: column; align-items: stretch; } .item.is-col > .row { margin-top: 8px; }
code.small { font-size: 12px; word-break: break-all; background: var(--card-2); padding: 4px 6px; border-radius: 6px; }
.row .field { flex: 1; min-width: 0; }
.zflag.is-ext { background: #FFF1D6; color: #8A5A00; }
.zipin { width: 100%; min-width: 0; }

.cred-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; } .cred { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: #FFF1D6; color: #8A5A00; } .cred .ic { width: 14px; height: 14px; }
.docs-req summary { cursor: pointer; font-size: 14px; font-weight: 600; min-height: 32px; display: flex; align-items: center; } .docs-req[open] summary { margin-bottom: 6px; }

.pwrules { margin: -6px 0 12px; } .pwrules ul { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; } .pwrules li { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; } .pwrules li .ic { color: var(--line); } .pwrules li.is-ok { color: var(--ink); } .pwrules li.is-ok .ic { color: var(--green); } .pwrules .check.small { font-size: 13px; }
.zimg.is-logo { background-color: #fff; background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; border-bottom: 1px solid var(--line); }
.zimg.is-logo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); }
/* ---- live preview while posting ---- */
.post-preview { margin: 0 0 14px; }
.post-preview .pp-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 2px 8px; }
.post-preview .pp-hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.post-preview .zcard { pointer-events: none; max-width: 300px; box-shadow: 0 6px 22px -12px rgba(0,0,0,.3); }
.post-preview .zimg { aspect-ratio: 16 / 7; }
.post-preview .zimg.is-cover .ic { width: 34px; height: 34px; }
.post-preview .zbody { padding: 10px 12px 12px; }
.post-preview .ztitle { font-size: 15px; }
.post-preview .zposter { display: none; }
/* Wide screens get the preview in its own column, so it can stay in view while
   the form is filled in without covering the fields it is previewing. */
@media (min-width: 980px) {
  form.post-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
  form.post-form > .post-preview { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 76px; margin: 0; }
  form.post-form > .form-rows { grid-column: 1; grid-row: 1; }
  form.post-form > .status { grid-column: 1; grid-row: 2; margin: 0; }
  form.post-form > .btn { grid-column: 1; grid-row: 3; }
  .post-preview .zcard { max-width: none; }
}
/* ---- address autocomplete ---- */
.ac { position: relative; display: block; }
.ac > input { width: 100%; box-sizing: border-box; }
.frow .fv > .ac { flex: 1 1 240px; min-width: 0; }
/* On a phone the value column is too narrow for a street address, so the list
   spans the row instead of wrapping every suggestion onto three lines. */
@media (max-width: 719px) {
  .frow .fv > .ac > .ac-list { left: auto; right: 0; width: calc(100vw - 48px); }
}
.ac-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.3); max-height: 260px; overflow-y: auto; }
.ac-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1.3; min-height: 44px; }
.ac-item .ic { flex: none; color: var(--muted); }
.ac-item.is-active, .ac-item:hover { background: var(--green-soft, #E6F7E9); }
.ac-item.is-active .ic { color: var(--green-ink); }

/* roster: whether a student has met the school's requirement */
.tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #F1F1F4; color: #63636B; }
.tag.ok { background: #E6F7E9; color: #1B7A3A; }
.tag.warn { background: #FFF1DC; color: #8A5A08; }
.srow-card .row.between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
