:root {
  --bg: #f4f1e8;
  --surface: #ffffff;
  --surface-2: #f8f6ef;
  --text: #1f2a1c;
  --muted: #5f6b58;
  --line: #e2ddcf;
  --primary: #1e6b3c;
  --primary-ink: #ffffff;
  --primary-soft: #e3f1e1;
  --accent: #b86e00;
  --accent-soft: #fff1d9;
  --info: #1f6aa5;
  --info-soft: #e2eff9;
  --danger: #b3261e;
  --danger-soft: #fbe5e3;
  --safe: #8a3ea6;
  --safe-soft: #f3e6f8;
  --shadow: 0 1px 2px rgba(40, 40, 20, .06), 0 4px 14px rgba(40, 40, 20, .06);
  --radius: 16px;
  --font: 'Noto Sans', 'Noto Sans Telugu', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131711;
    --surface: #1c2219;
    --surface-2: #232a20;
    --text: #e8eee3;
    --muted: #a3ae9b;
    --line: #2f382b;
    --primary: #5cb860;
    --primary-ink: #0d1a0d;
    --primary-soft: #1f3320;
    --accent: #f0a83a;
    --accent-soft: #3a2c12;
    --info: #74b4e8;
    --info-soft: #17293a;
    --danger: #f08a82;
    --danger-soft: #3a1c1a;
    --safe: #d39ce8;
    --safe-soft: #301f38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131711; --surface: #1c2219; --surface-2: #232a20; --text: #e8eee3; --muted: #a3ae9b; --line: #2f382b;
  --primary: #5cb860; --primary-ink: #0d1a0d; --primary-soft: #1f3320; --accent: #f0a83a; --accent-soft: #3a2c12;
  --info: #74b4e8; --info-soft: #17293a; --danger: #f08a82; --danger-soft: #3a1c1a; --safe: #d39ce8; --safe-soft: #301f38;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative; overflow-x: clip; }
.screen > * { min-width: 0; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); font-size: .92rem; }
.hint { color: var(--accent); font-size: .92rem; }
.fineprint { color: var(--muted); font-size: .8rem; text-align: center; margin: 20px 8px 8px; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--primary); color: var(--primary-ink);
}
.top-title { flex: 1; font-size: 1.15rem; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 36px; height: 36px; margin: 0 4px; border-radius: 9px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35); }
.icon-btn-spacer { width: 44px; }
.topbar .icon-btn { background: rgba(255, 255, 255, .18); color: inherit; }

.screen { padding: 16px 16px 104px; display: flex; flex-direction: column; gap: 14px; }
.screen.bare { padding-bottom: 32px; }

.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px; text-decoration: none; color: var(--muted); font-size: .8rem; font-weight: 600;
}
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active .nav-icon { background: var(--primary-soft); }
.nav-icon { font-size: 1.4rem; padding: 2px 14px; border-radius: 999px; position: relative; }
.nav-badge {
  position: absolute; top: -4px; right: 6px; font-style: normal;
  background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px;
  border: 1.5px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-danger-ghost { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-call { background: var(--primary-soft); color: var(--primary); }
.btn-xl { min-height: 58px; font-size: 1.1rem; width: 100%; }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.btn:active { transform: scale(.98); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.2rem; cursor: pointer;
  background: var(--surface-2); text-decoration: none;
}
.icon-btn.call { background: var(--primary-soft); }
.link-btn { background: none; border: 0; color: var(--info); font-weight: 600; padding: 10px; cursor: pointer; align-self: center; }
.link-btn.danger { color: var(--danger); }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.card.list { padding: 4px 14px; }
.card.list > .person + .person { border-top: 1px solid var(--line); }
.section-title { font-size: 1rem; margin-top: 6px; color: var(--muted); text-transform: none; }
.empty { text-align: center; color: var(--muted); padding: 24px 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty strong { color: var(--text); }
.empty-icon { font-size: 2.6rem; }

.job-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.jc-top { display: flex; gap: 12px; align-items: center; }
.wt-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.8rem; background: var(--primary-soft);
}
.jc-main { flex: 1; min-width: 0; }
.jc-title { font-weight: 700; font-size: 1.08rem; }
.jc-sub { color: var(--muted); font-size: .9rem; }
.jc-wage { text-align: right; font-weight: 800; font-size: 1.25rem; color: var(--accent); line-height: 1.1; }
.jc-wage small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
.jc-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: .92rem; }
.jc-farmer { flex: 1; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .85rem; white-space: nowrap; }
.pill-safe { background: var(--safe-soft); color: var(--safe); border-color: transparent; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); border-radius: 4px; }
.count-badge { background: var(--danger); color: #fff; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: var(--primary-soft); color: var(--primary); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-wait { background: var(--accent-soft); color: var(--accent); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.rating { color: var(--accent); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.rating small { color: var(--muted); font-weight: 500; }
.rating-new { color: var(--info); }
.verified { color: var(--info); font-weight: 800; }
.skill-line { font-size: .82rem; color: var(--muted); margin-top: 2px; }

.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.card.person { padding: 14px; }
.person-main { flex: 1; min-width: 0; }
.person-name { font-weight: 700; }
.person-btn { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.chev { font-size: 1.6rem; color: var(--muted); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  background: var(--accent-soft); color: var(--accent);
}
.avatar.big { width: 68px; height: 68px; font-size: 1.7rem; }
.applicant .person { padding-top: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- home ---------- */
.hello h2 { font-size: 1.35rem; }
.cta {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--primary); color: var(--primary-ink); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow);
}
.cta-icon { font-size: 2.2rem; }
.cta strong { display: block; font-size: 1.2rem; }
.cta small { opacity: .9; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center; }
.stat b { display: block; font-size: 1.5rem; }
.stat span { font-size: .8rem; color: var(--muted); }
.stat-alert { background: var(--accent-soft); border-color: transparent; }
.stat-alert b { color: var(--accent); }
.stat-money b { color: var(--primary); font-size: 1.25rem; }

.note { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.note-ok { background: var(--primary-soft); }
.note-wait { background: var(--accent-soft); }
.note-info { background: var(--info-soft); }
.note-safe { background: var(--safe-soft); margin-top: 12px; }
.notes { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- chips & filters ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chip-row.scroll::-webkit-scrollbar { display: none; }
.chip-btn, .chip > span {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  min-height: 42px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem;
}
.chip-btn.active, .chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip { position: relative; }
.chip input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
/* Fieldsets default to min-width: min-content, which let wide rows push the form past the screen edge. */
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* Floating the legend pulls it inside the fieldset box instead of onto its border. */
legend { float: left; width: 100%; font-weight: 700; font-size: 1.05rem; padding: 0; display: flex; align-items: center; gap: 8px; }
legend + * { clear: both; }
legend b {
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--primary-ink);
  display: inline-grid; place-items: center; font-size: .85rem;
}
.post-form fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field > span { font-size: .95rem; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface-2); font-size: 1.05rem;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone-input, .money-input { display: flex; align-items: stretch; }
.phone-input span, .money-input span {
  display: grid; place-items: center; padding: 0 14px; font-weight: 700;
  background: var(--surface); border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
}
.phone-input input, .money-input input { border-radius: 0 12px 12px 0; font-size: 1.2rem; letter-spacing: .04em; }
.money-input input { font-weight: 800; color: var(--accent); }
.otp-input { text-align: center; font-size: 2rem !important; letter-spacing: .6em; font-weight: 800; }
.mic-field { position: relative; display: flex; gap: 8px; align-items: flex-start; }
.mic-btn {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--accent-soft); font-size: 1.3rem;
}
.mic-btn.listening { background: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(179, 38, 30, .25); } }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; }
.tile-in {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  min-height: 92px; padding: 8px 4px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2);
  font-size: .85rem; font-weight: 600; line-height: 1.2;
}
.tile-icon { font-size: 1.9rem; }
.tile input:checked + .tile-in { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.tile input:focus-visible + .tile-in { outline: 3px solid var(--info); outline-offset: 2px; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 56px; height: 56px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 1.6rem; font-weight: 700; cursor: pointer;
}
.stepper input, .stepper output {
  flex: 1; text-align: center; font-size: 1.6rem !important; font-weight: 800; min-height: 56px;
  display: grid; place-items: center;
}
.stepper.big { justify-content: center; margin: 8px 0; }

.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.switch {
  width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex-shrink: 0; transition: background .2s;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.switch-row input:checked + .switch { background: var(--primary); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--info); outline-offset: 2px; }

.role-list { display: flex; flex-direction: column; gap: 8px; }
.role-tile { position: relative; cursor: pointer; }
.role-tile input { position: absolute; opacity: 0; }
.role-in { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); }
.role-in small { display: block; color: var(--muted); font-size: .85rem; }
.role-icon { font-size: 1.9rem; }
.role-tile input:checked + .role-in { border-color: var(--primary); background: var(--primary-soft); }
.group-field { display: none; }
.setup-form:has(input[value=leader]:checked) .group-field { display: flex; }

/* ---------- job detail ---------- */
.job-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-icon { font-size: 3rem; width: 80px; height: 80px; border-radius: 22px; background: var(--primary-soft); display: grid; place-items: center; }
.hero-wage { font-size: 2rem; font-weight: 800; color: var(--accent); }
.hero-wage small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head h2 { font-size: 1.25rem; }
.card h3 { margin-bottom: 6px; }
.card .chip-row { margin-top: 10px; }
.card .field { margin-top: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.seg button { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font-weight: 700; cursor: pointer; }
.seg button.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---------- splash & auth ---------- */
.splash { min-height: calc(100vh - 48px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; }
.logo { width: 120px; height: 120px; border-radius: 27px; box-shadow: var(--shadow); }
.logo.small { width: 72px; height: 72px; border-radius: 16px; }
.brand-tagline { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.brand-tagline small { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.brand { font-size: 2rem; color: var(--primary); }
.brand span { display: block; font-size: 1rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.lang-list { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.lang-btn {
  display: flex; flex-direction: column; align-items: center; padding: 16px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--surface); cursor: pointer; box-shadow: var(--shadow);
}
.lang-btn .big { font-size: 1.6rem; font-weight: 800; }
.lang-btn span:last-child { color: var(--muted); font-size: .9rem; }
.lang-btn:hover, .lang-btn:focus-visible { border-color: var(--primary); }
.auth { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.auth-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.auth-head h1 { color: var(--primary); font-size: 1.7rem; }

/* ---------- modal & toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px;
  animation: up .2s ease-out; max-height: 90vh; overflow-y: auto;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-msg { font-size: 1.1rem; font-weight: 600; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.star-row { display: flex; justify-content: center; gap: 6px; }
.star { font-size: 2.6rem; background: none; border: 0; color: var(--line); cursor: pointer; padding: 0 2px; line-height: 1; }
.star.on { color: #f2a900; }
.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--primary); }

#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 60;
  max-width: calc(100% - 32px); width: max-content;
  background: #1f2a1c; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 560px) {
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- v2 additions ---------- */
html.big-text { font-size: 19px; }
[hidden] { display: none !important; }
.topbar .bell { position: relative; }
.topbar .bell .nav-badge { top: 2px; right: 0; }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 14px; text-decoration: none; font-weight: 700;
}
.banner span { font-size: 1.4rem; }
.banner-ok { background: var(--primary-soft); color: var(--primary); }
.banner-wait { background: var(--accent-soft); color: var(--accent); }
.badge-bad { background: var(--danger-soft); color: var(--danger); }
.note-bad { background: var(--danger-soft); color: var(--danger); }
.pill-urgent { background: var(--danger-soft); color: var(--danger); border-color: transparent; font-weight: 700; }
.job-card.is-urgent { border-color: var(--danger); border-width: 1.5px; }
.pills.center { justify-content: center; }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn.full { width: 100%; margin-top: 12px; }
.action-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.action-bar .btn { padding: 8px 10px; font-size: .92rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 2px; }
.trust { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.trust-good { color: var(--primary); }
.trust-warn { color: var(--accent); }
.person-actions { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.avatar.soft { background: var(--surface-2); font-size: 1.3rem; }
.notif { gap: 12px; }
.notif.unread { background: var(--primary-soft); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.notif .person-main > div:first-child { font-weight: 600; }
.stats.four { grid-template-columns: repeat(2, 1fr); }
.skill-group + .skill-group { margin-top: 14px; }
.skill-cat { font-weight: 700; font-size: .92rem; color: var(--muted); margin-top: 10px; }
.skill-group .chip-row { margin-top: 6px; }
.applicant.is-closed { opacity: .6; }
.card .switch-row + .switch-row { margin-top: 4px; }

/* ---------- v3 additions ---------- */
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  min-height: 76px; padding: 8px 4px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2);
  font-size: .85rem; font-weight: 700; line-height: 1.2;
}
.choice-icon { font-size: 1.6rem; }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.choice input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }
.gender-set:has(input[name=gender][value=any]:not(:checked)) .women-friendly { display: none; }
.pill-gender { background: var(--info-soft); color: var(--info); border-color: transparent; font-weight: 700; }

.post-form details.more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.post-form details.more summary {
  list-style: none; cursor: pointer; padding: 16px 14px; display: flex; flex-direction: column; gap: 2px;
}
.post-form details.more summary::-webkit-details-marker { display: none; }
.post-form details.more summary span { font-weight: 700; color: var(--primary); }
.post-form details.more summary small { color: var(--muted); }
.post-form details.more[open] summary { border-bottom: 1px solid var(--line); }
.post-form details.more fieldset { border: 0; border-radius: 0; background: none; padding: 14px; }
.post-form details.more fieldset + fieldset { border-top: 1px solid var(--line); }

.weather { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--info-soft); font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.weather-warn { color: var(--danger); font-weight: 700; }
.steps { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.steps li { padding-left: 4px; }

/* ---------- v4: places ---------- */
.place-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 12px 14px; min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2);
}
.place-btn:hover, .place-btn:focus-visible { border-color: var(--primary); }
.place-icon { font-size: 1.5rem; }
.place-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.place-text strong { font-size: 1.05rem; }
.place-text small { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.place-change { color: var(--primary); font-weight: 700; white-space: nowrap; }

.scope-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.scope-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 64px;
  border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .82rem; text-align: center;
}
.scope-btn b { font-size: 1.15rem; color: var(--primary); }
.scope-btn.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.scope-btn.active b { color: var(--primary-ink); }
.near { font-weight: 700; white-space: nowrap; }
.near-0 { color: var(--primary); }
.near-1 { color: var(--info); }

.modal.sheet { height: 88vh; max-height: 88vh; padding: 0; gap: 0; overflow: hidden; }
.picker { display: flex; flex-direction: column; height: 100%; }
.picker-head { padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.crumb { border: 0; background: var(--primary-soft); color: var(--primary); font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: .88rem; }
.picker-search { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font-size: 1.05rem; }
.picker-list { flex: 1; overflow-y: auto; padding: 6px 8px; -webkit-overflow-scrolling: touch; }
.picker-row {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  min-height: 54px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 1.05rem; font-weight: 600;
}
.picker-row:hover, .picker-row:focus-visible { background: var(--primary-soft); }
.picker-row small { color: var(--muted); font-weight: 500; margin-left: auto; font-size: .95rem; }
.picker-icon { font-size: 1.3rem; }
.picker-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.picker-foot small { color: var(--muted); font-size: .75rem; text-align: center; }
.center { text-align: center; padding: 20px; }
.weather .credit { font-weight: 400; font-size: .72rem; color: var(--muted); }

/* PIN login and family members */
.muted.small { font-size: .82rem; }
.join-box { text-align: center; }
.family-list { display: flex; flex-direction: column; }
.family-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.family-row:first-child { border-top: 0; }
.family-row .person-actions { display: flex; gap: 4px; }
.going { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.chip-scroll { max-height: 34vh; overflow-y: auto; }

/* Consent at sign-up, legal pages, account deletion */
.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.check-row input { width: 26px; height: 26px; min-height: 0; flex: none; margin: 0; accent-color: var(--primary); }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legal-links .link-btn { padding: 8px 0; align-self: auto; text-decoration: none; }
.legal li { line-height: 1.5; }
.legal-scroll { max-height: 60vh; overflow-y: auto; }
