/* GENERATED by scripts/build-app-demo-css.mjs from apps/app/public/css/main.css.
   Do not edit: change the app's stylesheet or the script's KEEP list. */
.app-phone {
  --app-height: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: calc(64px + var(--safe-bottom));
  --app-shell-max-width: 480px;
  --bg-base:      #0c0a10;
  --bg-surface:   #141018;
  --bg-card:      #1c1724;
  --bg-hover:     #241e2e;
  --bg-overlay:   rgba(12, 10, 16, 0.86);
  --border:       #2c2438;
  --border-strong:#44364e;
  --border-focus: var(--rose);
  --rose:         #e8407a;
  --rose-hover:   #f55590;
  --rose-dim:     rgba(232, 64, 122, 0.15);
  --rose-glow:    rgba(232, 64, 122, 0.32);
  --gold:         #f0b440;
  --gold-hover:   #f8c85a;
  --gold-dim:     rgba(240, 180, 64, 0.14);
  --gold-glow:    rgba(240, 180, 64, 0.28);
  --violet:       #9b6dff;
  --violet-hover: #b08aff;
  --violet-dim:   rgba(155, 109, 255, 0.14);
  --violet-glow:  rgba(155, 109, 255, 0.28);
  --text-primary:   #f2eaf8;
  --text-secondary: #b8a8cc;
  --text-muted:     #a092b2;
  --text-on-accent: #0c0a10;
  --green:      #2ed8a8;
  --green-dim:  rgba(46, 216, 168, 0.14);
  --red:        #f87171;
  --red-dim:    rgba(248, 113, 113, 0.14);
  --yellow:     #fbbf24;
  --yellow-dim: rgba(251, 191, 36, 0.14);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --text-xs:   10.8px;
  --text-sm:   12.3px;
  --text-base: 14.1px;
  --text-md:   15.75px;
  --text-lg:   18px;
  --text-xl:   22.5px;
  --text-2xl:  30px;
  --text-3xl:  42px;
  --text-4xl:  57px;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 999px;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.28);
  --shadow:      0 8px 32px rgba(0,0,0,0.42);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.56);
  --shadow-rose: 0 8px 32px var(--rose-glow);
  --shadow-gold: 0 8px 32px var(--gold-glow);
  --transition-fast: 0.14s ease;
  --transition:      0.22s ease;
  --transition-slow: 0.38s ease;
  --gradient-rose:          linear-gradient(135deg, #e8407a, #f55590);
  --gradient-rose-gold:     linear-gradient(135deg, #e8407a, #f0b440);
  --gradient-violet:        linear-gradient(135deg, #9b6dff, #e8407a);
  --gradient-aurora:        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(155,109,255,0.22), transparent 60%),
                            radial-gradient(ellipse 60% 40% at 80% 76%, rgba(232,64,122,0.18), transparent 55%);
  --gradient-photo-overlay: linear-gradient(to bottom, transparent 35%, rgba(12,10,16,0.72) 65%, rgba(12,10,16,0.96) 100%);
  --persona-photo-bg:
    radial-gradient(ellipse at 30% 20%, rgba(155,109,255,0.3), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(232,64,122,0.25), transparent 50%),
    linear-gradient(160deg, #1e1030 0%, #2a1040 40%, #1a0828 100%);
  --chat-avatar-bg:
    radial-gradient(ellipse at 30% 20%, rgba(155,109,255,0.35), transparent 60%),
    linear-gradient(160deg, #200e36, #2a1040);
  --chrome-bg: rgba(12, 10, 16, 0.96);
}
.app-phone[data-universe="veil"] {
  --bg-base:      #0b0a08;
  --bg-surface:   #15130d;
  --bg-card:      #1d1a12;
  --bg-hover:     #262218;
  --bg-overlay:   rgba(11, 10, 8, 0.86);
  --border:       #2c2718;
  --border-strong:#463d26;
  --chrome-bg:    rgba(11, 10, 8, 0.96);
  --rose:         #e58a3c;
  --rose-hover:   #f09d50;
  --rose-dim:     rgba(229, 138, 60, 0.15);
  --rose-glow:    rgba(229, 138, 60, 0.32);
  --violet:       #5cb89f;
  --violet-hover: #74c9b2;
  --violet-dim:   rgba(92, 184, 159, 0.14);
  --violet-glow:  rgba(92, 184, 159, 0.28);
  --gradient-rose:      linear-gradient(135deg, #e58a3c, #c96a1e);
  --gradient-rose-gold: linear-gradient(135deg, #e58a3c, #f0b440);
  --gradient-violet:    linear-gradient(135deg, #5cb89f, #e58a3c);
  --gradient-aurora:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(240,180,64,0.20), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 76%, rgba(92,184,159,0.16), transparent 55%);
  --gradient-photo-overlay:
    linear-gradient(to bottom, transparent 35%, rgba(20,16,8,0.72) 65%, rgba(11,10,8,0.96) 100%);
  --persona-photo-bg:
    radial-gradient(ellipse at 30% 20%, rgba(240,180,64,0.22), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(92,184,159,0.20), transparent 50%),
    linear-gradient(160deg, #241a0e 0%, #2e2410 40%, #1a1206 100%);
  --chat-avatar-bg:
    radial-gradient(ellipse at 30% 20%, rgba(240,180,64,0.28), transparent 60%),
    linear-gradient(160deg, #241a0e, #2e2410);
}
.app-phone[data-universe="real"] {
  --bg-base:      #0c0a10;
  --bg-surface:   #141018;
  --bg-card:      #1c1724;
  --bg-hover:     #241e2e;
  --bg-overlay:   rgba(12, 10, 16, 0.86);
  --border:       #2c2438;
  --border-strong:#44364e;
  --chrome-bg:    rgba(12, 10, 16, 0.96);
  --rose:         #e8407a;
  --rose-hover:   #f55590;
  --rose-dim:     rgba(232, 64, 122, 0.15);
  --rose-glow:    rgba(232, 64, 122, 0.32);
  --violet:       #9b6dff;
  --violet-hover: #b08aff;
  --violet-dim:   rgba(155, 109, 255, 0.14);
  --violet-glow:  rgba(155, 109, 255, 0.28);
  --gradient-rose:      linear-gradient(135deg, #e8407a, #f55590);
  --gradient-rose-gold: linear-gradient(135deg, #e8407a, #f0b440);
  --gradient-violet:    linear-gradient(135deg, #9b6dff, #e8407a);
  --gradient-aurora:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(155,109,255,0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 76%, rgba(232,64,122,0.18), transparent 55%);
  --gradient-photo-overlay:
    linear-gradient(to bottom, transparent 35%, rgba(12,10,16,0.72) 65%, rgba(12,10,16,0.96) 100%);
  --persona-photo-bg:
    radial-gradient(ellipse at 30% 20%, rgba(155,109,255,0.3), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(232,64,122,0.25), transparent 50%),
    linear-gradient(160deg, #1e1030 0%, #2a1040 40%, #1a0828 100%);
  --chat-avatar-bg:
    radial-gradient(ellipse at 30% 20%, rgba(155,109,255,0.35), transparent 60%),
    linear-gradient(160deg, #200e36, #2a1040);
}
.app-phone[data-universe="perigee"] {
  --bg-base:      #080b12;
  --bg-surface:   #0f141c;
  --bg-card:      #161d28;
  --bg-hover:     #1e2632;
  --bg-overlay:   rgba(8, 11, 18, 0.86);
  --border:       #223040;
  --border-strong:#35485e;
  --chrome-bg:    rgba(8, 11, 18, 0.96);
  --rose:         #e8407a;
  --rose-hover:   #f55590;
  --rose-dim:     rgba(232, 64, 122, 0.15);
  --rose-glow:    rgba(232, 64, 122, 0.32);
  --violet:       #9b6dff;
  --violet-hover: #b08aff;
  --violet-dim:   rgba(155, 109, 255, 0.14);
  --violet-glow:  rgba(155, 109, 255, 0.28);
  --gradient-rose:      linear-gradient(135deg, #e8407a, #f55590);
  --gradient-rose-gold: linear-gradient(135deg, #e8407a, #f0b440);
  --gradient-violet:    linear-gradient(135deg, #9b6dff, #e8407a);
  --gradient-aurora:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(60,200,220,0.20), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 76%, rgba(90,100,220,0.18), transparent 55%);
  --gradient-photo-overlay:
    linear-gradient(to bottom, transparent 35%, rgba(8,14,20,0.72) 65%, rgba(8,11,18,0.96) 100%);
  --persona-photo-bg:
    radial-gradient(ellipse at 30% 20%, rgba(60,200,220,0.24), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(90,100,220,0.22), transparent 50%),
    linear-gradient(160deg, #0e1a24 0%, #10202e 40%, #081420 100%);
  --chat-avatar-bg:
    radial-gradient(ellipse at 30% 20%, rgba(60,200,220,0.30), transparent 60%),
    linear-gradient(160deg, #0e1a24, #10202e);
}
.app-phone[data-universe] {
  --border-focus: var(--rose);
  --shadow-rose: 0 8px 32px var(--rose-glow);
  --shadow-gold: 0 8px 32px var(--gold-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .app-phone .bottom-nav,
  .app-phone .screen-header,
  .app-phone .conversation-footer,
  .app-phone .msg-row--mine .msg-bubble,
  .app-phone .msg-row--theirs .msg-bubble,
  .app-phone .swipe-card,
  .app-phone .swipe-card-actions {
    transition: background-color 480ms ease, border-color 480ms ease, color 480ms ease;
  }
}

@supports (height: 100svh) {
  .app-phone {
    --app-height: 100svh;
  }
}

.app-phone .screen-header {
  padding: calc(var(--space-6) + var(--safe-top)) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.app-phone .screen-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.1;
}

.app-phone .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-fast),
              border-color var(--transition-fast), box-shadow var(--transition-fast),
              opacity var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.app-phone .btn:hover:not(:disabled) { transform: translateY(-2px); }
.app-phone .btn:active:not(:disabled) { transform: translateY(0); }
.app-phone .btn:disabled { opacity: 0.38; cursor: not-allowed; }

.app-phone .btn-sm  { height: 34px; padding: 0 var(--space-4); font-size: var(--text-xs); }
.app-phone .btn-md  { height: 44px; padding: 0 var(--space-5); font-size: var(--text-sm); }
.app-phone .btn-lg  { height: 54px; padding: 0 var(--space-8); font-size: var(--text-base); }

.app-phone .btn-primary {
  background: var(--gradient-rose);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-rose);
}
.app-phone .btn-primary:hover:not(:disabled) {
  background: var(--rose-hover);
  box-shadow: 0 12px 40px var(--rose-glow);
}

.app-phone .btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}
.app-phone .btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.app-phone .btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.app-phone .btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.app-phone .btn-danger {
  background: var(--red-dim);
  color: var(--red);
}
.app-phone .btn-danger:hover:not(:disabled) { background: rgba(248,113,113,0.24); }

.app-phone .btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-full); font-size: 18px; }
.app-phone .btn-icon.btn-sm { width: 34px; height: 34px; font-size: 15px; }
.app-phone .btn-icon.btn-lg { width: 56px; height: 56px; font-size: 22.5px; }

.app-phone .swipe-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.app-phone .swipe-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--persona-photo-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-phone .swipe-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-photo-overlay);
}

.app-phone .swipe-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5);
}

.app-phone .swipe-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-surface);
}

.app-phone .swipe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 22.5px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow);
}

.app-phone .swipe-btn:hover { transform: scale(1.12); }

.app-phone .swipe-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.app-phone .swipe-btn:disabled:hover { transform: none; }

.app-phone .swipe-btn-pass {
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-muted);
}
.app-phone .swipe-btn-pass:hover { border-color: var(--red); color: var(--red); }

.app-phone .swipe-btn-like {
  background: var(--gradient-rose);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-rose);
  width: 70px;
  height: 70px;
  font-size: 27px;
}
.app-phone .swipe-btn-like:hover { box-shadow: 0 12px 40px var(--rose-glow); }

.app-phone .swipe-btn-super {
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  color: var(--gold);
}
.app-phone .swipe-btn-super:hover { background: var(--gold-dim); box-shadow: var(--shadow-gold); }
.app-phone .swipe-btn-super--spent,
.app-phone .swipe-btn-super--spent:hover {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
  cursor: default;
}

.app-phone .swipe-indicator {
  position: absolute;
  top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition-fast);
  background: color-mix(in srgb, var(--bg-base) 74%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 18px currentColor;
}

.app-phone .swipe-indicator-like {
  left: var(--space-5);
  border: 4px solid var(--rose);
  color: var(--rose);
  transform: rotate(-12deg);
}

.app-phone .swipe-indicator-pass {
  right: var(--space-5);
  border: 4px solid var(--red);
  color: var(--red);
  transform: rotate(12deg);
}
.app-phone .match-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.app-phone .match-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.app-phone .match-overlay-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: app-match-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes app-match-pop {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.app-phone .match-overlay-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}
.app-phone .match-overlay-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}
.app-phone .match-overlay-close svg { width: 16px; height: 16px; flex-shrink: 0; }
.app-phone .match-play-btn svg { width: 30px; height: 30px; flex-shrink: 0; }

.app-phone .match-logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto var(--space-3);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--rose) 30%, transparent));
}

.app-phone .match-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 var(--space-2);
}

.app-phone .match-sub {
  font-size: 12.75px;
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
  line-height: 1.4;
}

.app-phone .match-personas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.app-phone .match-persona {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.app-phone .match-persona-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--rose);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.app-phone .match-persona-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-phone .match-persona-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.app-phone .match-persona-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14.25px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.app-phone .match-heart {
  font-size: 22.5px;
  color: var(--rose);
  flex-shrink: 0;
}

.app-phone .match-play-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.app-phone .chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.app-phone .chip:hover { border-color: var(--rose); color: var(--text-primary); }

.app-phone .chip.active {
  border-color: var(--rose);
  background: var(--rose-dim);
  color: var(--rose);
}

.app-phone .bottom-nav {
  position: relative;
  z-index: 1200;
  display: flex;
  align-items: center;
  background: var(--chrome-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 0 var(--space-4) 4px;
  flex-shrink: 0;
}

.app-phone .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.app-phone .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.app-phone .nav-icon svg {
  width: 22px;
  height: 22px;
}

.app-phone .nav-label {
  font-family: var(--font-ui);
  font-size: 9.75px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.app-phone .nav-item:hover .nav-icon { transform: translateY(-2px); }
.app-phone .nav-item.active { color: var(--rose); }
.app-phone .nav-item.active .nav-icon { filter: drop-shadow(0 0 8px var(--rose-glow)); }

.app-phone .nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--rose);
  color: var(--text-on-accent);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

.app-phone .match-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 51px;
  font-weight: 600;
  font-style: italic;
  background: var(--gradient-rose-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-6);
}

.app-phone .match-heart {
  font-size: 24px;
  animation: app-heartbeat 1.2s ease infinite;
}

@keyframes app-heartbeat {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.3); }
  60%       { transform: scale(1.1); }
}
.app-phone .conversation-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  flex-shrink: 0;
  touch-action: manipulation;
}

.app-phone .conversation-back-btn {
  flex-shrink: 0;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border-color: var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-phone .conversation-back-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.app-phone .conversation-personas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  overflow: hidden;
}

.app-phone .conversation-persona-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.app-phone .conversation-persona-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 0;
  width: 100%;
}

.app-phone .conversation-profile-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  flex-shrink: 0;
  overflow: visible;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.app-phone .conversation-profile-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.app-phone .conversation-profile-btn:active {
  transform: scale(0.97);
}

.app-phone .conversation-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--chat-avatar-bg);
}

.app-phone .conversation-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-phone .conversation-persona-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
}

.app-phone .conversation-divider {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.app-phone .conversation-scene-subtext {
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-phone .partner-online-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--green);
  flex-shrink: 0;
}

.app-phone .conversation-profile-btn--partner .partner-online-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  border: 2px solid var(--bg-surface);
}
.app-phone .conversation-messages {
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-4);
  padding-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.app-phone .conversation-footer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid var(--border);
  background: var(--chrome-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  touch-action: manipulation;
  padding-bottom: var(--safe-bottom);
}

.app-phone .conversation-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: auto;
  padding: var(--space-6);
}

.app-phone .conversation-load-older {
  align-self: center;
  margin-bottom: var(--space-2);
}
.app-phone .msg-row {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}

.app-phone .msg-row--mine  { align-self: flex-end;   align-items: flex-end; }
.app-phone .msg-row--theirs { align-self: flex-start; align-items: flex-start; }

.app-phone .msg-bubble {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-base);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-phone .msg-row--mine .msg-bubble {
  background: var(--rose);
  color: var(--text-on-accent);
  border-bottom-right-radius: 4px;
}

.app-phone .msg-row--theirs .msg-bubble {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.app-phone .msg-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 3px;
}

.app-phone .msg-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 3px;
}

.app-phone .msg-meta .msg-time {
  margin-top: 0;
}

.app-phone .msg-edit-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--text-xs);
  padding: 0;
  cursor: pointer;
}

.app-phone .msg-edit-toggle:hover {
  color: var(--text-secondary);
}

.app-phone .msg-bubble--deleted {
  background: transparent !important;
  border: 1px dashed var(--border) !important;
  color: var(--text-muted) !important;
  font-size: var(--text-sm);
  font-style: italic;
}

.app-phone .msg-edit-history {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
  max-width: 100%;
}

.app-phone .msg-row--edits-open .msg-edit-history {
  display: flex;
}

.app-phone .msg-row--mine .msg-edit-history {
  align-items: flex-end;
}

.app-phone .msg-row--theirs .msg-edit-history {
  align-items: flex-start;
}

.app-phone .msg-edit-history-item {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.app-phone .msg-row--mine .msg-edit-history-item {
  align-items: flex-end;
}

.app-phone .msg-row--theirs .msg-edit-history-item {
  align-items: flex-start;
}

.app-phone .msg-bubble--history {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border);
}

.app-phone .msg-bubble--image {
  padding: 3px;
  background: transparent !important;
  border: none !important;
}

.app-phone .msg-photo-button {
  position: relative;
  display: block;
  width: min(42vw, 210px);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}

.app-phone .msg-photo-button.is-loading {
  animation: app-shimmer 1.8s ease-in-out infinite;
}

.app-phone .msg-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.app-phone .typing-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  min-height: 28px;
}

.app-phone .conversation-send-error {
  margin: 0 var(--space-4);
}

.app-phone .conversation-pending-messages {
  margin: var(--space-2) var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.app-phone .conversation-pending-messages p {
  margin: 0 0 var(--space-2);
  white-space: pre-wrap;
}

.app-phone .conversation-readonly-note {
  margin: 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-align: center;
}

.app-phone .typing-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.app-phone .typing-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  animation: app-typing-bounce 1.2s ease-in-out infinite;
}

.app-phone .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.app-phone .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes app-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30%            { transform: translateY(-5px); opacity: 1; }
}
.app-phone .conversation-input-bar {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  flex-shrink: 0;
}

.app-phone .conversation-input {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border-radius: 22px;
  min-height: 44px;
  max-height: none;
  line-height: 1.45;
  resize: none;
  overflow-y: hidden;
  white-space: pre-wrap;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.app-phone .conversation-input::-webkit-scrollbar {
  width: 8px;
}

.app-phone .conversation-send-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full) !important;
  flex-shrink: 0;
}

.app-phone .conversation-photo-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full) !important;
  flex-shrink: 0;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.app-phone .conversation-photo-btn svg {
  width: 20px;
  height: 20px;
}

.app-phone .conversation-photo-btn:hover {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--rose) 38%, transparent);
}

.app-phone .conversation-send-btn svg,
.app-phone .conversation-back-btn svg {
  width: 20px;
  height: 20px;
}
.app-phone .conversation-icebreaker-btn {
  align-self: center;
  margin: var(--space-4) auto;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--violet), var(--rose));
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  cursor: pointer;
}
.app-phone .conversation-icebreaker-btn:disabled {
  opacity: 0.82;
  cursor: wait;
}
.app-phone .conversation-icebreaker-btn.is-loading .conversation-ai-icon,
.app-phone .conversation-rewrite-btn.is-loading .conversation-ai-icon,
.app-phone .conversation-rewrite-modifier-btn.is-loading::before {
  animation: app-ai-control-pulse 0.8s ease-in-out infinite alternate;
}

.app-phone .conversation-rewrite-modifier-btn.is-loading::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-right: var(--space-1);
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

@keyframes app-ai-control-pulse {
  from { opacity: 0.35; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}
.app-phone .conversation-ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-phone .conversation-icebreaker-btn .conversation-ai-icon svg {
  width: 18px;
  height: 18px;
}
.app-phone .conversation-rewrite-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4) 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-phone .conversation-rewrite-row::-webkit-scrollbar { display: none; }

.app-phone .conversation-rewrite-modifiers {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1 1 auto;
  min-width: 0;
}

.app-phone .conversation-rewrite-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  padding: 0;
}
.app-phone .conversation-rewrite-btn:hover { background: var(--bg-hover); }
.app-phone .conversation-rewrite-btn:disabled { opacity: 0.5; cursor: wait; }
.app-phone .conversation-rewrite-btn.is-loading { color: var(--violet-hover); }
.app-phone .conversation-rewrite-btn .conversation-ai-icon svg { width: 18px; height: 18px; }

.app-phone .conversation-rewrite-undo-btn {
  color: var(--text-secondary);
  margin-left: auto;
}
.app-phone .conversation-rewrite-undo-btn:hover { color: var(--text-primary); }
.app-phone .conversation-rewrite-undo-btn svg { width: 18px; height: 18px; }

.app-phone .conversation-rewrite-modifier-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.app-phone .conversation-rewrite-modifier-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.app-phone .conversation-rewrite-modifier-btn:disabled { opacity: 0.5; cursor: wait; }
.app-phone .conversation-rewrite-modifier-btn.is-loading {
  color: var(--violet);
  border-color: var(--violet-dim);
  background: var(--violet-dim);
}

.app-phone .conversation-rewrite-debug {
  margin: var(--space-2) var(--space-4) 0;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
}
.app-phone .conversation-rewrite-debug-shown { color: var(--violet); }
.app-phone .msg-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--violet);
  border: 1px solid color-mix(in srgb, var(--violet) 42%, transparent);
  border-radius: var(--radius-full);
  background: var(--violet-dim);
  margin-left: var(--space-2);
  vertical-align: middle;
  opacity: 0.95;
}
.app-phone .msg-ai-badge svg { width: 11px; height: 11px; }
.app-phone .msg-row--mine .msg-ai-badge {
  color: var(--text-on-accent);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

@keyframes app-shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.app-phone .personas-header {
  padding: calc(var(--space-5) + var(--safe-top)) var(--space-6) var(--space-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.app-phone .personas-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.app-phone .personas-header-sub {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.app-phone .personas-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-phone .selection-counter {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--rose);
  font-weight: 500;
}

.app-phone .selection-counter--locked {
  color: var(--gold);
}
.app-phone .personas-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-4) calc(var(--space-12) + var(--space-4));
  -webkit-overflow-scrolling: touch;
}
.app-phone .personas-scroll--centered {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.app-phone .discover-empty-action {
  margin-top: var(--space-2);
}
.app-phone .scene-picker-modal {
  position: fixed;
  inset: 0 0 var(--bottom-nav-height);
  z-index: 1100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
}

.app-phone .scene-picker-modal.open {
  display: flex;
}

.app-phone .scene-picker-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
}

.app-phone .scene-picker-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: min(82vh, 680px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
}

.app-phone .scene-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.app-phone .scene-picker-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0;
}
.app-phone .scene-picker-intro {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.app-phone .scene-picker-list {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: min(48vh, 310px);
  min-height: 242px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(to bottom,
      transparent calc(50% - 40px),
      color-mix(in srgb, var(--rose) 11%, transparent) calc(50% - 40px),
      color-mix(in srgb, var(--rose) 11%, transparent) calc(50% + 40px),
      transparent calc(50% + 40px)),
    rgba(255, 255, 255, 0.035);
  padding-block: 118px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.app-phone .scene-picker-list::-webkit-scrollbar {
  display: none;
}

.app-phone .scene-picker-row {
  position: relative;
  z-index: 1;
  flex: 0 0 104px;
  min-height: 104px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
  transform: scale(0.9);
  transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.app-phone .scene-picker-row:hover,
.app-phone .scene-picker-row:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.app-phone .scene-picker-row__label {
  min-width: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.app-phone .scene-picker-row__facet {
  max-width: 34ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.3;
  color: var(--text-secondary);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-phone .scene-picker-status {
  margin: 0;
  color: var(--red);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.app-phone .scene-picker-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
}

.app-phone .scene-picker-surprise,
.app-phone .scene-picker-select {
  width: 100%;
}

@media (max-width: 380px) {
  .app-phone .scene-picker-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 700px) {
  .app-phone .scene-picker-list {
    min-height: 200px;
  }
}
.app-phone .persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-8);
}

.app-phone .persona-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  aspect-ratio: 3 / 4;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.app-phone .persona-card:active {
  transform: scale(0.97);
}

.app-phone .persona-card--selected {
  border-color: var(--rose);
  box-shadow: 0 0 0 1px var(--rose-glow);
}

.app-phone .persona-card--selected.persona-card--locked {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-glow);
}

.app-phone .persona-card--locked {
  cursor: default;
}

.app-phone .persona-card--reported {
  border-color: rgba(248, 113, 113, 0.38);
  cursor: default;
}

.app-phone .persona-card--reported .persona-card__img,
.app-phone .persona-card--reported .persona-card__info {
  opacity: 0.52;
}

.app-phone .persona-card--reported:active {
  transform: none;
}

.app-phone .persona-card__image {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
}

.app-phone .persona-card--scene-shimmer::after {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 48%, transparent 62%);
  transform: translateX(-60%) rotate(8deg);
  animation: app-sceneCardShimmer 1.3s ease-out forwards;
}

@keyframes app-sceneCardShimmer {
  to { transform: translateX(60%) rotate(8deg); opacity: 0; }
}

.app-phone .persona-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-phone .persona-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-photo-overlay);
  pointer-events: none;
}

.app-phone .persona-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3);
}

.app-phone .persona-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.app-phone .persona-card__tagline {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.app-phone .persona-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-height: 60px;
  overflow: hidden;
}

.app-phone .persona-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: 1px 6px;
  line-height: 1.6;
}
.app-phone .persona-card__bio-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.app-phone .persona-card__bio-btn:hover,
.app-phone .persona-card__bio-btn:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.app-phone .persona-card__badge {
  position: absolute;
  top: var(--space-2);
  right: calc(var(--space-2) + 32px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.app-phone .persona-card__badge--rank {
  background: var(--rose);
  color: var(--text-on-accent);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.app-phone .persona-card--selected.persona-card--locked .persona-card__badge--rank {
  background: var(--gold);
  color: var(--bg-base);
}
.app-phone .persona-card__backlog-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: 9px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: rgba(12,10,16,0.72);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 1px 6px;
  z-index: 2;
}

.app-phone .persona-card__reported-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: 9px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  background: rgba(12,10,16,0.78);
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: var(--radius-full);
  padding: 1px 6px;
  z-index: 3;
}

.app-phone .persona-card__backlog-badge + .persona-card__reported-badge,
.app-phone .persona-card__reported-badge--offset {
  top: calc(var(--space-2) + 22px);
}

.app-phone .lock-in-floating {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  pointer-events: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.app-phone .lock-in-btn {
  width: auto;
  min-width: 0;
  height: 44px;
  padding: 0 var(--space-5);
  font-size: var(--text-base);
  box-shadow: var(--shadow-rose);
  pointer-events: auto;
}
.app-phone .lock-in-note {
  max-width: 30ch;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--chrome-bg);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.app-phone .discover-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: calc(var(--space-5) + var(--safe-top)) var(--space-6) var(--space-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.app-phone .discover-header-copy {
  min-width: 0;
}

.app-phone .discover-scene-context {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  line-height: 1.2;
}

.app-phone .discover-scene-facet-line {
  margin-top: 3px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.35;
}

.app-phone .personas-scene-facet {
  margin: var(--space-1) 0 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.35;
}
.app-phone .personas-held-note {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.app-phone .discover-counter {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.app-phone .discover-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.app-phone .discover-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.app-phone .discover-player-bubble {
  position: absolute;
  z-index: 30;
  top: var(--space-2);
  left: var(--space-2);
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.app-phone .discover-player-bubble:active {
  transform: scale(0.97);
}

.app-phone .discover-player-bubble__avatar {
  position: relative;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--persona-photo-bg);
  border: 2px solid var(--rose);
  box-shadow: 0 0 0 3px var(--rose-dim), var(--shadow);
}

.app-phone .discover-player-bubble__avatar-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-phone .discover-player-bubble__badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  padding: 3px var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-on-accent);
  background: var(--rose);
  border: 0;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
}

.app-phone .discover-player-bubble--locked .discover-player-bubble__avatar {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim), var(--shadow);
}

.app-phone .discover-player-bubble--locked .discover-player-bubble__badge {
  color: var(--bg-base);
  background: var(--gold);
}

.app-phone .discover-player-bubble--empty {
  background: var(--bg-overlay);
  border: 2px dashed var(--border-strong);
  box-shadow: 0 0 0 3px var(--bg-base), var(--shadow);
}

.app-phone .discover-player-bubble__empty-icon {
  color: var(--rose);
  font-family: var(--font-ui);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.app-phone .discover-player-bubble--empty .discover-player-bubble__badge {
  color: var(--text-primary);
  background: var(--bg-card);
}
.app-phone .card-stack {
  flex: 1;
  position: relative;
  padding: var(--space-4) var(--space-4) 0;
  overflow: hidden;
}
.app-phone .card-stack-item {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: top center;
  touch-action: none;
}

.app-phone .card-stack-item.depth-0 {
  transform: translateY(0) scale(1);
  z-index: 10;
  opacity: 1;
}
.app-phone .card-stack-item.dismiss-left {
  transform: translateX(-120%) rotate(-18deg) !important;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.app-phone .card-stack-item.dismiss-right {
  transform: translateX(120%) rotate(18deg) !important;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.app-phone .card-stack-item.is-dragging .swipe-card {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}

.app-phone .card-stack-item.dismiss-star {
  animation: app-discover-star-dismiss 0.34s ease-in forwards;
  pointer-events: none;
}

@keyframes app-discover-star-dismiss {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 0 rgba(240, 180, 64, 0));
  }
  28% {
    transform: scale(1.035);
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(240, 180, 64, 0.68));
  }
  100% {
    transform: translateY(-24%) scale(0.88);
    opacity: 0;
    filter: drop-shadow(0 0 30px rgba(240, 180, 64, 0));
  }
}
.app-phone .card-stack-item .swipe-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.app-phone .card-stack-item .swipe-card-photo {
  aspect-ratio: unset;
  flex: 1;
}
.app-phone .swipe-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-phone .swipe-card-content--scene {
  justify-content: flex-end;
}

.app-phone .swipe-card-scene-presence {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.app-phone .discover-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  text-align: center;
  gap: var(--space-3);
}

.app-phone .discover-empty-icon {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto var(--space-4);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--rose) 28%, transparent));
}

.app-phone .discover-empty-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
}

.app-phone .discover-empty-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

@keyframes app-sheetSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes app-additionalPhotoSpin {
  to { transform: rotate(360deg); }
}
.app-phone .scene-reveal {
  position: fixed;
  inset: 0;
  z-index: 2700;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-5);
  isolation: isolate;
  cursor: pointer;
}

.app-phone .scene-reveal-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 56% at 50% 30%, color-mix(in srgb, var(--rose) 24%, transparent), transparent 68%),
    radial-gradient(ellipse 64% 50% at 74% 82%, var(--violet-dim), transparent 72%),
    linear-gradient(180deg, var(--bg-surface), var(--bg-base));
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-phone .scene-reveal-stage {
  position: relative;
  z-index: 1;
  max-width: 450px;
  text-align: center;
}

.app-phone .scene-reveal-kicker {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
  transition-delay: 40ms;
}
.app-phone .scene-reveal-kicker:empty { display: none; }

.app-phone .scene-reveal-label {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 700;
  line-height: 1.08;
  background: linear-gradient(135deg, #fff2d8, var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 300ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 100ms;
}

.app-phone .scene-reveal-facet {
  margin: 0 auto;
  max-width: 390px;
  font-family: var(--font-display);
  font-size: 20.25px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 300ms ease, transform 320ms ease;
  transition-delay: 220ms;
}
.app-phone .scene-reveal-facet:empty { display: none; }
.app-phone .scene-reveal-note {
  margin: var(--space-4) auto 0;
  max-width: 360px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 320ms ease;
  transition-delay: 340ms;
}

.app-phone .scene-reveal.is-in .scene-reveal-veil { opacity: 1; }
.app-phone .scene-reveal.is-in .scene-reveal-kicker,
.app-phone .scene-reveal.is-in .scene-reveal-label,
.app-phone .scene-reveal.is-in .scene-reveal-facet,
.app-phone .scene-reveal.is-in .scene-reveal-note {
  opacity: 1;
  transform: none;
}
.app-phone .scene-reveal.is-out .scene-reveal-veil {
  opacity: 0;
  transition-duration: 300ms;
}
.app-phone .scene-reveal.is-out .scene-reveal-stage {
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
  transition: opacity 280ms ease, transform 280ms ease;
}
.app-phone .scene-reveal--v2 .scene-reveal-label {
  transform: translateY(-20px);
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 80ms;
}
.app-phone .scene-reveal--v2 .scene-reveal-facet {
  transition-delay: 200ms;
}
.app-phone .scene-reveal--v3 .scene-reveal-kicker {
  transition-delay: 20ms;
}
.app-phone .scene-reveal--v3 .scene-reveal-label {
  transform: translateY(10px) scale(0.93);
  transition-duration: 340ms, 400ms;
  transition-delay: 120ms;
}
.app-phone .scene-reveal--v3 .scene-reveal-facet {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  .app-phone .scene-reveal-veil,
  .app-phone .scene-reveal-stage,
  .app-phone .scene-reveal-kicker,
  .app-phone .scene-reveal-label,
  .app-phone .scene-reveal-facet,
  .app-phone .scene-reveal-note {
    transition-duration: 160ms !important;
    transition-delay: 0ms !important;
    transform: none !important;
  }
}
.app-phone .round-miss .scene-reveal-veil {
  background:
    radial-gradient(ellipse 78% 54% at 50% 32%, var(--violet-dim), transparent 70%),
    radial-gradient(ellipse 60% 48% at 30% 84%, var(--rose-dim), transparent 74%),
    linear-gradient(180deg, var(--bg-surface), var(--bg-base));
}
.app-phone .round-miss .scene-reveal-kicker {
  color: var(--violet);
}
.app-phone .round-miss .scene-reveal-facet {
  color: var(--text-secondary);
  font-size: 20.25px;
}
.app-phone .match-overlay--gold .match-overlay-card {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.app-phone .match-overlay--gold .match-title {
  background: linear-gradient(135deg, #fff2d8, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-phone .match-overlay--gold .match-heart { color: var(--gold); }
.app-phone .match-overlay--double-gold .match-overlay-card {
  box-shadow: 0 6px 24px var(--gold-dim);
}
.app-phone .match-persona-photo--gold {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim), 0 0 14px var(--gold-glow);
}
.app-phone .match-story-knows {
  margin: var(--space-3) 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15.75px;
  font-style: italic;
  line-height: 1.4;
  color: var(--gold);
}
.app-phone .conversation-director-btn {
  margin-bottom: var(--space-2);
}

.app-phone .conversation-director-panel {
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  margin: 0 var(--space-3) var(--space-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.app-phone .conversation-director-move {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: var(--space-3);
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
}

.app-phone .conversation-director-move:hover,
.app-phone .conversation-director-move:focus-visible {
  background: var(--bg-hover);
  border-color: var(--rose);
}

.app-phone .conversation-director-move-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-phone .conversation-director-move-draft {
  font-size: 15px;
  line-height: 1.45;
}
.app-phone .conversation-director-stale {
  margin: 0;
  font-size: 12px;
  color: var(--gold);
}
.app-phone .conversation-director-dismiss {
  align-self: flex-start;
}

