@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Marck+Script&display=swap');

:root {
  --bg: #faf9f4;
  --ink: #1b1c19;
  --muted: #494552;
  --soft: #efeee9;
  --line: #cac4d4;
  --surface: #ffffff;
  --surface-2: #f5f4ef;
  --avatar-marker-bg: var(--surface-2);

  /* Material You фиолетово-мятная палитра (rendez.zip AI Studio).
     Старые имена --coral/--teal сохранены для совместимости с
     существующими стилями, но указывают на новые цвета. */
  --primary: #674bb5;
  --primary-container: #a78bfa;
  --primary-dark: #3c1989;
  --secondary: #006b5f;
  --secondary-container: #62fae3;
  --tertiary: #6f5092;
  --tertiary-fixed: #efdbff;
  --on-tertiary-fixed: #29074a;

  --coral: #674bb5;         /* primary → фиолет */
  --coral-dark: #3c1989;
  --teal: #006b5f;          /* secondary → изумруд */
  --mint: #d6fff5;          /* мятный для accent-фонов */

  /* НАШ Gold — оставлен как есть, лучше чем у них в Premium hero */
  --gold: #c9902d;
  --gold-soft: #fbefd4;

  --blue: #2870c8;
  --danger: #ba1a1a;
  --danger-soft: #ffedea;
  --super-like: #e0457a;
  --super-like-soft: #ffe7f0;
  --scrollbar-thumb: rgba(103, 75, 181, 0.62);
  --scrollbar-track: rgba(239, 219, 255, 0.28);
  --shadow: 0 24px 70px rgba(40, 35, 28, 0.16);
  --ambient-shadow: 0 12px 32px rgba(103, 75, 181, 0.08);
  --icon-soft-border: rgba(103, 75, 181, 0.24);
  --icon-soft-shadow: 0 4px 10px rgba(103, 75, 181, 0.08);
  --radius: 8px;
  font-family:
    Manrope, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(103, 75, 181, 0.10), transparent 34%),
    linear-gradient(220deg, rgba(98, 250, 227, 0.12), transparent 38%),
    var(--bg);
}

html.native-app,
html.native-app body {
  --native-keyboard-inset: 0px;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--surface-2);
}

html.native-app .lab-toggle-btn,
html.native-app .review-panel {
  display: none !important;
}

html.native-app .workspace {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

html.native-app .phone-stage {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0;
}

html.native-app .device {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.native-app .device::before {
  display: none;
}

html.native-app .status-bar {
  display: none !important;
}

html.native-app .app-screen {
  inset: 0 0 68px;
}

html.native-app .device[data-screen="chat"] #screen-chat {
  inset: 0 0 var(--native-keyboard-inset, 0px);
}

html.native-app .device[data-screen="onboarding"] #screen-onboarding {
  inset: 0;
}

html.native-app .device[data-screen="onboarding"] .bottom-nav {
  display: none;
}

html.native-app .app-screen,
html.native-app .onboarding-body,
html.native-app .profile-editor,
html.native-app .settings-list,
html.native-app .settings-page,
html.native-app .plan-list,
html.native-app .blind-body,
html.native-app .chat-list,
html.native-app .message-thread,
html.native-app .sheet-panel,
html.native-app .profile-preview-panel,
html.native-app .city-options,
html.native-app #accountSheetBody {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.native-app .app-screen::-webkit-scrollbar,
html.native-app .onboarding-body::-webkit-scrollbar,
html.native-app .profile-editor::-webkit-scrollbar,
html.native-app .settings-list::-webkit-scrollbar,
html.native-app .settings-page::-webkit-scrollbar,
html.native-app .plan-list::-webkit-scrollbar,
html.native-app .blind-body::-webkit-scrollbar,
html.native-app .chat-list::-webkit-scrollbar,
html.native-app .message-thread::-webkit-scrollbar,
html.native-app .sheet-panel::-webkit-scrollbar,
html.native-app .profile-preview-panel::-webkit-scrollbar,
html.native-app .city-options::-webkit-scrollbar,
html.native-app #accountSheetBody::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html.native-app .bottom-nav {
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(103, 75, 181, 0.28);
  outline-offset: 2px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.review-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
  min-height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(40, 35, 28, 0.08);
  backdrop-filter: blur(18px);
}

.lab-close-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  z-index: 2;
}

.lab-close-btn svg {
  width: 18px;
  height: 18px;
}

.lab-toggle-btn {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 32px rgba(20, 20, 18, 0.32);
}

.lab-toggle-btn[aria-pressed="true"] {
  background: var(--coral);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.logo-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--coral), #ff8b57);
}

.brand-row h1,
.brand-row p,
.panel-heading h2,
.panel-heading p,
.reference-summary h2 {
  margin: 0;
}

.brand-row h1 {
  font-size: 19px;
}

.brand-row p,
.panel-heading p {
  color: var(--muted);
  font-size: 13px;
}

.screen-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.screen-chip,
.filter-pill,
.choice-card,
.interest-grid button,
.segmented button,
.opener-row button,
.plan-card,
.mode-toggle,
.export-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.screen-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  font-size: 14px;
}

.screen-chip svg,
.filter-pill svg,
.mode-toggle svg,
.export-button svg {
  width: 17px;
  height: 17px;
}

.screen-chip.is-active,
.filter-pill.is-on,
.choice-card.is-selected,
.interest-grid button.is-selected,
.segmented button.is-selected,
.plan-card.is-selected {
  border-color: rgba(103, 75, 181, 0.42);
  background: linear-gradient(135deg, rgba(239, 219, 255, 0.92), rgba(255, 255, 255, 0.86));
  color: var(--coral-dark);
}

.review-tools,
.reference-summary {
  padding: 14px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 10px;
  background: rgba(250, 248, 243, 0.74);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading h2,
.reference-summary h2 {
  font-size: 16px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(29, 25, 20, 0.08);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.icon-button.ghost {
  background: transparent;
  box-shadow: none;
}

/* Стрелки «назад» и нав-иконки в топбарах/шит-хедерах — фиолетовые (эталон .chat-back-button).
   Базовый .icon-button = color:var(--ink) (чёрный), .ghost цвет не меняет → без этого
   правила стрелка «назад» чёрная (был баг: onboarding/settings/safety/premium/inbox/profile,
   плюс «Настройки сообщений»/«Премиум»). Pv-back на фото остаётся белым (свой класс). */
.app-topbar .icon-button.ghost,
.icon-button.ghost[aria-label="Назад"] {
  color: var(--primary);
}

.mode-toggle,
.export-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 700;
}

.mode-toggle.is-on {
  border-color: rgba(13, 159, 140, 0.48);
  background: var(--mint);
  color: #087564;
}

.annotation-compose {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.annotation-compose label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.annotation-compose textarea,
.editor-block textarea,
.editor-block input,
.editor-block select,
.composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.annotation-compose textarea {
  resize: vertical;
  min-height: 82px;
  padding: 10px;
}

.annotation-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  margin: 12px 0 0;
  padding-left: 22px;
  overflow: auto;
}

.annotation-list li {
  padding: 8px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: var(--radius);
  background: white;
  font-size: 13px;
}

.annotation-list strong {
  display: block;
  margin-bottom: 4px;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.module-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.phone-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(100vh - 36px);
  min-width: 0;
}

.device {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 24px));
  height: min(840px, calc(100vh - 24px));
  min-height: 0;
  overflow: hidden;
  border: 10px solid #171715;
  border-radius: 34px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  flex: 0 0 32px;
  padding: 0 20px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  background: rgba(250, 248, 243, 0.92);
  z-index: 8;
}

.status-icons {
  display: flex;
  gap: 7px;
}

.status-icons svg {
  width: 14px;
  height: 14px;
}

.auth-screen {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  overflow: hidden;
  padding: 58px 24px 34px;
  background:
    linear-gradient(145deg, rgba(255, 40, 115, 0.96) 0%, rgba(255, 52, 95, 0.98) 46%, rgba(255, 91, 49, 0.98) 100%),
    #ff336f;
  color: white;
}

.auth-screen-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 560px);
  height: 100%;
  justify-self: center;
  text-align: center;
}

.auth-screen h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-legal {
  max-width: 520px;
  margin: auto 0 28px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 19px;
  line-height: 1.42;
  font-weight: 900;
}

.auth-legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.auth-actions {
  display: grid;
  gap: 16px;
  width: 100%;
}

.auth-actions button {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  min-height: 74px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #202124;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 16px 28px rgba(118, 18, 48, 0.12);
}

.auth-actions button span:last-child {
  grid-column: 2;
  justify-self: center;
}

.auth-actions svg,
.auth-google-mark {
  grid-column: 1;
  justify-self: start;
  width: 28px;
  height: 28px;
}

.auth-google-mark {
  display: inline-grid;
  place-items: center;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 900;
}

.auth-help {
  margin-top: 34px;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
}

@media (max-width: 460px) {
  .auth-screen {
    padding: 48px 20px 28px;
  }

  .auth-screen h1 {
    font-size: 37px;
  }

  .auth-legal {
    margin-bottom: 24px;
    font-size: 17px;
  }

  .auth-actions button {
    min-height: 66px;
    font-size: 20px;
  }

  .auth-help {
    margin-top: 28px;
    font-size: 20px;
  }
}

@media (max-height: 720px) {
  .auth-screen {
    padding: 38px 22px 24px;
  }

  .auth-screen h1 {
    font-size: 34px;
  }

  .auth-legal {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.34;
  }

  .auth-actions {
    gap: 11px;
  }

  .auth-actions button {
    min-height: 56px;
    font-size: 18px;
  }

  .auth-actions svg,
  .auth-google-mark {
    width: 24px;
    height: 24px;
  }

  .auth-help {
    margin-top: 18px;
    font-size: 18px;
  }
}

.app-screen {
  position: absolute;
  inset: 32px 0 68px;
  display: none;
  flex-direction: column;
  min-height: 0;
  background: var(--surface-2);
}

.app-screen.is-active {
  display: flex;
}

.is-hidden {
  display: none !important;
}

.device[data-screen="chat"] #screen-chat {
  inset: 32px 0 0;
}

.device[data-screen="chat"] .bottom-nav {
  display: none;
}

.app-topbar,
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 12px 14px 8px;
}

.app-topbar.simple {
  justify-content: flex-start;
}

.app-topbar.discover-topbar {
  justify-content: center;
  padding-bottom: 6px;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 900;
}

.app-logo .logo-symbol {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.screen-title {
  display: grid;
  gap: 1px;
  margin-right: auto;
}

.screen-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.screen-title strong {
  font-size: 19px;
}

.filter-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 0 14px 6px;
}

.filter-caption span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-caption button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.filter-caption svg {
  width: 15px;
  height: 15px;
}

.quick-filter-row {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-filter-row::-webkit-scrollbar,
.opener-row::-webkit-scrollbar,
.match-status-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.drop-dashboard {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  flex: 0 0 auto;
  margin: 0 14px 10px;
  padding: 10px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 12px;
  background: white;
}

.drop-dashboard span,
.drop-dashboard p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.drop-dashboard strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.drop-dashboard p {
  margin: 4px 0 0;
  text-transform: none;
}

.secondary-button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(13, 159, 140, 0.26);
  border-radius: var(--radius);
  background: var(--mint);
  color: #087564;
  font-size: 13px;
  font-weight: 900;
}

.secondary-button svg {
  width: 17px;
  height: 17px;
}

.card-stack {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 14px;
}

.profile-card {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #d7d0c5;
  box-shadow: 0 20px 48px rgba(33, 28, 22, 0.18);
  transform-origin: center bottom;
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 220ms ease;
  will-change: transform;
}

.profile-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.profile-card.is-like {
  transform: translateX(28px) rotate(3deg);
}

.profile-card.is-nope {
  transform: translateX(-28px) rotate(-3deg);
}

.profile-card.is-flying-right {
  transition: transform 320ms cubic-bezier(0.4, 0.0, 0.6, 1), opacity 320ms ease;
  transform: translate(140%, -20%) rotate(28deg);
  opacity: 0;
  pointer-events: none;
}

.profile-card.is-flying-left {
  transition: transform 320ms cubic-bezier(0.4, 0.0, 0.6, 1), opacity 320ms ease;
  transform: translate(-140%, -20%) rotate(-28deg);
  opacity: 0;
  pointer-events: none;
}

.profile-card.is-flying-up {
  transition: transform 360ms cubic-bezier(0.4, 0.0, 0.6, 1), opacity 320ms ease;
  transform: translate(0, -140%) rotate(-6deg) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

.profile-card.is-entering-left {
  transition: none;
  transform: translateX(-40px) rotate(-2deg);
  opacity: 0;
}

.profile-card.is-entering-right {
  transition: none;
  transform: translateX(40px) rotate(2deg);
  opacity: 0;
}

.profile-card.is-entering-active {
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 240ms ease;
  transform: translateX(0) rotate(0);
  opacity: 1;
}

.swipe-stamp {
  position: absolute;
  top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 3px solid currentColor;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 80ms ease;
}

.swipe-stamp.like {
  left: 22px;
  color: var(--primary);
  background: rgba(239, 219, 255, 0.82);
  transform: rotate(14deg);
}

.swipe-stamp.nope {
  right: 22px;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger-soft) 86%, white);
  transform: rotate(-14deg);
}

.profile-card.is-dragging .swipe-stamp.like[data-show="1"],
.profile-card.is-dragging .swipe-stamp.nope[data-show="1"] {
  opacity: 1;
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Полоска фото на карточке ленты убрана — фото листаются в раскрытом профиле */
.photo-strip {
  display: none;
}

.photo-strip span {
  height: 4px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.42);
}

.photo-strip span.is-active {
  background: rgba(167, 139, 250, 0.96);
  box-shadow: 0 0 10px rgba(103, 75, 181, 0.38);
}

.card-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 26%),
    linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.76));
}

.card-badges {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.card-badges span,
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: white;
  background: rgba(20, 20, 18, 0.44);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

.verify-badge svg {
  width: 14px;
  height: 14px;
  color: #4ee3c8;
}

/* Премиум-чип статуса на карточке (Diamond / Plus) — правый верхний угол, ниже полосок */
.premium-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.premium-chip.is-hidden { display: none; }
.premium-chip svg { width: 13px; height: 13px; }

/* Plus — фирменный фиолетовый, почти прозрачный */
.premium-chip.tier-plus {
  background: linear-gradient(135deg, rgba(122, 92, 240, 0.2), rgba(103, 75, 181, 0.2));
  box-shadow: 0 2px 8px rgba(103, 75, 181, 0.12), 0 0 0 1px rgba(239, 219, 255, 0.22) inset;
  gap: 1px;
}
.premium-chip.tier-plus svg { color: #efdbff; stroke-width: 3.2; }

/* Diamond — ледяной градиент, почти прозрачный + лёгкое свечение */
.premium-chip.tier-diamond {
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.2) 0%, rgba(43, 111, 196, 0.2) 50%, rgba(27, 58, 114, 0.22) 100%);
  box-shadow: 0 2px 8px rgba(30, 90, 190, 0.14), 0 0 0 1px rgba(183, 230, 255, 0.35) inset;
}
.premium-chip.tier-diamond svg { color: #d7f2ff; }

.card-info-button {
  position: absolute;
  right: 14px;
  top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
  z-index: 5;
}

.card-info-button svg {
  width: 15px;
  height: 15px;
}

.card-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: white;
  z-index: 4;
}

.card-copy h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1;
}

.card-copy p {
  margin: 0;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.38;
}

.card-intersections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-width: 34ch;
}

.card-intersections span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
}

.card-intersections .is-more {
  padding-inline: 9px;
  min-width: 24px;
  justify-content: center;
}

/* Ненавязчивый бейдж намерения рядом с именем */
.intent-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  /* цвет/фон задаются инлайн из INTENT_STYLE */
}
.intent-badge.is-hidden { display: none; }

/* Промпт в карточке */
.card-prompt {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(20, 20, 18, 0.38);
  backdrop-filter: blur(8px);
  border-left: 2px solid rgba(255, 255, 255, 0.5);
}
.card-prompt.is-hidden { display: none; }
.card-prompt-q {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}
.card-prompt-a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* Музыка — ссылка на Яндекс.Музыку */
.card-music {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  max-width: 100%;
  transition: background 0.15s;
}
.card-music.is-hidden { display: none; }
.card-music:active { background: rgba(255, 255, 255, 0.3); }
.card-music svg { width: 15px; height: 15px; flex-shrink: 0; color: #ffd24d; }
.card-music span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Алмазный блеск на карточке Diamond-профиля */
.card-diamond-shine {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  display: none;
}
.card-diamond-shine.is-active { display: block; }

/* Угол conic-градиента рамки — анимируем через @property, чтобы палитра
   «бежала» по контуру, не меняя цвета (без hue-rotate = без радуги). */
@property --diamond-frame-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Diamond-рамка — спокойное «алмазное» мерцание: белый → серый → лёгкий голубой
   → фиолетовый, бегущее по контуру. Палитра не меняется (это не радуга). */
.profile-card.is-diamond-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(
    from var(--diamond-frame-angle),
    #ffffff, #dde2ec, #b3c2e2, #cbbcf3, #ffffff, #c4d3ef, #aebcdd, #ffffff
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: brightness(1.04);
  animation: cardDiamondFrameSpin 6.5s linear infinite;
}
@keyframes cardDiamondFrameSpin {
  to { --diamond-frame-angle: 360deg; }
}

/* Boost-рамка — радужный перелив (бывший diamond-эффект). Аккаунт юзнул
   Турбо-режим: 24ч он первым попадается у тех, кто лайкает. */
.profile-card.is-boost-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(
    from 0deg,
    #ff5a8a, #ffb347, #ffe66d, #62fae3, #5b8dff, #a78bfa, #ff5a8a
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: saturate(1.25);
  animation: cardBoostFrameHue 4s linear infinite;
}
@keyframes cardBoostFrameHue {
  to { filter: saturate(1.25) hue-rotate(360deg); }
}

/* СЛОЙ 1 — мягкий диагональный блик по поверхности (еле заметный) */
.cds-glare {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    62deg,
    transparent 38%,
    rgba(255, 255, 255, 0.05) 47%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 53%,
    transparent 62%
  );
  mix-blend-mode: screen;
  filter: blur(8px);
  transform: translate(-115%, 115%);
  will-change: transform;
  animation: cdsGlareSweep 5s ease-in-out infinite;
}
@keyframes cdsGlareSweep {
  0% { transform: translate(-115%, 115%); }
  40%, 100% { transform: translate(115%, -115%); }
}

/* СЛОЙ 2 — светящаяся ТОЧКА бежит по контуру через offset-path */
.cds-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(200, 240, 255, 0.9) 45%, rgba(140, 200, 255, 0) 72%);
  filter: drop-shadow(0 0 5px rgba(210, 248, 255, 1)) drop-shadow(0 0 10px rgba(130, 200, 255, 0.85));
  offset-path: border-box;
  offset-rotate: 0deg;
  offset-anchor: center;
  opacity: 0;
}
/* Проценты считаются в JS под текущий размер карточки (radius фиксирован, карточка резиновая)
   → --cds-bl середина нижне-левого угла, --cds-tr верхне-правого, --cds-tr2 = tr+100 (для обхода через левую грань+верх) */
.cds-dot-a { animation: cdsDotA 5s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
.cds-dot-b { animation: cdsDotB 5s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
/* A: из точки BL по низу → правой грани вверх в точку TR */
@keyframes cdsDotA {
  0%   { offset-distance: var(--cds-bl, 66.5%); opacity: 0; transform: scale(0.1); }
  7%   { opacity: 1; transform: scale(1); }
  46%  { offset-distance: var(--cds-tr, 16.5%); opacity: 1; transform: scale(1); }
  53%  { offset-distance: var(--cds-tr, 16.5%); opacity: 0; transform: scale(0.1); }
  100% { offset-distance: var(--cds-tr, 16.5%); opacity: 0; }
}
/* B: из точки BL по левой грани вверх → по верху в точку TR (tr+100 ≡ tr) */
@keyframes cdsDotB {
  0%   { offset-distance: var(--cds-bl, 66.5%); opacity: 0; transform: scale(0.1); }
  7%   { opacity: 1; transform: scale(1); }
  46%  { offset-distance: var(--cds-tr2, 116.5%); opacity: 1; transform: scale(1); }
  53%  { offset-distance: var(--cds-tr2, 116.5%); opacity: 0; transform: scale(0.1); }
  100% { offset-distance: var(--cds-tr2, 116.5%); opacity: 0; }
}

/* СЛОЙ 3 — звёздочка-вспышка ровно в точке схода (16.5% = середина верхне-правого угла) */
.cds-star {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  offset-path: border-box;
  offset-rotate: 0deg;
  offset-anchor: center;
  offset-distance: var(--cds-tr, 16.5%);
  opacity: 0;
  transform: scale(0) rotate(-25deg);
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(210, 245, 255, 1)) drop-shadow(0 0 12px rgba(140, 205, 255, 0.7));
  animation: cdsStarPop 5s ease-in-out infinite;
}
.cds-star svg { width: 100%; height: 100%; fill: #ffffff; }
@keyframes cdsStarPop {
  0%, 42% { opacity: 0; transform: scale(0) rotate(-25deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(0deg); }
  58% { opacity: 0.95; transform: scale(0.95) rotate(6deg); }
  70%, 100% { opacity: 0; transform: scale(0.2) rotate(16deg); }
}

.gamepad {
  --action-compact-size: 42px;
  --action-main-size: 60px;
  display: grid;
  grid-template-columns:
    var(--action-compact-size)
    var(--action-main-size)
    var(--action-main-size)
    var(--action-compact-size);
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 76px;
  padding: 14px 14px 8px;
}

.action-button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  background: white;
  box-shadow: 0 10px 28px rgba(32, 29, 24, 0.14);
}

.action-button svg {
  width: 21px;
  height: 21px;
}

/* Рамка каждой кнопки = цвет её значка (белый фон у всех, без фиолетового). */
.action-button.rewind {
  border: 1.5px solid var(--secondary);
}
.action-button.rewind svg {
  color: var(--secondary);
}

.action-button.nope {
  border: 1.5px solid var(--danger);
}
.action-button.nope svg {
  color: var(--danger);
  stroke-width: 3.1;
}

.action-button.like {
  background: #fff;
  border: 1.5px solid var(--primary);
}
.action-button.like svg {
  color: var(--primary);
  fill: none;
  stroke-width: 2.8;
}

.action-button.super {
  position: relative;
  transform-origin: center;
  background: white;
  border: 1.5px solid var(--super-like);
  box-shadow:
    0 8px 18px rgba(224, 69, 122, 0.14),
    0 0 0 0 rgba(224, 69, 122, 0.18);
  animation: superLikePulse 1.65s ease-in-out infinite;
}
.action-button.super svg {
  color: var(--super-like);
  fill: none;
  stroke-width: 2.8;
  transform-origin: center;
}

/* Бейдж с числом доступных супер-лайков на кнопке-сердце. */
.action-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a90d9, #2b6fc4);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(43, 111, 196, 0.4);
}

/* Когда супер-лайков нет — тап ведёт в магазин, но кнопка остаётся заметной. */
.action-button.super.is-depleted svg {
  color: var(--super-like);
  opacity: 0.7;
}

@keyframes superLikePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 8px 18px rgba(224, 69, 122, 0.14),
      0 0 0 0 rgba(224, 69, 122, 0.18);
  }
  50% {
    transform: scale(1.025);
    box-shadow:
      0 10px 22px rgba(224, 69, 122, 0.2),
      0 0 0 6px rgba(224, 69, 122, 0);
  }
}

.action-button.boost svg {
  color: var(--teal);
}

.bottom-nav {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 56px;
  padding: 3px 16px 6px;
  border-top: 1px solid rgba(21, 21, 20, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  z-index: 8;
}

.bottom-nav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  padding: 0;
}

.bottom-nav button span {
  line-height: 1;
}

.bottom-nav .nav-icon-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
}

.bottom-nav .nav-unread-badge {
  position: absolute;
  right: -8px;
  bottom: -2px;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(103, 75, 181, 0.24);
}

.bottom-nav .nav-unread-badge[hidden] {
  display: none;
}

.bottom-nav button.is-active {
  color: var(--coral);
}

.bottom-nav svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.75;
}

.progress-line {
  height: 6px;
  margin: 4px 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--teal));
}

.onboarding-body,
.profile-editor,
.settings-list,
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow: auto;
}

.step-panel,
.editor-block,
.premium-hero {
  padding: 16px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 12px;
  background: white;
}

.step-panel h2,
.premium-hero h2 {
  margin: 6px 0 14px;
  font-size: 24px;
  line-height: 1.1;
}

.step-panel.compact h3,
.block-title h3 {
  margin: 0;
  font-size: 16px;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-card {
  display: grid;
  gap: 10px;
  min-height: 92px;
  padding: 12px;
  text-align: left;
  font-weight: 900;
}

.choice-card svg {
  width: 24px;
  height: 24px;
}

.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.interest-grid button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 800;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #7a5cf0, #674bb5);
  color: white;
  font-weight: 900;
}

.primary-button svg {
  width: 18px;
  height: 18px;
}

.blind-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow: auto;
}

.blind-hero,
.blind-card {
  padding: 16px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 12px;
  background: white;
}

.blind-avatar-row {
  display: flex;
  margin-bottom: 14px;
}

.blind-hero.compact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.blind-hero.compact .blind-avatar-row {
  margin-bottom: 0;
}

.blind-hero.compact .blind-avatar {
  width: 56px;
  height: 56px;
}

.blind-avatar {
  width: 72px;
  height: 72px;
  border: 4px solid white;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(21, 21, 20, 0.14);
  transition: filter 180ms ease, transform 180ms ease;
}

.blind-avatar + .blind-avatar {
  margin-left: -18px;
}

.blind-avatar.is-blurred {
  filter: blur(8px) saturate(0.5);
  transform: scale(0.96);
}

.blind-hero h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.08;
}

.blind-hero p,
.blind-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
}

.blind-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.blind-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.blind-thread {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.reveal-state {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-2);
}

.reveal-state.is-waiting {
  background: var(--gold-soft);
  color: #775314;
}

.reveal-state.is-done {
  background: var(--mint);
  color: #087564;
}

.match-strip {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px 16px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
}

.match-strip.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.match-strip::-webkit-scrollbar {
  display: none;
}

.match-strip-more {
  position: sticky;
  right: 0;
  z-index: 2;
  align-self: center;
  flex: 0 0 34px;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -2px;
  border-radius: 999px;
  background: rgba(239, 219, 255, 0.92);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(103, 75, 181, 0.26);
  pointer-events: none;
  animation: matchMorePulse 1.15s ease-in-out infinite;
}

.match-strip.has-overflow:not(.is-at-end) .match-strip-more {
  display: grid;
}

.match-strip-more svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}

@keyframes matchMorePulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.72;
  }

  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

.match-avatar {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 68px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.match-avatar img,
.chat-row img,
.chat-header img,
.avatar-frame {
  border-radius: 999px;
  object-fit: cover;
}

.avatar-frame {
  --avatar-ring: 1.5px;
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}

.avatar-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: var(--primary);
  pointer-events: none;
}

.avatar-frame img {
  display: block;
  position: absolute;
  inset: var(--avatar-ring);
  z-index: 1;
  width: calc(100% - (var(--avatar-ring) * 2));
  height: calc(100% - (var(--avatar-ring) * 2));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.avatar-badge-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
}

.match-avatar-photo,
.match-avatar.blurred {
  width: 64px;
  height: 64px;
}

.match-avatar-photo {
  padding: 0;
}

.match-avatar.has-ring img {
  padding: 3px;
  border: 2px solid var(--coral);
}

.match-avatar.liked-me .match-avatar-photo {
  background: transparent;
}

.match-avatar.is-diamond-card .avatar-frame,
.chat-row.is-diamond-card .avatar-frame,
.chat-header-profile.is-diamond-card .avatar-frame {
  --avatar-ring: 3px;
}

.match-avatar.is-boost-card .avatar-frame,
.chat-row.is-boost-card .avatar-frame,
.chat-header-profile.is-boost-card .avatar-frame {
  --avatar-ring: 1px;
}

.match-avatar.is-diamond-card .avatar-frame::before,
.chat-row.is-diamond-card .avatar-frame::before,
.chat-header-profile.is-diamond-card .avatar-frame::before {
  background: conic-gradient(from var(--diamond-frame-angle), #fff, #d7f2ff, #aebcdd, #cbbcf3, #fff);
  animation: cardDiamondFrameSpin 6.5s linear infinite;
}

.match-avatar.is-boost-card .avatar-frame::before,
.chat-row.is-boost-card .avatar-frame::before,
.chat-header-profile.is-boost-card .avatar-frame::before {
  background: conic-gradient(from 0deg, #ff5a8a, #ffb347, #ffe66d, #62fae3, #5b8dff, #a78bfa, #ff5a8a);
  animation: cardBoostFrameHue 4s linear infinite;
}

.avatar-badge-wrap .like-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 4;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--avatar-marker-bg);
  color: var(--primary);
  box-shadow: none;
}

.avatar-badge-wrap .like-badge.is-super {
  color: var(--super-like);
  animation: superLikeAvatarPulse 1.65s ease-in-out infinite;
}

.avatar-badge-wrap .like-badge.is-regular {
  animation: none;
}

.avatar-badge-wrap .like-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
  filter:
    drop-shadow(0 -1px 0 var(--avatar-marker-bg))
    drop-shadow(1px 0 0 var(--avatar-marker-bg))
    drop-shadow(0 1px 0 var(--avatar-marker-bg))
    drop-shadow(-1px 0 0 var(--avatar-marker-bg));
}

.avatar-badge-wrap .like-badge.is-regular svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
}

.avatar-badge-wrap .like-badge.is-super svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  animation: superLikeAvatarIconPulse 1.65s ease-in-out infinite;
}

.avatar-online-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 5;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--avatar-marker-bg);
  box-shadow: 0 2px 6px rgba(103, 75, 181, 0.16);
}

.avatar-online-dot::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: inherit;
  background: var(--primary);
  box-shadow: 0 0 0 1.5px rgba(103, 75, 181, 0.16), 0 0 6px rgba(103, 75, 181, 0.22);
}

.avatar-tier-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 0;
  background: transparent;
  color: #cfeeff;
  filter: drop-shadow(0 1px 1px rgba(27, 77, 122, 0.48)) drop-shadow(0 0 1px rgba(27, 77, 122, 0.22));
}

.avatar-tier-badge svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.05;
}

.avatar-tier-badge.is-diamond svg {
  animation: diamondBadgeShimmer 5.2s ease-in-out infinite;
}

.avatar-badge-wrap .avatar-tier-badge {
  top: -4px;
  right: 9px;
}

@keyframes diamondBadgeShimmer {
  0%,
  100% {
    color: #cfeeff;
    filter: drop-shadow(0 1px 1px rgba(27, 77, 122, 0.42));
    opacity: 0.86;
  }

  46% {
    color: #edfaff;
    filter:
      drop-shadow(0 1px 1px rgba(27, 77, 122, 0.34))
      drop-shadow(0 0 2px rgba(215, 242, 255, 0.34));
    opacity: 0.96;
  }

  64% {
    color: #bfebff;
  }
}

@keyframes superLikeAvatarPulse {
  0%,
  100% {
    transform: scale(1);
  }

  48% {
    transform: scale(1.18);
  }
}

@keyframes superLikeAvatarIconPulse {
  0%,
  100% { transform: scale(1); }
  48% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-tier-badge.is-diamond svg,
  .avatar-badge-wrap .like-badge,
  .avatar-badge-wrap .like-badge svg,
  .match-strip-more,
  .spark-sheet.is-open .sheet-panel,
  .photo-setup-sheet.is-open .photo-setup-panel,
  .profile-preview-panel {
    animation: none;
  }

  .photo-sandwich .sandwich-card {
    transition: none;
  }
}

.match-avatar.blurred {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, rgba(255, 90, 88, 0.86), rgba(13, 159, 140, 0.78));
}

.match-avatar.blurred span {
  font-size: 20px;
  line-height: 1;
}

.match-avatar.blurred small {
  margin-top: -18px;
  font-size: 10px;
}

.chat-list {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 16px 16px;
  overflow: auto;
}

.chat-row {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 10px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 12px;
  background: white;
  text-align: left;
}

.chat-row img {
  width: calc(100% - (var(--avatar-ring) * 2));
  height: calc(100% - (var(--avatar-ring) * 2));
}

.chat-row-avatar {
  width: 64px;
  height: 64px;
  padding: 0;
  box-shadow: none;
}

.chat-row > div {
  min-width: 0;
}

.chat-row strong {
  display: block;
  font-size: 15px;
}

.chat-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.chat-row time {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  color: var(--muted);
  font-size: 12px;
}

.chat-row.unread {
  border-color: rgba(103, 75, 181, 0.42);
  background: rgba(239, 219, 255, 0.22);
}

.unread-count {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-top: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(103, 75, 181, 0.24);
}

.chat-header {
  justify-content: flex-start;
  border-bottom: 1px solid rgba(202, 196, 212, 0.36);
  background: rgba(250, 249, 244, 0.96);
  backdrop-filter: blur(12px);
}

.chat-header img {
  width: 42px;
  height: 42px;
  padding: 1px;
  border: 1px solid rgba(103, 75, 181, 0.52);
  background: white;
  box-shadow: 0 0 0 2px rgba(239, 219, 255, 0.42);
}

.chat-header-avatar-wrap {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
}

.chat-header-avatar-frame {
  --avatar-ring: 2px;
  width: 46px;
  height: 46px;
}

.chat-header-profile.is-diamond-card .chat-header-avatar-frame {
  --avatar-ring: 2px;
}

.chat-header .chat-header-avatar-frame img {
  width: calc(100% - (var(--avatar-ring) * 2));
  height: calc(100% - (var(--avatar-ring) * 2));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.chat-header .chat-header-avatar-wrap .avatar-tier-badge {
  top: -2px;
  right: 2px;
  width: 13px;
  height: 13px;
  color: #d7f2ff;
  font-size: 0;
  font-weight: 400;
  line-height: 1;
}

.chat-header .chat-header-avatar-wrap .avatar-tier-badge svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.chat-header-profile:active {
  transform: scale(0.99);
}

.chat-header .chat-header-meta {
  display: grid;
  gap: 2px;
  margin-right: auto;
  min-width: 0;
}

.chat-header span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.chat-header .chat-last-seen {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
}

.chat-header .chat-last-seen.is-online {
  color: var(--primary);
  font-weight: 800;
}

.chat-menu-button,
.chat-back-button {
  color: var(--primary);
}

.icon-button.ghost.chat-menu-button,
.icon-button.ghost.chat-back-button {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.date-ready-banner,
.chat-context-card {
  display: flex;
  gap: 10px;
  margin: 8px 14px;
  padding: 12px;
  border: 1px solid rgba(13, 159, 140, 0.18);
  border-radius: 12px;
  background: var(--mint);
}

.date-ready-banner svg,
.chat-context-card > svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.date-ready-banner strong,
.chat-context-card strong {
  font-size: 13px;
}

.date-ready-banner p,
.chat-context-card p {
  margin: 3px 0 0;
  color: #26796e;
  font-size: 12px;
}

.chat-context-card {
  align-items: center;
  margin-top: 4px;
}

.chat-context-card div {
  min-width: 0;
  flex: 1;
}

.chat-context-card button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(13, 159, 140, 0.25);
  border-radius: 999px;
  background: white;
  color: #087564;
  font-size: 12px;
  font-weight: 900;
}

.match-status-row {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 14px 4px;
  overflow-x: auto;
}

.match-status-row span {
  min-width: max-content;
  padding: 7px 9px;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.match-status-row span.is-active {
  background: rgba(239, 219, 255, 0.55);
  color: var(--coral-dark);
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 14px;
  background: #ffffff;
  overflow: auto;
}

.bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.35;
}

.bubble:not(.voice-bubble) {
  display: grid;
  gap: 5px;
}

.bubble.outbound {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.message-text {
  min-width: 0;
}

.message-status {
  display: inline-flex;
  align-items: center;
  min-width: 16px;
  height: 12px;
  color: rgba(103, 75, 181, 0.58);
}

.message-status.is-read {
  color: var(--primary);
}

.message-status svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}

.message-status svg + svg {
  margin-left: -7px;
}

.message-meta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 5px;
  min-height: 13px;
  color: rgba(73, 69, 82, 0.78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.bubble.outbound .message-meta {
  color: rgba(103, 75, 181, 0.72);
}

.message-time {
  color: currentColor;
  font-size: 10px;
}

.bubble.inbound {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: white;
}

.bubble.outbound {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--coral);
  color: white;
}

.system-note {
  align-self: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(21, 21, 20, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.blitz-accepted-note {
  background: transparent;
  color: rgba(73, 69, 82, 0.72);
  font-style: italic;
  font-weight: 650;
}

.blitz-question-note {
  align-self: center;
  max-width: 92%;
  margin: 14px auto;
  padding: 3px 0;
  color: rgba(73, 69, 82, 0.76);
  font-style: italic;
  font-weight: 650;
  text-align: center;
}

.blitz-question-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
}

.bubble.blitz-answer-bubble {
  border: 1px solid rgba(13, 159, 140, 0.12);
}

.bubble.outbound.blitz-answer-bubble {
  background: rgba(220, 247, 240, 0.54);
}

.bubble.inbound.blitz-answer-bubble {
  background: rgba(169, 234, 219, 0.58);
}

.chat-card {
  display: grid;
  gap: 10px;
  width: min(100%, 330px);
  padding: 12px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 26px rgba(32, 29, 24, 0.08);
}

.chat-card h3,
.chat-card p {
  margin: 0;
}

.chat-card h3 {
  font-size: 16px;
  line-height: 1.2;
}

.chat-card p {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.36;
}

.chat-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.chat-card-header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.chat-card-header strong {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.chat-card-header svg {
  width: 15px;
  height: 15px;
}

.blitz-options,
.exit-options,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.blitz-options button,
.exit-options button,
.card-actions button,
.inline-action {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.blitz-options button.is-selected,
.card-actions button:hover,
.inline-action:hover {
  border-color: rgba(13, 159, 140, 0.32);
  background: var(--mint);
  color: #087564;
}

.card-muted {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.card-muted.is-revealed {
  padding: 9px;
  border-radius: 10px;
  background: var(--mint);
  color: #087564 !important;
  font-weight: 800;
}

.blitz-invite-card {
  border-color: rgba(13, 159, 140, 0.28);
  background:
    linear-gradient(145deg, rgba(209, 250, 239, 0.42), rgba(255, 255, 255, 0.96)),
    white;
}

.blitz-invite-card .blitz-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blitz-invite-card .blitz-topic-list span {
  padding: 4px 9px;
  border: 1px solid rgba(13, 159, 140, 0.14);
  border-radius: 999px;
  background: rgba(209, 250, 239, 0.58);
  color: #087564;
  font-size: 11px;
  font-weight: 850;
}

.blitz-invite-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.blitz-invite-card .card-actions button {
  border-color: rgba(103, 75, 181, 0.28);
  background: rgba(239, 219, 255, 0.72);
  color: var(--primary-dark);
}

.blitz-invite-card .card-actions button:hover {
  border-color: rgba(103, 75, 181, 0.42);
  background: var(--primary);
  color: white;
}

.blitz-invite-card.is-accepted {
  border-color: rgba(13, 159, 140, 0.26);
}

.opener-row {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  overflow-x: auto;
}

.opener-row button {
  min-width: max-content;
  min-height: 34px;
  padding: 0 11px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.composer {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: end;
  gap: 8px;
  padding: 8px 14px 12px;
  background: rgba(250, 248, 243, 0.95);
}

.blitz-answer-composer {
  display: grid;
  gap: 6px;
  padding: 8px 14px 4px;
  border-top: 1px solid rgba(103, 75, 181, 0.12);
  background: rgba(250, 248, 243, 0.97);
}

.blitz-answer-meta,
.blitz-answer-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  gap: 8px;
}

.blitz-answer-meta span {
  min-width: 0;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blitz-answer-meta strong,
.blitz-answer-composer small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.blitz-answer-row input {
  min-height: 30px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(103, 75, 181, 0.22);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.blitz-answer-row .blitz-answer-send {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.blitz-answer-row .blitz-answer-send svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.blitz-answer-row button:disabled,
.blitz-answer-row input:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.composer textarea {
  min-height: 40px;
  max-height: 118px;
  padding: 9px 12px;
  resize: none;
  line-height: 1.28;
  overflow: hidden;
}

.composer textarea::-webkit-scrollbar,
.profile-preview-panel::-webkit-scrollbar {
  width: 8px;
}

.composer textarea::-webkit-scrollbar-track,
.profile-preview-panel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--scrollbar-track);
}

.composer textarea::-webkit-scrollbar-thumb,
.profile-preview-panel::-webkit-scrollbar-thumb {
  border: 2px solid var(--scrollbar-track);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-container), var(--primary));
}

.icon-button.send {
  background: var(--coral);
  color: white;
}

.icon-button.spark {
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  border: 1px solid var(--icon-soft-border);
  box-shadow: var(--icon-soft-shadow);
}

.composer .icon-button.send,
.blind-composer .icon-button.send {
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
}

.icon-button.send {
  border: 1px solid var(--icon-soft-border);
  box-shadow: 0 4px 12px rgba(103, 75, 181, 0.10);
}

.composer .icon-button.send,
.blind-composer .icon-button.send {
  box-shadow: var(--icon-soft-shadow);
}

.blitz-answer-row .blitz-answer-send {
  border-color: rgba(13, 159, 140, 0.22);
  background: linear-gradient(135deg, rgba(126, 226, 203, 0.96), rgba(209, 250, 239, 0.98));
  color: #087564;
  box-shadow:
    0 0 0 4px rgba(209, 250, 239, 0.78),
    0 9px 22px rgba(13, 159, 140, 0.18);
}

.spark-sheet {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 18;
}

.spark-sheet.is-open,
.photo-setup-sheet.is-open,
.photo-action-sheet.is-open,
.city-picker-sheet.is-open {
  display: block;
}

.photo-setup-sheet,
.photo-action-sheet,
.city-picker-sheet {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 20;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 20, 0.42);
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 68px;
  display: grid;
  gap: 12px;
  padding: 10px 14px 16px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(160deg, rgba(239, 219, 255, 0.94), rgba(255, 255, 255, 0.98) 62%),
    white;
  box-shadow: 0 -18px 48px rgba(103, 75, 181, 0.24);
  transform-origin: left bottom;
  touch-action: pan-y;
  will-change: transform;
}

#sparkSheet .sheet-panel {
  max-height: calc(100% - 84px);
  overflow-y: auto;
  background:
    linear-gradient(160deg, #f5e9ff, #ffffff 62%),
    #ffffff;
}

.spark-sheet.is-open .sheet-panel {
  animation: sparkSheetGrow 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.sheet-panel.is-dragging {
  animation: none;
  transition: none;
}

.device[data-screen="chat"] .sheet-panel {
  bottom: 0;
}

.sheet-handle {
  justify-self: center;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(103, 75, 181, 0.28);
}

.spark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spark-main-view {
  display: grid;
  gap: 10px;
}

.spark-main-view[hidden],
.spark-revive-view[hidden],
.spark-blitz-setup[hidden] {
  display: none;
}

.spark-grid button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 12px;
  background: rgba(239, 219, 255, 0.36);
  color: var(--ink);
  text-align: left;
}

.spark-grid button.is-primary {
  background: rgba(239, 219, 255, 0.56);
  border-color: rgba(103, 75, 181, 0.32);
}

.spark-grid [data-spark-action="blitz"] {
  color: var(--ink);
}

.spark-grid [data-spark-action="blitz"] svg,
.spark-grid [data-spark-action="blitz"] span {
  color: var(--ink);
}

.spark-grid [data-spark-action="blitz"] svg {
  grid-row: auto;
  color: var(--primary);
}

.spark-grid button:disabled,
.spark-grid button[aria-disabled="true"] {
  opacity: 0.52;
  cursor: not-allowed;
  filter: grayscale(0.18);
}

.spark-grid svg {
  grid-row: auto;
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.spark-grid span {
  font-weight: 900;
}

.spark-grid small {
  color: var(--muted);
  font-size: 11px;
}

.spark-suggestions {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(103, 75, 181, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.spark-suggestions-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.spark-suggestions-title svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.spark-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spark-suggestion-list button,
.spark-section-title button,
.spark-count-row button,
.spark-back-button {
  font-family: inherit;
}

.spark-suggestion-list button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(103, 75, 181, 0.16);
  border-radius: 999px;
  background: rgba(239, 219, 255, 0.38);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
}

.spark-blitz-setup {
  display: grid;
  gap: 12px;
}

.spark-revive-view {
  display: grid;
  gap: 12px;
}

.spark-revive-view .spark-blitz-head {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 52px;
  align-items: start;
  margin-bottom: 4px;
}

.spark-revive-core {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid rgba(103, 75, 181, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.spark-analyze-button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 190px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid rgba(103, 75, 181, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  animation: none;
}

.spark-pulse-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: visible;
  border: 1px solid rgba(103, 75, 181, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  box-shadow: 0 5px 14px rgba(103, 75, 181, 0.08);
}

.spark-pulse-runner {
  display: none;
  position: absolute;
  left: -42px;
  width: 88px;
  height: 24px;
  opacity: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0 7%,
      rgba(255, 255, 255, 0.92) 7% 10%,
      transparent 10% 18%,
      rgba(255, 255, 255, 0.92) 18% 21%,
      transparent 21% 31%,
      rgba(255, 255, 255, 0.92) 31% 34%,
      transparent 34% 100%
    );
  clip-path: polygon(0 55%, 13% 55%, 18% 26%, 24% 76%, 30% 40%, 36% 55%, 51% 55%, 57% 22%, 64% 82%, 70% 48%, 78% 55%, 100% 55%, 100% 68%, 0 68%);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.72));
  pointer-events: none;
}

.spark-pulse-icon svg {
  position: relative;
  width: 24px;
  height: 24px;
  z-index: 1;
}

.spark-analyze-button.is-analyzing {
  animation: sparkAnalyzeBreath 1.05s ease-out infinite;
}

.spark-analyze-button.is-analyzing .spark-pulse-icon {
  animation: sparkPulse 1.05s ease-out infinite;
}

.spark-analyze-button.is-analyzing .spark-pulse-runner {
  opacity: 1;
  animation: none;
}

.spark-revive-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.spark-revive-results {
  display: grid;
  gap: 8px;
}

.spark-revive-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(103, 75, 181, 0.16);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  text-align: left;
}

.spark-revive-option span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.spark-revive-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.32;
}

@keyframes sparkPulse {
  0% { box-shadow: 0 0 0 0 rgba(103, 75, 181, 0.34); transform: scale(1); }
  70% { box-shadow: 0 0 0 18px rgba(103, 75, 181, 0); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(103, 75, 181, 0); transform: scale(1); }
}

@keyframes sparkAnalyzeBreath {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(103, 75, 181, 0.00);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(103, 75, 181, 0.08);
    transform: scale(1.012);
  }
}

@keyframes sparkPulseRun {
  from { transform: translateX(-18px); }
  to { transform: translateX(92px); }
}

.spark-blitz-head {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
}

.spark-back-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
}

.spark-back-button svg {
  width: 18px;
  height: 18px;
}

.spark-blitz-head strong {
  display: block;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.12;
}

.spark-blitz-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.spark-blitz-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.spark-blitz-title svg {
  display: none;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.spark-blitz-title strong {
  color: inherit;
}

.spark-blitz-section {
  display: grid;
  gap: 8px;
}

.spark-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spark-section-title span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.spark-section-title button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 999px;
  background: rgba(239, 219, 255, 0.46);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.spark-topic-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spark-topic-actions button {
  border-color: rgba(103, 75, 181, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.spark-topic-actions button.is-selected {
  border-color: rgba(103, 75, 181, 0.28);
  background: rgba(239, 219, 255, 0.62);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(103, 75, 181, 0.08);
  transform: translateY(1px);
}

.spark-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spark-topic-grid.is-random {
  opacity: 0.52;
  filter: grayscale(0.35);
}

.spark-topic-card {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(103, 75, 181, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  font-family: inherit;
}

.spark-topic-card span {
  font-size: 11px;
  font-weight: 900;
}

.spark-topic-card.is-selected {
  border-color: rgba(103, 75, 181, 0.40);
  background: rgba(239, 219, 255, 0.70);
  box-shadow: inset 0 0 0 1px rgba(103, 75, 181, 0.08);
}

.spark-topic-card:disabled {
  cursor: not-allowed;
}

.spark-count-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spark-count-slider {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 10px;
}

.spark-count-range {
  width: 100%;
  accent-color: #b3a3e0;
}

#sparkBlitzCountRange,
#sparkBlitzTimerRange {
  --range-progress: 0%;
  width: 100%;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #b3a3e0;
  appearance: none;
  -webkit-appearance: none;
}

#sparkBlitzCountRange::-webkit-slider-runnable-track,
#sparkBlitzTimerRange::-webkit-slider-runnable-track {
  height: 5px;
  border: 1px solid rgba(103, 75, 181, 0.14);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #b3a3e0 0%,
    #b3a3e0 var(--range-progress),
    rgba(202, 196, 212, 0.46) var(--range-progress),
    rgba(202, 196, 212, 0.46) 100%
  );
}

#sparkBlitzCountRange::-webkit-slider-thumb,
#sparkBlitzTimerRange::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b3a3e0;
  box-shadow: 0 2px 7px rgba(103, 75, 181, 0.22);
  appearance: none;
  -webkit-appearance: none;
}

#sparkBlitzCountRange::-moz-range-track,
#sparkBlitzTimerRange::-moz-range-track {
  height: 5px;
  border: 1px solid rgba(103, 75, 181, 0.14);
  border-radius: 999px;
  background: rgba(202, 196, 212, 0.46);
}

#sparkBlitzCountRange::-moz-range-progress,
#sparkBlitzTimerRange::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: #b3a3e0;
}

#sparkBlitzCountRange::-moz-range-thumb,
#sparkBlitzTimerRange::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b3a3e0;
  box-shadow: 0 2px 7px rgba(103, 75, 181, 0.22);
}

.spark-count-output {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  border: 1px solid rgba(103, 75, 181, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.spark-count-row button {
  min-width: 46px;
  min-height: 36px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.spark-count-row button.is-selected {
  border-color: rgba(103, 75, 181, 0.40);
  background: var(--tertiary-fixed);
  color: var(--primary-dark);
}

.spark-send-blitz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(103, 75, 181, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(103, 75, 181, 0.10);
}

.spark-send-blitz svg {
  width: 18px;
  height: 18px;
}

.photo-setup-sheet {
  inset: 32px 0 0;
}

.photo-setup-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 14px 16px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 -20px 50px rgba(21, 21, 20, 0.18);
}

.photo-setup-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.photo-setup-title > div {
  min-width: 0;
}

.photo-setup-title span {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(239, 219, 255, 0.72);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.photo-setup-title strong,
.photo-setup-title small {
  display: block;
}

.photo-setup-title strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
}

.photo-setup-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.28;
}

.photo-editor-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(202, 196, 212, 0.82);
  border-radius: 26px;
  background:
    linear-gradient(140deg, rgba(239, 219, 255, 0.54), rgba(250, 249, 244, 0.92)),
    var(--surface-2);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.photo-editor-stage.is-panning {
  cursor: grabbing;
}

.photo-editor-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  will-change: transform;
  cursor: inherit;
  -webkit-user-drag: none;
  user-select: none;
}

.photo-editor-stage img[hidden],
.photo-empty-state[hidden],
.photo-replace-button[hidden] {
  display: none;
}

.photo-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.photo-empty-state svg {
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px dashed rgba(73, 69, 82, 0.36);
  border-radius: 18px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.62);
}

.photo-replace-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--primary-dark);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(103, 75, 181, 0.12);
}

.photo-replace-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.photo-replace-button span {
  white-space: nowrap;
}

.avatar-crop-overlay {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.photo-setup-sheet.is-avatar-step .avatar-crop-overlay {
  display: block;
}

.avatar-crop-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72%, 270px);
  aspect-ratio: 1;
  border: 2px solid rgba(103, 75, 181, 0.76);
  border-radius: 999px;
  box-shadow:
    0 0 0 999px rgba(245, 244, 239, 0.66),
    0 0 0 7px rgba(239, 219, 255, 0.22);
  transform: translate(-50%, -50%);
}

.photo-save-button {
  align-self: center;
  width: min(260px, 78%);
  min-height: 48px;
  border: 1px solid rgba(103, 75, 181, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239, 219, 255, 0.98), rgba(167, 139, 250, 0.78)),
    var(--tertiary-fixed);
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(103, 75, 181, 0.18);
}

.photo-save-button:active {
  transform: translateY(1px);
}

.photo-action-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 82px;
  display: grid;
  gap: 12px;
  padding: 10px 12px 14px;
  border: 1px solid rgba(103, 75, 181, 0.16);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(21, 21, 20, 0.26);
}

.photo-action-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
}

.photo-action-preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(103, 75, 181, 0.14);
  background: rgba(239, 219, 255, 0.35);
}

.photo-action-buttons {
  display: grid;
  gap: 8px;
}

.photo-primary-action,
.photo-danger-button {
  min-height: 46px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
}

.photo-primary-action {
  border: 1px solid rgba(103, 75, 181, 0.18);
  background: rgba(239, 219, 255, 0.82);
  color: var(--primary-dark);
}

.photo-primary-action:disabled {
  opacity: 0.48;
}

.photo-danger-button {
  border: 1px solid rgba(186, 26, 26, 0.18);
  background: rgba(255, 251, 254, 0.86);
  color: var(--danger);
}

.city-picker-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  max-height: calc(100% - 36px);
  padding: 8px 14px 18px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -24px 60px rgba(40, 35, 28, 0.22);
  touch-action: pan-y;
  transition: transform 180ms ease;
}

.city-picker-panel.is-dragging {
  transition: none;
}

.city-picker-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.city-search-input {
  min-height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 2px solid rgba(103, 75, 181, 0.20);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.city-search-input:focus {
  outline: none;
  border-color: rgba(103, 75, 181, 0.48);
}

.city-options {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 4px;
}

.city-options::-webkit-scrollbar {
  width: 8px;
}

.city-options::-webkit-scrollbar-track {
  background: rgba(239, 219, 255, 0.58);
  border-radius: 999px;
}

.city-options::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

.city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(103, 75, 181, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
}

.city-option span {
  font-size: 15px;
  font-weight: 600;
}

.city-option small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: lowercase;
}

.city-option.is-selected {
  border-color: rgba(103, 75, 181, 0.42);
  background: linear-gradient(135deg, rgba(239, 219, 255, 0.92), rgba(255, 255, 255, 0.86));
  box-shadow: inset 0 0 0 1px rgba(103, 75, 181, 0.10);
}

.city-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@keyframes sparkSheetGrow {
  from {
    opacity: 0;
    transform: translate(-28px, 34px) scale(0.78);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 112px;
  gap: 8px;
}

.photo-upload-input {
  display: none;
}

.photo-grid .hero-photo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
}

.photo-grid .hero-photo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.photo-grid button {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(21, 21, 20, 0.24);
  border-radius: 12px;
  background: white;
  color: var(--muted);
}

.photo-sandwich {
  --photo-drum-overlap: 20px;
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 232px;
  min-height: 232px;
  padding: 6px 4px 54px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 16px;
  overscroll-behavior: contain;
  perspective: 900px;
  scroll-padding-block: 54px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 83%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 83%, transparent);
}

.photo-sandwich .sandwich-add-slot {
  position: relative;
  z-index: 230;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 42px;
  width: 100%;
  margin-bottom: 8px;
  border: 1px dashed rgba(103, 75, 181, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(103, 75, 181, 0.08);
}

.photo-sandwich .sandwich-add-slot svg {
  width: 15px;
  height: 15px;
}

.photo-sandwich .sandwich-add-slot span {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-sandwich .sandwich-add-slot-bottom {
  margin-top: 8px;
  margin-bottom: 0;
}

.photo-sandwich.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.photo-sandwich::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.photo-sandwich .sandwich-card {
  --photo-card-edge-alpha: 0.32;
  position: relative;
  flex: 0 0 92px;
  width: 100%;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 22px rgba(103, 75, 181, 0.1);
  scroll-snap-align: center;
  transform-origin: center;
  backface-visibility: hidden;
  contain: layout paint;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--photo-card-edge-alpha)) 0%,
    #000 30%,
    #000 70%,
    rgba(0, 0, 0, var(--photo-card-edge-alpha)) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, var(--photo-card-edge-alpha)) 0%,
    #000 30%,
    #000 70%,
    rgba(0, 0, 0, var(--photo-card-edge-alpha)) 100%
  );
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  will-change: transform, opacity;
}

.photo-sandwich .sandwich-card + .sandwich-card {
  margin-top: calc(var(--photo-drum-overlap) * -1);
}

.photo-sandwich.is-dragging .sandwich-card {
  transition: transform 90ms ease-out, opacity 90ms ease-out, border-color 90ms ease, box-shadow 90ms ease;
}

.photo-sandwich .sandwich-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(44, 31, 92, 0.16));
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.photo-sandwich .sandwich-card:hover,
.photo-sandwich .sandwich-card:focus-visible {
  border-color: rgba(103, 75, 181, 0.45);
  box-shadow: 0 12px 26px rgba(103, 75, 181, 0.18);
}

.photo-sandwich .sandwich-card.is-current {
  border-color: rgba(103, 75, 181, 0.58);
  box-shadow: 0 16px 30px rgba(80, 58, 148, 0.22);
}

.photo-sandwich .sandwich-card.is-current::after {
  opacity: 0.24;
}

.photo-sandwich .sandwich-card.has-photo {
  border-style: solid;
}

.photo-sandwich .sandwich-card:not(.has-photo) {
  border-style: dashed;
}

.photo-sandwich .sandwich-card.has-photo svg {
  opacity: 0;
}

.editor-block {
  display: grid;
  gap: 12px;
}

.profile-completion-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 999px;
  background: rgba(239, 219, 255, 0.34);
}

.profile-completion-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-completion-meta span {
  color: var(--muted);
}

.profile-completion-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(103, 75, 181, 0.16);
}

.profile-completion-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(239, 219, 255, 0.92), var(--primary-container) 52%, var(--primary));
  transition: width 220ms ease;
}

.profile-preview-launch {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(103, 75, 181, 0.22);
  border-radius: 12px;
  background: rgba(239, 219, 255, 0.34);
  color: var(--ink);
  text-align: left;
}

.editor-block.preview-launch-block {
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-preview-launch svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.profile-preview-launch strong,
.profile-preview-launch small {
  display: block;
}

.profile-preview-launch strong {
  font-size: 14px;
  line-height: 1.28;
}

.profile-preview-launch small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.editor-block label,
.editor-block .field-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 10px 2px;
}

.profile-round-action {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.profile-round-action span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 219, 255, 0.98), rgba(250, 245, 255, 0.96));
  color: var(--ink);
  box-shadow: 0 14px 26px rgba(103, 75, 181, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.profile-round-action svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}

.profile-round-action strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-round-action:hover span,
.profile-round-action:focus-visible span {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(103, 75, 181, 0.22);
}

.editor-block textarea,
.editor-block input,
.editor-block select {
  padding: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

#profileBio {
  resize: none;
}

.editor-block select {
  min-height: 44px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.city-picker-trigger {
  display: flex;
  align-items: center;
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(103, 75, 181, 0.20);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.city-picker-trigger:focus-visible {
  outline: 2px solid rgba(103, 75, 181, 0.45);
  outline-offset: 2px;
}

.block-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.block-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-collapsible-block .block-title {
  gap: 8px;
}

.profile-collapsible-block .block-title h3 {
  margin-right: auto;
}

.profile-collapsible-block .block-title span {
  margin-left: auto;
}

.section-collapse-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #8a8494;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.section-collapse-toggle svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.6;
}

.section-collapse-toggle:active {
  transform: scale(0.94);
}

.section-collapse-toggle:focus-visible {
  outline: 2px solid rgba(103, 75, 181, 0.40);
  outline-offset: 2px;
}

.profile-collapsible-block.is-collapsed {
  gap: 0;
}

.profile-collapsible-block.is-collapsed > :not(.block-title) {
  display: none;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.segmented button {
  min-height: 40px;
  font-size: 12px;
  font-weight: 900;
}

.goal-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.goal-segmented button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.goal-segmented button.is-selected {
  border-color: rgba(103, 75, 181, 0.22);
  background: rgba(239, 219, 255, 0.58);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(103, 75, 181, 0.08);
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.profile-verified-badge {
  color: var(--coral);
  display: inline-flex;
  align-items: center;
}
.profile-verified-badge svg {
  width: 18px;
  height: 18px;
}

.profile-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-interests button {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.profile-interests button.is-selected {
  border-color: var(--coral);
  background: rgba(103, 75, 181, 0.10);
  color: var(--coral-dark);
}
.profile-interests button:active {
  transform: scale(0.95);
}

.input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}
.editor-block label {
  position: relative;
}
.editor-block label input[type="number"] {
  padding-right: 36px;
}

.compact-height-field {
  width: min(148px, 100%);
  gap: 5px;
  font-size: 11px;
}

.compact-height-field input[type="number"] {
  min-height: 36px;
  padding: 8px 34px 8px 10px;
  font-size: 13px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.compact-height-field input[type="number"]::-webkit-outer-spin-button,
.compact-height-field input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.compact-height-field .input-suffix {
  right: 10px;
  top: auto;
  bottom: 9px;
  transform: none;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lifestyle-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lifestyle-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lifestyle-row .lifestyle-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lifestyle-row .lifestyle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.lifestyle-chips button {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.lifestyle-chips button.is-selected {
  border-color: var(--secondary);
  background: rgba(0, 107, 95, 0.08);
  color: var(--secondary);
}
.lifestyle-chips button:active {
  transform: scale(0.95);
}

.status-grid button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.22;
}

.status-grid button.is-selected {
  border-color: rgba(103, 75, 181, 0.34);
  background: rgba(239, 219, 255, 0.54);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(103, 75, 181, 0.08);
}

.block-title .block-badge-plus {
  background: linear-gradient(135deg, #7a5cf0, #674bb5);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(103, 75, 181, 0.16),
    0 8px 18px rgba(103, 75, 181, 0.18);
}

@keyframes plusBadgeShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .block-title .block-badge-plus {
    animation: none;
  }
}

.prompt-card-edit {
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(239, 219, 255, 0.46), rgba(255, 255, 255, 0.92)),
    #fff;
  border: 1px solid rgba(103, 75, 181, 0.16);
  border-radius: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(103, 75, 181, 0.06);
  transition: background .1s, border-color .1s, transform .1s;
}
.prompt-card-edit:active {
  background: rgba(239, 219, 255, 0.56);
  transform: translateY(1px);
}
.prompt-card-edit .prompt-q {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(239, 219, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0;
  margin-bottom: 8px;
}
.prompt-card-edit .prompt-a {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
}
.prompt-add-btn {
  padding: 14px;
  border: 1px dashed rgba(103, 75, 181, 0.34);
  border-radius: 12px;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  background: rgba(239, 219, 255, 0.24);
  width: 100%;
  font-family: inherit;
  font-weight: 800;
  transition: background .1s;
}
.prompt-add-btn:active { background: rgba(239, 219, 255, 0.42); }

.music-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border-radius: 12px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .1s;
}
.music-track:active { background: #f9f9fb; }
.music-track .music-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffdb4d, #ff2358);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.music-track .music-meta { flex: 1; }
.music-track .music-meta b { font-size: 14px; color: var(--ink); display: block; }
.music-track .music-meta small { font-size: 12px; color: var(--muted); }
.music-track .music-link {
  font-size: 11px;
  color: var(--coral);
  font-weight: 600;
  white-space: nowrap;
}

.plus-control-block {
  border-top: 2px solid var(--line);
  padding-top: 8px;
}
.plus-control-block > .block-title {
  padding-left: 8px;
}
.plus-control-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plus-control-list .settings-line {
  border-radius: 12px;
  border-bottom: 0;
  background: rgba(239, 238, 233, 0.56);
}
.plus-control-inline-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  margin: -2px 10px 8px;
}
[data-plus-toggle].is-on .settings-switch {
  background: #b3a3e0;
}

.premium-hero h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.premium-hero p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.settings-list button {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  text-align: left;
  line-height: 1.25;
}

.settings-list svg {
  width: 21px;
  height: 21px;
  color: var(--primary);
}

.settings-list span {
  font-weight: 600;
}

.settings-list strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.settings-topbar {
  border-bottom: 1px solid rgba(21, 21, 20, 0.06);
  background: rgba(255, 255, 255, 0.92);
}

.settings-done-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.settings-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 0 22px;
  background:
    linear-gradient(180deg, rgba(239, 219, 255, 0.28), transparent 160px),
    var(--surface-2);
}

.settings-section {
  display: grid;
  background: #fff;
  border-block: 1px solid rgba(21, 21, 20, 0.06);
}

.settings-plus-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 0 12px;
  border-block: 1px solid rgba(103, 75, 181, 0.18);
  background: linear-gradient(180deg, rgba(239, 219, 255, 0.56), rgba(239, 219, 255, 0.20));
}

.settings-plus-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
}

.settings-plus-group-title span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-plus-group-title strong {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.settings-section-plus {
  border-block-color: rgba(103, 75, 181, 0.12);
}

.settings-section h3 {
  margin: 0;
  padding: 12px 16px 8px;
  background: var(--surface-2);
  color: rgba(73, 69, 82, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-line {
  display: flex;
  align-items: center;
  min-height: 48px;
  width: 100%;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(21, 21, 20, 0.08);
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}

.settings-line:last-child {
  border-bottom: 0;
}

.settings-line.split {
  justify-content: space-between;
  gap: 12px;
}
/* Заголовок настройки с коротким описанием (напр. «Режим инкогнито») */
.settings-line-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 0;
  min-width: 0;
}
.settings-line-stack small {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.settings-line.is-static {
  min-height: 42px;
  padding: 0;
  border: 0;
  cursor: default;
}

.settings-line strong {
  color: rgba(73, 69, 82, 0.64);
  font-size: 15px;
  font-weight: 650;
}

.settings-line.is-link {
  color: var(--primary);
}

.settings-line.settings-logout {
  color: var(--danger);
}

.settings-line.settings-logout svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.settings-line.has-chevron svg {
  width: 18px;
  height: 18px;
  color: rgba(73, 69, 82, 0.42);
}

.settings-warning,
.settings-note {
  margin: 0;
  padding: 10px 16px 14px;
  background: var(--surface-2);
  color: rgba(186, 26, 26, 0.72);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.settings-note {
  color: rgba(73, 69, 82, 0.74);
  font-weight: 650;
}

/* Единый бейдж Plus (как чип на карточке): "+ Plus", фиолетовый */
.settings-plus-badge,
.block-title .block-badge-plus {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: linear-gradient(135deg, #7a5cf0, #674bb5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
  text-transform: none;
  box-shadow: 0 4px 10px rgba(103, 75, 181, 0.22);
}
.settings-plus-badge svg,
.block-title .block-badge-plus svg {
  width: 13px;
  height: 13px;
  color: #efdbff;
  stroke-width: 3.2;
}

.settings-range-row {
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(21, 21, 20, 0.08);
}

.settings-range {
  width: 100%;
  accent-color: #b3a3e0;
}

.settings-switch {
  --switch-track-off: rgba(21, 21, 20, 0.20);
  --switch-track-on: var(--primary);
  --switch-thumb-off: #fff;
  --switch-thumb-on: #fff;
  --switch-thumb-shadow-off: 0 2px 6px rgba(21, 21, 20, 0.22);
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--switch-track-off);
  box-shadow: inset 0 0 0 1px rgba(21, 21, 20, 0.05);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.settings-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--switch-thumb-off);
  box-shadow: var(--switch-thumb-shadow-off);
  transition: left 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.settings-line.is-on .settings-switch,
.settings-line[aria-pressed="true"] .settings-switch {
  background: #b3a3e0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.settings-line.is-on .settings-switch span,
.settings-line[aria-pressed="true"] .settings-switch span {
  left: 23px;
  background: var(--switch-thumb-on);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.68),
    0 2px 6px rgba(21, 21, 20, 0.20);
}

/* Скруглённые карточки-ряды настроек */
.settings-page .settings-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border-block: 0;
  padding: 0 12px;
}
.settings-page .settings-section h3 {
  background: transparent;
  padding: 14px 4px 6px;
}
.settings-page .settings-section .settings-line {
  border-radius: 12px;
  border-bottom: 0;
}
.settings-page .settings-range-row {
  border-bottom: 0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px 12px;
}
.settings-page .settings-warning { margin: 2px 4px; }
/* Выбор языка — фиолетовое выделение вместо галочки (как в выборе города) */
.settings-line.is-selected {
  border: 1px solid rgba(103, 75, 181, 0.42);
  background: linear-gradient(135deg, rgba(239, 219, 255, 0.92), rgba(255, 255, 255, 0.86));
  box-shadow: inset 0 0 0 1px rgba(103, 75, 181, 0.10);
}

.premium-hero {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
  margin: 14px 16px 0;
  /* Без карточки-подложки: только бриллиант и текст на фоне экрана */
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.premium-gem-spark {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.26), rgba(103, 75, 181, 0.06) 58%, transparent 70%);
  filter: drop-shadow(0 12px 22px rgba(103, 75, 181, 0.24));
}

.premium-gem-spark svg {
  width: 38px;
  height: 38px;
  color: var(--primary);
  stroke-width: 2.4;
  z-index: 2;
  animation: gemGlint 2.8s ease-in-out infinite;
}

.spark-ray {
  position: absolute;
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(103, 75, 181, 0.86), transparent);
  opacity: 0.78;
  transform-origin: center;
  animation: rayShimmer 2.2s ease-in-out infinite;
}

.ray-top {
  top: 4px;
  transform: rotate(90deg);
}

.ray-right {
  right: -5px;
  transform: rotate(-18deg);
  animation-delay: 180ms;
}

.ray-top-right {
  top: 11px;
  right: 4px;
  width: 20px;
  transform: rotate(-45deg);
  animation-delay: 90ms;
}

.ray-bottom-right {
  right: 4px;
  bottom: 11px;
  width: 20px;
  transform: rotate(45deg);
  animation-delay: 270ms;
}

.ray-bottom {
  bottom: 4px;
  transform: rotate(90deg);
  animation-delay: 360ms;
}

.ray-bottom-left {
  bottom: 11px;
  left: 4px;
  width: 20px;
  transform: rotate(-45deg);
  animation-delay: 450ms;
}

.ray-left {
  left: -5px;
  transform: rotate(18deg);
  animation-delay: 540ms;
}

.ray-top-left {
  top: 11px;
  left: 4px;
  width: 20px;
  transform: rotate(45deg);
  animation-delay: 630ms;
}

@keyframes rayShimmer {
  0%, 100% { opacity: 0.22; transform: scaleX(0.72) rotate(var(--ray-rotation, 0deg)); }
  50% { opacity: 0.92; transform: scaleX(1.12) rotate(var(--ray-rotation, 0deg)); }
}

.ray-top,
.ray-bottom {
  --ray-rotation: 90deg;
}

.ray-right {
  --ray-rotation: -18deg;
}

.ray-left {
  --ray-rotation: 18deg;
}

.ray-top-right,
.ray-bottom-left {
  --ray-rotation: -45deg;
}

.ray-bottom-right,
.ray-top-left {
  --ray-rotation: 45deg;
}

@keyframes gemGlint {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-1px) scale(1.06); }
}

.plan-list {
  flex: 0 0 auto;
  padding-bottom: 8px;
}

#screen-premium {
  overflow-y: auto;
  padding-bottom: 24px;
  scrollbar-width: none;
}

#screen-premium::-webkit-scrollbar {
  display: none;
}

#screen-premium .plan-list {
  overflow: visible;
  flex: 0 0 auto;
}

#screen-premium .plan-card.is-selected {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(103, 75, 181, 0.34);
  background: linear-gradient(180deg, rgba(239, 219, 255, 0.72), #ffffff);
  color: var(--primary);
}

#screen-premium .plan-card.plan-plus.is-selected::before {
  content: "PLUS";
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 0;
  max-width: 100%;
  background: linear-gradient(
    100deg,
    rgba(103, 75, 181, 0.20),
    rgba(255, 255, 255, 0.76),
    rgba(111, 80, 146, 0.46),
    rgba(167, 139, 250, 0.24)
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(58px, 17vw, 92px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0.06em;
  opacity: 0.82;
  pointer-events: none;
  text-transform: uppercase;
  animation: plusWatermarkShimmer 3.4s ease-in-out infinite;
}

#screen-premium .plan-card.is-selected > * {
  position: relative;
  z-index: 1;
}

/* ===== DIAMOND PLAN CARD ===== */
#screen-premium .plan-card.plan-diamond {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #0b1733 0%, #142a52 45%, #0a1430 100%) padding-box,
    linear-gradient(135deg, #8fd3ff, #d9f4ff 35%, #6aa8ff 60%, #c8e8ff 85%) border-box;
  color: #eaf4ff;
  box-shadow: 0 20px 44px rgba(20, 60, 130, 0.42);
}

#screen-premium .plan-card.plan-diamond.is-selected {
  background:
    linear-gradient(180deg, #0e1d40 0%, #1b3a72 45%, #0c193a 100%) padding-box,
    linear-gradient(135deg, #b7e6ff, #ffffff 30%, #7fb6ff 55%, #e3f5ff 80%) border-box;
  box-shadow: 0 24px 56px rgba(30, 90, 190, 0.55);
}

/* facet sparkle background */
#screen-premium .plan-card.plan-diamond::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22), transparent 38%),
    radial-gradient(circle at 82% 70%, rgba(140, 200, 255, 0.20), transparent 42%),
    radial-gradient(circle at 60% 12%, rgba(255, 255, 255, 0.14), transparent 30%);
  pointer-events: none;
}

/* алмаз-водяной знак на фоне карточки */
#screen-premium .plan-card.plan-diamond .plan-diamond-bg {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%) rotate(6deg);
  width: 160px;
  height: 160px;
  z-index: 0;
  color: rgba(190, 230, 255, 0.13);
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(150, 205, 255, 0.18));
}

/* тонкий, едва уловимый блик */
#screen-premium .plan-card.plan-diamond .plan-diamond-glint {
  position: absolute;
  top: -60%;
  left: -40%;
  z-index: 1;
  width: 10%;
  height: 220%;
  transform: rotate(20deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    rgba(220, 242, 255, 0.28),
    rgba(255, 255, 255, 0.06),
    transparent
  );
  filter: blur(2px);
  pointer-events: none;
  animation: diamondGlint 6s ease-in-out infinite;
}

@keyframes diamondGlint {
  0% { left: -45%; opacity: 0; }
  14% { opacity: 1; }
  44% { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

#screen-premium .plan-card.plan-diamond > * {
  position: relative;
  z-index: 2;
}


#screen-premium .plan-card.plan-diamond .plan-tier-label {
  background: linear-gradient(100deg, #cfeeff, #ffffff, #9ec9ff, #e8f7ff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: diamondLabelShimmer 3.4s ease-in-out infinite;
}

@keyframes diamondLabelShimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

#screen-premium .plan-card.plan-diamond strong {
  color: #ffffff;
}

#screen-premium .plan-card.plan-diamond small {
  color: rgba(220, 238, 255, 0.78);
}

#screen-premium .plan-card.plan-diamond .premium-feature-item {
  border: 1px solid rgba(150, 205, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
}

#screen-premium .plan-card.plan-diamond .premium-feature-item > span {
  color: rgba(226, 242, 255, 0.92);
}

#screen-premium .plan-card.plan-diamond .premium-feature-list svg {
  color: #bfe6ff;
}

.plan-period {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.6;
}

.plan-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  text-align: left;
}

.plan-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card strong {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.08;
}

/* Цена тарифа Plus — фиолетовая, Diamond остаётся белым на тёмной карточке */
#screen-premium .plan-card.plan-plus strong,
.plan-details-dialog.plan-plus strong {
  color: var(--primary);
}

.plan-card small {
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.premium-feature-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 10px;
}

.plan-card .premium-feature-list {
  padding: 7px 0 0;
  gap: 6px;
}

/* Компактнее фичи в карточке тарифа — меньше «воздуха» по высоте */
#screen-premium .plan-card .premium-feature-item {
  min-height: 40px;
  padding: 7px 9px;
}

.premium-feature-list div,
.premium-feature-list .premium-feature-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 12px;
  background: white;
}

.premium-feature-list svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.premium-feature-list span,
.plan-card .premium-feature-item > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: none;
}

.plan-card .plan-feature-list {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

#screen-premium .primary-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: calc(100% - 32px);
  margin: 8px 16px 0;
  /* Без заливки — только фиолетовая окантовка */
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--primary);
  box-shadow: none;
  animation: none;
}

@keyframes ctaSoftPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 28px rgba(103, 75, 181, 0.2); }
  50% { transform: scale(1.018); box-shadow: 0 20px 40px rgba(103, 75, 181, 0.32); }
}

#screen-premium .primary-button.is-shimmering::before {
  content: "";
  position: absolute;
  inset: -42% auto -42% -38%;
  z-index: -1;
  width: 44%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  animation: premiumCtaShimmer 2.25s ease-in-out infinite;
}

#screen-premium .primary-button.is-diamond-cta {
  background: transparent;
  border-color: #2b5cab;
  box-shadow: none;
  color: #2b5cab;
}

/* ===== DIAMOND MANAGE ===== */
.diamond-manage {
  margin: 16px;
  padding: 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #0e1d40, #15294f) padding-box,
    linear-gradient(135deg, #b7e6ff, #7fb6ff) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 18px 40px rgba(30, 90, 190, 0.35);
}
.diamond-manage.is-hidden { display: none; }

.diamond-manage-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(150, 205, 255, 0.18);
}
.diamond-manage-head svg { width: 26px; height: 26px; color: #bfe6ff; flex-shrink: 0; }
.diamond-manage-head strong { display: block; color: #fff; font-size: 16px; }
.diamond-manage-head span { font-size: 12px; color: rgba(200, 230, 255, 0.7); }

.dm-block {
  padding: 12px 0;
  border-bottom: 1px solid rgba(150, 205, 255, 0.12);
}
.dm-block:last-child { border-bottom: none; padding-bottom: 0; }

.dm-block-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #eaf4ff;
  font-size: 14px;
  font-weight: 700;
}
.dm-block-title svg { width: 18px; height: 18px; color: #bfe6ff; }
.dm-block-title > span { flex: 1; }

.dm-switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.dm-switch > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.dm-switch.is-on { background: #4a90d9; }
.dm-switch.is-on > span { transform: translateX(20px); }

.dm-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(200, 230, 255, 0.66);
}

.dm-gate-body { margin-top: 12px; }

.dm-mode {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 12px;
}
.dm-mode-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(220, 238, 255, 0.7);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dm-mode-btn.is-active { background: #fff; color: #1b3a72; }
.dm-mode-hint {
  margin: 8px 0 12px;
  font-size: 11px;
  color: rgba(200, 230, 255, 0.6);
  line-height: 1.35;
}

.dm-question {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1px solid rgba(150, 205, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.dm-question:active { background: rgba(255, 255, 255, 0.12); }
.dm-q-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4a90d9;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.dm-q-body { flex: 1; min-width: 0; }
.dm-q-text { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.dm-q-answer { display: block; color: rgba(190, 230, 255, 0.7); font-size: 11px; margin-top: 1px; }
.dm-question svg { width: 16px; height: 16px; color: rgba(190, 230, 255, 0.6); flex-shrink: 0; }

.dm-orient {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.dm-orient-btn {
  flex: 1;
  padding: 9px;
  border: 1px solid rgba(150, 205, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(220, 238, 255, 0.8);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dm-orient-btn.is-active { background: #4a90d9; color: #fff; border-color: transparent; }

#screen-premium .primary-button.is-shimmering {
  animation: premiumCtaPulse 2.8s ease-in-out infinite;
}

#screen-premium .primary-button:disabled {
  background: var(--teal);
  border-color: transparent;
  color: #fff;
  opacity: 0.92;
  cursor: default;
  animation: none;
  box-shadow: none;
}

#screen-premium .primary-button:disabled::before {
  display: none;
}

@keyframes premiumCtaShimmer {
  0% {
    left: -44%;
    opacity: 0;
  }

  20%,
  66% {
    opacity: 1;
  }

  100% {
    left: 112%;
    opacity: 0;
  }
}

@keyframes premiumCtaPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 34px rgba(103, 75, 181, 0.22);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(103, 75, 181, 0.34);
  }
}

@keyframes plusWatermarkShimmer {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.68;
  }

  50% {
    background-position: 100% 50%;
    opacity: 0.92;
  }
}

.match-modal {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 32px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.10), transparent 34%),
    linear-gradient(160deg, #7a62c8 0%, #6254b2 42%, #1fa6a0 100%);
  z-index: 20;
}

.match-modal.is-open {
  display: grid;
  animation: matchFadeIn 0.3s ease;
}

@keyframes matchFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* конфетти-праздник */
.match-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.match-confetti i {
  position: absolute;
  top: -16px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: matchConfettiFall linear infinite;
}
@keyframes matchConfettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(900px) rotate(720deg); opacity: 0; }
}
.match-confetti b {
  position: absolute;
  top: -24px;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: matchHeartFall linear infinite;
}
@keyframes matchHeartFall {
  0% { transform: translateY(-24px) translateX(0) rotate(-10deg); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(420px) translateX(16px) rotate(8deg); }
  100% { transform: translateY(900px) translateX(-10px) rotate(-6deg); opacity: 0; }
}

.match-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
  background: none;
  text-align: center;
  box-shadow: none;
}

.match-title {
  margin: 0 0 30px;
  color: #fff;
  font-family: "Marck Script", "Manrope", sans-serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.match-sub {
  margin: 0 auto 26px;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.4;
}

.match-photos {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 34px;
}

.match-photos img {
  width: 116px;
  height: 116px;
  border: 4px solid rgba(204, 188, 243, 0.95);
  border-radius: 999px;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgba(103, 75, 181, 0.44),
    0 16px 40px rgba(0, 0, 0, 0.24);
}

.match-photo-me { transform: rotate(-8deg); margin-right: -16px; }
.match-photo-them { transform: rotate(8deg); margin-left: -16px; }

.match-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.20);
  animation: matchHeartPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.match-heart svg { width: 15px; height: 15px; color: #674bb5; fill: #674bb5; }
@keyframes matchHeartPop {
  from { transform: translate(-50%, -50%) scale(0); }
  to { transform: translate(-50%, -50%) scale(1); }
}

.match-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 10px;
}

.match-primary {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 999px;
  background: rgba(239, 219, 255, 0.88);
  color: #5b3fa8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s;
}
.match-primary:active { transform: scale(0.96); }

.match-ghost {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.match-ghost:active { background: rgba(255, 255, 255, 0.14); }

.profile-preview {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 19;
}

.profile-preview.is-open {
  display: block;
  background: #fff;
}

.profile-preview .sheet-scrim {
  background: rgba(21, 21, 20, 0.48);
  backdrop-filter: blur(2px);
}

/* Полноэкранное окно профиля (отдельный экран, не лист поверх) */
.profile-preview-panel {
  position: absolute;
  inset: 0;
  max-height: 100%;
  overflow: auto;
  padding: 0 0 24px;
  border-radius: 0;
  background: white;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.profile-preview-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Липкая стрелка «Назад» — следует за скроллом */
.pv-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  /* Frameless back arrow: no white halo, just the brand-violet glyph. */
  filter: none;
  transition: transform 0.12s;
}
.pv-back:active { transform: scale(0.92); }
.pv-back svg { width: 19px; height: 19px; stroke-width: 2.4; }

.profile-preview-panel > img {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* ===== Раскрытый профиль: лента фото + блоки (как в Tinder) ===== */
.preview-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* фото — во всю ширину экрана; текстовым блокам — боковые отступы */
.preview-body > .pv-section,
.preview-body > .pv-prompt,
.preview-body > .pv-music {
  margin-left: 14px;
  margin-right: 14px;
}
/* Свайпабельная галерея фото */
.pv-gallery {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background: #1a1b1e;
  touch-action: pan-y;
  user-select: none;
}
/* Кастомизация Diamond на большом профиле (self-preview) */
.pv-gallery.pv-fx-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  padding: 3px;
  background: conic-gradient(from var(--diamond-frame-angle), #ffffff, #dde2ec, #b3c2e2, #cbbcf3, #ffffff, #c4d3ef, #aebcdd, #ffffff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: brightness(1.04);
  animation: cardDiamondFrameSpin 6.5s linear infinite;
}
.pv-shine { z-index: 6; }
.pv-fx-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #eaf6ff;
  background: linear-gradient(135deg, rgba(120, 160, 210, 0.9), rgba(180, 210, 240, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 14px rgba(40, 70, 120, 0.3);
}
.pv-fx-badge i { width: 15px; height: 15px; }
.pv-gallery-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.pv-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.pv-gallery-dots {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  gap: 5px;
}
.pv-gallery-dots span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s;
}
.pv-gallery-dots span.is-active {
  background: #fff;
}
.pv-gallery-tap {
  position: absolute;
  top: 0;
  bottom: 90px;
  width: 38%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}
.pv-gallery-tap.left { left: 0; }
.pv-gallery-tap.right { right: 0; }
.pv-hero-grad {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}
.pv-hero-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  color: #fff;
}
.pv-hero-namerow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.pv-hero-info h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
}
.pv-intent-row {
  display: grid;
  gap: 12px;
  margin: 0 14px;
  padding: 2px;
}
.pv-intent-settings {
  display: grid;
  gap: 8px;
}
.pv-intent-settings .pv-info-chip {
  background: var(--soft);
}
.pv-intent-settings .pv-info-chip svg {
  color: rgba(73, 69, 82, 0.58);
}

.pv-section {
  padding: 2px;
}
.pv-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.pv-bio {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 219, 255, 0.34);
  border: 1px solid rgba(103, 75, 181, 0.12);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.pv-intersections {
  margin-top: 10px;
}

.pv-intent-row .pv-intersections {
  margin-top: 0;
}

.pv-intersections h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pv-intersection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pv-intersection-chips span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.pv-intersection-chips .is-more {
  min-width: 32px;
  text-align: center;
}
.pv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pv-chips span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.pv-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pv-info-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.pv-info-chip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primary);
}

.pv-info-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pv-prompt {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-left: 3px solid var(--coral);
}
.pv-prompt-q {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--coral);
  margin-bottom: 4px;
}
.pv-prompt-a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.pv-music-list {
  display: grid;
  gap: 8px;
}

.pv-music {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(21, 21, 20, 0.08);
  text-decoration: none;
  transition: background 0.12s;
}
.pv-section .pv-music { margin: 0; }
.pv-music:active { background: #f6f4fb; }
.pv-music-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffdb4d, #ff2358);
}
.pv-music-icon svg { width: 20px; height: 20px; color: #fff; }
.pv-music-meta { flex: 1; min-width: 0; }
.pv-music-meta b { display: block; font-size: 14px; color: var(--ink); }
.pv-music-meta small { font-size: 12px; color: var(--muted); }
.pv-music-play {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--coral);
  white-space: nowrap;
}
.pv-music-play svg { width: 13px; height: 13px; }

@keyframes profilePreviewModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.preview-copy {
  display: grid;
  gap: 10px;
  padding: 14px 2px;
}

.preview-copy h2,
.preview-copy p {
  margin: 0;
}

.preview-copy h2 {
  font-size: 26px;
}

.preview-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

#previewBio {
  padding: 12px;
  border: 1px solid rgba(103, 75, 181, 0.12);
  border-radius: 14px;
  background: rgba(239, 219, 255, 0.34);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preview-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.preview-reasons {
  display: grid;
  gap: 7px;
}

.preview-reasons div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.preview-reasons svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

[data-ann].annotation-target {
  position: relative;
  outline: 3px solid rgba(13, 159, 140, 0.75);
  outline-offset: 3px;
}

.annotation-marker {
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 900;
  z-index: 30;
}

body.annotation-mode [data-ann] {
  cursor: crosshair;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    max-width: none;
    margin: 0;
  }

  .review-panel {
    display: none;
  }

  body.lab-overlay-open .review-panel {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 60;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.97);
    padding: 56px 16px 24px;
    overflow-y: auto;
    animation: labOverlayIn 220ms ease;
  }

  body.lab-overlay-open .lab-close-btn {
    display: grid;
    place-items: center;
  }

  .lab-toggle-btn {
    display: inline-flex;
    align-items: center;
  }

  body.lab-overlay-open .lab-toggle-btn {
    display: none;
  }

  .phone-stage {
    height: 100vh;
    padding: 0;
  }

  .device {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@keyframes labOverlayIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 460px) {
  .gamepad {
    --action-compact-size: 40px;
    --action-main-size: 58px;
    gap: 6px;
  }

  .card-copy h2 {
    font-size: 29px;
  }
}

/* ===== Match strip + chat-list polishing ===== */
.chat-row {
  position: relative;
}

.chat-row.is-current {
  background: rgba(239, 219, 255, 0.42);
}

/* ===== P0 additions: empty state, onboarding, photo-presets ===== */

.is-hidden {
  display: none !important;
}

.profile-card {
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.photo-strip {
  grid-template-columns: repeat(var(--photo-count, 3), 1fr);
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 14px;
  padding: 22px;
  text-align: center;
  border: 1.5px dashed rgba(21, 21, 20, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 235, 228, 0.6));
  box-shadow: 0 16px 38px rgba(33, 28, 22, 0.08);
}

.empty-state svg {
  width: 38px;
  height: 38px;
  color: var(--coral);
}

.empty-state h3 {
  margin: 0;
  font-size: 19px;
}

.empty-state p {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.empty-state .primary-button {
  max-width: 240px;
}

/* Onboarding extra */

.step-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-panel .step-hint {
  margin: -6px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.step-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.step-field span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.step-field input[type="text"],
.step-field input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.step-field input[type="text"]:focus,
.step-field input[type="number"]:focus {
  border-color: rgba(13, 159, 140, 0.55);
  background: white;
}

.step-field input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.step-counter {
  margin: 4px 0 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.photo-preset {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.photo-preset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-preset.is-selected {
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 90, 88, 0.22);
}

.photo-preset.is-selected::after {
  content: "";
  position: absolute;
  inset: auto 8px 8px auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.status-grid {
  display: grid;
  gap: 7px;
}

.status-grid button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.22;
  transition: border-color 160ms ease, background 160ms ease;
}

.status-grid button strong {
  font-size: 14px;
}

.status-grid button small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.status-grid button.is-selected {
  border-color: rgba(103, 75, 181, 0.34);
  background: rgba(239, 219, 255, 0.54);
  color: var(--primary-dark);
}

.selfie-block {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  transition: background 200ms ease, border-color 200ms ease;
}

.selfie-block strong {
  display: block;
  font-size: 14px;
}

.selfie-block p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.selfie-circle {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--line);
}

.selfie-circle svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.selfie-block.is-checking .selfie-circle {
  border-color: var(--coral);
  animation: selfiePulse 900ms ease infinite;
}

.selfie-block.is-done {
  border-color: rgba(13, 159, 140, 0.55);
  background: var(--mint);
}

.selfie-block.is-done .selfie-circle {
  border-color: var(--teal);
}

.selfie-block.is-done .selfie-circle svg {
  color: var(--teal);
}

@keyframes selfiePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.step-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 6px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ghost-button svg {
  width: 18px;
  height: 18px;
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ============== STEP 3 — Blind, Blitz, Voice ============== */

/* Chemistry badge in chat header */
.chat-header .chat-header-meta {
  display: grid;
  gap: 2px;
  margin-right: auto;
  min-width: 0;
}

.chat-header .chat-header-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-header .chat-header-name-row strong {
  font-size: 15px;
}

/* Blitz — two-sided reveal */
.blitz-card.is-answered .blitz-options button {
  opacity: 0.7;
}

.blitz-options button.is-user-pick {
  border-color: var(--coral) !important;
  background: rgba(255, 90, 88, 0.12) !important;
  color: var(--coral-dark) !important;
  opacity: 1 !important;
  position: relative;
}

.blitz-options button.is-user-pick::after {
  content: "вы";
  position: absolute;
  top: -8px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blitz-options button.is-partner-pick {
  border-color: rgba(13, 159, 140, 0.48) !important;
  background: rgba(13, 159, 140, 0.12) !important;
  color: #087564 !important;
  opacity: 1 !important;
  position: relative;
}

.blitz-options button.is-partner-pick::after {
  content: "партнёр";
  position: absolute;
  top: -8px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blitz-options button.is-user-pick.is-partner-pick::after {
  content: "оба!";
  background: linear-gradient(135deg, var(--coral), var(--teal));
}

.blitz-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.blitz-status svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.blitz-status.is-waiting {
  color: #775314 !important;
  background: var(--gold-soft);
  padding: 8px 10px;
  border-radius: 10px;
}

.blitz-status.is-match {
  color: #087564 !important;
  background: var(--mint);
  padding: 9px 10px;
  border-radius: 10px;
  font-weight: 700;
}

.blitz-status.is-diff {
  color: #4a4a45 !important;
  background: var(--surface-2);
  padding: 9px 10px;
  border-radius: 10px;
}

.blitz-status .chem-plus {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), #7a5cf0);
  color: white;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pulsing dot used in waiting states */
.dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 4px;
  animation: dotPulse 1s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Voice card — recording state */
.voice-card .voice-record-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 2px;
}

.voice-card .voice-pulse {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 90, 88, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.voice-card .voice-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 90, 88, 0.35);
  transition: background 200ms ease;
}

.voice-card.is-recording .voice-pulse-dot {
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 90, 88, 0.6);
  animation: voicePulse 1.1s ease-out infinite;
}

@keyframes voicePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 88, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(255, 90, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 88, 0); }
}

.voice-card .voice-progress {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.voice-card .voice-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.voice-card .voice-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--coral), #7a5cf0);
  border-radius: 999px;
  transition: width 220ms linear;
}

.voice-card .voice-progress-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.voice-card.is-recording .voice-progress-time {
  color: var(--coral-dark);
}

.voice-record-btn,
.voice-stop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}

.voice-record-btn {
  background: var(--coral);
  color: white;
}

.voice-stop-btn {
  background: white;
  color: var(--coral-dark);
  border: 1px solid var(--coral);
}

.voice-record-btn svg,
.voice-stop-btn svg {
  width: 14px;
  height: 14px;
}

.voice-card .is-hidden {
  display: none !important;
}

/* Voice bubble in chat — waveform + play */
.bubble.voice-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  min-width: 180px;
  max-width: 78%;
}

.voice-play-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.24);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bubble.voice-bubble.inbound .voice-play-btn {
  background: var(--coral);
  color: white;
}

.voice-play-btn svg {
  width: 16px;
  height: 16px;
}

.voice-waveform {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  height: 28px;
}

.voice-waveform .wf-bar {
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 200ms ease, background 200ms ease;
}

.bubble.voice-bubble.inbound .voice-waveform .wf-bar {
  background: rgba(21, 21, 20, 0.42);
}

.bubble.voice-bubble.is-playing .voice-waveform .wf-bar {
  animation: wfDance 0.9s ease-in-out infinite;
}

.bubble.voice-bubble.is-playing .voice-waveform .wf-bar:nth-child(odd) {
  animation-delay: 0.15s;
}

.bubble.voice-bubble.is-playing .voice-waveform .wf-bar:nth-child(3n) {
  animation-delay: 0.3s;
}

@keyframes wfDance {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.4); }
}

.voice-bubble-time {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

/* Blind composer + typing indicator */
.blind-composer {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.blind-composer input {
  border: 0;
  background: transparent;
  outline: none;
  min-height: 36px;
  font-size: 13px;
  color: var(--ink);
}

.blind-composer .icon-button.send {
  width: 36px;
  height: 36px;
}

.blind-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: white;
  width: max-content;
  margin-top: 4px;
}

.blind-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingDot 1s infinite ease-in-out;
}

.blind-typing span:nth-child(2) { animation-delay: 0.15s; }
.blind-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.reveal-state {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reveal-state svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

#requestBlindReveal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============== DATE PLAN MINI-MAP ============== */

.date-card .date-card-body {
  display: grid;
  gap: 10px;
}

.date-card .mini-map {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  background: var(--surface-2);
  display: block;
}

.date-card .mini-map .map-district.is-active circle:nth-child(2) {
  animation: mapPulse 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes mapPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.date-card .date-card-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: #087564;
  font-size: 11px;
  font-weight: 900;
  width: max-content;
}

.date-card .date-card-pin svg {
  width: 13px;
  height: 13px;
}

.date-card.idea-cycled {
  animation: dateCardBump 320ms ease;
}

@keyframes dateCardBump {
  0% { transform: scale(0.98); }
  60% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.date-card .card-actions button[data-date-cycle] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(13, 159, 140, 0.32);
  background: var(--mint);
  color: #087564;
}

.date-card .card-actions button[data-date-cycle] svg {
  width: 14px;
  height: 14px;
}

/* ============== DROP FINISHED BANNER ============== */

.drop-finished {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 28px 22px;
  margin: 8px 4px;
  border: 1px dashed rgba(255, 90, 88, 0.4);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 90, 88, 0.07), rgba(201, 144, 45, 0.07)),
    white;
  text-align: center;
}

.drop-finished.is-hidden {
  display: none;
}

.drop-finished > svg {
  width: 38px;
  height: 38px;
  color: var(--coral);
}

.drop-finished h3 {
  margin: 0;
  font-size: 17px;
}

.drop-finished p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  max-width: 280px;
}

.drop-finished-actions {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.drop-finished-actions .secondary-button {
  width: 100%;
}

.drop-finished-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

/* ============== SAFETY TOGGLES ============== */

.settings-list .safety-toggle {
  cursor: pointer;
}

.settings-list .premium-toggle {
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
}

.premium-required-label {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(239, 219, 255, 0.78);
  color: var(--primary) !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.premium-toggle.is-premium-ready .premium-required-label {
  display: none;
}

.premium-toggle.is-premium-locked {
  border-color: rgba(103, 75, 181, 0.18);
  background: rgba(239, 219, 255, 0.22);
}

.safety-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(21, 21, 20, 0.18);
  transition: background 200ms ease;
}

.safety-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(21, 21, 20, 0.2);
  transition: left 200ms ease;
}

.safety-toggle.is-on .safety-switch {
  background: var(--primary);
}

.safety-toggle.is-on .safety-switch-knob {
  left: 18px;
}

.safety-toggle.is-on {
  border-color: rgba(103, 75, 181, 0.32);
  background: rgba(239, 219, 255, 0.52);
}

.safety-toggle.is-on svg {
  color: var(--primary);
}

/* ===================================================================
   Toasts — общий канал системных уведомлений
   =================================================================== */

.toast-channel {
  position: absolute;
  inset: auto 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  pointer-events: none;
  z-index: 1000; /* тосты/upsell поверх всех оверлеев (чат-меню=42, шиты≤230) */
}

.device[data-screen="chat"] .toast-channel {
  inset: auto 0 12px;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 88%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #1d1d1c 0%, #2a2a26 100%);
  box-shadow: 0 14px 32px rgba(20, 18, 14, 0.32);
  font-size: 13px;
  font-weight: 800;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.is-leave {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #ffd6a3;
}

.toast .toast-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.toast .toast-body strong {
  font-size: 13px;
  font-weight: 900;
}

.toast .toast-body small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
}

.toast.toast-success {
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  box-shadow: 0 14px 34px rgba(103, 75, 181, 0.34);
}

.toast.toast-success svg {
  color: rgba(239, 219, 255, 0.96);
}

.toast.toast-premium {
  background: linear-gradient(135deg, #c9902d 0%, #a26d18 100%);
}

.toast.toast-premium svg {
  color: #fff3d6;
}

/* Upsell-тосты в цветах подписок: Diamond — ледяной синий, Plus — фиолет */
.toast.toast-premium-diamond {
  background: linear-gradient(135deg, #4a90d9 0%, #2b6fc4 50%, #1b3a72 100%);
}
.toast.toast-premium-diamond svg { color: #d7f2ff; }
.toast.toast-premium-plus {
  background: linear-gradient(135deg, #7a5cf0 0%, #674bb5 100%);
}
.toast.toast-premium-plus svg { color: #efdbff; }

.toast.toast-danger {
  background: linear-gradient(135deg, #dc383a 0%, #a32426 100%);
}

.toast.toast-danger svg {
  color: #ffe4e4;
}

/* ===================================================================
   Skeleton loaders — match-strip, chat-list, premium drop
   =================================================================== */

.skeleton {
  display: block;
  background: linear-gradient(
    100deg,
    rgba(21, 21, 20, 0.06) 0%,
    rgba(21, 21, 20, 0.12) 40%,
    rgba(21, 21, 20, 0.06) 80%
  );
  background-size: 220% 100%;
  border-radius: 8px;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -120% 0; }
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-line-sm { width: 38%; }
.skeleton-line-md { width: 56%; }
.skeleton-line-lg { width: 78%; }

.match-strip .skeleton-avatar {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 68px;
}

.match-strip .skeleton-avatar .skeleton-circle {
  width: 58px;
  height: 58px;
  border-radius: 999px;
}

.match-strip .skeleton-avatar .skeleton-line {
  width: 44px;
}

.chat-list .skeleton-chat-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 8px;
  border: 1px solid rgba(21, 21, 20, 0.08);
  border-radius: 12px;
  background: white;
}

.chat-list .skeleton-chat-row .skeleton-circle {
  width: 54px;
  height: 54px;
  border-radius: 999px;
}

.chat-list .skeleton-chat-row .skeleton-body {
  display: grid;
  gap: 8px;
}

.chat-list .skeleton-chat-row .skeleton-time {
  width: 28px;
  height: 10px;
}

/* ===================================================================
   Inline empty states (внутри списков) — inbox, chat
   =================================================================== */

.empty-state.inline-empty {
  position: relative;
  inset: auto;
  margin: 10px 16px 16px;
  padding: 22px 18px;
}

.empty-state.chat-empty {
  margin: 16px;
}

.empty-state.inline-empty .primary-button {
  margin-top: 4px;
}

/* =========================================================================
   PINPOINT POLISH PATCH (поверх main, ветка polish/pinpoint-on-main)
   Источник: pinpoint-аннотации 2026-05-24/25 (g2aw, j9vc, w1zi, a78j,
   e898, rdby, kfpq, xes6, 1d1e, t59f, 4acg, 87lm, lkgo, hkmy, 48l2, lnty).
   Цель: довести main (5 циклов P0/P1/P2) до Tinder-style без шапок и
   дублей.
   ========================================================================= */

.device {
  width: min(390px, calc(100vw - 24px));
  height: min(844px, calc(100vh - 48px));
  border: 10px solid #0c0c0a;
  border-radius: 44px;
  box-shadow: 0 32px 64px -16px rgba(20, 18, 14, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.device::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  border-radius: 999px;
  background: #0c0c0a;
  z-index: 12;
  pointer-events: none;
}

@media (min-width: 901px) {
  .workspace {
    grid-template-columns: 1fr;
    max-width: none;
    padding: 0;
    gap: 0;
  }
  .review-panel {
    display: none;
  }
  body:not(.lab-mode) .phone-stage {
    height: 100vh;
    padding: 0;
  }
  body:not(.lab-mode) .device {
    width: 100vw;
    height: 100vh;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body:not(.lab-mode) .device::before {
    display: none;
  }
  body.lab-mode .workspace {
    grid-template-columns: minmax(280px, 360px) minmax(420px, 1fr);
    gap: 18px;
    padding: 18px;
    max-width: 1480px;
  }
  body.lab-mode .review-panel {
    display: flex;
  }
}

#screen-discover .discover-topbar,
#screen-discover .discover-drop-card,
#screen-discover .filter-caption,
#screen-discover .quick-filter-row,
#screen-discover .card-badges,
#screen-discover .card-info-button {
  display: none;
}

#screen-discover .card-copy {
  pointer-events: none;
  padding-right: 18px;
  bottom: 20px;
}

#screen-discover .profile-card {
  cursor: pointer;
  min-height: calc(100% + 10px);
  margin-bottom: -10px;
}

.card-copy h2 {
  font-size: 26px;
  line-height: 1.05;
}

#screen-inbox > .app-topbar,
#screen-profile > .app-topbar,
#screen-premium > .app-topbar,
#screen-blind > .app-topbar {
  display: none;
}

#screen-chat .thread-switcher,
#screen-chat .system-note,
#screen-chat .chat-context-card {
  display: none;
}

#screen-chat .bubble.inbound {
  border: 1px solid rgba(103, 75, 181, 0.065);
  background: rgba(252, 247, 255, 0.78);
  color: var(--ink);
}

#screen-chat .bubble.outbound {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(21, 21, 20, 0.08);
}

#screen-chat .bubble.outbound.blitz-answer-bubble {
  border-color: rgba(13, 159, 140, 0.12);
  background: rgba(220, 247, 240, 0.54);
}

#screen-chat .bubble.inbound.blitz-answer-bubble {
  border-color: rgba(13, 159, 140, 0.18);
  background: rgba(169, 234, 219, 0.58);
}

/* =========================================================================
   MATERIAL YOU LAYER (взято из rendez.zip AI Studio)
   Plus Jakarta Sans уже подключён в :root; здесь — glass + ambient + анимации
   ========================================================================= */

.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.ambient-shadow {
  box-shadow: var(--ambient-shadow);
}

.gamepad .action-button {
  box-shadow: 0 8px 20px rgba(20, 18, 14, 0.12);
}

.gamepad .action-button:hover {
  box-shadow: 0 11px 24px rgba(20, 18, 14, 0.18);
}

.action-button.like {
  border: 1.5px solid var(--primary);
  background: #fff;
  box-shadow: 0 9px 22px rgba(103, 75, 181, 0.2);
}

.action-button.like:hover {
  box-shadow: 0 12px 28px rgba(103, 75, 181, 0.28);
}

.action-button.super svg {
  color: var(--super-like);
  fill: none;
  stroke-width: 2.8;
}

.review-panel::-webkit-scrollbar,
.annotation-list::-webkit-scrollbar,
.onboarding-body::-webkit-scrollbar,
.profile-editor::-webkit-scrollbar,
.settings-list::-webkit-scrollbar,
.plan-list::-webkit-scrollbar,
.blind-body::-webkit-scrollbar,
.chat-list::-webkit-scrollbar,
.settings-page::-webkit-scrollbar,
.composer textarea::-webkit-scrollbar,
.profile-preview-panel::-webkit-scrollbar,
.city-options::-webkit-scrollbar,
#accountSheetBody::-webkit-scrollbar,
.chat-report-dialog::-webkit-scrollbar,
.message-thread::-webkit-scrollbar,
.sheet-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.review-panel::-webkit-scrollbar-button,
.annotation-list::-webkit-scrollbar-button,
.onboarding-body::-webkit-scrollbar-button,
.profile-editor::-webkit-scrollbar-button,
.settings-list::-webkit-scrollbar-button,
.plan-list::-webkit-scrollbar-button,
.blind-body::-webkit-scrollbar-button,
.chat-list::-webkit-scrollbar-button,
.settings-page::-webkit-scrollbar-button,
.composer textarea::-webkit-scrollbar-button,
.profile-preview-panel::-webkit-scrollbar-button,
.city-options::-webkit-scrollbar-button,
#accountSheetBody::-webkit-scrollbar-button,
.chat-report-dialog::-webkit-scrollbar-button,
.message-thread::-webkit-scrollbar-button,
.sheet-panel::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.review-panel::-webkit-scrollbar-track,
.annotation-list::-webkit-scrollbar-track,
.onboarding-body::-webkit-scrollbar-track,
.profile-editor::-webkit-scrollbar-track,
.settings-list::-webkit-scrollbar-track,
.plan-list::-webkit-scrollbar-track,
.blind-body::-webkit-scrollbar-track,
.chat-list::-webkit-scrollbar-track,
.settings-page::-webkit-scrollbar-track,
.composer textarea::-webkit-scrollbar-track,
.profile-preview-panel::-webkit-scrollbar-track,
.city-options::-webkit-scrollbar-track,
#accountSheetBody::-webkit-scrollbar-track,
.chat-report-dialog::-webkit-scrollbar-track,
.message-thread::-webkit-scrollbar-track,
.sheet-panel::-webkit-scrollbar-track {
  margin-block: 14px 10px;
  border-radius: 999px;
  background: transparent;
}

.review-panel::-webkit-scrollbar-thumb,
.annotation-list::-webkit-scrollbar-thumb,
.onboarding-body::-webkit-scrollbar-thumb,
.profile-editor::-webkit-scrollbar-thumb,
.settings-list::-webkit-scrollbar-thumb,
.plan-list::-webkit-scrollbar-thumb,
.blind-body::-webkit-scrollbar-thumb,
.chat-list::-webkit-scrollbar-thumb,
.settings-page::-webkit-scrollbar-thumb,
.composer textarea::-webkit-scrollbar-thumb,
.profile-preview-panel::-webkit-scrollbar-thumb,
.city-options::-webkit-scrollbar-thumb,
#accountSheetBody::-webkit-scrollbar-thumb,
.chat-report-dialog::-webkit-scrollbar-thumb,
.message-thread::-webkit-scrollbar-thumb,
.sheet-panel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-container), var(--primary));
  background-clip: padding-box;
}

/* Полноэкранный профиль — скроллбар полностью скрыт (перебивает групповые правила выше) */
#profilePreview .profile-preview-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#profilePreview .profile-preview-panel::-webkit-scrollbar,
#profilePreview .profile-preview-panel::-webkit-scrollbar-thumb,
#profilePreview .profile-preview-panel::-webkit-scrollbar-track {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  display: none !important;
}

/* Premium-планы — кнопка активации с фиолетовым градиентом */
.primary-button.is-premium {
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  box-shadow: 0 8px 24px rgba(103, 75, 181, 0.28);
}
/* Кнопка подписки на экране Premium — без заливки (перебивает правило выше) */
#screen-premium .primary-button {
  background: transparent;
  box-shadow: none;
}
#screen-premium .primary-button:disabled {
  background: var(--teal);
}

/* Verify-badge — мятный secondary-container вместо teal */
.verify-badge {
  color: var(--secondary);
  background: var(--secondary-container);
}

/* «Популярный» — tertiary-fixed pastel */
.premium-kicker {
  background: var(--tertiary-fixed);
  color: var(--on-tertiary-fixed);
}

/* keyframe используется paywall-шторкой (.paywall-panel) */
@keyframes storeSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ============== МАГАЗИН (внутри экрана Premium) ============== */
.premium-store {
  margin: 18px 16px 4px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2, #faf9f4);
  box-shadow: 0 0 0 1px rgba(103, 75, 181, 0.1) inset;
}
.premium-store.is-flash {
  animation: premiumStoreFlash 1.1s ease-out;
}
@keyframes premiumStoreFlash {
  0% { box-shadow: 0 0 0 2px rgba(103, 75, 181, 0.7); }
  100% { box-shadow: 0 0 0 1px rgba(103, 75, 181, 0.1) inset; }
}
.premium-store-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.premium-store-head > svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.premium-store-head strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.premium-store-head span { font-size: 12px; color: var(--muted); }

/* Баланс расходников — наверху экрана Premium, над бриллиантом */
.store-wallet {
  display: flex;
  gap: 8px;
  margin: 14px 16px 2px;
}
.store-wallet .w-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 6px;
  border-radius: 12px;
  background: var(--soft, #f4f2fa);
  box-shadow: 0 0 0 1px rgba(103, 75, 181, 0.08) inset;
}
/* число строго по центру ячейки (auto-колонка меж двух равных 1fr), значок слева от него */
.store-wallet .w-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5px; min-height: 18px; }
.store-wallet .w-top > :first-child { justify-self: end; }
.store-wallet .w-item b { font-size: 16px; color: var(--ink); }
.store-wallet .w-label { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.15; }
.store-wallet .w-item svg { width: 15px; height: 15px; color: var(--primary); }
.store-wallet .w-icon-circle {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--super-like);
  border-radius: 999px;
  color: var(--super-like);
  flex: 0 0 18px;
}
.store-wallet .w-icon-circle svg {
  width: 12px;
  height: 12px;
  color: var(--super-like); /* супер-лайк — розовый (#e0457a), как discover-кнопка */
}
.store-wallet .w-rocket {
  transform: rotate(-45deg);
  transform-origin: center;
}
.store-wallet .w-letter-icon {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: var(--primary);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-3px);
}

.store-items { display: flex; flex-direction: column; gap: 10px; }
.store-item {
  border-radius: 14px;
  background: var(--soft, #f6f4fb);
  box-shadow: 0 0 0 1px rgba(103, 75, 181, 0.08) inset;
  overflow: hidden;
}
.store-item-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
}
.store-item-text { flex: 1 1 100%; min-width: 0; }
.store-item-head { display: flex; align-items: center; gap: 6px; }
.store-item-text b { font-size: 14px; color: var(--ink); }
.store-item-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 1px; }
.store-item-aside {
  flex: 1 0 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 34px;
}
.store-item-price { min-width: 38px; font-size: 14px; font-weight: 800; color: var(--primary); text-align: right; }
.store-item-stepper {
  width: 82px;
  height: 32px;
  display: grid;
  grid-template-columns: 28px 22px 28px;
  align-items: center;
  justify-items: center;
  padding: 2px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(103, 75, 181, 0.16) inset;
}
.store-item-stepper b {
  min-width: 16px;
  text-align: center;
  font-size: 14px;
  line-height: 28px;
  font-weight: 800;
  color: var(--ink);
}
.store-step {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(103, 75, 181, 0.1);
  color: var(--primary);
  cursor: pointer;
  line-height: 0;
}
.store-step svg { display: block; width: 17px; height: 17px; stroke-width: 2.25; }
/* disabled '−' гасим только цветом значка (фон тот же) — чтобы степпер не выглядел кривым/несимметричным */
.store-step:disabled { color: rgba(103, 75, 181, 0.3); cursor: default; }
.store-step:focus-visible {
  outline: 2px solid rgba(103, 75, 181, 0.34);
  outline-offset: -3px;
}
.store-step:active:not(:disabled) { transform: scale(0.92); }

.store-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 0 0;        /* кнопка слева, цена+счётчик справа в том же ряду */
  min-height: 36px;
  padding: 0 11px;
  border: 2px solid rgba(103, 75, 181, 0.62);
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;       /* текст «Купить · {сумма}» не переносится */
  cursor: pointer;
}
.store-buy[hidden] { display: none; }
.store-buy:active { transform: scale(0.98); }

/* Модалка подтверждения покупки */
.buy-confirm {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: none;
}
.buy-confirm.is-open {
  display: grid;
  place-items: center;
  padding: 28px 22px;
}
.buy-confirm-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 20, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.buy-confirm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 56px rgba(21, 21, 20, 0.3);
  animation: planDetailsIn 0.2s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.buy-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-container, #efdbff);
  color: var(--primary);
}
.buy-confirm-icon svg { width: 24px; height: 24px; }
.buy-confirm-dialog h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.buy-confirm-line { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.buy-confirm-line b { color: var(--ink); }
.buy-confirm-actions { display: flex; gap: 10px; }
.buy-confirm-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.buy-confirm-cancel { background: var(--soft, #f1eef8); color: var(--ink); }
.buy-confirm-pay { background: var(--primary, #674bb5); color: #fff; }
.buy-confirm-actions button:active { transform: scale(0.97); }

/* ============== СЧЁТЧИК «СКОЛЬКО ТЕБЯ ЛАЙКНУЛИ» ============== */
/* Компактная пилюля-сердечко в левом верхнем углу карточки — зеркало тир-чипа
   (premium-chip справа). Тот же уровень (top:14) и размер. */
.likes-meter {
  position: absolute;
  left: 28px;
  top: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 0 11px 0 9px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(140, 112, 250, 0.5), rgba(116, 86, 205, 0.46));
  box-shadow: 0 2px 10px rgba(103, 75, 181, 0.2), 0 0 0 1px rgba(239, 219, 255, 0.4) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 0.15s;
}
.likes-meter:active { transform: scale(0.94); }
.likes-meter svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

/* Paywall «лайки закончились» — нижняя шторка как у магазина. */
.paywall-sheet {
  position: absolute;
  inset: 0;
  z-index: 26;
  display: none;
}
.paywall-sheet.is-open { display: block; }
.paywall-sheet .sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 20, 0.5);
  backdrop-filter: blur(2px);
}
.paywall-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 8px 20px 26px;
  box-shadow: 0 -16px 50px rgba(21, 21, 20, 0.3);
  text-align: center;
  animation: storeSheetUp 0.26s cubic-bezier(0.25, 0.8, 0.3, 1) both;
}
.paywall-panel .sheet-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(21, 21, 20, 0.16);
  margin: 0 auto 16px;
}
.paywall-icon {
  width: 60px;
  height: 60px;
  margin: 4px auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 90, 138, 0.16), rgba(103, 75, 181, 0.16));
  color: #e0457a;
}
.paywall-icon svg { width: 30px; height: 30px; }
.paywall-panel h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}
.paywall-panel p {
  margin: 0 auto 18px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.paywall-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.paywall-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  text-align: left;
  transition: transform 0.15s;
}
.paywall-cta:active { transform: scale(0.98); }
.paywall-cta.plus { background: linear-gradient(135deg, #7a5cf0, #674bb5); }
.paywall-cta.diamond { background: linear-gradient(135deg, #1b3a72, #4a90d9 55%, #1b3a72); }
.paywall-cta-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 800;
}
.paywall-cta-name svg { width: 16px; height: 16px; }
.paywall-cta.plus .paywall-cta-name svg { stroke-width: 3.2; }
.paywall-cta-desc { font-size: 12px; opacity: 0.85; }
.paywall-cta-price { font-size: 16px; font-weight: 800; white-space: nowrap; }
.paywall-cta-price small { font-size: 11px; font-weight: 600; opacity: 0.8; }
.paywall-dismiss {
  margin-top: 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ============== CHAT GATE (барьер из 3 вопросов, asker-side) ============== */
.chat-gate {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: none;
  background: var(--surface, #faf9f4);
}
.chat-gate.is-open { display: block; }
.chat-gate-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 44px 18px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}
.chat-gate-inner::-webkit-scrollbar { display: none; }
.chat-gate-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.chat-gate-back {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(20, 18, 16, 0.82);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-gate-back svg { width: 18px; height: 18px; }
.chat-gate-mode {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.chat-gate-mode.is-hard { background: rgba(220, 38, 38, 0.14); color: #d12d2d; }
.chat-gate-mode.is-soft { background: rgba(13, 159, 140, 0.16); color: #0a6b5f; }
.chat-gate-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.chat-gate-head img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(103, 75, 181, 0.32);
  flex-shrink: 0;
}
.chat-gate-head-text strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.chat-gate-head-text span { font-size: 13px; color: var(--muted); }
.chat-gate-hint {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.chat-gate-questions { display: flex; flex-direction: column; gap: 18px; }
.cg-q { font-size: 14px; font-weight: 700; margin-bottom: 9px; color: var(--ink); }
.cg-options { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-option {
  border: 1.5px solid rgba(20, 18, 16, 0.18);
  border-radius: 12px;
  background: #fff;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s, transform 0.1s;
}
.cg-option:active { transform: scale(0.97); }
.cg-option.is-selected {
  border-color: var(--primary);
  background: rgba(103, 75, 181, 0.12);
  color: var(--primary);
}
.chat-gate-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.chat-gate-result.is-fail { background: rgba(220, 38, 38, 0.1); color: #c62828; }
.chat-gate-result svg { width: 18px; height: 18px; flex-shrink: 0; }
.cg-retry {
  margin-left: auto;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
  cursor: pointer;
}
.chat-gate-submit {
  margin-top: 22px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(103, 75, 181, 0.28);
  transition: transform 0.12s, box-shadow 0.15s;
}
.chat-gate-submit:not(:disabled):active { transform: scale(0.98); }
.chat-gate-submit:disabled {
  background: rgba(20, 18, 16, 0.12);
  color: rgba(20, 18, 16, 0.4);
  box-shadow: none;
  cursor: not-allowed;
}

/* ===== Product pass: profile/premium/chat shared controls ===== */
.premium-heading-badges,
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.premium-heading-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.block-badge-diamond,
.tier-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.block-badge-diamond,
.tier-badge.tier-diamond {
  background: linear-gradient(135deg, rgba(197, 235, 255, 0.92), rgba(235, 248, 255, 0.74));
  color: #1b4d7a;
  box-shadow: inset 0 0 0 1px rgba(97, 160, 214, 0.28);
}

.tier-badge.tier-plus {
  background: rgba(239, 219, 255, 0.82);
  color: var(--primary-dark);
}

.block-badge-diamond svg,
.tier-badge svg {
  width: 13px;
  height: 13px;
}

/* Групповые разделители Plus / Diamond в премиум-списке */
.tier-group-label {
  padding: 6px 8px 6px;
  margin-top: 16px;
}
/* первый ярлык (+Plus сразу под «Премиум-настройки») — меньше воздуха */
.plus-control-list .tier-group-label:first-child {
  margin-top: 2px;
}
.tier-group-label .block-badge-plus {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  background: linear-gradient(135deg, #7a5cf0, #674bb5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(103, 75, 181, 0.22);
}
.tier-group-label .block-badge-plus svg {
  width: 13px;
  height: 13px;
  color: #fff;
  stroke-width: 3.2;
}
.tier-group-label .block-badge-diamond {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tier-locked-row.settings-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.settings-line.is-tier-locked {
  color: rgba(73, 69, 82, 0.58);
  background: rgba(239, 238, 233, 0.56);
  cursor: pointer;
}

.settings-line.is-tier-locked > span:first-child {
  color: rgba(73, 69, 82, 0.58);
}

.settings-line.is-tier-locked .settings-switch {
  --switch-track-off: rgba(21, 21, 20, 0.24);
  --switch-thumb-off: linear-gradient(180deg, #dadbe1 0%, #c4c6ce 100%);
  --switch-thumb-shadow-off:
    inset 0 0 0 1px rgba(21, 21, 20, 0.08),
    0 2px 6px rgba(21, 21, 20, 0.24);
  opacity: 0.62;
  filter: grayscale(0.15);
}

.music-track.ym-preview-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-areas:
    "cover meta"
    "cover link";
  align-items: center;
  gap: 4px 10px;
  padding: 10px;
  border: 1px solid rgba(103, 75, 181, 0.12);
  border-radius: 14px;
  background: #fff;
}

.ym-cover {
  grid-area: cover;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}

.ym-preview-card .music-meta {
  grid-area: meta;
  min-width: 0;
}

.ym-preview-card .music-link {
  grid-area: link;
  justify-self: start;
  margin-top: 2px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.music-link-editor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-2);
}

.music-link-editor input {
  min-width: 0;
  border: 1px solid rgba(103, 75, 181, 0.2);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.music-link-editor button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--coral);
  font-weight: 800;
  font-size: 13px;
}

#screen-premium .premium-hero h2 {
  font-family: "Marck Script", "Manrope", sans-serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-carousel {
  /* flex-item в колоночном #screen-premium: без этого overflow:hidden даёт
     авто-min-size 0 и карусель схлопывается. Сайзим по контенту, не шринкуем. */
  flex: 0 0 auto;
  overflow: hidden;
  margin-top: 14px;
  padding: 0 16px 4px;
}

#screen-premium .plan-list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  min-height: auto;
  padding: 0;
  overflow: visible;
  flex: 0 0 auto;
  /* Карточка = 88% ширины карусели → ~12% соседней выглядывает.
     index 0 (Plus): прижата влево, Diamond торчит справа.
     index 1 (Diamond): сдвиг меньше ширины карточки → Diamond прижат вправо,
     слева торчит розовый кусочек Plus (симметричный peek). */
  transform: translateX(calc(var(--plan-index, 0) * (-76% - 18px)));
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.3, 1);
  touch-action: pan-y;
}

#screen-premium .plan-card {
  flex: 0 0 88%;
  min-height: auto;
  border-radius: 18px;
}

.plan-watermark {
  position: absolute !important;
  left: 50%;
  top: 26%;
  z-index: 0 !important;
  /* Слово на фоне, по диагонали снизу-слева вверх-вправо.
     ВАЖНО: background-IMAGE (не shorthand) — иначе shorthand сбрасывает
     background-clip в border-box и вместо букв получается серый прямоугольник.
     База = Plus (светлая карточка): ТЁМНО-серый без белого, иначе светлая
     середина сливается с лавандовым фоном и буквы не читаются. */
  transform: translate(-50%, -50%) rotate(-20deg);
  transform-origin: center;
  white-space: nowrap;
  font-size: clamp(52px, 17vw, 84px) !important;
  line-height: 0.8;
  font-weight: 900 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(
    100deg,
    rgba(92, 92, 110, 0.7),
    rgba(132, 132, 150, 0.95),
    rgba(168, 168, 184, 1),
    rgba(132, 132, 150, 0.95),
    rgba(92, 92, 110, 0.7)
  ) !important;
  background-size: 230% 100% !important;
  background-position: 0% 50%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: planWatermarkSilver 2.8s linear infinite;
}

@keyframes planWatermarkSilver {
  0% { background-position: 120% 50%; }
  100% { background-position: -20% 50%; }
}

#screen-premium .plan-card.plan-plus.is-selected::before {
  content: none;
}

.plan-card.plan-diamond .plan-watermark,
.plan-details-dialog.plan-diamond .plan-watermark {
  /* Светлое серебро на тёмном фоне, но слабее — еле заметный фон, не «впендюрено» */
  opacity: 0.28;
  color: transparent !important;
  background-image: linear-gradient(
    100deg,
    rgba(205, 210, 222, 0.55),
    rgba(228, 232, 242, 0.9),
    rgba(255, 255, 255, 1),
    rgba(228, 232, 242, 0.9),
    rgba(205, 210, 222, 0.55)
  ) !important;
  background-size: 230% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

@keyframes planWatermarkFlow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

#screen-premium .plan-card.plan-diamond .plan-diamond-bg {
  right: 8px;
  width: 190px;
  height: 190px;
  color: rgba(220, 244, 255, 0.20);
}

#screen-premium .plan-card.plan-diamond .plan-diamond-glint {
  animation-duration: 2.2s;
}

.plan-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 2px;
}

.plan-carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(103, 75, 181, 0.22);
  transition: width 0.18s, background 0.18s;
}

.plan-carousel-dots span.is-active {
  width: 22px;
  background: var(--primary);
}

/* ===== «Узнать подробнее»: кнопка в карточке + модалка деталей тарифа ===== */
.plan-details-btn {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px 26px;
  border-radius: 12px;
  border: 1px solid rgba(103, 75, 181, 0.3);
  background: rgba(255, 255, 255, 0.55);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}
.plan-details-btn:active { background: rgba(255, 255, 255, 0.9); }
.plan-details-btn svg { width: 16px; height: 16px; }
.plan-card.plan-diamond .plan-details-btn {
  border-color: rgba(180, 220, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf4ff;
}

.plan-details {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: none;
}
.plan-details.is-open {
  display: grid;
  place-items: center;
  padding: 28px 18px;
}
.plan-details-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 20, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.plan-details-dialog {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  max-height: calc(100% - 44px);
  border-radius: 20px;
  text-align: left;
  animation: planDetailsIn 0.22s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.plan-details-scroll {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: grid;
  gap: 5px;
  padding: 18px;
}
.plan-details-scroll::-webkit-scrollbar { display: none; }
.plan-details-scroll > * { position: relative; z-index: 1; }
.plan-details-dialog .plan-watermark { z-index: 0 !important; }
.plan-details-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(21, 21, 20, 0.08);
  color: #151514;
  cursor: pointer;
  transition: background 0.15s;
}
.plan-details-close:active { background: rgba(21, 21, 20, 0.16); }
.plan-details-close svg { width: 20px; height: 20px; }
.plan-details-dialog.plan-diamond .plan-details-close {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(214, 224, 240, 0.92);
}
.plan-details-dialog.plan-plus {
  border: 1px solid rgba(103, 75, 181, 0.34);
  background: linear-gradient(180deg, rgba(239, 219, 255, 0.95), #ffffff);
  color: var(--primary);
}
.plan-details-dialog.plan-diamond {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, #0e1d40 0%, #1b3a72 45%, #0c193a 100%) padding-box,
    linear-gradient(135deg, #b7e6ff, #ffffff 30%, #7fb6ff 55%, #e3f5ff 80%) border-box;
  color: #eaf4ff;
  box-shadow: 0 24px 56px rgba(30, 90, 190, 0.55);
}
.plan-details-tier {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.plan-details-dialog.plan-diamond .plan-details-tier { color: rgba(200, 230, 255, 0.8); }
.plan-details-dialog strong { margin-top: 4px; font-size: 24px; line-height: 1.08; }
.plan-details-scroll > small { margin: 6px 0 2px; font-size: 13px; opacity: 0.85; }
/* В модалке плашки полупрозрачные — watermark проступает на всю высоту карточки */
.plan-details-dialog.plan-plus .premium-feature-item {
  background: rgba(255, 255, 255, 0.52);
}
.plan-details-dialog.plan-diamond .premium-feature-item {
  border-color: rgba(150, 205, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}
.plan-details-dialog.plan-diamond .premium-feature-item > span { color: #d8ecff; }
.plan-details-dialog.plan-diamond .premium-feature-list svg { color: #bfe6ff; }
.plan-subscribe-cta {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.plan-subscribe-cta svg { width: 18px; height: 18px; }
.plan-details-dialog.plan-diamond .plan-subscribe-cta {
  background: linear-gradient(135deg, #7fb6ff, #b7e6ff);
  color: #0c193a;
}
@keyframes planDetailsIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Compatibility questionnaire ===== */
.card-compatibility {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.card-compatibility.is-hidden {
  display: none;
}

.card-compatibility span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.card-compatibility svg {
  width: 15px;
  height: 15px;
  color: #efdbff;
}

.card-compatibility small {
  max-width: 238px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.compatibility-premium {
  display: grid;
  gap: 12px;
  margin: 14px 16px 0;
  padding: 14px;
  border: 1px solid rgba(103, 75, 181, 0.18);
  border-radius: 16px;
  background: var(--surface);
}

.compatibility-premium-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.compatibility-premium-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
}

.compatibility-premium-icon svg {
  width: 22px;
  height: 22px;
}

.compatibility-premium strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.compatibility-premium small,
.compatibility-premium p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.compatibility-premium p {
  margin: 0;
}

.compatibility-start,
.compatibility-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--primary-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
}

.compatibility-start svg,
.compatibility-primary svg {
  width: 17px;
  height: 17px;
}

.compatibility-primary:disabled {
  opacity: 0.45;
}

.compatibility-mini-list {
  display: grid;
  gap: 8px;
}

.compatibility-mini-list button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: left;
}

.compatibility-mini-list img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.compatibility-mini-list b,
.compatibility-mini-list small {
  display: block;
}

.compatibility-mini-list b {
  color: var(--ink);
  font-size: 13px;
}

.compatibility-mini-list small,
.compatibility-mini-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.compatibility-flow {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: none;
  background: var(--surface);
}

.compatibility-flow.is-open {
  display: block;
}

.compatibility-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  background: var(--surface);
}

.compatibility-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 10px 14px 6px;
}

.compatibility-progress {
  height: 4px;
  margin: 0 16px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.compatibility-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-container), var(--primary));
  transition: width 180ms ease;
}

.compatibility-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px 24px;
  scrollbar-width: none;
}

.compatibility-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.compatibility-question {
  display: grid;
  gap: 16px;
}

.compatibility-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compatibility-question h2,
.compatibility-finish h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: 0;
}

.compatibility-help {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.compatibility-options,
.compatibility-accepted,
.compatibility-importance {
  display: grid;
  gap: 8px;
}

.compatibility-options button,
.compatibility-accepted button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
}

.compatibility-options.compact {
  grid-template-columns: 1fr;
}

.compatibility-options button.is-selected,
.compatibility-accepted button.is-selected,
.compatibility-importance-row button.is-selected {
  border-color: rgba(103, 75, 181, 0.34);
  background: rgba(239, 219, 255, 0.54);
  color: var(--primary-dark);
}

.compatibility-accepted h3,
.compatibility-importance h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.compatibility-importance-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.compatibility-importance-row button {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
}

.compatibility-importance-row b {
  font-size: 15px;
}

.compatibility-importance-row span {
  max-width: 100%;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
}

.compatibility-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 2px;
}

.compatibility-finish {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 100%;
  text-align: center;
}

.compatibility-finish-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
}

.compatibility-finish-icon svg {
  width: 30px;
  height: 30px;
}

.compatibility-finish p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pv-compatibility p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.pv-compatibility ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-compatibility li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.pv-compatibility li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
}

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(73, 69, 82, 0.12);
  color: rgba(73, 69, 82, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.info-popover {
  position: absolute;
  z-index: 40;
  width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(35, 32, 42, 0.94);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 14px 34px rgba(21, 21, 20, 0.28);
}

.chat-menu-popover {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: block;
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.chat-menu-popover.is-hidden {
  display: none;
}

.chat-menu-scrim {
  display: none;
}

.chat-menu-dialog {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-content: start;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: auto;
  padding: 14px 16px 12px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chat-menu-dialog::-webkit-scrollbar {
  display: none;
}

.chat-menu-window-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 54px;
  margin: 0 0 8px;
}

.chat-menu-window-header strong {
  justify-self: center;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

/* X закрытия — без рамки/фона, как кнопка «назад» в чате (.chat-back-button) */
.chat-menu-window-header .icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.chat-menu-section {
  display: grid;
  gap: 7px;
}

.chat-menu-section-plus,
.chat-menu-section-diamond {
  gap: 3px;
}

.chat-menu-section-diamond {
  margin-top: 22px;
}

.chat-menu-section-general {
  margin-top: 22px;
}

.chat-menu-actions {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}

.chat-menu-tier-heading {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0 4px;
  margin-bottom: 8px; /* бейдж→строка как в профиле (~14px, было зажато ~5px) */
}

.chat-menu-tier-heading:not(:first-child) {
  margin-top: 2px;
}

.chat-menu-tier-heading .settings-plus-badge,
.chat-menu-tier-heading .block-badge-diamond {
  margin-left: 0;
}

.chat-menu-popover .settings-line {
  min-height: 42px;
  padding: 8px 10px;
  border-bottom: 0;
  border-radius: 12px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(73, 69, 82, 0.06);
}

.chat-menu-popover .settings-line > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
}

.chat-menu-popover .settings-line .settings-switch {
  flex: 0 0 auto;
  opacity: 1;
  filter: none;
}

/* locked-строка в чате = как в профиле (серый «недоступно»), а не белая/нормальная */
.chat-menu-popover .settings-line.is-tier-locked {
  background: rgba(239, 238, 233, 0.56);
  color: rgba(73, 69, 82, 0.58);
}

.chat-menu-popover .settings-line.is-tier-locked > span:first-child {
  color: rgba(73, 69, 82, 0.58);
}

.chat-menu-popover .settings-line.is-tier-locked .settings-switch {
  --switch-track-off: rgba(21, 21, 20, 0.24);
  --switch-thumb-off: linear-gradient(180deg, #dadbe1 0%, #c4c6ce 100%);
  --switch-thumb-shadow-off:
    inset 0 0 0 1px rgba(21, 21, 20, 0.08),
    0 2px 6px rgba(21, 21, 20, 0.24);
  background: var(--switch-track-off);
  opacity: 0.76;
  filter: none;
}

.chat-menu-popover svg {
  width: 17px;
  height: 17px;
}

.danger-soft {
  color: var(--danger);
}

.chat-menu-popover [data-chat-action] {
  color: var(--ink);
}

.chat-menu-popover [data-chat-action] > span:first-child {
  color: var(--ink);
}

.chat-menu-popover [data-chat-action="block"] > span:first-child svg,
.chat-menu-popover [data-chat-action="report"] > span:first-child svg {
  color: var(--danger);
}

.chat-menu-popover [data-chat-action="block"].is-on .settings-switch,
.chat-menu-popover [data-chat-action="block"][aria-pressed="true"] .settings-switch {
  background: linear-gradient(135deg, #ff6f75 0%, #dc3b55 52%, #9f2542 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 4px 10px rgba(183, 40, 65, 0.22);
}

.chat-menu-popover [data-chat-action="block"].is-on .settings-switch span,
.chat-menu-popover [data-chat-action="block"][aria-pressed="true"] .settings-switch span {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 2px 7px rgba(122, 19, 42, 0.24);
}

.chat-report-modal {
  position: absolute;
  inset: 0;
  z-index: 46;
  display: none;
}

.chat-report-modal.is-open {
  display: block;
}

.chat-report-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(21, 21, 20, 0.38);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.chat-report-dialog {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 82px;
  display: grid;
  gap: 12px;
  max-height: min(76%, 470px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(103, 75, 181, 0.16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 62px rgba(21, 21, 20, 0.30);
  outline: none;
  -webkit-overflow-scrolling: touch;
}

.chat-report-head {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-left: -6px;
}

.chat-report-close {
  display: grid;
  place-items: center;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--primary);
}

.chat-report-close svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.8;
}

.chat-report-dialog h3 {
  margin: -4px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.chat-report-dialog p {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.chat-report-options {
  display: grid;
  gap: 8px;
}

.chat-report-options button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(73, 69, 82, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(73, 69, 82, 0.03);
}

.chat-report-options button span {
  font-size: 14px;
  font-weight: 900;
}

.chat-report-options button small {
  grid-column: 1 / 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.chat-report-options button svg {
  grid-row: 1 / span 2;
  grid-column: 2 / 3;
  width: 20px;
  height: 20px;
  color: transparent;
  stroke-width: 3;
}

.chat-report-options button.is-selected {
  border-color: rgba(220, 59, 85, 0.30);
  background: linear-gradient(135deg, rgba(255, 237, 234, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(220, 59, 85, 0.13),
    0 8px 18px rgba(183, 40, 65, 0.12);
}

.chat-report-options button.is-selected svg {
  color: #dc3b55;
}

.chat-report-submit {
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff6f75 0%, #dc3b55 52%, #9f2542 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(183, 40, 65, 0.22);
}

.chat-report-submit:disabled {
  background: rgba(21, 21, 20, 0.14);
  color: rgba(21, 21, 20, 0.42);
  box-shadow: none;
}

.safety-page-list {
  padding: 12px 16px 24px;
}

/* Ряды документов/данных: .settings-list button задаёт grid 38px/1fr/auto (под icon-led
   кнопки) → у наших безиконочных рядов лейбл падает в 38px-колонку и переносится.
   2 колонки: лейбл (1fr) + шеврон (auto). */
.safety-page-list .settings-section .settings-line.split {
  grid-template-columns: 1fr auto;
}

.safety-danger-section {
  margin-top: 16px;
  padding-bottom: 4px;
}

.safety-page-list .safety-delete-line,
.safety-page-list .safety-delete-line > span:first-child {
  color: #b23a50;
  font-weight: 800;
}

.safety-page-list .safety-delete-line .settings-line-meta svg {
  color: #b23a50;
}

.safety-page-list .safety-delete-line:active {
  background: color-mix(in srgb, var(--danger-soft) 68%, white);
}

.safety-history-section {
  margin: 0 0 12px;
}

.safety-list {
  display: grid;
  gap: 8px;
}

.safety-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(103, 75, 181, 0.08);
}

.safety-list-item span {
  min-width: 0;
}

.safety-list-item b,
.safety-list-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.safety-list-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.safety-list-item button {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(239, 219, 255, 0.82);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.safety-empty {
  padding: 18px 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px dashed rgba(103, 75, 181, 0.20);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

#screen-chat.is-gated .message-thread,
#screen-chat.is-gated .composer,
#screen-chat.is-gated .chat-context-card {
  filter: blur(2px);
  opacity: 0.42;
  pointer-events: none;
}

.chat-gate {
  background: transparent;
}

.chat-gate-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 20, 0.46);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.chat-gate-inner {
  inset: auto 16px 86px;
  max-height: min(78%, 540px);
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 21, 20, 0.30);
}

.chat-gate-top {
  justify-content: flex-start;
  margin-bottom: 4px;
}

.chat-gate-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  display: grid;
  place-items: center;
}

.chat-gate-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.chat-gate-choice {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.chat-gate-choice button {
  min-height: 46px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 900;
}

.chat-gate-choice-primary {
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  color: #fff;
}

.chat-gate-choice-secondary {
  background: rgba(239, 219, 255, 0.68);
  color: var(--primary-dark);
}

.chat-gate-questions[hidden],
.chat-gate-choice[hidden],
.chat-gate-submit[hidden] {
  display: none;
}

.bubble.is-blurred-answer .message-text {
  display: inline-block;
  min-width: 118px;
  filter: blur(4px);
  user-select: none;
}

.spark-revive-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  white-space: nowrap;
}

.spark-revive-title svg {
  display: none;
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.spark-revive-title strong {
  color: inherit;
}

.spark-revive-quota {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: end;
  min-height: 28px;
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.spark-pulse-icon::before,
.spark-pulse-icon::after {
  content: none;
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(103, 75, 181, 0.22);
  animation: none;
}

.spark-pulse-icon::after {
  animation-delay: 0.42s;
}

@keyframes sparkPulseRing {
  0% { transform: scale(0.76); opacity: 0.72; }
  100% { transform: scale(1.55); opacity: 0; }
}

.spark-revive-option {
  cursor: default;
}

.spark-topic-actions button {
  border-color: rgba(103, 75, 181, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.spark-topic-actions button.is-selected,
.spark-topic-card.is-selected {
  border-color: rgba(103, 75, 181, 0.28);
  background: rgba(239, 219, 255, 0.58);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(103, 75, 181, 0.08);
}

.spark-topic-card {
  gap: 5px;
}

.spark-topic-card svg {
  width: 14px;
  height: 14px;
  color: var(--ink);
}

.spark-topic-card small {
  display: inline-grid;
  place-items: center;
  margin-left: 2px;
  color: #44789f;
}

.spark-topic-card.is-locked {
  opacity: 0.56;
  filter: grayscale(0.35);
}

/* ===== Новые поля профиля: дата рождения, зодиак, языки, голос, ещё о тебе ===== */
.step-field input[type="date"] {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
}
.step-field input[type="date"]:focus {
  border-color: var(--coral);
  background: #fff;
}
.step-field-hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}

.block-subnote {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.profile-readonly-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.profile-readonly-row > span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.profile-readonly-row > strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--coral-dark);
}

.extra-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.extra-field:first-of-type {
  margin-top: 4px;
}
.extra-field-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.extra-field-label small {
  margin-left: 6px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--coral);
}
.mbti-grid button {
  letter-spacing: 0.03em;
}

/* Голосовое интро — рекордер-макет */
.voice-record-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.voice-record-cta:active { transform: scale(0.99); }
.voice-record-cta strong { font-size: 14px; font-weight: 800; }
.voice-record-cta small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.voice-record-cta > span:not(.voice-mic) { display: grid; }
.voice-mic, .voice-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.voice-mic {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--coral), #7a5cf0);
  color: #fff;
}
.voice-mic svg { width: 20px; height: 20px; }

.voice-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.voice-btn { width: 40px; height: 40px; }
.voice-btn svg { width: 18px; height: 18px; }
.voice-btn.stop { background: var(--danger); color: #fff; }
.voice-btn.play { background: var(--coral); color: #fff; }
.voice-btn.delete { background: transparent; color: var(--muted); border: 1px solid var(--line); margin-left: auto; }
.voice-time {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 800;
  color: var(--coral-dark);
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 26px;
}
.voice-wave span {
  flex: 1;
  max-width: 5px;
  border-radius: 3px;
  background: var(--coral);
  opacity: 0.55;
  height: 40%;
}
.voice-intro.recording .voice-wave span { animation: voiceBar 0.9s infinite ease-in-out; }
.voice-wave span:nth-child(2) { animation-delay: 0.15s; height: 80%; }
.voice-wave span:nth-child(3) { animation-delay: 0.3s; height: 55%; }
.voice-wave span:nth-child(4) { animation-delay: 0.1s; height: 95%; }
.voice-wave span:nth-child(5) { animation-delay: 0.25s; height: 60%; }
.voice-wave span:nth-child(6) { animation-delay: 0.05s; height: 75%; }
.voice-wave.static span { opacity: 0.4; }
.voice-intro.is-playing .voice-wave.static span { animation: voiceBar 0.8s infinite ease-in-out; opacity: 0.7; }
@keyframes voiceBar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }

/* Голос в превью-карточке */
.pv-voice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(103, 75, 181, 0.08);
  border: 1px solid rgba(103, 75, 181, 0.16);
}
.pv-voice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), #7a5cf0);
  color: #fff;
  flex-shrink: 0;
}
.pv-voice-icon svg { width: 18px; height: 18px; }
.pv-voice-wave { display: flex; align-items: center; gap: 3px; flex: 1; height: 24px; }
.pv-voice-wave span {
  flex: 1;
  max-width: 5px;
  border-radius: 3px;
  background: var(--coral);
  opacity: 0.5;
  animation: voiceBar 0.85s infinite ease-in-out;
}
.pv-voice-wave span:nth-child(odd) { height: 90%; }
.pv-voice-wave span:nth-child(even) { height: 55%; animation-delay: 0.2s; }
.pv-voice-time { font-weight: 800; font-size: 13px; color: var(--coral-dark); font-variant-numeric: tabular-nums; }

/* Пикер вопроса — шаг ввода ответа внутри шита */
#promptAnswerView {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px;
}
.prompt-answer-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--coral);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 2px;
}
.prompt-answer-back svg { width: 18px; height: 18px; }
.prompt-answer-q {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.prompt-answer-input {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  resize: none;
}
.prompt-answer-input:focus {
  outline: none;
  border-color: var(--coral);
}
.prompt-answer-counter {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: -6px;
}
.prompt-answer-save {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: var(--coral);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.prompt-answer-save:active { transform: scale(0.99); }

/* Настройки аккаунта — значения строк + bottom-sheet */
.settings-line-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.settings-line-meta strong { font-weight: 700; }
.settings-line-meta strong.is-unverified { color: var(--danger); }
.settings-line-meta svg { width: 18px; height: 18px; color: #b4b9c6; flex-shrink: 0; }

/* account-шит: 3 ребёнка (handle/h2/body) → body = гибкая скролл-строка */
#accountSheet .city-picker-panel { grid-template-rows: auto auto minmax(0, 1fr); }
#accountSheetBody {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.account-sheet-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  margin: -2px 0 4px;
}
.account-sheet-bullets {
  margin: 2px 0 6px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.account-sheet-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
}
.account-sheet-bullets li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
}
.account-sheet-para {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 9px;
}
.account-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.account-sheet-row strong { color: var(--muted); font-weight: 700; }
.account-sheet-toggles { display: flex; flex-direction: column; gap: 6px; }
.account-sheet-toggles .settings-line {
  border-radius: 12px;
  border-bottom: 0;
  background: var(--surface-2);
  padding: 0 14px;
  min-height: 50px;
}
.account-sheet-btn {
  min-height: 50px;
  border: 1.5px solid var(--coral);
  border-radius: 14px;
  background: #fff;
  color: var(--coral);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.account-sheet-btn.danger {
  background: #fff;
  color: var(--danger);
  border: 1.5px solid rgba(186, 26, 26, 0.4);
}
.account-sheet-btn:active { transform: scale(0.99); }
.account-pin-input {
  width: 160px;
  align-self: center;
  text-align: center;
  letter-spacing: 14px;
  padding: 12px 0 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 26px;
  font-weight: 800;
}
.account-pin-input:focus { outline: none; border-color: var(--coral); }

.gate-qa { display: flex; flex-direction: column; gap: 6px; }
.gate-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.gate-input.gate-a { font-weight: 500; color: var(--muted); }
.gate-input:focus { outline: none; border-color: var(--coral); }
.gate-mode-row {
  border-radius: 12px;
  background: var(--surface-2);
  padding: 8px 14px;
  min-height: 56px;
}
.gate-mode-row span:first-child { display: flex; flex-direction: column; gap: 2px; font-weight: 700; }
.gate-mode-row small { font-weight: 500; font-size: 12px; color: var(--muted); }
.gate-hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin: 2px 0 -2px; }
.gate-opt-row { display: flex; align-items: center; gap: 8px; }
.gate-opt-row .gate-input { flex: 1; }
.gate-opt-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gate-opt-mark i { width: 14px; height: 14px; stroke-width: 3; }
/* приглушённый фиолетовый как у тумблера (#b3a3e0), не сплошной насыщенный */
.gate-opt-mark.is-correct { background: #b3a3e0; border-color: #b3a3e0; color: #fff; }
.gate-hint-check { color: #b3a3e0; font-weight: 800; }

/* ── Превью кастомизации: большой профиль с эффектами + как виден в чате ── */
.fx-preview {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.fx-card {
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  height: 252px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}
.fx-card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Эффект переливания рамки — бегущий «алмазный» контур (палитра/keyframes от is-diamond-card) */
.fx-card.fx-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(from var(--diamond-frame-angle), #ffffff, #dde2ec, #b3c2e2, #cbbcf3, #ffffff, #c4d3ef, #aebcdd, #ffffff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: brightness(1.04);
  animation: cardDiamondFrameSpin 6.5s linear infinite;
}
/* Эффект блеска (реальный card-diamond-shine: огонёк по краю BL→TR + вспышка)
   — слои уменьшены под размер мини-карточки */
.fx-card .cds-dot { width: 8px; height: 8px; }
.fx-card .cds-star { width: 22px; height: 22px; }
/* Значок Diamond на превью — как в ленте (.premium-chip.tier-diamond), пропорционально уменьшен */
.fx-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 18px;
  padding: 0 7px 0 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.28) 0%, rgba(43, 111, 196, 0.28) 50%, rgba(27, 58, 114, 0.3) 100%);
  box-shadow: 0 2px 8px rgba(30, 90, 190, 0.16), 0 0 0 1px rgba(183, 230, 255, 0.4) inset;
  backdrop-filter: blur(8px);
}
.fx-card-badge i,
.fx-card-badge svg { width: 11px; height: 11px; color: #d7f2ff; }
/* Чат-сторона превью: крупное фото в чате (~3x) + опциональная рамка вокруг него */
.fx-chat-side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.fx-preview-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); text-transform: uppercase; }
.fx-chat-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  isolation: isolate;
}
.fx-chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
/* Рамка фото в чате — ледяной «алмазный» контур вокруг круглого аватара */
.fx-chat-avatar.fx-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from var(--diamond-frame-angle), #ffffff, #dde2ec, #b3c2e2, #cbbcf3, #ffffff, #c4d3ef, #aebcdd, #ffffff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  filter: brightness(1.04);
  animation: cardDiamondFrameSpin 6.5s linear infinite;
}

/* Серый маркер в начале диалога: пройденный барьер из 3 вопросов */
.gate-summary {
  align-self: center;
  width: 100%;
  max-width: 320px;
  margin: 4px auto 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.gate-summary-head i { width: 15px; height: 15px; stroke-width: 2.2; }
.gate-summary-qa {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 23px;
}
.gate-summary-q { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.gate-summary-a { font-size: 13px; font-weight: 700; color: var(--ink); }
