@font-face {font-family:Inter;src:url('/assets/fonts/inter-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face {font-family:Inter;src:url('/assets/fonts/inter-600.woff2') format('woff2');font-weight:500 600;font-style:normal;font-display:swap}
@font-face {font-family:Inter;src:url('/assets/fonts/inter-700.woff2') format('woff2');font-weight:650 950;font-style:normal;font-display:swap}
@font-face {font-family:Sora;src:url('/assets/fonts/sora-700.woff2') format('woff2');font-weight:600 900;font-style:normal;font-display:swap}
:root {
  --midnight: #0F1720;
  --teal: #14B8A6;
  --mint: #A7F3D0;
  --brand-coral: #FF6B6B;
  --ink: #F7FAFC;
  --ink-2: #FFFFFF;
  --ink-3: #EDF3F5;
  --panel: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: #EDF3F5;
  --line: #DCE6EB;
  --line-strong: #B7C9D1;
  --field-line: #7F969F;
  --accent: #14B8A6;
  --accent-hover: #2DD4BF;
  --accent-strong: #0C746B;
  --accent-text: #0C746B;
  --accent-soft: #E2F7F0;
  --accent-line: #A0D6C8;
  --on-accent: #0F1720;
  --cloud: #0F1720;
  --muted: #4E6571;
  --muted-2: #536B77;
  --coral: #B53643;
  --coral-soft: #FFF0F0;
  --success: #17694F;
  --warning: #845200;
  --danger: #B53643;
  --shadow: 0 16px 48px rgba(15,23,32,.08);
  --blue-soft: var(--accent-soft);
  --blue-text: var(--accent-text);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --midnight: #000000;
  --on-accent: #000000;
  --ink: #000000;
  --ink-2: #111111;
  --ink-3: #1C1C1C;
  --panel: #111111;
  --surface: #111111;
  --surface-soft: #1C1C1C;
  --line: #303030;
  --line-strong: #4A4A4A;
  --field-line: #707070;
  --accent-strong: #7DE8D3;
  --accent-text: #7DE8D3;
  --accent-soft: #102C26;
  --accent-line: #37675D;
  --cloud: #F7F7F7;
  --muted: #C0C0C0;
  --muted-2: #A8A8A8;
  --coral: #FF9292;
  --coral-soft: #43282F;
  --success: #A7F3D0;
  --warning: #FFD18A;
  --danger: #FF9292;
  --shadow: 0 16px 48px rgba(0,0,0,.23);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--ink); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cloud);
  background:
    radial-gradient(circle at 15% 15%, rgba(21, 21, 21, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 85%, rgba(21, 21, 21, 0.08), transparent 28rem),
    var(--ink);
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(21, 21, 21, 0.38);
  outline-offset: 2px;
}

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.brand img { width: 158px; height: auto; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.status-pill,
.availability-pill,
.count-pill,
.tag,
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.08);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 750;
}

.status-pill { gap: 8px; padding: 8px 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 14px var(--success); }

.primary-button,
.secondary-button,
.small-button,
.text-button,
.icon-button,
.action-button {
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.primary-button {
  min-height: 50px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--cloud);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(21, 21, 21, 0.18);
}

.primary-button:hover,
.action-button.primary:hover { transform: translateY(-1px); }
.primary-button:active,
.action-button.primary:active { transform: translateY(0); }

.secondary-button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cloud);
  font-weight: 750;
}
.secondary-button:hover { background: rgba(255, 255, 255, 0.06); }

.small-button {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cloud);
  font-size: 0.82rem;
  font-weight: 750;
}
.small-button:hover { border-color: var(--accent); background: rgba(21, 21, 21, 0.1); }

.text-button { padding: 7px 0; background: none; color: var(--muted); font-weight: 700; }
.text-button:hover { color: var(--cloud); }

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}

button:disabled { cursor: default; opacity: 0.55; transform: none !important; }

label { display: grid; gap: 7px; color: var(--muted); font-size: 0.82rem; font-weight: 700; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--cloud);
  padding: 12px 13px;
  font-weight: 600;
}

input::placeholder,
textarea::placeholder { color: var(--muted-2); }
input:focus,
select:focus,
textarea:focus { border-color: rgba(21, 21, 21, 0.55); background: var(--surface-soft); }
textarea { resize: vertical; min-height: 108px; }

.form-row,
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-message { min-height: 20px; color: var(--danger); font-size: 0.84rem; font-weight: 700; }
.form-message.is-success { color: var(--success); }
.is-hidden { display: none !important; }

/* Landing */
.landing-page { display: flex; flex-direction: column; }
.landing-header { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.landing-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  padding-block: 42px 72px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-lead { max-width: 650px; margin: 26px 0 34px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.7; }
.feature-grid { display: grid; gap: 12px; max-width: 640px; }
.feature-card {
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.feature-card h2 { margin: 0 0 4px; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: rgba(21, 21, 21, 0.14);
  color: var(--accent-strong);
  font-weight: 900;
}
.coral-feature .feature-icon { background: rgba(255, 107, 107, 0.12); color: var(--coral); }

.auth-panel {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.auth-heading { display: flex; align-items: center; gap: 14px; }
.auth-heading h2 { margin: 0; font-size: 1.35rem; }
.auth-icon { width: 58px; height: 58px; border-radius: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 24px 0 20px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.auth-tab { min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.auth-tab.is-active { background: rgba(21, 21, 21, 0.16); color: var(--accent-text); }
.auth-form { display: grid; gap: 14px; }
.legal-note { margin: 18px 0 0; color: var(--muted-2); font-size: 0.74rem; line-height: 1.55; }
.landing-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.78rem; }

/* App shell */
.app-page { background: var(--ink); }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0,1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
}
.sidebar-brand { padding: 4px 8px 30px; }
.sidebar-brand img { width: 142px; }
.sidebar-nav { display: grid; gap: 7px; }
.nav-button {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-weight: 780;
}
.nav-button:hover { color: var(--cloud); background: rgba(255, 255, 255, 0.035); }
.nav-button.is-active { border-color: var(--line-strong); background: rgba(21, 21, 21, 0.11); color: var(--accent-text); }
.nav-glyph { display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent-strong); font-size: 1.15rem; }
.notification-badge { min-width: 23px; height: 23px; padding-inline: 6px; border-color: rgba(255, 107, 107, 0.35); background: rgba(255, 107, 107, 0.18); color: var(--danger); }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 8px 0; border-top: 1px solid var(--line); }
.mini-profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-profile-copy { min-width: 0; }
.mini-profile strong, .mini-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile strong { font-size: 0.86rem; }
.mini-profile small { color: var(--muted); font-size: 0.7rem; }

.app-main { min-width:0; width: min(1180px, 100%); margin-inline: auto; padding: 38px clamp(24px, 5vw, 68px) 90px; }
.mobile-header, .bottom-nav { display: none; }
.app-view { animation: view-in 220ms ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.view-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.045em; }
.availability-pill { padding: 9px 13px; white-space: nowrap; }
.availability-pill.is-offline { border-color: rgba(21, 21, 21, 0.16); background: rgba(21, 21, 21, 0.08); color: var(--muted); }

.mode-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; max-width: 650px; margin-bottom: 22px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.mode-tab { min-height: 46px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 850; }
.mode-tab.is-active { background: var(--accent); color: var(--cloud); }
.mode-tab[data-mode="match"].is-active { background: var(--coral-soft); }

.gym-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.1), var(--surface));
}
.pin-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 17px; background: rgba(21, 21, 21, 0.18); color: var(--accent-strong); font-size: 1.4rem; }
.gym-copy span, .gym-copy strong, .gym-copy small { display: block; }
.gym-copy span { color: var(--muted); font-size: 0.75rem; }
.gym-copy strong { margin: 3px 0; font-size: 1.1rem; }
.gym-copy small { color: var(--muted); }

.discover-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 32px 0 18px; }
.discover-toolbar h2 { margin: 0 0 4px; font-size: 1.35rem; }
.discover-toolbar p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.filter-row { display: flex; align-items: end; gap: 10px; }
.compact-field { min-width: 150px; }
.compact-field span { font-size: 0.7rem; }
.compact-field input, .compact-field select { padding-block: 10px; }

.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.person-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.person-card::after { content: ""; position: absolute; width: 140px; height: 140px; top: -85px; right: -80px; border-radius: 50%; background: rgba(21, 21, 21, 0.08); pointer-events: none; }
.person-top { display: flex; align-items: center; gap: 13px; min-width: 0; }
.person-summary { min-width: 0; flex: 1; }
.person-summary h3 { margin: 0 0 4px; font-size: 1.15rem; }
.person-summary p { margin: 0; color: var(--accent-strong); font-size: 0.86rem; font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-summary small { display: block; margin-top: 4px; color: var(--muted); }
.person-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 6px 9px; background: rgba(255, 255, 255, 0.035); color: var(--muted); border-color: var(--line); }
.tag.is-live { background: rgba(156, 185, 57, 0.1); border-color: rgba(156, 185, 57, 0.26); color: var(--success); }
.tag.is-same-gym { background: rgba(21, 21, 21, 0.11); color: var(--accent-text); }
.person-bio { min-height: 42px; margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }
.person-actions { display: flex; gap: 9px; margin-top: auto; }
.action-button { flex: 1; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.035); color: var(--cloud); font-size: 0.82rem; font-weight: 850; }
.action-button.primary { border-color: transparent; background: var(--accent); color: var(--cloud); }
.action-button.match { border-color: transparent; background: var(--coral-soft); color: var(--coral); }
.action-button.danger { border-color: rgba(255, 107, 107, 0.25); color: var(--danger); }

.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid rgba(255, 255, 255, 0.15); border-radius: 50%; color: var(--cloud); font-weight: 950; letter-spacing: -0.02em; box-shadow: 0 8px 22px rgba(21, 21, 21, 0.08); }
.avatar-sm { width: 38px; height: 38px; font-size: 0.72rem; }
.avatar-lg { width: 78px; height: 78px; font-size: 1.15rem; }
.avatar-teal { background:linear-gradient(135deg,var(--teal),var(--mint));color:var(--midnight); }
.avatar-mint { background:var(--mint);color:var(--midnight); }
.avatar-coral { background:var(--coral-soft);color:var(--coral); }
.avatar-cyan { background:var(--accent-soft);color:var(--accent-strong); }
.avatar-dark { background:var(--surface-soft);color:var(--cloud); }

.empty-card,
.empty-state { display: grid; place-items: center; text-align: center; padding: 34px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }
.empty-card { grid-column: 1 / -1; }
.empty-state { min-height: 420px; }
.empty-state h2 { margin: 10px 0 5px; color: var(--cloud); }
.empty-state p { max-width: 380px; margin: 0; line-height: 1.6; }
.empty-icon { color: var(--accent-strong); font-size: 2.4rem; }

.section-block { margin-top: 28px; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; font-size: 1.25rem; }
.count-pill { min-width: 27px; height: 27px; padding-inline: 8px; }
.connection-list { display: grid; gap: 10px; }
.connection-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.connection-copy { min-width: 0; }
.connection-copy strong, .connection-copy span, .connection-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-copy span { margin-top: 3px; color: var(--accent-strong); font-size: 0.82rem; }
.connection-copy small { margin-top: 3px; color: var(--muted); font-size: 0.75rem; }
.connection-actions { display: flex; gap: 8px; }
.connection-actions .action-button { flex: none; min-width: 100px; }

.chat-layout { display: grid; grid-template-columns: minmax(230px, 0.36fr) minmax(0, 1fr); min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); }
.chat-contacts { min-width: 0; padding: 18px; border-right: 1px solid var(--line); background: var(--surface-soft); }
.chat-contacts h2 { margin: 3px 5px 14px; font-size: 0.95rem; }
.chat-contact { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--cloud); cursor: pointer; text-align: left; }
.chat-contact:hover, .chat-contact.is-active { border-color: var(--line-strong); background: rgba(21, 21, 21, 0.08); }
.chat-contact-copy { min-width: 0; }
.chat-contact-copy strong, .chat-contact-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-contact-copy small { color: var(--muted); margin-top: 3px; }
.chat-panel { min-width: 0; display: flex; flex-direction: column; }
.chat-header { display: flex; align-items: center; gap: 11px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-header-copy strong, .chat-header-copy small { display: block; }
.chat-header-copy small { margin-top: 2px; color: var(--muted); }
.message-list { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 390px; max-height: 520px; overflow-y: auto; padding: 22px; }
.message { align-self: flex-start; max-width: min(78%, 560px); padding: 11px 13px; border: 1px solid var(--line); border-radius: 15px 15px 15px 4px; background: rgba(255, 255, 255, 0.045); }
.message.is-mine { align-self: flex-end; border-color: rgba(21, 21, 21, 0.25); border-radius: 15px 15px 4px 15px; background: rgba(21, 21, 21, 0.14); }
.message p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.message small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 0.65rem; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 15px; border-top: 1px solid var(--line); }
.chat-form input { min-width: 0; }
.chat-form .primary-button { min-height: 44px; padding-inline: 20px; }

.profile-form { display: grid; gap: 22px; max-width: 900px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); }
.profile-preview-card { display: flex; align-items: center; gap: 17px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-preview-card strong, .profile-preview-card span { display: block; }
.profile-preview-card strong { font-size: 1.35rem; }
.profile-preview-card span { margin-top: 5px; color: var(--muted); }
.mode-fieldset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; border: 0; }
.mode-fieldset legend { margin-bottom: 10px; color: var(--cloud); font-weight: 850; }
.check-card { position: relative; display: block; cursor: pointer; }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-card span { display: block; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.check-card strong, .check-card small { display: block; }
.check-card small { margin-top: 4px; color: var(--muted); }
.check-card input:checked + span { border-color: rgba(21, 21, 21, 0.52); background: rgba(21, 21, 21, 0.12); }
.check-card input:focus-visible + span { outline: 3px solid rgba(21, 21, 21, 0.38); outline-offset: 2px; }
.availability-toggle { grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; cursor: pointer; }
.availability-toggle > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.toggle-track { width: 48px; height: 27px; padding: 3px; border-radius: 999px; background: var(--field-line); transition: background 160ms ease; }
.toggle-track span { display: block; width: 21px; height: 21px; border-radius: 50%; background: var(--cloud); transition: transform 160ms ease; }
.availability-toggle > input:checked + .toggle-track { background: var(--accent); }
.availability-toggle > input:checked + .toggle-track span { transform: translateX(21px); }
.availability-toggle strong, .availability-toggle small { display: block; }
.availability-toggle small { margin-top: 3px; color: var(--muted); font-weight: 500; }
.profile-save { width: min(100%, 300px); }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(380px, calc(100% - 32px)); padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--cloud); box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: rgba(255, 107, 107, 0.35); }

@media (max-width: 980px) {
  .landing-main { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { padding-top: 20px; }
  .auth-panel { width: min(100%, 620px); }
  .app-layout { grid-template-columns: 210px minmax(0,1fr); }
  .people-grid { grid-template-columns: 1fr; }
  .discover-toolbar { align-items: start; flex-direction: column; }
  .filter-row { width: 100%; }
  .compact-field { flex: 1; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1160px); }
  .landing-header { padding-block: 20px; }
  .brand img { width: 132px; }
  .landing-main { gap: 38px; padding-block: 28px 50px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4.6rem); }
  .hero-lead { margin-block: 20px 27px; }
  .auth-panel { padding: 21px; border-radius: 22px; }
  .form-row, .form-grid { grid-template-columns: 1fr; }
  .landing-footer { padding-bottom: 28px; }

  .app-layout { display: block; }
  .sidebar { display: none; }
  .app-main { padding: 18px 16px 105px; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  .mobile-header img { width: 126px; }
  .bottom-nav { position: fixed; z-index: 50; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); box-shadow: 0 16px 50px rgba(21, 21, 21, 0.10); backdrop-filter: blur(20px); }
  .bottom-nav-button { display: grid; place-items: center; gap: 3px; min-height: 52px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.65rem; font-weight: 750; }
  .bottom-nav-button span { font-size: 1.08rem; }
  .bottom-nav-button.is-active { background: rgba(21, 21, 21, 0.12); color: var(--accent-text); }
  .view-heading { margin-bottom: 20px; }
  .view-heading h1 { font-size: 2.35rem; }
  .availability-pill { font-size: 0.7rem; padding: 7px 10px; }
  .mode-tabs { max-width: none; }
  .gym-card { grid-template-columns: 45px 1fr auto; padding: 15px; gap: 11px; }
  .pin-icon { width: 42px; height: 42px; }
  .gym-copy strong { font-size: 0.96rem; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .compact-field { width: 100%; }
  .person-card { padding: 17px; }
  .connection-card { grid-template-columns: auto minmax(0, 1fr); }
  .connection-actions { grid-column: 1 / -1; }
  .connection-actions .action-button { flex: 1; min-width: 0; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .chat-contacts { border-right: 0; border-bottom: 1px solid var(--line); }
  #chatContacts { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
  .chat-contact { min-width: 180px; flex: 0 0 190px; }
  .empty-state { min-height: 300px; }
  .message-list { min-height: 330px; max-height: 52vh; }
  .message { max-width: 88%; }
  .profile-form { padding: 18px; }
  .mode-fieldset { grid-template-columns: 1fr; }
  .toast { right: 16px; bottom: 88px; }
}

@media (max-width: 420px) {
  .status-pill { display: none; }
  .landing-footer { flex-direction: column; gap: 5px; }
  .auth-heading { align-items: flex-start; }
  .auth-icon { width: 50px; height: 50px; }
  .view-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .gym-card { grid-template-columns: 40px 1fr; }
  .gym-card .small-button { grid-column: 1 / -1; }
  .person-actions { flex-direction: column; }
  .chat-form { grid-template-columns: 1fr; }
}

/* GYVRA beta v0.2 */
.onboarding-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(21, 21, 21, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(21, 21, 21, 0.14), var(--surface)),
    var(--ink-2);
}
.onboarding-copy h2 { margin: 0 0 6px; font-size: 1.18rem; }
.onboarding-copy p { margin: 0; color: var(--muted); line-height: 1.55; }
.onboarding-progress-wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; }
.onboarding-progress-wrap > strong { color: var(--accent-text); font-size: 1.15rem; }
.onboarding-progress-wrap .small-button { grid-column: 1 / -1; justify-self: end; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 220ms ease; }
.progress-fill.progress-0 { width: 0; }
.progress-fill.progress-20 { width: 20%; }
.progress-fill.progress-40 { width: 40%; }
.progress-fill.progress-60 { width: 60%; }
.progress-fill.progress-80 { width: 80%; }
.progress-fill.progress-100 { width: 100%; }

.profile-completion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  max-width: 900px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(21, 21, 21, 0.09), var(--surface));
}
.profile-completion-card h2 { margin: 0 0 6px; font-size: 1.25rem; }
.profile-completion-card p { margin: 0; max-width: 650px; color: var(--muted); line-height: 1.55; }
.completion-ring {
  --ring-color: var(--accent);
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) 0, var(--line) 0);
  position: relative;
}
.completion-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink-2); }
.completion-ring span { position: relative; z-index: 1; color: var(--cloud); font-size: 1rem; font-weight: 900; }
.completion-ring.progress-0 { background: conic-gradient(var(--ring-color) 0%, var(--line) 0); }
.completion-ring.progress-20 { background: conic-gradient(var(--ring-color) 20%, var(--line) 0); }
.completion-ring.progress-40 { background: conic-gradient(var(--ring-color) 40%, var(--line) 0); }
.completion-ring.progress-60 { background: conic-gradient(var(--ring-color) 60%, var(--line) 0); }
.completion-ring.progress-80 { background: conic-gradient(var(--ring-color) 80%, var(--line) 0); }
.completion-ring.progress-100 { --ring-color: var(--accent-text); background: conic-gradient(var(--ring-color) 100%, var(--line) 0); }
.profile-checklist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.checklist-item { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface-soft); }
.checklist-item span { color: var(--muted-2); font-weight: 900; }
.checklist-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checklist-item.is-complete { border-color: rgba(156, 185, 57, 0.22); color: var(--success); background: rgba(156, 185, 57, 0.07); }
.checklist-item.is-complete span { color: var(--success); }

.settings-card {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.settings-heading h2 { margin: 0 0 6px; font-size: 1.25rem; }
.settings-heading p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.availability-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; gap: 10px; }
.availability-form .action-button { min-width: 150px; }
.availability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.availability-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.availability-row strong, .availability-row span { display: block; }
.availability-row span { margin-top: 3px; color: var(--accent-strong); font-size: 0.82rem; font-weight: 750; }
.icon-remove { width: 33px; height: 33px; border: 1px solid rgba(255, 107, 107, 0.2); border-radius: 10px; background: rgba(255, 107, 107, 0.06); color: var(--danger); cursor: pointer; font-size: 1.25rem; }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.settings-actions .form-message { flex: 1; }
.settings-actions .primary-button { min-width: 210px; }
.blocked-list { display: grid; gap: 9px; }
.blocked-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.blocked-row strong, .blocked-row small { display: block; }
.blocked-row small { margin-top: 3px; color: var(--muted); }

.safety-action { flex: 0 0 auto; min-width: 80px; color: var(--muted); background: transparent; }
.safety-action:hover { color: var(--danger); border-color: rgba(255, 107, 107, 0.28); background: rgba(255, 107, 107, 0.06); }
.connection-card-rich { align-items: flex-start; }
.connection-card-rich > .avatar { margin-top: 2px; }
.connection-card-rich .connection-copy > small { white-space: normal; }
.invite-summary { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; padding: 10px 11px; border: 1px solid rgba(21, 21, 21, 0.18); border-radius: 11px; background: rgba(21, 21, 21, 0.07); }
.connection-copy .invite-summary span,
.connection-copy .invite-summary small,
.invite-summary span,
.invite-summary small { display: inline-flex; overflow: visible; text-overflow: clip; white-space: normal; }
.invite-summary span { color: var(--accent-text); font-size: 0.75rem; font-weight: 760; }
.invite-summary small { flex-basis: 100%; margin: 0; color: var(--muted); line-height: 1.45; }
.chat-safety { margin-left: auto; flex: 0 0 auto; }
.chat-invite { padding: 0 18px 12px; border-bottom: 1px solid var(--line); }
.chat-invite .invite-summary { margin-top: 12px; }

.app-dialog { width: min(620px, calc(100% - 28px)); max-width: 620px; padding: 0; border: 0; border-radius: var(--radius-xl); background: transparent; color: var(--cloud); }
.app-dialog::backdrop { background: rgba(21, 21, 21, 0.78); backdrop-filter: blur(8px); }
.dialog-card { display: grid; gap: 18px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin: 0; font-size: 1.45rem; }
.dialog-close { width: 39px; height: 39px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--muted); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.dialog-form-grid { gap: 12px; }
.dialog-note { margin: -4px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dialog-actions .action-button,
.dialog-actions .primary-button { flex: 0 0 auto; min-width: 130px; }
.report-block-option { display: grid; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); cursor: pointer; }
.report-block-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.report-block-option strong, .report-block-option small { display: block; }
.report-block-option small { margin-top: 3px; color: var(--muted); font-weight: 500; line-height: 1.45; }

@media (max-width: 760px) {
  .onboarding-card { grid-template-columns: 1fr; gap: 16px; padding: 17px; }
  .onboarding-progress-wrap .small-button { justify-self: stretch; }
  .profile-completion-card { grid-template-columns: 1fr auto; padding: 18px; }
  .profile-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .availability-form { grid-template-columns: 1fr 1fr; }
  .availability-form label:first-child { grid-column: 1 / -1; }
  .availability-form .action-button { grid-column: 1 / -1; min-width: 0; }
  .availability-list { grid-template-columns: 1fr; }
  .settings-card { padding: 18px; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-actions .primary-button { width: 100%; min-width: 0; }
  .connection-card-rich { align-items: center; }
  .chat-safety { margin-left: auto; min-width: 70px; }
  .app-dialog { width: min(100% - 20px, 620px); }
  .dialog-card { max-height: calc(100vh - 30px); overflow-y: auto; padding: 19px; }
}

@media (max-width: 480px) {
  .profile-completion-card { grid-template-columns: 1fr; }
  .completion-ring { width: 72px; height: 72px; }
  .profile-checklist { grid-template-columns: 1fr; }
  .availability-form { grid-template-columns: 1fr; }
  .availability-form label:first-child,
  .availability-form .action-button { grid-column: auto; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .action-button,
  .dialog-actions .primary-button { width: 100%; }
  .blocked-row { grid-template-columns: auto minmax(0, 1fr); }
  .blocked-row .action-button { grid-column: 1 / -1; }
}

/* GYVRA beta v0.3 — Allenamenti di gruppo */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.view-intro {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.workout-view-heading { align-items: flex-end; }
.create-workout-button { min-width: 205px; }

.workout-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.workout-stat-card {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.workout-stat-card strong {
  color: var(--accent-text);
  font-size: 1.75rem;
  line-height: 1;
}

.workout-stat-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.workout-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 12px;
  margin-bottom: 18px;
}

.workout-scope-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.workout-scope-tab {
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 820;
}

.workout-scope-tab:hover { color: var(--cloud); }
.workout-scope-tab.is-active { background: rgba(21, 21, 21, 0.15); color: var(--accent-text); }
.workout-search { display: block; }
.workout-search input { height: 100%; min-height: 54px; }

.workout-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.workout-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 14px 46px rgba(21, 21, 21, 0.05);
}

.workout-card.is-joined { border-color: rgba(21, 21, 21, 0.42); }
.workout-date-badge {
  display: grid;
  place-items: center;
  align-content: center;
  align-self: start;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(21, 21, 21, 0.28);
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.08);
}

.workout-date-badge strong { font-size: 1.45rem; line-height: 1; }
.workout-date-badge span { margin-top: 5px; color: var(--accent-strong); font-size: 0.73rem; font-weight: 900; letter-spacing: 0.08em; }
.workout-card-content { min-width: 0; }
.workout-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.workout-card-heading .eyebrow { margin-bottom: 6px; }
.workout-card-heading h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.025em; }
.workout-card-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 12px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.workout-description { margin: 16px 0; color: var(--muted); line-height: 1.55; }

.workout-participants {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.workout-participants strong { color: var(--cloud); }
.workout-participants small { color: var(--accent-strong); font-weight: 750; }
.participant-stack { display: flex; min-width: 34px; }
.participant-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -7px;
  border: 2px solid var(--ink-2);
  border-radius: 50%;
  color: var(--cloud);
  font-size: 0.64rem;
  font-weight: 950;
}
.participant-avatar:first-child { margin-left: 0; }
.workout-card-action { width: 100%; margin-top: 16px; }
.workout-dialog { max-width: 690px; }
.workout-form-grid .field-span-2 { grid-column: 1 / -1; }
.dialog-intro { margin: 8px 0 0; max-width: 520px; color: var(--muted); line-height: 1.55; }

@media (max-width: 980px) {
  .workout-toolbar { grid-template-columns: 1fr; }
  .workout-list { max-width: none; }
}

@media (max-width: 760px) {
  .bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .bottom-nav-button { min-width: 0; padding-inline: 3px; font-size: 0.58rem; }
  .workout-view-heading { align-items: stretch; }
  .create-workout-button { width: 100%; min-width: 0; }
  .workout-stats { gap: 7px; }
  .workout-stat-card { min-height: 83px; padding: 11px 8px; border-radius: 15px; }
  .workout-stat-card strong { font-size: 1.45rem; }
  .workout-stat-card span { font-size: 0.65rem; }
  .workout-scope-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workout-card { grid-template-columns: 1fr; gap: 13px; padding: 16px; border-radius: 20px; }
  .workout-date-badge { display: inline-flex; gap: 5px; justify-self: start; min-height: 0; padding: 8px 11px; border-radius: 13px; }
  .workout-date-badge strong { font-size: 1rem; }
  .workout-date-badge span { margin-top: 0; }
  .workout-card-heading { flex-direction: column; gap: 8px; }
  .workout-card-heading h3 { font-size: 1.18rem; }
  .workout-participants { grid-template-columns: auto minmax(0, 1fr); }
  .workout-participants small { grid-column: 1 / -1; }
  .workout-form-grid .field-span-2 { grid-column: auto; }
}

@media (max-width: 420px) {
  .bottom-nav-button span { font-size: 1rem; }
  .workout-card-meta { display: grid; gap: 6px; }
}

/* v0.4.0 — account lifecycle, privacy and moderation */
.auth-link-button {
  justify-self: center;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}
.auth-link-button:hover { text-decoration: underline; }
.auth-subheading h3 { margin: 2px 0 7px; font-size: 1.25rem; }
.auth-subheading p:last-child { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
.legal-consents { display: grid; gap: 9px; }
.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cloud);
  font-size: 0.78rem;
  line-height: 1.45;
}
.legal-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); }
.legal-check a { color: var(--accent-text); font-weight: 750; }
.legal-check.optional { color: var(--muted); }
.form-message:has(.message-action-link) { display: grid; gap: 10px; }
.message-action-link {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(21, 21, 21, 0.16);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.verification-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 191, 71, 0.38);
  border-radius: 16px;
  background: rgba(255, 191, 71, 0.08);
}
.verification-banner div { display: grid; gap: 3px; }
.verification-banner strong { color: var(--warning); }
.verification-banner span { color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  white-space: nowrap;
}
.status-chip.is-verified { border-color: rgba(21, 21, 21, 0.4); background: rgba(21, 21, 21, 0.11); color: var(--accent-text); }
.status-chip.is-warning { border-color: rgba(255, 191, 71, 0.42); background: rgba(255, 191, 71, 0.08); color: var(--warning); }
.verification-action-box {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(255, 191, 71, 0.25);
  border-radius: 14px;
  background: rgba(255, 191, 71, 0.05);
}
.verification-action-box p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.compact-actions { justify-content: flex-start; }
.account-inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}
.account-inline-form label,
.consent-form label { min-width: 0; }
.consent-form { display: grid; gap: 12px; margin-top: 14px; }
.consent-form > .action-button { justify-self: start; margin-top: 4px; }
.data-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.data-actions div { display: grid; gap: 4px; }
.data-actions span { color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.danger-zone strong { color: var(--danger); }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.admin-stat-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.admin-stat-card strong { color: var(--accent-text); font-size: 1.65rem; }
.admin-stat-card span { color: var(--muted); font-size: 0.72rem; font-weight: 780; }
.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.admin-toolbar label { width: min(240px, 100%); }
.admin-report-list { display: grid; gap: 14px; }
.admin-report-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.admin-report-heading,
.admin-report-people,
.admin-report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-report-heading > div { display: flex; align-items: center; gap: 10px; }
.admin-report-heading h3 { margin: 0; font-size: 1rem; text-transform: capitalize; }
.admin-report-heading time { color: var(--muted); font-size: 0.72rem; }
.admin-report-details { margin: 0; color: var(--cloud); line-height: 1.55; }
.admin-report-people {
  justify-content: flex-start;
  padding: 11px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}
.admin-report-card textarea { margin-top: 6px; }
.report-open { color: var(--warning); border-color: rgba(255, 191, 71, 0.35); }
.report-reviewing { color: var(--blue-text); border-color: rgba(21, 21, 21, 0.35); }
.report-resolved { color: var(--accent-text); border-color: rgba(21, 21, 21, 0.35); }
.report-dismissed { color: var(--muted); }

.legal-page { min-height: 100vh; background: var(--ink); color: var(--cloud); }
.legal-shell { width: min(840px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 70px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.legal-header img { width: 132px; }
.legal-header a:last-child { color: var(--accent-text); font-weight: 800; text-decoration: none; }
.legal-document {
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.legal-document h1 { margin: 0 0 8px; font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -0.04em; }
.legal-document h2 { margin: 32px 0 10px; font-size: 1.2rem; }
.legal-document p,
.legal-document li { color: var(--muted); line-height: 1.7; }
.legal-document .legal-effective { color: var(--accent-strong); font-weight: 750; }

@media (max-width: 1050px) {
  .account-inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-inline-form .action-button { min-height: 48px; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .verification-banner { align-items: flex-start; flex-direction: column; }
  .verification-banner .small-button { width: 100%; }
  .account-inline-form { grid-template-columns: 1fr; }
  .data-actions { align-items: stretch; flex-direction: column; }
  .data-actions .action-button { width: 100%; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-report-actions .action-button { flex: 1 1 42%; }
  .legal-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-report-actions .action-button { flex-basis: 100%; }
}

/* v0.4 legal document refinements */
.landing-legal-links,
.legal-inline-links,
.legal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.landing-legal-links a,
.legal-inline-links a,
.legal-nav a {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}
.landing-legal-links a:hover,
.legal-inline-links a:hover,
.legal-nav a:hover { text-decoration: underline; }
.legal-inline-links { margin: 2px 0 4px; }
.legal-page .legal-header { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 18px; }
.legal-page .legal-document { width: min(840px, calc(100% - 32px)); margin: 0 auto 72px; }
.legal-meta { margin: 0 0 24px; color: var(--accent-strong) !important; font-weight: 800; }
.legal-lead { max-width: 700px; font-size: 1.04rem; }
.legal-warning {
  margin: 24px 0 30px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 191, 71, 0.34);
  border-radius: 16px;
  background: rgba(255, 191, 71, 0.07);
  color: var(--warning);
  line-height: 1.62;
}
.legal-document section { scroll-margin-top: 24px; }
.legal-nav { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .landing-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .legal-page .legal-header .action-button { width: auto; }
}

.beta-notice{display:flex;gap:16px;align-items:center;padding:14px 18px;border:1px solid var(--line);border-radius:14px;margin:0 0 26px;font-size:14px;color:var(--muted);background:var(--accent-soft)}.beta-notice strong{font-size:12px;letter-spacing:.12em;color:var(--accent-strong);white-space:nowrap}@media(max-width:650px){.beta-notice{margin-top:12px;align-items:flex-start;flex-direction:column;gap:6px}}
.welcome-shell{max-width:780px;margin:0 auto;padding:56px 24px 80px}.welcome-logo{width:130px;margin-bottom:54px}.welcome-shell h1{font-size:clamp(36px,7vw,64px);line-height:1.05;letter-spacing:-.045em;margin:16px 0 22px}.welcome-shell .view-intro{margin-bottom:32px}.welcome-form h2{margin-bottom:24px}.welcome-form .primary-button{width:100%;margin-top:12px;justify-content:space-between;display:flex}.welcome-form input,.welcome-form select{min-height:48px;font-size:16px}.welcome-note{font-size:13px;color:var(--muted);margin:16px 0 0;text-align:center}.welcome-form .legal-check{margin-top:24px}.welcome-form a{color:var(--accent)}.welcome-form input[type=checkbox]{min-height:auto;width:19px;height:19px}.welcome-form .form-grid{gap:18px}.welcome-form .form-grid label{display:grid;gap:8px;font-size:14px} @media(max-width:560px){.welcome-shell{padding-top:30px}.welcome-logo{margin-bottom:32px}.welcome-form .form-grid{grid-template-columns:1fr}.welcome-form{padding:22px}}
.auth-layout{display:grid;grid-template-columns:1fr 1fr;gap:7vw;align-items:start;padding-top:64px;padding-bottom:80px}.auth-intro{padding-top:48px;position:sticky;top:50px}.auth-intro h1{font-size:clamp(48px,5vw,78px);line-height:1.03;letter-spacing:-.05em;margin:24px 0}.auth-intro p:not(.eyebrow){font-size:19px;line-height:1.7;max-width:440px;color:var(--muted)}.auth-intro>span{font-size:14px;color:var(--muted-2)}.auth-brand-rule{height:3px;width:52px;background:var(--accent);margin:36px 0 22px}.auth-page-v6 .auth-panel{width:100%;max-width:520px}.auth-service-notice{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);font-size:14px;line-height:1.5;color:var(--muted);margin-bottom:16px}.auth-page-v6 .primary-button{display:flex;justify-content:space-between}.auth-page-v6 input{font-size:16px}.auth-page-v6 .field-help{font-size:13px;color:var(--muted);font-weight:400;line-height:1.5}.auth-page-v6 .legal-check{font-size:14px}.auth-page-v6 fieldset{border:0;padding:0;margin:12px 0;display:grid;gap:16px}.auth-page-v6 fieldset.is-hidden{display:none}.auth-page-v6 legend{font-size:17px;font-weight:700;margin-bottom:16px}.auth-page-v6 #ownerSetupButton{width:100%;margin-bottom:20px}.auth-page-v6 .auth-form>p{color:var(--muted);line-height:1.5}.auth-page-v6 .legal-note{font-size:13px}.invite-code-box{border:1px solid var(--line-strong);padding:20px;border-radius:12px;margin:16px 0;background:var(--accent-soft);overflow-wrap:anywhere}.invite-code-box code{display:block;font-size:18px;color:var(--accent);margin:12px 0;user-select:all}.beta-invite-form{display:grid;grid-template-columns:2fr 1fr 1.5fr auto;gap:14px;align-items:end;margin:24px 0}.beta-invite-form label{display:grid;gap:6px;font-size:14px}.beta-invite-form input{width:100%;min-height:44px}.beta-invite-row{display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:18px 0}.beta-invite-row small{display:block;margin-top:8px;color:var(--muted);font-size:14px}.admin-email-status{font-size:14px;color:var(--muted);line-height:1.6}@media(max-width:900px){.auth-layout{gap:32px;grid-template-columns:1fr;padding-top:8px;max-width:580px}.auth-intro{position:static;padding-top:0}.auth-intro h1{font-size:42px;margin:16px 0}.auth-intro h1 br{display:none}.auth-intro p:not(.eyebrow){font-size:16px;margin-bottom:0}.auth-brand-rule,.auth-intro>span{display:none}.auth-page-v6 .auth-panel{max-width:none}.beta-invite-form{grid-template-columns:1fr 1fr}}@media(max-width:520px){.auth-page-v6 .auth-panel{padding:24px 20px}.auth-intro h1{font-size:38px}.auth-layout{padding-bottom:32px}.auth-page-v6 .landing-header{padding-block:24px}.beta-invite-form{grid-template-columns:1fr}.beta-invite-row{align-items:flex-start;flex-direction:column}}

/* Shared interaction and readability rules. */
body { background: var(--ink); }
.primary-button, .action-button.primary { color: var(--surface); box-shadow: 0 5px 16px rgba(21, 21, 21,.13); }
.primary-button:hover, .action-button.primary:hover { background: var(--accent-hover); }
.secondary-button, .small-button, .icon-button, .action-button { background-color: var(--surface); }
.secondary-button:hover, .small-button:hover, .icon-button:hover, .action-button:hover { background-color: var(--surface-soft); }
.action-button.primary:hover { background-color: var(--accent-hover); }
.mode-tabs, .auth-tabs, .workout-scope-tabs { background: var(--surface-soft); }
.mode-tab.is-active, .auth-tab.is-active, .nav-button.is-active, .bottom-nav-button.is-active, .workout-scope-tab.is-active { background: var(--accent-soft); color: var(--accent-strong); }
.mode-tab[data-mode="social"].is-active { background: var(--blue-soft); color: var(--blue-text); }
.mode-tab[data-mode="match"].is-active, .action-button.match { background: var(--coral-soft); color: var(--coral); }
.nav-glyph { color: currentColor; }
.nav-button:hover { background: var(--surface-soft); }
.auth-panel, .person-card, .workout-card, .profile-form, .settings-card, .admin-report-card, .legal-document { box-shadow: 0 6px 24px rgba(21, 21, 21,.04); }
.gym-card { background: var(--surface); }
.onboarding-card, .profile-completion-card { background: var(--accent-soft); }
.chat-layout, .message { background: var(--surface); }
.chat-contacts { background: var(--surface-soft); }
.message.is-mine { background: var(--accent-soft); }
input, select, textarea { background: var(--surface); border-color: var(--field-line); }
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--accent); }
input, select, textarea { font-size: 1rem; }
.toggle-track span { background: var(--surface); }
.availability-toggle > input:focus-visible + .toggle-track { outline: 3px solid var(--accent); outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--accent); }
.auth-service-notice { background: var(--surface-soft); }
.beta-notice { background: var(--accent-soft); }
.eyebrow { font-size: .75rem; }
label, .compact-field span, .tag, .small-button, .action-button, .text-button, .auth-link-button, .availability-pill, .status-pill, .workout-scope-tab, .workout-stat-card span, .admin-stat-card span, .legal-note, .legal-check, .landing-legal-links a, .legal-inline-links a, .legal-nav a, .auth-page-v6 .legal-note, .auth-page-v6 .field-help { font-size: .875rem; }
.person-bio, .discover-toolbar p, .verification-banner span, .data-actions span, .verification-action-box p { font-size: 1rem; }
.message small, .participant-avatar, .avatar-sm, .status-chip, .mini-profile small { font-size: .75rem; }
.status-dot { box-shadow: none; }
@media(max-width:760px) {
  .bottom-nav { background: var(--surface); }
  .bottom-nav-button { font-size: .75rem; }
  .bottom-nav-button span { font-size: 1.1rem; }
  .workout-stat-card span { font-size: .8125rem; }
}

/* Brand hierarchy and selected states. */
.brand-highlight { color: var(--accent); background: linear-gradient(transparent 74%, var(--teal) 74%, var(--teal) 96%, transparent 96%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.landing-header .status-pill { background: var(--teal); color: var(--cloud); border-color: transparent; }
.auth-brand-rule { width: 78px; height: 5px; background: linear-gradient(90deg, var(--accent) 0 65%, var(--teal) 65%); border-radius: 999px; }
.auth-page-v6 .primary-button { align-items: center; gap: 12px; }
.auth-page-v6 .primary-button > span[aria-hidden="true"] { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; background: var(--teal); color: var(--cloud); }
.auth-tab.is-active { background: var(--accent); color: var(--surface); }
.auth-service-notice { background: var(--surface-soft); }
.nav-button.is-active, .bottom-nav-button.is-active { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.nav-button.is-active .nav-glyph { color: var(--teal); }
.nav-button.is-active .notification-badge { background: var(--teal); color: var(--cloud); border-color: transparent; }
.mode-tab[data-mode="train"].is-active { background: var(--teal); color: var(--cloud); }
.onboarding-card, .profile-completion-card { background: var(--accent-soft); border-color: var(--accent-line); }
.onboarding-card .progress-track { background: var(--accent-line); }
.beta-notice { background: var(--surface); }
.beta-notice strong { padding: 5px 8px; border-radius: 6px; background: var(--teal); color: var(--cloud); }
.workout-stat-card:first-child { background: var(--accent); border-color: var(--accent); }
.workout-stat-card:first-child strong { color: var(--teal); }
.workout-stat-card:first-child span { color: var(--surface); }
.workout-date-badge { background: var(--accent-soft); border-color: var(--accent-line); }
.gym-card .pin-icon { background: var(--accent-soft); color: var(--accent-strong); }
.completion-ring::after { background: var(--surface); }

/* Social discovery, interest communities and activities. */
.auth-intro h1 { font-size: clamp(2.5rem, 4vw, 3.9rem); line-height: 1.08; }
.auth-heading h2 { line-height: 1.25; }
.gym-copy small { line-height: 1.6; }
.discovery-interest-filters { display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:14px;margin:22px 0 12px; }
.inline-check { display:flex;align-items:center;gap:8px;min-height:48px;line-height:1.4; }
.inline-check input { width:18px;height:18px;accent-color:var(--accent); }
.matching-explanation { color:var(--muted);font-size:.875rem;line-height:1.65;max-width:750px;margin:0 0 20px; }
.interest-fieldset { border:0;padding:0;margin:0;min-width:0; }
.interest-fieldset legend { font-size:1.1rem;font-weight:800; }
.interest-fieldset p { color:var(--muted);line-height:1.6;font-size:.9375rem;margin:8px 0 16px; }
.interest-picker { display:flex;flex-wrap:wrap;gap:9px; }
.interest-choice { position:relative;cursor:pointer; }
.interest-choice input { position:absolute;opacity:0;width:1px;height:1px; }
.interest-choice span { border:1px solid var(--line-strong);border-radius:999px;padding:11px 15px;background:var(--surface);font-size:.875rem;line-height:1.3; }
.interest-choice input:checked + span { background:var(--accent);border-color:var(--accent);color:var(--surface); }
.interest-choice input:focus-visible + span { outline:3px solid var(--accent);outline-offset:3px; }
.shared-interest-tags { display:flex;flex-wrap:wrap;gap:7px; }
.interest-pill { display:inline-flex;align-items:center;align-self:start;border-radius:999px;background:var(--accent-soft);color:var(--accent-strong);font-size:.8125rem;font-weight:750;padding:7px 10px;width:fit-content; }
.affinity-reasons { margin:0;color:var(--accent-strong);font-size:.875rem;line-height:1.55;font-weight:650; }
.activity-category-filters { display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 22px;max-width:980px; }
.repeat-activity { margin-top:12px;color:var(--accent-strong); }
.community-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
.community-card { display:flex;flex-direction:column;gap:12px;padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--surface); }
.community-card.is-member { border-color:var(--accent); }
.community-card h2 { font-size:1.3rem;margin:0; }
.community-card>p { margin:0;color:var(--muted);line-height:1.55; }
.community-card>.eyebrow { color:var(--accent-strong); }
.community-metrics { display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--muted);font-size:.875rem; }
.community-card-actions { display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:auto;padding-top:10px; }
.community-card-actions .primary-button,.community-card-actions .secondary-button { width:100%; }
.community-room { margin-top:28px;padding:26px;background:var(--surface);border:1px solid var(--line-strong);border-radius:24px;scroll-margin-top:24px; }
.community-room-actions { display:flex;gap:12px;flex-wrap:wrap;margin:20px 0; }
.community-room .settings-heading p { max-width:540px; }
.community-posts { display:grid;gap:12px;max-height:520px;overflow-y:auto;margin:20px 0; }
.community-post { border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--surface-soft); }
.community-post-heading { display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap; }
.community-post-heading time { font-size:.8125rem;color:var(--muted); }
.community-post>p { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:10px 0; }
.community-post-actions { display:flex;gap:16px; }
#communityPostForm { display:grid;gap:8px; }
#communityPostForm>.primary-button { justify-self:start; }
.empty-card { gap:12px; }
.empty-card h2,.empty-card p { margin:0;line-height:1.5; }
@media(max-width:980px){.discovery-interest-filters{grid-template-columns:1fr 1fr}.inline-check{grid-column:1/-1}.community-grid{grid-template-columns:1fr}}
@media(max-width:600px){.discovery-interest-filters,.activity-category-filters{grid-template-columns:1fr}.community-card,.community-room{padding:19px}.community-room .settings-heading{flex-direction:column}.community-room-actions>*{width:100%}.auth-intro h1{font-size:2.3rem}.bottom-nav-button{font-size:.75rem}.interest-choice span{padding:10px 12px}}

/* Keep discovery controls close to the people they filter. */
#discoverView .view-heading { margin-bottom: 20px; }
#discoverView .onboarding-card { padding: 14px 18px; margin-bottom: 16px; }
#discoverView .onboarding-progress-wrap { grid-template-columns: auto minmax(60px,1fr) auto; }
#discoverView .onboarding-progress-wrap .small-button { grid-column: auto; }
#discoverView .mode-tabs { margin-bottom: 16px; }
#discoverView .gym-card { padding: 12px 16px; gap: 12px; grid-template-columns: 36px 1fr auto; border-radius: 16px; }
#discoverView .pin-icon { width: 34px; height: 34px; border-radius: 12px; }
#discoverView .gym-copy span { display: none; }
#discoverView .gym-copy small { font-size: .875rem; }
#discoverView .gym-card .small-button { grid-column: auto; }
#discoverView .discover-toolbar { margin: 22px 0 16px; }
.advanced-filters summary, .matching-explanation summary { cursor: pointer; color: var(--accent-text); font-weight: 650; font-size: .875rem; }
.advanced-filters .filter-row { margin-top: 12px; }
.advanced-filters .compact-field span { font-size: .875rem; }
.matching-explanation { margin: 12px 0 18px; }
.matching-explanation p { margin-bottom: 0; }
@media(max-width:640px) {
 #discoverView .onboarding-card { gap: 10px; }
 #discoverView .onboarding-copy h2 { font-size: 1rem; }
 #discoverView .onboarding-copy p { font-size: .875rem; }
 #discoverView .onboarding-progress-wrap .small-button { justify-self: end; }
 #discoverView .gym-card { grid-template-columns: 1fr auto; }
 #discoverView .pin-icon { display: none; }
 #discoverView .discover-toolbar { align-items: start; gap: 10px; }
 .advanced-filters { width: 100%; }
 .advanced-filters .filter-row { flex-direction: row; flex-wrap: wrap; }
 .advanced-filters .compact-field { flex: 1; min-width: 130px; }
}

/* Profile media follows the shared theme. */
.avatar { position:relative;overflow:hidden;flex-shrink:0; }
.avatar-photo { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.avatar.participant-avatar { width:34px;height:34px;font-size:.7rem;display:inline-grid; }
.profile-name-button { border:0;background:none;padding:0;text-align:left;cursor:pointer;font:inherit;color:inherit; }
.profile-name-button:hover,.profile-gallery-link:hover { text-decoration:underline; }
.profile-gallery-link { justify-self:start;color:var(--accent-strong); }
.profile-media-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px; }
.media-slot { border:1px solid var(--line);border-radius:18px;overflow:hidden;min-width:0;background:var(--surface); }
.media-slot-preview { aspect-ratio:1;overflow:hidden;background:var(--surface-soft); }
.media-slot-preview>img,.media-slot-preview>video { width:100%;height:100%;object-fit:cover; }
.media-slot-preview>video { object-fit:contain; }
.media-placeholder { display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;height:100%;text-align:center;padding:16px;color:var(--accent-strong);font-size:.875rem; }
.media-placeholder>span:first-child { font-size:2.2rem;line-height:1; }
.media-slot-content { padding:16px;display:flex;flex-direction:column;gap:12px; }
.media-slot-content h3,.media-slot-content p { margin:0; }
.media-slot-content h3 { font-size:1rem; }
.media-slot-content p { color:var(--muted);font-size:.875rem;line-height:1.6; }
.media-upload-label { position:relative;overflow:hidden;text-align:center;cursor:pointer;display:block; }
.media-file-input { position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer; }
.media-upload-label:focus-within { outline:3px solid var(--accent);outline-offset:3px; }
.media-upload-label:has(input:disabled) { opacity:.5;cursor:not-allowed; }
.media-file-actions { display:flex;gap:18px;flex-wrap:wrap;font-size:.875rem; }
.media-file-actions a { color:var(--accent-strong);font-weight:700; }
.danger-text { color:var(--danger); }
.media-slot-video { grid-column:1/-1;display:grid;grid-template-columns:minmax(160px,.7fr) 1fr; }
.media-slot-video .media-slot-preview { aspect-ratio:16/10; }
.media-notice { font-size:.875rem;line-height:1.65;color:var(--muted);margin:16px 0 0; }
.media-upload-dialog,.media-profile-dialog { width:min(780px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:26px;border:1px solid var(--line-strong);border-radius:24px;background:var(--surface);color:var(--cloud); }
.media-upload-preview { margin:20px 0;background:var(--surface-soft);border-radius:16px;overflow:hidden; }
.media-upload-preview img,.media-upload-preview video { width:100%;max-height:50dvh;object-fit:contain;display:block; }
#mediaUploadProgress { width:100%;height:10px;accent-color:var(--accent); }
#mediaUploadStatus { font-size:.9375rem;line-height:1.5; }
.dialog-actions { display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;margin-top:20px; }
.profile-gallery { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0; }
.profile-gallery figure { margin:0;min-width:0; }
.profile-gallery figure:first-child { grid-column:1/-1; }
.profile-gallery img,.profile-gallery video { width:100%;max-height:520px;object-fit:contain;border-radius:16px;background:var(--surface-soft); }
.profile-gallery figure:has(video) { grid-column:1/-1; }
.profile-gallery figcaption { display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:.875rem;color:var(--muted); }
.gallery-profile-meta { color:var(--muted); }
.empty-media-gallery { grid-column:1/-1;padding:26px 0;color:var(--muted); }
.community-author { border:0;background:none;display:flex;align-items:center;gap:10px;cursor:pointer;padding:0;text-align:left; }
@media(max-width:700px){.profile-media-grid{grid-template-columns:1fr}.media-slot{display:grid;grid-template-columns:minmax(110px,.65fr) 1fr}.media-slot-video{grid-template-columns:1fr}.media-slot-preview{aspect-ratio:auto;min-height:170px}.media-slot-video .media-slot-preview{aspect-ratio:16/9}.profile-media-settings .settings-heading{flex-direction:column}.media-upload-dialog,.media-profile-dialog{padding:20px}.profile-gallery{gap:12px}}

/* Demo and activity tools */
.demo-entry {display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:18px; margin:20px 0; background:var(--surface-soft); border:1px solid var(--line); border-radius:16px;}
.demo-entry div {flex:1 1 220px}.demo-entry p {font-size:.9rem;margin:6px 0 0;color:var(--muted)}.demo-entry a {text-decoration:none;text-align:center}
.beta-notice a {color:var(--cloud);font-weight:700;white-space:nowrap}
.demo-notice {display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:12px;padding:16px 20px;margin-bottom:24px;}
.demo-notice strong {display:block;font-size:.8rem;letter-spacing:.08em;color:var(--cloud)}.demo-notice p {margin:5px 0 0;font-size:.9rem;line-height:1.5;color:var(--muted)}.demo-notice-actions {display:flex;align-items:center;gap:16px;flex-shrink:0}.demo-notice a {color:var(--cloud);font-size:.9rem;font-weight:700;white-space:nowrap;}
.demo-shortcuts {display:flex;gap:8px;margin:0 0 22px;flex-wrap:wrap}.demo-shortcuts .small-button {font-size:.9rem}
.activity-category-filters {grid-template-columns:repeat(3,minmax(0,1fr))}
.workout-extra-actions {display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:12px}.save-activity[aria-pressed="true"] {color:var(--cloud)}.workout-extra-actions button {min-height:36px}
@media(max-width:800px){.demo-notice {align-items:flex-start;flex-direction:column;gap:12px;padding:14px;margin-bottom:18px}.demo-notice-actions {flex-wrap:wrap}.activity-category-filters {grid-template-columns:1fr}.beta-notice {flex-wrap:wrap}.workout-toolbar {flex-wrap:wrap}.workout-scope-tabs {flex-wrap:wrap}.workout-search {width:100%;min-width:0}}

/* Accent states and accessibility. */
.mode-tab.is-active,
.mode-tab[data-mode="social"].is-active,
.mode-tab[data-mode="match"].is-active,
.mode-tab[data-mode="train"].is-active { background: var(--teal); color: var(--cloud); }
.workout-scope-tab.is-active { background: var(--teal); color: var(--cloud); }
.interest-choice input:checked + span { background: var(--teal); border-color: var(--accent-strong); color: var(--cloud); }
.check-card input:checked + span { background: var(--accent-soft); border-color: var(--accent-strong); }
.availability-toggle > input:checked + .toggle-track { background: var(--teal); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.availability-toggle > input:checked + .toggle-track span { background: var(--cloud); }
.person-card::after { background: var(--accent-soft); }
.notification-badge { background: var(--teal); color: var(--cloud); border-color: transparent; }
.community-card.is-member { border-color: var(--accent-line); }
.message.is-mine { background: var(--accent-soft); border-color: var(--accent-line); }
.chat-contact.is-active { background: var(--accent-soft); border-color: var(--accent-line); }
.demo-notice { box-shadow: 0 3px 12px rgba(0,0,0,.025); }
.demo-notice strong { display: inline-block; background: var(--teal); color: var(--cloud); padding: 4px 7px; border-radius: 5px; }
.demo-entry { border-left: 4px solid var(--teal); }
.tag.is-live { background: var(--accent-soft); border-color: var(--accent-line); color: var(--success); }
.tag.is-same-gym { background: var(--surface-soft); color: var(--cloud); }
:where(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--cloud); outline-offset: 3px; }
:where(.primary-button,.nav-button,.bottom-nav-button,.auth-tab):focus-visible { box-shadow: 0 0 0 3px var(--teal); }
::selection { background: var(--teal); color: var(--cloud); }

/* Demo portraits: visible in discovery, with the same private-profile layout. */
.demo-mode .person-top .avatar { width:80px;height:80px;border-radius:18px;border:1px solid var(--line);box-shadow:none; }
.demo-media-slot { max-width:360px; }
.demo-mode .profile-gallery figcaption { color:var(--muted);font-size:.875rem; }
@media(max-width:480px){.demo-mode .person-top .avatar{width:70px;height:70px;border-radius:15px}.demo-media-slot{max-width:none}}

/* Match: one person at a time. */
.discovery-filters { margin:0 0 22px; border:1px solid var(--line); border-radius:14px; padding:13px 16px; background:var(--surface); }
.discovery-filters > summary { font-weight:700; cursor:pointer; font-size:.95rem; }
.discovery-filters .advanced-filters { margin-top:14px; }
.discovery-filters .filter-row { position:static; box-shadow:none; }
.is-match-discovery .gym-card,.is-match-discovery .demo-shortcuts { display:none; }
.is-match-discovery .view-heading { display:none; }
.is-match-discovery .discover-toolbar { margin:0 0 12px; }
.is-match-discovery .discover-toolbar h2 { font-size:2rem; letter-spacing:-.04em; }
.is-match-discovery .discover-toolbar p { font-size:1rem; }
.is-match-discovery .discovery-filters { margin-bottom:16px; }
.people-grid.match-stage { display:block; }
.match-deck { max-width:480px; margin:0 auto; }
.match-deck-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px; font-size:.875rem; color:var(--muted); margin:0 2px 9px; }
.match-card { background:var(--surface); border:1px solid var(--line-strong); border-radius:24px; box-shadow:0 12px 35px rgba(15,23,32,.07); transition:transform .18s ease; touch-action:pan-y; }
.match-card:focus-visible { outline:3px solid var(--cloud); outline-offset:5px; }
.match-portrait { height:300px; position:relative; overflow:hidden; border-radius:23px 23px 0 0; background:var(--surface-soft); user-select:none; }
.match-portrait .avatar.match-photo { width:100%; height:100%; border:0; border-radius:0; box-shadow:none; font-size:5rem; background:var(--surface-soft); color:var(--cloud); }
.match-photo .avatar-photo { width:100%; height:100%; object-fit:cover; object-position:center 35%; pointer-events:none; }
.match-photo-caption { position:absolute; top:14px; left:14px; padding:5px 9px; border-radius:6px; background:var(--surface); color:var(--cloud); font-size:.75rem; font-weight:750; letter-spacing:.04em; }
.match-card-content { padding:18px 22px 6px; }
.match-person-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.match-person-heading h3 { margin:0; font-size:1.6rem; letter-spacing:-.03em; line-height:1.15; }
.match-person-heading p { margin:5px 0 0; color:var(--muted); font-size:.9rem; }
.match-info-button { flex:none; width:40px; height:40px; border:1px solid var(--line-strong); border-radius:50%; background:var(--surface); color:var(--cloud); font-size:1.2rem; font-weight:700; cursor:pointer; }
.match-card .shared-interest-tags { margin:14px 0 10px; gap:6px; }
.match-card .interest-pill { color:var(--muted); background:var(--surface-soft); font-size:.875rem; font-weight:600; }
.match-card .interest-pill.match-shared { background:var(--mint); color:var(--midnight); }
.match-bio { font-size:1rem; line-height:1.45; margin:10px 0; }
.match-reasons { font-size:.875rem; color:var(--muted); line-height:1.4; margin:10px 0 6px; }
.match-decisions { display:grid; grid-template-columns:1fr 1.45fr; gap:12px; padding:14px 22px 20px; background:var(--surface); border-radius:0 0 24px 24px; }
.match-decisions button { min-height:56px; display:flex; justify-content:center; align-items:center; gap:10px; border-radius:14px; cursor:pointer; font-weight:750; font-size:1rem; transition:filter .15s,transform .15s; }
.match-decisions button:active { transform:scale(.97); }
.match-decisions button span { font-size:1.8rem; font-weight:400; line-height:1; }
.match-pass { background:var(--surface); border:1px solid var(--field-line); color:var(--cloud); }
.match-like { background:var(--teal); border:1px solid var(--accent-strong); color:var(--cloud); }
.match-decisions button:disabled { opacity:.55; cursor:wait; }
.match-help { text-align:center; font-size:.875rem; line-height:1.6; color:var(--muted); margin:17px 0 8px; }
.match-report { display:block; margin:0 auto; font-size:.875rem; color:var(--muted); }
.match-swipe-label { display:none; position:absolute; top:65px; right:24px; border:3px solid var(--cloud); border-radius:8px; padding:8px 12px; background:var(--teal); color:var(--cloud); font-weight:850; transform:rotate(8deg); }
.match-card[data-swipe="like"] { transform:translateX(18px) rotate(2deg); }
.match-card[data-swipe="pass"] { transform:translateX(-18px) rotate(-2deg); }
.match-card[data-swipe="like"] .match-swipe-label,.match-card[data-swipe="pass"] .match-swipe-label { display:block; }
.match-card[data-swipe="pass"] .match-swipe-label { background:var(--surface); right:auto; left:24px; transform:rotate(-8deg); }
.match-empty { max-width:480px; margin:16px auto; padding:40px 24px; text-align:center; border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.match-empty-symbol { display:inline-grid; width:64px; height:64px; place-items:center; font-size:2.5rem; border-radius:50%; background:var(--teal); }
.match-empty h3 { font-size:1.5rem; }
.match-empty p { color:var(--muted); line-height:1.5; }
.match-empty button { display:block; margin:16px auto 0; }
.match-success-dialog { width:min(460px,calc(100% - 30px)); padding:26px; border:1px solid var(--line); border-radius:26px; text-align:center; color:var(--cloud); background:var(--surface); }
.match-success-dialog h2 { font-size:2.8rem; letter-spacing:-.05em; margin:10px 0 24px; }
.match-success-dialog .eyebrow { color:var(--accent-strong); margin-top:28px; }
.match-close { display:block; margin-left:auto; }
.match-success-people { display:flex; align-items:center; justify-content:center; gap:14px; }
.match-success-people > span:not(.avatar) { font-size:2rem; color:var(--accent-strong); }
.match-success-avatar.avatar { width:110px; height:110px; border-radius:50%; border:5px solid var(--teal); }
.match-success-dialog p { font-size:1rem; line-height:1.5; }
.match-success-actions { display:grid; gap:12px; margin-top:22px; }
@media(min-width:1100px) {
 .is-match-discovery { max-width:860px; margin:0 auto; }
 .is-match-discovery .mode-tabs { max-width:none; }
}
@media(max-width:600px) {
 .match-portrait { height:260px; }
 .match-card-content { padding:16px 17px 4px; }
 .match-person-heading h3 { font-size:1.45rem; }
 .match-decisions { padding:12px 17px 17px; gap:10px; }
 .match-deck-meta { font-size:.8125rem; }
 .match-deck-meta > span:last-child { display:none; }
 .match-card { border-radius:20px; }
 .match-portrait { border-radius:19px 19px 0 0; }
 .match-success-avatar.avatar { width:94px; height:94px; }
 .match-bio { font-size:1rem; }
 .is-match-discovery .discover-toolbar h2 { font-size:1.8rem; }
 .is-match-discovery .mode-tabs { margin-bottom:14px; }
}
@media(prefers-reduced-motion:reduce) { .match-card,.match-decisions button { transition:none; } }
.demo-description { width:100%; }
.demo-description > summary { cursor:pointer; font-size:.875rem; }
.demo-description > summary strong { font-size:.8125rem; letter-spacing:.025em; }
.demo-description .demo-notice-actions { margin-top:12px; }
.match-active .demo-notice { padding:11px 15px; margin-bottom:15px; }
.match-decisions { position:sticky; bottom:18px; z-index:2; border-top:1px solid var(--line); }
@media(max-width:600px) {
 .match-active .mobile-header { margin-bottom:14px; }
 .match-active .demo-notice { padding:10px 12px; margin-bottom:13px; }
 .match-decisions { bottom:calc(78px + env(safe-area-inset-bottom,0px)); }
 .match-portrait { height:240px; }
}

/* GYVRA identity: readable color pairs and adaptive light/dark surfaces. */
h1,h2,h3,.match-person-heading h3 { font-family:Sora,Inter,ui-sans-serif,sans-serif; }
.brand-highlight { color:var(--accent-strong);background:none; }
.auth-brand-rule { background:linear-gradient(90deg,var(--teal) 0 65%,var(--mint) 65%); }
.primary-button,.action-button.primary,.auth-tab.is-active,.nav-button.is-active,.bottom-nav-button.is-active,
.mode-tab.is-active,.mode-tab[data-mode="train"].is-active,.mode-tab[data-mode="match"].is-active,
.workout-scope-tab.is-active,.notification-badge,.beta-notice strong,.demo-notice strong,
.landing-header .status-pill,.interest-choice input:checked + span { color:var(--on-accent); }
.primary-button,.action-button.primary,.auth-tab.is-active,.nav-button.is-active,.bottom-nav-button.is-active { background:var(--teal); }
.primary-button:hover,.action-button.primary:hover { background:var(--accent-hover); }
.nav-button.is-active .nav-glyph { color:var(--midnight); }
.nav-button.is-active .notification-badge { background:var(--midnight);color:var(--mint); }
.auth-page-v6 .primary-button > span[aria-hidden="true"] { background:var(--midnight);color:var(--mint); }
.auth-service-notice { background:var(--surface-soft); }
.workout-stat-card:first-child { background:var(--midnight);border-color:var(--line-strong); }
.workout-stat-card:first-child strong { color:var(--mint); }
.workout-stat-card:first-child span { color:#F7FAFC; }
.feature-icon,.pin-icon { background:var(--accent-soft); }
input,select,textarea { color:var(--cloud); }
input::placeholder,textarea::placeholder { color:var(--muted-2);opacity:1; }
.toggle-track span { background:#F7FAFC; }
.availability-toggle > input:checked + .toggle-track span { background:var(--midnight); }
.match-like,.match-swipe-label,.match-empty-symbol { color:var(--midnight); }
.match-like { border-color:var(--accent); }
.match-like:hover { background:var(--accent-hover); }
.match-pass span { color:var(--coral); }
.match-pass:hover,.match-card[data-swipe="pass"] .match-swipe-label { background:var(--coral-soft);color:var(--coral); }
.match-photo-caption { background:rgba(15,23,32,.86);color:#F7FAFC; }
.match-card .interest-pill.match-shared { background:var(--accent-soft);color:var(--accent-strong); }
.match-success-avatar.avatar { border-color:var(--mint); }
::selection { background:var(--mint);color:var(--midnight); }
.logo-pair { display:block;flex-shrink:0; }
.logo-pair .logo-dark { display:none; }
[data-theme="dark"] .logo-pair .logo-light { display:none; }
[data-theme="dark"] .logo-pair .logo-dark { display:block; }
.theme-switch { display:inline-flex;gap:3px;align-items:center;padding:4px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface-soft);flex-shrink:0; }
.theme-switch button { display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 12px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:.8125rem;font-weight:700;cursor:pointer; }
.theme-switch button[aria-pressed="true"] { background:var(--surface);color:var(--cloud);box-shadow:0 1px 5px rgba(0,0,0,.09); }
.theme-switch svg { width:16px;height:16px;flex-shrink:0; }
.theme-switch button[aria-pressed="true"] svg { color:var(--accent-strong); }
.sidebar > .theme-switch { margin-top:auto;margin-bottom:16px;align-self:center; }
.sidebar-footer { margin-top:0; }
.header-actions { display:flex;align-items:center;gap:16px; }
.mobile-header { gap:10px; }
.mobile-header .header-actions { gap:8px; }
.welcome-shell > .theme-switch { margin:0 0 24px; }
.legal-header { flex-wrap:wrap; }
@media(max-width:760px) {
 .landing-header { gap:16px;flex-wrap:wrap; }
 .landing-header .header-actions { gap:10px; }
 .landing-header .status-pill { display:none; }
 .mobile-header .theme-switch button { min-height:36px;padding:7px 9px;gap:5px; }
 .mobile-header > .logo-pair img { width:112px; }
 .mobile-header .icon-button { width:34px;min-width:34px;height:36px; }
}
@media(max-width:360px) { .mobile-header .theme-switch button span { display:none; } .mobile-header .theme-switch button { min-width:36px; } }

.welcome-shell .logo-pair { max-width:180px;margin-bottom:28px; }

/* Activity detail: a shared meeting point, in both themes. */
.workout-title-button {border:0;padding:0;background:none;text-align:left;color:var(--cloud);font:inherit;cursor:pointer;text-decoration-thickness:1px;text-underline-offset:4px;}
.workout-title-button:hover {text-decoration:underline;}
.activity-detail-dialog {width:min(760px,calc(100vw - 32px));max-height:90dvh;padding:0;border:1px solid var(--line-strong);border-radius:26px;background:var(--surface);color:var(--cloud);box-shadow:var(--shadow);overflow:hidden;}
.activity-detail-dialog[open] {display:flex;flex-direction:column;}
.activity-detail-dialog::backdrop {background:rgba(5,14,22,.7);backdrop-filter:blur(4px);}
.activity-detail-header {display:flex;align-items:start;justify-content:space-between;gap:18px;padding:25px 28px 20px;flex-shrink:0;}
.activity-detail-header h2 {margin:0;font-size:1.65rem;line-height:1.25;letter-spacing:-.035em;}
.activity-detail-header .small-button {flex-shrink:0;}
.activity-detail-header .eyebrow {margin-bottom:8px;font-size:.8125rem;}
.activity-detail-tabs {display:flex;gap:24px;border-bottom:1px solid var(--line);padding:0 28px;flex-shrink:0;}
.activity-detail-tabs button {border:0;border-bottom:3px solid transparent;background:none;padding:12px 2px;font-weight:750;font-size:1rem;color:var(--muted);cursor:pointer;}
.activity-detail-tabs button[aria-selected="true"] {color:var(--accent-strong);border-bottom-color:var(--teal);}
.activity-detail-body {padding:24px 28px;overflow-y:auto;overscroll-behavior:contain;min-height:0;}
.activity-detail-body [hidden],.activity-detail-dialog [hidden] {display:none;}
.activity-status {display:flex;align-items:center;gap:10px;padding:13px 16px;border-radius:12px;background:var(--accent-soft);color:var(--accent-strong);font-size:.9375rem;font-weight:700;}
.activity-status.is-cancelled {background:var(--coral-soft);color:var(--coral);}
.activity-status > span {font-size:1.2rem;}
.activity-demo-note {font-size:.875rem;color:var(--muted);margin:12px 0 0;}
.activity-facts {display:grid;grid-template-columns:1fr 1fr;gap:24px 28px;margin:26px 0;padding-bottom:26px;border-bottom:1px solid var(--line);}
.activity-facts dt {color:var(--muted);font-size:.875rem;margin-bottom:7px;}
.activity-facts dd {margin:0;font-size:1rem;line-height:1.5;font-weight:650;}
.activity-facts small {display:block;font-size:.875rem;font-weight:400;color:var(--muted);margin-top:4px;}
.activity-organizer {display:flex;gap:10px;align-items:center;}
.activity-description h3,.activity-members h3 {font-size:1.0625rem;margin:0;}
.activity-description p {font-size:1rem;line-height:1.65;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 26px;}
.activity-section-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.activity-members-list {display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.activity-member {display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;min-width:0;}
.activity-member > div {min-width:0;flex:1;}
.activity-member strong {font-size:.9375rem;overflow-wrap:anywhere;}
.activity-member small {display:block;margin-top:4px;font-size:.8125rem;color:var(--muted);}
.activity-member .text-button {font-size:.875rem;color:var(--accent-strong);}
.activity-footnote {font-size:.875rem;color:var(--muted);line-height:1.5;}
.activity-detail-footer {flex-shrink:0;border-top:1px solid var(--line);padding:16px 28px 18px;background:var(--surface);}
.activity-footer-main {display:flex;align-items:center;gap:10px;}
.activity-footer-main .primary-button {flex:1;}
.activity-footer-links {display:flex;justify-content:space-between;gap:10px;margin-top:6px;}
.activity-footer-links:empty {display:none;}
.activity-chat-heading {display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:22px;}
.activity-chat-heading p {font-size:.875rem;line-height:1.5;margin:0;color:var(--muted);}
.activity-chat-locked {padding:30px 10px;text-align:center;color:var(--muted);}
.activity-chat-locked > span {display:inline-grid;place-items:center;width:56px;height:56px;font-size:2rem;border-radius:50%;background:var(--accent-soft);color:var(--accent-strong);}
.activity-chat-locked h3 {font-size:1.15rem;color:var(--cloud);line-height:1.4;}
.activity-chat-locked p {font-size:1rem;line-height:1.6;max-width:420px;margin:0 auto;}
.activity-chat-messages {display:flex;flex-direction:column;gap:14px;}
.activity-message {width:90%;align-self:start;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft);}
.activity-message.is-mine {align-self:end;background:var(--accent-soft);border-color:var(--accent-line);}
.activity-message header {display:flex;align-items:center;gap:9px;}
.activity-message strong {font-size:.875rem;}
.activity-message time {display:block;color:var(--muted);font-size:.8125rem;margin-top:3px;}
.activity-message p {font-size:1rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 6px;}
.activity-message-actions {display:flex;justify-content:flex-end;gap:16px;}
.activity-message-actions .text-button {font-size:.8125rem;padding-bottom:0;}
#activityChatForm {display:grid;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line);}
#activityChatForm textarea {resize:vertical;min-height:84px;}
.activity-composer-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.activity-composer-actions small {color:var(--muted);font-size:.8125rem;}
#activityOlderMessages {margin-bottom:14px;color:var(--accent-strong);}
.activity-detail-dialog:has(#activityChatPanel:not([hidden])) .activity-detail-body {display:flex;flex-direction:column;overflow:hidden;}
#activityChatPanel:not([hidden]) {display:flex;flex-direction:column;min-height:0;flex:1;}
.activity-chat-messages {overflow-y:auto;overscroll-behavior:contain;min-height:80px;max-height:42dvh;padding-right:4px;}
.activity-chat-heading,#activityChatComposer,#activityOlderMessages {flex-shrink:0;}
#activityChatComposer #activityChatForm {margin-top:14px;padding-top:14px;}
#activityChatForm textarea {min-height:64px;max-height:120px;}
@media(max-width:600px) {
 .activity-detail-dialog {width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px;}
 .activity-detail-header {padding:20px 18px 14px;gap:10px;}
 .activity-detail-header h2 {font-size:1.3rem;}
 .activity-detail-header .eyebrow {font-size:.75rem;letter-spacing:.08em;}
 .activity-detail-tabs {padding:0 18px;}
 .activity-detail-body {padding:20px 18px;}
 .activity-facts {grid-template-columns:1fr;gap:18px;margin:22px 0;padding-bottom:22px;}
 .activity-members-list {grid-template-columns:1fr;}
 .activity-detail-footer {padding:12px 18px max(14px,env(safe-area-inset-bottom));}
 .activity-footer-main .primary-button {font-size:.9375rem;}
 .activity-footer-links {flex-wrap:wrap;gap:0 12px;}
 .activity-footer-links button {font-size:.875rem;}
 .activity-message {width:96%;padding:14px;}
 .activity-composer-actions {align-items:center;flex-direction:row;}
 .activity-composer-actions small {max-width:85px;}
 .activity-composer-actions .primary-button {min-height:44px;font-size:.9375rem;}
}

/* Waitlist: consent and queue status stay beside the event details. */
.activity-waitlist{padding:18px;margin:16px 0;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft);display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.activity-waitlist>div{flex:1 1 260px}.activity-waitlist h3{margin:5px 0 8px}.activity-waitlist p{margin:0;line-height:1.6;color:var(--muted)}
.activity-waitlist .eyebrow{color:var(--cloud)}

/* Navigation: one icon family, clear current section, and comfortable thumb targets. */
.nav-icon {display:block;width:24px;height:24px;flex:none;pointer-events:none;}
.nav-glyph .nav-icon {width:23px;height:23px;}
.nav-button .nav-glyph {color:inherit;}
.nav-icon-accent {fill:currentColor;fill-opacity:.12;}
.header-actions>.icon-button {display:grid;place-items:center;min-width:44px;min-height:44px;}
@media(max-width:760px) {
 .app-page {--mobile-nav-space:calc(112px + env(safe-area-inset-bottom,0px));}
 .app-main {padding-bottom:var(--mobile-nav-space);padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));}
 .bottom-nav {left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));bottom:calc(10px + env(safe-area-inset-bottom,0px));max-width:560px;margin-inline:auto;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:7px 5px;border:1px solid var(--line);border-radius:26px;background:var(--surface);box-shadow:0 8px 32px rgba(15,23,32,.14),0 2px 6px rgba(15,23,32,.04);}
 .bottom-nav .bottom-nav-button {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:62px;padding:3px 0 4px;border-radius:18px;background:transparent;color:var(--muted);font-size:.875rem;font-weight:600;line-height:1.25;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:color 160ms ease;}
 .bottom-nav .bottom-nav-icon {position:relative;display:grid;place-items:center;width:50px;max-width:100%;height:32px;border-radius:14px;transition:background 160ms ease,transform 160ms ease;color:inherit;}
 .bottom-nav .bottom-nav-label {font-size:inherit;color:inherit;white-space:nowrap;}
 .bottom-nav .bottom-nav-button.is-active {color:var(--cloud);background:transparent;font-weight:700;}
 .bottom-nav .bottom-nav-button.is-active .bottom-nav-icon {background:var(--accent-soft);color:var(--accent-strong);box-shadow:inset 0 0 0 1px var(--accent-line);}
 .bottom-nav .bottom-nav-button:active .bottom-nav-icon {transform:scale(.93);}
 .bottom-nav .bottom-nav-button:focus-visible {outline:2px solid var(--accent-strong);outline-offset:1px;box-shadow:none;}
 .bottom-nav .mobile-request-badge {position:absolute;top:-3px;right:0;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border:2px solid var(--surface);border-radius:12px;background:var(--midnight);color:var(--mint);font-size:.75rem;line-height:1;font-weight:700;}
 :root[data-theme="dark"] .bottom-nav .mobile-request-badge {background:var(--mint);color:var(--midnight);}
 .bottom-nav .mobile-request-badge.is-hidden {display:none;}
 .app-page .toast {bottom:var(--mobile-nav-space);}
 .match-decisions {bottom:calc(96px + env(safe-area-inset-bottom,0px));}
}
@media(prefers-reduced-motion:reduce) {
 .bottom-nav .bottom-nav-button,.bottom-nav .bottom-nav-icon {transition:none;}
 .bottom-nav .bottom-nav-button:active .bottom-nav-icon {transform:none;}
}

/* Direct conversations — list, thread and composer share a bounded viewport. */
.chat-view-heading{align-items:center;margin-bottom:24px}.chat-view-heading h1{font-size:2.2rem}.chat-view-heading .eyebrow{margin-bottom:7px}
.chat-layout{grid-template-columns:minmax(260px,.36fr) minmax(0,1fr);height:min(76dvh,800px);min-height:480px;box-shadow:0 12px 40px rgba(15,23,32,.04)}
.chat-contacts{display:flex;flex-direction:column;min-height:0;padding:22px 12px;background:var(--surface);overflow:hidden}
.chat-list-heading{display:flex;align-items:center;justify-content:space-between;padding:0 10px;margin-bottom:18px}.chat-list-heading h2{font-size:1rem;margin:0}
.chat-search{display:block;padding:0 6px 18px}.chat-search input{width:100%;min-width:0;font-size:1rem;background:var(--surface-soft);border-color:var(--line);border-radius:14px}
#chatContacts{display:flex;flex-direction:column;gap:4px;overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;padding:0 2px 4px;overscroll-behavior:contain}
.chat-contact{flex:none;min-width:0;width:100%;padding:13px 10px;gap:12px;border-radius:16px}.chat-contact .avatar-sm{width:46px;height:46px}
.chat-contact-copy{display:block;min-width:0}.chat-contact-heading{display:flex;align-items:baseline;gap:8px}.chat-contact-heading strong{font-size:.95rem;flex:1;min-width:0}.chat-contact-heading time{color:var(--muted);font-size:.75rem;white-space:nowrap}
.chat-contact-copy small{font-size:.875rem;line-height:1.5;margin-top:4px}.chat-connection-kind{display:block;font-size:.75rem;color:var(--accent-strong);margin-top:5px}.chat-contact.is-active{background:var(--accent-soft);border-color:var(--accent-line)}
.chat-list-heading h2{display:flex;align-items:center;gap:10px}.chat-list-heading .count-pill{font-size:.875rem}
.chat-list-filters{display:flex;gap:8px;padding:0 6px 14px;flex-wrap:wrap}.chat-list-filters button{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 14px;border:1px solid var(--line-strong);border-radius:24px;background:var(--surface);color:var(--cloud);font:inherit;font-size:.875rem;cursor:pointer}.chat-list-filters button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-text);border-color:var(--accent-line)}.chat-list-filters #chatUnreadCount{font-size:.875rem;font-weight:700}
.chat-inbox-status{font-size:.875rem;line-height:1.4;color:var(--muted);margin:0 8px 12px}.chat-inbox-status:empty{display:none}
.chat-contact-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}.chat-contact-footer .chat-connection-kind{margin:0;font-size:.8125rem}.chat-unread-pill{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:26px;padding:3px 7px;border-radius:16px;font-size:.875rem;font-weight:700;background:var(--teal);color:var(--on-accent)}.chat-contact.has-unread{border-color:var(--accent-line)}.chat-contact.has-unread .chat-contact-copy small{color:var(--cloud);font-weight:600}
.chat-list-empty{padding:20px 10px;color:var(--muted);line-height:1.6}.chat-list-empty strong{color:var(--cloud)}.chat-list-empty button{margin-top:8px}
.chat-panel{position:relative;min-height:0;background:var(--ink);overflow:hidden}.chat-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;flex-shrink:0;padding:16px;background:var(--surface)}
.chat-icon-button{border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--cloud);display:grid;place-items:center;width:40px;height:40px;cursor:pointer;flex:none}.chat-icon-button svg,.chat-send svg{width:22px;height:22px}.chat-back{display:none}
.chat-header{grid-template-columns:minmax(0,1fr) auto auto}.chat-profile-button{border:0;background:none;padding:0;display:flex;align-items:center;gap:10px;min-width:0;text-align:left;cursor:pointer}.chat-header-copy{min-width:0}.chat-header-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem}.chat-header-copy small{font-size:.8125rem;color:var(--muted)}
.chat-header .chat-safety{margin:0;font-size:.8125rem;padding:7px 0;color:var(--muted)}.chat-profile-button .avatar-sm{width:40px;height:40px;flex:none}
.chat-sync-row{padding:9px 18px;color:var(--muted);font-size:.75rem;line-height:1.5;flex-shrink:0;border-bottom:1px solid var(--line);background:var(--surface)}
.direct-chat-invite{flex-shrink:0;padding:10px 18px;background:var(--accent-soft);max-height:25%;overflow:auto}.direct-chat-invite summary{cursor:pointer;font-size:.875rem;color:var(--accent-strong)}
.message-list{min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:20px;gap:8px;overscroll-behavior:contain;scrollbar-gutter:stable}
.message{max-width:min(82%,560px);padding:12px 15px;background:var(--surface);border-color:var(--line);border-radius:18px 18px 18px 5px;box-shadow:0 2px 6px rgba(15,23,32,.025)}
.message.is-mine{background:var(--accent-soft);border-color:var(--accent-line);border-radius:18px 18px 5px 18px}.message p{font-size:1rem;line-height:1.55;white-space:pre-wrap}.message small{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:6px;font-size:.75rem;color:var(--muted)}.chat-sent{font-weight:700;color:var(--accent-strong)}
.message.is-pending{opacity:.75}.message.is-failed{opacity:1;border-color:var(--coral)}.message.is-failed small{color:var(--coral)}.message.is-failed button{border:0;background:none;color:inherit;text-decoration:underline;font-weight:700;cursor:pointer;padding:6px}
.chat-day-divider{display:flex;justify-content:center;padding:12px 0;flex:none}.chat-day-divider span{font-size:.75rem;font-weight:600;color:var(--muted);background:var(--surface);padding:5px 12px;border:1px solid var(--line);border-radius:20px}
.chat-older{align-self:center;flex:none;border:1px solid var(--line);background:var(--surface);color:var(--accent-strong);border-radius:20px;padding:9px 14px;font-size:.875rem;cursor:pointer}
.chat-form{grid-template-columns:minmax(0,1fr) auto;flex:none;align-items:end;gap:8px;padding:14px 16px 10px;background:var(--surface)}
.chat-form textarea{width:100%;min-height:46px;max-height:112px;resize:none;padding:12px 14px;font-size:1rem;line-height:1.4;border-radius:16px;background:var(--surface-soft)}
.chat-form .chat-send{height:46px;width:46px;min-height:46px;padding:0;border-radius:15px;display:grid;place-items:center}
.chat-composer-meta{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;font-size:.75rem;color:var(--muted)}.chat-mobile-hint{display:none}
.chat-new-messages{align-self:center;flex:none;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--accent-strong);border-radius:20px;padding:8px 16px;margin:4px 0 10px;cursor:pointer;font-weight:600}.chat-new-messages[hidden]{display:none}
.direct-chat-empty,.chat-conversation-empty{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;color:var(--muted)}.direct-chat-empty h2{font-size:1.5rem;line-height:1.45;color:var(--cloud);max-width:420px}.direct-chat-empty p,.chat-conversation-empty p{max-width:350px;line-height:1.6}.direct-chat-empty>span{display:grid;place-items:center;width:76px;height:76px;background:var(--accent-soft);color:var(--accent-strong);border:1px solid var(--accent-line);border-radius:26px}.direct-chat-empty svg{width:34px;height:34px}.chat-conversation-empty h3{font-size:1.15rem;color:var(--cloud);margin-bottom:0}
@media(max-width:760px){
 body.direct-chat-view{overflow:hidden}.direct-chat-view .app-main{position:fixed;top:var(--chat-top,0px);left:0;right:0;height:var(--chat-viewport,100dvh);padding:16px max(14px,env(safe-area-inset-right,0px)) calc(100px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;overflow:hidden}
 .direct-chat-view .mobile-header,.direct-chat-view .beta-notice,.direct-chat-view .demo-notice,.direct-chat-view #emailVerificationBanner{display:none}
 .direct-chat-view #chatView{display:flex;flex-direction:column;flex:1;min-height:0}.chat-view-heading{flex-direction:row;align-items:center;flex-shrink:0;gap:12px;margin-bottom:16px}.chat-view-heading h1{font-size:1.8rem}.chat-view-heading .eyebrow{font-size:.6875rem;letter-spacing:.12em}.chat-view-heading>.secondary-button{font-size:.875rem;min-height:42px;padding:8px 12px}
 .direct-chat-view .chat-layout{height:auto;min-height:0;flex:1;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);border-radius:22px}
 .direct-chat-view .chat-contacts{min-height:0;border:0;padding:18px 10px 10px}.direct-chat-view #chatContacts{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden}.chat-contact{min-width:0;flex:none;padding:15px 10px}.chat-contact-heading strong{font-size:1rem}
 .direct-chat-view #chatPanel{display:none}.direct-chat-view .has-open-thread #chatPanel{display:flex}.direct-chat-view .has-open-thread .chat-contacts,.direct-chat-view .has-open-thread .chat-view-heading{display:none}
 body.chat-thread-open .bottom-nav{display:none}.direct-chat-view.chat-thread-open .app-main{padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
 .chat-back{display:grid}.chat-header{grid-template-columns:auto minmax(0,1fr) auto auto;gap:7px;padding:12px 10px}.chat-profile-button{gap:8px}.chat-profile-button .avatar-sm{width:32px;height:32px}.chat-header-copy strong{font-size:.875rem}.chat-header-copy small{font-size:.75rem}.chat-icon-button{width:34px;height:40px}.chat-header .chat-safety{font-size:.75rem}.chat-sync-row{padding:8px 12px}
 .message-list{padding:14px 12px;min-height:0;max-height:none}.message{max-width:89%;padding:11px 13px}.chat-form{grid-template-columns:minmax(0,1fr) auto;padding:12px 10px 8px}.chat-desktop-hint{display:none}.chat-mobile-hint{display:inline}.chat-conversation-empty{padding:22px}
 .chat-thread-open .toast{bottom:110px}
}

/* Guided registration and a readable Match card. */
#registerForm [hidden] { display:none; }
.registration-progress { scroll-margin-top:22px; }
.registration-progress p { margin:2px 0 12px;color:var(--accent-strong);font-size:.875rem;font-weight:700; }
.registration-track { display:grid;grid-template-columns:repeat(4,1fr);gap:6px; }
.registration-track span { height:5px;border-radius:8px;background:var(--line); }
.registration-track .is-complete { background:var(--accent); }
.auth-page-v6 [data-registration-step] { margin:10px 0 0;min-width:0;gap:16px; }
.auth-page-v6 [data-registration-step]>legend { font-family:Sora,Inter,sans-serif;font-size:1.45rem;letter-spacing:-.035em;margin-bottom:10px;line-height:1.3; }
.registration-help { margin:0 0 4px;color:var(--muted);font-size:.9375rem;line-height:1.6; }
.registration-choices { display:flex;flex-wrap:wrap;gap:8px; }
.auth-page-v6 .registration-chip { display:block;position:relative;cursor:pointer; }
.registration-chip input { position:absolute;opacity:0;width:1px;height:1px;min-height:0; }
.registration-chip span { display:flex;align-items:center;min-height:44px;padding:9px 13px;border:1px solid var(--line-strong);border-radius:24px;color:var(--cloud);background:var(--surface);font-size:.875rem;font-weight:600; }
.registration-chip input:checked+span { border-color:var(--accent-strong);background:var(--accent-soft);color:var(--accent-strong);box-shadow:inset 0 0 0 1px var(--accent-strong); }
.registration-chip input:focus-visible+span { outline:3px solid var(--accent);outline-offset:3px; }
.registration-chip input:disabled+span { opacity:.5;cursor:default; }
.auth-page-v6 .registration-modes,.auth-page-v6 .registration-days { gap:10px;margin:8px 0 0; }
.auth-page-v6 .registration-modes legend,.auth-page-v6 .registration-days legend { font-size:.9375rem;margin-bottom:10px; }
.auth-page-v6 .registration-choice { display:flex;align-items:center;gap:12px;border:1px solid var(--line-strong);border-radius:14px;padding:14px;cursor:pointer; }
.registration-choice:has(input:checked) { border-color:var(--accent-strong);background:var(--accent-soft); }
.auth-page-v6 .registration-choice input { width:20px;height:20px;min-height:20px;accent-color:var(--accent-strong);flex-shrink:0; }
.registration-choice strong { font-size:.9375rem; }
.registration-choice small { display:block;color:var(--muted);font-size:.8125rem;font-weight:400;line-height:1.5;margin-top:4px; }
.registration-actions { display:flex;gap:10px;margin-top:6px; }
.auth-page-v6 .registration-actions .primary-button { flex:1;justify-content:center; }
.registration-footnote { color:var(--muted);font-size:.8125rem;line-height:1.6;margin:2px 0 0; }
.registration-error { margin:0;padding:12px 14px;background:var(--coral-soft);color:var(--danger);border-radius:10px;font-size:.875rem;line-height:1.5; }
.registration-recap { padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft);font-size:.875rem; }
.registration-recap summary { cursor:pointer;font-weight:700;min-height:24px; }
.registration-recap dl { display:grid;gap:5px;overflow-wrap:anywhere; }
.registration-recap dt { font-weight:700;margin-top:10px; }
.registration-recap dd { margin:0;color:var(--muted);line-height:1.5; }
.registration-recap p { color:var(--muted);line-height:1.5; }
#registerForm textarea { width:100%;min-height:124px;resize:vertical;font:inherit;line-height:1.6; }
#registrationInterestCount,#registrationBioCount { margin:0; }
.match-decisions { position:static;border-top:1px solid var(--line); }
.match-about { margin:18px 0 14px;padding-top:15px;border-top:1px solid var(--line); }
.match-about h4 { color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase;margin:0 0 7px; }
.match-about .match-bio { margin:0;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line; }
.match-bio-empty { color:var(--muted);font-style:italic; }
.match-goal { font-size:.875rem;color:var(--muted);line-height:1.6;overflow-wrap:anywhere; }
.match-goal strong { display:block;color:var(--cloud); }

/* Photos, short video and personal answers share one calm discovery surface. */
.match-deck { max-width:510px; }
.match-card { overflow:hidden;scroll-margin-top:18px;box-shadow:0 16px 48px rgba(0,0,0,.08); }
.match-portrait { height:410px;background:var(--surface-soft); }
.match-portrait .match-media-content { width:100%;height:100%;object-fit:cover;object-position:center 35%;display:block; }
.match-portrait video.match-media-content { object-fit:contain;background:#000; }
.match-media-navigation { position:absolute;right:12px;top:12px;display:flex;align-items:center;gap:5px;padding:4px;background:rgba(0,0,0,.7);color:#fff;border-radius:25px; }
.match-media-navigation button { display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer; }
.match-media-navigation button:hover { background:rgba(255,255,255,.2); }
.match-media-navigation button:disabled { opacity:.35;cursor:default; }
.match-media-navigation svg { width:21px;height:21px; }
.match-media-position { padding:0 5px;font-size:.875rem;font-weight:600; }
.match-photo-caption { top:auto;bottom:12px;left:12px;border-radius:8px;background:rgba(0,0,0,.76);color:#fff;font-size:.75rem;pointer-events:none; }
.match-portrait:has(video) .match-photo-caption { bottom:64px; }
.match-media-choices { display:flex;justify-content:center;gap:8px;padding:12px 16px 0; }
.match-media-choices:empty,.match-media-status:empty { display:none; }
.match-media-choices button { min-height:40px;padding:8px 13px;border-radius:20px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:.875rem;display:flex;align-items:center;gap:4px;cursor:pointer; }
.match-media-choices button[aria-pressed="true"] { background:var(--accent-soft);border-color:var(--accent-strong);color:var(--accent-strong);font-weight:700; }
.match-media-choices svg { width:16px;height:16px; }
.match-media-status { padding:10px 18px;font-size:.875rem;line-height:1.5;color:var(--muted); }
.match-media-unavailable { display:grid;place-content:center;height:100%;padding:24px;text-align:center;background:var(--surface-soft);color:var(--cloud); }
.match-prompt-list { display:grid;gap:12px;margin:20px 0 12px; }
.match-prompt-list:empty { display:none; }
.profile-prompt { border:1px solid var(--accent-line);border-radius:18px;padding:20px;background:var(--accent-soft); }
.profile-prompt:nth-child(even) { background:var(--surface-soft);border-color:var(--line); }
.profile-prompt-question { color:var(--accent-strong);font-size:.875rem;line-height:1.5;font-weight:700;margin:0 0 10px; }
.profile-prompt-answer { font-family:Sora,Inter,sans-serif;font-size:1.13rem;line-height:1.65;margin:0;color:var(--cloud);overflow-wrap:anywhere; }
.profile-prompt-editor { border:1px solid var(--line);border-radius:18px;padding:18px;margin:8px 0;background:var(--surface-soft); }
.profile-prompt-editor summary { font-size:1rem;font-weight:700;cursor:pointer;line-height:1.5; }
.profile-prompt-editor>p { color:var(--muted);font-size:.875rem;line-height:1.6; }
.prompt-editor-row { display:grid;gap:12px;padding:20px 0;border-top:1px solid var(--line); }
.prompt-editor-row label { display:grid;gap:8px;font-size:.875rem; }
.prompt-editor-row select,.prompt-editor-row textarea { width:100%;min-width:0;max-width:100%; }
.prompt-editor-row select { text-overflow:ellipsis; }
.prompt-editor-meta { display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:.875rem; }
.prompt-editor-meta button { font-size:.875rem;min-height:40px; }
.chat-starters { padding:12px 18px;border-bottom:1px solid var(--line);background:var(--surface); }
.chat-starters summary { font-size:.875rem;font-weight:600;color:var(--accent-strong);cursor:pointer; }
.chat-starters>div { display:grid;gap:8px;max-height:230px;overflow-y:auto;overscroll-behavior:contain;margin-top:12px; }
.chat-starters button { text-align:left;padding:14px;border:1px solid var(--accent-line);border-radius:14px;background:var(--accent-soft);color:var(--cloud);font-size:.875rem;line-height:1.6;cursor:pointer; }
.chat-starters button span { display:block;color:var(--accent-strong);font-size:.875rem;font-weight:700;margin-bottom:4px; }
.chat-starters small { display:block;font-size:.875rem;color:var(--muted);line-height:1.5;margin:10px 0 2px; }
.match-media-viewer { width:min(100%,700px);max-width:100%;height:100dvh;max-height:100dvh;margin:auto;padding:0;background:#000;color:#fff;border:0;overflow:hidden; }
.match-media-viewer::backdrop { background:rgba(0,0,0,.92); }
.match-media-viewer>header { position:absolute;inset:0 0 auto;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:calc(14px + env(safe-area-inset-top,0px)) 18px 14px;background:linear-gradient(#000b,transparent); }
.match-media-viewer h2 { font-size:1.1rem;margin:0;line-height:1.5; }
.media-viewer-close { flex-shrink:0;min-height:44px;padding:8px 14px;border:1px solid #ffffff55;border-radius:24px;background:#0008;color:#fff;font-size:.875rem;cursor:pointer; }
.media-viewer-close span { margin-left:8px;font-size:1.4rem; }
#matchMediaViewerBody { position:relative;height:100%;display:grid;place-items:center; }
#matchMediaViewerBody .match-media-content { display:block;width:100%;height:100%;max-height:100dvh;object-fit:contain; }
#matchMediaViewerBody .match-media-navigation { top:auto;bottom:calc(75px + env(safe-area-inset-bottom,0px));right:50%;transform:translateX(50%);white-space:nowrap; }
#matchMediaViewerBody .match-photo-caption { bottom:calc(130px + env(safe-area-inset-bottom,0px)); }
@media(max-width:600px) {
 .match-portrait { height:365px;height:clamp(290px,47svh,410px); }
 .match-card-content { padding:20px 18px 6px; }
 .profile-prompt { padding:18px; }
 .match-person-heading h3 { font-size:1.5rem; }
 .chat-starters { padding:10px 14px; }
}
@media(prefers-reduced-motion:reduce) { .match-card { transition:none; } }
.chat-starters { flex-shrink:0; }
.match-media-viewer :focus-visible,.match-media-navigation button:focus-visible { outline:2px solid #A7F3D0;outline-offset:3px; }
.match-person-heading h3 { overflow-wrap:anywhere; }

/* Explore: passions, experiences and people in one visual entry point. */
.is-explore-discovery .view-heading,.is-explore-discovery .gym-card,.is-explore-discovery .demo-shortcuts { display:none; }
#discoverView .mode-tabs { max-width:none;display:flex;gap:28px;padding:0;margin:0 0 22px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none; }
#discoverView .mode-tab { flex:none;min-height:50px;padding:10px 2px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--muted);box-shadow:none;font-size:1.12rem; }
#discoverView .mode-tab.is-active { color:var(--cloud);border-bottom-color:var(--accent); }
.discovery-control-row { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;margin-bottom:18px; }
#discoverView .discovery-control-row .discover-toolbar { margin:0; }
#discoverView .discover-toolbar h2 { font-size:1.8rem;letter-spacing:-.05em;line-height:1.2;margin-bottom:6px; }
#discoverView .discover-toolbar p { font-size:.875rem;line-height:1.55;max-width:440px; }
.discovery-control-row .discovery-filters { margin:0;padding:0;border:0;border-radius:0;background:none; }
.discovery-control-row .discovery-filters>summary { min-height:44px;padding:10px 16px;border:1px solid var(--line-strong);border-radius:24px;list-style:none;font-size:.875rem; }
.discovery-control-row .discovery-filters>summary::-webkit-details-marker { display:none; }
.discovery-control-row:has(.discovery-filters[open]) { grid-template-columns:1fr; }
.discovery-control-row .discovery-filters[open] { padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:20px; }
.discovery-filters[open]>summary { width:max-content; }
.explore-interest-rail { display:flex;gap:20px;overflow-x:auto;overscroll-behavior-x:contain;padding:4px 0 16px;scrollbar-width:thin; }
.explore-interest { display:flex;flex-direction:column;align-items:center;gap:9px;width:74px;flex:none;padding:0;border:0;background:none;color:var(--muted);font:inherit;font-size:.75rem;cursor:pointer; }
.explore-interest-symbol { display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--line-strong);border-radius:50%;background:var(--surface);transition:background .15s,border-color .15s; }
.explore-interest-symbol svg { width:28px;height:28px; }
.explore-interest[aria-pressed="true"] { color:var(--accent-strong);font-weight:700; }
.explore-interest[aria-pressed="true"] .explore-interest-symbol { border:2px solid var(--accent-strong);background:var(--accent-soft);box-shadow:inset 0 0 0 4px var(--ink); }
.explore-section-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 16px; }
.explore-section-heading h2 { margin:0;font-size:1.15rem;letter-spacing:-.035em;line-height:1.4; }
.explore-section-heading .text-button { font-size:.875rem;min-height:44px;text-align:right; }
.explore-activity-rail { display:flex;gap:16px;overflow-x:auto;padding-bottom:12px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin; }
.explore-event { flex:0 0 285px;min-width:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);overflow:hidden;scroll-snap-align:start; }
.explore-event-open { display:block;width:100%;padding:0;border:0;color:var(--cloud);background:none;text-align:left;font:inherit;cursor:pointer; }
.activity-cover { position:relative;height:170px;overflow:hidden;background:var(--accent-soft); }
.activity-cover img { width:100%;height:100%;object-fit:cover;display:block; }
.cover-credit { position:absolute;left:10px;bottom:10px;background:rgba(0,0,0,.78);color:#fff;padding:4px 6px;font:500 .625rem/1.3 Inter,sans-serif;letter-spacing:.015em;border-radius:4px; }
.activity-cover-type { display:flex;align-items:center;justify-content:center;height:100%;padding:24px;font:700 1.9rem/1.3 Sora,sans-serif;text-align:center;letter-spacing:-.055em;color:var(--accent-strong); }
.explore-event-copy { display:grid;gap:8px;padding:16px 16px 12px; }
.explore-event-copy small { color:var(--accent-strong);font-size:.75rem; }
.explore-event-copy strong { font-size:1.05rem;letter-spacing:-.025em;line-height:1.4;min-height:2.8em; }
.explore-event-copy>span { color:var(--muted);font-size:.8rem; }
.explore-event-footer { display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 10px; }
.explore-event-footer>span { font-size:.75rem;color:var(--muted); }
.explore-event-footer button { padding:10px 0 10px 8px;min-height:44px;border:0;background:none;color:var(--accent-strong);font:600 .8rem Inter,sans-serif;cursor:pointer; }
.explore-empty { flex:1;min-width:240px;padding:20px;border:1px dashed var(--line-strong);border-radius:16px;color:var(--muted); }
.explore-people-heading { margin-top:26px; }
.count-pill { padding:5px 10px;border:1px solid var(--line);border-radius:20px;color:var(--muted);font-size:.8rem; }
.is-explore-discovery .people-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px; }
.explore-person { min-width:0; }
.explore-person-photo { position:relative;display:block;width:100%;height:310px;overflow:hidden;border:0;border-radius:18px;padding:0;background:var(--surface-soft);text-align:left;cursor:pointer; }
.explore-person-photo .avatar.explore-avatar { width:100%;height:100%;border:0;border-radius:0;box-shadow:none;font-size:3rem; }
.explore-person-photo .avatar img { object-position:center 30%; }
.explore-person-overlay { position:absolute;inset:auto 0 0;padding:48px 16px 16px;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff;display:grid;gap:5px; }
.explore-person-overlay strong { font:700 1.1rem Sora,sans-serif;letter-spacing:-.03em;overflow-wrap:anywhere; }
.explore-person-overlay small { font-size:.8rem; }
.explore-person-copy { padding:4px 2px 0; }
.explore-person-copy p { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em;line-height:1.5;font-size:.875rem;margin:10px 0; }
.explore-common { display:block;font-size:.75rem;line-height:1.5;color:var(--accent-strong);font-weight:600; }
.explore-person-copy>.text-button { min-height:44px;font-size:.8rem; }
.explore-person-actions .action-button { width:100%;font-size:.8rem;min-height:42px; }
.workout-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
.workout-card { display:flex;flex-direction:column;gap:0;padding:0;position:relative;overflow:hidden;min-width:0;border-radius:22px; }
.workout-card .workout-cover { width:100%;height:200px;flex:none; }
.workout-card .workout-date-badge { position:absolute;top:14px;left:14px;width:64px;min-height:64px;gap:2px;padding:10px;background:var(--surface);border:0;border-radius:12px; }
.workout-card .workout-card-content { padding:20px; }
.discovery-viewer { width:min(560px,100vw);max-width:100vw;height:96dvh;max-height:96dvh;margin:auto;padding:0;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--cloud);overflow:hidden; }
.discovery-viewer[open] { display:flex;flex-direction:column; }
.discovery-viewer::backdrop { background:rgba(0,0,0,.8); }
.discovery-viewer>header { display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;background:#000;color:#fff;flex:none; }
.discovery-viewer>header .eyebrow { display:block;color:var(--mint);margin:0 0 4px;font-size:.625rem; }
.discovery-viewer h2 { margin:0;font-size:1.1rem;line-height:1.5; }
.discovery-viewer-body { min-height:0;overflow-y:auto;overscroll-behavior:contain; }
.immersive-portrait { height:390px;height:clamp(270px,48dvh,460px);background:#000;touch-action:none;user-select:none; }
.immersive-portrait:has(video) { touch-action:auto; }
.immersive-portrait>img,.immersive-portrait>video,.immersive-portrait>.avatar.immersive-avatar { display:block;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;object-fit:cover;object-position:center 30%; }
.immersive-portrait>video { object-fit:contain; }
.immersive-media-options { display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:12px 18px 0;font-size:.875rem;color:var(--muted); }
.immersive-media-options:empty { display:none; }
.immersive-media-options button { padding:8px 13px;min-height:44px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--muted);font:inherit;cursor:pointer; }
.immersive-media-options button[aria-pressed="true"] { color:var(--accent-strong);border-color:var(--accent-strong); }
.immersive-person-copy { padding:18px 22px 26px; }
.immersive-location { font-size:.75rem;color:var(--muted);margin:0 0 10px; }
.immersive-bio { font-size:1.05rem;line-height:1.7;margin:0 0 18px;overflow-wrap:anywhere; }
.immersive-person-copy>.primary-button { width:100%; }
.discovery-viewer>footer { flex:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 22px;background:#000;color:#fff; }
.discovery-viewer>footer>span { text-align:center;display:grid;gap:4px; }
.discovery-viewer>footer small { color:#bfc8c6;font-size:.7rem; }
.discovery-viewer>footer button { width:44px;height:44px;border:1px solid #555;border-radius:50%;background:#171717;color:#fff;font-size:1.25rem;cursor:pointer; }
.discovery-viewer>footer button:disabled { opacity:.35;cursor:default; }
.chat-activity-action { flex:none;padding:10px 18px 0;background:var(--surface); }
.chat-activity-action button { min-height:40px;padding:8px 14px;border:1px solid var(--accent-line);border-radius:22px;background:var(--accent-soft);color:var(--accent-strong);font:600 .875rem Inter,sans-serif;cursor:pointer; }
.activity-share-dialog { width:min(680px,calc(100vw - 24px));max-height:90dvh;padding:24px;border:1px solid var(--line-strong);border-radius:24px;background:var(--surface);color:var(--cloud);overflow-y:auto; }
.activity-share-dialog h2 { font-size:1.2rem;line-height:1.5;margin:0; }
.activity-share-help { color:var(--muted);font-size:.875rem;line-height:1.6;margin:14px 0 22px; }
.activity-share-item { display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;padding:16px 0;border-top:1px solid var(--line); }
.activity-share-item .activity-cover { height:112px;border-radius:12px; }
.activity-share-item .cover-credit { display:none; }
.activity-share-item .activity-cover-type { font-size:.8rem;padding:8px;letter-spacing:0; }
.activity-share-item h3 { font-size:1rem;line-height:1.4;margin:5px 0; }
.activity-share-item small { font-size:.75rem;color:var(--accent-strong); }
.activity-share-item p { font-size:.8rem;line-height:1.5;color:var(--muted);margin:6px 0; }
.activity-share-item button { min-height:44px;margin-top:6px; }
#activityShareError { color:var(--danger);font-size:.875rem;line-height:1.6; }
.message-activity-link { display:block;padding:9px 12px;margin:8px 0;min-height:40px;border:1px solid var(--accent-line);border-radius:12px;background:var(--surface);color:var(--accent-strong);font:600 .875rem Inter,sans-serif;cursor:pointer; }
@media(max-width:1100px) { .is-explore-discovery .people-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.workout-list { grid-template-columns:1fr; } }
@media(max-width:600px) {
 #discoverView .mode-tabs { margin-bottom:16px; }
 #discoverView .mode-tab { min-height:46px;font-size:1rem; }
 #discoverView .discover-toolbar h2 { font-size:1.55rem; }
 #discoverView .discover-toolbar p { font-size:.8rem; }
 .discovery-control-row { gap:12px;margin-bottom:14px; }
 .explore-interest-rail { gap:10px;margin-right:-4px;padding-bottom:10px; }
 .explore-interest { width:66px;font-size:.6875rem; }
 .explore-interest-symbol { width:58px;height:58px; }
 .explore-section-heading { margin:15px 0 12px;gap:14px; }
 .explore-section-heading h2 { font-size:1rem; }
 .explore-section-heading .text-button { font-size:.75rem; }
 .explore-event { flex-basis:248px; }
 .explore-event .activity-cover { height:145px; }
 .explore-event-copy { padding:13px 14px 10px;gap:6px; }
 .explore-event-copy strong { font-size:.95rem; }
 .explore-event-footer { padding:0 14px 6px; }
 .explore-people-heading { margin-top:22px; }
 .is-explore-discovery .people-grid { gap:24px 12px; }
 .explore-person-photo { height:225px;border-radius:14px; }
 .explore-person-overlay { padding:40px 12px 12px; }
 .explore-person-overlay strong { font-size:1rem; }
 .explore-person-overlay small,.explore-person-copy p { font-size:.75rem; }
 .explore-person-copy>.text-button,.explore-person-actions .action-button { font-size:.75rem; }
 .explore-common { font-size:.6875rem; }
 .match-portrait { height:clamp(230px,32svh,290px); }
 .discovery-viewer { width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0; }
 .discovery-viewer>header { padding:calc(14px + env(safe-area-inset-top,0px)) 18px 14px; }
 .discovery-viewer>footer { padding-bottom:calc(10px + env(safe-area-inset-bottom,0px)); }
 .chat-activity-action { padding:9px 14px 0; }
 .activity-share-dialog { padding:20px; }
 .activity-share-item { grid-template-columns:76px minmax(0,1fr);gap:12px; }
}
@media(prefers-reduced-motion:reduce) { .explore-interest-symbol { transition:none; } }

/* Review a profile before creating an account. */
.registration-track { grid-template-columns:repeat(5,minmax(0,1fr)); }
.registration-preview { padding:22px;border:1px solid var(--line-strong);border-radius:20px;background:var(--surface);overflow-wrap:anywhere; }
.registration-preview header { display:flex;align-items:center;gap:14px;margin-bottom:18px; }
.registration-preview h3 { margin:0;font-size:1.25rem;line-height:1.5; }
.registration-preview header p { margin:4px 0 0;color:var(--muted); }
.registration-avatar { display:grid;place-items:center;flex:0 0 56px;height:56px;border-radius:50%;background:var(--accent-soft);color:var(--accent-strong);font-size:1.5rem;font-weight:700; }
.registration-preview-bio { white-space:pre-wrap;font-size:1rem;line-height:1.65; }
.registration-preview-interests { display:flex;flex-wrap:wrap;gap:8px;margin:16px 0; }
.registration-preview-interests span { padding:7px 11px;border-radius:18px;background:var(--accent-soft);color:var(--accent-strong);font-size:.875rem; }
.registration-recap dd { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;overflow-wrap:anywhere; }
.registration-recap dd span { min-width:0; }
.registration-recap button,.registration-preview>button { min-height:44px;font-size:.875rem;flex-shrink:0; }
.registration-recap h3 { font-size:1rem; }
@media(max-width:480px) { .registration-preview { padding:16px; }.registration-recap dd { flex-wrap:wrap;gap:2px; } }

.nearby-panel { padding:16px;margin:12px 0 20px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface); }
.nearby-panel summary { cursor:pointer;font-weight:700;font-size:1rem;min-height:32px; }
.nearby-panel p { font-size:.875rem;line-height:1.6;color:var(--muted); }
.nearby-panel label { display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:.875rem; }
.nearby-panel select { padding:10px;background:var(--surface);color:var(--cloud);border:1px solid var(--line-strong);border-radius:8px;font:inherit; }
.nearby-actions { display:flex;flex-wrap:wrap;gap:12px;margin-top:16px; }
.nearby-panel button { min-height:44px; }.nearby-distance { color:var(--accent-strong);font-size:.875rem; }

.presence-settings { padding:20px;border:1px solid var(--line-strong);border-radius:18px;background:var(--surface);margin-bottom:22px; }
.presence-settings h2 { font-size:1.2rem; }.presence-settings label { display:flex;align-items:center;gap:12px;min-height:44px;font-size:1rem; }.presence-settings input { width:20px;height:20px;flex-shrink:0; }
.presence-settings p,.profile-signals p { font-size:.875rem;line-height:1.6;color:var(--muted); }
.profile-signals { margin:12px 0; }.profile-signals small { font-size:.75rem;color:var(--muted); }
.signal-badges { display:flex;flex-wrap:wrap;gap:8px; }.signal-badges span { font-size:.875rem;padding:7px 10px;border-radius:10px;background:var(--accent-soft);color:var(--accent-strong); }
.signal-badges .founder-badge {background:var(--midnight);color:var(--mint);border:1px solid var(--accent-line);font-weight:700;}
.founder-label {color:var(--accent-text);font-weight:700;}
.signal-online::before { content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;margin-right:7px; }
.signal-counts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }.signal-counts div { padding:12px;border:1px solid var(--line);border-radius:12px; }.signal-counts dt { font-size:.875rem; }.signal-counts dd { margin:6px 0 0;font-size:1.4rem;font-weight:700; }

.attendance-panel:not(:empty) { border-top:1px solid var(--line);padding-top:22px;margin-top:22px; }.attendance-panel p { font-size:.875rem;line-height:1.6;color:var(--muted); }.attendance-people article { padding:14px;border:1px solid var(--line);border-radius:12px;margin:12px 0; }.attendance-panel form { display:grid;gap:16px; }.attendance-panel fieldset { border:0;padding:0;display:grid;gap:14px; }.attendance-panel label { display:grid;gap:8px;font-size:.875rem; }.attendance-panel select { padding:12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--cloud);font:inherit;max-width:100%; }.attendance-panel button { min-height:44px; }.organizer-feedback h3 { font-size:1rem; }

/* Organizer tools and transparent personal recommendations */
.suitability-filters{display:flex;flex-wrap:wrap;gap:12px 24px;padding:14px 0}.suitability-filters label{display:flex;align-items:center;gap:8px}.suitability-filters input,.presence-settings input[type=checkbox]{width:18px;height:18px;flex:none}.notification-launch{margin-bottom:16px}.follow-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0}.reconfirmation-panel:not(:empty){padding:18px;border:1px solid var(--line);border-radius:18px;margin:18px 0}.reconfirmation-panel p{line-height:1.6}.reconfirmation-panel button{margin:6px}.activity-organizer{flex-wrap:wrap}#notificationsDialog,#cancellationDialog{max-width:620px;width:calc(100% - 24px)}#learnedInterests{line-height:1.7;overflow-wrap:anywhere}.suitability-filters legend{font-weight:700}

.experience-settings{margin-block:24px}.experience-settings form{display:grid;gap:16px}.experience-settings .inline-check input{width:18px;height:18px;flex:none}.experience-links{display:flex;flex-wrap:wrap;gap:12px}.suggestion-explanation{padding:8px 0;font-size:.875rem}.suggestion-explanation summary{cursor:pointer;font-weight:600}.suggestion-explanation p{line-height:1.6}.explore-event>.suggestion-explanation{padding:8px 16px 14px}.welcome-activity{padding:20px;border:1px solid var(--line);border-radius:20px;margin:20px 0}.welcome-activity dl{display:grid;grid-template-columns:1fr 1fr;gap:16px}.welcome-activity dt{font-size:.875rem;font-weight:600;margin-bottom:5px}.welcome-activity dd{margin:0;line-height:1.5;overflow-wrap:anywhere}.welcome-activity p,.pair-notes{font-size:.875rem;line-height:1.6}.pair-reasons{font-weight:600}.activity-cost{font-size:.875rem}#suggestionFeedbackDialog{max-width:540px;width:calc(100% - 24px)}#suggestionFeedbackForm{display:grid;gap:18px}@media(max-width:520px){.welcome-activity dl{grid-template-columns:1fr}.experience-settings .form-grid{grid-template-columns:1fr}}

.global-notifications{display:flex;justify-content:flex-end;margin:4px 0 16px}.global-notifications .notification-launch{margin:0;min-height:42px}.personal-agenda{width:100%;grid-column:1/-1}.agenda-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}.agenda-heading p{line-height:1.6;font-size:.875rem}.agenda-group{margin:24px 0}.agenda-item{display:flex;gap:18px;padding:20px;margin:12px 0;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.agenda-time{min-width:62px;display:flex;flex-direction:column;gap:8px;font-size:.875rem}.agenda-time strong{text-transform:uppercase}.agenda-copy{min-width:0;flex:1}.agenda-copy h3{margin:10px 0}.agenda-copy p{font-size:.875rem;overflow-wrap:anywhere}.agenda-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.agenda-history{margin:24px 0}.agenda-history summary{cursor:pointer;font-weight:600;padding:12px 0}.activity-update-notice{padding:16px;margin:12px 0;border:1px solid var(--line);border-radius:14px;display:grid;gap:8px}.activity-update-notice.is-unread{border-left:4px solid #14b8a6}.activity-update-notice p{font-size:.875rem;line-height:1.6}.activity-edit-notice{padding:16px;line-height:1.6;border:1px solid var(--line);border-radius:14px;font-size:.875rem}@media(max-width:520px){.agenda-heading{display:block}.agenda-item{padding:14px;gap:12px}.agenda-actions{gap:8px}.global-notifications{margin-bottom:12px}}

/* Agenda: reveal the schedule before secondary controls. */
.activity-filter-panel{margin:0 0 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.activity-filter-panel>summary{min-height:48px;padding:12px 16px;cursor:pointer;font-weight:700}
.activity-filter-panel>summary .count-pill{margin-left:8px}
.activity-filter-content{padding:0 16px 16px}
.activity-filter-content .activity-category-filters{margin-top:8px}
#workoutsView.is-agenda>.nearby-panel,#workoutsView.is-agenda>.workout-stats,#workoutsView.is-agenda #activityHistoryHint,#workoutsView.is-agenda .workout-view-heading .eyebrow,#workoutsView.is-agenda .workout-view-heading .view-intro{display:none}
#workoutsView.is-agenda .workout-view-heading{margin-bottom:18px;align-items:center}
#workoutsView.is-agenda .workout-view-heading h1{font-size:clamp(1.6rem,3vw,2.2rem);margin:0}
#workoutsView.is-agenda .agenda-heading h2{font-size:1.1rem}
#workoutsView.is-agenda .agenda-heading p{margin:4px 0}
.workout-scope-tabs{display:flex;flex-wrap:wrap}
.workout-scope-tab{flex:1 1 auto}
.workout-scope-tab:focus-visible,.activity-filter-panel>summary:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media(max-width:800px){
 .workout-toolbar{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}
 .workout-scope-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:thin}
 .workout-scope-tab{flex:0 0 auto;white-space:nowrap}
 #workoutsView.is-agenda .workout-view-heading{display:flex;flex-wrap:wrap;gap:12px}
 #workoutsView.is-agenda .create-workout-button{width:auto;min-height:44px;padding:10px 14px}
 .agenda-heading{flex-wrap:wrap;gap:8px}
 .agenda-actions{row-gap:8px}
 .agenda-actions button{min-height:44px}
}
#activityFilterCount[hidden]{display:none}

.profile-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 10px}
.profile-shortcuts button{border:1px solid var(--line);background:var(--surface);color:var(--cloud);border-radius:14px;padding:12px 16px;min-height:44px;font:inherit;font-size:.875rem;font-weight:700;cursor:pointer}
.profile-shortcuts button:hover{background:var(--accent-soft)}
.profile-section-help{color:var(--muted);font-size:.875rem;line-height:1.6;margin-bottom:24px}
button.checklist-item{font:inherit;text-align:left;cursor:pointer;color:var(--cloud);background:var(--surface);border:1px solid var(--line);min-height:52px;width:100%;gap:10px;padding:12px}
button.checklist-item small{margin-left:auto;color:var(--accent-strong);font-size:.875rem}
.bio-editor-help{display:flex;align-items:start;gap:16px;color:var(--muted);font-size:.875rem;line-height:1.6}
.bio-editor-help p{margin:0;flex:1}.bio-editor-help span{white-space:nowrap}
.profile-shortcuts button:focus-visible,button.checklist-item:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media(max-width:600px){.profile-shortcuts{display:grid;grid-template-columns:1fr 1fr}.profile-shortcuts button{text-align:left}.bio-editor-help{flex-direction:column;gap:4px}}

/* Home: one concrete next step, then experiences and people. */
.is-match-discovery .home-plan{display:none}
.home-plan{margin:0 0 24px}
.home-plan-card{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;padding:24px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:22px;background:var(--surface)}
.home-plan-date{height:76px;display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--accent-soft);color:var(--accent-strong);border-radius:16px}
.home-plan-date strong{font-size:1.8rem;line-height:1.15}.home-plan-date span{font-size:.875rem;text-transform:uppercase}
.home-plan-copy .eyebrow{font-size:.75rem;line-height:1.5;letter-spacing:.07em;margin:0 0 8px}
.home-plan-copy h2{font-size:clamp(1.2rem,2vw,1.65rem);line-height:1.25;margin:0 0 10px;overflow-wrap:anywhere}
.home-plan-copy p:not(.eyebrow){margin:4px 0;font-size:.9375rem;line-height:1.5;color:var(--muted)}
.home-plan-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.home-plan-actions button{min-height:44px;font-size:.875rem}
.home-agenda-link{grid-column:2;justify-self:start;margin-top:-6px}
.home-demo-label{display:block;margin-top:8px;color:var(--muted);font-size:.8125rem}
.home-start-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-radius:22px;background:var(--accent-soft);border:1px solid var(--line)}
.home-start-card h2{font-size:1.5rem;margin:8px 0}.home-start-card p{line-height:1.5}.home-start-card>.primary-button{flex-shrink:0}
.home-waiting,.home-plan-error{font-size:.875rem;line-height:1.6;padding:12px 16px;border:1px solid var(--line);border-radius:16px;margin-top:12px;background:var(--surface)}
.home-plan-error button{margin-right:12px}.home-waiting button{min-height:44px}
.explore-event-practical{font-size:.875rem;color:var(--muted)}
.landing-first-action{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:24px}.landing-first-action a{text-decoration:none;min-height:44px}.landing-first-action .primary-button{gap:24px;justify-content:center}
.auth-intro .landing-demo-disclosure{font-size:.875rem!important;line-height:1.5!important;margin-top:12px}
.landing-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:28px}
.landing-examples figure{margin:0}.landing-examples img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:16px}
.landing-examples figcaption{font-size:.875rem;font-weight:700;margin-top:8px;line-height:1.4}.landing-image-note{display:block;font-size:.75rem;color:var(--muted);margin-top:12px}
#auth-title{scroll-margin-top:24px}
@media(max-width:600px){.home-plan-card{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:18px 14px}.home-plan-date{height:64px;border-radius:12px}.home-plan-date strong{font-size:1.5rem}.home-plan-actions{grid-column:1/-1;gap:8px}.home-plan-actions button{padding:10px 12px}.home-start-card{flex-direction:column;align-items:flex-start;padding:20px}.home-plan{margin-bottom:20px}.landing-examples{gap:8px;margin-top:20px}.landing-first-action{gap:10px}.landing-first-action .primary-button{width:100%}.auth-intro h1{font-size:2.15rem}}

.interest-search-row{display:flex;align-items:end;gap:12px;margin:12px 0}.interest-search-row label{flex:1;min-width:0}.interest-search-row input{width:100%;font-size:1rem}.interest-search-row button{min-height:44px;white-space:nowrap}
#profileInterests label[hidden],#registrationInterests label[hidden],.activity-type-examples[hidden]{display:none}
.activity-type-examples{padding:14px;border-radius:16px;background:var(--surface-soft);border:1px solid var(--line)}
.activity-type-examples p{font-size:.875rem;line-height:1.5;margin:0 0 8px;color:var(--muted)}
.interest-example{display:inline-block;margin:4px 8px 4px 0;padding:10px 14px;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--cloud);font:inherit;font-size:.875rem;cursor:pointer}
.interest-example:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media(max-width:480px){.interest-search-row{align-items:stretch;flex-direction:column;gap:4px}.interest-search-row button{align-self:flex-start}}

.agenda-conflict-dialog{max-width:520px}.agenda-conflict-dialog li{margin-block:1rem}.agenda-conflict-dialog li span{display:block;font-size:.9rem;margin-top:.3rem}.agenda-overlap{font-weight:600;border-left:3px solid #b27b16;padding-left:.6rem}.chat-list-filters{flex-wrap:wrap}

.group-inbox-avatar{background:var(--surface-alt,#dcf8ef);color:var(--text,#102321);display:grid;place-items:center}.group-inbox-avatar svg{width:24px;height:24px}

.push-settings{scroll-margin-top:90px}.push-settings fieldset{border:0;padding:0;margin:1.4rem 0;display:grid;gap:.85rem}.push-settings legend{font-weight:700;margin-bottom:1rem}.push-settings input[type=checkbox]{min-width:20px;min-height:20px}.push-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-block:1rem}.push-settings .inline-check{font-size:1rem}.push-settings #pushStatus{font-weight:600}

.activity-chat-context{font-weight:600;padding:.8rem 1rem;border:1px solid var(--border);border-radius:12px}

/* GYVRA official events: brand-owned calendar, shared participation flow. */
.event-section-nav{display:flex;gap:6px;padding:5px;background:var(--surface-soft);border:1px solid var(--line);border-radius:16px;margin:0 0 24px;width:fit-content;max-width:100%}
.event-section-nav button{border:0;background:transparent;color:var(--muted);padding:12px 18px;border-radius:12px;font:inherit;font-weight:600;cursor:pointer}
.event-section-nav button.is-active{background:var(--surface);color:var(--cloud);box-shadow:0 2px 7px #0000000a}
.official-home-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;margin:18px 0 26px;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:22px}
.official-home-entry h2{font:700 22px/1.3 Sora, sans-serif;margin:6px 0 9px;letter-spacing:-.7px}.official-home-entry p:not(.eyebrow){margin:0;max-width:550px;color:var(--muted);line-height:1.6}.official-home-entry .primary-button{flex-shrink:0}
.match-active .official-home-entry{display:none}
.official-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;background:#0f1720;color:#f7fafc;border-radius:26px;padding:40px 36px;margin-bottom:32px;overflow:hidden}
:root[data-theme="dark"] .official-hero{background:#000;border:1px solid var(--line)}
.official-hero .eyebrow{color:#a7f3d0}.official-hero h1{font:700 clamp(28px,3vw,42px)/1.18 Sora,sans-serif;letter-spacing:-1.6px;margin:16px 0}.official-hero p:not(.eyebrow){color:#c9d8df;line-height:1.7;max-width:590px;margin:0}
.official-hero-mark{font:700 125px/1 Sora,sans-serif;letter-spacing:-10px;color:#a7f3d0;position:relative;padding-right:24px;flex-shrink:0}.official-hero-mark span{font-size:60px;color:#14b8a6;position:absolute;right:-8px;top:-6px}
.official-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.official-heading h2{font:700 25px/1.3 Sora,sans-serif;margin:0 0 8px;letter-spacing:-.8px}.official-heading p{margin:0;color:var(--muted)}.official-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.official-filters{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:14px}.official-filters label{display:grid;gap:7px;font-size:13px;font-weight:600;min-width:0}.official-filters input,.official-filters select{width:100%;min-width:0}
.official-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.official-event-card{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--surface);display:flex;flex-direction:column;min-width:0}
.official-cover{position:relative;aspect-ratio:1.65;background:var(--surface-soft);overflow:hidden}.official-cover img{width:100%;height:100%;object-fit:cover;display:block}.official-date{position:absolute;left:14px;top:14px;display:grid;place-items:center;background:#ffffffed;color:#0f1720;border-radius:12px;padding:10px 13px;line-height:1.15;box-shadow:0 4px 18px #0002}.official-date strong{font:700 24px Sora,sans-serif}.official-date span{font-size:11px;text-transform:uppercase;font-weight:700;letter-spacing:1px}
.official-event-body{padding:20px;display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.official-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;background:var(--accent-soft);color:var(--accent-text);border:1px solid var(--accent-line);border-radius:8px;font-size:11px;font-weight:700;line-height:1.35;vertical-align:middle}.official-badge svg{width:16px;height:16px;flex-shrink:0}.official-event-body>.eyebrow{margin:18px 0 7px}.official-event-body h3{font:700 20px/1.4 Sora,sans-serif;letter-spacing:-.7px;margin:0 0 14px;overflow-wrap:anywhere}.official-event-date{font-size:13px;font-weight:600;line-height:1.6;margin:0 0 4px}.official-place{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 16px;overflow-wrap:anywhere}.official-event-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;font-weight:600;border-top:1px solid var(--line);padding-top:14px;width:100%;margin-top:auto}.official-seats{font-size:12px;color:var(--muted);margin:12px 0 16px}.official-seats.is-joined{color:var(--accent-text);font-weight:700}.official-event-body>.primary-button{width:100%;justify-content:space-between}.official-event-body>.text-button{align-self:center;margin-top:10px}.official-empty{grid-column:1/-1;border:1px dashed var(--line-strong);border-radius:22px;padding:40px 24px;text-align:center}.official-empty h3{font:700 23px/1.4 Sora,sans-serif}.official-empty p{max-width:530px;margin:16px auto 24px;line-height:1.7;color:var(--muted)}.official-empty-icon{font-size:40px;color:var(--accent-text)}
@media(max-width:1100px){.official-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.official-home-entry{align-items:flex-start;flex-direction:column}.official-hero-mark{font-size:94px}.official-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.official-event-grid{grid-template-columns:1fr}.official-hero{padding:28px 22px;gap:0;border-radius:22px;margin-bottom:26px}.official-hero-mark{display:none}.official-hero h1{font-size:30px}.official-hero p:not(.eyebrow){font-size:14px}.official-filters{grid-template-columns:1fr 1fr;gap:12px}.official-filters label:first-child{grid-column:1/-1}.official-home-entry{padding:22px}.official-home-entry h2{font-size:21px}.official-home-entry .primary-button{width:100%}.event-section-nav{width:100%}.event-section-nav button{flex:1;padding:12px 8px;font-size:13px}.official-event-body{padding:22px}.official-cover{aspect-ratio:1.8}.official-heading h2{font-size:24px}}
.official-cover .official-cover-image{height:100%;width:100%}

.official-header{border-left:4px solid var(--accent);padding:8px 0 8px 20px;margin:0 0 24px}.official-header h1{font:700 2rem/1.2 Sora,sans-serif;letter-spacing:-.8px;margin:8px 0 12px}.official-header p{font-size:1rem;line-height:1.5}.official-header .eyebrow{font-size:.75rem;color:var(--accent-text)}.official-filters label{font-size:.875rem}.official-badge{font-size:.75rem}.official-event-date,.official-place,.official-seats{font-size:.875rem}.official-event-meta{font-size:.8125rem}.official-date span{font-size:.75rem}.event-section-nav button{font-size:.875rem}

/* Shared discovery navigation and first registration step. */
.discovery-navigation{display:flex;align-items:stretch;gap:26px;border-bottom:1px solid var(--line);margin:0 0 24px;max-width:100%}
.discovery-tab{flex:0 1 auto;min-width:0;min-height:50px;padding:10px 2px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font:600 1rem/1.4 Inter,sans-serif;cursor:pointer}
.discovery-tab.is-active{color:var(--cloud);border-bottom-color:var(--accent)}
.discovery-tab:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:4px}
.discovery-navigation[hidden]{display:none}
.registration-welcome h3{font:700 1.7rem/1.25 Sora,sans-serif;letter-spacing:-.6px;margin:8px 0 14px}.registration-welcome>p:not(.eyebrow){font-size:1rem;line-height:1.6;color:var(--muted);margin:0 0 20px}
.welcome-sections{display:grid;gap:16px;margin:24px 0}.welcome-sections div{border-bottom:1px solid var(--line);padding-bottom:16px}.welcome-sections dt{display:flex;align-items:center;gap:10px;font-size:1rem;font-weight:700}.welcome-sections dt span{font-size:.75rem;color:var(--accent-text);background:var(--accent-soft);border-radius:8px;padding:7px}.welcome-sections dd{font-size:1rem;line-height:1.55;color:var(--muted);margin:6px 0 0 42px}
.welcome-questionnaire{border:1px solid var(--accent-line);background:var(--accent-soft);border-radius:16px;padding:18px;margin:20px 0}.welcome-questionnaire h4{font-size:1rem;line-height:1.5;margin:0 0 8px}.welcome-questionnaire p{font-size:.9375rem;line-height:1.6;color:var(--muted);margin:0}.welcome-questionnaire p+p{margin-top:8px}.registration-welcome>.welcome-invite{font-size:.875rem;line-height:1.6;margin-bottom:12px}
@media(max-width:620px){.discovery-navigation{gap:18px;margin-bottom:18px}.discovery-tab{font-size:.9375rem;min-height:48px}.registration-welcome h3{font-size:1.55rem}.welcome-sections{gap:14px}}
@media(max-width:360px){.discovery-navigation{gap:10px}.discovery-tab{font-size:.875rem}}

.registration-welcome .welcome-sections{gap:12px;margin:18px 0}.registration-welcome .welcome-sections div{padding-bottom:12px}.registration-welcome .welcome-sections dd{margin-left:0}.registration-welcome .welcome-questionnaire{margin:16px 0}
/* Private progress: useful next actions, no public ranking. */
.first-meeting-guide{display:flex;gap:24px;align-items:center;justify-content:space-between;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:24px;padding:24px;margin:20px 0}
.first-meeting-guide h2{font-size:clamp(19px,2.3vw,25px);margin:7px 0}.first-meeting-guide p{margin:6px 0}.journey-actions{display:grid;gap:8px;min-width:200px}.journey-count{font-size:12px;font-weight:700;color:var(--accent-text)}
body.match-active .first-meeting-guide{display:none}.progress-content{display:grid;gap:24px;max-width:960px}.progress-panel{padding:26px;border:1px solid var(--line);border-radius:24px;background:var(--surface)}.progress-panel h2{font-size:23px}.progress-panel p{line-height:1.65}.progress-note{font-size:13px;line-height:1.65;color:var(--muted)}
.journey-steps{display:grid;grid-template-columns:repeat(4,1fr);padding:0;list-style:none;gap:12px;margin:24px 0}.journey-steps li{display:flex;gap:9px;align-items:center}.journey-steps li>span{display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:50%;width:30px;height:30px;flex-shrink:0}.journey-steps strong{font-size:12px}.journey-steps small{display:block;font-size:11px;margin-top:4px}.journey-steps .is-done>span{background:var(--accent-soft);color:var(--accent-text);border-color:var(--accent-line)}
.goal-form{display:flex;gap:12px;align-items:flex-end;margin:16px 0}.goal-form label{flex:1}.goal-form select{margin-top:8px;width:100%}.goal-form button{min-height:48px}#monthlyGoalProgress{display:block;width:100%;height:12px;margin:12px 0;accent-color:var(--accent-strong)}
.milestone-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.milestone-card{position:relative;padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}.milestone-card svg{display:block;width:36px;height:36px;margin-bottom:20px;color:var(--accent-text)}.milestone-card h3{font-size:17px;line-height:1.5}.milestone-card p{font-size:13px;line-height:1.6}.milestone-state{font-size:11px;font-weight:700;display:inline-block;border-radius:20px;padding:5px 9px;background:var(--surface-soft)}.milestone-card.is-earned{border-color:var(--accent-line);background:var(--accent-soft)}.experience-history{list-style:none;padding:0;margin:0}.experience-history li{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:20px 0;border-top:1px solid var(--line)}.experience-history h3{font-size:17px;line-height:1.5;margin:6px 0}.experience-history small{font-size:12px}.experience-history button{flex-shrink:0}
@media(max-width:650px){.first-meeting-guide{align-items:stretch;flex-direction:column;gap:16px;padding:20px}.journey-actions{min-width:0}.journey-steps{grid-template-columns:1fr 1fr;gap:20px}.progress-panel{padding:20px}.milestone-grid{grid-template-columns:1fr}.milestone-card svg{float:left;margin:0 16px 12px 0}.goal-form{align-items:stretch;flex-direction:column}.experience-history li{align-items:flex-start;flex-direction:column;gap:4px}}

.public-listing-settings{border:1px solid var(--line);border-radius:16px;padding:18px;margin:20px 0}.public-listing-settings label{display:block;margin:10px 0}.public-listing-settings textarea{width:100%}

/* Focused discovery: direct actions, visible filters and optional profile settings. */
.home-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.home-shortcuts button{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:10px 16px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--cloud);font:600 .875rem/1.4 Inter,sans-serif;cursor:pointer}.home-shortcuts button:hover{border-color:var(--accent);background:var(--accent-soft)}.home-shortcuts button span{font-size:21px;line-height:1;color:var(--accent-text)}
.home-guide{margin:14px 0 24px;color:var(--muted);font-size:.875rem}.home-guide>summary{cursor:pointer;width:fit-content;padding:8px 0}.home-guide .first-meeting-guide{color:var(--cloud);margin:12px 0}.is-match-discovery .home-shortcuts,.is-match-discovery .home-guide{display:none}
.home-empty-agenda{padding:14px 18px;background:var(--surface-soft);border-radius:12px;color:var(--muted);font-size:.9375rem;line-height:1.6;margin:0}
#homePlan .home-plan-card{padding:18px 22px;gap:18px;border-radius:18px}#homePlan .home-plan-copy h2{font-size:1.15rem;margin:6px 0}#homePlan .home-plan-copy p{font-size:.875rem;margin:4px 0}#homePlan .home-plan-actions{margin-top:12px}#homePlan .home-plan-actions button{min-height:42px;padding:10px 14px;font-size:.8125rem}#homePlan .home-plan-date{padding:12px}#homePlan .home-plan-date strong{font-size:28px}
.active-filter-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 20px}.active-filter-list[hidden]{display:none}.filter-chip{display:inline-flex;align-items:center;gap:12px;max-width:100%;text-align:left;overflow-wrap:anywhere;padding:9px 12px;min-height:42px;border:1px solid var(--accent-line);border-radius:12px;background:var(--accent-soft);color:var(--accent-text);font:600 .8125rem/1.4 Inter,sans-serif;cursor:pointer}.filter-chip span{font-size:20px}.filter-chip:hover{border-color:var(--accent)}.discovery-filters .nearby-panel,.activity-filter-content .nearby-panel{margin:16px 0;padding:16px}.discovery-filters .advanced-filters{margin:16px 0}.result-count{font-size:.875rem;color:var(--muted);margin:0 0 16px}.result-count:empty{display:none}.helpful-empty h2{font-size:1.15rem}.helpful-empty p{line-height:1.6}.helpful-empty>div{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.profile-form-title{font-size:1.35rem;margin:0 0 8px}.profile-form-intro{color:var(--muted);line-height:1.5;margin:0 0 24px}.profile-settings-group{border:1px solid var(--line);border-radius:18px;background:var(--surface);margin:14px 0;overflow:hidden}.profile-settings-group>summary{display:grid;grid-template-columns:1fr auto;gap:7px 18px;list-style:none;cursor:pointer;padding:22px 24px}.profile-settings-group>summary::-webkit-details-marker{display:none}.profile-settings-group>summary::after{content:'+';grid-column:2;grid-row:1/3;align-self:center;font-size:24px;font-weight:400;color:var(--accent-text)}.profile-settings-group[open]>summary::after{content:'−'}.profile-settings-group>summary strong{font-size:1rem}.profile-settings-group>summary span{grid-column:1;color:var(--muted);font-size:.875rem;line-height:1.5}.profile-settings-group[open]>summary{border-bottom:1px solid var(--line)}.profile-settings-group>.settings-card,.profile-settings-group>.presence-settings{margin:0;border:0;border-radius:0;box-shadow:none}.profile-settings-group>summary:focus-visible,.home-shortcuts button:focus-visible,.filter-chip:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
@media(max-width:620px){.home-shortcuts{display:grid;grid-template-columns:1.25fr .8fr 1.15fr;gap:7px;margin:14px 0}.home-shortcuts button{flex-direction:column;gap:7px;justify-content:center;padding:10px 5px;font-size:.75rem;min-height:72px}.home-shortcuts button span{font-size:23px}#homePlan .home-plan-card{padding:15px;gap:12px}#homePlan .home-plan-copy h2{font-size:1rem}#homePlan .home-plan-date{padding:10px}#homePlan .home-plan-actions{gap:7px}#homePlan .home-plan-actions button{font-size:.75rem;padding:10px}#homePlan .home-agenda-link{display:none}.home-guide{margin-bottom:16px}.home-guide>summary{min-height:40px;padding:12px 0}.profile-settings-group>summary{padding:19px 18px}.discovery-filters .nearby-panel,.activity-filter-content .nearby-panel{padding:12px}.active-filter-list{gap:7px}.discovery-control-row .discover-toolbar h2{font-size:1.45rem}}
#discoverFilterCount[hidden],#activityFilterCount[hidden]{display:none}
#homePlan .home-agenda-link{display:none}
#workoutsView.is-saved>.workout-stats{display:none}
#workoutsView.is-saved .workout-view-heading h1{font-size:clamp(1.6rem,3vw,2.2rem)}
@media(max-width:800px){.app-utility{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}.app-utility .mobile-header{flex:1;margin:0;gap:8px}.app-utility .mobile-header>.logo-pair img{width:96px}.app-utility .mobile-header .header-actions>.icon-button{display:none}.app-utility .theme-switch button span{display:none}.app-utility .theme-switch button{min-height:36px;min-width:36px;padding:8px}.app-utility .global-notifications{margin:0}.app-utility .notification-launch{padding:10px 12px;min-height:46px;font-size:.8125rem;white-space:nowrap}.app-utility .count-pill{min-width:24px;min-height:24px}.app-utility .mobile-header .theme-switch{padding:3px}.is-explore-discovery .explore-interest-symbol{width:46px;height:46px}.is-explore-discovery .explore-interest{min-width:66px}.is-explore-discovery .home-plan{margin-bottom:16px}}
@media(max-width:360px){.app-utility{gap:8px}.app-utility .mobile-header>.logo-pair img{width:82px}.app-utility .notification-launch{padding:10px 9px}.app-utility .theme-switch button{min-width:32px}}

/* Guided activity creation: one decision group per step, a review before publishing. */
#workoutDialog{width:min(690px,calc(100% - 24px));max-height:calc(100dvh - 32px)}
.activity-flow-form{gap:20px;max-height:calc(100dvh - 32px);overflow:auto;scroll-padding-block:20px}
.activity-flow-form [hidden]{display:none!important}
.activity-flow-form label{font-size:.9375rem;line-height:1.5;min-width:0}
.activity-flow-form input:not([type=checkbox]),.activity-flow-form select,.activity-flow-form textarea{font-size:1rem;width:100%;min-width:0}
.activity-flow-form .dialog-intro{font-size:.9375rem;line-height:1.55;margin:10px 0 0;color:var(--muted)}
.activity-flow-progress{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:8px;list-style:none;margin:0;padding:0 0 18px;border-bottom:1px solid var(--line)}
.activity-flow-progress li{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.875rem;line-height:1.4;font-weight:600}
.activity-flow-progress li>span{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border-radius:50%;background:var(--surface-soft);border:1px solid var(--line)}
.activity-flow-progress li[aria-current=step]{color:var(--accent-text)}.activity-flow-progress li[aria-current=step]>span{background:var(--accent);border-color:var(--accent);color:#072b29}.activity-flow-progress li.is-complete>span{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-text)}
.activity-flow-step,.activity-extra-content{display:grid;gap:18px;min-width:0}.activity-step-heading h3{font:700 1.25rem/1.4 Sora,sans-serif;letter-spacing:-.4px;margin:0 0 8px}.activity-step-heading p{font-size:.9375rem;line-height:1.55;color:var(--muted);margin:0}.activity-flow-form .field-help{font-size:.875rem;line-height:1.5;font-weight:400;color:var(--muted)}
.activity-extra-details{border:1px solid var(--line);border-radius:16px}.activity-extra-details>summary{padding:17px;cursor:pointer;font-size:.9375rem;font-weight:600;line-height:1.5}.activity-extra-details>summary span{display:block;margin:5px 0 0 18px;color:var(--muted);font-size:.875rem;font-weight:400}.activity-extra-content{padding:0 17px 17px}.activity-extra-content .nearby-panel{margin:0;padding:16px}.activity-extra-content p{font-size:.9375rem;line-height:1.6}
.activity-flow-form .public-listing-settings{margin:0}.activity-flow-form .checkbox-label{display:flex;align-items:flex-start;gap:10px}.activity-flow-form input[type=checkbox]{flex-shrink:0;width:20px;height:20px;margin-top:2px;accent-color:var(--accent)}.activity-visibility-summary{font-size:.9375rem;line-height:1.5;font-weight:600;color:var(--accent-text)}
.activity-review{border:1px solid var(--line);border-radius:18px;overflow:hidden}.activity-review-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px;background:var(--surface-soft)}.activity-review-row+.activity-review-row{border-top:1px solid var(--line)}.activity-review-row>div{min-width:0}.activity-review-label{display:block;color:var(--muted);font-size:.875rem;margin-bottom:7px}.activity-review-row strong{font-size:1rem;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.activity-review-row p{font-size:.9375rem;color:var(--muted);line-height:1.55;margin:7px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.activity-review-row button{flex-shrink:0;min-height:40px;font-size:.875rem}.activity-review-note{font-size:.9375rem;line-height:1.6;margin:0;color:var(--muted)}
.activity-flow-actions{position:sticky;bottom:-24px;display:flex;justify-content:space-between;gap:12px;margin:0 -24px -24px;padding:16px 24px;background:var(--surface);border-top:1px solid var(--line);z-index:2}.activity-flow-actions button{min-height:48px;font-size:.9375rem;white-space:normal}.activity-flow-actions .primary-button{min-width:0;max-width:72%}.activity-flow-actions .action-button{min-width:88px}
@media(max-width:620px){.activity-flow-form{padding:18px;gap:18px}.activity-flow-progress{gap:6px}.activity-flow-progress li{flex-direction:column;align-items:flex-start;gap:7px;font-size:.875rem}.activity-flow-form .workout-form-grid{grid-template-columns:1fr 1fr}.activity-flow-form .field-span-2{grid-column:1/-1}.activity-flow-form .workout-form-grid>label:has([name=city]),.activity-flow-form .workout-form-grid>label:has([name=gymName]),.activity-flow-form .workout-form-grid>label:has([name=workoutType]),.activity-flow-form .workout-form-grid>label:has([name=interest]){grid-column:1/-1}.activity-flow-actions{bottom:-18px;margin:0 -18px -18px;padding:14px 18px calc(14px + env(safe-area-inset-bottom))}.activity-flow-actions .action-button{min-width:74px;padding-inline:10px}.activity-flow-actions .primary-button{padding-inline:13px}.activity-review-row{padding:14px;gap:10px}.activity-review-row button{font-size:.875rem}.activity-extra-content{padding:0 14px 14px}}
.activity-flow-actions{flex-direction:row;align-items:stretch}.activity-flow-actions .action-button,.activity-flow-actions .primary-button{width:auto}.activity-flow-actions .primary-button{flex:0 1 auto}
