/* ============================================================================
   Gyde Web Beta — component styles. Class equivalents of the design reference's
   inline styles, used by the Jinja macros + beta.js render helpers.
   ========================================================================== */

/* ---- Top bar -------------------------------------------------------------- */
.beta-topbar-wrap { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 14px 14px 0; }
.beta-topbar {
  display: flex; align-items: center; justify-content: space-between; padding: 9px 12px 9px 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid var(--hairline-strong); border-radius: 999px; box-shadow: var(--shadow-md);
}
.beta-brand { display: flex; align-items: center; gap: 9px; }
.beta-brand-icon { width: 26px; height: 26px; border-radius: 7px; }
.beta-wordmark { font-family: var(--font-display); font-size: 23px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.beta-pill {
  font-family: var(--font-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-dark); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 6px; margin-top: 1px;
}
.beta-top-actions { display: inline-flex; align-items: center; gap: 8px; }
.beta-help-btn {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  border: 1px solid var(--hairline-strong); background: var(--surface-alt); color: var(--ink-soft);
}
.beta-group-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline-strong); background: var(--surface-alt); color: var(--ink);
}
.beta-group-btn[data-state="in"] { padding: 0 8px 0 12px; border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.beta-group-btn-out { display: inline-flex; align-items: center; gap: 8px; }
.beta-group-btn-out > span { font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.beta-group-btn-in { display: inline-flex; align-items: center; gap: 8px; }
.beta-synced-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.beta-avatar-stack { display: flex; }
.beta-avatar-stack > * + * { margin-left: -8px; }

/* ---- Avatars -------------------------------------------------------------- */
.beta-avatar {
  border-radius: 50%; border: 2px solid #fff; box-shadow: var(--shadow-sm); color: #fff;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.02em; flex: none;
}

/* ---- Category chips ------------------------------------------------------- */
/* Default top keeps the chips clear of the top bar before JS positions them
   (JS bumps this down when a group's synced bar / invite appears). */
.beta-chips-wrap { position: absolute; left: 0; right: 0; top: 74px; z-index: 18; padding: 10px 14px 0; transition: top .18s ease; }
/* Horizontal scroller: trailing pad so the last chip scrolls fully clear, and a
   soft right-edge fade so an off-screen chip reads as "scroll for more" rather
   than an accidental hard clip. */
.beta-chips {
  display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; padding-right: 18px;
  scroll-padding-right: 18px;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.beta-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap;
  border: 1px solid var(--hairline-strong); background: var(--surface-alt); color: var(--ink-soft); box-shadow: var(--shadow-md);
}
.beta-chip.is-on { border-color: var(--chip); background: var(--chip); color: #fff; }

/* ---- Bottom sheet --------------------------------------------------------- */
.beta-sheet-wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; padding: 0 12px 12px; }
.beta-sheet {
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 24px;
  box-shadow: var(--shadow-xl); max-height: 54vh; overflow-y: auto;
}
.beta-sheet-sticky { position: sticky; top: 0; background: var(--surface); padding-top: 10px; z-index: 2; }
.beta-handle { width: 36px; height: 4px; border-radius: 999px; background: var(--hairline-strong); display: block; margin: 0 auto 10px; }
.beta-modeswitch-wrap { padding: 0 14px; }
.beta-modeswitch { display: flex; gap: 5px; padding: 5px; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; }
.beta-mode {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 0; border-radius: 999px;
  border: none; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 13.5px; background: transparent; color: var(--muted);
}
.beta-mode.is-on { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }

.beta-panel { }
.panel-pad { padding: 2px 18px 22px; }

/* ---- Shared rows / pills -------------------------------------------------- */
.beta-cattag { padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; }
.row-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.beta-empty { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 30px 0; color: var(--muted); font-family: var(--font-body); font-size: 14px; text-align: center; }
.utility-detail { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.utility-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.utility-row:last-child { border-bottom: 0; }
.utility-row strong { color: var(--ink); font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.utility-source { padding: 9px 12px 11px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-body); font-size: 12px; }

/* ---- Tour panel ----------------------------------------------------------- */
.beta-search {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px; background: var(--surface-alt);
  border: 1px solid var(--hairline-strong); border-radius: 999px; margin-bottom: 12px;
}
.beta-search input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font-body); font-size: 15px; color: var(--ink); }
.dest-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; background: transparent;
  border: 1px solid var(--hairline); border-radius: var(--radius-md); cursor: pointer; text-align: left; width: 100%;
}
.dest-name { display: block; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink); }
.dest-area { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.dest-tour { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); display: inline-flex; align-items: center; gap: 5px; }
.stop-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-alt);
  border: 1px solid var(--hairline); border-radius: var(--radius-md); cursor: pointer; text-align: left; width: 100%;
}
.draft-stop-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; gap: 8px; align-items: stretch; }
.draft-stop-open { min-width: 0; }
.draft-remove {
  width: 38px; min-width: 38px; border-radius: var(--radius-md); border: 1px solid var(--hairline);
  background: var(--surface-alt); color: var(--muted); display: grid; place-items: center; cursor: pointer;
}
.draft-remove:disabled, .draft-stop-open:disabled { cursor: default; opacity: 0.55; }
.draft-edit-notice { padding: 9px 0 12px; justify-content: flex-start; }
.stop-name { display: block; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop-meta { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.statline { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ---- Guided-walk player (Tour/Nearby active state) ------------------------ */
.walk-stop.is-on { border-color: var(--primary); background: var(--primary-soft); }
.walk-stop.is-done { opacity: 0.66; }
.row-num.is-on { background: var(--primary); color: #fff; }
.skip-btn[disabled] { cursor: default; }
.active-mini {
  margin: 0 18px 14px; padding: 10px 12px; display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--primary); border-radius: var(--radius-lg); background: var(--primary-soft);
  box-shadow: var(--shadow-md);
}
.active-mini-body { flex: 1; min-width: 0; border: none; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.active-mini-kicker { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary-dark); }
.active-mini-title { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Nearby proposals ----------------------------------------------------- */
.reshuffle {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline-strong); background: var(--surface-alt); color: var(--ink-soft);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.proposal {
  background: var(--surface-alt); cursor: pointer; border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg); overflow: hidden;
}
.proposal.is-sel { border-color: var(--primary); box-shadow: var(--shadow-md); }
.proposal-sketch { padding: 11px 15px 0; }
.proposal-body { padding: 4px 15px 15px; }
.proposal-title { font-family: var(--font-display); font-size: 20px; line-height: 1.18; color: var(--ink); padding-bottom: 2px; }
.proposal-sum { font-family: var(--font-body); font-size: 13px; line-height: 1.45; color: var(--ink-soft); margin: 4px 0 0; }
.chip-stop { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); }
.chip-stop-num { width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; font-weight: 600; }
.chip-stop-name { font-family: var(--font-body); font-size: 12.5px; color: var(--ink); }

/* ---- POI card / player ---------------------------------------------------- */
.poi-blurb { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 10px 0 14px; }
.poi-transcript { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 14px 0 16px; }
.close-btn { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface-alt); color: var(--ink-soft); display: grid; place-items: center; cursor: pointer; }
.player-block { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); padding: 14px; }
.play-btn {
  border-radius: 50%; border: none; background: var(--accent); color: #fff; display: grid; place-items: center;
  cursor: pointer; flex: none; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.play-btn.is-primary { background: var(--primary); box-shadow: var(--shadow-primary); }
.scrubber-track { position: relative; height: 5px; border-radius: 999px; background: var(--hairline-strong); }
.scrubber-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 999px; }
.scrubber-knob { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 15px; height: 15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.scrubber-times { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ---- Roam ----------------------------------------------------------------- */
.roam-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.roam-encounter {
  margin: 0 0 14px; padding: 12px; border: 1px solid var(--accent); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface-alt)); box-shadow: var(--shadow-md);
}
.roam-encounter.is-arrival { border-color: var(--primary); background: linear-gradient(180deg, var(--primary-soft), var(--surface-alt)); }
.roam-encounter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.roam-encounter-kicker { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); }
.roam-encounter.is-arrival .roam-encounter-kicker { color: var(--primary-dark); }
.roam-encounter-body { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 12px; }
.roam-encounter-media {
  width: 62px; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hairline-strong);
  background: var(--surface); display: grid; place-items: center; color: var(--primary);
}
.roam-encounter-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.roam-encounter-noimg { display: grid; place-items: center; width: 100%; height: 100%; }
.roam-encounter-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.roam-encounter-title {
  font-family: var(--font-display); font-size: 20px; line-height: 1.05; color: var(--ink);
  overflow-wrap: anywhere; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.roam-encounter-meta { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.roam-encounter-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.roam-encounter-actions .mini-btn-primary { flex: 1; min-width: 0; }
.roam-also {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 7px;
  padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--hairline);
}
.roam-also-pill {
  min-width: 0; min-height: 58px; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px;
  padding: 8px 10px; border-radius: 18px; border: 1px solid var(--hairline-strong); background: var(--surface);
  color: var(--ink); cursor: pointer; font-family: var(--font-body); font-size: 12px; font-weight: 650; text-align: left;
}
.roam-also-name {
  width: 100%; min-width: 0; font-family: var(--font-body); font-size: 12px; font-weight: 700; line-height: 1.12;
  color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.roam-also-dist {
  width: 100%; min-width: 0; font-family: var(--font-mono); font-size: 9px; color: var(--muted);
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.roam-around { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.roam-around-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.roam-encounter-pill {
  flex: none; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.roam-around-list { display: flex; flex-direction: column; gap: 7px; }
.roam-poi-row {
  width: 100%; min-height: 48px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface-alt);
  cursor: pointer; text-align: left; color: var(--ink);
}
.roam-poi-row.is-ready { border-color: var(--accent); background: var(--accent-soft); }
.roam-poi-row.is-heard { opacity: 0.68; }
.roam-poi-mark {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--primary); border: 1px solid var(--hairline-strong);
}
.roam-poi-row.is-ready .roam-poi-mark { background: var(--accent); color: #fff; border-color: var(--accent); }
.roam-poi-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.roam-poi-name { font-family: var(--font-body); font-weight: 650; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roam-poi-meta { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.roam-poi-cta {
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark);
}
.roam-poi-row.is-muted .roam-poi-cta { color: var(--muted); }
.roam-empty { padding: 13px 0; }
.roam-poi-card { padding-top: 0; }
.roam-poi-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px;
}
.roam-poi-back {
  height: 34px; padding: 0 13px 0 10px; border-radius: 999px; border: 1px solid var(--hairline-strong);
  background: var(--surface-alt); color: var(--primary-dark); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 13px; font-weight: 650;
}
.roam-poi-close { width: 34px; height: 34px; background: var(--surface); }
.roam-poi-stage {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; gap: 13px;
  padding: 12px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  box-shadow: var(--shadow-md);
}
.roam-poi-photo {
  margin: 0; width: 112px; min-height: 112px; border: 1px solid var(--hairline-strong);
  border-radius: 8px; overflow: hidden; background: var(--surface); color: var(--primary);
}
.roam-poi-photo img { display: block; width: 100%; height: 84px; object-fit: cover; }
.roam-poi-photo figcaption {
  margin: 0; padding: 5px 6px; max-height: 28px; overflow: hidden;
  font-family: var(--font-mono); font-size: 8px; line-height: 1.25; color: var(--muted);
}
.roam-poi-photo figcaption a { color: var(--primary); text-decoration: none; }
.roam-poi-photo.is-empty {
  display: grid; place-items: center; min-height: 112px; background: var(--primary-soft);
}
.roam-poi-summary { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.roam-poi-title {
  margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 25px; line-height: 1.03;
  color: var(--ink); overflow-wrap: anywhere;
}
.roam-poi-subline {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.roam-poi-blurb {
  margin: 11px 2px 12px; font-family: var(--font-body); font-size: 13px; line-height: 1.45; color: var(--ink-soft);
}
.roam-poi-player {
  margin-top: 12px; padding: 13px; border: 1px solid var(--accent); border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.roam-poi-player-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.roam-poi-player-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.roam-poi-player-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent-dark);
}
.roam-poi-player-title { font-family: var(--font-body); font-size: 14px; font-weight: 650; color: var(--ink); }
.roam-poi-listen-btn {
  width: 100%; height: 46px; margin-top: 12px; border-radius: 999px; border: none; background: var(--accent);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 650;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.roam-poi-listen-btn:disabled { cursor: default; opacity: 0.55; box-shadow: none; }
.roam-poi-story-return { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.roam-poi-story-return .skip-btn { width: 100%; justify-content: center; }
.roam-around.compact { margin-top: 14px; padding-top: 12px; }
@media (max-width: 360px) {
  .roam-poi-stage { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .roam-poi-photo { width: 96px; min-height: 104px; }
  .roam-poi-photo img { height: 76px; }
  .roam-poi-title { font-size: 22px; }
}
.poi-photo { margin: 0 0 14px; border: 1px solid var(--hairline-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.poi-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.poi-photo-credit { margin: 0; padding: 7px 9px; border-top: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 9px; line-height: 1.35; letter-spacing: 0.02em; color: var(--muted); }
.poi-photo-credit a { color: var(--primary); text-decoration: none; }
.skip-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--hairline-strong); background: var(--surface-alt); color: var(--ink); border-radius: 999px; padding: 9px 15px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.text-btn { border: none; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- Synced bar / invites ------------------------------------------------- */
.beta-overlay-top { position: absolute; left: 0; right: 0; z-index: 19; }
.synced-bar { margin: 8px 12px 0; border-radius: var(--radius-lg); padding: 9px 10px 9px 14px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-md); }
.synced-bar.is-following { background: var(--primary); color: #fff; }
.synced-bar.is-solo { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.synced-toggle { width: 34px; height: 34px; border-radius: 50%; border: none; flex: none; background: rgba(255,255,255,0.18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.synced-eyebrow { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.synced-title { font-family: var(--font-body); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rejoin-btn { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: none; background: var(--accent-dark); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.invite-bar { margin: 8px 12px 0; background: var(--surface-alt); border: 1px solid var(--primary); border-radius: var(--radius-lg); padding: 10px 10px 10px 12px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-lg); }
.summary-bar { margin: 8px 12px 0; background: var(--surface-alt); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); padding: 10px 14px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-lg); }
.mini-btn-ghost { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: transparent; color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mini-btn-primary { flex: none; height: 34px; padding: 0 15px; border-radius: 999px; border: none; background: var(--primary); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 12.5px; cursor: pointer; box-shadow: var(--shadow-primary); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---- Toast ---------------------------------------------------------------- */
.beta-toast {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 95;
  background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-lg); white-space: nowrap;
}

/* ---- Modals (group, start-choice, roster) --------------------------------- */
.beta-modal { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; }
.beta-modal.is-high { z-index: 90; }
.beta-scrim { position: absolute; inset: 0; background: rgba(12,19,17,0.5); backdrop-filter: blur(2px); }
.beta-sheet-modal { position: relative; background: var(--bg); border-radius: 26px 26px 0 0; padding: 14px 20px 26px; box-shadow: var(--shadow-xl); }
.beta-handle-lg { width: 38px; height: 4px; border-radius: 999px; background: var(--hairline-strong); display: block; margin: 0 auto 16px; }
.modal-tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; margin-bottom: 16px; }
.modal-tab { flex: 1; padding: 9px 0; border-radius: 999px; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 13px; background: transparent; color: var(--muted); }
.modal-tab.is-on { background: var(--surface-alt); color: var(--ink); box-shadow: var(--shadow-sm); }
.code-box { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); padding: 16px; text-align: center; }
.code-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.code-value { font-family: var(--font-mono); font-size: 34px; font-weight: 600; letter-spacing: 0.08em; color: var(--primary); }
.code-input { width: 100%; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--hairline-strong); background: var(--surface-alt); font-family: var(--font-mono); font-size: 20px; letter-spacing: 0.08em; color: var(--ink); text-align: center; }
.roster-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); }
.roster-name { flex: 1; min-width: 0; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink); }
.roster-activity { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; text-align: right; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.action-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); cursor: pointer; text-align: left; }
.action-card.is-ghost { border: 1px solid var(--hairline-strong); background: var(--surface-alt); color: var(--ink); }
.action-card.is-primary { border: 1px solid var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.choice-card { width: 100%; padding: 14px 16px; border-radius: var(--radius-lg); text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.choice-card.is-primary { border: none; background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.choice-card.is-ghost { border: 1px solid var(--hairline-strong); background: var(--surface-alt); color: var(--ink); }
.onboarding-orb {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 12px;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-primary);
}
.onboarding-choice-list { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 12px; }
.onboarding-choice {
  width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
  background: var(--surface-alt); color: var(--ink); text-align: left; cursor: pointer;
}
.onboarding-choice-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark);
}
.onboarding-choice-title {
  display: block; font-family: var(--font-body); font-weight: 700; font-size: 14.5px; line-height: 1.15; color: var(--ink);
}
.onboarding-choice-copy {
  display: block; margin-top: 3px; font-family: var(--font-body); font-size: 12.5px; line-height: 1.35; color: var(--muted);
}
.onboarding-choice-arrow { color: var(--muted); display: grid; place-items: center; }
.mode-intro {
  margin: 0 0 14px; padding: 11px 12px; border: 1px solid var(--hairline);
  border-radius: var(--radius-md); background: color-mix(in srgb, var(--primary-soft) 58%, var(--surface-alt));
}
.mode-intro-title {
  display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-dark);
}
.mode-intro-copy { margin: 5px 0 0; font-family: var(--font-body); font-size: 13px; line-height: 1.42; color: var(--ink-soft); }
.arrive-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-dark); text-align: center; margin-bottom: 8px; }
[hidden] { display: none !important; }

/* ---- Dev location spoofer (development only) ------------------------------ */
/* Anchored to the phone frame's top-left (not vh — that pushed it off a tall
   window). Sits below the category chips; the panel opens downward. */
.beta-dev { position: absolute; left: 12px; top: 120px; z-index: 60; font-family: var(--font-mono); }
.beta-dev-toggle {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); box-shadow: var(--shadow-md); opacity: 0.82;
}
.beta-dev-toggle:hover { opacity: 1; }
.beta-dev[data-open="true"] .beta-dev-toggle { opacity: 1; }
.beta-dev-panel {
  position: absolute; left: 0; top: 36px; width: 260px; padding: 12px; border-radius: var(--radius-md);
  background: var(--surface-alt); border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-lg);
}
.beta-dev-head { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 6px; }
.beta-dev-active { color: var(--primary); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beta-dev-coords { margin: -2px 0 9px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.beta-dev-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-bottom: 8px; }
.beta-dev-map-pick, .beta-dev-center {
  min-height: 34px; padding: 7px 9px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 12px; font-weight: 650; line-height: 1.15;
}
.beta-dev-map-pick.is-on { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-primary); }
.beta-dev-hint {
  margin: 0 0 9px; padding: 7px 9px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-dark);
  font-family: var(--font-body); font-size: 12px; line-height: 1.25; border: 1px solid var(--primary);
}
.beta-dev-presets { display: flex; flex-direction: column; gap: 5px; margin-bottom: 9px; }
.beta-dev-preset {
  text-align: left; padding: 7px 9px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--ink); font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
}
.beta-dev-preset:hover { border-color: var(--primary); }
.beta-dev-preset.is-on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.beta-dev-custom { display: flex; gap: 5px; margin-bottom: 9px; }
.beta-dev-custom input {
  width: 0; flex: 1; min-width: 0; padding: 7px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong); background: var(--surface); font-family: var(--font-mono); font-size: 11px; color: var(--ink);
}
.beta-dev-go { flex: none; padding: 0 12px; border-radius: var(--radius-sm); border: none; background: var(--primary); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 12px; cursor: pointer; }
.beta-dev-reset { width: 100%; padding: 7px 0; border-radius: var(--radius-sm); border: 1px solid var(--hairline-strong); background: var(--surface); color: var(--ink-soft); font-family: var(--font-body); font-weight: 600; font-size: 12px; cursor: pointer; }
