/* SwingerLife: the live map at /nearby. Always dark, so the map and the photos carry the colour. */
:root {
  color-scheme: dark;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #0B0D10; --bg: #0E1114; --panel: #121519; --surface: #1A1D21; --surface-2: #22262B;
  --line: #2A2D31; --line-2: #3A3E43;
  --text: #D7DADC; --text-strong: #F1F2F3; --muted: #A3A7AB; --faint: #818384;
  --pink: #D4145A; --pink-press: #B80F4D; --pink-text: #FF6FA4;
  --gold: #E3C38A; --gold-ink: #14110A;
  --idle: #4A4F56;
  --chrome: rgba(12, 14, 17, .86);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.nb { background: var(--bg); color: var(--text); font: 15px/1.45 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
a { color: var(--pink-text); }
:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 2px; }

/* map */
#map { position: fixed; inset: 0; background: var(--ink); }
.leaflet-container { background: var(--ink); font: inherit; }
.leaflet-control-attribution { background: rgba(0, 0, 0, .6) !important; color: #9AA0A6 !important; font-size: 10px !important; line-height: 1.5 !important; padding: 0 6px !important; border-radius: 6px 0 0 0; }
.leaflet-control-attribution a { color: #C8CCD0 !important; }
.leaflet-marker-icon.nb-icon { background: none; border: 0; }
.leaflet-marker-icon.nb-icon:focus-visible { outline: none; }
.leaflet-marker-icon.nb-icon:focus-visible .ring { box-shadow: 0 0 0 3px #fff; }
.nb-progress { position: fixed; top: 0; left: 0; z-index: 1400; height: 2px; width: 0; background: var(--pink-text); opacity: 0; transition: width .5s ease, opacity .3s; pointer-events: none; }
.nb-progress.on { width: 70%; opacity: 1; }

/* pins: a photo in a ring; the ring says who's around (pink: online now, gold: can host now) */
.nb-pin { position: relative; width: 56px; height: 56px; cursor: pointer; transition: transform .12s ease; }
.nb-pin:hover { transform: scale(1.06); }
.nb-pin .ring { position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: var(--idle); box-shadow: 0 6px 16px rgba(0, 0, 0, .55); }
.nb-pin.online .ring { background: var(--pink); }
.nb-pin.host .ring { background: var(--gold); }
.face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 2px solid var(--ink); }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face img.blur { filter: blur(4px) saturate(1.15); transform: scale(1.25); }
.ini { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(145deg, hsl(var(--h, 330) 55% 42%), hsl(calc(var(--h, 330) + 30) 50% 24%)); color: #fff; font: 800 19px/1 var(--sans); }
.nb-pin .kind { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 2px 6px 1px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line-2); color: var(--text-strong); font: 800 10px/1.25 var(--sans); letter-spacing: .03em; white-space: nowrap; }
.nb-pin .ver { position: absolute; right: -3px; top: -3px; width: 20px; height: 20px; color: var(--gold); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.nb-pin .ver .i { width: 20px; height: 20px; }
.nb-pin .st { position: absolute; left: -5px; top: -5px; width: 23px; height: 23px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; }
.nb-pin .st .i { width: 13px; height: 13px; }
.nb-pin.me .ring { background: #fff; }
.nb-pin.me .you { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); padding: 2px 8px 1px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 10.5px/1.25 var(--sans); white-space: nowrap; }
.nb-pin.me.hidden .face { opacity: .45; }
.nb-pin.me.hidden .you { background: var(--surface-2); color: var(--text-strong); }
.nb-cluster .count { position: absolute; right: -7px; bottom: -5px; min-width: 25px; height: 25px; padding: 0 7px; border-radius: 13px; background: var(--text-strong); color: var(--ink); font: 800 12.5px/25px var(--sans); text-align: center; border: 2px solid var(--ink); }
.nb-cluster.online .count { background: var(--pink); color: #fff; }
.nb-place { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); cursor: pointer; }
.nb-place .i { width: 16px; height: 16px; }
.nb-place.event { border-color: var(--pink-text); color: var(--pink-text); }
.nb-popup .leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.nb-popup .leaflet-popup-tip { background: var(--surface); }
.nb-popup .leaflet-popup-content { margin: 12px 14px; }
.nb-pop { display: grid; gap: 3px; min-width: 160px; }
.nb-pop strong { color: var(--text-strong); font-size: 14.5px; }
.nb-pop span { color: var(--muted); font-size: 13px; }
.nb-pop a { margin-top: 4px; font-weight: 700; font-size: 13.5px; }

/* top bar */
.nb-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 26px; background: linear-gradient(to bottom, rgba(0, 0, 0, .88), rgba(0, 0, 0, .5) 55%, transparent); pointer-events: none; }
.nb-top > * { pointer-events: auto; }
.nb-brand { display: flex; align-items: center; gap: 8px; color: var(--text-strong); text-decoration: none; flex-shrink: 0; }
.nb-brand > svg:first-child { width: 32px; height: 32px; }
.nb-brand .wordmark { display: block; height: 20px; width: auto; aspect-ratio: 1118 / 206; }
.nb-area { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 42vw; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--chrome); border: 1px solid var(--line); color: var(--text-strong); font: 650 14px/1 var(--sans); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nb-area .i { width: 16px; height: 16px; color: var(--pink-text); }
.nb-area span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nb-ibtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--chrome); border: 1px solid var(--line); color: var(--text-strong); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0; }
.nb-ibtn:hover { border-color: var(--line-2); }
.nb-ibtn.flat { background: none; border-color: transparent; backdrop-filter: none; }
.nb-ibtn.flat:hover { background: var(--surface); }
.nb-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--pink); color: #fff; font: 800 11px/19px var(--sans); text-align: center; border: 2px solid var(--ink); }
.nb-me-btn { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line-2); padding: 0; background: var(--surface-2); cursor: pointer; }
.nb-me-btn .face { border: 0; }
.nb-me-btn.online { border-color: var(--pink); }
.nb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 700 15px/1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.nb-btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.nb-btn.primary { background: var(--pink); color: #fff; }
.nb-btn.primary:hover { background: var(--pink-press); }
.nb-btn.ghost { background: var(--chrome); border-color: var(--line-2); color: var(--text-strong); }
.nb-btn.ghost:hover { border-color: var(--text); }
.nb-btn.danger { background: none; border-color: rgba(255, 138, 147, .45); color: #FF8A93; }
.nb-btn.block { width: 100%; }
.nb-btn[disabled] { opacity: .6; cursor: default; }
.nb-btn .i { width: 18px; height: 18px; }

/* side controls */
.nb-controls { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.nb-group { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--chrome); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nb-ctl { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--text-strong); cursor: pointer; padding: 0; }
.nb-ctl + .nb-ctl { border-top: 1px solid var(--line); }
.nb-ctl:hover { background: rgba(255, 255, 255, .06); }
.nb-ctl[aria-pressed="true"] { color: var(--pink-text); }
.nb-ctl[hidden] { display: none; }
.nb-ctl.busy .i { animation: nb-pulse 1s ease-in-out infinite; }
@keyframes nb-pulse { 50% { opacity: .35; } }

/* bottom: hint, recent chats, your status, the visitor's invitation */
.nb-bottom { position: fixed; left: 12px; right: 12px; bottom: calc(22px + var(--safe-b)); z-index: 1000; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; pointer-events: none; }
.nb-bottom > *, .nb-bottom-row > * { pointer-events: auto; }
.nb-bottom-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; pointer-events: none; }
.nb-hint { justify-self: center; display: flex; align-items: center; gap: 12px; max-width: min(520px, 100%); padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(12, 14, 17, .94); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.nb-hint[hidden] { display: none; }
.nb-hint .nb-btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
.nb-strip { flex: 0 1 auto; min-width: 0; display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 999px; background: var(--chrome); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: calc(100vw - 210px); overflow-x: auto; scrollbar-width: none; }
.nb-strip[hidden] { display: none; }
.nb-strip::-webkit-scrollbar { display: none; }
.nb-strip button { position: relative; width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 2px solid var(--idle); background: var(--surface-2); cursor: pointer; flex-shrink: 0; }
.nb-strip button.online { border-color: var(--pink); }
.nb-strip button .face { border-width: 1.5px; }
.nb-strip .dot { position: absolute; right: -2px; top: -2px; width: 13px; height: 13px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); }
.nb-strip .all { display: grid; place-items: center; color: var(--text-strong); border-color: var(--line-2); background: none; }
.nb-pill { margin-left: auto; flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 8px; height: 44px; max-width: 70vw; padding: 0 16px 0 12px; border-radius: 999px; background: var(--chrome); border: 1px solid var(--line); color: var(--text-strong); font: 650 14px/1 var(--sans); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.nb-pill { overflow: hidden; }
.nb-pill > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nb-pill .i { color: var(--gold); width: 18px; height: 18px; }
.nb-pill.cta { background: var(--pink); border-color: var(--pink); color: #fff; }
.nb-pill.cta .i { color: #fff; }
.nb-pill.on { border-color: rgba(227, 195, 138, .55); }
.nb-guest { display: flex; gap: 14px; align-items: center; width: 100%; max-width: 560px; margin: 0 auto; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(12, 14, 17, .95); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.nb-guest-text { flex: 1; min-width: 0; }
.nb-guest h1 { margin: 0 0 2px; font: 750 15.5px/1.3 var(--sans); color: var(--text-strong); }
.nb-guest p { margin: 0; font-size: 14px; color: var(--muted); }

/* the panel: a side sheet on wide screens, a bottom sheet on phones */
.nb-panel { position: fixed; z-index: 1100; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line); box-shadow: -24px 0 48px rgba(0, 0, 0, .45); transform: translateX(105%); transition: transform .22s ease; }
.nb-panel.open { transform: none; }
.nb-panel-head { display: flex; align-items: center; gap: 4px; min-height: 58px; padding: calc(8px + var(--safe-t)) 8px 8px 8px; border-bottom: 1px solid var(--line); }
.nb-panel-head h2 { flex: 1; min-width: 0; margin: 0 0 0 8px; font: 750 17px/1.2 var(--sans); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; }
.nb-panel-head .nb-ibtn[hidden] { display: none; }
.nb-panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.nb-panel-foot { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--panel); }
.nb-panel-foot[hidden] { display: none; }
.foot-row { display: flex; gap: 10px; }
.foot-row .nb-btn { flex: 1; }
@media (min-width: 721px) {
  /* below the top bar, so filters, chats and your menu stay reachable while a profile is open */
  .nb-panel { top: calc(62px + var(--safe-t)); border-top: 1px solid var(--line); border-top-left-radius: 16px; }
}
@media (max-width: 720px) {
  .nb-panel { top: auto; left: 0; width: 100%; height: min(88dvh, 88vh); border-left: 0; border-top: 1px solid var(--line-2); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 48px rgba(0, 0, 0, .5); transform: translateY(105%); }
  .nb-panel.open { transform: none; }
  .nb-panel-head { padding-top: 14px; position: relative; }
  .nb-panel-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
}
@media (prefers-reduced-motion: reduce) { .nb-panel, .nb-pin, .nb-progress { transition: none; } .nb-ctl.busy .i { animation: none; } }

.nb-loading-block { height: 220px; margin: 16px; border-radius: 14px; background: linear-gradient(90deg, var(--surface) 0, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: nb-shimmer 1.2s linear infinite; }
@keyframes nb-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .nb-loading-block { animation: none; } }
.nb-empty { padding: 40px 24px; text-align: center; color: var(--muted); margin: 0; }
.nb-empty strong { display: block; color: var(--text-strong); font-size: 16px; margin-bottom: 4px; }
.nb-empty p { margin: 0; }
.nb-empty.small { padding: 24px 16px; font-size: 14px; }

/* profile */
.pf-photos { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; background: var(--ink); overflow: hidden; }
.pf-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pf-track::-webkit-scrollbar { display: none; }
.pf-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; }
.pf-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-slide img.blur { filter: blur(24px) saturate(1.1); transform: scale(1.2); }
.pf-veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; border: 0; background: rgba(0, 0, 0, .18); color: #fff; font: 650 15px/1.35 var(--sans); text-align: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
button.pf-veil { cursor: pointer; }
.pf-veil .i { width: 26px; height: 26px; }
.pf-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pf-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.pf-dots i.on { background: #fff; }
.pf-arrow { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pf-arrow.prev { left: 10px; } .pf-arrow.next { right: 10px; }
@media (hover: none) { .pf-arrow { display: none; } }
.pf-noimg { display: grid; place-items: center; aspect-ratio: 16 / 10; }
.pf-noimg .ini { font-size: 64px; }
.pf-main { display: grid; gap: 14px; padding: 18px 16px 22px; }
.pf-name { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 23px/1.15 var(--sans); color: var(--text-strong); }
.pf-name .i { width: 22px; height: 22px; color: var(--gold); }
.pf-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.pf-meta .sep { color: var(--faint); }
.pf-online { color: var(--pink-text); font-weight: 650; }
.pf-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(227, 195, 138, .42); background: rgba(227, 195, 138, .07); color: var(--text-strong); }
.pf-status .i { color: var(--gold); margin-top: 1px; }
.pf-status div div { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pf-headline { margin: 0; font: 700 16.5px/1.4 var(--sans); color: var(--text-strong); }
.pf-about { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-sec h3 { margin: 0 0 8px; font: 700 13px/1.2 var(--sans); color: var(--muted); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips span { padding: 7px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text); font: 600 13px/1 var(--sans); }
.pf-guest { padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* chats */
.ch-list { list-style: none; margin: 0; padding: 4px 0 12px; }
.ch-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 16px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.ch-item:hover { background: var(--surface); }
.mini { display: block; width: 50px; height: 50px; border-radius: 50%; padding: 2px; background: var(--idle); flex-shrink: 0; }
.mini.online { background: var(--pink); }
.mini .ini { font-size: 17px; }
.ch-text { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.ch-name { display: flex; justify-content: space-between; gap: 8px; font: 700 15px/1.3 var(--sans); color: var(--text-strong); }
.ch-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-name time { font: 500 12.5px/1.3 var(--sans); color: var(--faint); flex-shrink: 0; }
.ch-row { display: flex; gap: 8px; align-items: center; }
.ch-last { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-item.unread .ch-last { color: var(--text-strong); font-weight: 650; }
.ch-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: #fff; font: 800 11.5px/20px var(--sans); text-align: center; }
.th-head { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; margin-left: 4px; background: none; border: 0; color: inherit; padding: 0; cursor: pointer; text-align: left; }
.th-head .mini { width: 38px; height: 38px; }
.th-head .mini .ini { font-size: 14px; }
.th-who { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.th-who strong { font: 750 16px/1.2 var(--sans); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-who span { font-size: 12.5px; color: var(--faint); }
.th-who span.on { color: var(--pink-text); }
.th-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 8px; }
.th-day { align-self: center; margin: 12px 0 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--faint); font: 650 12px/1.3 var(--sans); }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.theirs { align-self: flex-start; background: var(--surface-2); color: var(--text-strong); border-bottom-left-radius: 6px; }
.msg.mine { align-self: flex-end; background: var(--pink); color: #fff; border-bottom-right-radius: 6px; }
.msg.photo { padding: 0; background: none; border-radius: 14px; overflow: hidden; position: relative; }
.msg.photo img { display: block; max-width: min(250px, 62vw); max-height: 340px; border-radius: 14px; }
.msg.photo .blur { filter: blur(22px); transform: scale(1.1); }
.msg.photo .pf-veil { font-size: 13.5px; padding: 12px; }
.msg.sending { opacity: .6; }
.msg-time { font-size: 11.5px; color: var(--faint); margin: 0 4px 4px; }
.msg-time.mine { align-self: flex-end; }
.th-seen { align-self: flex-end; font-size: 12px; color: var(--faint); margin: 0 4px; }
.th-foot { padding-top: 8px; }
.th-error { margin: 0 0 8px; color: #FF8A93; font-size: 13.5px; }
.th-error[hidden] { display: none; }
.th-compose { display: flex; gap: 8px; align-items: flex-end; }
.th-compose textarea { flex: 1; min-height: 42px; max-height: 132px; resize: none; padding: 10px 14px; border-radius: 21px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text-strong); font: 15px/1.35 var(--sans); }
.th-compose textarea:focus { outline: none; border-color: var(--pink-text); }
.th-compose .nb-ibtn { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; cursor: pointer; }
.th-compose .send { background: var(--pink); border-color: var(--pink); color: #fff; }

/* panel forms: filters, status, report, search */
.pn-sec { padding: 16px; border-bottom: 1px solid var(--line); }
.pn-sec:last-child { border-bottom: 0; }
.pn-sec h3 { margin: 0 0 10px; font: 750 14.5px/1.2 var(--sans); color: var(--text-strong); }
.pn-lede { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.hint { margin: 8px 0 0; color: var(--faint); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--text); font: 650 14px/1 var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--pink-text); background: rgba(212, 20, 90, .22); color: var(--text-strong); }
.tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; cursor: pointer; color: var(--text-strong); }
.tog input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: var(--line-2); position: relative; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.tog input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.tog input:checked { background: var(--pink); }
.tog input:checked::after { transform: translateX(18px); }
.ages { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.ages select { flex: 1; }
.nb-input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text-strong); font: 15px/1.4 var(--sans); }
.nb-input:focus { outline: none; border-color: var(--pink-text); }
textarea.nb-input { min-height: 96px; resize: vertical; }
.nb-label { display: block; margin: 14px 0 6px; font: 650 14px/1.3 var(--sans); color: var(--text-strong); }
.opt-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; color: var(--text-strong); font-weight: 600; }
.opt-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--pink); flex-shrink: 0; }
.opt-row .i { color: var(--gold); }
.opt-row:has(input:checked) { border-color: var(--pink-text); background: rgba(212, 20, 90, .1); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; color: var(--text); font-size: 14.5px; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pink); flex-shrink: 0; }
.form-err { margin: 12px 0 0; color: #FF8A93; font-size: 13.5px; }
.form-err[hidden] { display: none; }
.sr-list { list-style: none; margin: 10px 0 0; padding: 0; }
.sr-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 8px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text-strong); font: 600 15px/1.3 var(--sans); text-align: left; cursor: pointer; }
.sr-item:hover { background: var(--surface); }
.sr-item .i { color: var(--pink-text); }
.confirm-text { margin: 0; color: var(--text); }

/* small pop-up menus, toasts, the location question */
.nb-menu { position: fixed; z-index: 1250; min-width: 230px; padding: 6px; border-radius: 14px; background: #16191D; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.nb-menu a, .nb-menu button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--text-strong); font: 600 15px/1.2 var(--sans); text-decoration: none; text-align: left; cursor: pointer; }
.nb-menu a:hover, .nb-menu button:hover, .nb-menu a:focus-visible, .nb-menu button:focus-visible { background: var(--surface-2); outline: none; }
.nb-menu .i { color: var(--muted); }
.nb-menu .danger { color: #FF8A93; }
.nb-menu .danger .i { color: #FF8A93; }
.nb-toast { position: fixed; left: 50%; top: calc(74px + var(--safe-t)); z-index: 1300; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: var(--text-strong); color: var(--ink); font: 650 14px/1.35 var(--sans); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); text-align: center; }
.nb-toast[hidden] { display: none; }
.nb-modal-back { position: fixed; inset: 0; z-index: 1260; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .6); }
.nb-modal { width: 100%; max-width: 420px; padding: 24px 22px 20px; border-radius: 20px; background: #16191D; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.nb-modal h2 { margin: 0 0 8px; font: 800 21px/1.2 var(--sans); color: var(--text-strong); }
.nb-modal p { margin: 0 0 12px; color: var(--muted); }
.nb-modal ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.nb-modal li { display: flex; gap: 10px; color: var(--text); font-size: 14.5px; }
.nb-modal li .i { color: var(--gold); width: 18px; height: 18px; margin-top: 1px; }
.nb-modal .foot-row { flex-direction: column-reverse; }
@media (min-width: 480px) { .nb-modal .foot-row { flex-direction: row; } }
.nb-noscript { position: fixed; inset: 40% 20px auto; z-index: 2000; padding: 20px; border-radius: 14px; background: var(--surface); text-align: center; }

/* small screens */
@media (max-width: 640px) {
  .nb-brand .wordmark { display: none; }
  .nb-area { max-width: none; flex: 1; margin: 0; }
  .nb-signin { display: none; }
  .nb-guest { flex-direction: column; align-items: stretch; text-align: left; }
  .nb-guest .nb-btn { width: 100%; }
  .nb-strip { max-width: 58%; gap: 6px; padding: 5px; }
  .nb-strip button { width: 40px; height: 40px; }
  .nb-pill .left { display: none; }
}
@media (max-width: 380px) { .nb-pill { padding: 0 12px 0 10px; font-size: 13px; } }
body.panel-open .nb-bottom, body.panel-open .nb-controls { visibility: hidden; }
@media (min-width: 721px) { body.panel-open .nb-controls { visibility: visible; right: 432px; } body.panel-open .nb-bottom { visibility: visible; right: 432px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-height: 520px) { .nb-controls .nb-group:first-child { display: none; } .nb-controls { top: 58%; } }

/* the menu: the rest of SwingerLife (guides, clubs, events), from the left */
.nb-drawer { position: fixed; z-index: 1150; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); box-shadow: 24px 0 48px rgba(0, 0, 0, .45); transform: translateX(-105%); transition: transform .22s ease; }
.nb-drawer.open { transform: none; }
.nb-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(12px + var(--safe-t)) 10px 12px 16px; border-bottom: 1px solid var(--line); }
.nb-drawer-head .wordmark { display: block; }
.nb-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 8px calc(24px + var(--safe-b)); }
.nb-drawer-body h2 { margin: 18px 10px 6px; font: 700 12.5px/1.2 var(--sans); color: var(--faint); }
.nb-dl { list-style: none; margin: 0; padding: 0; }
.nb-dl a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 10px; border-radius: 10px; color: var(--text-strong); font: 600 15px/1.3 var(--sans); text-decoration: none; }
.nb-dl a:hover { background: var(--surface); }
.nb-dl .i { color: var(--muted); }
.nb-dl-cols { display: grid; grid-template-columns: 1fr 1fr; }
.nb-dl-cols a { font-weight: 500; font-size: 14.5px; color: var(--text); min-height: 38px; }
.nb-drawer-join { margin: 8px 6px 4px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.nb-drawer-join p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.nb-drawer-back { position: fixed; inset: 0; z-index: 1140; background: rgba(0, 0, 0, .5); }
.nb-drawer-back[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .nb-drawer { transition: none; } }
@media (max-width: 640px) { .nb-top .nb-brand > svg:first-child { display: none; } }
