/* Fastbreak feel lab, Community > Map. Uses the lab's tokens from lab.css (:root), its .av pictures and .btn.
   The map is a globe of white paper land on soft green-grey water, floating on a pale green table with a faint dot grid;
   everything you point at lifts and glows spark green. MapLibre draws the land; we draw the people on top. */

.fm { --fm-h: clamp(540px, calc(100vh - 230px), 660px); margin-top: 26px; position: relative; color: var(--ink); }

/* ---------- the bar: search, near you, filters ---------- */
.fm-bar { position: relative; z-index: 30; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.fm-search { position: relative; flex: 0 1 330px; min-width: 240px; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-radius: 99px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--lift-1); transition: box-shadow 500ms var(--glide); }
.fm-search:focus-within { box-shadow: inset 0 0 0 1.5px rgba(11,122,83,.45), 0 0 0 5px rgba(11,122,83,.10), var(--lift-2); }
.fm-search > svg.i { width: 18px; height: 18px; color: var(--muted); }
.fm-q { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; }
.fm-q::placeholder { color: var(--muted); }
.fm-q::-webkit-search-cancel-button { display: none; }
.fm-qx { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background-color 400ms var(--glide), color 400ms var(--glide); }
.fm-qx:hover { background: rgba(10,18,15,.06); color: var(--ink); }
.fm-qx svg.i { width: 15px; height: 15px; stroke-width: 2.2; }

.fm-sug { position: absolute; left: 0; top: calc(100% + 8px); width: max(100%, 380px); padding: 6px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--lift-3);
  animation: fm-drop 220ms cubic-bezier(.23, 1, .32, 1) both; }
.fm-s { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; text-align: left; transition: background-color 300ms var(--glide); }
.fm-s.on { background: var(--ground); }
.fm-s-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,122,83,.08); color: var(--green); flex: none; }
.fm-s-ic svg.i { width: 17px; height: 17px; }
.fm-s .av.fm-sav { width: 34px; height: 34px; font-size: 11px; }
.fm-s-t { flex: 1; min-width: 0; }
.fm-s-t b { display: block; font: 600 14.5px/1.25 var(--ui); letter-spacing: -.02em; }
.fm-s-t span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-s-n { font: 500 12px/1 var(--ui); color: var(--green); white-space: nowrap; }
.fm-s-none { padding: 14px 14px 16px; font-size: 14px; color: var(--ink-2); }

.fm-chipbtn { position: relative; height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 520; color: var(--ink-2);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--lift-1); white-space: nowrap; translate: 0 0;
  transition: box-shadow 500ms var(--glide), background-color 500ms var(--glide), color 500ms var(--glide), translate 600ms var(--glide), scale 260ms var(--glide); }
.fm-chipbtn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10,18,15,.12), var(--lift-2); translate: 0 -1px; }
.fm-chipbtn:active { scale: .96; transition-duration: 80ms; }
.fm-chipbtn svg.i { width: 16px; height: 16px; stroke-width: 1.9; }
.fm-chipbtn .fm-dn { width: 14px; height: 14px; margin-right: -3px; transition: transform 500ms var(--glide); }
.fm-chipbtn[aria-expanded="true"] .fm-dn { transform: rotate(180deg); }
.fm-chipbtn .fm-n:empty { display: none; }
.fm-chipbtn .fm-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font: 650 11.5px/1 var(--ui); background: var(--green); color: #fff; }
.fm-chipbtn.set { color: var(--green); background: #F2FAF6; box-shadow: inset 0 0 0 1.5px rgba(11,122,83,.28), var(--lift-1); }
.fm-chipbtn[aria-pressed="true"] { color: #F3FFF9; background: linear-gradient(180deg, #11603F, var(--forest) 60%, #073826); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 22px -12px rgba(10,74,51,.9); }
.fm-chipbtn[aria-pressed="true"] .fm-n { background: rgba(255,255,255,.2); }
.fm-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.fm-reset { height: 40px; padding: 0 12px; border-radius: 99px; font-size: 14px; color: var(--muted); transition: color 400ms var(--glide), background-color 400ms var(--glide); }
.fm-reset:hover { color: var(--ink); background: rgba(10,18,15,.04); }
.fm-count { margin-left: auto; font: 500 13px/1 var(--ui); color: var(--muted); white-space: nowrap; }

.fm-pop { position: absolute; top: 52px; width: 448px; padding: 16px; border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--lift-3); }
.fm-pop.in { animation: fm-drop 240ms cubic-bezier(.23, 1, .32, 1) both; }
.fm-pop-h { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
.fm-pop-h b { font: 600 15px/1 var(--ui); letter-spacing: -.02em; }
.fm-pop-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fm-opt.fm-all { grid-column: 1 / -1; font-weight: 560; }
.fm-opt { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 14px; font-size: 13.5px; text-align: left; color: var(--ink-2);
  background: var(--ground); transition: background-color 400ms var(--glide), color 400ms var(--glide), box-shadow 400ms var(--glide), scale 240ms var(--glide); }
.fm-opt span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-opt b { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.fm-opt:hover { background: #EEF3F0; color: var(--ink); }
.fm-opt:active { scale: .97; transition-duration: 80ms; }
.fm-opt[aria-pressed="true"] { background: rgba(11,122,83,.10); color: var(--green); box-shadow: inset 0 0 0 1.5px rgba(11,122,83,.35); }
.fm-opt[aria-pressed="true"] b { color: var(--green); }
.fm-pdot { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 22%, transparent); flex: none; }
.fm-pop-f { margin: 12px 4px 0; font-size: 12.5px; color: var(--muted); }

/* ---------- the map and the list ---------- */
.fm-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; height: var(--fm-h); }
.fm-stage { position: relative; overflow: hidden; border-radius: 30px; isolation: isolate; user-select: none; -webkit-user-select: none;
  background: radial-gradient(rgba(10,74,51,.13) 1px, transparent 1.4px) 0 0 / 22px 22px, radial-gradient(80% 70% at 50% 40%, #F7FAF8 0%, #EDF3EF 60%, #E4EDE8 100%);
  box-shadow: inset 0 0 0 1px rgba(10,18,15,.06), var(--lift-2); }
.fm-stage > .fm-gl { position: absolute; inset: 0; z-index: 0; }
.fm-gl .maplibregl-canvas { outline: none; }
/* the map takes the keyboard on its canvas, so the ring goes round the whole map then */
.fm-stage:has(.maplibregl-canvas:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.fm-gl .maplibregl-canvas-container.maplibregl-interactive { cursor: grab; }
.fm-stage.pointing .maplibregl-canvas-container.maplibregl-interactive { cursor: pointer; }
.fm-stage.grabbing .maplibregl-canvas-container.maplibregl-interactive { cursor: grabbing; }
.fm-gl .maplibregl-ctrl-bottom-right { right: 70px; }
.fm-gl .maplibregl-ctrl-attrib { font: 400 10.5px/1.4 var(--ui); background: rgba(255,255,255,.72); color: var(--muted); border-radius: 99px; }
.fm-gl .maplibregl-ctrl-attrib a { color: var(--ink-2); }
.fm-gl .maplibregl-ctrl-attrib.maplibregl-compact { margin: 0 0 16px 10px; }
.fm-stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
  box-shadow: inset 0 0 60px rgba(6,43,29,.06), inset 0 1px 0 rgba(255,255,255,.9); }
.fm-stage:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.fm-stage.pointing { cursor: pointer; }
.fm-stage.grabbing { cursor: grabbing; }
.fm-fx { position: absolute; left: 0; top: 0; }
.fm-fx { z-index: 1; pointer-events: none; }
.fm-marks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* a member: their picture in a white ring; small and plain when far out, the initials once you're close */
.fm-m, .fm-c, .fm-you { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; }
.fm-m-in { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; display: block;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(6,43,29,.35); transition: box-shadow 500ms var(--glide); }
.fm-m .av.fm-av { width: 40px; height: 40px; font-size: 13px; color: transparent; transition: color 500ms var(--glide); }
.fm-m.big .av.fm-av { color: #fff; }
.fm-m.hot .fm-m-in { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(62,224,166,.55), 0 10px 22px -6px rgba(6,43,29,.45); }
.fm-on { position: absolute; right: -1px; top: -1px; width: 12px; height: 12px; border-radius: 50%; background: #22C57F; box-shadow: 0 0 0 2.5px #fff; }
.fm:not(.fm-calm) .fm-m .fm-on::after, .fm:not(.fm-calm) .fm-c .fm-on::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #22C57F; animation: fm-ping 2.4s var(--soft) infinite; }

/* people close together: a white disc holding one little dot per person, in their own color, with how many are here on
   a green tag (23 people are 23 dots) */
.fm-c-in { position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 18%, #FFFFFF, #F1F7F4);
  box-shadow: 0 0 0 2px rgba(11,122,83,.55), 0 0 0 7px rgba(62,224,166,.18), 0 12px 24px -8px rgba(6,43,29,.5); transition: box-shadow 500ms var(--glide); }
.fm-cd { position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.5), rgba(255,255,255,0) 58%), var(--c);
  box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 1px 2px rgba(6,43,29,.25); }
.fm-c-n { position: absolute; transform: translate(-50%, -50%); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  font: 700 12px/1 var(--ui); letter-spacing: -.02em; color: #F3FFF9; background: linear-gradient(180deg, #11905F, var(--green) 55%, #075C3E); box-shadow: 0 0 0 2.5px #fff, 0 4px 10px -3px rgba(6,43,29,.5); }
.fm-c.hot .fm-c-in { box-shadow: 0 0 0 2px var(--green), 0 0 0 10px rgba(62,224,166,.32), 0 16px 30px -8px rgba(6,43,29,.55); }

/* you: a green ring that breathes, and a small label */
.fm-you .av.fm-av { position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; font-size: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--green), 0 10px 20px -6px rgba(6,43,29,.5); }
.fm-you-ring { position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(11,122,83,.5); }
.fm:not(.fm-calm) .fm-you-ring { animation: fm-breathe 2.8s var(--soft) infinite; }
.fm-you-l { position: absolute; left: 0; top: 26px; transform: translateX(-50%); padding: 4px 9px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 11px/1 var(--ui); letter-spacing: .01em; white-space: nowrap; }

/* the hover name tag */
.fm-tip { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; opacity: 0; transition: opacity 260ms var(--glide); }
.fm-tip > * { display: block; white-space: nowrap; }
.fm-tip { padding: 8px 12px 9px; border-radius: 14px; background: rgba(10,18,15,.92); color: #fff; translate: -50% -100%; box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); }
.fm-tip b { font: 600 13px/1.2 var(--ui); letter-spacing: -.01em; }
.fm-tip span { font-size: 11.5px; color: rgba(255,255,255,.66); margin-top: 1px; }
.fm-tip i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--spark); margin-top: 3px; }
.fm-tip.in { opacity: 1; }
.fm-tip em.fm-tip-on { font: inherit; font-weight: 600; letter-spacing: inherit; padding: 0; color: #6FE7B5; }

/* the member card */
.fm-card { position: absolute; left: 0; top: 0; z-index: 10; width: 316px; padding: 18px 18px 14px; border-radius: 26px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(10,18,15,.05), var(--lift-3); transition: opacity 260ms var(--glide); }
.fm-card.in { animation: fm-card 560ms var(--glide) both; }
.fm-card[data-side="down"].in { animation-name: fm-card-d; }
.fm-card.off { opacity: 0; pointer-events: none; }
.fm-card-tail { position: absolute; left: var(--tail, 50%); bottom: -7px; width: 16px; height: 16px; margin-left: -8px; background: #fff; transform: rotate(45deg); border-radius: 3px;
  box-shadow: 4px 4px 8px -4px rgba(6,43,29,.18); }
.fm-card[data-side="down"] .fm-card-tail { bottom: auto; top: -7px; box-shadow: -2px -2px 4px -2px rgba(6,43,29,.08); }
.fm-card-x { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background-color 400ms var(--glide), color 400ms var(--glide); }
.fm-card-x:hover { background: rgba(10,18,15,.05); color: var(--ink); }
.fm-card-x svg.i { width: 16px; height: 16px; }
.fm-card-top { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.fm-card .av.fm-cav { width: 52px; height: 52px; font-size: 16px; position: relative; }
.fm-card-n { display: flex; align-items: center; gap: 7px; font: 650 17px/1.2 var(--ui); letter-spacing: -.03em; }
.fm-card-n .fm-on { position: static; width: 9px; height: 9px; box-shadow: 0 0 0 3px rgba(34,197,127,.18); }
.fm-card-r { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; line-height: 1.3; }
.fm-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.fm-card-meta span:first-child { display: inline-flex; align-items: center; gap: 5px; font-weight: 520; }
.fm-card-meta svg.i { width: 15px; height: 15px; color: var(--green); }
.fm-dim { color: var(--muted); }
.fm-card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.fm-trade, .fm-plug { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font: 520 11.5px/1 var(--ui); white-space: nowrap; }
.fm-trade { background: var(--ink); color: #fff; }
.fm-plug { background: color-mix(in srgb, var(--pc) 12%, #fff); color: color-mix(in srgb, var(--pc) 55%, #0A120F); }
.fm-plug i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.fm-card-int { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.fm-card-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.fm-card-act .btn { width: 100%; padding: 0 12px; }
.fm-card-act .btn svg.i { width: 17px; height: 17px; }
.fm-card-p { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; height: 34px; border-radius: 99px; font-size: 13.5px; font-weight: 550; color: var(--green);
  transition: background-color 400ms var(--glide); }
.fm-card-p:hover { background: rgba(11,122,83,.06); }
.fm-card-p svg.i { width: 16px; height: 16px; transition: transform 600ms var(--glide); }
.fm-card-p:hover svg.i { transform: translateX(3px); }

/* the corners: where you're looking, the key, the zoom buttons, the scroll hint */
.fm-place { position: absolute; left: 16px; top: 16px; z-index: 6; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 11px; border-radius: 18px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line), var(--lift-1); opacity: 0; translate: 0 -6px; pointer-events: none; }
.fm-place.in { opacity: 1; translate: 0 0; transition: opacity 600ms var(--glide), translate 700ms var(--glide); }
.fm-place b { font: 650 14px/1.2 var(--ui); letter-spacing: -.02em; }
.fm-place span { font-size: 12px; color: var(--muted); }
.fm-legend { position: absolute; right: 16px; top: 16px; z-index: 6; display: flex; gap: 12px; padding: 8px 12px; border-radius: 99px; font-size: 11.5px; color: var(--ink-2);
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.fm-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg-you { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--green); }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; background: #5B62D9; box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.3); }
.lg-c { position: relative; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(11,122,83,.55); margin-right: 5px; }
.lg-c > i { position: absolute; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px #fff; }
.lg-c > i:nth-child(1) { left: 5.5px; top: 2.5px; background: #E2563A; }
.lg-c > i:nth-child(2) { left: 2.5px; top: 8px; background: #2F86E0; }
.lg-c > i:nth-child(3) { left: 8.5px; top: 8px; background: #C98A12; }
.lg-c > b { position: absolute; right: -8px; top: -5px; min-width: 12px; height: 12px; padding: 0 3px; border-radius: 99px; display: grid; place-items: center; font: 700 8px/1 var(--ui); color: #fff; background: var(--green); box-shadow: 0 0 0 1.5px #fff; }
.fm-zoom { position: absolute; right: 16px; bottom: 16px; z-index: 6; display: flex; flex-direction: column; padding: 4px; gap: 2px; border-radius: 22px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line), var(--lift-2); }
.fm-zoom button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background-color 400ms var(--glide), color 400ms var(--glide), scale 240ms var(--glide); }
.fm-zoom button:hover { background: var(--ground); color: var(--ink); }
.fm-zoom button:active { scale: .9; transition-duration: 80ms; }
.fm-zoom svg.i { width: 18px; height: 18px; stroke-width: 2; }
.fm-north { position: absolute; right: 16px; bottom: 156px; z-index: 6; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--green);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line), var(--lift-2); transition: scale 240ms var(--glide); }
.fm-north[hidden] { display: none; }
.fm-north:active { scale: .9; transition-duration: 80ms; }
.fm-north svg.i { width: 20px; height: 20px; stroke-width: 1.9; }
.fm-fail { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; padding: 24px; color: var(--ink-2); }
.fm-fail[hidden] { display: none; }
.fm-failed .fm-zoom, .fm-failed .fm-legend, .fm-failed .fm-hint, .fm-failed .fm-marks { display: none; }
.fm-fail b { font: 650 17px/1.3 var(--ui); color: var(--ink); }
.fm-fail p { font-size: 14px; margin-top: 6px; }
.fm-hint { position: absolute; left: 50%; bottom: 22px; z-index: 7; translate: -50% 8px; opacity: 0; pointer-events: none; transition: opacity 400ms var(--glide), translate 500ms var(--glide); }
.fm-hint span { display: block; padding: 10px 16px; border-radius: 99px; background: rgba(10,18,15,.88); color: #fff; font-size: 13.5px; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.fm-hint kbd { font: 600 12px/1 var(--ui); padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.16); }
.fm-hint.in { opacity: 1; translate: -50% 0; }

/* the side list */
.fm-side { display: flex; flex-direction: column; min-height: 0; border-radius: 30px; background: #fff; box-shadow: inset 0 0 0 1px rgba(10,18,15,.05), var(--lift-2); overflow: hidden; }
.fm-side-head { padding: 18px 18px 10px; border-bottom: 1px solid var(--line); }
.fm-side-t b { display: block; font: 650 18px/1.2 var(--ui); letter-spacing: -.03em; }
.fm-side-t span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-who { display: flex; align-items: center; gap: 8px; height: 38px; margin-top: 12px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 400ms var(--glide), background-color 400ms var(--glide); cursor: text; }
.fm-who:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(11,122,83,.45), 0 0 0 4px rgba(11,122,83,.10); }
.fm-who > svg.i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.fm-who-q { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 14px; }
.fm-who-q::placeholder { color: var(--muted); }
.fm-who-q::-webkit-search-cancel-button { display: none; }
.fm-who-x { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.fm-who-x[hidden] { display: none; }
.fm-who-x:hover { background: rgba(10,18,15,.06); color: var(--ink); }
.fm-who-x svg.i { width: 14px; height: 14px; stroke-width: 2.2; }
.fm-sort { position: relative; display: flex; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 99px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.fm-sort button { position: relative; z-index: 1; flex: 1 1 auto; height: 32px; padding: 0 8px; border-radius: 99px; font-size: 12.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: color 500ms var(--glide); }
.fm-sort button[aria-selected="true"] { color: var(--ink); }
.fm-sort-hl { position: absolute; left: 0; top: 3px; height: 32px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(10,18,15,.08), 0 4px 10px -4px rgba(10,18,15,.18);
  left: var(--l, 0); right: var(--r, 100%); transition: left var(--tl, 620ms) var(--glide), right var(--tr, 620ms) var(--glide); }
.fm-calm .fm-sort-hl { transition: none; }
.fm-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; } /* the sort tabs' panel */
.fm-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 14px; scrollbar-width: thin; scrollbar-color: rgba(10,18,15,.15) transparent; }
.fm-list.swap > * { animation: fm-swap 640ms var(--glide) both; }
.fm-list.swap > :nth-child(2) { animation-delay: 40ms; } .fm-list.swap > :nth-child(3) { animation-delay: 80ms; } .fm-list.swap > :nth-child(4) { animation-delay: 120ms; }
.fm-list.swap > :nth-child(5) { animation-delay: 160ms; } .fm-list.swap > :nth-child(6) { animation-delay: 200ms; } .fm-list.swap > :nth-child(7) { animation-delay: 240ms; }
.fm-list.swap > :nth-child(n+8) { animation-delay: 280ms; }
.fm-list.out > * { opacity: 0; translate: 0 -4px; transition: opacity 180ms ease, translate 180ms ease; }
/* the section line rides flush under the sort tabs with a solid back, so no names show through above it */
.fm-sec { position: sticky; top: 0; z-index: 3; margin: 0 -10px; padding: 14px 18px 8px; font: 600 11px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: #fff; box-shadow: 0 8px 10px -8px rgba(255,255,255,1); }
.fm-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; text-align: left; translate: 0 0;
  transition: background-color 450ms var(--glide), box-shadow 450ms var(--glide), translate 550ms var(--glide); }
.fm-row:hover, .fm-row:focus-visible { background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); translate: 0 -1px; }
.fm-row.on { background: #F0F8F4; box-shadow: inset 0 0 0 1.5px rgba(11,122,83,.3); }
.fm-calm .fm-row { translate: none !important; }
.fm-row .av.fm-rav { width: 38px; height: 38px; }
.fm-row-t { flex: 1; min-width: 0; }
.fm-row-t b { display: flex; align-items: center; gap: 6px; font: 600 14px/1.25 var(--ui); letter-spacing: -.02em; }
.fm-row-t b .fm-on { position: static; width: 7px; height: 7px; box-shadow: none; }
.fm-row-t > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 500 12px/1 var(--ui); color: var(--ink-2); white-space: nowrap; }
.fm-tag { padding: 3px 7px; border-radius: 99px; background: rgba(11,122,83,.1); color: var(--green); font-size: 10.5px; font-weight: 600; }
.fm-empty { padding: 40px 16px; text-align: center; color: var(--ink-2); }
.fm-empty b { display: block; font: 650 16px/1.3 var(--ui); color: var(--ink); }
.fm-empty p { font-size: 13.5px; margin: 6px 0 16px; }

.fm-note { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-left: 6px; font-size: 13px; color: var(--muted); }
.fm-note svg.i { width: 15px; height: 15px; color: var(--green); }

/* menus grow from their button (the feel kit): from about 90%, quick, no drop */
@keyframes fm-drop { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
.fm-sug, .fm-pop { transform-origin: top left; }
@keyframes fm-card { from { opacity: 0; translate: 0 10px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fm-card-d { from { opacity: 0; translate: 0 -10px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes fm-swap { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes fm-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes fm-breathe { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
.fm-card { transform-origin: var(--tail, 50%) 100%; }
.fm-card[data-side="down"] { transform-origin: var(--tail, 50%) 0; }
.fm-calm .fm-card.in, .fm-calm .fm-pop.in, .fm-calm .fm-sug, .fm-calm .fm-list.swap > * { animation: none; }
.fm-calm .fm-sort-hl { transition: none; }

/* phones come later (laptop first); until then nothing scrolls sideways and the list drops under the map */
@media (max-width: 980px) {
  .fm-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .fm-stage { height: var(--fm-h); }
  .fm-side { max-height: 520px; }
  .fm-count { margin-left: 0; }
  .fm-legend { display: none; }
}
@media (max-width: 720px) {
  .fm-list { scrollbar-width: none; }
  .fm-list { padding-top: 0; }
  .fm-sec { background: #fff; z-index: 3; }
  .fm-section { position: relative; }
  .fm-cd { box-shadow: 0 0 0 .5px rgba(255,255,255,.9), 0 1px 2px rgba(6,43,29,.25); }
  .fm-list::-webkit-scrollbar { display: none; }
  .fm-pop { width: min(448px, calc(100vw - 32px)); left: 0 !important; }
  .fm-sug { width: 100%; }
}

/* On a phone: filters and member cards fit the same margins as the map. */
@media (max-width: 720px) {
  .fm { --fm-h: 460px; }
  .fm-search { min-width: 0; flex-basis: 100%; }
  .fm-pop { top: calc(100% + 8px); width: 100%; max-height: min(480px, 65dvh); overflow: auto; scrollbar-width: none; }
  .fm-pop-g { grid-template-columns: minmax(0, 1fr); }
  .fm-card { width: min(316px, calc(100% - 24px)); }
  .fm-card-meta { flex-wrap: wrap; }
  .fm-note { align-items: flex-start; }
  .fm-note svg.i { flex: none; }
}
