:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #637067;
  --paper: #f7f5ef;
  --panel: #fffdf8;
  --line: rgba(23, 33, 27, 0.12);
  --tandem-blue: #25e2dc;
  --green: var(--tandem-blue);
  --turquoise: var(--tandem-blue);
  --marker-cyan: #79fffa;
  --yellow: #ffdf28;
  --fake-pink: #ff4fb8;
  --registered: #7f8b93;
  --orange: #fc5200;
  --blue: #2563eb;
  --color-background: var(--paper);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-interactive-primary: var(--tandem-blue);
  --color-border: var(--line);
  --color-disabled: #a8b0aa;
  --color-destructive: #8a2530;
  --font-family-app: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-profile-setting: 15px;
  --font-size-profile-secondary: 13px;
  --font-weight-regular: 400;
  --font-weight-medium: 560;
  --font-weight-semibold: 720;
  --shadow: 0 18px 50px rgba(20, 30, 24, 0.18);
  --browser-bottom: 0px;
  --top-bar-offset: 14px;
  --app-width: 100vw;
  --app-height: 100dvh;
  --app-left: 0px;
  --app-top: 0px;
  --sheet-outside-gap: 38px;
  --panel-spacing: 10px;
  --card-radius: 14px;
  --button-radius: 15px;
  --active-card-bg: rgba(37, 226, 220, 0.11);
  --inactive-card-bg: #eef1ef;
}

* {
  box-sizing: border-box;
}

html,
body,
.app-shell,
.map-stage {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
}

.app-shell {
  position: relative;
}

body {
  font-family: var(--font-family-app);
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

#profilePhotoInput {
  display: none !important;
}

.map-stage {
  position: relative;
  overflow: hidden;
  background: #d7e3d8;
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: white;
  z-index: 1;
}

.leaflet-container {
  overflow: hidden;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}

.leaflet-marker-icon {
  cursor: pointer;
}

.leaflet-tile {
  user-select: none;
}

.leaflet-tile-pane {
  z-index: 200;
  filter: saturate(0.74) contrast(0.74) brightness(1.18);
  opacity: 0.62;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 650;
}

.leaflet-tooltip-pane,
.leaflet-popup-pane {
  z-index: 700;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 480;
  border: 0;
  background: transparent;
  cursor: default;
}

.bottom-sheet {
  position: fixed;
  z-index: 500;
}

.top-bar,
.tab-bar {
  position: fixed;
  z-index: 800;
}

.top-bar {
  top: calc(env(safe-area-inset-top) + var(--top-bar-offset));
  left: 12px;
  right: 12px;
  width: auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  column-gap: 12px;
  align-items: center;
  pointer-events: none;
  overflow: visible;
}

.top-bar > * {
  pointer-events: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 2px;
  color: #050908;
  font-size: 43px;
  font-style: normal;
  font-weight: 950;
  line-height: 0.9;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.logo-m {
  display: inline-block;
  margin-left: -0.16em;
  color: #050908;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-weight: 1000;
  font-size: 0.9em;
  line-height: 0.9;
  -webkit-text-stroke: 5.3px white;
  paint-order: stroke fill;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transform: skewX(-9deg) scaleX(0.9);
  transform-origin: 50% 100%;
}

h1 {
  margin: 0;
  color: #050908;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: none;
}

.top-brand-stack {
  display: contents;
}

.brand-tagline {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 4px;
  color: #050908;
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 900;
  line-height: 1.04;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: initial;
  text-shadow: 0 5px 16px rgba(255, 255, 255, 0.8);
}

.top-actions {
  grid-column: 3;
  display: flex;
  justify-content: end;
  align-items: center;
}

.language-selector {
  position: relative;
}

.language-button,
.message-button {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  color: var(--turquoise);
  background: white;
  box-shadow: 0 6px 18px rgba(20, 30, 24, 0.18);
}

.language-button {
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.language-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 10000;
  display: grid;
  gap: 6px;
  min-width: 44px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 10px 24px rgba(20, 30, 24, 0.16);
  isolation: isolate;
}

.language-menu button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.language-menu button.is-current {
  font-weight: 900;
}

.language-menu button:hover,
.language-menu button:focus-visible {
  background: var(--tandem-blue);
}

.profile-button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 18px rgba(20, 30, 24, 0.18);
}

.profile-button img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.empty-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  color: #061515;
  background: var(--turquoise);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.message-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
}

.message-button.is-active {
  border-color: rgba(37, 226, 220, 0.48);
  color: #031417;
  background: var(--turquoise);
}

.message-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-sheet {
  left: 6px;
  right: 6px;
  bottom: calc(88px + var(--sheet-outside-gap) + env(safe-area-inset-bottom) + var(--browser-bottom));
  min-height: 0;
  padding: 6px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.bottom-sheet.hidden {
  display: none;
}

.bottom-sheet.expanded {
  top: 118px;
  bottom: calc(88px + var(--sheet-outside-gap) + env(safe-area-inset-bottom) + var(--browser-bottom));
  overflow-y: auto;
}

.bottom-sheet.expanded:has(.run-create-panel) {
  top: max(72px, env(safe-area-inset-top));
  overflow: hidden;
}

.keyboard-open .bottom-sheet.expanded:has(.run-create-panel) {
  top: max(104px, calc(env(safe-area-inset-top) + 54px));
  bottom: max(8px, env(safe-area-inset-bottom));
}

.bottom-sheet.expanded:has(.messages-list) {
  padding: var(--panel-spacing);
}

.bottom-sheet.weekly-mode {
  display: grid;
  top: max(8px, env(safe-area-inset-top));
  left: 6px;
  right: 6px;
  bottom: calc(88px + var(--sheet-outside-gap) + env(safe-area-inset-bottom) + var(--browser-bottom));
  max-height: none;
  z-index: 900;
  padding-top: 10px;
  border-radius: 18px;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.bottom-sheet.profile-mode {
  top: max(8px, env(safe-area-inset-top));
  left: 6px;
  right: 6px;
  bottom: auto;
  max-height: calc(100dvh - 126px - env(safe-area-inset-bottom) - var(--browser-bottom));
  z-index: 860;
  padding-top: 10px;
  border-radius: 18px;
  overflow-y: auto;
}

.bottom-sheet.chat-mode {
  display: grid;
  top: calc(var(--app-top) + 104px + env(safe-area-inset-top));
  left: 6px;
  right: 6px;
  bottom: calc(76px + env(safe-area-inset-bottom) + var(--browser-bottom));
  max-height: none;
  z-index: 900;
  padding: 7px 10px 10px;
  border-radius: 18px;
  overflow: hidden;
  transition: top 0.18s ease, bottom 0.18s ease;
}

.chat-keyboard-open .bottom-sheet.chat-mode {
  top: max(64px, calc(var(--app-top) + 88px + env(safe-area-inset-top)));
}

.bottom-sheet.chat-mode > .grabber {
  display: none;
}

.grabber {
  justify-self: center;
  width: 42px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(99, 112, 103, 0.24);
}

.bottom-sheet.weekly-mode > .grabber {
  cursor: grab;
  touch-action: none;
}

.grabber + .grabber {
  display: none;
}

.bottom-sheet.profile-mode > .grabber {
  display: none;
}

.bottom-sheet > .runner-card {
  padding-right: 0;
}

.bottom-sheet > .public-run-card {
  margin-inline: 0;
  padding: 0;
}

.empty-state {
  margin: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.runner-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.runner-card .actions {
  grid-column: 1 / -1;
}

.public-run-card {
  display: grid;
  gap: 8px;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.public-run-card.is-fake {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 79, 184, 0.72);
}

.runner-main {
  min-width: 0;
}

.runner-card .runner-main {
  padding-right: 48px;
}

.public-run-card .runner-main {
  padding-right: 48px;
}

.public-run-card .runner-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.public-run-card .runner-name {
  font-size: 17px;
  font-weight: 850;
}

.public-run-card .run-meta {
  margin-top: 3px;
}

.runner-card-photo {
  width: 72px;
  height: 72px;
  border: 2px solid white;
  border-radius: 50%;
  object-fit: cover;
}

.runner-card.is-fake .runner-card-photo,
.match-row.is-fake .match-avatar {
  border: 2px solid var(--fake-pink);
  border-color: var(--fake-pink);
  box-shadow:
    0 0 0 1px rgba(255, 79, 184, 0.24),
    0 4px 10px rgba(20, 30, 24, 0.12);
}

.runner-next-slot {
  margin-top: 4px;
  color: #2f3933;
  font-weight: 780;
}

.runner-line {
  display: flex;
  align-items: center;
  min-width: 0;
}

.mini-card-chat-action {
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #031417;
  background: var(--turquoise);
}

.mini-card-chat-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runner-name {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runner-name-link {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.runner-name-link:hover,
.runner-name-link:focus-visible {
  color: var(--turquoise);
}

.strava-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 5px;
  color: white;
  background: var(--orange);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.strava-badge-muted {
  background: #8d9890;
}

.strava-disabled-pill {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 8px;
  border: 0;
  border-radius: 5px;
  color: white;
  background: #8d9890;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  cursor: not-allowed;
}

.strava-verified {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.strava-not-connected {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.strava-connect-disabled {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.run-meta {
  margin: 3px 0 0;
  color: #2f3933;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.22;
}

.runner-metrics {
  color: var(--ink);
  font-weight: 780;
}

.action.is-confirmed {
  color: #031417;
  background: var(--turquoise);
  box-shadow: none;
}

.strava-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.strava-connect-action {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.mini-chips span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(237, 241, 234, 0.92);
  font-size: 11px;
  font-weight: 850;
}

.actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
  min-height: 38px;
}

.actions.is-joined-run {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.action {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: #edf1ea;
  font-weight: 750;
}

.action.primary {
  color: #031417;
  background: var(--turquoise);
}

.action.icon-action {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
}

.action.icon-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.joined-run-status {
  width: 100%;
}

.run-card-message-action {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  color: var(--ink);
  background: #edf1ea;
}

.run-card-message-action.is-active {
  color: #031417;
  background: var(--turquoise);
}

.run-type-pill {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #153d3a;
  background: rgba(37, 226, 220, 0.24);
  font-size: 11px;
  font-weight: 850;
}

.location-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: -2px;
}

.location-meta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.participant-avatars {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-top: 6px;
}

.participant-avatar {
  display: inline-flex;
}

.chat-participant-avatar {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chat-participant-avatar:hover .match-avatar,
.chat-participant-avatar:focus-visible .match-avatar {
  border-color: var(--turquoise);
}

.chat-participant-avatar:focus-visible {
  outline: none;
}

.participant-avatars .match-avatar {
  width: 38px;
  height: 38px;
  margin-right: -8px;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(20, 30, 24, 0.12);
}

.participant-avatar.is-mine .match-avatar,
.participant-avatar.is-mine .empty-avatar {
  border-color: var(--yellow);
  box-shadow: 0 4px 10px rgba(20, 30, 24, 0.12);
}

.participant-avatar.is-fake .match-avatar,
.participant-avatar.is-fake .empty-avatar,
.chat-participant-avatar.is-fake:hover .match-avatar,
.chat-participant-avatar.is-fake:focus-visible .match-avatar {
  border-color: var(--fake-pink);
  box-shadow:
    0 0 0 1px rgba(255, 79, 184, 0.24),
    0 4px 10px rgba(20, 30, 24, 0.12);
}

.participant-avatar .empty-avatar {
  width: 38px;
  height: 38px;
  margin-right: -8px;
  border: 2px solid white;
  font-size: 15px;
}

.profile-link {
  color: #119f9b;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.map-zoom-controls {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 520;
  display: grid;
  gap: 5px;
  transform: translateY(-50%);
}

.map-zoom-controls.is-hidden {
  display: none;
}

.map-zoom-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(99, 112, 103, 0.18);
  border-radius: 50%;
  color: #5f6b63;
  background: rgba(245, 247, 244, 0.9);
  box-shadow: 0 5px 14px rgba(20, 30, 24, 0.12);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(14px);
}

.tab-bar {
  left: 10px;
  right: 10px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  top: auto;
  width: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.network-status {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 920;
  padding: 10px 12px;
  border: 1px solid rgba(138, 37, 48, 0.2);
  border-radius: 14px;
  color: #8a2530;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 28px rgba(20, 30, 24, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.tab {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  color: var(--muted);
  background: transparent;
  font-weight: 760;
}

.tab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab span {
  font-size: 18px;
  line-height: 1;
}

.tab b {
  display: block;
  font-size: 12px;
  line-height: 1.1;
}

.tab.active {
  color: #031417;
  background: var(--tandem-blue);
}

.tab.muted {
  opacity: 0.48;
}

.tab:disabled {
  cursor: default;
}

.run-marker {
  position: relative;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: var(--turquoise);
  border: 0;
  box-shadow:
    0 0 0 1px white,
    0 0 0 2px rgba(0, 245, 255, 0.62),
    0 0 8px rgba(0, 245, 255, 0.95),
    0 0 14px rgba(0, 245, 255, 0.38);
}

.run-marker::before {
  content: none;
  position: absolute;
  inset: 7px;
  z-index: 2;
  border-radius: inherit;
  background: var(--turquoise);
  box-shadow: 0 0 3px rgba(121, 255, 250, 0.58);
}

.run-marker::after {
  content: none;
  position: absolute;
  inset: 4px;
  z-index: 1;
  border-radius: inherit;
  background: var(--turquoise);
  opacity: 0.42;
  animation: markerGlow 2.34s ease-in-out infinite;
}

.run-marker.dim {
  opacity: 1;
}

.run-marker.hot {
  width: 23px;
  height: 23px;
}

.runner-marker,
.public-run-marker {
  position: relative;
  border-radius: 999px;
  background: var(--turquoise);
  border: 0;
  box-shadow:
    0 0 0 1px white,
    0 0 0 2px rgba(0, 245, 255, 0.62),
    0 0 8px rgba(0, 245, 255, 0.95),
    0 0 14px rgba(0, 245, 255, 0.38);
}

.runner-marker.is-fake {
  background: var(--turquoise);
  box-shadow:
    0 0 0 2px var(--fake-pink),
    0 0 0 3px rgba(255, 79, 184, 0.28),
    0 0 8px rgba(255, 79, 184, 0.58);
}

.runner-marker {
  width: 14px;
  height: 14px;
  margin: 2px;
}

.runner-marker.is-later {
  background: var(--turquoise);
}

.public-run-marker {
  width: 29px;
  height: 29px;
  margin: 2.5px;
  box-shadow:
    0 0 0 1px white,
    0 0 0 2px rgba(0, 245, 255, 0.62),
    0 0 9px rgba(0, 245, 255, 0.98),
    0 0 16px rgba(0, 245, 255, 0.42);
}

.public-run-marker.is-fake {
  background: var(--turquoise);
  box-shadow:
    0 0 0 2px var(--fake-pink),
    0 0 0 3px rgba(255, 79, 184, 0.28),
    0 0 10px rgba(255, 79, 184, 0.6);
}

.public-run-marker.is-later {
  background: var(--turquoise);
}

.public-run-marker.is-joined {
  background: var(--turquoise);
}

.public-run-cluster-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 2px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--turquoise);
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px rgba(0, 245, 255, 0.46),
    0 0 12px rgba(0, 245, 255, 0.72);
  font-size: 15px;
  font-weight: 940;
  line-height: 1;
}

.runner-status {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--registered);
}

.runner-status.active {
  background: var(--turquoise);
  box-shadow: 0 0 14px rgba(37, 226, 220, 0.96);
}

.profile-panel,
.match-list {
  display: grid;
  gap: var(--panel-spacing);
}

.messages-list {
  gap: var(--panel-spacing);
  padding: 0;
}

.profile-return-action {
  justify-self: start;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.profile-return-action:hover,
.profile-return-action:focus-visible {
  color: var(--ink);
  outline: none;
}

.contact-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(237, 241, 234, 0.72);
}

.contact-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.contact-tabs button.active {
  color: white;
  background: var(--ink);
}

.slots-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.run-list-panel {
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  gap: 0;
  padding-bottom: 0;
}

.run-create-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 0;
}

.run-create-scroll {
  display: grid;
  min-height: 0;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 1px;
}

.keyboard-open .run-create-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
}

.keyboard-open .run-create-scroll {
  gap: 6px;
}

.weekly-slots-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  gap: 7px;
}

.slots-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

.run-create-title {
  display: inline-flex;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.run-create-title h2 {
  font-size: 16px;
}

.slots-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.18;
}

.weekly-slots-panel .slots-head h2 {
  font-size: clamp(18px, 5.1vw, 24px);
}

.weekly-slots-panel .slots-head p {
  margin-top: 3px;
  font-size: clamp(10px, 3vw, 13px);
  line-height: 1.12;
}

.slot-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.slot-filter {
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fbfaf6;
  text-align: left;
}

.slot-filter span,
.slot-filter b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-filter span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.slot-filter b {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.1;
}

.build-run {
  justify-self: stretch;
  align-self: end;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: var(--button-radius);
  color: #031417;
  background: var(--turquoise);
  box-shadow: none;
  font-size: 15px;
  font-weight: 850;
}

.run-list-footer {
  display: grid;
  padding: var(--panel-spacing);
  padding-bottom: calc(var(--panel-spacing) + env(safe-area-inset-bottom) + var(--browser-bottom));
  border-top: 0;
  background: var(--panel);
}

.action:disabled,
.match-action:disabled {
  color: var(--muted);
  background: #eef1ef;
  box-shadow: none;
  cursor: default;
}

.weekly-slots-panel .build-run {
  min-height: 34px;
  border-radius: 12px;
  font-size: 14px;
}

.run-slot-picker {
  display: grid;
  gap: 6px;
}

.run-slot-picker button {
  min-height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-primary);
  background: #fbfaf6;
  font-size: var(--font-size-profile-secondary);
  font-weight: var(--font-weight-medium);
}

.run-slot-picker button.is-selected {
  border-color: rgba(37, 226, 220, 0.58);
  background: var(--color-interactive-primary);
}

.run-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 27, 0.1);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.88);
}

.builder-field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid rgba(23, 33, 27, 0.08);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.builder-field:last-child {
  border-bottom: 0;
}

.builder-field span,
.builder-field b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.builder-field b {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.15;
  text-align: right;
}

.builder-field-input input,
.builder-field-input select {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 690;
  line-height: 1.2;
  text-align: right;
  outline: none;
}

.builder-field-input input[type="date"],
.builder-field-input input[type="time"],
.builder-field-input select {
  justify-self: end;
}

.builder-field-input select {
  appearance: auto;
  text-align-last: right;
}

.builder-field-input input[type="date"],
.builder-field-input input[type="time"] {
  position: relative;
}

.builder-field-input input[type="date"]::-webkit-calendar-picker-indicator,
.builder-field-input input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 0;
  cursor: pointer;
}

.builder-field-switch input {
  justify-self: end;
  width: 42px;
  height: 24px;
  margin: 0;
  accent-color: var(--turquoise);
}

.meeting-point-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.meeting-point-suggestions p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.meeting-point-suggestions button {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(23, 33, 27, 0.1);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  font: inherit;
  text-align: left;
}

.builder-meeting-point {
  align-items: start;
}

.builder-meeting-point > span {
  padding-top: 2px;
}

.meeting-point-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 2px 7px;
  min-width: 0;
}

.meeting-point-control input {
  grid-column: 1;
}

.meeting-point-control button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #edf1ea;
  font: inherit;
  font-size: 19px;
  font-weight: 820;
  line-height: 1;
}

.meeting-point-control small {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.15;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-point-suggestions span,
.meeting-point-suggestions em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-point-suggestions span {
  font-size: 12px;
  font-weight: 820;
  line-height: 1.1;
}

.meeting-point-suggestions em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.1;
}

@media (max-width: 390px) {
  .meeting-point-suggestions {
    grid-template-columns: 1fr;
  }
}

.build-preview {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(37, 226, 220, 0.09);
}

.build-preview h3,
.build-preview p {
  margin: 0;
}

.build-preview h3 {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.build-preview p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.build-preview .recurrence-preview {
  color: var(--teal-dark);
  font-size: 12px;
}

.builder-validation {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.similar-run-list,
.cluster-run-list {
  display: grid;
  gap: var(--panel-gap);
}

.similar-run-card,
.cluster-run-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: var(--card-radius);
  color: var(--ink);
  background: rgba(37, 226, 220, 0.1);
  font: inherit;
  text-align: left;
}

.cluster-run-card {
  grid-template-columns: 1fr;
}

.similar-run-card h3,
.similar-run-card p,
.similar-run-card small,
.similar-run-card em,
.cluster-run-card span,
.cluster-run-card small {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-run-card h3,
.cluster-run-card span {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.similar-run-card p,
.cluster-run-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.similar-run-card em,
.similar-run-card small {
  display: block;
  margin-top: 3px;
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.builder-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.98) 20%);
  z-index: 2;
}

.safety-panel {
  display: grid;
  gap: 10px;
  padding: 4px 2px 2px;
  color: var(--ink);
}

.safety-panel h2,
.safety-panel p,
.safety-panel ul {
  margin: 0;
}

.safety-panel h2 {
  font-size: 20px;
  line-height: 1.1;
}

.safety-panel p,
.safety-panel li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.28;
}

.safety-panel ul {
  display: grid;
  gap: 5px;
  padding: 10px 12px 10px 28px;
  border-radius: 14px;
  background: rgba(237, 241, 234, 0.72);
}

.safety-panel .safety-note {
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

.runs-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: var(--panel-spacing);
  border: 0;
  border-radius: var(--card-radius);
  background: var(--panel);
  box-shadow: none;
}

.slots-list {
  display: grid;
  align-content: start;
  gap: var(--panel-spacing);
  min-height: 0;
}

.run-row-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
}

.run-delete-bg {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-content: end;
  padding-right: 18px;
  color: #fff;
  background: #b8323a;
  font-size: 13px;
  font-weight: 900;
}

.slot-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.slot-row.public-run-row {
  grid-template-columns: minmax(0, 1fr);
  padding: 6px 9px 5px;
  border-color: transparent;
  background: var(--active-card-bg);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  position: relative;
  z-index: 1;
}

.slot-row.public-run-row:hover,
.slot-row.public-run-row:focus-visible {
  border-color: transparent;
  background: rgba(37, 226, 220, 0.16);
  outline: none;
}

.slot-row.public-run-row.is-fake {
  border-color: rgba(255, 79, 184, 0.72);
}

.slot-row.public-run-row.is-fake:hover,
.slot-row.public-run-row.is-fake:focus-visible {
  border-color: var(--fake-pink);
}

.slot-main {
  min-width: 0;
}

.slot-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
}

.slot-title span {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.slot-row.public-run-row .slot-title {
  align-items: start;
  gap: 5px;
}

.slot-row.public-run-row .runner-name,
.slot-row.public-run-row .slot-title span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.04;
}

.slot-row.public-run-row .runner-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-row.public-run-row .run-meta {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
}

.slot-row.public-run-row .participant-avatars {
  min-height: 28px;
  margin-top: 0;
}

.slot-row.public-run-row .participant-avatars .match-avatar,
.slot-row.public-run-row .participant-avatar .empty-avatar {
  width: 32px;
  height: 32px;
  margin-right: -7px;
}

.slot-row.public-run-row.is-inactive {
  border-color: transparent;
  background: var(--inactive-card-bg);
}

.slot-row.public-run-row.is-inactive.is-swiping {
  transition: none;
}

.slot-row.public-run-row.is-inactive .runner-name,
.slot-row.public-run-row.is-inactive .run-meta {
  color: var(--muted);
}

.inactive-runs {
  margin-top: var(--panel-spacing);
}

.run-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
}

.slot-action {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.profile-row,
.match-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: start;
}

.own-profile .profile-row {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.setup-panel {
  gap: 14px;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-fields .profile-field-range {
  grid-column: 1 / -1;
}

.profile-fields .profile-field-static {
  grid-column: 1 / -1;
}

.profile-field {
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fbfaf6;
  text-align: left;
}

.profile-field span,
.profile-field b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-field span {
  color: var(--color-text-primary);
  font-size: var(--font-size-profile-setting);
  font-weight: var(--font-weight-semibold);
}

.profile-field b {
  margin-top: 3px;
  color: var(--color-text-primary);
  font-size: var(--font-size-profile-setting);
  font-weight: var(--font-weight-medium);
}

.profile-field input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--turquoise);
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.profile-field-picker {
  display: grid;
  gap: 8px;
}

.profile-field-picker > span {
  text-align: center;
}

.picker-range {
  display: grid;
  grid-template-columns: minmax(48px, 0.8fr) 14px minmax(48px, 0.8fr) auto;
  align-items: baseline;
  justify-content: center;
  column-gap: 4px;
  min-width: 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-profile-setting);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.picker-range select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0;
  appearance: none;
  text-align: center;
  text-align-last: center;
}

.picker-range b {
  justify-self: center;
}

.picker-range select:focus-visible {
  outline: 2px solid rgba(37, 226, 220, 0.5);
  outline-offset: 3px;
  border-radius: 7px;
}

.picker-range em {
  color: var(--ink);
  font-style: normal;
  font-size: var(--font-size-profile-setting);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.compact-privacy {
  display: grid;
  grid-template-columns: auto minmax(145px, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  padding-bottom: 10px;
}

.compact-privacy > span {
  align-self: end;
  padding-bottom: 3px;
}

.privacy-control {
  position: relative;
  min-width: 0;
  padding-top: 17px;
}

.privacy-control b {
  position: absolute;
  top: 1px;
  left: clamp(28px, var(--privacy-left), calc(100% - 28px));
  transform: translateX(-50%);
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-profile-setting);
  font-weight: var(--font-weight-medium);
}

.profile-field-help {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.22;
}

.profile-field input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: #717c75;
}

.profile-field input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8.5px;
  border: 3px solid #e7fffb;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 2px 8px rgba(20, 34, 29, 0.18);
  appearance: none;
}

.profile-field input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: #717c75;
}

.profile-field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #e7fffb;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 2px 8px rgba(20, 34, 29, 0.18);
}

.email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.birthdate-row {
  gap: 10px;
}

.birthdate-row input {
  min-width: 0;
  max-width: 118px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: var(--font-size-profile-secondary);
  font-weight: var(--font-weight-semibold);
  text-align: right;
}

.profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--turquoise);
}

.profile-inline-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, auto) 68px 24px;
  align-items: center;
  gap: 7px;
}

.profile-inline-toggle-row > span:first-child {
  min-width: 0;
}

.profile-inline-toggle-row .profile-toggle-label,
.profile-inline-toggle-row b {
  grid-column: 3;
  color: var(--ink);
  font-size: var(--font-size-profile-secondary);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  text-align: right;
}

.profile-inline-toggle-row input[type="date"] {
  grid-column: 2;
}

.profile-inline-toggle-row input[type="checkbox"] {
  grid-column: 4;
  width: 22px;
  height: 22px;
  margin: 0;
  appearance: none;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(77, 90, 82, 0.3);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.profile-inline-toggle-row input[type="checkbox"]:checked {
  border-color: var(--turquoise);
  background: var(--turquoise);
}

.profile-inline-toggle-row input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translate(1px, -1px);
}

.profile-inline-toggle-row input[type="checkbox"]:checked::after {
  border-color: var(--ink);
}

.profile-technical .profile-field,
.profile-technical .delete-profile {
  min-height: 44px;
  width: 100%;
}

.profile-technical button.profile-field,
.profile-technical .delete-profile {
  cursor: pointer;
}

.profile-technical button.profile-field:hover,
.profile-technical button.profile-field:focus-visible {
  border-color: rgba(37, 226, 220, 0.45);
  color: #2f3a34;
  background: #f4f7f2;
}

.profile-field.needs-profile-attention,
.weekly-preview.needs-profile-attention {
  border-color: transparent;
  background: var(--active-card-bg);
  box-shadow: none;
  animation: profileAttentionPulse 2.4s ease-in-out infinite;
}

.profile-field.needs-profile-attention:hover,
.profile-field.needs-profile-attention:focus-visible {
  background: rgba(37, 226, 220, 0.16);
}

.email-row span,
.email-row b,
.email-row a,
.invite-profile span,
.invite-profile b,
.invite-profile em,
.birthdate-row span,
.birthdate-row input {
  margin: 0;
  font-size: var(--font-size-profile-secondary);
  line-height: 1.1;
}

.email-row b,
.email-row a,
.invite-profile b,
.invite-profile em {
  text-align: right;
}

.email-row span,
.invite-profile span,
.birthdate-row span:first-child,
.strava-hide-row span {
  color: var(--ink);
  font-weight: var(--font-weight-regular);
}

.email-row b,
.email-row a,
.invite-profile b,
.invite-profile em,
.strava-hide-row b {
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
}

.invite-profile em {
  color: var(--ink);
}

.strava-hide-row {
  font: inherit;
}

.button-row.strava-hide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.button-row.strava-hide-row b {
  justify-self: end;
  text-align: right;
}

.strava-hide-row.profile-inline-toggle-row {
  grid-template-columns: minmax(0, 1fr) auto 24px;
}

.strava-hide-row.profile-inline-toggle-row .profile-toggle-label {
  grid-column: 2;
  color: var(--ink);
  font-weight: var(--font-weight-semibold);
}

.strava-hide-row.profile-inline-toggle-row input[type="checkbox"] {
  grid-column: 3;
}

.profile-technical {
  display: grid;
  gap: 8px;
}

.invite-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
}

.invite-profile span {
  flex: 1 1 auto;
}

.invite-profile em {
  font-style: normal;
}

.invite-profile .share-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #031417;
  background: var(--turquoise);
  font-size: 14px;
  font-weight: 900;
}

.admin-console-row {
  border-color: rgba(37, 226, 220, 0.62);
  background: rgba(37, 226, 220, 0.18);
  justify-content: flex-start;
}

.admin-console-row b {
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.profile-technical button.admin-console-row:hover,
.profile-technical button.admin-console-row:focus-visible {
  border-color: rgba(37, 226, 220, 0.9);
  background: rgba(37, 226, 220, 0.28);
}

.notification-row b {
  color: var(--ink);
}

.notification-row.is-enabled b {
  color: var(--ink);
}

.notification-row .profile-row-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(77, 90, 82, 0.3);
  border-radius: 5px;
  background: #fff;
}

.notification-row.is-enabled .profile-row-check {
  border-color: var(--turquoise);
  background: var(--turquoise);
}

.notification-row.is-enabled .profile-row-check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg) translate(1px, -1px);
}

.delete-profile {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fbfaf6;
  font-size: var(--font-size-profile-secondary);
  font-weight: var(--font-weight-semibold);
  text-align: left;
}

.delete-profile:hover,
.delete-profile:focus-visible {
  border-color: rgba(77, 90, 82, 0.28);
  color: var(--ink);
  background: #f4f7f2;
}

.confirm-panel {
  display: grid;
  gap: 14px;
  padding: 48px 16px 18px;
}

.confirm-panel h2,
.confirm-panel p {
  margin: 0;
}

.confirm-panel h2 {
  font-size: 24px;
  line-height: 1.05;
}

.confirm-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.28;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.confirm-delete {
  min-height: 38px;
}

.share-panel {
  display: grid;
  gap: 16px;
  padding: 46px 16px 18px;
}

.share-panel h2,
.share-panel p {
  margin: 0;
}

.share-panel h2 {
  font-size: 24px;
  line-height: 1;
  text-transform: lowercase;
}

.share-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.share-grid button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 82px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
}

.share-grid b {
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.05;
  text-align: center;
}

.share-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.share-logo.whatsapp {
  background: #25d366;
}

.share-logo.messenger {
  background: #0084ff;
}

.share-logo.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 48%, #515bd4);
}

.share-logo.email {
  background: #637067;
}

.share-logo.copy {
  color: #031417;
  background: var(--turquoise);
}

.weekly-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  justify-content: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.weekly-preview.needs-profile-attention {
  padding: 6px;
  border-radius: var(--card-radius);
}

.weekly-preview .match-action {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 950;
}

.weekly-preview h3,
.weekly-preview p {
  margin: 0;
}

.weekly-preview h3 {
  font-size: 14px;
}

.weekly-preview p {
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.18;
  max-width: 220px;
}

.availability-grid {
  display: grid;
  grid-template-columns: 34px repeat(7, minmax(28px, 1fr));
  gap: 3px;
  padding: 8px 7px 8px 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(251, 250, 246, 0.86);
  touch-action: none;
  user-select: none;
}

.weekly-availability-grid {
  grid-template-columns: 36px repeat(7, minmax(0, 1fr));
  grid-template-rows: 18px repeat(17, minmax(16px, 1fr));
  gap: clamp(1px, 0.45vh, 3px);
  min-height: 0;
  height: 100%;
  padding: 5px;
  overflow: hidden;
}

.slot-corner,
.slot-day-head,
.slot-hour {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.slot-hour {
  justify-content: end;
  padding-right: 3px;
  font-size: 11px;
}

.slot-cell {
  aspect-ratio: 1.25;
  min-width: 0;
  min-height: 22px;
  border: 1px solid rgba(23, 33, 27, 0.08);
  border-radius: 6px;
  background: white;
}

.weekly-availability-grid .slot-day-head,
.weekly-availability-grid .slot-hour {
  font-size: clamp(9px, 2.6vw, 12px);
}

.weekly-availability-grid .slot-hour {
  padding-right: 2px;
}

.weekly-availability-grid .slot-cell {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: clamp(4px, 1.5vw, 7px);
}

.slot-cell.selected {
  border-color: rgba(37, 226, 220, 0.86);
  background: var(--turquoise);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.profile-avatar,
.match-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar-button {
  width: 84px;
  height: 84px;
  margin-top: -10px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.profile-photo-stack {
  display: grid;
  justify-items: center;
}

.profile-avatar-button .profile-avatar,
.own-profile .profile-avatar {
  width: 84px;
  height: 84px;
  border: 4px solid var(--yellow);
  box-shadow: 0 8px 22px rgba(20, 30, 24, 0.18);
}

.profile-avatar.is-fake {
  border: 3px solid var(--fake-pink);
  box-shadow:
    0 0 0 1px rgba(255, 79, 184, 0.24),
    0 8px 22px rgba(20, 30, 24, 0.18);
}

.profile-row .runner-name {
  color: #4d5a52;
  font-weight: 820;
  text-transform: none;
}

.own-profile .profile-row {
  margin-top: -11px;
  margin-left: -3px;
}

.own-profile .profile-avatar-button {
  margin-top: 0;
  margin-left: 0;
}

.own-profile .runner-name {
  font-size: 17px;
  line-height: 1.08;
}

.profile-strava-line {
  margin-top: 3px;
}

.strava-profile-link,
.strava-profile-link:visited,
.strava-profile-link:hover,
.strava-profile-link:active {
  color: #fc4c02;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-decoration: none;
}

.strava-profile-link:focus-visible {
  color: #fc4c02;
  outline: 3px solid rgba(252, 76, 2, 0.34);
  outline-offset: 3px;
  border-radius: 6px;
}

.needs-profile-attention {
  position: relative;
  border-color: transparent !important;
  background: var(--active-card-bg);
  box-shadow: none;
  animation: profileAttentionPulse 2.4s ease-in-out infinite;
}

.needs-profile-attention::after {
  content: none;
}

@keyframes profileAttentionPulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(37, 226, 220, 0.1);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(37, 226, 220, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .needs-profile-attention {
    animation: none;
  }
}

.manual-strava-form,
.manual-strava-link {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: min(100%, 310px);
}

.add-strava-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  max-width: 100%;
  padding: 0;
  border: 0;
  color: #119f9b;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.add-strava-link span {
  color: #119f9b;
  font-weight: 930;
}

.add-strava-link b {
  color: #119f9b;
  font-weight: 900;
}

.add-strava-link:hover,
.add-strava-link:focus-visible,
.profile-link:hover,
.profile-link:focus-visible {
  text-decoration: none;
  cursor: pointer;
}

.strava-profile-link b {
  color: #fc4c02;
  font-weight: 930;
}

.strava-profile-link span {
  color: var(--muted);
  font-weight: 900;
}

.strava-manual-panel {
  display: grid;
  gap: 11px;
  padding: 2px 0 0;
}

.strava-manual-panel .builder-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strava-manual-head {
  display: grid;
  gap: 6px;
  padding-right: 34px;
}

.strava-manual-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.12;
}

.strava-manual-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.35;
}

.strava-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  align-items: center;
  margin-top: -4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.35;
}

.strava-identity span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strava-consent-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 2px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
  line-height: 1.28;
}

.strava-consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--turquoise);
}

.manual-strava-field {
  display: grid;
  gap: 7px;
}

.manual-strava-field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.manual-strava-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(252, 82, 0, 0.22);
  border-radius: 13px;
  outline: none;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 520;
  box-shadow: inset 0 1px 0 rgba(23, 33, 27, 0.04);
}

.strava-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(23, 33, 27, 0.22);
  z-index: 1600;
}

.strava-modal {
  display: grid;
  gap: 11px;
  width: min(100%, 360px);
  max-height: min(86dvh, 540px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.keyboard-open .strava-modal-backdrop {
  align-items: start;
  padding-top: max(12px, env(safe-area-inset-top));
}

.strava-modal .strava-manual-panel {
  padding: 0;
}

.manual-strava-field input::placeholder {
  color: rgba(99, 112, 103, 0.72);
  font-weight: 520;
}

.manual-strava-field input:focus {
  border-color: rgba(252, 82, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(252, 82, 0, 0.12);
}

.strava-link-status {
  min-height: 14px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 680;
  line-height: 1.2;
}

.strava-link-status.is-valid {
  color: #14736f;
}

.strava-remove-panel {
  padding-top: 4px;
}

.action.primary.danger-action {
  color: white;
  background: var(--orange);
}

.action.primary:disabled {
  color: rgba(6, 21, 21, 0.38);
  background: #edf1ea;
}

.keyboard-open .build-preview {
  padding-block: 7px;
}

.keyboard-open .build-preview p {
  margin-top: 2px;
}

.you-profile-dot {
  background: var(--yellow);
  border: 3px solid white;
  box-shadow: inset 0 0 0 3px var(--yellow);
}

.match-row.pending,
.match-row.sent {
  opacity: 0.56;
}

.match-action {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #031417;
  background: var(--turquoise);
  font-weight: 800;
}

.match-action.icon-action {
  display: grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.match-action.icon-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.match-row.pending .match-action,
.match-row.sent .match-action {
  color: var(--muted);
  background: #eef1ef;
}

.public-run-chat-row {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 11px 13px;
  border: 0;
  border-radius: 15px;
  color: var(--ink);
  background: rgba(37, 226, 220, 0.11);
  cursor: pointer;
}

.public-run-chat-row.direct-chat-row {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: rgba(255, 253, 248, 0.92);
}

.public-run-chat-row.is-active-agreement {
  background: rgba(37, 226, 220, 0.11);
}

.public-run-chat-row.is-history {
  background: #eeeeee;
}

.public-run-chat-row:hover,
.public-run-chat-row:focus-visible {
  background: rgba(37, 226, 220, 0.16);
  outline: none;
}

.public-run-chat-row.direct-chat-row:hover,
.public-run-chat-row.direct-chat-row:focus-visible {
  background: rgba(37, 226, 220, 0.1);
}

.public-run-chat-row.direct-chat-row.is-history:hover,
.public-run-chat-row.direct-chat-row.is-history:focus-visible {
  background: #e7e7e7;
}

.contact-row-main {
  min-width: 0;
}

.contact-row-avatar {
  width: 42px;
  height: 42px;
  border: 2px solid white;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(20, 30, 24, 0.12);
}

.public-run-chat-row h2,
.public-run-chat-row p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-run-chat-row h2 {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.16;
}

.public-run-chat-row p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.18;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.98);
}

.chat-head {
  display: grid;
  gap: 4px;
  padding: 3px 2px 10px;
  border-bottom: 0;
  background: rgba(255, 253, 248, 0.98);
}

.chat-head .participant-avatars {
  min-height: 30px;
  margin-top: 0;
}

.chat-title-row {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.run-chat-title-row {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.chat-back-action {
  display: grid;
  place-items: center;
  width: 24px;
  height: 32px;
  border: 0;
  border-radius: 0;
  color: var(--turquoise);
  background: transparent;
  box-shadow: none;
}

.chat-back-action svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-head h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-chat-title-row h2 {
  overflow: visible;
  padding-top: 0;
  text-overflow: clip;
  white-space: normal;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border: 2px solid white;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(20, 30, 24, 0.12);
}

.chat-run-info {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding: 12px 13px;
  border: 0;
  border-radius: 12px;
  background: rgba(37, 226, 220, 0.11);
}

.chat-run-info .agreement-details {
  grid-template-columns: minmax(0, 1fr) minmax(116px, auto);
}

.chat-run-info .agreement-details div:nth-child(2),
.chat-run-info .agreement-details div:nth-child(4) {
  justify-self: end;
  grid-template-columns: auto auto;
  text-align: right;
}

.chat-run-info h3,
.chat-run-info p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: anywhere;
  white-space: normal;
}

.chat-run-info button {
  justify-self: start;
  min-height: 30px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px solid rgba(37, 226, 220, 0.72);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.chat-messages {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  padding: 10px 12px 10px 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  background: rgba(255, 253, 248, 0.98);
  overscroll-behavior: contain;
  overflow-anchor: none;
}

.chat-messages::-webkit-scrollbar {
  width: 12px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(237, 241, 234, 0.82);
  border-radius: 999px;
}

.chat-messages::-webkit-scrollbar-thumb {
  border: 3px solid rgba(237, 241, 234, 0.82);
  border-radius: 999px;
  background: rgba(92, 106, 96, 0.42);
}

.chat-history-notice {
  justify-self: center;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(237, 241, 234, 0.86);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.chat-message {
  display: grid;
  align-items: center;
  gap: 7px;
}

.chat-message.other {
  grid-template-columns: 28px minmax(0, 1fr);
}

.chat-message.system {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
}

.chat-message.mine {
  grid-template-columns: minmax(0, 1fr) 28px;
}

.chat-system-icon,
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.chat-system-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #edf1ea;
}

.chat-system-icon.app-mark {
  width: 24px;
  height: 24px;
  color: #061515;
  background: var(--turquoise);
  font-family: Arial Rounded MT Bold, Avenir Next, Arial, sans-serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
  transform: none;
}

.chat-avatar {
  object-fit: cover;
}

.chat-message .empty-avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.chat-bubble {
  width: fit-content;
  max-width: min(100%, 520px);
  margin: 0;
  padding: 8px 11px;
  border-radius: 15px;
  color: var(--ink);
  background: white;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.26;
  box-shadow: 0 2px 7px rgba(20, 30, 24, 0.07);
}

.chat-message.system .chat-bubble {
  max-width: min(100%, 520px);
  border: 0;
  color: var(--ink);
  background: #eeeeee;
  box-shadow: none;
}

.chat-message.other .chat-bubble {
  background: rgba(37, 226, 220, 0.16);
  box-shadow: none;
}

.chat-message.mine .chat-bubble {
  justify-self: end;
  background: rgba(255, 223, 40, 0.24);
}

.active-agreement-card,
.guided-planning-card {
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: var(--active-card-bg);
}

.active-agreement-card {
  display: grid;
  gap: 9px;
  margin: 0 0 2px;
  padding: 12px 13px;
  border-radius: 12px;
}

.active-agreement-card.is-confirmed {
  background: rgba(37, 226, 220, 0.11);
}

.active-agreement-card b,
.guided-planning-title {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
}

.proposal-value {
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
}

.proposal-range {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.active-agreement-card.is-confirmed b {
  color: var(--ink);
  font-weight: 900;
}

.agreement-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
  margin: 0;
}

.agreement-details div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.agreement-detail-wide {
  grid-column: 1 / -1;
}

.agreement-details dt {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 780;
  line-height: 1.16;
}

.agreement-details dd {
  margin: 0;
  overflow: visible;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 720;
  line-height: 1.16;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.agreement-details div:not(.agreement-detail-wide) dd {
  overflow-wrap: normal;
  white-space: nowrap;
}

.agreement-ready {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.proposal-message {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  justify-content: stretch;
}

.proposal-message .guided-planning-card {
  justify-self: start;
}

.guided-planning-card {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  padding: 10px 11px;
  box-shadow: none;
}

.guided-planning-meta {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
}

.proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proposal-confirmations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proposal-confirmations span {
  min-height: 28px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(37, 226, 220, 0.14);
  font-size: 12px;
  font-weight: 820;
}

.proposal-confirmations span.is-me {
  background: rgba(255, 223, 40, 0.22);
}

.proposal-confirmations span.is-done {
  color: var(--ink);
}

.proposal-confirmations span.is-done:not(.is-me) {
  background: rgba(37, 226, 220, 0.24);
}

.proposal-confirmations span.is-me.is-done {
  background: rgba(255, 223, 40, 0.32);
}

.proposal-actions button {
  min-height: 32px;
  border: 0;
  border-radius: var(--button-radius);
  color: var(--ink);
  background: var(--inactive-card-bg);
  font-size: 12px;
  font-weight: 850;
}

.chat-proposal {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  padding: 11px;
  border: 1.5px solid var(--turquoise);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20, 30, 24, 0.08);
}

.chat-proposal span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chat-proposal h3,
.chat-proposal p {
  margin: 2px 0 0;
}

.proposal-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.proposal-actions .planning-primary {
  background: var(--turquoise);
}

.proposal-actions button:disabled {
  border-color: rgba(92, 106, 96, 0.2);
  color: var(--muted);
  background: rgba(241, 246, 240, 0.85);
}

.chat-compose {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  height: calc(60px + env(safe-area-inset-bottom));
  padding: 9px 0 max(8px, env(safe-area-inset-bottom));
  border-top: 0;
  background: rgba(255, 253, 248, 0.96);
  box-sizing: border-box;
}

.chat-compose input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
}

.chat-compose button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #031417;
  background: var(--turquoise);
}

.chat-compose button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-compose button:disabled {
  color: #9ca6a0;
  background: #edf1ea;
  cursor: default;
}

.chat-compose input:disabled {
  color: var(--muted);
  background: white;
  opacity: 1;
}

.match-group {
  display: grid;
  gap: var(--panel-spacing);
}

.match-group-title {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.you-marker {
  position: relative;
  width: 14px;
  height: 14px;
  margin: 2px;
  border-radius: 999px;
  background: var(--yellow);
  border: 0;
  box-shadow:
    0 0 0 1px white,
    0 0 0 2px rgba(0, 245, 255, 0.5),
    0 0 8px rgba(0, 245, 255, 0.82),
    0 0 10px rgba(255, 223, 40, 0.38);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.18);
    filter: brightness(1.18);
  }
}

@keyframes markerGlow {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.28);
    opacity: 0.5;
  }
}

.leaflet-control-attribution {
  font-size: 10px;
}

.onboarding-screen {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background: #f7f5ef;
  overflow: hidden;
}

.onboarding-screen.hidden {
  display: none;
}

.onboarding-active .map-stage,
.onboarding-active .top-bar,
.onboarding-active .tab-bar,
.onboarding-active .sheet-backdrop,
.onboarding-active .bottom-sheet {
  visibility: hidden;
}

.onboarding-card {
  display: grid;
  gap: 12px;
  width: min(100%, 386px);
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--shadow);
}

.onboarding-card.onboarding-slots-card {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 6px;
  width: min(90vw, 430px);
  height: auto;
  max-height: calc(90dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 14px 18px;
  overflow-y: auto;
}

.onboarding-progress {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.onboarding-card h2,
.onboarding-card h3,
.onboarding-card p {
  margin: 0;
}

.onboarding-card h2 {
  font-size: 24px;
  line-height: 1.05;
}

.onboarding-card h3 {
  font-size: 17px;
  line-height: 1.12;
}

.onboarding-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.auth-start-panel,
.existing-profile-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.auth-start-panel {
  background: rgba(255, 253, 248, 0.72);
}

.unified-auth-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.unified-auth-panel details {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.unified-auth-panel summary {
  min-height: 42px;
  display: grid;
  place-items: center;
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: var(--button-radius);
  color: #1f1f1f;
  background: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  box-shadow: none;
}

.unified-auth-panel details[open] summary {
  margin-bottom: 8px;
}

.unified-auth-panel summary:hover,
.unified-auth-panel summary:focus-visible {
  border-color: #d2e3fc;
  background: #f8fbff;
}

.unified-auth-panel summary::-webkit-details-marker {
  display: none;
}

.onboarding-language-selector {
  position: relative;
  justify-self: end;
}

.onboarding-language-selector .language-button {
  background: #fff;
  box-shadow: none;
}

.onboarding-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
}

.existing-profile-box {
  padding: 10px 12px;
  background: rgba(237, 241, 234, 0.58);
}

.existing-profile-box h3,
.existing-profile-box p {
  margin: 0;
}

.existing-profile-box details {
  display: grid;
  gap: 8px;
}

.existing-profile-box summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  list-style-position: outside;
}

.existing-profile-box p {
  font-size: 13px;
}

.email-code-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.google-auth-button {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: var(--button-radius);
  color: #1f1f1f;
  background: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0 12px;
  text-align: center;
  box-shadow: none;
}

.google-auth-button::after {
  content: "";
  width: 18px;
  height: 18px;
}

.google-auth-button:hover,
.google-auth-button:focus-visible {
  border-color: #d2e3fc;
  background: #f8fbff;
}

.google-g {
  width: 18px;
  height: 18px;
}

.apple-auth-button {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  width: 100%;
  border: 1px solid #000;
  border-radius: var(--button-radius);
  color: #fff;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 12px;
  text-align: center;
}

.apple-auth-button::after {
  content: "";
  width: 18px;
  height: 18px;
}

.apple-auth-button:hover,
.apple-auth-button:focus-visible {
  background: #1f1f1f;
}

.apple-logo {
  width: 18px;
  height: 22px;
}

.email-auth-button {
  min-height: 42px;
  width: 100%;
  border: 0;
  border-radius: var(--button-radius);
  color: #031417;
  background: var(--tandem-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.email-auth-button:disabled {
  color: rgba(23, 33, 27, 0.42);
  background: #e8ece8;
}

.onboarding-divider {
  display: grid;
  place-items: center;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.onboarding-card label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.compact-profile-grid {
  display: grid;
  gap: 8px;
}

.onboarding-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
  font-size: 15px;
  padding: 0 12px;
}

.onboarding-inline-actions {
  display: grid;
  gap: 8px;
}

.onboarding-photo-preview {
  display: grid;
  place-items: center;
  min-height: 84px;
}

.onboarding-photo-preview .profile-avatar,
.onboarding-photo-preview .empty-avatar {
  width: 76px;
  height: 76px;
}

.birthday-picker {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 8px;
}

.birthday-picker label {
  min-width: 0;
}

.birthday-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  padding: 0 9px;
}

.onboarding-check {
  grid-template-columns: 22px 1fr;
  align-items: center;
}

.onboarding-check input {
  min-height: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--tandem-blue);
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.onboarding-primary,
.onboarding-secondary,
.choice-grid button {
  min-height: 42px;
  border: 0;
  border-radius: var(--button-radius);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.onboarding-primary {
  color: #031417;
  background: var(--tandem-blue);
}

.onboarding-primary:disabled {
  color: rgba(23, 33, 27, 0.4);
  background: #e8ece8;
}

.onboarding-secondary {
  color: var(--ink);
  background: #edf1ea;
}

.onboarding-error {
  color: #7b1f26 !important;
  font-weight: 760;
}

.location-help {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 13px;
  color: var(--ink);
  background: #fff6dc;
  font-size: 14px;
  line-height: 1.25;
}

.location-help b {
  font-size: 14px;
}

.location-help span {
  color: var(--muted);
}

.onboarding-location,
.data-note {
  padding: 10px 12px;
  border-radius: 13px;
  background: #edf1ea;
}

.location-privacy-note {
  font-size: 14px;
  line-height: 1.25;
}

.optional-code {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.consent-summary {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #edf1ea;
}

.consent-summary p {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.24;
}

.consent-summary .consent-identity {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.onboarding-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 0;
  text-align: center;
}

.onboarding-success span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #031417;
  background: var(--tandem-blue);
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(37, 226, 220, 0.32);
}

.onboarding-avatar {
  justify-self: center;
  width: 132px;
  height: 132px;
  padding: 0;
  border: 4px solid var(--yellow);
  border-radius: 50%;
  background: white;
  overflow: hidden;
}

.onboarding-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

.choice-grid button {
  color: var(--ink);
  background: #edf1ea;
}

.choice-grid button.selected {
  background: var(--tandem-blue);
}

.onboarding-picker {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf6;
}

.onboarding-picker .picker-range {
  justify-content: flex-start;
}

.onboarding-slots-grid {
  grid-template-columns: 34px repeat(7, minmax(0, 1fr));
  grid-template-rows: 18px repeat(17, minmax(18px, 1fr));
  gap: 2px;
  min-height: 0;
  height: auto;
  max-height: min(56dvh, 454px);
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.onboarding-slots-card .onboarding-progress {
  font-size: 11px;
}

.onboarding-slots-card h2 {
  font-size: clamp(19px, 6vw, 24px);
}

.onboarding-slots-card p {
  font-size: clamp(11px, 3.5vw, 13px);
  line-height: 1.14;
}

.onboarding-slots-card .onboarding-actions {
  position: relative;
  bottom: 0;
  gap: 8px;
  padding-top: 6px;
  background: rgba(255, 253, 248, 0.97);
}

.onboarding-slots-card .onboarding-primary {
  min-height: 42px;
}

.onboarding-slots-grid .slot-day-head,
.onboarding-slots-grid .slot-hour {
  font-size: clamp(9px, 2.7vw, 12px);
}

.onboarding-slots-grid .slot-cell {
  min-height: 0;
  border-radius: clamp(4px, 1.4vw, 7px);
}

@media (min-width: 760px) {
  :root {
    --app-width: min(430px, calc(100vw - 56px));
    --app-height: min(900px, calc(100vh - 56px));
    --app-left: calc((100vw - var(--app-width)) / 2);
    --app-top: max(28px, calc((100vh - var(--app-height)) / 2));
  }

  .app-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
    background: #dfe8df;
  }

  .map-stage {
    width: var(--app-width);
    height: var(--app-height);
    min-height: 760px;
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(20, 30, 24, 0.28);
  }

  .top-bar {
    top: calc(var(--app-top) + 8px);
    left: calc(var(--app-left) + 12px);
    right: auto;
    width: calc(var(--app-width) - 24px);
  }

  .bottom-sheet {
    left: calc(var(--app-left) + 6px);
    right: auto;
    width: calc(var(--app-width) - 12px);
    bottom: calc(var(--app-top) + 88px + var(--sheet-outside-gap));
  }

  .map-zoom-controls {
    right: calc(var(--app-left) + 14px);
  }

  .bottom-sheet.expanded {
    top: calc(var(--app-top) + 118px);
    bottom: calc(var(--app-top) + 88px + var(--sheet-outside-gap));
  }

  .bottom-sheet.weekly-mode {
    top: calc(var(--app-top) + 8px);
    left: calc(var(--app-left) + 6px);
    right: auto;
    width: calc(var(--app-width) - 12px);
    bottom: calc(var(--app-top) + 88px + var(--sheet-outside-gap));
  }

  .bottom-sheet.profile-mode {
    top: calc(var(--app-top) + 8px);
    left: calc(var(--app-left) + 6px);
    right: auto;
    width: calc(var(--app-width) - 12px);
    max-height: calc(var(--app-height) - 126px);
  }

  .bottom-sheet.chat-mode {
    top: calc(var(--app-top) + 118px);
    left: calc(var(--app-left) + 6px);
    right: auto;
    bottom: calc(var(--app-top) + 76px + env(safe-area-inset-bottom));
    width: calc(var(--app-width) - 12px);
  }

  .tab-bar {
    left: calc(var(--app-left) + 10px);
    right: auto;
    bottom: calc(var(--app-top) + 20px + env(safe-area-inset-bottom));
    width: calc(var(--app-width) - 20px);
  }

  .network-status {
    left: calc(var(--app-left) + 14px);
    right: auto;
    bottom: calc(var(--app-top) + 96px + env(safe-area-inset-bottom));
    width: calc(var(--app-width) - 28px);
  }
}
