/* Create Plan Quiz — Runna-inspired mobile UI */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.qp-body {
  margin: 0;
  padding: 0 !important;
  min-height: 100dvh;
  background: #000;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.qp-desktop-bg {
  display: none;
}

.qp-phone-frame {
  width: 100%;
  min-height: 100dvh;
  background: #000;
}

.qp-phone-screen {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}

.qp-root {
  height: 100%;
  width: 100%;
}

@media (min-width: 768px) {
  .qp-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }

  .qp-desktop-bg {
    display: block;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 0;
  }

  .qp-phone-frame {
    position: relative;
    z-index: 1;
    width: 390px;
    max-width: calc(100vw - 3rem);
    height: min(844px, calc(100dvh - 3rem));
    min-height: 0;
    border-radius: 40px;
    border: 2.5px solid #fff;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    flex-shrink: 0;
  }

  .qp-phone-screen {
    min-height: 0;
    height: 100%;
    border-radius: 37.5px;
  }
}

/* App shell */
.qp-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: #000;
}

.qp-app[data-gradient='red-tl'] {
  background: linear-gradient(135deg, #ea4335 0%, #000 50%, #000 100%);
}

.qp-app[data-gradient='red-tr'] {
  background: linear-gradient(225deg, #ea4335 0%, #000 50%, #000 100%);
}

.qp-app[data-gradient='red-band'] {
  background: linear-gradient(135deg, #000 0%, #ea4335 50%, #000 100%);
}

.qp-app[data-gradient='red-bl'] {
  background: linear-gradient(45deg, #ea4335 0%, #000 50%, #000 100%);
}

.qp-app[data-gradient='red-band-h'] {
  background: linear-gradient(90deg, #000 0%, #ea4335 50%, #000 100%);
}

.qp-app[data-gradient='red-bottom'] {
  background: linear-gradient(180deg, #000 0%, #000 45%, #ea4335 100%);
}

.qp-app[data-gradient='red-band-v'] {
  background: linear-gradient(
    180deg,
    #000 0%,
    #000 38%,
    #ea4335 50%,
    #000 62%,
    #000 100%
  );
}

.qp-app[data-gradient='red-br'] {
  background: linear-gradient(315deg, #ea4335 0%, #000 50%, #000 100%);
}

.qp-topbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 1.65rem 0.85rem 0.35rem;
  position: relative;
  z-index: 5;
}

.qp-logo {
  height: 20px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.qp-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.qp-back.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.qp-back svg {
  width: 22px;
  height: 22px;
  display: block;
}

.qp-stage {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.qp-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 1.35rem 1.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.qp-screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

.qp-screen.is-leaving {
  opacity: 0;
}

.qp-screen--fill {
  overflow: hidden;
  padding: 0;
}

.qp-hidden-chrome .qp-topbar {
  display: none;
}

/* Welcome — full-bleed */
.qp-welcome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.qp-welcome-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.qp-welcome-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.1) 35%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 0.88) 78%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

.qp-welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.35rem max(1.5rem, env(safe-area-inset-bottom));
  gap: 0;
}

.qp-welcome-logo {
  height: 26px;
  width: auto;
  margin-bottom: 1rem;
}

.qp-welcome-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 6.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.qp-welcome-text {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22rem;
}

.qp-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
}

/* Typography */
.qp-title {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.qp-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  font-weight: 400;
}

.qp-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-weight: 400;
}

.qp-headline {
  margin: 0;
  font-size: clamp(1.35rem, 5.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
}

.qp-copy {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  text-align: center;
}

.qp-center {
  text-align: center;
}

/* Options — Runna style */
.qp-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.qp-option {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 0;
  background: #1c1c1e;
  color: #fff;
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: background 0.15s ease, transform 0.12s ease;
}

.qp-option:hover,
.qp-option:focus-visible {
  background: #2a2a2e;
  outline: none;
}

.qp-option:active,
.qp-option.is-selected {
  background: #4a5b73;
  transform: scale(0.99);
}

.qp-option-emoji {
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
  width: 1.5rem;
  text-align: center;
}

.qp-option-label {
  flex: 1 1 auto;
}

.qp-option--yesno {
  justify-content: flex-start;
  padding-left: 1.25rem;
}

.qp-option--check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 0.85rem;
}

.qp-option--check .qp-check {
  grid-column: 1;
  grid-row: 1;
}

.qp-option--check .qp-option-label {
  grid-column: 2;
  grid-row: 1;
}

.qp-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  position: relative;
}

.qp-option--check.is-selected .qp-check {
  border-color: #fff;
  background: #fff;
}

.qp-option--check.is-selected .qp-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.qp-multi-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.qp-multi-wrap .qp-options {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.qp-btn--primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Feature screens */
.qp-feature {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.qp-feature-media {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  padding: 0.25rem 0 0.5rem;
}

.qp-feature-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.qp-carousel {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  touch-action: pan-y;
}

.qp-carousel-track {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
}

.qp-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.qp-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.qp-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.qp-carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.65rem 0 0.15rem;
  flex-shrink: 0;
}

.qp-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.qp-carousel-dot.is-active {
  background: #ea4335;
  transform: scale(1.15);
}

.qp-feature-copy {
  flex: 0 0 auto;
  padding: 0.5rem 0.25rem 0.85rem;
}

/* Social proof with gradient number */
.qp-social {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.qp-social-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.25rem;
  gap: 0.25rem;
}

.qp-social-before,
.qp-social-after {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  max-width: 20rem;
}

.qp-social-number {
  margin: 0.15rem 0;
  font-size: clamp(3.2rem, 14vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  background: linear-gradient(135deg, #ff4d3d 0%, #ff4d3d 42%, #52c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Testimonial */
.qp-testimonial-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.qp-testimonial {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  padding: 0.5rem 0.35rem;
}

.qp-quote {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.qp-hl-teal {
  color: #fff;
}

.qp-hl-coral {
  color: #fff;
}

.qp-author {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.qp-stars {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  margin-left: 0.2em;
}

.qp-stars--gold {
  color: #f5b400;
}

.qp-reviews-stars {
  margin-top: 0.45rem;
}

.qp-reviews {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.qp-reviews img {
  height: 118px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.qp-reviews-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.15rem;
}

.qp-reviews-count {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.qp-reviews-label {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 5.5rem;
  line-height: 1.2;
}

/* Buttons */
.qp-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 1.05rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.qp-btn:active {
  transform: scale(0.985);
}

/* Primary continue = white like Runna */
.qp-btn--primary {
  background: #f2f2f2;
  color: #111;
}

.qp-btn--primary:hover {
  background: #fff;
  color: #111;
}

.qp-btn--welcome-primary {
  background: #fff;
  color: #111;
}

.qp-btn--welcome-secondary {
  background: rgba(55, 55, 55, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.qp-btn--welcome-secondary:hover {
  background: rgba(70, 70, 70, 0.85);
  color: #fff;
}

.qp-btn--signup {
  background: #2c3544;
  color: #fff;
}

.qp-btn--signup:hover {
  background: #3a4658;
  color: #fff;
}

.qp-btn--social {
  background: #fff;
  color: #111;
  gap: 0.7rem;
  font-weight: 650;
}

.qp-btn--social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.qp-footer-cta {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 0.85rem;
  padding-bottom: max(0.15rem, env(safe-area-inset-bottom));
}

/* Signup */
.qp-signup-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.qp-signup-head {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.qp-signup-head .qp-title {
  margin: 0;
  text-align: center;
}

.qp-signup {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1 1 auto;
}

.qp-field input {
  width: 100%;
  border: 0;
  background: #1c1c1e;
  color: #fff;
  border-radius: 999px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
}

.qp-field input:focus {
  outline: none;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

.qp-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.qp-field input.is-invalid {
  box-shadow: 0 0 0 1.5px rgba(255, 90, 74, 0.75);
}

.qp-field-error {
  margin: 0.35rem 0 0;
  padding: 0 1.2rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #ff7a62;
  display: none;
}

.qp-field-error.is-visible {
  display: block;
}

.qp-password-wrap {
  position: relative;
}

.qp-password-wrap input {
  padding-right: 3rem;
}

.qp-password-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
}

.qp-password-toggle svg {
  width: 20px;
  height: 20px;
}

.qp-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.qp-divider::before,
.qp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.qp-social-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.qp-google-btn-wrap {
  position: relative;
  width: 100%;
}

.qp-google-btn-visual {
  pointer-events: none;
  user-select: none;
}

.qp-google-signin-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  overflow: hidden;
  cursor: pointer;
}

.qp-google-signin-hit > div {
  width: 100% !important;
  height: 100% !important;
}

.qp-google-signin-hit iframe {
  width: 100% !important;
  min-height: 3.25rem;
  margin: 0 !important;
}

.qp-terms {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1.4;
}

.qp-terms a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.qp-toast {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 20;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(30, 30, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.qp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Profile onboarding (post-signup) */
.qp-screen--profile {
  padding: 0 0 1.35rem;
  overflow: hidden;
}

.qp-screen--profile:has(.qp-profile-screen--picker) {
  overflow: visible;
}

.qp-profile-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.qp-profile-screen--picker {
  min-height: 0;
}

.qp-profile-hero {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.qp-profile-hero::before,
.qp-profile-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.qp-profile-hero::before {
  top: 0;
  height: 22%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.qp-profile-hero::after {
  bottom: 0;
  height: 40%;
  background: linear-gradient(
    0deg,
    #000 0%,
    rgba(0, 0, 0, 0.7) 35%,
    rgba(0, 0, 0, 0) 100%
  );
}

.qp-profile-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 42vh;
  object-fit: cover;
  object-position: center top;
}

.qp-profile-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.35rem 0.5rem;
  min-height: 0;
  overflow: hidden;
}

.qp-profile-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 20rem;
}

.qp-profile-subtitle {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
  max-width: 20rem;
}

.qp-profile-subtitle--welcome {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  white-space: pre-line;
}

.qp-profile-screen .qp-footer-cta {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.qp-date-field {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 22rem;
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 999px;
  background: #1c1c1e;
  color: #fff;
  cursor: pointer;
}

.qp-date-display {
  font-size: 1rem;
  font-weight: 600;
}

.qp-date-display.is-placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.qp-date-field svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.qp-date-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: 0;
}

.qp-gender-options {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
}

.qp-gender-option {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
}

.qp-gender-circle {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #2a2a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  color: #fff;
}

.qp-gender-circle svg {
  width: 1.85rem;
  height: 1.85rem;
}

.qp-gender-option.is-selected .qp-gender-circle {
  background: #fff;
  color: #111;
}

.qp-gender-label {
  font-size: 0.95rem;
  font-weight: 650;
}

.qp-unit-switch {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #1c1c1e;
  gap: 0.15rem;
}

.qp-unit-switch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  min-width: 4.5rem;
}

.qp-unit-switch-btn.is-active {
  background: #fff;
  color: #111;
}

.qp-profile-screen--picker .qp-profile-hero img {
  max-height: 28vh;
}

.qp-profile-screen--picker .qp-profile-body {
  padding-top: 0.35rem;
  overflow: visible;
}

.qp-profile-screen--picker .qp-profile-subtitle {
  margin-bottom: 0.15rem;
}

.qp-profile-screen--picker .qp-wheel-row {
  flex: 0 0 auto;
  min-height: var(--qp-wheel-h, 220px);
  margin-top: 0.4rem;
}

.qp-wheel-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
  flex: 1 1 auto;
  min-height: var(--qp-wheel-h, 220px);
  align-items: center;
}

.qp-wheel-row--dual {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.qp-wheel-row--birthday {
  max-width: 100%;
  gap: 0.15rem;
  padding: 0;
  flex: 0 0 auto;
  min-height: var(--qp-wheel-h, 220px);
  margin-top: 0.4rem;
}

.qp-wheel--birthday {
  max-width: 5.75rem;
  flex: 1 1 0;
}

.qp-wheel--birthday:last-child {
  max-width: 7rem;
}

.qp-birthday-sep {
  flex: 0 0 auto;
  align-self: center;
  height: var(--qp-wheel-item-h, 44px);
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.qp-wheel {
  --qp-wheel-item-h: 44px;
  --qp-wheel-h: 220px;
  position: relative;
  flex: 1 1 0;
  max-width: 11rem;
  height: var(--qp-wheel-h);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

.qp-wheel:active {
  cursor: grabbing;
}

.qp-wheel-highlight {
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  top: 50%;
  height: var(--qp-wheel-item-h);
  margin-top: calc(var(--qp-wheel-item-h) / -2);
  border-radius: 12px;
  background: #2a2a2e;
  pointer-events: none;
  z-index: 0;
}

.qp-wheel-fade {
  display: none;
}

.qp-wheel-track {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.qp-wheel-item {
  --qp-dist: 1;
  height: var(--qp-wheel-item-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, calc(0.55 - (var(--qp-dist) * 0.16)));
  transform: scale(calc(1 - (var(--qp-dist) * 0.06)));
  transition: color 0.12s ease, transform 0.12s ease, font-size 0.12s ease;
}

.qp-wheel-item.is-selected {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 800;
  transform: scale(1);
}

/* ===== Plan selection phase ===== */
.qp-plan-phase .qp-topbar {
  background: transparent;
}

.qp-plan-phase .qp-footer-cta {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.qp-plan-phase .qp-footer-cta .qp-btn--primary:disabled {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.45);
}

.qp-screen--plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0 0 1.1rem;
}

.qp-plan-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.35rem 1.15rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.qp-plan-scroll--center {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.qp-plan-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.qp-plan-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.qp-plan-card.is-selected {
  background: #fff;
  border-color: #ea4335;
  color: #111;
}

.qp-plan-card__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.qp-plan-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.qp-plan-card__desc {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.72;
}

.qp-plan-card.is-selected .qp-plan-card__desc {
  opacity: 0.65;
  color: #333;
}

.qp-plan-choices {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.qp-plan-choice {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.qp-plan-choice.is-selected {
  background: #fff;
  color: #111;
  border-color: #ea4335;
}

.qp-plan-choice.is-disabled,
.qp-plan-choice:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.qp-plan-choice--ghost {
  margin-top: 0.75rem;
  font-weight: 600;
  background: transparent;
}

.qp-plan-choice--no-record {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  line-height: 1.25;
}

.qp-plan-choice__title {
  font-size: 1rem;
  font-weight: 700;
}

.qp-plan-choice__sub {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.78;
}

.qp-plan-choice--no-record.is-selected .qp-plan-choice__sub {
  opacity: 0.7;
  color: #333;
}

.qp-plan-map-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0.25rem;
}

.qp-plan-map {
  width: min(220px, 70%);
  height: auto;
}

.qp-plan-map--ring {
  width: min(160px, 48%);
}

.qp-plan-time-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0 0.35rem;
}

.qp-plan-time-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  padding: 0.55rem 0.45rem;
  text-align: center;
  min-width: 3.4rem;
}

.qp-plan-time-sep {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

.qp-plan-time-value {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
  margin-bottom: 0.5rem;
}

.qp-plan-date-input,
.qp-plan-field input,
.qp-plan-field select,
.qp-race-filter-row input {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
}

.qp-plan-field {
  display: block;
  margin-top: 0.85rem;
}

.qp-plan-field span {
  display: block;
  font-size: 0.82rem;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.qp-plan-loading {
  text-align: center;
  opacity: 0.5;
  padding: 1.5rem 0;
}

.qp-plan-summary-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 34vh;
}

.qp-plan-summary-hero::before,
.qp-plan-summary-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.qp-plan-summary-hero::before {
  top: 0;
  height: 22%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.qp-plan-summary-hero::after {
  bottom: 0;
  height: 40%;
  background: linear-gradient(
    0deg,
    #000 0%,
    rgba(0, 0, 0, 0.7) 35%,
    rgba(0, 0, 0, 0) 100%
  );
}

.qp-plan-summary-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qp-plan-checklist {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.qp-plan-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.qp-plan-check {
  color: #ea4335;
  font-weight: 800;
}

.qp-screen--selected-plan {
  padding: 0 0 1.1rem;
}

.qp-screen--selected-plan .qp-plan-scroll {
  padding: 0.35rem 1.35rem 0.5rem;
}

.qp-screen--selected-plan .qp-footer-cta {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
  padding-bottom: max(0.15rem, env(safe-area-inset-bottom));
}

.qp-plan-summary-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.qp-plan-summary-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.qp-plan-summary-details {
  margin-top: 1.35rem;
}

.qp-plan-summary-details__intro {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.qp-plan-summary-details__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qp-plan-summary-details__list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
}

.qp-plan-summary-details__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.85);
}

.qp-btn--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

.qp-btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
}

.qp-footer-cta--stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 1.15rem;
}

.qp-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Race search */
.qp-race-search {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.qp-race-search__input {
  flex: 1;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.qp-plan-choice--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.2;
}

.qp-plan-choice--customize.is-selected {
  background: #fff;
  color: #111;
  border-color: #ea4335;
}

.qp-time-custom {
  margin-top: 0.35rem;
  padding: 1.1rem 1rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  color: #111;
}

.qp-time-custom__title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.qp-time-custom__hint {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
}

.qp-time-custom__value {
  margin: 1rem 0 0.85rem;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ea4335;
}

.qp-time-custom__slider {
  display: block;
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  outline: none;
}

.qp-time-custom__slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ea4335;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.qp-time-custom__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ea4335;
  cursor: pointer;
  border: none;
}

.qp-start-day-warning {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(234, 67, 53, 0.92);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.qp-start-day-range {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.qp-race-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0.85rem 0 0.5rem;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.qp-race-chip {
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.qp-race-chip.is-active,
.qp-race-chip.is-set {
  border-color: #ea4335;
  background: rgba(234, 67, 53, 0.18);
}

.qp-race-filter-panel {
  margin: 0.5rem 0 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 42vh;
  overflow-y: auto;
}

.qp-race-filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  opacity: 0.9;
}

.qp-race-filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.qp-race-filter-actions .qp-btn {
  flex: 1;
}

.qp-race-filter-actions .qp-btn--filter-sm {
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  min-height: 0;
  border-radius: 10px;
}

.qp-plan-choice--country {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  text-align: left;
}

.qp-race-flag {
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
}

.qp-race-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.qp-race-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
  padding-bottom: 1rem;
}

.qp-race-list__title {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.qp-race-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 108px;
  text-align: left;
  padding: 0.9rem 0.85rem;
  border-radius: 16px;
  border: none;
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
}

.qp-race-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.qp-race-card__bg--empty {
  background: linear-gradient(135deg, #2a2a2a, #151515);
}

.qp-race-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.62) 45%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.qp-race-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 0.28rem 0.55rem;
  background: #ea4335;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom-left-radius: 8px;
}

.qp-race-card__content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
}

.qp-race-card__content--manual {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qp-race-card__meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ea4335;
  margin-bottom: 0.25rem;
}

.qp-race-card__name {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.25;
  color: #fff;
}

.qp-race-card__place {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.qp-race-card__flag {
  font-size: 0.95rem;
  line-height: 1;
}

.qp-race-card__chevron {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.qp-race-card--manual {
  background: linear-gradient(120deg, #5a1f1a 0%, #8a2e24 55%, #4a1814 100%);
  min-height: 92px;
}

.qp-race-card--manual .qp-race-card__shade {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.qp-race-card__manual-icon {
  font-size: 1.45rem;
  line-height: 1;
  flex: 0 0 auto;
}

.qp-race-card__manual-sub {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.qp-race-summary-hero {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-height: 38vh;
  overflow: hidden;
}

.qp-race-summary-hero::before,
.qp-race-summary-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.qp-race-summary-hero::before {
  top: 0;
  height: 45%;
  background: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.7) 35%,
    rgba(0, 0, 0, 0) 100%
  );
}

.qp-race-summary-hero::after {
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    0deg,
    #000 0%,
    rgba(0, 0, 0, 0.75) 35%,
    rgba(0, 0, 0, 0) 100%
  );
}

.qp-race-summary-hero img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 38vh;
  min-height: 180px;
}

.qp-race-summary-body {
  padding-top: 0.35rem;
}

.qp-race-summary-title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.35rem, 5.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.qp-race-summary-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.qp-race-summary-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qp-race-summary-row__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea4335;
}

.qp-race-summary-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.qp-race-summary-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.qp-race-summary-row__text {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.qp-race-summary-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.qp-btn--race-select {
  width: 100%;
  background: #ea4335;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 800;
}

.qp-btn--race-select:hover {
  background: #f25548;
  color: #fff;
}

/* Race timing bottom sheet */
.qp-bottom-sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.qp-bottom-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.qp-bottom-sheet__panel {
  position: relative;
  z-index: 1;
  background: #111;
  border-radius: 22px 22px 0 0;
  padding: 1.15rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  animation: qp-sheet-up 0.22s ease-out;
}

@keyframes qp-sheet-up {
  from {
    transform: translateY(18%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.qp-bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.qp-bottom-sheet__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.qp-bottom-sheet__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.qp-bottom-sheet__body {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.qp-bottom-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.qp-btn--sheet-light {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1rem;
  background: #f2f2f2;
  color: #111;
  font-weight: 800;
  font-size: 0.98rem;
}

.qp-btn--sheet-danger {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1rem;
  background: #ea4335;
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
}

.qp-race-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
  font-weight: 600;
}

/* Generate */
/* Generate screen handled via classes on app */

.qp-app.qp-plan-fullscreen {
  background: #000;
}

.qp-app.qp-plan-fullscreen .qp-topbar {
  display: none;
}

.qp-generate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.25rem;
  min-height: 70vh;
}

.qp-generate-spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid rgba(234, 67, 53, 0.2);
  border-top-color: #ea4335;
  animation: qp-spin 0.9s linear infinite;
}

@keyframes qp-spin {
  to {
    transform: rotate(360deg);
  }
}

.qp-generate-text {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.qp-generate-bar {
  width: min(220px, 70%);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 1.5rem;
}

.qp-generate-bar__fill {
  height: 100%;
  width: 0;
  background: #ea4335;
  animation: qp-bar 9s linear forwards;
}

@keyframes qp-bar {
  to {
    width: 100%;
  }
}

/* Paywall */
.qp-screen--paywall {
  padding: 0;
}

.qp-paywall {
  position: relative;
  min-height: 100%;
  padding: 1.1rem 1.1rem 1.5rem;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.qp-paywall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.72) 40%,
    rgba(0, 0, 0, 0.92) 100%
  );
  pointer-events: none;
}

.qp-paywall > * {
  position: relative;
  z-index: 1;
}

.qp-paywall-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.qp-paywall-logo {
  display: block;
  width: 120px;
  margin: 0.4rem auto 1.1rem;
}

.qp-paywall-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.55rem;
}

.qp-paywall-sub {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.88;
  margin: 0 0 1.15rem;
}

.qp-paywall-plans {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.qp-paywall-package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.qp-paywall-package.is-selected {
  border-color: #ea4335;
}

.qp-paywall-package__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.qp-paywall-package__name {
  font-weight: 800;
  font-size: 1rem;
}

.qp-paywall-badge {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #ea4335;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.qp-paywall-package__right {
  text-align: right;
}

.qp-paywall-package__price {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
}

.qp-paywall-package__month {
  display: block;
  font-size: 0.75rem;
  opacity: 0.65;
  margin-top: 0.1rem;
}

.qp-paywall-timeline {
  margin: 1rem 0 0.5rem;
}

.qp-paywall-timeline__title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.qp-paywall-step {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.qp-paywall-step__dot {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ea4335;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qp-paywall-step__title {
  font-weight: 700;
  font-size: 0.9rem;
}

.qp-paywall-step__body {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.78;
}

.qp-paywall-trial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.9rem;
}

.qp-switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}

.qp-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.qp-switch.is-on {
  background: #ea4335;
}

.qp-switch.is-on::after {
  transform: translateX(20px);
}

.qp-btn--paywall {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #fff;
  color: #111;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.qp-btn--paywall-spaced {
  margin-top: 0.85rem;
}

.qp-paywall-note {
  text-align: center;
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Download app */
.qp-screen--download {
  padding: 0;
}

.qp-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 0.5rem 1.15rem 1.5rem;
  text-align: center;
}

.qp-download-hero {
  width: min(280px, 85%);
  margin: 0.5rem auto 1.25rem;
}

.qp-download-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}

.qp-download-cta-label {
  font-size: 0.95rem;
  opacity: 0.75;
  margin: 0 0 1.1rem;
}

.qp-download-stores {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 320px;
}

.qp-download-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-weight: 800;
  text-decoration: none;
}

.qp-download-store svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


