.chirp-onboarding {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.chirp-onboarding.is-hidden {
  display: none;
}

.chirp-onboarding__panel {
  width: min(420px, 92vw);
  max-height: 85vh;
  overflow: auto;
  background: #1a1a22;
  color: #f5f5f7;
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.chirp-onboarding__progress {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.chirp-onboarding__dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #3a3a48;
}

.chirp-onboarding__dot.is-active {
  background: #e8364f;
}

.chirp-onboarding h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.chirp-onboarding p {
  margin: 0 0 1rem;
  line-height: 1.45;
  color: #b8b8c4;
  font-size: 0.92rem;
}

.chirp-onboarding__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.chirp-onboarding__next,
.chirp-onboarding__primary {
  background: #e8364f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.chirp-onboarding__skip,
.chirp-onboarding__back,
.chirp-onboarding__link {
  background: transparent;
  color: #9ca3af;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.chirp-onboarding__textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #3a3a48;
  background: #121218;
  color: #f5f5f7;
  padding: 0.5rem;
  font: inherit;
}

.chirp-onboarding__segment {
  display: flex;
  gap: 0.5rem;
}

.chirp-onboarding__segment button {
  flex: 1;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #3a3a48;
  background: #121218;
  color: #f5f5f7;
  cursor: pointer;
}

.chirp-onboarding__segment button.is-active {
  border-color: #e8364f;
  background: rgba(232, 54, 79, 0.15);
}

.chirp-onboarding__google {
  min-height: 44px;
  margin: 0.5rem 0;
}

.chirp-onboarding__notice {
  font-size: 0.88rem;
  color: #f0c674;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.chirp-onboarding__teams {
  max-height: 42vh;
  overflow-y: auto;
  margin-top: 0.5rem;
}

.chirp-onboarding__leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.chirp-onboarding__league {
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #3a3a48;
  background: #121218;
  color: #f5f5f7;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.chirp-onboarding__league.is-active {
  border-color: #e8364f;
  background: rgba(232, 54, 79, 0.18);
}

.chirp-onboarding__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.chirp-onboarding__chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(232, 54, 79, 0.2);
  border: 1px solid rgba(232, 54, 79, 0.45);
  font-size: 0.8rem;
  cursor: pointer;
}

.chirp-onboarding__chip--empty {
  background: transparent;
  border-color: #3a3a48;
  color: #9ca3af;
  cursor: default;
}

.chirp-onboarding__team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.chirp-onboarding__team {
  text-align: left;
  min-height: 52px;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid #3a3a48;
  background: #121218;
  color: #f5f5f7;
  cursor: pointer;
}

.chirp-onboarding__team.is-selected {
  border-color: #e8364f;
  background: rgba(232, 54, 79, 0.12);
}

.chirp-onboarding__team-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.chirp-onboarding__team-meta {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

.chirp-onboarding__pod-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid #3a3a48;
  background: #121218;
  margin-bottom: 0.45rem;
}

.chirp-onboarding__pod-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.chirp-onboarding__pod-thumb--empty {
  display: grid;
  place-items: center;
  background: #222;
  font-size: 1.1rem;
}

.chirp-onboarding__pod-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.chirp-onboarding__pod-sub {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.chirp-onboarding__pod-save {
  min-height: 38px;
  min-width: 64px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e8364f;
  background: rgba(232, 54, 79, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.chirp-onboarding__textarea {
  min-height: 44px;
  font-size: 1rem;
}

.chirp-onboarding__open-now {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.5;
}

.chirp-onboarding__link-app {
  border: none;
  background: none;
  padding: 0;
  color: #e8364f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.chirp-onboarding__link-app:hover {
  color: #ff5c75;
}

.chirp-onboarding__location {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chirp-onboarding__location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.chirp-onboarding__location-grid input:last-child {
  grid-column: 1 / -1;
}

.chirp-onboarding__link {
  border: none;
  background: none;
  padding: 0;
  color: #9ca3af;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}

.chirp-onboarding__link:hover {
  color: #e8364f;
}

.auth-card--wide .chirp-onboarding__primary {
  display: inline-block;
  width: 100%;
  text-align: center;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #e8364f;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.35rem;
}

.auth-card--wide .chirp-onboarding__primary:hover {
  filter: brightness(1.06);
}
