/* ================================================================
   BlackHat Community — design-system port
   navy #1A2070 · blue #5B74F2 · Geist · role-tinted pastel cards ·
   light map, HTML pill pins at zone-percent positions
   ================================================================ */

:root {
  --navy:      #33409e;
  --navy-soft: #414ec0;
  --navy-line: rgba(255,255,255,.14);
  --blue:      #5b74f2;
  --blue-deep: #4f46e5;
  --ink:       #111827;
  --ink-mid:   #6b7280;
  --ink-soft:  #9ca3af;
  --ink-body:  #374151;
  --line:      #e5e7eb;
  --surface:   #ffffff;
  --page:      #f9fafb;
  --green:     #047857;
  --green-dot: #10b981;
  --purple:    #7e22ce;
  --red:       #ef4444;

  --map-bg:    #f4f3ef;
  --map-block: #e9e5dc;
  --map-park:  #e6ebdf;
  --map-label: #b3ac9d;
  --font: "Geist", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --line-soft: #f3f4f6;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-card: 8px;
  --shadow-pin: 0 2px 8px rgba(17,24,39,.16);
  --shadow-badge: 0 2px 10px rgba(17,24,39,.12);
  --shadow-modal: 0 24px 64px rgba(17,24,39,.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--page);
  overflow: hidden;
}

button { font-family: inherit; }

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--surface);
}

/* ================= HEADER BAND ================= */

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
  position: relative;
  z-index: 40;
}

.brand-tile {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub {
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub b { font-weight: 600; color: var(--ink-mid); }

/* One search field — replaces the WHERE/WHEN/WHAT segmented pill */
.searchbar {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-field {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.search-field svg { flex: none; }
.search-field:focus-within { border-color: #c7d2fe; box-shadow: 0 0 0 3px rgba(91,116,242,.12); }
.q-input {
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  padding: 0;
}
.q-input::placeholder { color: var(--ink-soft); opacity: 1; }

/* WHERE / WHEN dropdowns */
.q-drop {
  position: absolute;
  top: calc(100% + 10px);
  min-width: 250px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-modal);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.q-drop[hidden] { display: none; }
#whereDrop { left: 6px; }
.q-drop-when {
  left: 34%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  width: 300px;
  padding: 12px;
}
.q-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  color: var(--ink-body);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}
.q-opt svg { color: var(--ink-soft); flex-shrink: 0; }
.q-opt i { margin-left: auto; font-style: normal; color: var(--ink-soft); font-size: 12px; }
.q-opt:hover { background: var(--page); }
.q-opt.on { background: #eef2ff; color: var(--blue-deep); }
.q-opt.on svg { color: var(--blue-deep); }
.q-day {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-body);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.q-day.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn-join {
  height: 34px;
  flex: none;
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.btn-join:hover { background: var(--blue-deep); }

.me-chip {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef2ff;
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* ================= FILTER ROW ================= */

.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
}
.filterbar::-webkit-scrollbar { display: none; }
.pills { display: contents; }

.pill {
  height: 32px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-body);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.pill:hover { border-color: var(--ink-soft); }
.pill.on,
.pill.ob-on { background: #eef2ff; border-color: #c7d2fe; color: var(--blue-deep); font-weight: 600; }
.pill-filters { padding: 0 10px; }
.f-count {
  background: var(--blue-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 6px;
}

/* ================= SPLIT ================= */

.split {
  display: grid;
  grid-template-columns: minmax(480px, 53%) 1fr;
  flex: 1;
  min-height: 0;
}

/* ---------- directory ---------- */

.directory {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#explorerPane, #eventPane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0 8px 0 24px;
}
#eventPane { overflow-y: auto; padding: 20px 24px 40px; }
#explorerPane[hidden], #eventPane[hidden] { display: none; }

.dir-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0 0;
  flex-shrink: 0;
}
.tabs { display: flex; gap: 26px; }
.tab {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-mid);
  background: none;
  border: none;
  padding: 6px 2px 12px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}
.tab-n { font-weight: 500; color: var(--ink-soft); margin-left: 3px; }
.tab.active { color: var(--ink); border-bottom-color: var(--blue); }

.dir-actions { display: flex; align-items: center; gap: 6px; }
.ic {
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.ic:hover { color: var(--ink); background: var(--page); }
.ic.view.active { color: var(--blue-deep); }
.ic-div { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

.dir-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  padding: 18px 0 4px;
  flex-shrink: 0;
}

.cards {
  overflow-y: auto;
  padding: 16px 16px 32px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  display: grid;
  gap: 26px 22px;
  align-content: start;
}
.cards.grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards.list { grid-template-columns: 1fr; }

/* --- person card --- */

.card { cursor: pointer; }

/* Square covers so photo cards and monogram cards line up in one grid. */
.card-cover {
  position: relative;
  border-radius: var(--r-card);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  transition: box-shadow .18s, transform .18s;
}
.card-cover.has-photo { overflow: hidden; background: var(--page) !important; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-presence {
  position: absolute;
  left: 12px; bottom: 12px;
  width: 16px; height: 16px;
  border-width: 3px;
}
.card:hover .card-cover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17,24,39,.1); }

.card-mono {
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: .01em;
  user-select: none;
  opacity: .55;
}

.card-save {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-badge);
  transition: transform .15s;
}
.card-save:hover { transform: scale(1.1); }

.card-avatar {
  position: absolute;
  left: 24px; bottom: -24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 3.5px solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(17,24,39,.14);
}
.presence {
  position: absolute;
  right: -1px; bottom: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: #d1d5db;
}
.presence.on { background: var(--green-dot); }

.card-body { padding: 32px 4px 0; }
.card-body.tight { padding-top: 12px; }
.card-name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.me-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue-deep);
  background: #eef2ff;
  border-radius: 6px;
  padding: 2px 7px;
}
.card-avail { font-size: 13px; font-weight: 600; color: var(--green); }
.card-role { font-size: 14px; margin-top: 5px; color: var(--ink-mid); }
.card-role b { font-weight: 600; }
.card-zone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-mid);
  margin-top: 7px;
}
.card-zone svg { color: var(--ink-soft); flex-shrink: 0; }
.card-tags { font-size: 13.5px; color: var(--ink-body); font-weight: 500; margin-top: 8px; }

/* --- event card --- */

.ev-card {
  border: 1px solid transparent;
  border-radius: var(--r-card);
  padding: 16px 18px;
  background: var(--page);
  cursor: pointer;
  transition: box-shadow .18s, transform .18s, background .18s;
}
.ev-card:hover {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 10px 26px rgba(17,24,39,.08);
  transform: translateY(-2px);
}
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ev-type {
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid;
  border-radius: 999px;
  padding: 3px 10px;
  text-transform: capitalize;
}
.ev-when { font-size: 12.5px; font-weight: 600; color: var(--ink-mid); }
.ev-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; margin-top: 10px; }
.ev-meta { color: var(--ink-mid); font-size: 13px; margin-top: 4px; }
.ev-zone { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.ev-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.ev-host { font-size: 12.5px; color: var(--ink-soft); }
.ev-going { font-size: 13px; font-weight: 600; color: var(--ink-mid); }
.ev-going.on { color: var(--green); }
.ev-note { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin: 10px 0 0; max-width: 52ch; }
.ev-haslink { font-size: 12.5px; font-weight: 600; color: var(--blue-deep); }
.ev-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-register {
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 12px;
  padding: 12px 22px;
  text-decoration: none;
  transition: filter .15s;
}
.ev-register:hover { filter: brightness(1.08); }

.day-head {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 10px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}
.day-head:first-child { margin-top: 0; }

.empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.empty b { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.empty span { max-width: 42ch; }
.empty-cta {
  margin-top: 6px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.empty-cta:hover { filter: brightness(1.08); }
.clear-link {
  background: none;
  border: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- event detail pane ---------- */

.back-link {
  background: none;
  border: none;
  color: var(--ink-mid);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  align-self: flex-start;
  padding: 4px 0;
}
.back-link:hover { color: var(--ink); }
.ev-head { margin-top: 14px; }
.ev-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; }
.ev-sub { color: var(--ink-mid); font-size: 14px; margin-top: 3px; }
.ev-sub b { color: var(--ink); }
.ev-desc { color: var(--ink-body); font-size: 14.5px; line-height: 1.65; margin: 16px 0; max-width: 60ch; }
.ev-cap { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; font-size: 13px; color: var(--ink-mid); }
.ev-capbar {
  flex: 0 0 180px;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.ev-capbar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.rsvp {
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 26px;
  cursor: pointer;
  align-self: flex-start;
}
.ev-h2 { font-size: 15px; font-weight: 700; margin: 26px 0 10px; }
.ev-attendees { display: flex; flex-direction: column; gap: 4px; }
.att {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  border-radius: 12px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
}
.att:hover { background: var(--page); }
.att-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.att-main { display: flex; flex-direction: column; }
.att-main b { font-size: 14px; font-weight: 600; color: var(--ink); }
.att-main i { font-style: normal; font-size: 12.5px; color: var(--ink-mid); }

/* ---------- map ---------- */

.mapwrap { position: relative; background: var(--map-bg); min-height: 0; overflow: hidden; }
#baseMap { position: absolute; inset: 0; width: 100%; height: 100%; }
.blk { fill: var(--map-block); }
.park { fill: var(--map-park); }
.road { stroke: #fff; fill: none; }
.road-main { stroke-width: 14px; }
.road-cross { stroke-width: 7px; }

.map-labels { position: absolute; inset: 0; pointer-events: none; }
.ml {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 600;
  white-space: nowrap;
}
.ml.zone { font-size: 17px; color: var(--map-label); }
.ml.road { font-size: 12px; font-weight: 500; color: #beb7a8; }
.ml.rot { transform: translate(-50%, -50%) rotate(90deg); }

.map-pins { position: absolute; inset: 0; }
.mpin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-pin);
  transition: transform .12s, box-shadow .12s;
}
.mpin:hover, .mpin.hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 4px 14px rgba(17,24,39,.24);
  z-index: 35 !important;
}
.mpin.sel { background: var(--navy); border-color: var(--navy); }
.mcluster {
  gap: 7px;
  padding: 8px 15px;
  font-size: 14px;
  color: var(--navy);
  z-index: 24;
}
.mcluster i {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-mid);
}
.mdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-dot); flex-shrink: 0; }

.map-badges {
  position: absolute;
  left: 18px; bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 25;
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-badge);
  width: fit-content;
}
.badge-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-people { background: var(--blue); }
.dot-events { background: var(--purple); }
.badge-privacy { color: var(--ink-mid); font-weight: 500; gap: 8px; }

/* ---------- drawer ---------- */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.18);
  z-index: 60;
}
.scrim-dark { background: rgba(17,24,39,.45); }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  background: #fff;
  z-index: 70;
  box-shadow: -12px 0 40px rgba(17,24,39,.14);
  padding: 26px 26px 40px;
  overflow-y: auto;
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }

.dr-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--page);
  color: var(--ink-mid);
  font-size: 14px;
  cursor: pointer;
}
.dr-close:hover { background: var(--line); color: var(--ink); }

.dr-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.dr-bar .eyebrow { margin: 0; }
.dr-bar .dr-close { position: static; margin-left: 4px; }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.dr-bar .card-save { position: static; box-shadow: none; background: none; margin-left: auto; width: 32px; height: 32px; }

.dr-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; }
.dr-av {
  position: relative;
  width: 66px; height: 66px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 21px;
  flex-shrink: 0;
}
.dr-av .presence { right: -3px; bottom: -3px; }
.dr-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.dr-company { color: var(--ink-mid); font-size: 13.5px; margin-top: 3px; }

.dr-badges { display: flex; gap: 8px; margin-bottom: 4px; }
.role-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 6px;
  padding: 4px 9px;
}
.avail-badge { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.dr-sep { height: 1px; background: var(--line); margin: 16px 0; }
.dr-bio { color: var(--ink-body); font-size: 14px; line-height: 1.65; margin: 16px 0; }
.dr-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-mid);
  font-size: 13.5px;
  padding: 7px 0;
}
.dr-link { color: var(--blue-deep); text-decoration: none; font-weight: 600; }
.dr-link:hover { text-decoration: underline; }
.dr-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-body);
  background: #f3f4f6;
  border-radius: 6px;
  padding: 4px 11px;
}
.dr-ev {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 8px;
  text-align: left;
}
.dr-ev:hover { border-color: var(--ink-soft); }
.dr-ev b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dr-ev i { font-style: normal; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }

/* ---------- modals ---------- */

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  padding: 24px 26px;
  z-index: 70;
}
.m-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 6px; }
.m-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; grid-column: 2; text-align: center; }
.m-head .dr-close { position: static; grid-column: 3; }
.m-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.modal h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.m-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.m-avail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 4px;
  cursor: pointer;
}
.m-avail-text { display: flex; flex-direction: column; gap: 1px; }
.m-avail-text b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.m-avail-text i { font-style: normal; font-size: 13px; color: var(--ink-mid); }
.switch {
  width: 40px; height: 22px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background .18s;
  display: inline-block;
}
.switch i {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s;
  box-shadow: 0 1px 3px rgba(17,24,39,.25);
}
.switch.on { background: var(--navy); }
.switch.on i { transform: translateX(18px); }
.m-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* onboarding — one sheet, three required taps */
.modal-ob { width: min(468px, 94vw); border-radius: 24px; padding: 30px 28px 0; }
.ob-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.ob-sub { color: var(--ink-mid); font-size: 14px; line-height: 1.5; margin: 6px 0 22px; max-width: 34ch; }
.modal .ob-h { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 28px 0 14px; }
.ob-field {
  display: block;
  border: 1px solid #dddddd;
  border-radius: 12px;
  padding: 8px 14px 9px;
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}
.ob-field + .ob-field { margin-top: 12px; }
.ob-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ob-field span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-mid); }
.ob-field input, .ob-field select {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  padding: 2px 0 0;
}
.ob-field select { cursor: pointer; appearance: none; }
.ob-field:has(select) {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 12px 8px;
}
.ob-google { display: flex; justify-content: center; margin-bottom: 4px; min-height: 44px; }
.ob-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
}
.ob-or::before, .ob-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.ob-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.ob-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 18px 0 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.ob-more span { text-decoration: underline; }
.ob-chev {
  width: 8px; height: 8px;
  border-right: 1.8px solid var(--ink-mid);
  border-bottom: 1.8px solid var(--ink-mid);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s;
}
.ob-chev.up { transform: translateY(1px) rotate(-135deg); }
.ob-extra { margin-top: 18px; }
/* The join button stays reachable however tall the sheet grows. */
.ob-foot {
  position: sticky;
  bottom: 0;
  margin-top: 26px;
  padding: 14px 0 24px;
  background: #fff;
  box-shadow: 0 -10px 14px -10px rgba(17,24,39,.2);
}
.ob-cta {
  display: block;
  width: 100%;
  padding: 15px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: filter .15s, opacity .15s;
}
.ob-cta:hover:not(:disabled) { filter: brightness(1.08); }
.ob-cta:disabled { opacity: .38; cursor: default; }
.ob-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 12px;
}
.ob-legal { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ink-soft); }
.ob-legal-link {
  font: inherit;
  color: var(--ink-mid);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.ob-l { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-body); margin-bottom: 14px; }
.ob-l input {
  font-family: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}
.ob-l input:focus { border-color: var(--blue); }
.ob-p { color: var(--ink-mid); font-size: 13.5px; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .brand-sub { display: none; } }
.bottom-nav { display: none; }

/* ================= MOBILE (app-native) ================= */
@media (max-width: 900px) {
  .app { height: 100dvh; }

  /* --- compact header: brand + join, full-width search below --- */
  .topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 14px 12px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .topbar-right { gap: 10px; margin-left: auto; }
  .stat { display: none; }
  .query-pill {
    order: 3;
    width: 100%;
    margin: 0;
    height: 44px;
  }
  .qseg:not(.qseg-what) { display: none; }
  .query-pill .q-div { display: none; }
  .qseg-what { flex: 1; min-width: 0; }
  .q-drop { left: 0; right: 0; }

  /* --- filter chips: one-line swipe row --- */
  .filterbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 14px;
  }
  .filterbar::-webkit-scrollbar { display: none; }
  .pills { flex-wrap: nowrap; }
  .pill { white-space: nowrap; flex-shrink: 0; }

  /* --- single-pane views driven by the bottom nav --- */
  .split { display: block; flex: 1; min-height: 0; }
  .directory { height: 100%; }
  body[data-mtab="map"] .directory { display: none; }
  body:not([data-mtab="map"]) .mapwrap { display: none; }
  .mapwrap { height: 100%; }
  #explorerPane { padding: 0 14px; }
  #eventPane { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .dir-toolbar { padding: 10px 0 0; }
  .tabs, .dir-actions .ic, .dir-actions .ic-div { display: none; }
  .dir-actions { margin-left: auto; }
  .dir-actions .btn-add { font-size: 14px; padding: 9px 16px; color: #fff; background: var(--blue); border-color: var(--blue); }
  .dir-title { font-size: 19px; margin: 10px 0 2px; }
  .cards { padding: 14px 0 calc(96px + env(safe-area-inset-bottom)); gap: 10px; }
  .cards.grid, .cards.list { grid-template-columns: 1fr; }

  /* --- person cards become native list rows --- */
  .card {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 44px 12px 12px;
  }
  .card-cover {
    position: static;
    aspect-ratio: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
  }
  .card:hover .card-cover { transform: none; box-shadow: none; }
  .card-mono { display: none; }
  .card-avatar {
    position: relative;
    left: auto;
    bottom: auto;
    width: 54px;
    height: 54px;
    border: none;
    box-shadow: none;
    font-size: 16px;
  }
  .card-save {
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: none;
    box-shadow: none;
  }
  .card-save:hover { transform: translateY(-50%); }
  .card-body { min-width: 0; }
  .card-name, .card-role, .card-zone { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-tags { display: none; }

  /* --- map chrome above the nav --- */
  .map-badges { bottom: calc(78px + env(safe-area-inset-bottom)); }

  /* --- drawer + modals become bottom sheets --- */
  .drawer {
    top: auto;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    max-height: 84dvh;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 48px rgba(17,24,39,.2);
    padding: 26px 18px calc(28px + env(safe-area-inset-bottom));
    animation: sheetUp .24s ease;
  }
  .drawer::before, .modal::before {
    content: "";
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    border-radius: 999px;
    background: var(--line);
  }
  .modal, .modal-ob {
    top: auto;
    left: 0; right: 0; bottom: 0;
    transform: none;
    width: 100%;
    max-height: 90dvh;
    border-radius: 22px 22px 0 0;
    padding: 26px 18px calc(24px + env(safe-area-inset-bottom));
    animation: sheetUp .24s ease;
  }

  /* --- bottom tab bar --- */
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 700;
    padding: 6px 0 4px;
    cursor: pointer;
  }
  .bn-item.on { color: var(--blue-deep); }
}
@keyframes sheetUp { from { transform: translateY(48px); opacity: 0; } }

/* The join sheet's sticky footer owns the safe-area inset itself, so no
   sheet padding is left under it for content to peek through. */
@media (max-width: 900px) {
  .modal-ob { padding-bottom: 0; }
  .ob-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

}

/* ============ presence controls / add-event / privacy ============ */
.btn-add {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.btn-add:hover { border-color: var(--blue); }
.dr-avail { margin: 12px 0 10px; }
.dr-intent {
  font-family: inherit;
  font-size: 13.5px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  margin-bottom: 10px;
}
.dr-intent:focus { border-color: var(--blue); }
.dr-durs { margin-bottom: 14px; }
.dr-ci-h { display: block; margin-top: 14px; margin-bottom: 8px; }
.dr-delete { color: #b91c1c; font-size: 13px; margin-top: 16px; display: block; }
.badge-privacy { cursor: pointer; }
.badge-privacy:hover { text-decoration: underline; }
.pv-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 6px 0 18px; }
.pv-list li { font-size: 13.5px; line-height: 1.6; color: var(--ink-body); }
.pv-list b { color: var(--ink); }
.pv-delete { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ============ map pan + zoom ============ */
.map-stage {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  cursor: grab;
  will-change: transform;
}
.map-stage.dragging { cursor: grabbing; }
.mapwrap { touch-action: none; }
.map-zoom {
  position: absolute;
  right: 16px; bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 26;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-badge);
}
.map-zoom button {
  width: 38px; height: 38px;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.map-zoom button:hover { background: var(--page); }

/* ============ business hall schematic ============ */
.booth-map {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--map-bg);
  padding: 18px 18px 14px;
}
.booth-map-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.booth-map-head b { font-size: 14px; font-weight: 700; }
.booth-map-head span { font-size: 12.5px; color: var(--ink-mid); }
.booth-map-scroll { flex: 1; min-height: 0; display: flex; }
.booth-map svg { flex: 1; min-height: 0; width: 100%; }
.booth-map .brow {
  font-size: 0.7px;
  font-weight: 700;
  fill: var(--map-label);
  text-anchor: end;
  dominant-baseline: middle;
}
.bcell { cursor: pointer; transition: opacity .15s; }
.bcell.off { fill: #cfcabe !important; opacity: .4; }
.bcell.on:hover { opacity: .7; }
.bcell.sel { stroke: #fff; stroke-width: 0.22; }
.bdistrict {
  font-size: 1.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--map-bg);
  stroke-width: 0.7px;
  pointer-events: none;
  text-transform: uppercase;
}
.booth-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-body);
}
.booth-legend span { display: inline-flex; align-items: center; gap: 6px; }
.booth-legend i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.booth-map-note { margin-top: 8px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; }
.booth-card.sel { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(91,116,242,.25); }

/* ============ business hall booths ============ */
.booth-card {
  border: 1px solid transparent;
  border-radius: var(--r-card);
  padding: 16px 18px;
  background: var(--page);
  transition: box-shadow .18s, background .18s, border-color .18s;
}
.booth-card:hover { background: #fff; border-color: var(--line); box-shadow: 0 10px 26px rgba(17,24,39,.08); }
.booth-search {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 15px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  transition: border-color .15s, box-shadow .15s;
}
.booth-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.booth-search input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  border: none;
  outline: none;
  background: none;
}
.booth-search-clear {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
}
.booth-search-clear:hover { color: var(--ink); }

.booth-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
}
.booth-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 5px;
}
.booth-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.booth-top .booth-tier { margin-left: auto; }
.booth-no {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--navy);
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 3px 9px;
}
.booth-tier {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.booth-desc {
  color: var(--ink-mid);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.booth-site {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
}
.booth-site:hover { text-decoration: underline; }

/* ============ connecting: LinkedIn + waves ============ */
.connect-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, border-color .15s, background .15s;
}
.connect-li { flex: 1; background: #0a66c2; color: #fff; }
.connect-li:hover { filter: brightness(1.08); }
.connect-wave { background: var(--navy); color: #fff; }
.connect-wave:hover { filter: brightness(1.12); }
.connect-waved { background: #ecfdf5; color: var(--green); border-color: #a7f3d0; }
.connect-send { background: var(--blue); color: #fff; flex-shrink: 0; }
.wave-compose { display: flex; gap: 8px; margin-top: 10px; }
.wave-compose input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13.5px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}
.wave-compose input:focus { border-color: var(--ink); }
.dr-photo-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0 4px;
}
.dr-photo-cta b { font-size: 14.5px; font-weight: 700; }
.dr-photo-cta span { font-size: 12.5px; line-height: 1.5; color: var(--ink-mid); }
.dr-photo-cta .ob-google { margin-top: 6px; justify-content: flex-start; }
.dr-hint { color: var(--ink-soft); font-size: 13px; line-height: 1.55; margin-top: 10px; }
.dr-hint-warm { color: var(--blue-deep); font-weight: 600; }
.dr-hint-bad { color: #B91C1C; font-weight: 600; }

.inbox-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--navy-line);
  background: var(--navy-soft);
  color: #fff;
  cursor: pointer;
}
.inbox-btn:hover { background: rgba(255,255,255,.16); }
.inbox-n {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}
.wave-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.wave-row:last-child { border-bottom: none; }
.wave-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wave-main b { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wave-main i { font-style: normal; font-size: 12.5px; color: var(--ink-mid); }
.wave-note { font-size: 13px; color: var(--ink-body); margin-top: 4px; }
.wave-match {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 2px 8px;
}
.connect-ghost { background: none; color: var(--ink-mid); border-color: var(--line); }
.connect-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

.inbox-tabs { display: flex; gap: 6px; margin: 18px 0 6px; }
.inbox-tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 4px;
  margin-right: 18px;
  cursor: pointer;
}
.inbox-tab.on { color: var(--ink); border-bottom-color: var(--navy); }
.inbox-tab i {
  font-style: normal;
  font-size: 11px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
}
.wave-row-btn {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.wave-row-btn:hover { background: var(--page); }
.chat-unread {
  font-size: 11px;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-height: 200px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 16px 2px;
}
.chat-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--page);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat-msg.mine {
  align-self: flex-end;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.chat-compose { margin-top: 4px; }

.wave-acts { display: flex; gap: 8px; flex-shrink: 0; }
.wave-acts .connect-btn { padding: 9px 14px; font-size: 13px; }
.wave-acts .connect-li { flex: 0 0 auto; }

/* ============ enriched photo avatars ============ */
.av-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.card-avatar, .dr-av, .att-av { position: relative; overflow: visible; }
.card-avatar .av-img, .dr-av .av-img, .att-av .av-img { border-radius: 50%; }

/* Shrunk to phone width the hall is an unreadable smudge, so give it room
   and let the pane scroll to it. Must sit after the base .booth-map rules
   above, which otherwise win on source order and force it back to 100%. */
@media (max-width: 900px) {
  .booth-map-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
  .booth-map-scroll svg { flex: none; width: 760px; height: 540px; }
}

/* ============ map surface mode toggle (Vegas / Business Hall) ============ */
.map-mode {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-flyout, 0 4px 16px rgba(0,0,0,.08));
}
.map-mode button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  white-space: nowrap;
}
.map-mode button.on { background: #eef2ff; color: var(--blue-deep); font-weight: 600; }

/* ============ google map surface ============ */
.gmap { position: absolute; inset: 0; z-index: 1; }
/* The schematic stays as the fallback until Maps actually loads. */
body.has-gmap .map-stage,
body.has-gmap .map-zoom { display: none; }
body:not(.has-gmap) .gmap { display: none; }
body[data-tab="booths"] .gmap { display: none; }
.gmap-pop { font-family: var(--font); font-size: 13px; line-height: 1.5; }
.gmap-pop b { display: block; font-size: 14px; margin-bottom: 2px; }
.gmap-pop div { color: var(--ink-mid); }
.gmap-pop a { display: inline-block; margin-top: 6px; color: var(--blue-deep); font-weight: 600; text-decoration: none; }
.booth-map { z-index: 5; }

/* ============ 1a cards: booths ============ */
.group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.group-head i { flex: 1; height: 1px; background: var(--line); }
.group-head b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.booth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s;
}
.booth-card:hover { border-color: #c7d2fe; }
/* grid items default to min-width:auto, so a long name widened the track
   and pushed the tier badge off-screen */
.booth-card, .cards > * { min-width: 0; }
.booth-card.sel { border-color: var(--blue-deep); background: #f8f9ff; }
.booth-row { display: flex; gap: 12px; align-items: flex-start; }
.booth-mark {
  width: 36px; height: 36px;
  flex: none;
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: -.02em;
  overflow: hidden;
}
.booth-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.booth-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.booth-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.booth-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booth-no {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--blue-deep);
  background: #eef2ff;
  border-radius: 4px;
  padding: 1px 6px;
}
.booth-cat { font-size: 12px; color: var(--ink-mid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booth-tier {
  flex: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-body);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ============ 2a: floating pill search + roomy divided list ============ */
.searchbar { padding: 14px 16px 12px; border-bottom: 0; gap: 14px; }
.search-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 8px 0 18px;
  border-radius: 30px;
  background: var(--surface);
  border: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
}
.sp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.search-pill .q-input { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.search-pill .q-input::placeholder { color: var(--ink); opacity: 1; font-weight: 600; }
.search-pill .q-input:focus::placeholder { color: var(--ink-soft); }
.sp-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.sp-go {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 22px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 40px pill filters, dark when active */
.pill { height: 40px; border-radius: 20px; padding: 0 16px; font-size: 13px; gap: 7px; }
.pill-filters { padding: 0 16px; }
.pill.on, .pill.ob-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

/* Divided list: no card chrome, hairline between rows */
.group-head {
  display: block;
  padding: 8px 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--ink);
}
.group-head span { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-mid); margin-top: 2px; }

.booth-card {
  background: none;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 18px 0;
}
.booth-card:first-of-type, .group-head + .booth-card { border-top: 0; padding-top: 0; }
.booth-card:hover { border-color: var(--line-soft); }
.booth-card.sel { background: none; border-color: var(--line-soft); }
.booth-card.sel .booth-name { color: var(--blue-deep); }
.booth-row { gap: 14px; }
.booth-mark {
  width: 56px; height: 56px;
  border-radius: 16px;
  border: 0;
  background: var(--page) !important;
  font-size: 18px;
}
.booth-mark img { padding: 10px; background: none; }
.booth-main { gap: 0; }
.booth-head { align-items: flex-start; gap: 10px; }
.booth-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.booth-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: normal;
  overflow: visible;
}
.booth-meta { font-size: 13px; color: var(--ink-mid); margin-top: 2px; }
.booth-desc { font-size: 14px; line-height: 1.5; color: var(--ink-body); margin-top: 8px; }
.booth-site { font-size: 13px; font-weight: 600; color: var(--blue-deep); margin-top: 8px; text-decoration: none; }
.booth-heart {
  flex: none;
  margin-top: 2px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-mid);
  cursor: pointer;
}
.booth-heart.on { color: var(--blue); }

/* Flat tab bar: a hairline, tinted active item, and nothing else. */
.bottom-nav {
  height: auto;
  align-items: stretch;
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 1px solid var(--line-soft);
  padding: 6px 4px calc(4px + env(safe-area-inset-bottom));
}
.bn-item {
  gap: 5px;
  border-radius: 0;
  background: none;
  padding: 8px 0 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-mid);
}
/* The stroke widths sit on the child shapes, so target those too. */
.bn-item svg, .bn-item svg * { stroke-width: 1.5; }
.bn-item.on { background: none; color: var(--blue-deep); font-weight: 600; }
.bn-item.on svg, .bn-item.on svg * { stroke-width: 1.9; }

/* Hall plan above the list on the Booths tab */
.booth-map-inline {
  position: static;
  height: 260px;
  margin: 4px 0 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--page);
}
.booth-map-inline .booth-map-note { display: none; }

/* The pill already names the page, so the old H1 would say it twice. */
.dir-title { display: none; }

/* The inline plan is an overview, not the pannable Map-tab surface. */
.booth-map-inline .booth-map-scroll { overflow: hidden; }
.booth-map-inline .booth-map-scroll svg { flex: 1; width: 100%; height: 100%; }
.booth-map-inline .booth-map-head { margin-bottom: 6px; }
.booth-map-inline .booth-legend { font-size: 10px; gap: 8px 10px; }

/* ============ 3a stepped search sheet ============ */
.ssheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #f5f6f8;
  display: flex;
  flex-direction: column;
}
.ssheet[hidden] { display: none !important; }
.ss-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: calc(18px + env(safe-area-inset-top)) 16px 0;
  position: relative;
}
.ss-tab {
  font-size: 15px;
  color: var(--ink-mid);
  background: none;
  border: 0;
  padding-bottom: 8px;
  cursor: pointer;
}
.ss-tab.on { font-weight: 600; color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.ss-close {
  position: absolute;
  right: 16px;
  top: calc(14px + env(safe-area-inset-top));
  width: 34px; height: 34px;
  border-radius: 17px;
  border: 1px solid #d1d5db;
  background: var(--surface);
  color: var(--ink-body);
  font-size: 14px;
  cursor: pointer;
}
.ss-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px 0; }
.ss-card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  padding: 20px 18px;
  margin-bottom: 12px;
}
.ss-q { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.ss-field {
  height: 48px;
  margin-top: 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.ss-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.ss-field input::placeholder { color: var(--ink-soft); }
.ss-sub { font-size: 13px; color: var(--ink-mid); margin-top: 16px; }
.ss-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.ss-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.ss-ic {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ss-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ss-item-n { font-size: 15px; font-weight: 600; color: var(--ink); }
.ss-item-s { font-size: 13px; color: var(--ink-mid); margin-top: 1px; }
.ss-empty { font-size: 14px; color: var(--ink-mid); padding: 10px 0; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ss-chip {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-body);
  cursor: pointer;
}
.ss-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

.ss-row {
  width: 100%;
  height: 62px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  cursor: pointer;
}
.ss-row-k { font-size: 15px; color: var(--ink-mid); }
.ss-row-v {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px calc(22px + env(safe-area-inset-bottom));
}
.ss-clear {
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
.ss-go {
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 26px;
  background: #1d4ed8;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.ss-more {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  cursor: pointer;
}

/* ============ desktop: keep the divided list a single column ============
   The booth rows are a divided list, not tiles — a multi-column grid broke
   the dividers, stranded the group heading in a cell, and left dead space. */
.cards.grid:has(.booth-card),
.cards.list:has(.booth-card) { grid-template-columns: 1fr; gap: 0; }
.cards:has(.booth-card) { max-width: 720px; }

/* The Map panel already shows the hall plan on desktop, so the inline copy
   would put the same plan on screen twice. */
@media (min-width: 901px) {
  .booth-map-inline { display: none; }
}

/* One quiet swipe row instead of fourteen chips wrapping across the header. */
.filterbar { flex-wrap: nowrap; overflow-x: auto; }
.filterbar .pill { flex: none; }

/* ============ Explore home ============ */
.explore { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0 calc(96px + env(safe-area-inset-bottom)); }
.explore[hidden] { display: none !important; }
.x-row { margin-bottom: 26px; }
.x-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 16px; }
.x-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.x-head p { font-size: 13px; color: var(--ink-mid); margin-top: 2px; }
.x-more {
  width: 30px; height: 30px;
  flex: none;
  border: 0;
  border-radius: 15px;
  background: var(--page);
  color: var(--ink-body);
  font-size: 14px;
  cursor: pointer;
}
.x-scroll {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.x-scroll::-webkit-scrollbar { display: none; }
.x-card { width: 224px; flex: none; cursor: pointer; }
.xc-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 224px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
}
.xc-booth { background: var(--page); border: 1px solid var(--line); }
.xc-logo {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-deep);
}
.xc-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; background: var(--surface); border-radius: 20px; }
.xc-person img { width: 100%; height: 100%; object-fit: cover; }
.xc-initials { font-size: 34px; font-weight: 600; color: #fff; }
.xc-event { flex-direction: column; gap: 6px; }
.xc-type { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.xc-when { font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.x-name { font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.x-meta { font-size: 13px; color: var(--ink-mid); margin-top: 2px; }

/* ============ overflow menu ============ */
.burger {
  width: 34px; height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu {
  position: fixed;
  top: 56px;
  right: 12px;
  z-index: 95;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  padding: 6px;
}
.menu[hidden] { display: none !important; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-body);
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.menu-item:hover { background: var(--page); }
.menu-item i {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-deep);
  background: #eef2ff;
  border-radius: 999px;
  padding: 1px 7px;
}

/* ============ simpler phone chrome ============
   The reference leads with the search, not a brand bar, and the hall plan is
   something you reach for rather than something that buries the list. */
.hall-toggle {
  align-self: flex-start;
  margin: 2px 0 10px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-body);
  cursor: pointer;
}
.hall-toggle.on { background: #eef2ff; border-color: #c7d2fe; color: var(--blue-deep); font-weight: 600; }
.hall-toggle[hidden] { display: none !important; }
.booth-map-inline { height: 300px; }

@media (max-width: 900px) {
  /* One compact row: mark, name, and the two actions — no stat line. */
  .topbar { height: 48px; gap: 8px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .searchbar { padding: 10px 16px 10px; gap: 10px; }
  .search-pill { height: 56px; }
  .filterbar { gap: 8px; }
}

/* ============ side sheet menu ============
   Replaces the floating dropdown: a right-hand sheet that leads with who you
   are, so the first thing in it is identity rather than a list of verbs. */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 95;
  width: min(330px, 86vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: -16px 0 48px rgba(15,23,42,.16);
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.menu[hidden] { display: none !important; }

.menu-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 16px; }
.menu-av {
  position: relative;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
}
.menu-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-who b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.menu-who span { font-size: 13px; color: var(--ink-mid); margin-top: 2px; }
.menu-who-out b { font-size: 15px; }
.menu-x {
  width: 32px; height: 32px;
  flex: none;
  border: 0;
  border-radius: 16px;
  background: var(--page);
  color: var(--ink-mid);
  font-size: 13px;
  cursor: pointer;
}

.menu-join {
  height: 44px;
  margin: 0 4px 14px;
  border: 0;
  border-radius: 22px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  padding: 0 12px;
  border-radius: 12px;
  cursor: pointer;
}
.menu-item svg { flex: none; color: var(--ink-mid); }
.menu-item span { flex: 1; min-width: 0; }
.menu-item:hover { background: var(--page); }
.menu-item:hover svg { color: var(--blue-deep); }
.menu-item i {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 2px 8px;
}

.menu-sep { height: 1px; background: var(--line-soft); margin: 12px 4px; }
.menu-foot {
  margin-top: auto;
  padding: 18px 12px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.menu-foot b { font-weight: 600; color: var(--ink-mid); }

/* The burger picked up the browser's default focus ring. */
.burger:focus-visible,
.menu-item:focus-visible,
.menu-x:focus-visible { outline: 2px solid #c7d2fe; outline-offset: 2px; }
.burger:focus:not(:focus-visible) { outline: none; }

/* ============ header removed: search row carries the actions ============ */
.searchbar { padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }

/* Gradient primary — the one action worth reaching for. */
.btn-join {
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: linear-gradient(100deg, #0f2a6b 0%, #2f5fd0 55%, #7fb0f7 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
  font-size: 14px;
  letter-spacing: -.01em;
}
.btn-join:hover { background: linear-gradient(100deg, #0b2158 0%, #2853bd 55%, #6ba3f5 100%); }

.burger { width: 44px; height: 44px; border-radius: 22px; }
.me-chip { width: 44px; height: 44px; border-radius: 22px; font-size: 14px; }
.inbox-btn { width: 44px; height: 44px; border-radius: 22px; }
/* The row already carries actions, so the pill only needs a leading mark. */
.search-pill { height: 52px; padding: 0 16px; gap: 10px; }
.sp-ic { flex: none; }
.sp-go { display: none; }

/* ============ photo covers ============ */
.xc-event img,
.xc-booth img.xc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xc-event::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.36) 0%, rgba(15,23,42,0) 42%, rgba(15,23,42,.52) 100%);
}
.xc-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #fff;
  border-radius: 12px;
  padding: 5px 10px;
}
.xc-time {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* The side sheet's primary gets the same gradient as the header Join. */
.menu-join {
  background: linear-gradient(100deg, #0f2a6b 0%, #2f5fd0 55%, #7fb0f7 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
}
.menu-credit { display: inline-block; margin-top: 6px; }
.menu-credit a { color: var(--ink-mid); text-decoration: underline; }

/* ============ finding the booth you picked ============ */
.booth-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 8px 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  font-size: 13px;
  color: var(--blue-deep);
}
.booth-pick b { font-weight: 600; }
.booth-pick > span:not(.booth-pick-dot) { color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.booth-pick-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; flex: none; }
.booth-pick-x {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--ink-mid);
  font-size: 12px;
  cursor: pointer;
}
/* A 4px square among 444 is unfindable — ring the picked cell. */
.booth-map .bcell.sel {
  stroke: #ef4444;
  stroke-width: .35;
  paint-order: stroke;
}

/* ============ bottom panel: floating rounded bar ============
   Detached from the screen edge and rounded, so the list scrolls beneath it
   rather than butting into it. */
.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: 64px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
  padding: 0 4px;
  overflow: hidden;
}
.bn-item { padding: 0; gap: 4px; }

/* The bar floats, so the scroll areas need room to clear it. */
@media (max-width: 900px) {
  .cards { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .explore { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  #eventPane { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ============ actions on their own row, Join at top left ============ */
/* Join, search and menu share one row, with Join leading. */
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions .search-pill { flex: 1; min-width: 0; }
.top-actions .btn-join,
.top-actions .me-chip,
.top-actions .burger,
.top-actions .inbox-btn { flex: none; }

/* ============ names-you-know rail ============ */
.notable-rail { margin: 2px 0 20px; }
.notable-rail .x-head h2 { font-size: 17px; }
.nb-card {
  width: 132px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.nb-logo {
  position: relative;
  width: 132px;
  height: 92px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-deep);
  overflow: hidden;
}
.nb-logo img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--surface);
}
/* A 16px favicon blown up to 56px is mush — show it at its own size instead. */
.nb-logo img.crisp,
.booth-mark img.crisp { width: 26px; height: 26px; inset: 0; margin: auto; padding: 0; }
.nb-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.nb-booth { font-size: 12px; color: var(--ink-mid); font-variant-numeric: tabular-nums; }

/* ---------------- outbound gate ---------------- */
/* Narrower than the join sheet on purpose: this is one decision, not a form. */
.gate { max-width: 420px; }
.gate .m-head { margin-bottom: 4px; }
.gate-sub { margin: 4px 0 18px; color: var(--ink-mid); line-height: 1.5; }
.gate-note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.gate .ob-cta { margin-top: 18px; }
.gate-go {
  display: block;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.gate-skip { margin: 16px 0 0; text-align: center; }
.gate-skip a { font-size: 13px; color: var(--ink-soft); text-decoration: underline; }
.gate-skip a:hover { color: var(--ink-mid); }
