@layer base {
  html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  html {
    overflow: hidden;
  }
  body {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pt-safe { padding-top: env(safe-area-inset-top, 0px); }
  .top-safe { top: env(safe-area-inset-top, 0px); }
  .pb-nav { padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }
  .pb-nav-fab { padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)); }
}

::-webkit-scrollbar { display: none; }

.card-shadow {
  box-shadow: 0 4px 20px -2px rgba(94, 17, 116, 0.08), 0 2px 6px -1px rgba(43, 36, 44, 0.04);
}
.card-shadow-lg {
  box-shadow: 0 20px 38px -4px rgba(94, 17, 116, 0.18), 0 10px 16px -2px rgba(43, 36, 44, 0.08);
}
.nav-blur {
  background: rgba(255, 247, 251, 0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(94, 17, 116, 0.08);
}
.input-focus:focus {
  outline: none;
  border-color: #5e1174;
  box-shadow: 0 0 0 3px rgba(94, 17, 116, 0.18);
}
.blur-locked {
  filter: blur(10px);
  transform: scale(1.05);
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 247, 251, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}
html.is-loading .page-loader,
html.is-page-loading .page-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.page-loader-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid rgba(94, 17, 116, 0.16);
  border-top-color: #5e1174;
  animation: page-loader-spin 0.7s linear infinite;
}
@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.otp-digit {
  width: 2.75rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(94, 17, 116, 0.18);
  background: #fff;
  color: #2b242c;
  caret-color: #5e1174;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.otp-digit:focus {
  outline: none;
  border-color: #5e1174;
  box-shadow: 0 0 0 3px rgba(94, 17, 116, 0.16);
}

.msg-inbox-row + .msg-inbox-row {
  border-top: 1px solid #f3f4f6;
}

.toast {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 6rem;
  z-index: 80;
  background: #201921;
  color: #faedf8;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.toast.show { opacity: 1; }
.flash-stack {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  left: 1rem;
  right: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.flash {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(32, 25, 33, 0.12);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms ease, transform 400ms ease;
}
.flash.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.flash-error { background: #ffdad6; color: #93000a; }
.flash-success { background: #fcd7ff; color: #340043; }
.flash-info { background: #c1e8ff; color: #001e2b; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.chat-bubble-mine .chat-ext-link {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}
.chat-bubble-theirs .chat-ext-link {
  color: #5e1174;
}

#chat-emoji-toggle.text-primary-container {
  background: rgba(94, 17, 116, 0.08);
}

.chat-emoji-btn:active {
  transform: scale(0.92);
}

/* —— Chat page —— */
body.chat-page {
  background: #f3f1f4;
}

/* Mobile chat shell: wrapper must be the flex column so <main> can scroll */
@media (max-width: 1023px) {
  body.chat-page {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  body.chat-page > .layout-mobile {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    width: 100%;
  }
  body.chat-page main.chat-main {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 0 !important; /* flex-basis drives height — enables overflow scroll */
    max-height: none;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  /* Short threads: keep bubbles near the composer (not stuck under header) */
  body.chat-page main.chat-main > .chat-messages {
    margin-top: auto;
  }
}

body.chat-page main.chat-main {
  padding-top: calc(4.25rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px) + var(--chat-keyboard-inset, 0px) + var(--chat-pending-inset, 0px));
  min-height: 0;
}

.chat-header-inner {
  min-height: 3.5rem;
  padding-top: 5px;
}

.chat-header-identity {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  max-width: none;
}

.chat-header-avatar {
  width: 2.5rem;
  height: 2.5rem;
  box-shadow: 0 0 0 2px #f3f1f4, 0 0 0 3px rgba(94, 17, 116, 0.16);
}

.chat-header-name {
  margin-top: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #201921;
  letter-spacing: -0.01em;
}

.chat-header-status {
  margin-top: 0.05rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #8a7f8c;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header-status.is-online {
  color: #059669;
}

.chat-form {
  bottom: var(--chat-keyboard-inset, 0px);
  transition: bottom 80ms linear;
  z-index: 60;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.chat-pending-image {
  display: none;
}
.chat-pending-image.is-open {
  display: block !important;
}

.chat-form-inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.chat-send-btn {
  box-shadow: 0 4px 14px rgba(94, 17, 116, 0.28);
}

.chat-send-btn:active,
.chat-cafe-btn:active {
  transform: scale(0.94);
}

.chat-emoji-picker {
  bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px) + var(--chat-keyboard-inset, 0px));
  transition: bottom 80ms linear;
}

.chat-message {
  max-width: min(82%, 26rem);
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1.15rem;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble-mine {
  background: #5e1174;
  color: #fff;
}

.chat-bubble-theirs {
  background: #ebe8ec;
  color: #201921;
}

.chat-meta {
  font-size: 11px;
  line-height: 1.3;
  color: #9a909c;
}

.chat-meta .chat-receipt.is-read {
  color: #5e1174;
}

.chat-image-thumb img {
  max-height: min(20rem, 55vh);
}

#chat-input {
  font-size: 16px; /* avoid iOS zoom on focus */
  line-height: 1.35;
  color: #201921;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
}

.chat-input-wrap {
  border: none !important;
  outline: none;
  box-shadow: none;
}
.chat-input-wrap:focus-within {
  box-shadow: 0 0 0 2px rgba(94, 17, 116, 0.18);
}

.chat-quick-chip {
  transition: background 140ms ease, transform 120ms ease;
}
.chat-quick-chip:active {
  transform: scale(0.97);
  background: #ecdfea;
}

.chat-match-banner {
  max-width: 36rem;
  margin: 0.75rem auto 1.25rem;
  padding: 0.65rem 0.15rem;
}

.profile-cta {
  /* Sit above bottom nav (h-16) + safe area, with a little gap */
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
}
input[type="date"],
input[type="time"] {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.filter-chip.active { background: #400052; color: #ffffff; }

/* Profile photo cropper (1:1) */
.crop-frame {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}
.crop-circle-guide {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}
.crop-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 3;
  pointer-events: auto;
  touch-action: none;
  cursor: nwse-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.crop-corner::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #fff;
  border-style: solid;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.crop-tl {
  top: -14px;
  left: -14px;
  cursor: nwse-resize;
}
.crop-tl::before {
  top: 10px;
  left: 10px;
  border-width: 3px 0 0 3px;
  border-radius: 3px 0 0 0;
}
.crop-tr {
  top: -14px;
  right: -14px;
  cursor: nesw-resize;
}
.crop-tr::before {
  top: 10px;
  right: 10px;
  border-width: 3px 3px 0 0;
  border-radius: 0 3px 0 0;
}
.crop-bl {
  bottom: -14px;
  left: -14px;
  cursor: nesw-resize;
}
.crop-bl::before {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 3px;
}
.crop-br {
  bottom: -14px;
  right: -14px;
  cursor: nwse-resize;
}
.crop-br::before {
  bottom: 10px;
  right: 10px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 3px 0;
}
.crop-zoom-range {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}
.crop-zoom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.crop-zoom-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
#photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
#photo-grid .photo-slot.col-span-2 {
  grid-column: span 2;
}
#photo-grid .photo-slot.row-span-2 {
  grid-row: span 2;
}
#photo-manager.photo-drop-active {
  outline: 2px dashed #5e1174;
  outline-offset: 6px;
  border-radius: 1rem;
  background: rgba(94, 17, 116, 0.04);
}
.photo-slot[data-id] { cursor: grab; }
.photo-slot.photo-dragging { opacity: 0.4; cursor: grabbing; }
.photo-slot.photo-drop-target {
  outline: 3px solid #5e1174;
  outline-offset: 2px;
  transform: scale(0.96);
  transition: transform 80ms ease;
}
.photo-ghost {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  opacity: 0.92;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(32, 25, 33, 0.35);
  transform: scale(1.05);
  margin: 0;
}

html.lightbox-open,
html.lightbox-open body {
  overflow: hidden;
}
html.lightbox-open header,
html.lightbox-open nav,
html.lightbox-open .fixed.bottom-20 {
  visibility: hidden;
}

/* Landing hero */
.landing-hero-img {
  transform: scale(1.06);
  animation: landing-kenburns 22s ease-out forwards;
}
.landing-fade {
  opacity: 0;
  transform: translateY(14px);
  animation: landing-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.landing-fade-1 { animation-delay: 80ms; }
.landing-fade-2 { animation-delay: 220ms; }
.landing-fade-3 { animation-delay: 380ms; }
.landing-brand-mark {
  animation: landing-mark-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}
@keyframes landing-kenburns {
  from { transform: scale(1.06) translateY(0); }
  to { transform: scale(1.14) translateY(-2%); }
}
@keyframes landing-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landing-mark-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

.landing-reveal {
  /* Visible by default — JS only enhances motion */
  opacity: 1;
  transform: none;
}
.landing-reveal.is-animating {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.landing-reveal.is-animating.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Landing: how it works —— */
.landing-how {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(94, 17, 116, 0.07), transparent 70%),
    linear-gradient(180deg, #fff7fb 0%, #f3eef5 48%, #fff7fb 100%);
  color: #201921;
}
.landing-how__glow {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 18%;
  width: min(52rem, 90vw);
  height: 18rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(196, 120, 90, 0.12), transparent 68%);
  pointer-events: none;
}
.landing-how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  position: relative;
}
.landing-how__steps::before {
  content: '';
  position: absolute;
  top: 2.75rem;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(94, 17, 116, 0.22) 12%, rgba(94, 17, 116, 0.22) 88%, transparent);
  pointer-events: none;
}
.landing-how__step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.landing-how__step.is-animating {
  transition-delay: calc(var(--how-i, 0) * 120ms);
}
.landing-how__icon {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin-inline: auto;
  border-radius: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5e1174;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 251, 0.7)),
    #fff;
  box-shadow:
    0 12px 28px rgba(94, 17, 116, 0.1),
    inset 0 0 0 1px rgba(94, 17, 116, 0.08);
}
.landing-how__icon .material-symbols-outlined {
  font-size: 2rem;
  line-height: 1;
}
.landing-how__num {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: #5e1174;
  box-shadow: 0 4px 10px rgba(94, 17, 116, 0.28);
}
.landing-how__steps--stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.landing-how__steps--stack::before {
  display: none;
}
.landing-how__step--row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}
.landing-how__step--row .landing-how__icon {
  width: 4.25rem;
  height: 4.25rem;
  margin-inline: 0;
  border-radius: 1.35rem;
}
.landing-how__step--row .landing-how__icon .material-symbols-outlined {
  font-size: 1.65rem;
}
.landing-how--mobile .landing-how__steps--stack {
  position: relative;
  padding-left: 0;
}
.landing-how--mobile .landing-how__step--row:not(:last-child)::after {
  content: '';
  position: absolute;
  /* drawn relative to step — use left margin of icon center */
  left: 2.05rem;
  top: 4.4rem;
  bottom: -1.75rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(94, 17, 116, 0.28), rgba(94, 17, 116, 0.06));
  pointer-events: none;
}
.landing-how--mobile .landing-how__step--row {
  position: relative;
}
@media (max-width: 1023px) {
  .landing-how__steps:not(.landing-how__steps--stack) {
    grid-template-columns: 1fr;
  }
  .landing-how__steps:not(.landing-how__steps--stack)::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-how__step.is-animating {
    transition-delay: 0ms;
  }
}

.landing-shot-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 1.5rem 1.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}
.landing-shot-rail::-webkit-scrollbar { display: none; }

/* Desktop: all phones visible — no clipped horizontal rail */
.landing-shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
@media (max-width: 1279px) {
  .landing-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 40rem;
  }
}

.landing-phone {
  flex: 0 0 auto;
  width: min(58vw, 220px);
  scroll-snap-align: center;
}
.landing-shot-grid .landing-phone {
  width: 100%;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}
.landing-phone__frame {
  position: relative;
  border-radius: 1.65rem;
  padding: 0.45rem;
  background: linear-gradient(160deg, #3a2744 0%, #1a1220 55%, #2a1834 100%);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.landing-phone__screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.25rem;
  background: #201921;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-img,
  .landing-fade,
  .landing-brand-mark,
  .landing-reveal,
  .landing-reveal.is-animating {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Marketing landing: normal document scroll (override app shell lock) */
html:has(body.landing-page) {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
/* Restore scrollbar on landing (global rule hides it) */
html:has(body.landing-page)::-webkit-scrollbar {
  display: block;
  width: 10px;
}
html:has(body.landing-page)::-webkit-scrollbar-thumb {
  background: rgba(94, 17, 116, 0.35);
  border-radius: 999px;
}
html:has(body.landing-page)::-webkit-scrollbar-track {
  background: rgba(255, 247, 251, 0.6);
}
body.landing-page {
  display: block !important;
  height: auto !important;
  min-height: 100dvh !important;
  max-width: none !important;
  width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overscroll-behavior-y: auto !important;
  transform: none !important;
  isolation: auto !important;
  box-shadow: none !important;
  margin: 0 !important;
  position: static !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 17, 116, 0.35) transparent;
}
body.landing-page main,
body.landing-page .layout-desktop > main {
  display: block !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: none !important;
  -webkit-overflow-scrolling: auto;
}
body.landing-page .landing-hero {
  min-height: 100dvh;
  min-height: 100svh;
}
@media (min-width: 1024px) {
  body.landing-page main.layout-mobile {
    display: none !important;
  }
  body.landing-page .landing-hero {
    min-height: 100dvh;
  }
}
@media (max-width: 1023px) {
  body.landing-page .layout-desktop {
    display: none !important;
  }
}
/* Smooth in-page anchors */
html:has(body.landing-page) {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.landing-page) {
    scroll-behavior: auto;
  }
}

/* Date invite bottom sheet */
.date-sheet-host {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.date-sheet-host.is-open {
  pointer-events: auto;
}
.date-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Keep gestures on the sheet, not the locked body underneath */
  touch-action: manipulation;
}
.date-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(32, 25, 33, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 280ms ease;
}
.date-sheet-host.is-open .date-sheet-backdrop,
.date-sheet-page .date-sheet-backdrop {
  opacity: 1;
}
.date-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Hug content; cap height so long lists still scroll */
  height: auto;
  max-height: min(85dvh, 100%);
  overflow: hidden;
  transform: translateY(110%);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.date-sheet-host.is-open .date-sheet-panel {
  transform: translateY(0);
}
.date-sheet-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.date-sheet-host.is-closing .date-sheet-backdrop {
  opacity: 0;
  transition-duration: 220ms;
}
.date-sheet-host.is-closing .date-sheet-panel {
  transform: translateY(110%);
  transition-duration: 280ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes date-sheet-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes date-sheet-panel-in {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.date-sheet-animate-backdrop {
  animation: date-sheet-backdrop-in 280ms ease both;
}
.date-sheet-animate-panel {
  animation: date-sheet-panel-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.date-sheet-open,
body.date-sheet-page {
  overflow: hidden;
}
body.date-sheet-open main,
body.date-sheet-page main {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .date-sheet-root {
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
  }
  .date-sheet-host .date-sheet-panel,
  .date-sheet-root > .date-sheet-panel,
  .date-sheet-root > form.date-sheet-panel {
    width: 100%;
    max-width: 32rem;
    height: auto;
    max-height: min(85dvh, 40rem);
    border-radius: 1.5rem !important;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(32, 25, 33, 0.22);
  }
  .date-sheet-host .date-sheet-panel {
    transform: translateY(1.25rem) scale(0.98);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
  }
  .date-sheet-host.is-open .date-sheet-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .date-sheet-host.is-closing .date-sheet-panel {
    transform: translateY(0.75rem) scale(0.98);
    opacity: 0;
  }
  /* Full-page desktop UI uses its own layout — don't lock page scroll */
  body.date-sheet-page {
    overflow: visible;
  }
  body.date-sheet-page main {
    overflow: visible;
  }
}

/* =============================================================================
   Breakpoints (industry standard — Tailwind / BrowserStack):
   - Mobile:  < 768px   → mobile UI, full width
   - Tablet:  768–1023px → mobile UI, full width (iPad)
   - Desktop: ≥ 1024px  → desktop UI (Tailwind `lg`)
   No “phone frame” — that left a dark void on tablets/narrow windows.
   ============================================================================= */

/* All non-desktop: full-bleed mobile shell */
@media (max-width: 1023px) {
  html {
    background: #fff7fb;
  }
  body {
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
    transform: none;
    isolation: auto;
  }
  /* Inbox / tab pages: ensure <main> is the scrollport */
  body.desktop-app:not(.chat-page) > main.layout-mobile {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
}

/* Tablet: slightly roomier gutters + centered chrome */
@media (min-width: 768px) and (max-width: 1023px) {
  .px-gutter,
  .px-margin {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  header.layout-mobile > div,
  nav.layout-mobile > div {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  /* Auth / blank pages: keep form column readable on iPad */
  body.desktop-blank main.layout-mobile > div,
  body.desktop-blank .layout-mobile > main > div {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

/* Desktop: full-width scrollable layout */
@media (min-width: 1024px) {
  html {
    overflow: auto;
    background: #fff7fb;
  }
  body {
    max-width: none;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    display: block;
    transform: none;
    isolation: auto;
    margin: 0;
    box-shadow: none;
  }
  body.desktop-app main,
  body.desktop-blank main {
    overflow: visible;
    height: auto;
    min-height: 0;
  }
}

/* Filter page: nested scroll + pinned footer (overrides main overflow-y:auto) */
main.filter-page {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  min-height: 0;
}
main.filter-page .filter-page-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
main.filter-page .filter-page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
main.filter-page .filter-page-footer {
  flex: 0 0 auto;
}

/* —— Membership page —— */
.mem-topbar {
  background: rgba(255, 247, 251, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(32, 25, 33, 0.04);
}
.mem-icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  margin-left: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #201921;
  transition: background 160ms ease;
}
.mem-icon-btn:hover { background: #f7eaf5; }
.mem-icon-btn:active { transform: scale(0.96); }

.mem-page {
  background: #fff7fb;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}
.mem-page.flex {
  display: block;
}

.mem-hero {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  padding-bottom: 0.75rem;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(252, 215, 255, 0.55), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(255, 218, 210, 0.35), transparent 50%),
    linear-gradient(180deg, rgba(252, 215, 255, 0.22) 0%, #fff7fb 100%);
}

.mem-pass {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  color: #fff;
  padding: 1.35rem 1.25rem 1.35rem;
  min-height: auto;
  box-shadow:
    0 18px 40px -12px rgba(64, 0, 82, 0.45),
    0 4px 12px rgba(32, 25, 33, 0.08);
}
.mem-pass--plus,
.mem-pass--invite {
  background: linear-gradient(145deg, #5e1174 0%, #400052 48%, #352e36 100%);
}
.mem-pass--beta {
  background: linear-gradient(145deg, #133d4f 0%, #002736 52%, #201921 100%);
}
.mem-pass--free {
  background: linear-gradient(145deg, #6e2483 0%, #4e434f 55%, #352e36 100%);
}
.mem-pass__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 218, 210, 0.28), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: mem-glow 8s ease-in-out infinite alternate;
}
.mem-pass--beta .mem-pass__glow {
  background: radial-gradient(circle, rgba(165, 204, 226, 0.32), transparent 68%);
}
.mem-pass__blob {
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 11rem;
  height: 11rem;
  border-radius: 60% 40% 55% 45%;
  background: rgba(137, 62, 157, 0.22);
  pointer-events: none;
  z-index: 0;
  animation: mem-blob 12s ease-in-out infinite alternate;
}
.mem-pass--beta .mem-pass__blob {
  background: rgba(129, 168, 189, 0.22);
}
.mem-pass__body { position: relative; z-index: 1; }
.mem-pass__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.mem-pass__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.mem-pass__icon {
  font-size: 20px;
  color: #ffdad2;
}
.mem-pass--beta .mem-pass__icon { color: #a5cce2; }
.mem-pass__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 218, 210, 0.9);
}
.mem-pass--beta .mem-pass__eyebrow { color: rgba(193, 232, 255, 0.9); }
.mem-pass__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffdad2;
  backdrop-filter: blur(8px);
}
.mem-pass--beta .mem-pass__badge { color: #c1e8ff; }
.mem-pass__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.mem-pass__sub {
  margin: 0.35rem 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(236, 223, 234, 0.92);
}
.mem-pass__alert {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 218, 210, 0.18);
  border: 1px solid rgba(255, 218, 210, 0.35);
  font-size: 12px;
  line-height: 1.35;
  color: rgba(250, 237, 248, 0.92);
}
.mem-pass__alert strong {
  display: block;
  color: #fff;
  margin-bottom: 0.15rem;
  font-size: 13px;
}
.mem-pass__meta {
  margin: 0.95rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mem-pass__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.25rem;
}
.mem-pass__row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  color: rgba(236, 223, 234, 0.82);
}
.mem-pass__row-label .material-symbols-outlined {
  font-size: 16px;
  color: #ffdad2;
}
.mem-pass--beta .mem-pass__row-label .material-symbols-outlined { color: #a5cce2; }
.mem-pass__row-value {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.mem-sections {
  position: relative;
  z-index: 0;
  margin-top: 0.75rem;
}

.mem-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 4px 18px -4px rgba(94, 17, 116, 0.1);
  transition: background 160ms ease, transform 120ms ease;
}
.mem-link:hover { background: #fdf0fb; }
.mem-link:active { transform: scale(0.99); }
.mem-link__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 131, 103, 0.22);
  color: #721c09;
  flex-shrink: 0;
}
.mem-link__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mem-link__title {
  font-size: 14px;
  font-weight: 600;
  color: #201921;
}
.mem-link__desc {
  font-size: 12px;
  color: #4e434f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mem-link__chevron { color: #807380; font-size: 22px; }

.mem-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.mem-section__head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.mem-section__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #201921;
}
.mem-section__sub {
  margin: 0;
  font-size: 13px;
  color: #4e434f;
}
.mem-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fcd7ff;
  color: #340043;
}

.mem-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mem-perk {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 3px 14px -4px rgba(94, 17, 116, 0.08);
}
.mem-perk__ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mem-perk__ico .material-symbols-outlined { font-size: 18px; }
.mem-perk__ico--rain { background: #133d4f; color: #81a8bd; }
.mem-perk__ico--heart { background: #a13e28; color: #fff; }
.mem-perk__ico--cafe { background: #ecdfea; color: #400052; }
.mem-perk__ico--send { background: #5e1174; color: #fff; }
.mem-perk__ico--hike { background: #002736; color: #fff; }
.mem-perk__copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mem-perk__title {
  font-size: 14px;
  font-weight: 600;
  color: #201921;
}
.mem-perk__desc {
  font-size: 12px;
  line-height: 1.35;
  color: #4e434f;
}
.mem-perk__check {
  font-size: 18px;
  color: #5e1174;
  flex-shrink: 0;
}

.mem-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.mem-tier {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 3px 14px -4px rgba(94, 17, 116, 0.08);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.mem-tier:has(:checked) {
  background: #fdf0fb;
  border-color: rgba(94, 17, 116, 0.35);
  box-shadow: 0 0 0 3px rgba(94, 17, 116, 0.1);
}
.mem-tier__radio {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #ecdfea;
  flex-shrink: 0;
  position: relative;
  transition: background 160ms ease;
}
.mem-tier:has(:checked) .mem-tier__radio { background: #400052; }
.mem-tier:has(:checked) .mem-tier__radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: #fff;
}
.mem-tier__main { flex: 1; min-width: 0; }
.mem-tier__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 12px;
  color: #4e434f;
}
.mem-tier--beta:has(:checked) {
  background: #f0f7fa;
  border-color: rgba(19, 61, 79, 0.35);
  box-shadow: 0 0 0 3px rgba(19, 61, 79, 0.1);
}
.mem-tier--beta:has(:checked) .mem-tier__radio { background: #133d4f; }
.mem-tier--beta:has(:checked) .mem-tier__price strong { color: #133d4f; }
.mem-tier--beta .mem-tier__tag:not(.mem-tier__tag--mute) {
  background: #c1e8ff;
  color: #001e2b;
}
.mem-tier__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 600;
  color: #201921;
}
.mem-tier__name {
  white-space: nowrap;
}
.mem-tier__tag {
  font-size: 11px;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #fd8367;
  color: #721c09;
}
.mem-tier__tag--mute {
  background: #ecdfea;
  color: #4e434f;
}
.mem-tier:has(:checked) .mem-tier__tag--mute {
  background: #fcd7ff;
  color: #340043;
}
.mem-tier__price {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.mem-tier__price strong {
  font-size: 16px;
  font-weight: 700;
  color: #201921;
}
.mem-tier:has(:checked) .mem-tier__price strong { color: #5e1174; }
.mem-tier__price small {
  font-size: 11px;
  color: #807380;
}

.mem-btn {
  width: 100%;
  height: 3rem;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, opacity 160ms ease, background 160ms ease;
}
.mem-btn:active { transform: scale(0.98); }
.mem-btn--primary {
  background: #5e1174;
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(94, 17, 116, 0.45);
}
.mem-btn--accent {
  background: #fd8367;
  color: #721c09;
  box-shadow: 0 8px 20px -6px rgba(161, 62, 40, 0.35);
}
.mem-btn--ghost {
  background: #f7eaf5;
  color: #201921;
}
.mem-btn--danger {
  background: transparent;
  color: #ba1a1a;
  border: 1px solid rgba(186, 26, 26, 0.22);
}
.mem-btn--danger:hover { background: #ffdad6; }

.mem-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.25rem;
}
.mem-footnote {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #4e434f;
}
.mem-help {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 12px;
  color: #807380;
}
.mem-help a {
  color: #5e1174;
  font-weight: 600;
  text-decoration: none;
}
.mem-help a:hover { text-decoration: underline; }

.mem-rise {
  opacity: 0;
  animation: mem-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mem-rise-2 { animation-delay: 90ms; }
.mem-rise-3 { animation-delay: 160ms; }
.mem-rise-4 { animation-delay: 230ms; }

@keyframes mem-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mem-glow {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to { transform: translate(-8%, 6%) scale(1.08); opacity: 1; }
}
@keyframes mem-blob {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(12deg) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .mem-rise,
  .mem-pass__glow,
  .mem-pass__blob {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* —— Responsive mobile / tablet polish —— */
html, body {
  overflow-x: clip;
}
/* Keep phone-shell Y lock — overflow-x:clip alone can flip overflow-y to auto */
html {
  overflow-y: hidden;
}
body {
  overflow-y: hidden;
}
body.landing-page {
  overflow-y: visible !important;
}
html:has(body.landing-page) {
  overflow-y: scroll !important;
}
/* Datingtips article: document scroll (phone-shell overflow:hidden + hash to hidden desktop ids freeze iOS). */
html.tips-public,
html.signup-page {
  height: auto !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}
@media (max-width: 1023px) {
  html.tips-public,
  html.tips-public body,
  body.tips-public,
  html.signup-page,
  html.signup-page body,
  body.signup-page {
    height: auto !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
  }
  html.tips-public body,
  body.tips-public,
  html.signup-page body,
  body.signup-page {
    display: block !important;
    min-height: 100dvh !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
  }
  html.tips-public main.layout-mobile,
  body.tips-public main.layout-mobile,
  html.signup-page main.layout-mobile,
  body.signup-page main.layout-mobile {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: none !important;
    max-width: none;
    width: 100%;
  }
  html.tips-public main.layout-mobile > *,
  body.tips-public main.layout-mobile > *,
  html.signup-page main.layout-mobile > *,
  body.signup-page main.layout-mobile > * {
    max-width: none;
  }
}
/* Desktop marketing / blank pages (support, vilkår, personvern, …): unlock document scroll.
   These rules must come AFTER the phone-shell Y lock above. */
@media (min-width: 1024px) {
  html:has(body.desktop-blank),
  html:has(body.desktop-app:not(.chat-page)) {
    overflow-x: clip;
    overflow-y: auto !important;
  }
  body.desktop-blank,
  body.desktop-app:not(.chat-page) {
    overflow-x: clip;
    overflow-y: visible !important;
    display: block !important;
    height: auto !important;
    min-height: 100dvh;
  }
  body.desktop-blank main,
  body.desktop-app:not(.chat-page) main {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
  }
}
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Very small phones */
@media (max-width: 359px) {
  .font-headline-xl-mobile {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }
  .px-gutter,
  .px-margin {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Landscape phones: allow scrolling, reduce fixed chrome clash */
@media (max-width: 1023px) and (max-height: 480px) and (orientation: landscape) {
  html {
    overflow: auto;
  }
  body {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    max-width: none;
    box-shadow: none;
  }
  main {
    overflow: visible;
  }
}

/* Avoid horizontal bleed on mobile layouts */
@media (max-width: 1023px) {
  .layout-mobile,
  main.layout-mobile {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .layout-mobile .flex > *,
  .layout-mobile [class*="grid-cols-"] > * {
    min-width: 0;
  }
}

/* Pull-to-refresh indicator (mobile) */
.pull-refresh {
  --pull: 0;
  --pull-progress: 0;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 247, 251, 0.94);
  color: #5e1174;
  box-shadow: 0 6px 20px rgba(32, 25, 33, 0.14);
  transform: translate(-50%, calc(-120% + (var(--pull) * 0.55px)));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}
.pull-refresh.is-visible,
.pull-refresh.is-reloading {
  opacity: 1;
}
.pull-refresh.is-ready {
  color: #fff;
  background: #5e1174;
}
.pull-refresh-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(94, 17, 116, 0.2);
  border-top-color: currentColor;
  transform: rotate(calc(var(--pull-progress) * 280deg));
}
.pull-refresh.is-ready .pull-refresh-spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}
.pull-refresh.is-reloading .pull-refresh-spinner {
  animation: pull-refresh-spin 0.7s linear infinite;
}
@keyframes pull-refresh-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 1024px) {
  .pull-refresh { display: none !important; }
}

.pwa-install-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(32, 25, 33, 0.45);
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
}
.pwa-install-sheet[hidden] {
  display: none;
}
.pwa-install-sheet__panel {
  width: 100%;
  max-width: 26rem;
  background: #fff7fb;
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 16px 40px rgba(32, 25, 33, 0.2);
}
@media (min-width: 1024px) {
  .pwa-install-sheet {
    align-items: center;
  }
}

.tips-listen {
  position: relative;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #120818;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(18, 8, 24, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tips-listen:hover,
.tips-listen:focus-visible {
  background: #fff;
}
.tips-listen:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.tips-listen__icon {
  font-size: 22px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}



