/* ══════════════════════════════════════════════════════════════════
   village.css — the town square (vl-) and the little farmers (av-).

   Same rules as the rest of the Slate: one curve, transform and opacity
   only, lit rather than filled, and every flourish off under reduced
   motion. Each kind of post owns one colour (--k) and uses it in exactly
   three places — its badge, its icon, and the thin rule down its left
   edge — so a glance down the feed tells you what is being asked of you
   before you read a word.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --k-idea: #e9c46a;
  --k-proposal: #9fd8ff;
  --k-request: #d4a9e8;
  --k-need: #e58a78;
  --k-suggestion: #9fcf85;
  --k-comment: #b9ae9a;
}
.vl-root, .vl-sheet, .vl-person { --k: var(--dim); }
.vl-k-idea { --k: var(--k-idea); }
.vl-k-proposal { --k: var(--k-proposal); }
.vl-k-request { --k: var(--k-request); }
.vl-k-need { --k: var(--k-need); }
.vl-k-suggestion { --k: var(--k-suggestion); }
.vl-k-comment { --k: var(--k-comment); }

.vl-ic { width: 18px; height: 18px; flex: none; display: block; }
.vl-ic.big { width: 34px; height: 34px; margin: 0 auto 10px; opacity: .45; }
.vl-root { padding-bottom: 24px; }

/* ─── the head ─────────────────────────────────────────────────── */

.vl-head { padding: 6px 2px 0; }
.vl-head .eyebrow-rune { color: var(--gold); }
.vl-head .eyebrow-rune::before { background: linear-gradient(90deg, rgba(233,196,106,.42), transparent); }
.vl-head .eyebrow-rune::after { background: linear-gradient(90deg, rgba(233,196,106,.42), transparent); }
.vl-head h2 { margin: 8px 0 0; font-size: 29px; line-height: 1.05; color: var(--ink); }

/* The loop, drawn as four stepping stones joined by a path. */
.vl-loop {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: relative;
}
.vl-loop::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 15px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(233,196,106,.45) 0 4px, transparent 4px 8px);
}
.vl-loop li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11px; line-height: 1.25; color: var(--dim); text-align: center; }
.vl-loop li .vl-ic { width: 30px; height: 30px; padding: 7px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid rgba(233,196,106,.38); color: var(--gold); }
.vl-loop li:nth-child(2) .vl-ic { color: #f0a3a3; border-color: rgba(240,163,163,.38); }
.vl-loop li:nth-child(3) .vl-ic { color: var(--life); border-color: rgba(134,185,111,.4); }
.vl-loop li:nth-child(4) .vl-ic { color: var(--rune); border-color: rgba(159,216,255,.38); }

/* ─── who's here ───────────────────────────────────────────────── */

.vl-here {
  margin: 16px 0 0; padding: 12px 0 10px; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(134,185,111,.10), transparent 55%),
    var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.vl-here-h { display: flex; align-items: center; gap: 8px; padding: 0 14px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.vl-here-h b { font-weight: 640; }
.vl-k { margin-left: auto; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.vl-livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); position: relative; }
.vl-livedot.on { background: var(--life); }
.vl-livedot.on::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--life); opacity: 0; animation: vl-ping 2.2s var(--ease) infinite;
}
@keyframes vl-ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.vl-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 10px 14px 2px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  align-items: flex-start;
}
.vl-strip::-webkit-scrollbar { display: none; }

.vl-pal {
  flex: none; width: 92px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: none; border: 0; padding: 0; color: inherit; text-align: center; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.vl-pal:active { transform: scale(.94); }
.vl-pal-av { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--tc, var(--line-2)), 0 6px 16px -8px #000; margin-bottom: 5px; }
.vl-pal-av svg { display: block; border-radius: 50%; }
.vl-pal-av i { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%;
  border: 2.5px solid var(--panel); background: var(--life); }
.vl-pal.near .vl-pal-av i { background: var(--water); }
.vl-pal.busy .vl-pal-av::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(134,185,111,.55); animation: vl-breathe 2.8s var(--ease) infinite;
}
@keyframes vl-breathe { 0%, 100% { transform: scale(.94); opacity: .2; } 50% { transform: scale(1.02); opacity: .9; } }
.vl-pal b { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-pal-where { font-size: 11px; color: var(--dim); line-height: 1.25; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vl-pal-when { font-size: 11px; color: var(--life); font-variant-numeric: tabular-nums; }
.vl-pal.near .vl-pal-when { color: var(--water); }

.vl-nobody { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 6px 4px; min-width: 190px; }
.vl-nobody p { margin: 0; font-size: 13px; color: var(--dim); }
.vl-mini { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border-radius: 99px; border: 1px solid rgba(134,185,111,.4); color: var(--life); background: rgba(134,185,111,.08);
  font-size: 12.5px; font-weight: 560; align-self: flex-start; }
.vl-mini .vl-ic { width: 14px; height: 14px; }

.vl-rest { flex: none; display: flex; flex-direction: column; gap: 7px; padding: 4px 0 0 12px;
  border-left: 1px dashed var(--line-2); margin-left: 2px; }
.vl-rest > span { font-size: 11px; color: var(--faint); white-space: nowrap; }
.vl-rest > div { display: flex; gap: 0; }
.vl-dot-av { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0;
  background: none; margin-right: -8px; opacity: .72; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.vl-dot-av svg { border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
.vl-dot-av:active { transform: scale(.9); opacity: 1; }

/* ─── the composer ─────────────────────────────────────────────── */

.vl-compose { margin: 14px 0 0; }
.vl-root > .vl-compose {
  padding: 14px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(244,239,229,.035), transparent 40%), var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.vl-ask { display: flex; align-items: center; gap: 11px; }
.vl-ask b { display: block; font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
.vl-ask span:not(.vl-ask-av) { display: block; font-size: 12.5px; color: var(--faint); margin-top: 1px; }
.vl-ask-av { flex: none; display: block; line-height: 0; }
.vl-ask-av svg { border-radius: 50%; }

.vl-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vl-kindtile {
  position: relative; text-align: left; color: var(--ink);
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr; column-gap: 10px; align-items: start;
  padding: 10px 10px 11px 10px; border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--k) 12%, transparent), transparent 70%), var(--bg-2);
  border: 1px solid color-mix(in srgb, var(--k) 26%, var(--line));
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.vl-kindtile:active { transform: scale(.96); }
.vl-kic { grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }
.vl-kic .vl-ic { width: 19px; height: 19px; }
.vl-kindtile b { font-size: 14px; font-weight: 640; line-height: 1.2; color: var(--k); }
.vl-kindtile span:last-child { font-size: 11.5px; line-height: 1.3; color: var(--dim); margin-top: 1px; }

.vl-kchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.vl-sheet .vl-kchips { margin: 0 -16px; padding: 0 16px 2px; }
.vl-kchips::-webkit-scrollbar { display: none; }
.vl-kchip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 6px 12px 6px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 560;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--dim);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.vl-kchip .vl-ic { width: 15px; height: 15px; color: var(--k); }
.vl-kchip:active { transform: scale(.94); }
.vl-kchip[aria-checked="true"] { color: var(--bg); background: var(--k); border-color: var(--k); }
.vl-kchip[aria-checked="true"] .vl-ic { color: var(--bg); }

.vl-kline { margin: 9px 0 0; font-size: 12.5px; color: var(--k); }
.vl-ta-wrap { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.vl-ta-wrap .vl-ask-av { margin-top: 3px; }
.vl-ta {
  flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  resize: vertical; min-height: 84px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.vl-sheet .vl-ta { min-height: 64px; }
.vl-ta:focus { outline: none; border-color: var(--k, var(--life));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--k, var(--life)) 16%, transparent); }
.vl-ta::placeholder { color: var(--faint); }

.vl-about { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.vl-about-l { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-right: 2px; }
.vl-aboutchip, .vl-aboutsel {
  position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 36px;
  padding: 6px 12px; border-radius: 99px; font-size: 12.5px; color: var(--dim);
  border: 1px solid var(--line); background: var(--bg-2); max-width: 100%;
}
.vl-aboutchip[aria-pressed="true"], .vl-aboutsel.on { color: var(--life); border-color: rgba(134,185,111,.5); background: rgba(134,185,111,.08); }
.vl-aboutsel .vl-ic { width: 14px; height: 14px; }
.vl-aboutsel select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 12.5px; padding: 0 2px; max-width: 150px; text-overflow: ellipsis;
}
.vl-aboutsel select:focus { outline: none; }
.vl-aboutsel:focus-within { border-color: var(--life); }

.vl-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.vl-send-row { justify-content: flex-end; }
.vl-send { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 18px; border-radius: 99px; }
.vl-send .vl-ic { width: 16px; height: 16px; }
.vl-send-row .btn.quiet { min-height: 44px; }

/* ─── filters ──────────────────────────────────────────────────── */

.vl-filters {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 12px -16px 6px; padding: 8px 16px 10px;
  position: sticky; top: 0; z-index: 3;
  background: linear-gradient(180deg, var(--bg) 78%, rgba(18,16,13,0));
}
.vl-filters::-webkit-scrollbar { display: none; }
.vl-filt {
  flex: none; min-height: 36px; padding: 6px 13px; border-radius: 99px; font-size: 13px; font-weight: 540;
  border: 1px solid var(--line); background: var(--panel); color: var(--dim);
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform var(--dur-fast) var(--ease);
}
.vl-filt i { font-style: normal; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.vl-filt:active { transform: scale(.94); }
.vl-filt[aria-pressed="true"] { color: var(--ink); border-color: var(--line-2); background: var(--panel-2); }
.vl-filt[aria-pressed="true"] i { color: var(--solar); }

/* ─── a post ───────────────────────────────────────────────────── */

.vl-post {
  position: relative; margin: 0 0 10px; padding: 13px 14px 10px 16px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(244,239,229,.03), transparent 45%), var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.vl-post::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--k); opacity: .8;
}
.vl-post.pending { opacity: .62; }
.vl-post.vl-st-declined { opacity: .72; }
.vl-post.vl-st-declined::before { opacity: .3; }

.vl-ph { display: flex; align-items: center; gap: 10px; }
.vl-who { flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 50%;
  display: grid; place-items: center; }
.vl-who svg { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--tc, var(--line-2)); }
.vl-meta { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; row-gap: 1px; }
.vl-meta b { font-size: 14.5px; font-weight: 620; }
.vl-team { font-size: 11.5px; color: var(--tc); display: inline-flex; align-items: center; gap: 4px; }
.vl-team::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.vl-time { font-size: 11.5px; color: var(--faint); flex-basis: 100%; }
.vl-kind {
  flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 640; letter-spacing: .02em; color: var(--k);
  padding: 3px 9px 3px 7px; border-radius: 99px;
  background: color-mix(in srgb, var(--k) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--k) 30%, transparent);
}
.vl-kind .vl-ic { width: 13px; height: 13px; }
.vl-newdot { position: absolute; top: -7px; right: 12px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #1b1206; background: var(--gold); border-radius: 99px; padding: 2px 7px;
  box-shadow: 0 4px 10px -4px rgba(233,196,106,.7); }

.vl-body { margin: 9px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

.vl-wheres { margin-top: 9px; }
.vl-where {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; max-width: 100%;
  padding: 4px 11px 4px 8px; border-radius: 99px; font-size: 12px; color: var(--dim);
  border: 1px solid var(--line); background: rgba(0,0,0,.22);
}
.vl-where .vl-ic { width: 14px; height: 14px; color: var(--life); }
.vl-where:active { transform: scale(.95); }

/* The farm's answer. Parchment, in the one serif — the same register the
   guide's recorded words use: this is the farm speaking. */
.vl-verdict { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px;
  background: rgba(134,185,111,.08); border: 1px solid rgba(134,185,111,.3); }
.vl-verdict b { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--life); }
.vl-verdict b .vl-ic { width: 15px; height: 15px; }
.vl-verdict q { display: block; margin-top: 4px; font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: 17px; line-height: 1.3; color: var(--parchment); quotes: "\201C" "\201D"; }
.vl-v-done { background: rgba(233,196,106,.08); border-color: rgba(233,196,106,.32); }
.vl-v-done b { color: var(--gold); }
.vl-v-declined { background: rgba(255,255,255,.03); border-color: var(--line); }
.vl-v-declined b { color: var(--faint); }

.vl-acts { display: flex; align-items: center; gap: 2px; margin: 8px -6px 0; white-space: nowrap; }
.vl-vote, .vl-act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px;
  border: 0; background: none; color: var(--dim); font-size: 13px; border-radius: 12px;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.vl-vote:active, .vl-act:active { transform: scale(.92); }
.vl-vote .vl-ic, .vl-act .vl-ic { width: 18px; height: 18px; }
.vl-vn { font-variant-numeric: tabular-nums; font-weight: 640; min-width: .6em; }
.vl-vote[aria-pressed="true"] { color: #f08c8c; }
.vl-vote[aria-pressed="true"] .vl-ic { fill: #f08c8c; }
.vl-vote.vl-bounce .vl-ic { animation: vl-bounce .5s var(--spring); }
@keyframes vl-bounce { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-8deg); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
.vl-act[aria-expanded="true"] { color: var(--ink); }
.vl-act.vl-lead { color: var(--life); }
.vl-act.vl-del { margin-left: auto; color: var(--faint); padding: 6px 12px; }

.vl-promote {
  display: flex; align-items: center; gap: 11px; width: 100%; margin: 6px 0 2px; padding: 11px 13px;
  border-radius: 12px; text-align: left; color: var(--ink);
  border: 1px dashed rgba(159,216,255,.45);
  background: linear-gradient(90deg, rgba(159,216,255,.10), rgba(159,216,255,.02));
}
.vl-promote .vl-ic { width: 22px; height: 22px; color: var(--rune); }
.vl-promote b { display: block; font-size: 14px; color: var(--rune); }
.vl-promote span { font-size: 12px; color: var(--dim); }
.vl-promote:active { transform: scale(.98); }

.vl-answer { margin: 6px 0 4px; padding: 11px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.vl-answer label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 6px; }
.vl-answer .vl-ta { min-height: 60px; --k: var(--life); }
.vl-verdicts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vl-vbtn { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 6px 13px; border-radius: 99px;
  font-size: 13px; font-weight: 580; border: 1px solid var(--line); background: var(--panel-2); color: var(--dim); }
.vl-vbtn .vl-ic { width: 15px; height: 15px; }
.vl-vbtn.yes { color: #10210a; background: var(--life); border-color: var(--life); }
.vl-vbtn.no { color: var(--now); border-color: rgba(215,109,93,.4); background: transparent; }
.vl-vbtn.done { color: var(--gold); border-color: rgba(233,196,106,.45); background: transparent; }
.vl-vbtn:disabled { opacity: .45; }

/* ─── replies ──────────────────────────────────────────────────── */

.vl-peek { display: flex; align-items: center; gap: 7px; width: 100%; margin: 0 0 2px; padding: 7px 10px;
  border-radius: 10px; border: 0; background: rgba(0,0,0,.2); color: var(--dim); font-size: 12.5px; text-align: left; min-height: 38px; }
.vl-peek svg { flex: none; border-radius: 50%; }
.vl-peek b { flex: none; color: var(--ink); font-weight: 600; }
.vl-peek span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vl-thread { margin: 4px 0 2px; padding: 4px 0 0 14px; border-left: 1.5px solid var(--line-2); }
.vl-reply { display: flex; gap: 9px; padding: 7px 0; }
.vl-reply.pending { opacity: .6; }
.vl-reply-av { flex: none; width: 30px; height: 30px; padding: 0; border: 0; background: none; }
.vl-reply-av svg { border-radius: 50%; }
.vl-reply > div { flex: 1; min-width: 0; }
.vl-reply-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); }
.vl-reply-h b { font-size: 13px; color: var(--ink); font-weight: 600; }
.vl-reply p { margin: 1px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.vl-x { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--faint); }
.vl-x .vl-ic { width: 14px; height: 14px; }

.vl-replybox { display: flex; gap: 6px; align-items: center; margin: 6px 0 4px; }
.vl-rin { flex: 1; min-width: 0; min-height: 44px; border-radius: 99px !important; padding: 9px 15px !important; }
.vl-rsend { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: var(--life); color: #10210a; }
.vl-rsend:active { transform: scale(.9); }
.vl-rsend .vl-ic { width: 18px; height: 18px; }

.vl-empty { text-align: center; padding: 34px 20px; color: var(--faint); font-size: 14px; }
.vl-empty p { margin: 0; }

/* ─── motion ───────────────────────────────────────────────────── */

.vl-rise { animation: vl-rise var(--dur-slow) var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes vl-rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* A post that arrives while you are looking drops in with a warm flash,
   so other people's words feel like arrivals rather than a list reload. */
.vl-arrive { animation: vl-arrive .7s var(--spring) both; }
.vl-arrive::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--k), 0 0 26px -4px var(--k); opacity: 0;
  animation: vl-flash 1.8s var(--ease) .15s both;
}
@keyframes vl-arrive { from { opacity: 0; transform: translate3d(0, -12px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes vl-flash { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: 0; } }

.vl-nudge { animation: vl-nudge .4s var(--ease); }
@keyframes vl-nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ─── Today's cards: check in and talk ─────────────────────────── */

.vl-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px;
  padding-top: 10px; border-top: 1px dashed var(--line); }
.vl-pres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.vl-pbtn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 14px 7px 11px;
  border-radius: 99px; font-size: 13px; font-weight: 600; max-width: 100%;
  border: 1px solid rgba(134,185,111,.45); background: rgba(134,185,111,.10); color: var(--life);
  transition: transform var(--dur-fast) var(--ease);
}
.vl-pbtn .vl-ic { width: 15px; height: 15px; }
.vl-pbtn.in .vl-ic { fill: currentColor; }
.vl-pbtn:active { transform: scale(.95); }
.vl-pbtn.out { color: #10210a; background: var(--life); border-color: var(--life); }
.vl-pbtn.switch { color: var(--solar); border-color: rgba(227,169,92,.42); background: rgba(227,169,92,.08); font-weight: 540;
  text-align: left; line-height: 1.3; }
.vl-pres-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 620;
  color: var(--life); font-variant-numeric: tabular-nums; }
.vl-pres-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--life); position: relative; }
.vl-pres-live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--life);
  animation: vl-ping 1.8s var(--ease) infinite; }
.vl-pres-others { display: inline-flex; align-items: center; font-size: 12px; color: var(--dim); gap: 0; }
.vl-pres-others > span:last-child { margin-left: 12px; }
.vl-stack { width: 24px; height: 24px; margin-right: -7px; line-height: 0; }
.vl-stack svg { border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
.vl-talk {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 13px;
  border-radius: 99px; font-size: 13px; color: var(--dim); border: 1px solid var(--line); background: var(--panel-2);
}
.vl-talk .vl-ic { width: 16px; height: 16px; color: var(--k-proposal, #9fd8ff); }
.vl-talk:active { transform: scale(.95); }

.card.vl-glow { animation: vl-glow 1.6s var(--ease); }
@keyframes vl-glow { 0% { box-shadow: 0 0 0 0 rgba(233,196,106,0); } 25% { box-shadow: 0 0 0 3px rgba(233,196,106,.55); } 100% { box-shadow: 0 0 0 0 rgba(233,196,106,0); } }

/* ─── the talk sheet ───────────────────────────────────────────── */

.vl-sheet-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--faint); }
.vl-sheet-eyebrow .vl-ic { width: 14px; height: 14px; color: var(--life); }
.vl-sheet h2 { margin: 5px 0 0; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.1; }
.vl-sheet-pres { margin-top: 10px; }
.vl-sheet .vl-compose { margin: 14px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vl-sheet .vl-post { background: var(--panel); }

/* ─── a person ─────────────────────────────────────────────────── */

.vl-person { text-align: center; padding-bottom: 6px; }
.vl-person-av { width: 168px; height: 168px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--tc, var(--life)) 22%, transparent), transparent 70%); }
.vl-person h2 { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 30px; margin: 0; }
.vl-you { font-family: -apple-system, system-ui, sans-serif; font-style: normal; font-size: 11px; vertical-align: middle;
  padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--dim); }
.vl-teamchip { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--tc); }
.vl-teamchip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.vl-bio { margin: 10px auto 0; max-width: 30ch; color: var(--parchment); font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 18px; }
.vl-person-now { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.vl-person-said { text-align: left; margin-top: 16px; }
.vl-person-said h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 6px; font-weight: 640; }
.vl-person-said p { margin: 0 0 10px; padding: 8px 11px; border-radius: 10px; background: var(--panel); font-size: 14px; line-height: 1.45; }
.vl-kind-mini { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; font-size: 11px; font-weight: 640; color: var(--k); }
.vl-kind-mini .vl-ic { width: 12px; height: 12px; }
.vl-person .vl-row { justify-content: center; }
.vl-init { display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--dim); font-weight: 640; }

/* ══════════════════════════════════════════════════════════════════
   the avatar editor (av-)
   ══════════════════════════════════════════════════════════════════ */

.av-svg { display: block; overflow: visible; }
.av-ed { padding-bottom: 6px; }
.av-stage {
  position: relative; height: 222px; margin: 0 -16px; overflow: hidden;
  display: grid; place-items: end center;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(233,196,106,.16), transparent 70%),
    linear-gradient(180deg, #1c2a33 0%, #24302a 58%, #2c3a24 58.2%, #26331f 100%);
}
.av-stage::before { /* distant hills */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 38%; height: 70px;
  background: radial-gradient(60% 100% at 30% 100%, #2f4a33 60%, transparent 61%),
              radial-gradient(50% 90% at 78% 100%, #33503a 60%, transparent 61%);
  opacity: .8;
}
.av-stage::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .2; mix-blend-mode: overlay; pointer-events: none; }
.av-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: repeating-linear-gradient(100deg, rgba(134,185,111,.12) 0 3px, transparent 3px 11px); }
.av-hero { position: relative; z-index: 1; width: 200px; height: 200px; margin-bottom: 6px; }
.av-hero.av-pop { animation: av-pop .42s var(--spring); }
@keyframes av-pop { 0% { transform: scale(.94) translateY(4px); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.av-hero .av-bob { animation: av-bob 3.4s ease-in-out infinite; transform-origin: 84px 150px; }
.av-hero .av-pet { animation: av-bob 2.6s ease-in-out infinite .4s; transform-origin: 30px 150px; }
.av-hero .av-wag { animation: av-wag .9s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
.av-hero .av-hover { animation: av-hover 2.2s ease-in-out infinite; }
@keyframes av-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes av-wag { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes av-hover { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -4px); } }

.av-dice {
  position: absolute; z-index: 2; right: 14px; top: 12px; display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 7px 14px 7px 10px; border-radius: 99px; font-size: 13px; font-weight: 620;
  color: #1b1206; background: linear-gradient(180deg, #ffdd97, var(--gold)); border: 0;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.7);
}
.av-dice svg { width: 18px; height: 18px; }
.av-dice:active { transform: scale(.94) rotate(-4deg); }

.av-name { text-align: center; margin: 12px 0 0 !important; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 28px !important; }
.av-sub { text-align: center; margin: 2px 0 8px; font-size: 13px; color: var(--dim); }

.av-row { margin-top: 10px; }
.av-rowhead {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 4px 0;
  border: 0; background: none; color: var(--ink); text-align: left;
}
.av-rowhead b { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 640; color: var(--faint); }
.av-val { font-size: 13px; color: var(--dim); }
.av-next { width: 16px; height: 16px; margin-left: auto; color: var(--faint); }
.av-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 3px 16px 6px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.av-strip::-webkit-scrollbar { display: none; }
.av-opt {
  flex: none; scroll-snap-align: center; position: relative; padding: 0; color: var(--dim);
  border: 1.5px solid var(--line); background: var(--panel); border-radius: 14px;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.av-opt:active { transform: scale(.92); }
.av-opt[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233,196,106,.18); color: var(--ink); }
.av-opt.av-shape { width: 76px; padding: 5px 0 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.av-opt.av-shape svg { width: 56px; height: 56px; }
.av-opt.av-shape span { font-size: 11px; line-height: 1.2; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-opt .av-crop { background: radial-gradient(circle at 50% 60%, rgba(244,239,229,.06), transparent 70%); border-radius: 12px; }
.av-opt.av-swatch, .av-opt.av-skin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.av-sw { width: 32px; height: 32px; border-radius: 50%; display: block; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.25); }

.av-lbl { display: block; margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 640; color: var(--faint); }
.av-bio, .av-lang { min-height: 44px; }

.av-share { margin-top: 16px; padding: 12px 13px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.av-share p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.av-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.av-switch b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.av-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-switch i { flex: none; position: relative; width: 48px; height: 28px; border-radius: 99px;
  background: var(--line-2); transition: background var(--dur) var(--ease); }
.av-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 2px 4px rgba(0,0,0,.4); transition: transform var(--dur) var(--spring); }
.av-switch input:checked + i { background: var(--life); }
.av-switch input:checked + i::after { transform: translateX(20px); }
.av-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(134,185,111,.35); }

.av-actions { position: sticky; bottom: calc(-20px - var(--safe-b)); display: flex; justify-content: flex-end; gap: 8px;
  margin: 16px -16px 0; padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, transparent, var(--bg-2) 30%); }
.av-actions .btn { min-height: 46px; padding: 10px 22px; border-radius: 99px; }

/* The crew row's initial, replaced by the person. */
.hand .av.av-face { background: none; border: 0; overflow: hidden; padding: 0; }
.hand .av.av-face svg { width: 34px; height: 34px; }

/* ─── reduced motion ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .vl-livedot.on::after, .vl-pal.busy .vl-pal-av::after, .vl-pres-live i::after,
  .vl-rise, .vl-arrive, .vl-arrive::after, .vl-vote.vl-bounce .vl-ic, .vl-nudge, .card.vl-glow,
  .av-hero.av-pop, .av-hero .av-bob, .av-hero .av-pet, .av-hero .av-wag, .av-hero .av-hover { animation: none !important; }
  .vl-arrive::after { opacity: 0; }
}
